Added --with-vmps to configure options, so that you can build
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.243 .
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 CXX
801 CXXFLAGS
802 ac_ct_CXX
803 CPP
804 GREP
805 EGREP
806 RANLIB
807 GMAKE
808 MAKE
809 LTDL_SUBDIRS
810 LIBTOOL
811 build
812 build_cpu
813 build_vendor
814 build_os
815 host
816 host_cpu
817 host_vendor
818 host_os
819 LN_S
820 ECHO
821 AR
822 STRIP
823 CXXCPP
824 F77
825 FFLAGS
826 ac_ct_F77
827 logdir
828 radacctdir
829 raddbdir
830 PERL
831 SNMPGET
832 SNMPWALK
833 RUSERS
834 ACLOCAL
835 AUTOCONF
836 AUTOHEADER
837 LOCATE
838 DIRNAME
839 REGEX
840 REGEX_EXTENDED
841 OPENSSL_INCLUDE
842 OPENSSL_LIBS
843 PCAP_LIBS
844 LIBPREFIX
845 CRYPTLIB
846 SNMP_LIBS
847 SNMP_INCLUDE
848 HOSTINFO
849 LIBLTDL
850 INCLTDL
851 subdirs
852 MODULES
853 INSTALLSTRIP
854 USE_SHARED_LIBS
855 USE_STATIC_LIBS
856 STATIC_MODULES
857 RADIUSD_MAJOR_VERSION
858 RADIUSD_MINOR_VERSION
859 RADIUSD_VERSION
860 LIBOBJS
861 LTLIBOBJS'
862 ac_subst_files=''
863       ac_precious_vars='build_alias
864 host_alias
865 target_alias
866 CC
867 CFLAGS
868 LDFLAGS
869 CPPFLAGS
870 CXX
871 CXXFLAGS
872 CCC
873 CPP
874 CXXCPP
875 F77
876 FFLAGS'
877 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929   # If the previous option needs an argument, assign it.
930   if test -n "$ac_prev"; then
931     eval $ac_prev=\$ac_option
932     ac_prev=
933     continue
934   fi
935
936   case $ac_option in
937   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938   *)    ac_optarg=yes ;;
939   esac
940
941   # Accept the important Cygnus configure options, so we can diagnose typos.
942
943   case $ac_dashdash$ac_option in
944   --)
945     ac_dashdash=yes ;;
946
947   -bindir | --bindir | --bindi | --bind | --bin | --bi)
948     ac_prev=bindir ;;
949   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950     bindir=$ac_optarg ;;
951
952   -build | --build | --buil | --bui | --bu)
953     ac_prev=build_alias ;;
954   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955     build_alias=$ac_optarg ;;
956
957   -cache-file | --cache-file | --cache-fil | --cache-fi \
958   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959     ac_prev=cache_file ;;
960   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962     cache_file=$ac_optarg ;;
963
964   --config-cache | -C)
965     cache_file=config.cache ;;
966
967   -datadir | --datadir | --datadi | --datad)
968     ac_prev=datadir ;;
969   -datadir=* | --datadir=* | --datadi=* | --datad=*)
970     datadir=$ac_optarg ;;
971
972   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973   | --dataroo | --dataro | --datar)
974     ac_prev=datarootdir ;;
975   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977     datarootdir=$ac_optarg ;;
978
979   -disable-* | --disable-*)
980     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981     # Reject names that are not valid shell variable names.
982     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
983       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
984    { (exit 1); exit 1; }; }
985     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
986     eval enable_$ac_feature=no ;;
987
988   -docdir | --docdir | --docdi | --doc | --do)
989     ac_prev=docdir ;;
990   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991     docdir=$ac_optarg ;;
992
993   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994     ac_prev=dvidir ;;
995   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996     dvidir=$ac_optarg ;;
997
998   -enable-* | --enable-*)
999     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000     # Reject names that are not valid shell variable names.
1001     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1002       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003    { (exit 1); exit 1; }; }
1004     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1005     eval enable_$ac_feature=\$ac_optarg ;;
1006
1007   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009   | --exec | --exe | --ex)
1010     ac_prev=exec_prefix ;;
1011   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013   | --exec=* | --exe=* | --ex=*)
1014     exec_prefix=$ac_optarg ;;
1015
1016   -gas | --gas | --ga | --g)
1017     # Obsolete; use --with-gas.
1018     with_gas=yes ;;
1019
1020   -help | --help | --hel | --he | -h)
1021     ac_init_help=long ;;
1022   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023     ac_init_help=recursive ;;
1024   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025     ac_init_help=short ;;
1026
1027   -host | --host | --hos | --ho)
1028     ac_prev=host_alias ;;
1029   -host=* | --host=* | --hos=* | --ho=*)
1030     host_alias=$ac_optarg ;;
1031
1032   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033     ac_prev=htmldir ;;
1034   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035   | --ht=*)
1036     htmldir=$ac_optarg ;;
1037
1038   -includedir | --includedir | --includedi | --included | --include \
1039   | --includ | --inclu | --incl | --inc)
1040     ac_prev=includedir ;;
1041   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042   | --includ=* | --inclu=* | --incl=* | --inc=*)
1043     includedir=$ac_optarg ;;
1044
1045   -infodir | --infodir | --infodi | --infod | --info | --inf)
1046     ac_prev=infodir ;;
1047   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048     infodir=$ac_optarg ;;
1049
1050   -libdir | --libdir | --libdi | --libd)
1051     ac_prev=libdir ;;
1052   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053     libdir=$ac_optarg ;;
1054
1055   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056   | --libexe | --libex | --libe)
1057     ac_prev=libexecdir ;;
1058   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059   | --libexe=* | --libex=* | --libe=*)
1060     libexecdir=$ac_optarg ;;
1061
1062   -localedir | --localedir | --localedi | --localed | --locale)
1063     ac_prev=localedir ;;
1064   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065     localedir=$ac_optarg ;;
1066
1067   -localstatedir | --localstatedir | --localstatedi | --localstated \
1068   | --localstate | --localstat | --localsta | --localst | --locals)
1069     ac_prev=localstatedir ;;
1070   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072     localstatedir=$ac_optarg ;;
1073
1074   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075     ac_prev=mandir ;;
1076   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077     mandir=$ac_optarg ;;
1078
1079   -nfp | --nfp | --nf)
1080     # Obsolete; use --without-fp.
1081     with_fp=no ;;
1082
1083   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084   | --no-cr | --no-c | -n)
1085     no_create=yes ;;
1086
1087   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089     no_recursion=yes ;;
1090
1091   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093   | --oldin | --oldi | --old | --ol | --o)
1094     ac_prev=oldincludedir ;;
1095   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098     oldincludedir=$ac_optarg ;;
1099
1100   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101     ac_prev=prefix ;;
1102   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103     prefix=$ac_optarg ;;
1104
1105   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106   | --program-pre | --program-pr | --program-p)
1107     ac_prev=program_prefix ;;
1108   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110     program_prefix=$ac_optarg ;;
1111
1112   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113   | --program-suf | --program-su | --program-s)
1114     ac_prev=program_suffix ;;
1115   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117     program_suffix=$ac_optarg ;;
1118
1119   -program-transform-name | --program-transform-name \
1120   | --program-transform-nam | --program-transform-na \
1121   | --program-transform-n | --program-transform- \
1122   | --program-transform | --program-transfor \
1123   | --program-transfo | --program-transf \
1124   | --program-trans | --program-tran \
1125   | --progr-tra | --program-tr | --program-t)
1126     ac_prev=program_transform_name ;;
1127   -program-transform-name=* | --program-transform-name=* \
1128   | --program-transform-nam=* | --program-transform-na=* \
1129   | --program-transform-n=* | --program-transform-=* \
1130   | --program-transform=* | --program-transfor=* \
1131   | --program-transfo=* | --program-transf=* \
1132   | --program-trans=* | --program-tran=* \
1133   | --progr-tra=* | --program-tr=* | --program-t=*)
1134     program_transform_name=$ac_optarg ;;
1135
1136   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137     ac_prev=pdfdir ;;
1138   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139     pdfdir=$ac_optarg ;;
1140
1141   -psdir | --psdir | --psdi | --psd | --ps)
1142     ac_prev=psdir ;;
1143   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144     psdir=$ac_optarg ;;
1145
1146   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147   | -silent | --silent | --silen | --sile | --sil)
1148     silent=yes ;;
1149
1150   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151     ac_prev=sbindir ;;
1152   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153   | --sbi=* | --sb=*)
1154     sbindir=$ac_optarg ;;
1155
1156   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158   | --sharedst | --shareds | --shared | --share | --shar \
1159   | --sha | --sh)
1160     ac_prev=sharedstatedir ;;
1161   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164   | --sha=* | --sh=*)
1165     sharedstatedir=$ac_optarg ;;
1166
1167   -site | --site | --sit)
1168     ac_prev=site ;;
1169   -site=* | --site=* | --sit=*)
1170     site=$ac_optarg ;;
1171
1172   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173     ac_prev=srcdir ;;
1174   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175     srcdir=$ac_optarg ;;
1176
1177   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178   | --syscon | --sysco | --sysc | --sys | --sy)
1179     ac_prev=sysconfdir ;;
1180   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182     sysconfdir=$ac_optarg ;;
1183
1184   -target | --target | --targe | --targ | --tar | --ta | --t)
1185     ac_prev=target_alias ;;
1186   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187     target_alias=$ac_optarg ;;
1188
1189   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190     verbose=yes ;;
1191
1192   -version | --version | --versio | --versi | --vers | -V)
1193     ac_init_version=: ;;
1194
1195   -with-* | --with-*)
1196     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1199       { echo "$as_me: error: invalid package name: $ac_package" >&2
1200    { (exit 1); exit 1; }; }
1201     ac_package=`echo $ac_package| sed 's/-/_/g'`
1202     eval with_$ac_package=\$ac_optarg ;;
1203
1204   -without-* | --without-*)
1205     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206     # Reject names that are not valid shell variable names.
1207     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1208       { echo "$as_me: error: invalid package name: $ac_package" >&2
1209    { (exit 1); exit 1; }; }
1210     ac_package=`echo $ac_package | sed 's/-/_/g'`
1211     eval with_$ac_package=no ;;
1212
1213   --x)
1214     # Obsolete; use --with-x.
1215     with_x=yes ;;
1216
1217   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218   | --x-incl | --x-inc | --x-in | --x-i)
1219     ac_prev=x_includes ;;
1220   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222     x_includes=$ac_optarg ;;
1223
1224   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226     ac_prev=x_libraries ;;
1227   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229     x_libraries=$ac_optarg ;;
1230
1231   -*) { echo "$as_me: error: unrecognized option: $ac_option
1232 Try \`$0 --help' for more information." >&2
1233    { (exit 1); exit 1; }; }
1234     ;;
1235
1236   *=*)
1237     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238     # Reject names that are not valid shell variable names.
1239     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1240       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1241    { (exit 1); exit 1; }; }
1242     eval $ac_envvar=\$ac_optarg
1243     export $ac_envvar ;;
1244
1245   *)
1246     # FIXME: should be removed in autoconf 3.0.
1247     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251     ;;
1252
1253   esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258   { echo "$as_me: error: missing argument to $ac_option" >&2
1259    { (exit 1); exit 1; }; }
1260 fi
1261
1262 # Be sure to have absolute directory names.
1263 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264                 datadir sysconfdir sharedstatedir localstatedir includedir \
1265                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266                 libdir localedir mandir
1267 do
1268   eval ac_val=\$$ac_var
1269   case $ac_val in
1270     [\\/$]* | ?:[\\/]* )  continue;;
1271     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272   esac
1273   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1274    { (exit 1); exit 1; }; }
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286   if test "x$build_alias" = x; then
1287     cross_compiling=maybe
1288     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289     If a cross compiler is detected then cross compile mode will be used." >&2
1290   elif test "x$build_alias" != "x$host_alias"; then
1291     cross_compiling=yes
1292   fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304   { echo "$as_me: error: Working directory cannot be determined" >&2
1305    { (exit 1); exit 1; }; }
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   { echo "$as_me: error: pwd does not report name of working directory" >&2
1308    { (exit 1); exit 1; }; }
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313   ac_srcdir_defaulted=yes
1314   # Try the directory containing this script, then the parent directory.
1315   ac_confdir=`$as_dirname -- "$0" ||
1316 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317          X"$0" : 'X\(//\)[^/]' \| \
1318          X"$0" : 'X\(//\)$' \| \
1319          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1320 echo X"$0" |
1321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\/\)[^/].*/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)$/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\).*/{
1334             s//\1/
1335             q
1336           }
1337           s/.*/./; q'`
1338   srcdir=$ac_confdir
1339   if test ! -r "$srcdir/$ac_unique_file"; then
1340     srcdir=..
1341   fi
1342 else
1343   ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1348    { (exit 1); exit 1; }; }
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1353    { (exit 1); exit 1; }; }
1354         pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357   srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_env_${ac_var}_value=\$${ac_var}
1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376   # Omit some internal or obsolete options to make the list less imposing.
1377   # This message is too long to be a string in the A/UX 3.1 sh.
1378   cat <<_ACEOF
1379 \`configure' configures this package to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389   -h, --help              display this help and exit
1390       --help=short        display options specific to this package
1391       --help=recursive    display the short help of all the included packages
1392   -V, --version           display version information and exit
1393   -q, --quiet, --silent   do not print \`checking...' messages
1394       --cache-file=FILE   cache test results in FILE [disabled]
1395   -C, --config-cache      alias for \`--cache-file=config.cache'
1396   -n, --no-create         do not create output files
1397       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400   --prefix=PREFIX         install architecture-independent files in PREFIX
1401                           [$ac_default_prefix]
1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1403                           [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413   --bindir=DIR           user executables [EPREFIX/bin]
1414   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1415   --libexecdir=DIR       program executables [EPREFIX/libexec]
1416   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1417   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1418   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1419   --libdir=DIR           object code libraries [EPREFIX/lib]
1420   --includedir=DIR       C header files [PREFIX/include]
1421   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1422   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1423   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1424   --infodir=DIR          info documentation [DATAROOTDIR/info]
1425   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1426   --mandir=DIR           man documentation [DATAROOTDIR/man]
1427   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1428   --htmldir=DIR          html documentation [DOCDIR]
1429   --dvidir=DIR           dvi documentation [DOCDIR]
1430   --pdfdir=DIR           pdf documentation [DOCDIR]
1431   --psdir=DIR            ps documentation [DOCDIR]
1432 _ACEOF
1433
1434   cat <<\_ACEOF
1435
1436 System types:
1437   --build=BUILD     configure for building on BUILD [guessed]
1438   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443
1444   cat <<\_ACEOF
1445
1446 Optional Features:
1447   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1448   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1449   --disable-largefile     omit support for large files
1450   --enable-shared[=PKGS]  build shared libraries [default=yes]
1451   --enable-static[=PKGS]  build static libraries [default=yes]
1452   --enable-fast-install[=PKGS]
1453                           optimize for fast installation [default=yes]
1454   --disable-libtool-lock  avoid locking (might break parallel builds)
1455   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1456   --enable-developer               Enables features of interest to developers.
1457
1458 Optional Packages:
1459   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461   --with-system-libtool              try to use libtool installed in your system default=use our own
1462   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1463   --with-pic              try to use only PIC/non-PIC objects [default=use
1464                           both]
1465   --with-tags[=TAGS]      include additional configurations [automatic]
1466   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1467   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1468   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1469   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1470   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1471   --with-threads          Use threads, if available.  (default=yes)
1472   --with-snmp             Compile in SNMP support. (default=yes)
1473   --with-vmps             Compile in VMPS support. (default=yes)
1474   --with-static-modules=QUOTED-MODULE-LIST
1475  --with-modules=QUOTED-MODULE-LIST
1476   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1477   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1478   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1479   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1480   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1481   --with-udpfromto        Compile in UDPFROMTO support. (default=yes)
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1489               you have headers in a nonstandard directory <include dir>
1490   CXX         C++ compiler command
1491   CXXFLAGS    C++ compiler flags
1492   CPP         C preprocessor
1493   CXXCPP      C++ preprocessor
1494   F77         Fortran 77 compiler command
1495   FFLAGS      Fortran 77 compiler flags
1496
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1499
1500 _ACEOF
1501 ac_status=$?
1502 fi
1503
1504 if test "$ac_init_help" = "recursive"; then
1505   # If there are subdirs, report their specific --help.
1506   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507     test -d "$ac_dir" || continue
1508     ac_builddir=.
1509
1510 case "$ac_dir" in
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *)
1513   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1514   # A ".." for each directory in $ac_dir_suffix.
1515   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1516   case $ac_top_builddir_sub in
1517   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1519   esac ;;
1520 esac
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1525
1526 case $srcdir in
1527   .)  # We are building in place.
1528     ac_srcdir=.
1529     ac_top_srcdir=$ac_top_builddir_sub
1530     ac_abs_top_srcdir=$ac_pwd ;;
1531   [\\/]* | ?:[\\/]* )  # Absolute name.
1532     ac_srcdir=$srcdir$ac_dir_suffix;
1533     ac_top_srcdir=$srcdir
1534     ac_abs_top_srcdir=$srcdir ;;
1535   *) # Relative name.
1536     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537     ac_top_srcdir=$ac_top_build_prefix$srcdir
1538     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 esac
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
1542     cd "$ac_dir" || { ac_status=$?; continue; }
1543     # Check for guested configure.
1544     if test -f "$ac_srcdir/configure.gnu"; then
1545       echo &&
1546       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547     elif test -f "$ac_srcdir/configure"; then
1548       echo &&
1549       $SHELL "$ac_srcdir/configure" --help=recursive
1550     else
1551       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552     fi || ac_status=$?
1553     cd "$ac_pwd" || { ac_status=$?; break; }
1554   done
1555 fi
1556
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1559   cat <<\_ACEOF
1560 configure
1561 generated by GNU Autoconf 2.60
1562
1563 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1564 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568   exit
1569 fi
1570 cat >config.log <<_ACEOF
1571 This file contains any messages produced by compilers while
1572 running configure, to aid debugging if configure makes a mistake.
1573
1574 It was created by $as_me, which was
1575 generated by GNU Autoconf 2.60.  Invocation command line was
1576
1577   $ $0 $@
1578
1579 _ACEOF
1580 exec 5>>config.log
1581 {
1582 cat <<_ASUNAME
1583 ## --------- ##
1584 ## Platform. ##
1585 ## --------- ##
1586
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1592
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1595
1596 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1597 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1600 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1601 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1602 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1603
1604 _ASUNAME
1605
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   echo "PATH: $as_dir"
1612 done
1613 IFS=$as_save_IFS
1614
1615 } >&5
1616
1617 cat >&5 <<_ACEOF
1618
1619
1620 ## ----------- ##
1621 ## Core tests. ##
1622 ## ----------- ##
1623
1624 _ACEOF
1625
1626
1627 # Keep a trace of the command line.
1628 # Strip out --no-create and --no-recursion so they do not pile up.
1629 # Strip out --silent because we don't want to record it for future runs.
1630 # Also quote any args containing shell meta-characters.
1631 # Make two passes to allow for proper duplicate-argument suppression.
1632 ac_configure_args=
1633 ac_configure_args0=
1634 ac_configure_args1=
1635 ac_must_keep_next=false
1636 for ac_pass in 1 2
1637 do
1638   for ac_arg
1639   do
1640     case $ac_arg in
1641     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643     | -silent | --silent | --silen | --sile | --sil)
1644       continue ;;
1645     *\'*)
1646       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647     esac
1648     case $ac_pass in
1649     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1650     2)
1651       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652       if test $ac_must_keep_next = true; then
1653         ac_must_keep_next=false # Got value, back to normal.
1654       else
1655         case $ac_arg in
1656           *=* | --config-cache | -C | -disable-* | --disable-* \
1657           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659           | -with-* | --with-* | -without-* | --without-* | --x)
1660             case "$ac_configure_args0 " in
1661               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662             esac
1663             ;;
1664           -* ) ac_must_keep_next=true ;;
1665         esac
1666       fi
1667       ac_configure_args="$ac_configure_args '$ac_arg'"
1668       ;;
1669     esac
1670   done
1671 done
1672 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1673 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1674
1675 # When interrupted or exit'd, cleanup temporary files, and complete
1676 # config.log.  We remove comments because anyway the quotes in there
1677 # would cause problems or look ugly.
1678 # WARNING: Use '\'' to represent an apostrophe within the trap.
1679 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1680 trap 'exit_status=$?
1681   # Save into config.log some information that might help in debugging.
1682   {
1683     echo
1684
1685     cat <<\_ASBOX
1686 ## ---------------- ##
1687 ## Cache variables. ##
1688 ## ---------------- ##
1689 _ASBOX
1690     echo
1691     # The following way of writing the cache mishandles newlines in values,
1692 (
1693   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1694     eval ac_val=\$$ac_var
1695     case $ac_val in #(
1696     *${as_nl}*)
1697       case $ac_var in #(
1698       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700       esac
1701       case $ac_var in #(
1702       _ | IFS | as_nl) ;; #(
1703       *) $as_unset $ac_var ;;
1704       esac ;;
1705     esac
1706   done
1707   (set) 2>&1 |
1708     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1709     *${as_nl}ac_space=\ *)
1710       sed -n \
1711         "s/'\''/'\''\\\\'\'''\''/g;
1712           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713       ;; #(
1714     *)
1715       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1716       ;;
1717     esac |
1718     sort
1719 )
1720     echo
1721
1722     cat <<\_ASBOX
1723 ## ----------------- ##
1724 ## Output variables. ##
1725 ## ----------------- ##
1726 _ASBOX
1727     echo
1728     for ac_var in $ac_subst_vars
1729     do
1730       eval ac_val=\$$ac_var
1731       case $ac_val in
1732       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733       esac
1734       echo "$ac_var='\''$ac_val'\''"
1735     done | sort
1736     echo
1737
1738     if test -n "$ac_subst_files"; then
1739       cat <<\_ASBOX
1740 ## ------------------- ##
1741 ## File substitutions. ##
1742 ## ------------------- ##
1743 _ASBOX
1744       echo
1745       for ac_var in $ac_subst_files
1746       do
1747         eval ac_val=\$$ac_var
1748         case $ac_val in
1749         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1750         esac
1751         echo "$ac_var='\''$ac_val'\''"
1752       done | sort
1753       echo
1754     fi
1755
1756     if test -s confdefs.h; then
1757       cat <<\_ASBOX
1758 ## ----------- ##
1759 ## confdefs.h. ##
1760 ## ----------- ##
1761 _ASBOX
1762       echo
1763       cat confdefs.h
1764       echo
1765     fi
1766     test "$ac_signal" != 0 &&
1767       echo "$as_me: caught signal $ac_signal"
1768     echo "$as_me: exit $exit_status"
1769   } >&5
1770   rm -f core *.core core.conftest.* &&
1771     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772     exit $exit_status
1773 ' 0
1774 for ac_signal in 1 2 13 15; do
1775   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 done
1777 ac_signal=0
1778
1779 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1780 rm -f -r conftest* confdefs.h
1781
1782 # Predefined preprocessor variables.
1783
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 _ACEOF
1787
1788
1789 cat >>confdefs.h <<_ACEOF
1790 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 _ACEOF
1792
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 _ACEOF
1807
1808
1809 # Let the site file select an alternate cache file if it wants to.
1810 # Prefer explicitly selected file to automatically selected ones.
1811 if test -n "$CONFIG_SITE"; then
1812   set x "$CONFIG_SITE"
1813 elif test "x$prefix" != xNONE; then
1814   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1815 else
1816   set x "$ac_default_prefix/share/config.site" \
1817         "$ac_default_prefix/etc/config.site"
1818 fi
1819 shift
1820 for ac_site_file
1821 do
1822   if test -r "$ac_site_file"; then
1823     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1824 echo "$as_me: loading site script $ac_site_file" >&6;}
1825     sed 's/^/| /' "$ac_site_file" >&5
1826     . "$ac_site_file"
1827   fi
1828 done
1829
1830 if test -r "$cache_file"; then
1831   # Some versions of bash will fail to source /dev/null (special
1832   # files actually), so we avoid doing that.
1833   if test -f "$cache_file"; then
1834     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1835 echo "$as_me: loading cache $cache_file" >&6;}
1836     case $cache_file in
1837       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1838       *)                      . "./$cache_file";;
1839     esac
1840   fi
1841 else
1842   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1843 echo "$as_me: creating cache $cache_file" >&6;}
1844   >$cache_file
1845 fi
1846
1847 # Check that the precious variables saved in the cache have kept the same
1848 # value.
1849 ac_cache_corrupted=false
1850 for ac_var in $ac_precious_vars; do
1851   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1852   eval ac_new_set=\$ac_env_${ac_var}_set
1853   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1854   eval ac_new_val=\$ac_env_${ac_var}_value
1855   case $ac_old_set,$ac_new_set in
1856     set,)
1857       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1859       ac_cache_corrupted=: ;;
1860     ,set)
1861       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1862 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1863       ac_cache_corrupted=: ;;
1864     ,);;
1865     *)
1866       if test "x$ac_old_val" != "x$ac_new_val"; then
1867         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1868 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1869         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1870 echo "$as_me:   former value:  $ac_old_val" >&2;}
1871         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1872 echo "$as_me:   current value: $ac_new_val" >&2;}
1873         ac_cache_corrupted=:
1874       fi;;
1875   esac
1876   # Pass precious variables to config.status.
1877   if test "$ac_new_set" = set; then
1878     case $ac_new_val in
1879     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1880     *) ac_arg=$ac_var=$ac_new_val ;;
1881     esac
1882     case " $ac_configure_args " in
1883       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1884       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885     esac
1886   fi
1887 done
1888 if $ac_cache_corrupted; then
1889   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1890 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1892 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1893    { (exit 1); exit 1; }; }
1894 fi
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912 ac_ext=c
1913 ac_cpp='$CPP $CPPFLAGS'
1914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917
1918
1919 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1920
1921
1922 RADIUSD_MAJOR_VERSION=2
1923 RADIUSD_MINOR_VERSION=0.0-pre2
1924 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1925 PACKAGE=freeradius
1926
1927
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933 if test -n "$ac_tool_prefix"; then
1934   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1938 if test "${ac_cv_prog_CC+set}" = set; then
1939   echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941   if test -n "$CC"; then
1942   ac_cv_prog_CC="$CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947   IFS=$as_save_IFS
1948   test -z "$as_dir" && as_dir=.
1949   for ac_exec_ext in '' $ac_executable_extensions; do
1950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1951     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953     break 2
1954   fi
1955 done
1956 done
1957 IFS=$as_save_IFS
1958
1959 fi
1960 fi
1961 CC=$ac_cv_prog_CC
1962 if test -n "$CC"; then
1963   { echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6; }
1965 else
1966   { echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6; }
1968 fi
1969
1970
1971 fi
1972 if test -z "$ac_cv_prog_CC"; then
1973   ac_ct_CC=$CC
1974   # Extract the first word of "gcc", so it can be a program name with args.
1975 set dummy gcc; ac_word=$2
1976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1979   echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981   if test -n "$ac_ct_CC"; then
1982   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1983 else
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1985 for as_dir in $PATH
1986 do
1987   IFS=$as_save_IFS
1988   test -z "$as_dir" && as_dir=.
1989   for ac_exec_ext in '' $ac_executable_extensions; do
1990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1991     ac_cv_prog_ac_ct_CC="gcc"
1992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993     break 2
1994   fi
1995 done
1996 done
1997 IFS=$as_save_IFS
1998
1999 fi
2000 fi
2001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2002 if test -n "$ac_ct_CC"; then
2003   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2004 echo "${ECHO_T}$ac_ct_CC" >&6; }
2005 else
2006   { echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6; }
2008 fi
2009
2010   if test "x$ac_ct_CC" = x; then
2011     CC=""
2012   else
2013     case $cross_compiling:$ac_tool_warned in
2014 yes:)
2015 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2016 whose name does not start with the host triplet.  If you think this
2017 configuration is useful to you, please write to autoconf@gnu.org." >&5
2018 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2019 whose name does not start with the host triplet.  If you think this
2020 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2021 ac_tool_warned=yes ;;
2022 esac
2023     CC=$ac_ct_CC
2024   fi
2025 else
2026   CC="$ac_cv_prog_CC"
2027 fi
2028
2029 if test -z "$CC"; then
2030           if test -n "$ac_tool_prefix"; then
2031     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2032 set dummy ${ac_tool_prefix}cc; ac_word=$2
2033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2035 if test "${ac_cv_prog_CC+set}" = set; then
2036   echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038   if test -n "$CC"; then
2039   ac_cv_prog_CC="$CC" # Let the user override the test.
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044   IFS=$as_save_IFS
2045   test -z "$as_dir" && as_dir=.
2046   for ac_exec_ext in '' $ac_executable_extensions; do
2047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2048     ac_cv_prog_CC="${ac_tool_prefix}cc"
2049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2050     break 2
2051   fi
2052 done
2053 done
2054 IFS=$as_save_IFS
2055
2056 fi
2057 fi
2058 CC=$ac_cv_prog_CC
2059 if test -n "$CC"; then
2060   { echo "$as_me:$LINENO: result: $CC" >&5
2061 echo "${ECHO_T}$CC" >&6; }
2062 else
2063   { echo "$as_me:$LINENO: result: no" >&5
2064 echo "${ECHO_T}no" >&6; }
2065 fi
2066
2067
2068   fi
2069 fi
2070 if test -z "$CC"; then
2071   # Extract the first word of "cc", so it can be a program name with args.
2072 set dummy cc; ac_word=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_prog_CC+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   if test -n "$CC"; then
2079   ac_cv_prog_CC="$CC" # Let the user override the test.
2080 else
2081   ac_prog_rejected=no
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085   IFS=$as_save_IFS
2086   test -z "$as_dir" && as_dir=.
2087   for ac_exec_ext in '' $ac_executable_extensions; do
2088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2089     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2090        ac_prog_rejected=yes
2091        continue
2092      fi
2093     ac_cv_prog_CC="cc"
2094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095     break 2
2096   fi
2097 done
2098 done
2099 IFS=$as_save_IFS
2100
2101 if test $ac_prog_rejected = yes; then
2102   # We found a bogon in the path, so make sure we never use it.
2103   set dummy $ac_cv_prog_CC
2104   shift
2105   if test $# != 0; then
2106     # We chose a different compiler from the bogus one.
2107     # However, it has the same basename, so the bogon will be chosen
2108     # first if we set CC to just the basename; use the full file name.
2109     shift
2110     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2111   fi
2112 fi
2113 fi
2114 fi
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117   { echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6; }
2119 else
2120   { echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6; }
2122 fi
2123
2124
2125 fi
2126 if test -z "$CC"; then
2127   if test -n "$ac_tool_prefix"; then
2128   for ac_prog in cl.exe
2129   do
2130     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   if test -n "$CC"; then
2138   ac_cv_prog_CC="$CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145   for ac_exec_ext in '' $ac_executable_extensions; do
2146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2147     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153 IFS=$as_save_IFS
2154
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159   { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2161 else
2162   { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2164 fi
2165
2166
2167     test -n "$CC" && break
2168   done
2169 fi
2170 if test -z "$CC"; then
2171   ac_ct_CC=$CC
2172   for ac_prog in cl.exe
2173 do
2174   # Extract the first word of "$ac_prog", so it can be a program name with args.
2175 set dummy $ac_prog; ac_word=$2
2176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2179   echo $ECHO_N "(cached) $ECHO_C" >&6
2180 else
2181   if test -n "$ac_ct_CC"; then
2182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2183 else
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187   IFS=$as_save_IFS
2188   test -z "$as_dir" && as_dir=.
2189   for ac_exec_ext in '' $ac_executable_extensions; do
2190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2191     ac_cv_prog_ac_ct_CC="$ac_prog"
2192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2193     break 2
2194   fi
2195 done
2196 done
2197 IFS=$as_save_IFS
2198
2199 fi
2200 fi
2201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2202 if test -n "$ac_ct_CC"; then
2203   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2204 echo "${ECHO_T}$ac_ct_CC" >&6; }
2205 else
2206   { echo "$as_me:$LINENO: result: no" >&5
2207 echo "${ECHO_T}no" >&6; }
2208 fi
2209
2210
2211   test -n "$ac_ct_CC" && break
2212 done
2213
2214   if test "x$ac_ct_CC" = x; then
2215     CC=""
2216   else
2217     case $cross_compiling:$ac_tool_warned in
2218 yes:)
2219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2220 whose name does not start with the host triplet.  If you think this
2221 configuration is useful to you, please write to autoconf@gnu.org." >&5
2222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2223 whose name does not start with the host triplet.  If you think this
2224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2225 ac_tool_warned=yes ;;
2226 esac
2227     CC=$ac_ct_CC
2228   fi
2229 fi
2230
2231 fi
2232
2233
2234 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: no acceptable C compiler found in \$PATH
2237 See \`config.log' for more details." >&2;}
2238    { (exit 1); exit 1; }; }
2239
2240 # Provide some information about the compiler.
2241 echo "$as_me:$LINENO: checking for C compiler version" >&5
2242 ac_compiler=`set X $ac_compile; echo $2`
2243 { (ac_try="$ac_compiler --version >&5"
2244 case "(($ac_try" in
2245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246   *) ac_try_echo=$ac_try;;
2247 esac
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249   (eval "$ac_compiler --version >&5") 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }
2253 { (ac_try="$ac_compiler -v >&5"
2254 case "(($ac_try" in
2255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256   *) ac_try_echo=$ac_try;;
2257 esac
2258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2259   (eval "$ac_compiler -v >&5") 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }
2263 { (ac_try="$ac_compiler -V >&5"
2264 case "(($ac_try" in
2265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266   *) ac_try_echo=$ac_try;;
2267 esac
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269   (eval "$ac_compiler -V >&5") 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }
2273
2274 cat >conftest.$ac_ext <<_ACEOF
2275 /* confdefs.h.  */
2276 _ACEOF
2277 cat confdefs.h >>conftest.$ac_ext
2278 cat >>conftest.$ac_ext <<_ACEOF
2279 /* end confdefs.h.  */
2280
2281 int
2282 main ()
2283 {
2284
2285   ;
2286   return 0;
2287 }
2288 _ACEOF
2289 ac_clean_files_save=$ac_clean_files
2290 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2291 # Try to create an executable without -o first, disregard a.out.
2292 # It will help us diagnose broken compilers, and finding out an intuition
2293 # of exeext.
2294 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2295 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2296 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2297 #
2298 # List of possible output files, starting from the most likely.
2299 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2300 # only as a last resort.  b.out is created by i960 compilers.
2301 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2302 #
2303 # The IRIX 6 linker writes into existing files which may not be
2304 # executable, retaining their permissions.  Remove them first so a
2305 # subsequent execution test works.
2306 ac_rmfiles=
2307 for ac_file in $ac_files
2308 do
2309   case $ac_file in
2310     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2311     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2312   esac
2313 done
2314 rm -f $ac_rmfiles
2315
2316 if { (ac_try="$ac_link_default"
2317 case "(($ac_try" in
2318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319   *) ac_try_echo=$ac_try;;
2320 esac
2321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2322   (eval "$ac_link_default") 2>&5
2323   ac_status=$?
2324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325   (exit $ac_status); }; then
2326   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2328 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2329 # so that the user can short-circuit this test for compilers unknown to
2330 # Autoconf.
2331 for ac_file in $ac_files
2332 do
2333   test -f "$ac_file" || continue
2334   case $ac_file in
2335     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2336         ;;
2337     [ab].out )
2338         # We found the default executable, but exeext='' is most
2339         # certainly right.
2340         break;;
2341     *.* )
2342         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2343         then :; else
2344            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2345         fi
2346         # We set ac_cv_exeext here because the later test for it is not
2347         # safe: cross compilers may not add the suffix if given an `-o'
2348         # argument, so we may need to know it at that point already.
2349         # Even if this section looks crufty: it has the advantage of
2350         # actually working.
2351         break;;
2352     * )
2353         break;;
2354   esac
2355 done
2356 test "$ac_cv_exeext" = no && ac_cv_exeext=
2357
2358 else
2359   echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361
2362 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: C compiler cannot create executables
2365 See \`config.log' for more details." >&2;}
2366    { (exit 77); exit 77; }; }
2367 fi
2368
2369 ac_exeext=$ac_cv_exeext
2370 { echo "$as_me:$LINENO: result: $ac_file" >&5
2371 echo "${ECHO_T}$ac_file" >&6; }
2372
2373 # Check that the compiler produces executables we can run.  If not, either
2374 # the compiler is broken, or we cross compile.
2375 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2376 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2377 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2378 # If not cross compiling, check that we can run a simple program.
2379 if test "$cross_compiling" != yes; then
2380   if { ac_try='./$ac_file'
2381   { (case "(($ac_try" in
2382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2383   *) ac_try_echo=$ac_try;;
2384 esac
2385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2386   (eval "$ac_try") 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; }; then
2390     cross_compiling=no
2391   else
2392     if test "$cross_compiling" = maybe; then
2393         cross_compiling=yes
2394     else
2395         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2396 If you meant to cross compile, use \`--host'.
2397 See \`config.log' for more details." >&5
2398 echo "$as_me: error: cannot run C compiled programs.
2399 If you meant to cross compile, use \`--host'.
2400 See \`config.log' for more details." >&2;}
2401    { (exit 1); exit 1; }; }
2402     fi
2403   fi
2404 fi
2405 { echo "$as_me:$LINENO: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6; }
2407
2408 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2409 ac_clean_files=$ac_clean_files_save
2410 # Check that the compiler produces executables we can run.  If not, either
2411 # the compiler is broken, or we cross compile.
2412 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2413 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2414 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2415 echo "${ECHO_T}$cross_compiling" >&6; }
2416
2417 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2418 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2419 if { (ac_try="$ac_link"
2420 case "(($ac_try" in
2421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422   *) ac_try_echo=$ac_try;;
2423 esac
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425   (eval "$ac_link") 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; then
2429   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2430 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2431 # work properly (i.e., refer to `conftest.exe'), while it won't with
2432 # `rm'.
2433 for ac_file in conftest.exe conftest conftest.*; do
2434   test -f "$ac_file" || continue
2435   case $ac_file in
2436     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2437     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2438           break;;
2439     * ) break;;
2440   esac
2441 done
2442 else
2443   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2446 See \`config.log' for more details." >&2;}
2447    { (exit 1); exit 1; }; }
2448 fi
2449
2450 rm -f conftest$ac_cv_exeext
2451 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2452 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2453
2454 rm -f conftest.$ac_ext
2455 EXEEXT=$ac_cv_exeext
2456 ac_exeext=$EXEEXT
2457 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2458 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2459 if test "${ac_cv_objext+set}" = set; then
2460   echo $ECHO_N "(cached) $ECHO_C" >&6
2461 else
2462   cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h.  */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h.  */
2468
2469 int
2470 main ()
2471 {
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.o conftest.obj
2478 if { (ac_try="$ac_compile"
2479 case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484   (eval "$ac_compile") 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }; then
2488   for ac_file in conftest.o conftest.obj conftest.*; do
2489   test -f "$ac_file" || continue;
2490   case $ac_file in
2491     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2492     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2493        break;;
2494   esac
2495 done
2496 else
2497   echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2503 See \`config.log' for more details." >&2;}
2504    { (exit 1); exit 1; }; }
2505 fi
2506
2507 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2508 fi
2509 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2510 echo "${ECHO_T}$ac_cv_objext" >&6; }
2511 OBJEXT=$ac_cv_objext
2512 ac_objext=$OBJEXT
2513 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2514 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2515 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2516   echo $ECHO_N "(cached) $ECHO_C" >&6
2517 else
2518   cat >conftest.$ac_ext <<_ACEOF
2519 /* confdefs.h.  */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h.  */
2524
2525 int
2526 main ()
2527 {
2528 #ifndef __GNUC__
2529        choke me
2530 #endif
2531
2532   ;
2533   return 0;
2534 }
2535 _ACEOF
2536 rm -f conftest.$ac_objext
2537 if { (ac_try="$ac_compile"
2538 case "(($ac_try" in
2539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540   *) ac_try_echo=$ac_try;;
2541 esac
2542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2543   (eval "$ac_compile") 2>conftest.er1
2544   ac_status=$?
2545   grep -v '^ *+' conftest.er1 >conftest.err
2546   rm -f conftest.er1
2547   cat conftest.err >&5
2548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549   (exit $ac_status); } &&
2550          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2551   { (case "(($ac_try" in
2552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553   *) ac_try_echo=$ac_try;;
2554 esac
2555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2556   (eval "$ac_try") 2>&5
2557   ac_status=$?
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); }; } &&
2560          { ac_try='test -s conftest.$ac_objext'
2561   { (case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_try") 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; }; then
2570   ac_compiler_gnu=yes
2571 else
2572   echo "$as_me: failed program was:" >&5
2573 sed 's/^/| /' conftest.$ac_ext >&5
2574
2575         ac_compiler_gnu=no
2576 fi
2577
2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2580
2581 fi
2582 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2583 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2584 GCC=`test $ac_compiler_gnu = yes && echo yes`
2585 ac_test_CFLAGS=${CFLAGS+set}
2586 ac_save_CFLAGS=$CFLAGS
2587 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2588 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2589 if test "${ac_cv_prog_cc_g+set}" = set; then
2590   echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592   ac_save_c_werror_flag=$ac_c_werror_flag
2593    ac_c_werror_flag=yes
2594    ac_cv_prog_cc_g=no
2595    CFLAGS="-g"
2596    cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h.  */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h.  */
2602
2603 int
2604 main ()
2605 {
2606
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (ac_try="$ac_compile"
2613 case "(($ac_try" in
2614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615   *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618   (eval "$ac_compile") 2>conftest.er1
2619   ac_status=$?
2620   grep -v '^ *+' conftest.er1 >conftest.err
2621   rm -f conftest.er1
2622   cat conftest.err >&5
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); } &&
2625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2626   { (case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_try") 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; } &&
2635          { ac_try='test -s conftest.$ac_objext'
2636   { (case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641   (eval "$ac_try") 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; }; then
2645   ac_cv_prog_cc_g=yes
2646 else
2647   echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650         CFLAGS=""
2651       cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (ac_try="$ac_compile"
2668 case "(($ac_try" in
2669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670   *) ac_try_echo=$ac_try;;
2671 esac
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673   (eval "$ac_compile") 2>conftest.er1
2674   ac_status=$?
2675   grep -v '^ *+' conftest.er1 >conftest.err
2676   rm -f conftest.er1
2677   cat conftest.err >&5
2678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679   (exit $ac_status); } &&
2680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2681   { (case "(($ac_try" in
2682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683   *) ac_try_echo=$ac_try;;
2684 esac
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686   (eval "$ac_try") 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); }; } &&
2690          { ac_try='test -s conftest.$ac_objext'
2691   { (case "(($ac_try" in
2692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693   *) ac_try_echo=$ac_try;;
2694 esac
2695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2696   (eval "$ac_try") 2>&5
2697   ac_status=$?
2698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699   (exit $ac_status); }; }; then
2700   :
2701 else
2702   echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705         ac_c_werror_flag=$ac_save_c_werror_flag
2706          CFLAGS="-g"
2707          cat >conftest.$ac_ext <<_ACEOF
2708 /* confdefs.h.  */
2709 _ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h.  */
2713
2714 int
2715 main ()
2716 {
2717
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (ac_try="$ac_compile"
2724 case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_compile") 2>conftest.er1
2730   ac_status=$?
2731   grep -v '^ *+' conftest.er1 >conftest.err
2732   rm -f conftest.er1
2733   cat conftest.err >&5
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2737   { (case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742   (eval "$ac_try") 2>&5
2743   ac_status=$?
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); }; } &&
2746          { ac_try='test -s conftest.$ac_objext'
2747   { (case "(($ac_try" in
2748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749   *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752   (eval "$ac_try") 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; }; then
2756   ac_cv_prog_cc_g=yes
2757 else
2758   echo "$as_me: failed program was:" >&5
2759 sed 's/^/| /' conftest.$ac_ext >&5
2760
2761
2762 fi
2763
2764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 fi
2766
2767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2768 fi
2769
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771    ac_c_werror_flag=$ac_save_c_werror_flag
2772 fi
2773 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2775 if test "$ac_test_CFLAGS" = set; then
2776   CFLAGS=$ac_save_CFLAGS
2777 elif test $ac_cv_prog_cc_g = yes; then
2778   if test "$GCC" = yes; then
2779     CFLAGS="-g -O2"
2780   else
2781     CFLAGS="-g"
2782   fi
2783 else
2784   if test "$GCC" = yes; then
2785     CFLAGS="-O2"
2786   else
2787     CFLAGS=
2788   fi
2789 fi
2790 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2791 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2792 if test "${ac_cv_prog_cc_c89+set}" = set; then
2793   echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795   ac_cv_prog_cc_c89=no
2796 ac_save_CC=$CC
2797 cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h.  */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h.  */
2803 #include <stdarg.h>
2804 #include <stdio.h>
2805 #include <sys/types.h>
2806 #include <sys/stat.h>
2807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2808 struct buf { int x; };
2809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2810 static char *e (p, i)
2811      char **p;
2812      int i;
2813 {
2814   return p[i];
2815 }
2816 static char *f (char * (*g) (char **, int), char **p, ...)
2817 {
2818   char *s;
2819   va_list v;
2820   va_start (v,p);
2821   s = g (p, va_arg (v,int));
2822   va_end (v);
2823   return s;
2824 }
2825
2826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2827    function prototypes and stuff, but not '\xHH' hex character constants.
2828    These don't provoke an error unfortunately, instead are silently treated
2829    as 'x'.  The following induces an error, until -std is added to get
2830    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2831    array size at least.  It's necessary to write '\x00'==0 to get something
2832    that's true only with -std.  */
2833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2834
2835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2836    inside strings and character constants.  */
2837 #define FOO(x) 'x'
2838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2839
2840 int test (int i, double x);
2841 struct s1 {int (*f) (int a);};
2842 struct s2 {int (*f) (double a);};
2843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2844 int argc;
2845 char **argv;
2846 int
2847 main ()
2848 {
2849 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2850   ;
2851   return 0;
2852 }
2853 _ACEOF
2854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2855         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2856 do
2857   CC="$ac_save_CC $ac_arg"
2858   rm -f conftest.$ac_objext
2859 if { (ac_try="$ac_compile"
2860 case "(($ac_try" in
2861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862   *) ac_try_echo=$ac_try;;
2863 esac
2864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865   (eval "$ac_compile") 2>conftest.er1
2866   ac_status=$?
2867   grep -v '^ *+' conftest.er1 >conftest.err
2868   rm -f conftest.er1
2869   cat conftest.err >&5
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } &&
2872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2873   { (case "(($ac_try" in
2874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875   *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878   (eval "$ac_try") 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); }; } &&
2882          { ac_try='test -s conftest.$ac_objext'
2883   { (case "(($ac_try" in
2884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885   *) ac_try_echo=$ac_try;;
2886 esac
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888   (eval "$ac_try") 2>&5
2889   ac_status=$?
2890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); }; }; then
2892   ac_cv_prog_cc_c89=$ac_arg
2893 else
2894   echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2896
2897
2898 fi
2899
2900 rm -f core conftest.err conftest.$ac_objext
2901   test "x$ac_cv_prog_cc_c89" != "xno" && break
2902 done
2903 rm -f conftest.$ac_ext
2904 CC=$ac_save_CC
2905
2906 fi
2907 # AC_CACHE_VAL
2908 case "x$ac_cv_prog_cc_c89" in
2909   x)
2910     { echo "$as_me:$LINENO: result: none needed" >&5
2911 echo "${ECHO_T}none needed" >&6; } ;;
2912   xno)
2913     { echo "$as_me:$LINENO: result: unsupported" >&5
2914 echo "${ECHO_T}unsupported" >&6; } ;;
2915   *)
2916     CC="$CC $ac_cv_prog_cc_c89"
2917     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2918 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2919 esac
2920
2921
2922 ac_ext=c
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927
2928 ac_ext=cpp
2929 ac_cpp='$CXXCPP $CPPFLAGS'
2930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2933 if test -z "$CXX"; then
2934   if test -n "$CCC"; then
2935     CXX=$CCC
2936   else
2937     if test -n "$ac_tool_prefix"; then
2938   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2939   do
2940     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_CXX+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   if test -n "$CXX"; then
2948   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955   for ac_exec_ext in '' $ac_executable_extensions; do
2956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2957     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 CXX=$ac_cv_prog_CXX
2968 if test -n "$CXX"; then
2969   { echo "$as_me:$LINENO: result: $CXX" >&5
2970 echo "${ECHO_T}$CXX" >&6; }
2971 else
2972   { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2974 fi
2975
2976
2977     test -n "$CXX" && break
2978   done
2979 fi
2980 if test -z "$CXX"; then
2981   ac_ct_CXX=$CXX
2982   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2983 do
2984   # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   if test -n "$ac_ct_CXX"; then
2992   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2993 else
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 for as_dir in $PATH
2996 do
2997   IFS=$as_save_IFS
2998   test -z "$as_dir" && as_dir=.
2999   for ac_exec_ext in '' $ac_executable_extensions; do
3000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3001     ac_cv_prog_ac_ct_CXX="$ac_prog"
3002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3003     break 2
3004   fi
3005 done
3006 done
3007 IFS=$as_save_IFS
3008
3009 fi
3010 fi
3011 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3012 if test -n "$ac_ct_CXX"; then
3013   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3014 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3015 else
3016   { echo "$as_me:$LINENO: result: no" >&5
3017 echo "${ECHO_T}no" >&6; }
3018 fi
3019
3020
3021   test -n "$ac_ct_CXX" && break
3022 done
3023
3024   if test "x$ac_ct_CXX" = x; then
3025     CXX="g++"
3026   else
3027     case $cross_compiling:$ac_tool_warned in
3028 yes:)
3029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3030 whose name does not start with the host triplet.  If you think this
3031 configuration is useful to you, please write to autoconf@gnu.org." >&5
3032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3033 whose name does not start with the host triplet.  If you think this
3034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3035 ac_tool_warned=yes ;;
3036 esac
3037     CXX=$ac_ct_CXX
3038   fi
3039 fi
3040
3041   fi
3042 fi
3043 # Provide some information about the compiler.
3044 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3045 ac_compiler=`set X $ac_compile; echo $2`
3046 { (ac_try="$ac_compiler --version >&5"
3047 case "(($ac_try" in
3048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049   *) ac_try_echo=$ac_try;;
3050 esac
3051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3052   (eval "$ac_compiler --version >&5") 2>&5
3053   ac_status=$?
3054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055   (exit $ac_status); }
3056 { (ac_try="$ac_compiler -v >&5"
3057 case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_compiler -v >&5") 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }
3066 { (ac_try="$ac_compiler -V >&5"
3067 case "(($ac_try" in
3068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069   *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072   (eval "$ac_compiler -V >&5") 2>&5
3073   ac_status=$?
3074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075   (exit $ac_status); }
3076
3077 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3078 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3079 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3080   echo $ECHO_N "(cached) $ECHO_C" >&6
3081 else
3082   cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092 #ifndef __GNUC__
3093        choke me
3094 #endif
3095
3096   ;
3097   return 0;
3098 }
3099 _ACEOF
3100 rm -f conftest.$ac_objext
3101 if { (ac_try="$ac_compile"
3102 case "(($ac_try" in
3103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104   *) ac_try_echo=$ac_try;;
3105 esac
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107   (eval "$ac_compile") 2>conftest.er1
3108   ac_status=$?
3109   grep -v '^ *+' conftest.er1 >conftest.err
3110   rm -f conftest.er1
3111   cat conftest.err >&5
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); } &&
3114          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3115   { (case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_try") 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; } &&
3124          { ac_try='test -s conftest.$ac_objext'
3125   { (case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_try") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; }; then
3134   ac_compiler_gnu=yes
3135 else
3136   echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3138
3139         ac_compiler_gnu=no
3140 fi
3141
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3144
3145 fi
3146 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3147 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3148 GXX=`test $ac_compiler_gnu = yes && echo yes`
3149 ac_test_CXXFLAGS=${CXXFLAGS+set}
3150 ac_save_CXXFLAGS=$CXXFLAGS
3151 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3152 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3153 if test "${ac_cv_prog_cxx_g+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3157    ac_cxx_werror_flag=yes
3158    ac_cv_prog_cxx_g=no
3159    CXXFLAGS="-g"
3160    cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } &&
3189          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; } &&
3199          { ac_try='test -s conftest.$ac_objext'
3200   { (case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_try") 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; }; then
3209   ac_cv_prog_cxx_g=yes
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214         CXXFLAGS=""
3215       cat >conftest.$ac_ext <<_ACEOF
3216 /* confdefs.h.  */
3217 _ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225
3226   ;
3227   return 0;
3228 }
3229 _ACEOF
3230 rm -f conftest.$ac_objext
3231 if { (ac_try="$ac_compile"
3232 case "(($ac_try" in
3233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234   *) ac_try_echo=$ac_try;;
3235 esac
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237   (eval "$ac_compile") 2>conftest.er1
3238   ac_status=$?
3239   grep -v '^ *+' conftest.er1 >conftest.err
3240   rm -f conftest.er1
3241   cat conftest.err >&5
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); } &&
3244          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3245   { (case "(($ac_try" in
3246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247   *) ac_try_echo=$ac_try;;
3248 esac
3249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3250   (eval "$ac_try") 2>&5
3251   ac_status=$?
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }; } &&
3254          { ac_try='test -s conftest.$ac_objext'
3255   { (case "(($ac_try" in
3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257   *) ac_try_echo=$ac_try;;
3258 esac
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260   (eval "$ac_try") 2>&5
3261   ac_status=$?
3262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }; }; then
3264   :
3265 else
3266   echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3270          CXXFLAGS="-g"
3271          cat >conftest.$ac_ext <<_ACEOF
3272 /* confdefs.h.  */
3273 _ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h.  */
3277
3278 int
3279 main ()
3280 {
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 rm -f conftest.$ac_objext
3287 if { (ac_try="$ac_compile"
3288 case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_compile") 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } &&
3300          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3301   { (case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306   (eval "$ac_try") 2>&5
3307   ac_status=$?
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); }; } &&
3310          { ac_try='test -s conftest.$ac_objext'
3311   { (case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316   (eval "$ac_try") 2>&5
3317   ac_status=$?
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); }; }; then
3320   ac_cv_prog_cxx_g=yes
3321 else
3322   echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325
3326 fi
3327
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 fi
3330
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 fi
3333
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3336 fi
3337 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3339 if test "$ac_test_CXXFLAGS" = set; then
3340   CXXFLAGS=$ac_save_CXXFLAGS
3341 elif test $ac_cv_prog_cxx_g = yes; then
3342   if test "$GXX" = yes; then
3343     CXXFLAGS="-g -O2"
3344   else
3345     CXXFLAGS="-g"
3346   fi
3347 else
3348   if test "$GXX" = yes; then
3349     CXXFLAGS="-O2"
3350   else
3351     CXXFLAGS=
3352   fi
3353 fi
3354 ac_ext=c
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359
3360
3361
3362 ac_ext=c
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3368 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3369 # On Suns, sometimes $CPP names a directory.
3370 if test -n "$CPP" && test -d "$CPP"; then
3371   CPP=
3372 fi
3373 if test -z "$CPP"; then
3374   if test "${ac_cv_prog_CPP+set}" = set; then
3375   echo $ECHO_N "(cached) $ECHO_C" >&6
3376 else
3377       # Double quotes because CPP needs to be expanded
3378     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3379     do
3380       ac_preproc_ok=false
3381 for ac_c_preproc_warn_flag in '' yes
3382 do
3383   # Use a header file that comes with gcc, so configuring glibc
3384   # with a fresh cross-compiler works.
3385   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3386   # <limits.h> exists even on freestanding compilers.
3387   # On the NeXT, cc -E runs the code through the compiler's parser,
3388   # not just through cpp. "Syntax error" is here to catch this case.
3389   cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h.  */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h.  */
3395 #ifdef __STDC__
3396 # include <limits.h>
3397 #else
3398 # include <assert.h>
3399 #endif
3400                      Syntax error
3401 _ACEOF
3402 if { (ac_try="$ac_cpp conftest.$ac_ext"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } >/dev/null; then
3415   if test -s conftest.err; then
3416     ac_cpp_err=$ac_c_preproc_warn_flag
3417     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418   else
3419     ac_cpp_err=
3420   fi
3421 else
3422   ac_cpp_err=yes
3423 fi
3424 if test -z "$ac_cpp_err"; then
3425   :
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430   # Broken: fails on valid input.
3431 continue
3432 fi
3433
3434 rm -f conftest.err conftest.$ac_ext
3435
3436   # OK, works on sane cases.  Now check whether nonexistent headers
3437   # can be detected and how.
3438   cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h.  */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h.  */
3444 #include <ac_nonexistent.h>
3445 _ACEOF
3446 if { (ac_try="$ac_cpp conftest.$ac_ext"
3447 case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3453   ac_status=$?
3454   grep -v '^ *+' conftest.er1 >conftest.err
3455   rm -f conftest.er1
3456   cat conftest.err >&5
3457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458   (exit $ac_status); } >/dev/null; then
3459   if test -s conftest.err; then
3460     ac_cpp_err=$ac_c_preproc_warn_flag
3461     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462   else
3463     ac_cpp_err=
3464   fi
3465 else
3466   ac_cpp_err=yes
3467 fi
3468 if test -z "$ac_cpp_err"; then
3469   # Broken: success on invalid input.
3470 continue
3471 else
3472   echo "$as_me: failed program was:" >&5
3473 sed 's/^/| /' conftest.$ac_ext >&5
3474
3475   # Passes both tests.
3476 ac_preproc_ok=:
3477 break
3478 fi
3479
3480 rm -f conftest.err conftest.$ac_ext
3481
3482 done
3483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484 rm -f conftest.err conftest.$ac_ext
3485 if $ac_preproc_ok; then
3486   break
3487 fi
3488
3489     done
3490     ac_cv_prog_CPP=$CPP
3491
3492 fi
3493   CPP=$ac_cv_prog_CPP
3494 else
3495   ac_cv_prog_CPP=$CPP
3496 fi
3497 { echo "$as_me:$LINENO: result: $CPP" >&5
3498 echo "${ECHO_T}$CPP" >&6; }
3499 ac_preproc_ok=false
3500 for ac_c_preproc_warn_flag in '' yes
3501 do
3502   # Use a header file that comes with gcc, so configuring glibc
3503   # with a fresh cross-compiler works.
3504   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3505   # <limits.h> exists even on freestanding compilers.
3506   # On the NeXT, cc -E runs the code through the compiler's parser,
3507   # not just through cpp. "Syntax error" is here to catch this case.
3508   cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h.  */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h.  */
3514 #ifdef __STDC__
3515 # include <limits.h>
3516 #else
3517 # include <assert.h>
3518 #endif
3519                      Syntax error
3520 _ACEOF
3521 if { (ac_try="$ac_cpp conftest.$ac_ext"
3522 case "(($ac_try" in
3523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524   *) ac_try_echo=$ac_try;;
3525 esac
3526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528   ac_status=$?
3529   grep -v '^ *+' conftest.er1 >conftest.err
3530   rm -f conftest.er1
3531   cat conftest.err >&5
3532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); } >/dev/null; then
3534   if test -s conftest.err; then
3535     ac_cpp_err=$ac_c_preproc_warn_flag
3536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3537   else
3538     ac_cpp_err=
3539   fi
3540 else
3541   ac_cpp_err=yes
3542 fi
3543 if test -z "$ac_cpp_err"; then
3544   :
3545 else
3546   echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549   # Broken: fails on valid input.
3550 continue
3551 fi
3552
3553 rm -f conftest.err conftest.$ac_ext
3554
3555   # OK, works on sane cases.  Now check whether nonexistent headers
3556   # can be detected and how.
3557   cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h.  */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h.  */
3563 #include <ac_nonexistent.h>
3564 _ACEOF
3565 if { (ac_try="$ac_cpp conftest.$ac_ext"
3566 case "(($ac_try" in
3567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568   *) ac_try_echo=$ac_try;;
3569 esac
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3572   ac_status=$?
3573   grep -v '^ *+' conftest.er1 >conftest.err
3574   rm -f conftest.er1
3575   cat conftest.err >&5
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); } >/dev/null; then
3578   if test -s conftest.err; then
3579     ac_cpp_err=$ac_c_preproc_warn_flag
3580     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581   else
3582     ac_cpp_err=
3583   fi
3584 else
3585   ac_cpp_err=yes
3586 fi
3587 if test -z "$ac_cpp_err"; then
3588   # Broken: success on invalid input.
3589 continue
3590 else
3591   echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594   # Passes both tests.
3595 ac_preproc_ok=:
3596 break
3597 fi
3598
3599 rm -f conftest.err conftest.$ac_ext
3600
3601 done
3602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603 rm -f conftest.err conftest.$ac_ext
3604 if $ac_preproc_ok; then
3605   :
3606 else
3607   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3608 See \`config.log' for more details." >&5
3609 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3610 See \`config.log' for more details." >&2;}
3611    { (exit 1); exit 1; }; }
3612 fi
3613
3614 ac_ext=c
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619
3620
3621 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3622 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3623 if test "${ac_cv_path_GREP+set}" = set; then
3624   echo $ECHO_N "(cached) $ECHO_C" >&6
3625 else
3626   # Extract the first word of "grep ggrep" to use in msg output
3627 if test -z "$GREP"; then
3628 set dummy grep ggrep; ac_prog_name=$2
3629 if test "${ac_cv_path_GREP+set}" = set; then
3630   echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632   ac_path_GREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636 do
3637   IFS=$as_save_IFS
3638   test -z "$as_dir" && as_dir=.
3639   for ac_prog in grep ggrep; do
3640   for ac_exec_ext in '' $ac_executable_extensions; do
3641     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3643     # Check for GNU ac_path_GREP and select it if it is found.
3644   # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3646 *GNU*)
3647   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3648 *)
3649   ac_count=0
3650   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3651   while :
3652   do
3653     cat "conftest.in" "conftest.in" >"conftest.tmp"
3654     mv "conftest.tmp" "conftest.in"
3655     cp "conftest.in" "conftest.nl"
3656     echo 'GREP' >> "conftest.nl"
3657     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659     ac_count=`expr $ac_count + 1`
3660     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661       # Best one so far, save it but keep looking for a better one
3662       ac_cv_path_GREP="$ac_path_GREP"
3663       ac_path_GREP_max=$ac_count
3664     fi
3665     # 10*(2^10) chars as input seems more than enough
3666     test $ac_count -gt 10 && break
3667   done
3668   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669 esac
3670
3671
3672     $ac_path_GREP_found && break 3
3673   done
3674 done
3675
3676 done
3677 IFS=$as_save_IFS
3678
3679
3680 fi
3681
3682 GREP="$ac_cv_path_GREP"
3683 if test -z "$GREP"; then
3684   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3685 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3686    { (exit 1); exit 1; }; }
3687 fi
3688
3689 else
3690   ac_cv_path_GREP=$GREP
3691 fi
3692
3693
3694 fi
3695 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3696 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3697  GREP="$ac_cv_path_GREP"
3698
3699
3700 { echo "$as_me:$LINENO: checking for egrep" >&5
3701 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3702 if test "${ac_cv_path_EGREP+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3706    then ac_cv_path_EGREP="$GREP -E"
3707    else
3708      # Extract the first word of "egrep" to use in msg output
3709 if test -z "$EGREP"; then
3710 set dummy egrep; ac_prog_name=$2
3711 if test "${ac_cv_path_EGREP+set}" = set; then
3712   echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714   ac_path_EGREP_found=false
3715 # Loop through the user's path and test for each of PROGNAME-LIST
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721   for ac_prog in egrep; do
3722   for ac_exec_ext in '' $ac_executable_extensions; do
3723     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3724     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3725     # Check for GNU ac_path_EGREP and select it if it is found.
3726   # Check for GNU $ac_path_EGREP
3727 case `"$ac_path_EGREP" --version 2>&1` in
3728 *GNU*)
3729   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3730 *)
3731   ac_count=0
3732   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3733   while :
3734   do
3735     cat "conftest.in" "conftest.in" >"conftest.tmp"
3736     mv "conftest.tmp" "conftest.in"
3737     cp "conftest.in" "conftest.nl"
3738     echo 'EGREP' >> "conftest.nl"
3739     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3740     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3741     ac_count=`expr $ac_count + 1`
3742     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3743       # Best one so far, save it but keep looking for a better one
3744       ac_cv_path_EGREP="$ac_path_EGREP"
3745       ac_path_EGREP_max=$ac_count
3746     fi
3747     # 10*(2^10) chars as input seems more than enough
3748     test $ac_count -gt 10 && break
3749   done
3750   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3751 esac
3752
3753
3754     $ac_path_EGREP_found && break 3
3755   done
3756 done
3757
3758 done
3759 IFS=$as_save_IFS
3760
3761
3762 fi
3763
3764 EGREP="$ac_cv_path_EGREP"
3765 if test -z "$EGREP"; then
3766   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3767 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3768    { (exit 1); exit 1; }; }
3769 fi
3770
3771 else
3772   ac_cv_path_EGREP=$EGREP
3773 fi
3774
3775
3776    fi
3777 fi
3778 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3779 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3780  EGREP="$ac_cv_path_EGREP"
3781
3782
3783
3784 { echo "$as_me:$LINENO: checking for AIX" >&5
3785 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3786 cat >conftest.$ac_ext <<_ACEOF
3787 /* confdefs.h.  */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h.  */
3792 #ifdef _AIX
3793   yes
3794 #endif
3795
3796 _ACEOF
3797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3798   $EGREP "yes" >/dev/null 2>&1; then
3799   { echo "$as_me:$LINENO: result: yes" >&5
3800 echo "${ECHO_T}yes" >&6; }
3801 cat >>confdefs.h <<\_ACEOF
3802 #define _ALL_SOURCE 1
3803 _ACEOF
3804
3805 else
3806   { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3808 fi
3809 rm -f conftest*
3810
3811
3812
3813 if test $ac_cv_c_compiler_gnu = yes; then
3814     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3815 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3816 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3817   echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819     ac_pattern="Autoconf.*'x'"
3820   cat >conftest.$ac_ext <<_ACEOF
3821 /* confdefs.h.  */
3822 _ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h.  */
3826 #include <sgtty.h>
3827 Autoconf TIOCGETP
3828 _ACEOF
3829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3830   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3831   ac_cv_prog_gcc_traditional=yes
3832 else
3833   ac_cv_prog_gcc_traditional=no
3834 fi
3835 rm -f conftest*
3836
3837
3838   if test $ac_cv_prog_gcc_traditional = no; then
3839     cat >conftest.$ac_ext <<_ACEOF
3840 /* confdefs.h.  */
3841 _ACEOF
3842 cat confdefs.h >>conftest.$ac_ext
3843 cat >>conftest.$ac_ext <<_ACEOF
3844 /* end confdefs.h.  */
3845 #include <termio.h>
3846 Autoconf TCGETA
3847 _ACEOF
3848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3849   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3850   ac_cv_prog_gcc_traditional=yes
3851 fi
3852 rm -f conftest*
3853
3854   fi
3855 fi
3856 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3857 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3858   if test $ac_cv_prog_gcc_traditional = yes; then
3859     CC="$CC -traditional"
3860   fi
3861 fi
3862
3863 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3864 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3865 if test "${ac_cv_prog_suncc+set}" = set; then
3866   echo $ECHO_N "(cached) $ECHO_C" >&6
3867 else
3868   cat > conftest.c <<EOF
3869 #ifdef __SUNPRO_C
3870   yes;
3871 #endif
3872 EOF
3873 if { ac_try='${CC-cc} -E conftest.c'
3874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875   (eval $ac_try) 2>&5
3876   ac_status=$?
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3879   ac_cv_prog_suncc=yes
3880 else
3881   ac_cv_prog_suncc=no
3882 fi
3883 fi
3884 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3885 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3886 if test -n "$ac_tool_prefix"; then
3887   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3888 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3891 if test "${ac_cv_prog_RANLIB+set}" = set; then
3892   echo $ECHO_N "(cached) $ECHO_C" >&6
3893 else
3894   if test -n "$RANLIB"; then
3895   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3896 else
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 for as_dir in $PATH
3899 do
3900   IFS=$as_save_IFS
3901   test -z "$as_dir" && as_dir=.
3902   for ac_exec_ext in '' $ac_executable_extensions; do
3903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3904     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3905     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3906     break 2
3907   fi
3908 done
3909 done
3910 IFS=$as_save_IFS
3911
3912 fi
3913 fi
3914 RANLIB=$ac_cv_prog_RANLIB
3915 if test -n "$RANLIB"; then
3916   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3917 echo "${ECHO_T}$RANLIB" >&6; }
3918 else
3919   { echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6; }
3921 fi
3922
3923
3924 fi
3925 if test -z "$ac_cv_prog_RANLIB"; then
3926   ac_ct_RANLIB=$RANLIB
3927   # Extract the first word of "ranlib", so it can be a program name with args.
3928 set dummy ranlib; ac_word=$2
3929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3931 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934   if test -n "$ac_ct_RANLIB"; then
3935   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940   IFS=$as_save_IFS
3941   test -z "$as_dir" && as_dir=.
3942   for ac_exec_ext in '' $ac_executable_extensions; do
3943   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3944     ac_cv_prog_ac_ct_RANLIB="ranlib"
3945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946     break 2
3947   fi
3948 done
3949 done
3950 IFS=$as_save_IFS
3951
3952 fi
3953 fi
3954 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3955 if test -n "$ac_ct_RANLIB"; then
3956   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3957 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3958 else
3959   { echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6; }
3961 fi
3962
3963   if test "x$ac_ct_RANLIB" = x; then
3964     RANLIB=":"
3965   else
3966     case $cross_compiling:$ac_tool_warned in
3967 yes:)
3968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3969 whose name does not start with the host triplet.  If you think this
3970 configuration is useful to you, please write to autoconf@gnu.org." >&5
3971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3972 whose name does not start with the host triplet.  If you think this
3973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3974 ac_tool_warned=yes ;;
3975 esac
3976     RANLIB=$ac_ct_RANLIB
3977   fi
3978 else
3979   RANLIB="$ac_cv_prog_RANLIB"
3980 fi
3981
3982
3983 # Check whether --enable-largefile was given.
3984 if test "${enable_largefile+set}" = set; then
3985   enableval=$enable_largefile;
3986 fi
3987
3988 if test "$enable_largefile" != no; then
3989
3990   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3991 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3992 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3993   echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995   ac_cv_sys_largefile_CC=no
3996      if test "$GCC" != yes; then
3997        ac_save_CC=$CC
3998        while :; do
3999          # IRIX 6.2 and later do not support large files by default,
4000          # so use the C compiler's -n32 option if that helps.
4001          cat >conftest.$ac_ext <<_ACEOF
4002 /* confdefs.h.  */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h.  */
4007 #include <sys/types.h>
4008  /* Check that off_t can represent 2**63 - 1 correctly.
4009     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4010     since some C++ compilers masquerading as C compilers
4011     incorrectly reject 9223372036854775807.  */
4012 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4013   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4014                        && LARGE_OFF_T % 2147483647 == 1)
4015                       ? 1 : -1];
4016 int
4017 main ()
4018 {
4019
4020   ;
4021   return 0;
4022 }
4023 _ACEOF
4024          rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4026 case "(($ac_try" in
4027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028   *) ac_try_echo=$ac_try;;
4029 esac
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031   (eval "$ac_compile") 2>conftest.er1
4032   ac_status=$?
4033   grep -v '^ *+' conftest.er1 >conftest.err
4034   rm -f conftest.er1
4035   cat conftest.err >&5
4036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037   (exit $ac_status); } &&
4038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4039   { (case "(($ac_try" in
4040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041   *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044   (eval "$ac_try") 2>&5
4045   ac_status=$?
4046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047   (exit $ac_status); }; } &&
4048          { ac_try='test -s conftest.$ac_objext'
4049   { (case "(($ac_try" in
4050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051   *) ac_try_echo=$ac_try;;
4052 esac
4053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054   (eval "$ac_try") 2>&5
4055   ac_status=$?
4056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057   (exit $ac_status); }; }; then
4058   break
4059 else
4060   echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4062
4063
4064 fi
4065
4066 rm -f core conftest.err conftest.$ac_objext
4067          CC="$CC -n32"
4068          rm -f conftest.$ac_objext
4069 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4076   ac_status=$?
4077   grep -v '^ *+' conftest.er1 >conftest.err
4078   rm -f conftest.er1
4079   cat conftest.err >&5
4080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081   (exit $ac_status); } &&
4082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4083   { (case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088   (eval "$ac_try") 2>&5
4089   ac_status=$?
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); }; } &&
4092          { ac_try='test -s conftest.$ac_objext'
4093   { (case "(($ac_try" in
4094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095   *) ac_try_echo=$ac_try;;
4096 esac
4097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4098   (eval "$ac_try") 2>&5
4099   ac_status=$?
4100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101   (exit $ac_status); }; }; then
4102   ac_cv_sys_largefile_CC=' -n32'; break
4103 else
4104   echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4106
4107
4108 fi
4109
4110 rm -f core conftest.err conftest.$ac_objext
4111          break
4112        done
4113        CC=$ac_save_CC
4114        rm -f conftest.$ac_ext
4115     fi
4116 fi
4117 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4118 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4119   if test "$ac_cv_sys_largefile_CC" != no; then
4120     CC=$CC$ac_cv_sys_largefile_CC
4121   fi
4122
4123   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4124 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4125 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   while :; do
4129   ac_cv_sys_file_offset_bits=no
4130   cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136 #include <sys/types.h>
4137  /* Check that off_t can represent 2**63 - 1 correctly.
4138     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4139     since some C++ compilers masquerading as C compilers
4140     incorrectly reject 9223372036854775807.  */
4141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4142   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4143                        && LARGE_OFF_T % 2147483647 == 1)
4144                       ? 1 : -1];
4145 int
4146 main ()
4147 {
4148
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.$ac_objext
4154 if { (ac_try="$ac_compile"
4155 case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_compile") 2>conftest.er1
4161   ac_status=$?
4162   grep -v '^ *+' conftest.er1 >conftest.err
4163   rm -f conftest.er1
4164   cat conftest.err >&5
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } &&
4167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4168   { (case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173   (eval "$ac_try") 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; } &&
4177          { ac_try='test -s conftest.$ac_objext'
4178   { (case "(($ac_try" in
4179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180   *) ac_try_echo=$ac_try;;
4181 esac
4182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4183   (eval "$ac_try") 2>&5
4184   ac_status=$?
4185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); }; }; then
4187   break
4188 else
4189   echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4191
4192
4193 fi
4194
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196   cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h.  */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h.  */
4202 #define _FILE_OFFSET_BITS 64
4203 #include <sys/types.h>
4204  /* Check that off_t can represent 2**63 - 1 correctly.
4205     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4206     since some C++ compilers masquerading as C compilers
4207     incorrectly reject 9223372036854775807.  */
4208 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4209   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4210                        && LARGE_OFF_T % 2147483647 == 1)
4211                       ? 1 : -1];
4212 int
4213 main ()
4214 {
4215
4216   ;
4217   return 0;
4218 }
4219 _ACEOF
4220 rm -f conftest.$ac_objext
4221 if { (ac_try="$ac_compile"
4222 case "(($ac_try" in
4223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224   *) ac_try_echo=$ac_try;;
4225 esac
4226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227   (eval "$ac_compile") 2>conftest.er1
4228   ac_status=$?
4229   grep -v '^ *+' conftest.er1 >conftest.err
4230   rm -f conftest.er1
4231   cat conftest.err >&5
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } &&
4234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4235   { (case "(($ac_try" in
4236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4237   *) ac_try_echo=$ac_try;;
4238 esac
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240   (eval "$ac_try") 2>&5
4241   ac_status=$?
4242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); }; } &&
4244          { ac_try='test -s conftest.$ac_objext'
4245   { (case "(($ac_try" in
4246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247   *) ac_try_echo=$ac_try;;
4248 esac
4249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250   (eval "$ac_try") 2>&5
4251   ac_status=$?
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); }; }; then
4254   ac_cv_sys_file_offset_bits=64; break
4255 else
4256   echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259
4260 fi
4261
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263   break
4264 done
4265 fi
4266 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4267 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4268 if test "$ac_cv_sys_file_offset_bits" != no; then
4269
4270 cat >>confdefs.h <<_ACEOF
4271 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4272 _ACEOF
4273
4274 fi
4275 rm -f conftest*
4276   { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4277 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4278 if test "${ac_cv_sys_large_files+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   while :; do
4282   ac_cv_sys_large_files=no
4283   cat >conftest.$ac_ext <<_ACEOF
4284 /* confdefs.h.  */
4285 _ACEOF
4286 cat confdefs.h >>conftest.$ac_ext
4287 cat >>conftest.$ac_ext <<_ACEOF
4288 /* end confdefs.h.  */
4289 #include <sys/types.h>
4290  /* Check that off_t can represent 2**63 - 1 correctly.
4291     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4292     since some C++ compilers masquerading as C compilers
4293     incorrectly reject 9223372036854775807.  */
4294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4295   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4296                        && LARGE_OFF_T % 2147483647 == 1)
4297                       ? 1 : -1];
4298 int
4299 main ()
4300 {
4301
4302   ;
4303   return 0;
4304 }
4305 _ACEOF
4306 rm -f conftest.$ac_objext
4307 if { (ac_try="$ac_compile"
4308 case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_compile") 2>conftest.er1
4314   ac_status=$?
4315   grep -v '^ *+' conftest.er1 >conftest.err
4316   rm -f conftest.er1
4317   cat conftest.err >&5
4318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319   (exit $ac_status); } &&
4320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4321   { (case "(($ac_try" in
4322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323   *) ac_try_echo=$ac_try;;
4324 esac
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326   (eval "$ac_try") 2>&5
4327   ac_status=$?
4328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329   (exit $ac_status); }; } &&
4330          { ac_try='test -s conftest.$ac_objext'
4331   { (case "(($ac_try" in
4332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333   *) ac_try_echo=$ac_try;;
4334 esac
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336   (eval "$ac_try") 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); }; }; then
4340   break
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345
4346 fi
4347
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349   cat >conftest.$ac_ext <<_ACEOF
4350 /* confdefs.h.  */
4351 _ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h.  */
4355 #define _LARGE_FILES 1
4356 #include <sys/types.h>
4357  /* Check that off_t can represent 2**63 - 1 correctly.
4358     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4359     since some C++ compilers masquerading as C compilers
4360     incorrectly reject 9223372036854775807.  */
4361 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4362   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4363                        && LARGE_OFF_T % 2147483647 == 1)
4364                       ? 1 : -1];
4365 int
4366 main ()
4367 {
4368
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest.$ac_objext
4374 if { (ac_try="$ac_compile"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380   (eval "$ac_compile") 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } &&
4387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388   { (case "(($ac_try" in
4389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390   *) ac_try_echo=$ac_try;;
4391 esac
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393   (eval "$ac_try") 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; } &&
4397          { ac_try='test -s conftest.$ac_objext'
4398   { (case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; }; then
4407   ac_cv_sys_large_files=1; break
4408 else
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412
4413 fi
4414
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416   break
4417 done
4418 fi
4419 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4420 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4421 if test "$ac_cv_sys_large_files" != no; then
4422
4423 cat >>confdefs.h <<_ACEOF
4424 #define _LARGE_FILES $ac_cv_sys_large_files
4425 _ACEOF
4426
4427 fi
4428 rm -f conftest*
4429 fi
4430
4431
4432 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4433 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4434 if test "${ac_cv_header_stdc+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h.  */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h.  */
4443 #include <stdlib.h>
4444 #include <stdarg.h>
4445 #include <string.h>
4446 #include <float.h>
4447
4448 int
4449 main ()
4450 {
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 rm -f conftest.$ac_objext
4457 if { (ac_try="$ac_compile"
4458 case "(($ac_try" in
4459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460   *) ac_try_echo=$ac_try;;
4461 esac
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463   (eval "$ac_compile") 2>conftest.er1
4464   ac_status=$?
4465   grep -v '^ *+' conftest.er1 >conftest.err
4466   rm -f conftest.er1
4467   cat conftest.err >&5
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); } &&
4470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4471   { (case "(($ac_try" in
4472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473   *) ac_try_echo=$ac_try;;
4474 esac
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476   (eval "$ac_try") 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); }; } &&
4480          { ac_try='test -s conftest.$ac_objext'
4481   { (case "(($ac_try" in
4482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483   *) ac_try_echo=$ac_try;;
4484 esac
4485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4486   (eval "$ac_try") 2>&5
4487   ac_status=$?
4488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); }; }; then
4490   ac_cv_header_stdc=yes
4491 else
4492   echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4494
4495         ac_cv_header_stdc=no
4496 fi
4497
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499
4500 if test $ac_cv_header_stdc = yes; then
4501   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4502   cat >conftest.$ac_ext <<_ACEOF
4503 /* confdefs.h.  */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h.  */
4508 #include <string.h>
4509
4510 _ACEOF
4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512   $EGREP "memchr" >/dev/null 2>&1; then
4513   :
4514 else
4515   ac_cv_header_stdc=no
4516 fi
4517 rm -f conftest*
4518
4519 fi
4520
4521 if test $ac_cv_header_stdc = yes; then
4522   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4523   cat >conftest.$ac_ext <<_ACEOF
4524 /* confdefs.h.  */
4525 _ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h.  */
4529 #include <stdlib.h>
4530
4531 _ACEOF
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533   $EGREP "free" >/dev/null 2>&1; then
4534   :
4535 else
4536   ac_cv_header_stdc=no
4537 fi
4538 rm -f conftest*
4539
4540 fi
4541
4542 if test $ac_cv_header_stdc = yes; then
4543   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4544   if test "$cross_compiling" = yes; then
4545   :
4546 else
4547   cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h.  */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h.  */
4553 #include <ctype.h>
4554 #include <stdlib.h>
4555 #if ((' ' & 0x0FF) == 0x020)
4556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4558 #else
4559 # define ISLOWER(c) \
4560                    (('a' <= (c) && (c) <= 'i') \
4561                      || ('j' <= (c) && (c) <= 'r') \
4562                      || ('s' <= (c) && (c) <= 'z'))
4563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4564 #endif
4565
4566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4567 int
4568 main ()
4569 {
4570   int i;
4571   for (i = 0; i < 256; i++)
4572     if (XOR (islower (i), ISLOWER (i))
4573         || toupper (i) != TOUPPER (i))
4574       return 2;
4575   return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest$ac_exeext
4579 if { (ac_try="$ac_link"
4580 case "(($ac_try" in
4581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582   *) ac_try_echo=$ac_try;;
4583 esac
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585   (eval "$ac_link") 2>&5
4586   ac_status=$?
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4589   { (case "(($ac_try" in
4590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591   *) ac_try_echo=$ac_try;;
4592 esac
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594   (eval "$ac_try") 2>&5
4595   ac_status=$?
4596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597   (exit $ac_status); }; }; then
4598   :
4599 else
4600   echo "$as_me: program exited with status $ac_status" >&5
4601 echo "$as_me: failed program was:" >&5
4602 sed 's/^/| /' conftest.$ac_ext >&5
4603
4604 ( exit $ac_status )
4605 ac_cv_header_stdc=no
4606 fi
4607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4608 fi
4609
4610
4611 fi
4612 fi
4613 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4615 if test $ac_cv_header_stdc = yes; then
4616
4617 cat >>confdefs.h <<\_ACEOF
4618 #define STDC_HEADERS 1
4619 _ACEOF
4620
4621 fi
4622
4623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634                   inttypes.h stdint.h unistd.h
4635 do
4636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4640   echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642   cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648 $ac_includes_default
4649
4650 #include <$ac_header>
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659   (eval "$ac_compile") 2>conftest.er1
4660   ac_status=$?
4661   grep -v '^ *+' conftest.er1 >conftest.err
4662   rm -f conftest.er1
4663   cat conftest.err >&5
4664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665   (exit $ac_status); } &&
4666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4667   { (case "(($ac_try" in
4668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669   *) ac_try_echo=$ac_try;;
4670 esac
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672   (eval "$ac_try") 2>&5
4673   ac_status=$?
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); }; } &&
4676          { ac_try='test -s conftest.$ac_objext'
4677   { (case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_try") 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; }; then
4686   eval "$as_ac_Header=yes"
4687 else
4688   echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4690
4691         eval "$as_ac_Header=no"
4692 fi
4693
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 fi
4696 ac_res=`eval echo '${'$as_ac_Header'}'`
4697                { echo "$as_me:$LINENO: result: $ac_res" >&5
4698 echo "${ECHO_T}$ac_res" >&6; }
4699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4700   cat >>confdefs.h <<_ACEOF
4701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4702 _ACEOF
4703
4704 fi
4705
4706 done
4707
4708
4709 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4710 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4711 if test "${ac_cv_c_bigendian+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   # See if sys/param.h defines the BYTE_ORDER macro.
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h.  */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h.  */
4721 #include <sys/types.h>
4722 #include <sys/param.h>
4723
4724 int
4725 main ()
4726 {
4727 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4728  bogus endian macros
4729 #endif
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 rm -f conftest.$ac_objext
4736 if { (ac_try="$ac_compile"
4737 case "(($ac_try" in
4738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739   *) ac_try_echo=$ac_try;;
4740 esac
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742   (eval "$ac_compile") 2>conftest.er1
4743   ac_status=$?
4744   grep -v '^ *+' conftest.er1 >conftest.err
4745   rm -f conftest.er1
4746   cat conftest.err >&5
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); } &&
4749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4750   { (case "(($ac_try" in
4751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752   *) ac_try_echo=$ac_try;;
4753 esac
4754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4755   (eval "$ac_try") 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; } &&
4759          { ac_try='test -s conftest.$ac_objext'
4760   { (case "(($ac_try" in
4761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762   *) ac_try_echo=$ac_try;;
4763 esac
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765   (eval "$ac_try") 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); }; }; then
4769   # It does; now see whether it defined to BIG_ENDIAN or not.
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h.  */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h.  */
4776 #include <sys/types.h>
4777 #include <sys/param.h>
4778
4779 int
4780 main ()
4781 {
4782 #if BYTE_ORDER != BIG_ENDIAN
4783  not big endian
4784 #endif
4785
4786   ;
4787   return 0;
4788 }
4789 _ACEOF
4790 rm -f conftest.$ac_objext
4791 if { (ac_try="$ac_compile"
4792 case "(($ac_try" in
4793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794   *) ac_try_echo=$ac_try;;
4795 esac
4796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797   (eval "$ac_compile") 2>conftest.er1
4798   ac_status=$?
4799   grep -v '^ *+' conftest.er1 >conftest.err
4800   rm -f conftest.er1
4801   cat conftest.err >&5
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); } &&
4804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4805   { (case "(($ac_try" in
4806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807   *) ac_try_echo=$ac_try;;
4808 esac
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810   (eval "$ac_try") 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; } &&
4814          { ac_try='test -s conftest.$ac_objext'
4815   { (case "(($ac_try" in
4816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817   *) ac_try_echo=$ac_try;;
4818 esac
4819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4820   (eval "$ac_try") 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; }; then
4824   ac_cv_c_bigendian=yes
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829         ac_cv_c_bigendian=no
4830 fi
4831
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837         # It does not; compile a test program.
4838 if test "$cross_compiling" = yes; then
4839   # try to guess the endianness by grepping values into an object file
4840   ac_cv_c_bigendian=unknown
4841   cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h.  */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h.  */
4847 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4848 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4849 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4850 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4851 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4852 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4853 int
4854 main ()
4855 {
4856  _ascii (); _ebcdic ();
4857   ;
4858   return 0;
4859 }
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (ac_try="$ac_compile"
4863 case "(($ac_try" in
4864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865   *) ac_try_echo=$ac_try;;
4866 esac
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868   (eval "$ac_compile") 2>conftest.er1
4869   ac_status=$?
4870   grep -v '^ *+' conftest.er1 >conftest.err
4871   rm -f conftest.er1
4872   cat conftest.err >&5
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } &&
4875          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4876   { (case "(($ac_try" in
4877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878   *) ac_try_echo=$ac_try;;
4879 esac
4880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4881   (eval "$ac_try") 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; } &&
4885          { ac_try='test -s conftest.$ac_objext'
4886   { (case "(($ac_try" in
4887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888   *) ac_try_echo=$ac_try;;
4889 esac
4890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891   (eval "$ac_try") 2>&5
4892   ac_status=$?
4893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894   (exit $ac_status); }; }; then
4895   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4896   ac_cv_c_bigendian=yes
4897 fi
4898 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4899   if test "$ac_cv_c_bigendian" = unknown; then
4900     ac_cv_c_bigendian=no
4901   else
4902     # finding both strings is unlikely to happen, but who knows?
4903     ac_cv_c_bigendian=unknown
4904   fi
4905 fi
4906 else
4907   echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4909
4910
4911 fi
4912
4913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914 else
4915   cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h.  */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h.  */
4921 $ac_includes_default
4922 int
4923 main ()
4924 {
4925
4926   /* Are we little or big endian?  From Harbison&Steele.  */
4927   union
4928   {
4929     long int l;
4930     char c[sizeof (long int)];
4931   } u;
4932   u.l = 1;
4933   return u.c[sizeof (long int) - 1] == 1;
4934
4935   ;
4936   return 0;
4937 }
4938 _ACEOF
4939 rm -f conftest$ac_exeext
4940 if { (ac_try="$ac_link"
4941 case "(($ac_try" in
4942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943   *) ac_try_echo=$ac_try;;
4944 esac
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946   (eval "$ac_link") 2>&5
4947   ac_status=$?
4948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4950   { (case "(($ac_try" in
4951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952   *) ac_try_echo=$ac_try;;
4953 esac
4954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955   (eval "$ac_try") 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }; }; then
4959   ac_cv_c_bigendian=no
4960 else
4961   echo "$as_me: program exited with status $ac_status" >&5
4962 echo "$as_me: failed program was:" >&5
4963 sed 's/^/| /' conftest.$ac_ext >&5
4964
4965 ( exit $ac_status )
4966 ac_cv_c_bigendian=yes
4967 fi
4968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4969 fi
4970
4971
4972 fi
4973
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 fi
4976 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4977 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4978 case $ac_cv_c_bigendian in
4979   yes)
4980
4981 cat >>confdefs.h <<\_ACEOF
4982 #define WORDS_BIGENDIAN 1
4983 _ACEOF
4984  ;;
4985   no)
4986      ;;
4987   *)
4988     { { echo "$as_me:$LINENO: error: unknown endianness
4989 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4990 echo "$as_me: error: unknown endianness
4991 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4992    { (exit 1); exit 1; }; } ;;
4993 esac
4994
4995
4996 # Extract the first word of "gmake", so it can be a program name with args.
4997 set dummy gmake; ac_word=$2
4998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5000 if test "${ac_cv_prog_GMAKE+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   if test -n "$GMAKE"; then
5004   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
5005 else
5006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011   for ac_exec_ext in '' $ac_executable_extensions; do
5012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5013     ac_cv_prog_GMAKE="yes"
5014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015     break 2
5016   fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
5022 fi
5023 fi
5024 GMAKE=$ac_cv_prog_GMAKE
5025 if test -n "$GMAKE"; then
5026   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5027 echo "${ECHO_T}$GMAKE" >&6; }
5028 else
5029   { echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6; }
5031 fi
5032
5033
5034 if test $GMAKE = no; then
5035   # Extract the first word of "make", so it can be a program name with args.
5036 set dummy make; ac_word=$2
5037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5039 if test "${ac_cv_path_MAKE+set}" = set; then
5040   echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042   case $MAKE in
5043   [\\/]* | ?:[\\/]*)
5044   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5045   ;;
5046   *)
5047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050   IFS=$as_save_IFS
5051   test -z "$as_dir" && as_dir=.
5052   for ac_exec_ext in '' $ac_executable_extensions; do
5053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5054     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056     break 2
5057   fi
5058 done
5059 done
5060 IFS=$as_save_IFS
5061
5062   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5063   ;;
5064 esac
5065 fi
5066 MAKE=$ac_cv_path_MAKE
5067 if test -n "$MAKE"; then
5068   { echo "$as_me:$LINENO: result: $MAKE" >&5
5069 echo "${ECHO_T}$MAKE" >&6; }
5070 else
5071   { echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6; }
5073 fi
5074
5075
5076 else
5077   # Extract the first word of "gmake", so it can be a program name with args.
5078 set dummy gmake; ac_word=$2
5079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5081 if test "${ac_cv_path_MAKE+set}" = set; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   case $MAKE in
5085   [\\/]* | ?:[\\/]*)
5086   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5087   ;;
5088   *)
5089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092   IFS=$as_save_IFS
5093   test -z "$as_dir" && as_dir=.
5094   for ac_exec_ext in '' $ac_executable_extensions; do
5095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5096     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5098     break 2
5099   fi
5100 done
5101 done
5102 IFS=$as_save_IFS
5103
5104   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5105   ;;
5106 esac
5107 fi
5108 MAKE=$ac_cv_path_MAKE
5109 if test -n "$MAKE"; then
5110   { echo "$as_me:$LINENO: result: $MAKE" >&5
5111 echo "${ECHO_T}$MAKE" >&6; }
5112 else
5113   { echo "$as_me:$LINENO: result: no" >&5
5114 echo "${ECHO_T}no" >&6; }
5115 fi
5116
5117
5118 fi
5119 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5120 if test -z "$makever"; then
5121   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
5122                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
5123 echo "$as_me: error: GNU Make is not installed.  Please download and install it
5124                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
5125    { (exit 1); exit 1; }; }
5126 fi
5127
5128   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
5129 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
5130 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   ac_check_lib_save_LIBS=$LIBS
5134 LIBS="-lltdl  $LIBS"
5135 cat >conftest.$ac_ext <<_ACEOF
5136 /* confdefs.h.  */
5137 _ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h.  */
5141
5142 /* Override any GCC internal prototype to avoid an error.
5143    Use char because int might match the return type of a GCC
5144    builtin and then its argument prototype would still apply.  */
5145 #ifdef __cplusplus
5146 extern "C"
5147 #endif
5148 char lt_dlinit ();
5149 int
5150 main ()
5151 {
5152 return lt_dlinit ();
5153   ;
5154   return 0;
5155 }
5156 _ACEOF
5157 rm -f conftest.$ac_objext conftest$ac_exeext
5158 if { (ac_try="$ac_link"
5159 case "(($ac_try" in
5160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161   *) ac_try_echo=$ac_try;;
5162 esac
5163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164   (eval "$ac_link") 2>conftest.er1
5165   ac_status=$?
5166   grep -v '^ *+' conftest.er1 >conftest.err
5167   rm -f conftest.er1
5168   cat conftest.err >&5
5169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170   (exit $ac_status); } &&
5171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5172   { (case "(($ac_try" in
5173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174   *) ac_try_echo=$ac_try;;
5175 esac
5176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5177   (eval "$ac_try") 2>&5
5178   ac_status=$?
5179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180   (exit $ac_status); }; } &&
5181          { ac_try='test -s conftest$ac_exeext'
5182   { (case "(($ac_try" in
5183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184   *) ac_try_echo=$ac_try;;
5185 esac
5186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5187   (eval "$ac_try") 2>&5
5188   ac_status=$?
5189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190   (exit $ac_status); }; }; then
5191   ac_cv_lib_ltdl_lt_dlinit=yes
5192 else
5193   echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196         ac_cv_lib_ltdl_lt_dlinit=no
5197 fi
5198
5199 rm -f core conftest.err conftest.$ac_objext \
5200       conftest$ac_exeext conftest.$ac_ext
5201 LIBS=$ac_check_lib_save_LIBS
5202 fi
5203 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5204 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5205 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
5206   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5207 else
5208   if test x"$enable_ltdl_install" = xno; then
5209      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
5210 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5211    else
5212      enable_ltdl_install=yes
5213    fi
5214
5215 fi
5216
5217   if test x"$enable_ltdl_install" = x"yes"; then
5218     ac_configure_args="$ac_configure_args --enable-ltdl-install"
5219     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5220     LTDLINCL='-I${top_srcdir}/''libltdl'
5221   else
5222     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5223     LIBLTDL="-lltdl"
5224     LTDLINCL=
5225   fi
5226   # For backwards non-gettext consistent compatibility...
5227   INCLTDL="$LTDLINCL"
5228
5229
5230 if test x"$enable_ltdl_install" = x"yes"; then
5231   LTDL_SUBDIRS=libltdl
5232 fi
5233
5234
5235 # Check whether --enable-shared was given.
5236 if test "${enable_shared+set}" = set; then
5237   enableval=$enable_shared; p=${PACKAGE-default}
5238     case $enableval in
5239     yes) enable_shared=yes ;;
5240     no) enable_shared=no ;;
5241     *)
5242       enable_shared=no
5243       # Look at the argument we got.  We use all the common list separators.
5244       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5245       for pkg in $enableval; do
5246         IFS="$lt_save_ifs"
5247         if test "X$pkg" = "X$p"; then
5248           enable_shared=yes
5249         fi
5250       done
5251       IFS="$lt_save_ifs"
5252       ;;
5253     esac
5254 else
5255   enable_shared=yes
5256 fi
5257
5258
5259 # Check whether --enable-static was given.
5260 if test "${enable_static+set}" = set; then
5261   enableval=$enable_static; p=${PACKAGE-default}
5262     case $enableval in
5263     yes) enable_static=yes ;;
5264     no) enable_static=no ;;
5265     *)
5266      enable_static=no
5267       # Look at the argument we got.  We use all the common list separators.
5268       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5269       for pkg in $enableval; do
5270         IFS="$lt_save_ifs"
5271         if test "X$pkg" = "X$p"; then
5272           enable_static=yes
5273         fi
5274       done
5275       IFS="$lt_save_ifs"
5276       ;;
5277     esac
5278 else
5279   enable_static=yes
5280 fi
5281
5282
5283 # Check whether --enable-fast-install was given.
5284 if test "${enable_fast_install+set}" = set; then
5285   enableval=$enable_fast_install; p=${PACKAGE-default}
5286     case $enableval in
5287     yes) enable_fast_install=yes ;;
5288     no) enable_fast_install=no ;;
5289     *)
5290       enable_fast_install=no
5291       # Look at the argument we got.  We use all the common list separators.
5292       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5293       for pkg in $enableval; do
5294         IFS="$lt_save_ifs"
5295         if test "X$pkg" = "X$p"; then
5296           enable_fast_install=yes
5297         fi
5298       done
5299       IFS="$lt_save_ifs"
5300       ;;
5301     esac
5302 else
5303   enable_fast_install=yes
5304 fi
5305
5306
5307 ac_aux_dir=
5308 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5309   if test -f "$ac_dir/install-sh"; then
5310     ac_aux_dir=$ac_dir
5311     ac_install_sh="$ac_aux_dir/install-sh -c"
5312     break
5313   elif test -f "$ac_dir/install.sh"; then
5314     ac_aux_dir=$ac_dir
5315     ac_install_sh="$ac_aux_dir/install.sh -c"
5316     break
5317   elif test -f "$ac_dir/shtool"; then
5318     ac_aux_dir=$ac_dir
5319     ac_install_sh="$ac_aux_dir/shtool install -c"
5320     break
5321   fi
5322 done
5323 if test -z "$ac_aux_dir"; then
5324   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5325 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5326    { (exit 1); exit 1; }; }
5327 fi
5328
5329 # These three variables are undocumented and unsupported,
5330 # and are intended to be withdrawn in a future Autoconf release.
5331 # They can cause serious problems if a builder's source tree is in a directory
5332 # whose full name contains unusual characters.
5333 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5334 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5335 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5336
5337
5338 # Make sure we can run config.sub.
5339 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5340   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5341 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5342    { (exit 1); exit 1; }; }
5343
5344 { echo "$as_me:$LINENO: checking build system type" >&5
5345 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5346 if test "${ac_cv_build+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   ac_build_alias=$build_alias
5350 test "x$ac_build_alias" = x &&
5351   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5352 test "x$ac_build_alias" = x &&
5353   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5354 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5355    { (exit 1); exit 1; }; }
5356 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5357   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5358 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5359    { (exit 1); exit 1; }; }
5360
5361 fi
5362 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5363 echo "${ECHO_T}$ac_cv_build" >&6; }
5364 case $ac_cv_build in
5365 *-*-*) ;;
5366 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5367 echo "$as_me: error: invalid value of canonical build" >&2;}
5368    { (exit 1); exit 1; }; };;
5369 esac
5370 build=$ac_cv_build
5371 ac_save_IFS=$IFS; IFS='-'
5372 set x $ac_cv_build
5373 shift
5374 build_cpu=$1
5375 build_vendor=$2
5376 shift; shift
5377 # Remember, the first character of IFS is used to create $*,
5378 # except with old shells:
5379 build_os=$*
5380 IFS=$ac_save_IFS
5381 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5382
5383
5384 { echo "$as_me:$LINENO: checking host system type" >&5
5385 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5386 if test "${ac_cv_host+set}" = set; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   if test "x$host_alias" = x; then
5390   ac_cv_host=$ac_cv_build
5391 else
5392   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5393     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5394 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5395    { (exit 1); exit 1; }; }
5396 fi
5397
5398 fi
5399 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5400 echo "${ECHO_T}$ac_cv_host" >&6; }
5401 case $ac_cv_host in
5402 *-*-*) ;;
5403 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5404 echo "$as_me: error: invalid value of canonical host" >&2;}
5405    { (exit 1); exit 1; }; };;
5406 esac
5407 host=$ac_cv_host
5408 ac_save_IFS=$IFS; IFS='-'
5409 set x $ac_cv_host
5410 shift
5411 host_cpu=$1
5412 host_vendor=$2
5413 shift; shift
5414 # Remember, the first character of IFS is used to create $*,
5415 # except with old shells:
5416 host_os=$*
5417 IFS=$ac_save_IFS
5418 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5419
5420
5421 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5422 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5423 if test "${lt_cv_path_SED+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   # Loop through the user's path and test for sed and gsed.
5427 # Then use that list of sed's as ones to test for truncation.
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431   IFS=$as_save_IFS
5432   test -z "$as_dir" && as_dir=.
5433   for lt_ac_prog in sed gsed; do
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5436         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5437       fi
5438     done
5439   done
5440 done
5441 lt_ac_max=0
5442 lt_ac_count=0
5443 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5444 # along with /bin/sed that truncates output.
5445 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5446   test ! -f $lt_ac_sed && continue
5447   cat /dev/null > conftest.in
5448   lt_ac_count=0
5449   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5450   # Check for GNU sed and select it if it is found.
5451   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5452     lt_cv_path_SED=$lt_ac_sed
5453     break
5454   fi
5455   while true; do
5456     cat conftest.in conftest.in >conftest.tmp
5457     mv conftest.tmp conftest.in
5458     cp conftest.in conftest.nl
5459     echo >>conftest.nl
5460     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5461     cmp -s conftest.out conftest.nl || break
5462     # 10000 chars as input seems more than enough
5463     test $lt_ac_count -gt 10 && break
5464     lt_ac_count=`expr $lt_ac_count + 1`
5465     if test $lt_ac_count -gt $lt_ac_max; then
5466       lt_ac_max=$lt_ac_count
5467       lt_cv_path_SED=$lt_ac_sed
5468     fi
5469   done
5470 done
5471
5472 fi
5473
5474 SED=$lt_cv_path_SED
5475 { echo "$as_me:$LINENO: result: $SED" >&5
5476 echo "${ECHO_T}$SED" >&6; }
5477
5478
5479 # Check whether --with-gnu-ld was given.
5480 if test "${with_gnu_ld+set}" = set; then
5481   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5482 else
5483   with_gnu_ld=no
5484 fi
5485
5486 ac_prog=ld
5487 if test "$GCC" = yes; then
5488   # Check if gcc -print-prog-name=ld gives a path.
5489   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5490 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5491   case $host in
5492   *-*-mingw*)
5493     # gcc leaves a trailing carriage return which upsets mingw
5494     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5495   *)
5496     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5497   esac
5498   case $ac_prog in
5499     # Accept absolute paths.
5500     [\\/]* | ?:[\\/]*)
5501       re_direlt='/[^/][^/]*/\.\./'
5502       # Canonicalize the pathname of ld
5503       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5504       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5505         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5506       done
5507       test -z "$LD" && LD="$ac_prog"
5508       ;;
5509   "")
5510     # If it fails, then pretend we aren't using GCC.
5511     ac_prog=ld
5512     ;;
5513   *)
5514     # If it is relative, then search for the first ld in PATH.
5515     with_gnu_ld=unknown
5516     ;;
5517   esac
5518 elif test "$with_gnu_ld" = yes; then
5519   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5520 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5521 else
5522   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5523 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5524 fi
5525 if test "${lt_cv_path_LD+set}" = set; then
5526   echo $ECHO_N "(cached) $ECHO_C" >&6
5527 else
5528   if test -z "$LD"; then
5529   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5530   for ac_dir in $PATH; do
5531     IFS="$lt_save_ifs"
5532     test -z "$ac_dir" && ac_dir=.
5533     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5534       lt_cv_path_LD="$ac_dir/$ac_prog"
5535       # Check to see if the program is GNU ld.  I'd rather use --version,
5536       # but apparently some variants of GNU ld only accept -v.
5537       # Break only if it was the GNU/non-GNU ld that we prefer.
5538       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5539       *GNU* | *'with BFD'*)
5540         test "$with_gnu_ld" != no && break
5541         ;;
5542       *)
5543         test "$with_gnu_ld" != yes && break
5544         ;;
5545       esac
5546     fi
5547   done
5548   IFS="$lt_save_ifs"
5549 else
5550   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5551 fi
5552 fi
5553
5554 LD="$lt_cv_path_LD"
5555 if test -n "$LD"; then
5556   { echo "$as_me:$LINENO: result: $LD" >&5
5557 echo "${ECHO_T}$LD" >&6; }
5558 else
5559   { echo "$as_me:$LINENO: result: no" >&5
5560 echo "${ECHO_T}no" >&6; }
5561 fi
5562 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5563 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5564    { (exit 1); exit 1; }; }
5565 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5566 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5567 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5571 case `$LD -v 2>&1 </dev/null` in
5572 *GNU* | *'with BFD'*)
5573   lt_cv_prog_gnu_ld=yes
5574   ;;
5575 *)
5576   lt_cv_prog_gnu_ld=no
5577   ;;
5578 esac
5579 fi
5580 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5581 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5582 with_gnu_ld=$lt_cv_prog_gnu_ld
5583
5584
5585 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5586 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5587 if test "${lt_cv_ld_reload_flag+set}" = set; then
5588   echo $ECHO_N "(cached) $ECHO_C" >&6
5589 else
5590   lt_cv_ld_reload_flag='-r'
5591 fi
5592 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5593 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5594 reload_flag=$lt_cv_ld_reload_flag
5595 case $reload_flag in
5596 "" | " "*) ;;
5597 *) reload_flag=" $reload_flag" ;;
5598 esac
5599 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5600 case $host_os in
5601   darwin*)
5602     if test "$GCC" = yes; then
5603       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5604     else
5605       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5606     fi
5607     ;;
5608 esac
5609
5610 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5611 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5612 if test "${lt_cv_path_NM+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   if test -n "$NM"; then
5616   # Let the user override the test.
5617   lt_cv_path_NM="$NM"
5618 else
5619   lt_nm_to_check="${ac_tool_prefix}nm"
5620   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5621     lt_nm_to_check="$lt_nm_to_check nm"
5622   fi
5623   for lt_tmp_nm in $lt_nm_to_check; do
5624     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5625     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5626       IFS="$lt_save_ifs"
5627       test -z "$ac_dir" && ac_dir=.
5628       tmp_nm="$ac_dir/$lt_tmp_nm"
5629       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5630         # Check to see if the nm accepts a BSD-compat flag.
5631         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5632         #   nm: unknown option "B" ignored
5633         # Tru64's nm complains that /dev/null is an invalid object file
5634         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5635         */dev/null* | *'Invalid file or object type'*)
5636           lt_cv_path_NM="$tmp_nm -B"
5637           break
5638           ;;
5639         *)
5640           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5641           */dev/null*)
5642             lt_cv_path_NM="$tmp_nm -p"
5643             break
5644             ;;
5645           *)
5646             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5647             continue # so that we can try to find one that supports BSD flags
5648             ;;
5649           esac
5650           ;;
5651         esac
5652       fi
5653     done
5654     IFS="$lt_save_ifs"
5655   done
5656   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5657 fi
5658 fi
5659 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5660 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5661 NM="$lt_cv_path_NM"
5662
5663 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5664 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5665 LN_S=$as_ln_s
5666 if test "$LN_S" = "ln -s"; then
5667   { echo "$as_me:$LINENO: result: yes" >&5
5668 echo "${ECHO_T}yes" >&6; }
5669 else
5670   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5671 echo "${ECHO_T}no, using $LN_S" >&6; }
5672 fi
5673
5674 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5675 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5676 if test "${lt_cv_deplibs_check_method+set}" = set; then
5677   echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679   lt_cv_file_magic_cmd='$MAGIC_CMD'
5680 lt_cv_file_magic_test_file=
5681 lt_cv_deplibs_check_method='unknown'
5682 # Need to set the preceding variable on all platforms that support
5683 # interlibrary dependencies.
5684 # 'none' -- dependencies not supported.
5685 # `unknown' -- same as none, but documents that we really don't know.
5686 # 'pass_all' -- all dependencies passed with no checks.
5687 # 'test_compile' -- check by making test program.
5688 # 'file_magic [[regex]]' -- check by looking for files in library path
5689 # which responds to the $file_magic_cmd with a given extended regex.
5690 # If you have `file' or equivalent on your system and you're not sure
5691 # whether `pass_all' will *always* work, you probably want this one.
5692
5693 case $host_os in
5694 aix4* | aix5*)
5695   lt_cv_deplibs_check_method=pass_all
5696   ;;
5697
5698 beos*)
5699   lt_cv_deplibs_check_method=pass_all
5700   ;;
5701
5702 bsdi[45]*)
5703   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5704   lt_cv_file_magic_cmd='/usr/bin/file -L'
5705   lt_cv_file_magic_test_file=/shlib/libc.so
5706   ;;
5707
5708 cygwin*)
5709   # func_win32_libid is a shell function defined in ltmain.sh
5710   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5711   lt_cv_file_magic_cmd='func_win32_libid'
5712   ;;
5713
5714 mingw* | pw32*)
5715   # Base MSYS/MinGW do not provide the 'file' command needed by
5716   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5717   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5718   lt_cv_file_magic_cmd='$OBJDUMP -f'
5719   ;;
5720
5721 darwin* | rhapsody*)
5722   lt_cv_deplibs_check_method=pass_all
5723   ;;
5724
5725 freebsd* | kfreebsd*-gnu | dragonfly*)
5726   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5727     case $host_cpu in
5728     i*86 )
5729       # Not sure whether the presence of OpenBSD here was a mistake.
5730       # Let's accept both of them until this is cleared up.
5731       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5732       lt_cv_file_magic_cmd=/usr/bin/file
5733       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5734       ;;
5735     esac
5736   else
5737     lt_cv_deplibs_check_method=pass_all
5738   fi
5739   ;;
5740
5741 gnu*)
5742   lt_cv_deplibs_check_method=pass_all
5743   ;;
5744
5745 hpux10.20* | hpux11*)
5746   lt_cv_file_magic_cmd=/usr/bin/file
5747   case $host_cpu in
5748   ia64*)
5749     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5750     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5751     ;;
5752   hppa*64*)
5753     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]'
5754     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5755     ;;
5756   *)
5757     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5758     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5759     ;;
5760   esac
5761   ;;
5762
5763 interix3*)
5764   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5765   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5766   ;;
5767
5768 irix5* | irix6* | nonstopux*)
5769   case $LD in
5770   *-32|*"-32 ") libmagic=32-bit;;
5771   *-n32|*"-n32 ") libmagic=N32;;
5772   *-64|*"-64 ") libmagic=64-bit;;
5773   *) libmagic=never-match;;
5774   esac
5775   lt_cv_deplibs_check_method=pass_all
5776   ;;
5777
5778 # This must be Linux ELF.
5779 linux*)
5780   lt_cv_deplibs_check_method=pass_all
5781   ;;
5782
5783 netbsd*)
5784   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5785     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5786   else
5787     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5788   fi
5789   ;;
5790
5791 newos6*)
5792   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5793   lt_cv_file_magic_cmd=/usr/bin/file
5794   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5795   ;;
5796
5797 nto-qnx*)
5798   lt_cv_deplibs_check_method=unknown
5799   ;;
5800
5801 openbsd*)
5802   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5803     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5804   else
5805     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5806   fi
5807   ;;
5808
5809 osf3* | osf4* | osf5*)
5810   lt_cv_deplibs_check_method=pass_all
5811   ;;
5812
5813 solaris*)
5814   lt_cv_deplibs_check_method=pass_all
5815   ;;
5816
5817 sysv4 | sysv4.3*)
5818   case $host_vendor in
5819   motorola)
5820     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]'
5821     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5822     ;;
5823   ncr)
5824     lt_cv_deplibs_check_method=pass_all
5825     ;;
5826   sequent)
5827     lt_cv_file_magic_cmd='/bin/file'
5828     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5829     ;;
5830   sni)
5831     lt_cv_file_magic_cmd='/bin/file'
5832     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5833     lt_cv_file_magic_test_file=/lib/libc.so
5834     ;;
5835   siemens)
5836     lt_cv_deplibs_check_method=pass_all
5837     ;;
5838   pc)
5839     lt_cv_deplibs_check_method=pass_all
5840     ;;
5841   esac
5842   ;;
5843
5844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5845   lt_cv_deplibs_check_method=pass_all
5846   ;;
5847 esac
5848
5849 fi
5850 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5851 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5852 file_magic_cmd=$lt_cv_file_magic_cmd
5853 deplibs_check_method=$lt_cv_deplibs_check_method
5854 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5855
5856
5857
5858
5859 # If no C compiler was specified, use CC.
5860 LTCC=${LTCC-"$CC"}
5861
5862 # If no C compiler flags were specified, use CFLAGS.
5863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5864
5865 # Allow CC to be a program name with arguments.
5866 compiler=$CC
5867
5868 # Check whether --enable-libtool-lock was given.
5869 if test "${enable_libtool_lock+set}" = set; then
5870   enableval=$enable_libtool_lock;
5871 fi
5872
5873 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5874
5875 # Some flags need to be propagated to the compiler or linker for good
5876 # libtool support.
5877 case $host in
5878 ia64-*-hpux*)
5879   # Find out which ABI we are using.
5880   echo 'int i;' > conftest.$ac_ext
5881   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882   (eval $ac_compile) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; then
5886     case `/usr/bin/file conftest.$ac_objext` in
5887     *ELF-32*)
5888       HPUX_IA64_MODE="32"
5889       ;;
5890     *ELF-64*)
5891       HPUX_IA64_MODE="64"
5892       ;;
5893     esac
5894   fi
5895   rm -rf conftest*
5896   ;;
5897 *-*-irix6*)
5898   # Find out which ABI we are using.
5899   echo '#line 5899 "configure"' > conftest.$ac_ext
5900   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901   (eval $ac_compile) 2>&5
5902   ac_status=$?
5903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904   (exit $ac_status); }; then
5905    if test "$lt_cv_prog_gnu_ld" = yes; then
5906     case `/usr/bin/file conftest.$ac_objext` in
5907     *32-bit*)
5908       LD="${LD-ld} -melf32bsmip"
5909       ;;
5910     *N32*)
5911       LD="${LD-ld} -melf32bmipn32"
5912       ;;
5913     *64-bit*)
5914       LD="${LD-ld} -melf64bmip"
5915       ;;
5916     esac
5917    else
5918     case `/usr/bin/file conftest.$ac_objext` in
5919     *32-bit*)
5920       LD="${LD-ld} -32"
5921       ;;
5922     *N32*)
5923       LD="${LD-ld} -n32"
5924       ;;
5925     *64-bit*)
5926       LD="${LD-ld} -64"
5927       ;;
5928     esac
5929    fi
5930   fi
5931   rm -rf conftest*
5932   ;;
5933
5934 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5935   # Find out which ABI we are using.
5936   echo 'int i;' > conftest.$ac_ext
5937   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938   (eval $ac_compile) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; then
5942     case `/usr/bin/file conftest.o` in
5943     *32-bit*)
5944       case $host in
5945         x86_64-*linux*)
5946           LD="${LD-ld} -m elf_i386"
5947           ;;
5948         ppc64-*linux*|powerpc64-*linux*)
5949           LD="${LD-ld} -m elf32ppclinux"
5950           ;;
5951         s390x-*linux*)
5952           LD="${LD-ld} -m elf_s390"
5953           ;;
5954         sparc64-*linux*)
5955           LD="${LD-ld} -m elf32_sparc"
5956           ;;
5957       esac
5958       ;;
5959     *64-bit*)
5960       case $host in
5961         x86_64-*linux*)
5962           LD="${LD-ld} -m elf_x86_64"
5963           ;;
5964         ppc*-*linux*|powerpc*-*linux*)
5965           LD="${LD-ld} -m elf64ppc"
5966           ;;
5967         s390*-*linux*)
5968           LD="${LD-ld} -m elf64_s390"
5969           ;;
5970         sparc*-*linux*)
5971           LD="${LD-ld} -m elf64_sparc"
5972           ;;
5973       esac
5974       ;;
5975     esac
5976   fi
5977   rm -rf conftest*
5978   ;;
5979
5980 *-*-sco3.2v5*)
5981   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5982   SAVE_CFLAGS="$CFLAGS"
5983   CFLAGS="$CFLAGS -belf"
5984   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5985 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5986 if test "${lt_cv_cc_needs_belf+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   ac_ext=c
5990 ac_cpp='$CPP $CPPFLAGS'
5991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5994
5995      cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001
6002 int
6003 main ()
6004 {
6005
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext conftest$ac_exeext
6011 if { (ac_try="$ac_link"
6012 case "(($ac_try" in
6013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6014   *) ac_try_echo=$ac_try;;
6015 esac
6016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6017   (eval "$ac_link") 2>conftest.er1
6018   ac_status=$?
6019   grep -v '^ *+' conftest.er1 >conftest.err
6020   rm -f conftest.er1
6021   cat conftest.err >&5
6022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023   (exit $ac_status); } &&
6024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6025   { (case "(($ac_try" in
6026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027   *) ac_try_echo=$ac_try;;
6028 esac
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030   (eval "$ac_try") 2>&5
6031   ac_status=$?
6032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033   (exit $ac_status); }; } &&
6034          { ac_try='test -s conftest$ac_exeext'
6035   { (case "(($ac_try" in
6036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037   *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040   (eval "$ac_try") 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); }; }; then
6044   lt_cv_cc_needs_belf=yes
6045 else
6046   echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6048
6049         lt_cv_cc_needs_belf=no
6050 fi
6051
6052 rm -f core conftest.err conftest.$ac_objext \
6053       conftest$ac_exeext conftest.$ac_ext
6054      ac_ext=c
6055 ac_cpp='$CPP $CPPFLAGS'
6056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6059
6060 fi
6061 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6062 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6063   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6064     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6065     CFLAGS="$SAVE_CFLAGS"
6066   fi
6067   ;;
6068 sparc*-*solaris*)
6069   # Find out which ABI we are using.
6070   echo 'int i;' > conftest.$ac_ext
6071   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072   (eval $ac_compile) 2>&5
6073   ac_status=$?
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); }; then
6076     case `/usr/bin/file conftest.o` in
6077     *64-bit*)
6078       case $lt_cv_prog_gnu_ld in
6079       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6080       *)    LD="${LD-ld} -64" ;;
6081       esac
6082       ;;
6083     esac
6084   fi
6085   rm -rf conftest*
6086   ;;
6087
6088
6089 esac
6090
6091 need_locks="$enable_libtool_lock"
6092
6093
6094
6095 for ac_header in dlfcn.h
6096 do
6097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6099   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6102   echo $ECHO_N "(cached) $ECHO_C" >&6
6103 fi
6104 ac_res=`eval echo '${'$as_ac_Header'}'`
6105                { echo "$as_me:$LINENO: result: $ac_res" >&5
6106 echo "${ECHO_T}$ac_res" >&6; }
6107 else
6108   # Is the header compilable?
6109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6111 cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117 $ac_includes_default
6118 #include <$ac_header>
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (ac_try="$ac_compile"
6122 case "(($ac_try" in
6123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124   *) ac_try_echo=$ac_try;;
6125 esac
6126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127   (eval "$ac_compile") 2>conftest.er1
6128   ac_status=$?
6129   grep -v '^ *+' conftest.er1 >conftest.err
6130   rm -f conftest.er1
6131   cat conftest.err >&5
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); } &&
6134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6135   { (case "(($ac_try" in
6136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137   *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140   (eval "$ac_try") 2>&5
6141   ac_status=$?
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); }; } &&
6144          { ac_try='test -s conftest.$ac_objext'
6145   { (case "(($ac_try" in
6146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147   *) ac_try_echo=$ac_try;;
6148 esac
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150   (eval "$ac_try") 2>&5
6151   ac_status=$?
6152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153   (exit $ac_status); }; }; then
6154   ac_header_compiler=yes
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159         ac_header_compiler=no
6160 fi
6161
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6164 echo "${ECHO_T}$ac_header_compiler" >&6; }
6165
6166 # Is the header present?
6167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6169 cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h.  */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h.  */
6175 #include <$ac_header>
6176 _ACEOF
6177 if { (ac_try="$ac_cpp conftest.$ac_ext"
6178 case "(($ac_try" in
6179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180   *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6184   ac_status=$?
6185   grep -v '^ *+' conftest.er1 >conftest.err
6186   rm -f conftest.er1
6187   cat conftest.err >&5
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); } >/dev/null; then
6190   if test -s conftest.err; then
6191     ac_cpp_err=$ac_c_preproc_warn_flag
6192     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6193   else
6194     ac_cpp_err=
6195   fi
6196 else
6197   ac_cpp_err=yes
6198 fi
6199 if test -z "$ac_cpp_err"; then
6200   ac_header_preproc=yes
6201 else
6202   echo "$as_me: failed program was:" >&5
6203 sed 's/^/| /' conftest.$ac_ext >&5
6204
6205   ac_header_preproc=no
6206 fi
6207
6208 rm -f conftest.err conftest.$ac_ext
6209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6210 echo "${ECHO_T}$ac_header_preproc" >&6; }
6211
6212 # So?  What about this header?
6213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6214   yes:no: )
6215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6219     ac_header_preproc=yes
6220     ;;
6221   no:yes:* )
6222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6234
6235     ;;
6236 esac
6237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6240   echo $ECHO_N "(cached) $ECHO_C" >&6
6241 else
6242   eval "$as_ac_Header=\$ac_header_preproc"
6243 fi
6244 ac_res=`eval echo '${'$as_ac_Header'}'`
6245                { echo "$as_me:$LINENO: result: $ac_res" >&5
6246 echo "${ECHO_T}$ac_res" >&6; }
6247
6248 fi
6249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6250   cat >>confdefs.h <<_ACEOF
6251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6252 _ACEOF
6253
6254 fi
6255
6256 done
6257
6258
6259
6260 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6261     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6262     (test "X$CXX" != "Xg++"))) ; then
6263   ac_ext=cpp
6264 ac_cpp='$CXXCPP $CPPFLAGS'
6265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6268 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6269 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6270 if test -z "$CXXCPP"; then
6271   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 else
6274       # Double quotes because CXXCPP needs to be expanded
6275     for CXXCPP in "$CXX -E" "/lib/cpp"
6276     do
6277       ac_preproc_ok=false
6278 for ac_cxx_preproc_warn_flag in '' yes
6279 do
6280   # Use a header file that comes with gcc, so configuring glibc
6281   # with a fresh cross-compiler works.
6282   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6283   # <limits.h> exists even on freestanding compilers.
6284   # On the NeXT, cc -E runs the code through the compiler's parser,
6285   # not just through cpp. "Syntax error" is here to catch this case.
6286   cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h.  */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h.  */
6292 #ifdef __STDC__
6293 # include <limits.h>
6294 #else
6295 # include <assert.h>
6296 #endif
6297                      Syntax error
6298 _ACEOF
6299 if { (ac_try="$ac_cpp conftest.$ac_ext"
6300 case "(($ac_try" in
6301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302   *) ac_try_echo=$ac_try;;
6303 esac
6304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6306   ac_status=$?
6307   grep -v '^ *+' conftest.er1 >conftest.err
6308   rm -f conftest.er1
6309   cat conftest.err >&5
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); } >/dev/null; then
6312   if test -s conftest.err; then
6313     ac_cpp_err=$ac_cxx_preproc_warn_flag
6314     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6315   else
6316     ac_cpp_err=
6317   fi
6318 else
6319   ac_cpp_err=yes
6320 fi
6321 if test -z "$ac_cpp_err"; then
6322   :
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327   # Broken: fails on valid input.
6328 continue
6329 fi
6330
6331 rm -f conftest.err conftest.$ac_ext
6332
6333   # OK, works on sane cases.  Now check whether nonexistent headers
6334   # can be detected and how.
6335   cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 #include <ac_nonexistent.h>
6342 _ACEOF
6343 if { (ac_try="$ac_cpp conftest.$ac_ext"
6344 case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6350   ac_status=$?
6351   grep -v '^ *+' conftest.er1 >conftest.err
6352   rm -f conftest.er1
6353   cat conftest.err >&5
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } >/dev/null; then
6356   if test -s conftest.err; then
6357     ac_cpp_err=$ac_cxx_preproc_warn_flag
6358     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6359   else
6360     ac_cpp_err=
6361   fi
6362 else
6363   ac_cpp_err=yes
6364 fi
6365 if test -z "$ac_cpp_err"; then
6366   # Broken: success on invalid input.
6367 continue
6368 else
6369   echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6371
6372   # Passes both tests.
6373 ac_preproc_ok=:
6374 break
6375 fi
6376
6377 rm -f conftest.err conftest.$ac_ext
6378
6379 done
6380 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6381 rm -f conftest.err conftest.$ac_ext
6382 if $ac_preproc_ok; then
6383   break
6384 fi
6385
6386     done
6387     ac_cv_prog_CXXCPP=$CXXCPP
6388
6389 fi
6390   CXXCPP=$ac_cv_prog_CXXCPP
6391 else
6392   ac_cv_prog_CXXCPP=$CXXCPP
6393 fi
6394 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6395 echo "${ECHO_T}$CXXCPP" >&6; }
6396 ac_preproc_ok=false
6397 for ac_cxx_preproc_warn_flag in '' yes
6398 do
6399   # Use a header file that comes with gcc, so configuring glibc
6400   # with a fresh cross-compiler works.
6401   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6402   # <limits.h> exists even on freestanding compilers.
6403   # On the NeXT, cc -E runs the code through the compiler's parser,
6404   # not just through cpp. "Syntax error" is here to catch this case.
6405   cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h.  */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h.  */
6411 #ifdef __STDC__
6412 # include <limits.h>
6413 #else
6414 # include <assert.h>
6415 #endif
6416                      Syntax error
6417 _ACEOF
6418 if { (ac_try="$ac_cpp conftest.$ac_ext"
6419 case "(($ac_try" in
6420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421   *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6425   ac_status=$?
6426   grep -v '^ *+' conftest.er1 >conftest.err
6427   rm -f conftest.er1
6428   cat conftest.err >&5
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } >/dev/null; then
6431   if test -s conftest.err; then
6432     ac_cpp_err=$ac_cxx_preproc_warn_flag
6433     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6434   else
6435     ac_cpp_err=
6436   fi
6437 else
6438   ac_cpp_err=yes
6439 fi
6440 if test -z "$ac_cpp_err"; then
6441   :
6442 else
6443   echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6445
6446   # Broken: fails on valid input.
6447 continue
6448 fi
6449
6450 rm -f conftest.err conftest.$ac_ext
6451
6452   # OK, works on sane cases.  Now check whether nonexistent headers
6453   # can be detected and how.
6454   cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h.  */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h.  */
6460 #include <ac_nonexistent.h>
6461 _ACEOF
6462 if { (ac_try="$ac_cpp conftest.$ac_ext"
6463 case "(($ac_try" in
6464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465   *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6469   ac_status=$?
6470   grep -v '^ *+' conftest.er1 >conftest.err
6471   rm -f conftest.er1
6472   cat conftest.err >&5
6473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474   (exit $ac_status); } >/dev/null; then
6475   if test -s conftest.err; then
6476     ac_cpp_err=$ac_cxx_preproc_warn_flag
6477     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6478   else
6479     ac_cpp_err=
6480   fi
6481 else
6482   ac_cpp_err=yes
6483 fi
6484 if test -z "$ac_cpp_err"; then
6485   # Broken: success on invalid input.
6486 continue
6487 else
6488   echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6490
6491   # Passes both tests.
6492 ac_preproc_ok=:
6493 break
6494 fi
6495
6496 rm -f conftest.err conftest.$ac_ext
6497
6498 done
6499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6500 rm -f conftest.err conftest.$ac_ext
6501 if $ac_preproc_ok; then
6502   :
6503 else
6504   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6505 See \`config.log' for more details." >&5
6506 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6507 See \`config.log' for more details." >&2;}
6508    { (exit 1); exit 1; }; }
6509 fi
6510
6511 ac_ext=cpp
6512 ac_cpp='$CXXCPP $CPPFLAGS'
6513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6516
6517 fi
6518
6519
6520 ac_ext=f
6521 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6522 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6523 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6524 if test -n "$ac_tool_prefix"; then
6525   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
6526   do
6527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531 if test "${ac_cv_prog_F77+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   if test -n "$F77"; then
6535   ac_cv_prog_F77="$F77" # Let the user override the test.
6536 else
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH
6539 do
6540   IFS=$as_save_IFS
6541   test -z "$as_dir" && as_dir=.
6542   for ac_exec_ext in '' $ac_executable_extensions; do
6543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6544     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6546     break 2
6547   fi
6548 done
6549 done
6550 IFS=$as_save_IFS
6551
6552 fi
6553 fi
6554 F77=$ac_cv_prog_F77
6555 if test -n "$F77"; then
6556   { echo "$as_me:$LINENO: result: $F77" >&5
6557 echo "${ECHO_T}$F77" >&6; }
6558 else
6559   { echo "$as_me:$LINENO: result: no" >&5
6560 echo "${ECHO_T}no" >&6; }
6561 fi
6562
6563
6564     test -n "$F77" && break
6565   done
6566 fi
6567 if test -z "$F77"; then
6568   ac_ct_F77=$F77
6569   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
6570 do
6571   # Extract the first word of "$ac_prog", so it can be a program name with args.
6572 set dummy $ac_prog; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   if test -n "$ac_ct_F77"; then
6579   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586   for ac_exec_ext in '' $ac_executable_extensions; do
6587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6588     ac_cv_prog_ac_ct_F77="$ac_prog"
6589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593 done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6599 if test -n "$ac_ct_F77"; then
6600   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6601 echo "${ECHO_T}$ac_ct_F77" >&6; }
6602 else
6603   { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6605 fi
6606
6607
6608   test -n "$ac_ct_F77" && break
6609 done
6610
6611   if test "x$ac_ct_F77" = x; then
6612     F77=""
6613   else
6614     case $cross_compiling:$ac_tool_warned in
6615 yes:)
6616 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6617 whose name does not start with the host triplet.  If you think this
6618 configuration is useful to you, please write to autoconf@gnu.org." >&5
6619 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6620 whose name does not start with the host triplet.  If you think this
6621 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6622 ac_tool_warned=yes ;;
6623 esac
6624     F77=$ac_ct_F77
6625   fi
6626 fi
6627
6628
6629 # Provide some information about the compiler.
6630 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6631 ac_compiler=`set X $ac_compile; echo $2`
6632 { (ac_try="$ac_compiler --version >&5"
6633 case "(($ac_try" in
6634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635   *) ac_try_echo=$ac_try;;
6636 esac
6637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638   (eval "$ac_compiler --version >&5") 2>&5
6639   ac_status=$?
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); }
6642 { (ac_try="$ac_compiler -v >&5"
6643 case "(($ac_try" in
6644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645   *) ac_try_echo=$ac_try;;
6646 esac
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648   (eval "$ac_compiler -v >&5") 2>&5
6649   ac_status=$?
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); }
6652 { (ac_try="$ac_compiler -V >&5"
6653 case "(($ac_try" in
6654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655   *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658   (eval "$ac_compiler -V >&5") 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }
6662 rm -f a.out
6663
6664 # If we don't use `.F' as extension, the preprocessor is not run on the
6665 # input file.  (Note that this only needs to work for GNU compilers.)
6666 ac_save_ext=$ac_ext
6667 ac_ext=F
6668 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6669 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6670 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   cat >conftest.$ac_ext <<_ACEOF
6674       program main
6675 #ifndef __GNUC__
6676        choke me
6677 #endif
6678
6679       end
6680 _ACEOF
6681 rm -f conftest.$ac_objext
6682 if { (ac_try="$ac_compile"
6683 case "(($ac_try" in
6684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6685   *) ac_try_echo=$ac_try;;
6686 esac
6687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6688   (eval "$ac_compile") 2>conftest.er1
6689   ac_status=$?
6690   grep -v '^ *+' conftest.er1 >conftest.err
6691   rm -f conftest.er1
6692   cat conftest.err >&5
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } &&
6695          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6696   { (case "(($ac_try" in
6697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698   *) ac_try_echo=$ac_try;;
6699 esac
6700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6701   (eval "$ac_try") 2>&5
6702   ac_status=$?
6703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704   (exit $ac_status); }; } &&
6705          { ac_try='test -s conftest.$ac_objext'
6706   { (case "(($ac_try" in
6707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708   *) ac_try_echo=$ac_try;;
6709 esac
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711   (eval "$ac_try") 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; }; then
6715   ac_compiler_gnu=yes
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720         ac_compiler_gnu=no
6721 fi
6722
6723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6725
6726 fi
6727 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6728 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6729 ac_ext=$ac_save_ext
6730 ac_test_FFLAGS=${FFLAGS+set}
6731 ac_save_FFLAGS=$FFLAGS
6732 FFLAGS=
6733 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6734 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6735 if test "${ac_cv_prog_f77_g+set}" = set; then
6736   echo $ECHO_N "(cached) $ECHO_C" >&6
6737 else
6738   FFLAGS=-g
6739 cat >conftest.$ac_ext <<_ACEOF
6740       program main
6741
6742       end
6743 _ACEOF
6744 rm -f conftest.$ac_objext
6745 if { (ac_try="$ac_compile"
6746 case "(($ac_try" in
6747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6748   *) ac_try_echo=$ac_try;;
6749 esac
6750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6751   (eval "$ac_compile") 2>conftest.er1
6752   ac_status=$?
6753   grep -v '^ *+' conftest.er1 >conftest.err
6754   rm -f conftest.er1
6755   cat conftest.err >&5
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); } &&
6758          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6759   { (case "(($ac_try" in
6760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761   *) ac_try_echo=$ac_try;;
6762 esac
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764   (eval "$ac_try") 2>&5
6765   ac_status=$?
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); }; } &&
6768          { ac_try='test -s conftest.$ac_objext'
6769   { (case "(($ac_try" in
6770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771   *) ac_try_echo=$ac_try;;
6772 esac
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774   (eval "$ac_try") 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); }; }; then
6778   ac_cv_prog_f77_g=yes
6779 else
6780   echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783         ac_cv_prog_f77_g=no
6784 fi
6785
6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787
6788 fi
6789 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6790 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6791 if test "$ac_test_FFLAGS" = set; then
6792   FFLAGS=$ac_save_FFLAGS
6793 elif test $ac_cv_prog_f77_g = yes; then
6794   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6795     FFLAGS="-g -O2"
6796   else
6797     FFLAGS="-g"
6798   fi
6799 else
6800   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6801     FFLAGS="-O2"
6802   else
6803     FFLAGS=
6804   fi
6805 fi
6806
6807 G77=`test $ac_compiler_gnu = yes && echo yes`
6808 ac_ext=c
6809 ac_cpp='$CPP $CPPFLAGS'
6810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6813
6814
6815
6816 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6817
6818 # find the maximum length of command line arguments
6819 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6820 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6821 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6822   echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824     i=0
6825   teststring="ABCD"
6826
6827   case $build_os in
6828   msdosdjgpp*)
6829     # On DJGPP, this test can blow up pretty badly due to problems in libc
6830     # (any single argument exceeding 2000 bytes causes a buffer overrun
6831     # during glob expansion).  Even if it were fixed, the result of this
6832     # check would be larger than it should be.
6833     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6834     ;;
6835
6836   gnu*)
6837     # Under GNU Hurd, this test is not required because there is
6838     # no limit to the length of command line arguments.
6839     # Libtool will interpret -1 as no limit whatsoever
6840     lt_cv_sys_max_cmd_len=-1;
6841     ;;
6842
6843   cygwin* | mingw*)
6844     # On Win9x/ME, this test blows up -- it succeeds, but takes
6845     # about 5 minutes as the teststring grows exponentially.
6846     # Worse, since 9x/ME are not pre-emptively multitasking,
6847     # you end up with a "frozen" computer, even though with patience
6848     # the test eventually succeeds (with a max line length of 256k).
6849     # Instead, let's just punt: use the minimum linelength reported by
6850     # all of the supported platforms: 8192 (on NT/2K/XP).
6851     lt_cv_sys_max_cmd_len=8192;
6852     ;;
6853
6854   amigaos*)
6855     # On AmigaOS with pdksh, this test takes hours, literally.
6856     # So we just punt and use a minimum line length of 8192.
6857     lt_cv_sys_max_cmd_len=8192;
6858     ;;
6859
6860   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6861     # This has been around since 386BSD, at least.  Likely further.
6862     if test -x /sbin/sysctl; then
6863       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6864     elif test -x /usr/sbin/sysctl; then
6865       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6866     else
6867       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6868     fi
6869     # And add a safety zone
6870     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6871     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6872     ;;
6873
6874   interix*)
6875     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6876     lt_cv_sys_max_cmd_len=196608
6877     ;;
6878
6879   osf*)
6880     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6881     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6882     # nice to cause kernel panics so lets avoid the loop below.
6883     # First set a reasonable default.
6884     lt_cv_sys_max_cmd_len=16384
6885     #
6886     if test -x /sbin/sysconfig; then
6887       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6888         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6889       esac
6890     fi
6891     ;;
6892   sco3.2v5*)
6893     lt_cv_sys_max_cmd_len=102400
6894     ;;
6895   sysv5* | sco5v6* | sysv4.2uw2*)
6896     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6897     if test -n "$kargmax"; then
6898       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6899     else
6900       lt_cv_sys_max_cmd_len=32768
6901     fi
6902     ;;
6903   *)
6904     # If test is not a shell built-in, we'll probably end up computing a
6905     # maximum length that is only half of the actual maximum length, but
6906     # we can't tell.
6907     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6908     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6909                = "XX$teststring") >/dev/null 2>&1 &&
6910             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6911             lt_cv_sys_max_cmd_len=$new_result &&
6912             test $i != 17 # 1/2 MB should be enough
6913     do
6914       i=`expr $i + 1`
6915       teststring=$teststring$teststring
6916     done
6917     teststring=
6918     # Add a significant safety factor because C++ compilers can tack on massive
6919     # amounts of additional arguments before passing them to the linker.
6920     # It appears as though 1/2 is a usable value.
6921     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6922     ;;
6923   esac
6924
6925 fi
6926
6927 if test -n $lt_cv_sys_max_cmd_len ; then
6928   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6929 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6930 else
6931   { echo "$as_me:$LINENO: result: none" >&5
6932 echo "${ECHO_T}none" >&6; }
6933 fi
6934
6935
6936
6937
6938 # Check for command to grab the raw symbol name followed by C symbol from nm.
6939 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6940 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6941 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944
6945 # These are sane defaults that work on at least a few old systems.
6946 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6947
6948 # Character class describing NM global symbol codes.
6949 symcode='[BCDEGRST]'
6950
6951 # Regexp to match symbols that can be accessed directly from C.
6952 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6953
6954 # Transform an extracted symbol line into a proper C declaration
6955 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6956
6957 # Transform an extracted symbol line into symbol name and symbol address
6958 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'"
6959
6960 # Define system-specific variables.
6961 case $host_os in
6962 aix*)
6963   symcode='[BCDT]'
6964   ;;
6965 cygwin* | mingw* | pw32*)
6966   symcode='[ABCDGISTW]'
6967   ;;
6968 hpux*) # Its linker distinguishes data from code symbols
6969   if test "$host_cpu" = ia64; then
6970     symcode='[ABCDEGRST]'
6971   fi
6972   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6973   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'"
6974   ;;
6975 linux*)
6976   if test "$host_cpu" = ia64; then
6977     symcode='[ABCDGIRSTW]'
6978     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6979     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'"
6980   fi
6981   ;;
6982 irix* | nonstopux*)
6983   symcode='[BCDEGRST]'
6984   ;;
6985 osf*)
6986   symcode='[BCDEGQRST]'
6987   ;;
6988 solaris*)
6989   symcode='[BDRT]'
6990   ;;
6991 sco3.2v5*)
6992   symcode='[DT]'
6993   ;;
6994 sysv4.2uw2*)
6995   symcode='[DT]'
6996   ;;
6997 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6998   symcode='[ABDT]'
6999   ;;
7000 sysv4)
7001   symcode='[DFNSTU]'
7002   ;;
7003 esac
7004
7005 # Handle CRLF in mingw tool chain
7006 opt_cr=
7007 case $build_os in
7008 mingw*)
7009   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7010   ;;
7011 esac
7012
7013 # If we're using GNU nm, then use its standard symbol codes.
7014 case `$NM -V 2>&1` in
7015 *GNU* | *'with BFD'*)
7016   symcode='[ABCDGIRSTW]' ;;
7017 esac
7018
7019 # Try without a prefix undercore, then with it.
7020 for ac_symprfx in "" "_"; do
7021
7022   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7023   symxfrm="\\1 $ac_symprfx\\2 \\2"
7024
7025   # Write the raw and C identifiers.
7026   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7027
7028   # Check to see that the pipe works correctly.
7029   pipe_works=no
7030
7031   rm -f conftest*
7032   cat > conftest.$ac_ext <<EOF
7033 #ifdef __cplusplus
7034 extern "C" {
7035 #endif
7036 char nm_test_var;
7037 void nm_test_func(){}
7038 #ifdef __cplusplus
7039 }
7040 #endif
7041 int main(){nm_test_var='a';nm_test_func();return(0);}
7042 EOF
7043
7044   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045   (eval $ac_compile) 2>&5
7046   ac_status=$?
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); }; then
7049     # Now try to grab the symbols.
7050     nlist=conftest.nm
7051     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7052   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); } && test -s "$nlist"; then
7056       # Try sorting and uniquifying the output.
7057       if sort "$nlist" | uniq > "$nlist"T; then
7058         mv -f "$nlist"T "$nlist"
7059       else
7060         rm -f "$nlist"T
7061       fi
7062
7063       # Make sure that we snagged all the symbols we need.
7064       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7065         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7066           cat <<EOF > conftest.$ac_ext
7067 #ifdef __cplusplus
7068 extern "C" {
7069 #endif
7070
7071 EOF
7072           # Now generate the symbol file.
7073           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7074
7075           cat <<EOF >> conftest.$ac_ext
7076 #if defined (__STDC__) && __STDC__
7077 # define lt_ptr_t void *
7078 #else
7079 # define lt_ptr_t char *
7080 # define const
7081 #endif
7082
7083 /* The mapping between symbol names and symbols. */
7084 const struct {
7085   const char *name;
7086   lt_ptr_t address;
7087 }
7088 lt_preloaded_symbols[] =
7089 {
7090 EOF
7091           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7092           cat <<\EOF >> conftest.$ac_ext
7093   {0, (lt_ptr_t) 0}
7094 };
7095
7096 #ifdef __cplusplus
7097 }
7098 #endif
7099 EOF
7100           # Now try linking the two files.
7101           mv conftest.$ac_objext conftstm.$ac_objext
7102           lt_save_LIBS="$LIBS"
7103           lt_save_CFLAGS="$CFLAGS"
7104           LIBS="conftstm.$ac_objext"
7105           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7106           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107   (eval $ac_link) 2>&5
7108   ac_status=$?
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7111             pipe_works=yes
7112           fi
7113           LIBS="$lt_save_LIBS"
7114           CFLAGS="$lt_save_CFLAGS"
7115         else
7116           echo "cannot find nm_test_func in $nlist" >&5
7117         fi
7118       else
7119         echo "cannot find nm_test_var in $nlist" >&5
7120       fi
7121     else
7122       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7123     fi
7124   else
7125     echo "$progname: failed program was:" >&5
7126     cat conftest.$ac_ext >&5
7127   fi
7128   rm -f conftest* conftst*
7129
7130   # Do not use the global_symbol_pipe unless it works.
7131   if test "$pipe_works" = yes; then
7132     break
7133   else
7134     lt_cv_sys_global_symbol_pipe=
7135   fi
7136 done
7137
7138 fi
7139
7140 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7141   lt_cv_sys_global_symbol_to_cdecl=
7142 fi
7143 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7144   { echo "$as_me:$LINENO: result: failed" >&5
7145 echo "${ECHO_T}failed" >&6; }
7146 else
7147   { echo "$as_me:$LINENO: result: ok" >&5
7148 echo "${ECHO_T}ok" >&6; }
7149 fi
7150
7151 { echo "$as_me:$LINENO: checking for objdir" >&5
7152 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7153 if test "${lt_cv_objdir+set}" = set; then
7154   echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156   rm -f .libs 2>/dev/null
7157 mkdir .libs 2>/dev/null
7158 if test -d .libs; then
7159   lt_cv_objdir=.libs
7160 else
7161   # MS-DOS does not allow filenames that begin with a dot.
7162   lt_cv_objdir=_libs
7163 fi
7164 rmdir .libs 2>/dev/null
7165 fi
7166 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7167 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7168 objdir=$lt_cv_objdir
7169
7170
7171
7172
7173
7174 case $host_os in
7175 aix3*)
7176   # AIX sometimes has problems with the GCC collect2 program.  For some
7177   # reason, if we set the COLLECT_NAMES environment variable, the problems
7178   # vanish in a puff of smoke.
7179   if test "X${COLLECT_NAMES+set}" != Xset; then
7180     COLLECT_NAMES=
7181     export COLLECT_NAMES
7182   fi
7183   ;;
7184 esac
7185
7186 # Sed substitution that helps us do robust quoting.  It backslashifies
7187 # metacharacters that are still active within double-quoted strings.
7188 Xsed='sed -e 1s/^X//'
7189 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7190
7191 # Same as above, but do not quote variable references.
7192 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7193
7194 # Sed substitution to delay expansion of an escaped shell variable in a
7195 # double_quote_subst'ed string.
7196 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7197
7198 # Sed substitution to avoid accidental globbing in evaled expressions
7199 no_glob_subst='s/\*/\\\*/g'
7200
7201 # Constants:
7202 rm="rm -f"
7203
7204 # Global variables:
7205 default_ofile=libtool
7206 can_build_shared=yes
7207
7208 # All known linkers require a `.a' archive for static linking (except MSVC,
7209 # which needs '.lib').
7210 libext=a
7211 ltmain="$ac_aux_dir/ltmain.sh"
7212 ofile="$default_ofile"
7213 with_gnu_ld="$lt_cv_prog_gnu_ld"
7214
7215 if test -n "$ac_tool_prefix"; then
7216   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7217 set dummy ${ac_tool_prefix}ar; ac_word=$2
7218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7220 if test "${ac_cv_prog_AR+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   if test -n "$AR"; then
7224   ac_cv_prog_AR="$AR" # Let the user override the test.
7225 else
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229   IFS=$as_save_IFS
7230   test -z "$as_dir" && as_dir=.
7231   for ac_exec_ext in '' $ac_executable_extensions; do
7232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7233     ac_cv_prog_AR="${ac_tool_prefix}ar"
7234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235     break 2
7236   fi
7237 done
7238 done
7239 IFS=$as_save_IFS
7240
7241 fi
7242 fi
7243 AR=$ac_cv_prog_AR
7244 if test -n "$AR"; then
7245   { echo "$as_me:$LINENO: result: $AR" >&5
7246 echo "${ECHO_T}$AR" >&6; }
7247 else
7248   { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7250 fi
7251
7252
7253 fi
7254 if test -z "$ac_cv_prog_AR"; then
7255   ac_ct_AR=$AR
7256   # Extract the first word of "ar", so it can be a program name with args.
7257 set dummy ar; ac_word=$2
7258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7260 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263   if test -n "$ac_ct_AR"; then
7264   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7265 else
7266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269   IFS=$as_save_IFS
7270   test -z "$as_dir" && as_dir=.
7271   for ac_exec_ext in '' $ac_executable_extensions; do
7272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7273     ac_cv_prog_ac_ct_AR="ar"
7274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275     break 2
7276   fi
7277 done
7278 done
7279 IFS=$as_save_IFS
7280
7281 fi
7282 fi
7283 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7284 if test -n "$ac_ct_AR"; then
7285   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7286 echo "${ECHO_T}$ac_ct_AR" >&6; }
7287 else
7288   { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7290 fi
7291
7292   if test "x$ac_ct_AR" = x; then
7293     AR="false"
7294   else
7295     case $cross_compiling:$ac_tool_warned in
7296 yes:)
7297 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7298 whose name does not start with the host triplet.  If you think this
7299 configuration is useful to you, please write to autoconf@gnu.org." >&5
7300 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7301 whose name does not start with the host triplet.  If you think this
7302 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7303 ac_tool_warned=yes ;;
7304 esac
7305     AR=$ac_ct_AR
7306   fi
7307 else
7308   AR="$ac_cv_prog_AR"
7309 fi
7310
7311 if test -n "$ac_tool_prefix"; then
7312   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7313 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7316 if test "${ac_cv_prog_RANLIB+set}" = set; then
7317   echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319   if test -n "$RANLIB"; then
7320   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325   IFS=$as_save_IFS
7326   test -z "$as_dir" && as_dir=.
7327   for ac_exec_ext in '' $ac_executable_extensions; do
7328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7329     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7331     break 2
7332   fi
7333 done
7334 done
7335 IFS=$as_save_IFS
7336
7337 fi
7338 fi
7339 RANLIB=$ac_cv_prog_RANLIB
7340 if test -n "$RANLIB"; then
7341   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7342 echo "${ECHO_T}$RANLIB" >&6; }
7343 else
7344   { echo "$as_me:$LINENO: result: no" >&5
7345 echo "${ECHO_T}no" >&6; }
7346 fi
7347
7348
7349 fi
7350 if test -z "$ac_cv_prog_RANLIB"; then
7351   ac_ct_RANLIB=$RANLIB
7352   # Extract the first word of "ranlib", so it can be a program name with args.
7353 set dummy ranlib; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7357   echo $ECHO_N "(cached) $ECHO_C" >&6
7358 else
7359   if test -n "$ac_ct_RANLIB"; then
7360   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367   for ac_exec_ext in '' $ac_executable_extensions; do
7368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7369     ac_cv_prog_ac_ct_RANLIB="ranlib"
7370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374 done
7375 IFS=$as_save_IFS
7376
7377 fi
7378 fi
7379 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7380 if test -n "$ac_ct_RANLIB"; then
7381   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7382 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7383 else
7384   { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7386 fi
7387
7388   if test "x$ac_ct_RANLIB" = x; then
7389     RANLIB=":"
7390   else
7391     case $cross_compiling:$ac_tool_warned in
7392 yes:)
7393 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7394 whose name does not start with the host triplet.  If you think this
7395 configuration is useful to you, please write to autoconf@gnu.org." >&5
7396 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7397 whose name does not start with the host triplet.  If you think this
7398 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7399 ac_tool_warned=yes ;;
7400 esac
7401     RANLIB=$ac_ct_RANLIB
7402   fi
7403 else
7404   RANLIB="$ac_cv_prog_RANLIB"
7405 fi
7406
7407 if test -n "$ac_tool_prefix"; then
7408   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7409 set dummy ${ac_tool_prefix}strip; ac_word=$2
7410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7412 if test "${ac_cv_prog_STRIP+set}" = set; then
7413   echo $ECHO_N "(cached) $ECHO_C" >&6
7414 else
7415   if test -n "$STRIP"; then
7416   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7417 else
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 for as_dir in $PATH
7420 do
7421   IFS=$as_save_IFS
7422   test -z "$as_dir" && as_dir=.
7423   for ac_exec_ext in '' $ac_executable_extensions; do
7424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7425     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7427     break 2
7428   fi
7429 done
7430 done
7431 IFS=$as_save_IFS
7432
7433 fi
7434 fi
7435 STRIP=$ac_cv_prog_STRIP
7436 if test -n "$STRIP"; then
7437   { echo "$as_me:$LINENO: result: $STRIP" >&5
7438 echo "${ECHO_T}$STRIP" >&6; }
7439 else
7440   { echo "$as_me:$LINENO: result: no" >&5
7441 echo "${ECHO_T}no" >&6; }
7442 fi
7443
7444
7445 fi
7446 if test -z "$ac_cv_prog_STRIP"; then
7447   ac_ct_STRIP=$STRIP
7448   # Extract the first word of "strip", so it can be a program name with args.
7449 set dummy strip; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   if test -n "$ac_ct_STRIP"; then
7456   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465     ac_cv_prog_ac_ct_STRIP="strip"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471 IFS=$as_save_IFS
7472
7473 fi
7474 fi
7475 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7476 if test -n "$ac_ct_STRIP"; then
7477   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7478 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7479 else
7480   { echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6; }
7482 fi
7483
7484   if test "x$ac_ct_STRIP" = x; then
7485     STRIP=":"
7486   else
7487     case $cross_compiling:$ac_tool_warned in
7488 yes:)
7489 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7490 whose name does not start with the host triplet.  If you think this
7491 configuration is useful to you, please write to autoconf@gnu.org." >&5
7492 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7493 whose name does not start with the host triplet.  If you think this
7494 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7495 ac_tool_warned=yes ;;
7496 esac
7497     STRIP=$ac_ct_STRIP
7498   fi
7499 else
7500   STRIP="$ac_cv_prog_STRIP"
7501 fi
7502
7503
7504 old_CC="$CC"
7505 old_CFLAGS="$CFLAGS"
7506
7507 # Set sane defaults for various variables
7508 test -z "$AR" && AR=ar
7509 test -z "$AR_FLAGS" && AR_FLAGS=cru
7510 test -z "$AS" && AS=as
7511 test -z "$CC" && CC=cc
7512 test -z "$LTCC" && LTCC=$CC
7513 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7514 test -z "$DLLTOOL" && DLLTOOL=dlltool
7515 test -z "$LD" && LD=ld
7516 test -z "$LN_S" && LN_S="ln -s"
7517 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7518 test -z "$NM" && NM=nm
7519 test -z "$SED" && SED=sed
7520 test -z "$OBJDUMP" && OBJDUMP=objdump
7521 test -z "$RANLIB" && RANLIB=:
7522 test -z "$STRIP" && STRIP=:
7523 test -z "$ac_objext" && ac_objext=o
7524
7525 # Determine commands to create old-style static archives.
7526 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7527 old_postinstall_cmds='chmod 644 $oldlib'
7528 old_postuninstall_cmds=
7529
7530 if test -n "$RANLIB"; then
7531   case $host_os in
7532   openbsd*)
7533     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7534     ;;
7535   *)
7536     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7537     ;;
7538   esac
7539   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7540 fi
7541
7542 for cc_temp in $compiler""; do
7543   case $cc_temp in
7544     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7545     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7546     \-*) ;;
7547     *) break;;
7548   esac
7549 done
7550 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7551
7552
7553 # Only perform the check for file, if the check method requires it
7554 case $deplibs_check_method in
7555 file_magic*)
7556   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7557     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7558 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7560   echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562   case $MAGIC_CMD in
7563 [\\/*] |  ?:[\\/]*)
7564   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7565   ;;
7566 *)
7567   lt_save_MAGIC_CMD="$MAGIC_CMD"
7568   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7569   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7570   for ac_dir in $ac_dummy; do
7571     IFS="$lt_save_ifs"
7572     test -z "$ac_dir" && ac_dir=.
7573     if test -f $ac_dir/${ac_tool_prefix}file; then
7574       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7575       if test -n "$file_magic_test_file"; then
7576         case $deplibs_check_method in
7577         "file_magic "*)
7578           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7579           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7580           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7581             $EGREP "$file_magic_regex" > /dev/null; then
7582             :
7583           else
7584             cat <<EOF 1>&2
7585
7586 *** Warning: the command libtool uses to detect shared libraries,
7587 *** $file_magic_cmd, produces output that libtool cannot recognize.
7588 *** The result is that libtool may fail to recognize shared libraries
7589 *** as such.  This will affect the creation of libtool libraries that
7590 *** depend on shared libraries, but programs linked with such libtool
7591 *** libraries will work regardless of this problem.  Nevertheless, you
7592 *** may want to report the problem to your system manager and/or to
7593 *** bug-libtool@gnu.org
7594
7595 EOF
7596           fi ;;
7597         esac
7598       fi
7599       break
7600     fi
7601   done
7602   IFS="$lt_save_ifs"
7603   MAGIC_CMD="$lt_save_MAGIC_CMD"
7604   ;;
7605 esac
7606 fi
7607
7608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609 if test -n "$MAGIC_CMD"; then
7610   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7611 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7612 else
7613   { echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6; }
7615 fi
7616
7617 if test -z "$lt_cv_path_MAGIC_CMD"; then
7618   if test -n "$ac_tool_prefix"; then
7619     { echo "$as_me:$LINENO: checking for file" >&5
7620 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7621 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7622   echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624   case $MAGIC_CMD in
7625 [\\/*] |  ?:[\\/]*)
7626   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7627   ;;
7628 *)
7629   lt_save_MAGIC_CMD="$MAGIC_CMD"
7630   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7631   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7632   for ac_dir in $ac_dummy; do
7633     IFS="$lt_save_ifs"
7634     test -z "$ac_dir" && ac_dir=.
7635     if test -f $ac_dir/file; then
7636       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7637       if test -n "$file_magic_test_file"; then
7638         case $deplibs_check_method in
7639         "file_magic "*)
7640           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7641           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7643             $EGREP "$file_magic_regex" > /dev/null; then
7644             :
7645           else
7646             cat <<EOF 1>&2
7647
7648 *** Warning: the command libtool uses to detect shared libraries,
7649 *** $file_magic_cmd, produces output that libtool cannot recognize.
7650 *** The result is that libtool may fail to recognize shared libraries
7651 *** as such.  This will affect the creation of libtool libraries that
7652 *** depend on shared libraries, but programs linked with such libtool
7653 *** libraries will work regardless of this problem.  Nevertheless, you
7654 *** may want to report the problem to your system manager and/or to
7655 *** bug-libtool@gnu.org
7656
7657 EOF
7658           fi ;;
7659         esac
7660       fi
7661       break
7662     fi
7663   done
7664   IFS="$lt_save_ifs"
7665   MAGIC_CMD="$lt_save_MAGIC_CMD"
7666   ;;
7667 esac
7668 fi
7669
7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7671 if test -n "$MAGIC_CMD"; then
7672   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7673 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7674 else
7675   { echo "$as_me:$LINENO: result: no" >&5
7676 echo "${ECHO_T}no" >&6; }
7677 fi
7678
7679   else
7680     MAGIC_CMD=:
7681   fi
7682 fi
7683
7684   fi
7685   ;;
7686 esac
7687
7688 enable_dlopen=yes
7689 enable_win32_dll=no
7690
7691 # Check whether --enable-libtool-lock was given.
7692 if test "${enable_libtool_lock+set}" = set; then
7693   enableval=$enable_libtool_lock;
7694 fi
7695
7696 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7697
7698
7699 # Check whether --with-pic was given.
7700 if test "${with_pic+set}" = set; then
7701   withval=$with_pic; pic_mode="$withval"
7702 else
7703   pic_mode=default
7704 fi
7705
7706 test -z "$pic_mode" && pic_mode=default
7707
7708 # Use C for the default configuration in the libtool script
7709 tagname=
7710 lt_save_CC="$CC"
7711 ac_ext=c
7712 ac_cpp='$CPP $CPPFLAGS'
7713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716
7717
7718 # Source file extension for C test sources.
7719 ac_ext=c
7720
7721 # Object file extension for compiled C test sources.
7722 objext=o
7723 objext=$objext
7724
7725 # Code to be used in simple compile tests
7726 lt_simple_compile_test_code="int some_variable = 0;\n"
7727
7728 # Code to be used in simple link tests
7729 lt_simple_link_test_code='int main(){return(0);}\n'
7730
7731
7732 # If no C compiler was specified, use CC.
7733 LTCC=${LTCC-"$CC"}
7734
7735 # If no C compiler flags were specified, use CFLAGS.
7736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7737
7738 # Allow CC to be a program name with arguments.
7739 compiler=$CC
7740
7741
7742 # save warnings/boilerplate of simple test code
7743 ac_outfile=conftest.$ac_objext
7744 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7745 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7746 _lt_compiler_boilerplate=`cat conftest.err`
7747 $rm conftest*
7748
7749 ac_outfile=conftest.$ac_objext
7750 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7751 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7752 _lt_linker_boilerplate=`cat conftest.err`
7753 $rm conftest*
7754
7755
7756 ## CAVEAT EMPTOR:
7757 ## There is no encapsulation within the following macros, do not change
7758 ## the running order or otherwise move them around unless you know exactly
7759 ## what you are doing...
7760
7761 lt_prog_compiler_no_builtin_flag=
7762
7763 if test "$GCC" = yes; then
7764   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7765
7766
7767 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7768 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7769 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7770   echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772   lt_cv_prog_compiler_rtti_exceptions=no
7773   ac_outfile=conftest.$ac_objext
7774    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7775    lt_compiler_flag="-fno-rtti -fno-exceptions"
7776    # Insert the option either (1) after the last *FLAGS variable, or
7777    # (2) before a word containing "conftest.", or (3) at the end.
7778    # Note that $ac_compile itself does not contain backslashes and begins
7779    # with a dollar sign (not a hyphen), so the echo should work correctly.
7780    # The option is referenced via a variable to avoid confusing sed.
7781    lt_compile=`echo "$ac_compile" | $SED \
7782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7784    -e 's:$: $lt_compiler_flag:'`
7785    (eval echo "\"\$as_me:7785: $lt_compile\"" >&5)
7786    (eval "$lt_compile" 2>conftest.err)
7787    ac_status=$?
7788    cat conftest.err >&5
7789    echo "$as_me:7789: \$? = $ac_status" >&5
7790    if (exit $ac_status) && test -s "$ac_outfile"; then
7791      # The compiler can only warn and ignore the option if not recognized
7792      # So say no if there are warnings other than the usual output.
7793      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7794      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7795      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7796        lt_cv_prog_compiler_rtti_exceptions=yes
7797      fi
7798    fi
7799    $rm conftest*
7800
7801 fi
7802 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7803 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7804
7805 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7806     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7807 else
7808     :
7809 fi
7810
7811 fi
7812
7813 lt_prog_compiler_wl=
7814 lt_prog_compiler_pic=
7815 lt_prog_compiler_static=
7816
7817 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7818 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7819
7820   if test "$GCC" = yes; then
7821     lt_prog_compiler_wl='-Wl,'
7822     lt_prog_compiler_static='-static'
7823
7824     case $host_os in
7825       aix*)
7826       # All AIX code is PIC.
7827       if test "$host_cpu" = ia64; then
7828         # AIX 5 now supports IA64 processor
7829         lt_prog_compiler_static='-Bstatic'
7830       fi
7831       ;;
7832
7833     amigaos*)
7834       # FIXME: we need at least 68020 code to build shared libraries, but
7835       # adding the `-m68020' flag to GCC prevents building anything better,
7836       # like `-m68040'.
7837       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7838       ;;
7839
7840     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7841       # PIC is the default for these OSes.
7842       ;;
7843
7844     mingw* | pw32* | os2*)
7845       # This hack is so that the source file can tell whether it is being
7846       # built for inclusion in a dll (and should export symbols for example).
7847       lt_prog_compiler_pic='-DDLL_EXPORT'
7848       ;;
7849
7850     darwin* | rhapsody*)
7851       # PIC is the default on this platform
7852       # Common symbols not allowed in MH_DYLIB files
7853       lt_prog_compiler_pic='-fno-common'
7854       ;;
7855
7856     interix3*)
7857       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7858       # Instead, we relocate shared libraries at runtime.
7859       ;;
7860
7861     msdosdjgpp*)
7862       # Just because we use GCC doesn't mean we suddenly get shared libraries
7863       # on systems that don't support them.
7864       lt_prog_compiler_can_build_shared=no
7865       enable_shared=no
7866       ;;
7867
7868     sysv4*MP*)
7869       if test -d /usr/nec; then
7870         lt_prog_compiler_pic=-Kconform_pic
7871       fi
7872       ;;
7873
7874     hpux*)
7875       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7876       # not for PA HP-UX.
7877       case $host_cpu in
7878       hppa*64*|ia64*)
7879         # +Z the default
7880         ;;
7881       *)
7882         lt_prog_compiler_pic='-fPIC'
7883         ;;
7884       esac
7885       ;;
7886
7887     *)
7888       lt_prog_compiler_pic='-fPIC'
7889       ;;
7890     esac
7891   else
7892     # PORTME Check for flag to pass linker flags through the system compiler.
7893     case $host_os in
7894     aix*)
7895       lt_prog_compiler_wl='-Wl,'
7896       if test "$host_cpu" = ia64; then
7897         # AIX 5 now supports IA64 processor
7898         lt_prog_compiler_static='-Bstatic'
7899       else
7900         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7901       fi
7902       ;;
7903       darwin*)
7904         # PIC is the default on this platform
7905         # Common symbols not allowed in MH_DYLIB files
7906        case $cc_basename in
7907          xlc*)
7908          lt_prog_compiler_pic='-qnocommon'
7909          lt_prog_compiler_wl='-Wl,'
7910          ;;
7911        esac
7912        ;;
7913
7914     mingw* | pw32* | os2*)
7915       # This hack is so that the source file can tell whether it is being
7916       # built for inclusion in a dll (and should export symbols for example).
7917       lt_prog_compiler_pic='-DDLL_EXPORT'
7918       ;;
7919
7920     hpux9* | hpux10* | hpux11*)
7921       lt_prog_compiler_wl='-Wl,'
7922       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7923       # not for PA HP-UX.
7924       case $host_cpu in
7925       hppa*64*|ia64*)
7926         # +Z the default
7927         ;;
7928       *)
7929         lt_prog_compiler_pic='+Z'
7930         ;;
7931       esac
7932       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7933       lt_prog_compiler_static='${wl}-a ${wl}archive'
7934       ;;
7935
7936     irix5* | irix6* | nonstopux*)
7937       lt_prog_compiler_wl='-Wl,'
7938       # PIC (with -KPIC) is the default.
7939       lt_prog_compiler_static='-non_shared'
7940       ;;
7941
7942     newsos6)
7943       lt_prog_compiler_pic='-KPIC'
7944       lt_prog_compiler_static='-Bstatic'
7945       ;;
7946
7947     linux*)
7948       case $cc_basename in
7949       icc* | ecc*)
7950         lt_prog_compiler_wl='-Wl,'
7951         lt_prog_compiler_pic='-KPIC'
7952         lt_prog_compiler_static='-static'
7953         ;;
7954       pgcc* | pgf77* | pgf90* | pgf95*)
7955         # Portland Group compilers (*not* the Pentium gcc compiler,
7956         # which looks to be a dead project)
7957         lt_prog_compiler_wl='-Wl,'
7958         lt_prog_compiler_pic='-fpic'
7959         lt_prog_compiler_static='-Bstatic'
7960         ;;
7961       ccc*)
7962         lt_prog_compiler_wl='-Wl,'
7963         # All Alpha code is PIC.
7964         lt_prog_compiler_static='-non_shared'
7965         ;;
7966       esac
7967       ;;
7968
7969     osf3* | osf4* | osf5*)
7970       lt_prog_compiler_wl='-Wl,'
7971       # All OSF/1 code is PIC.
7972       lt_prog_compiler_static='-non_shared'
7973       ;;
7974
7975     solaris*)
7976       lt_prog_compiler_pic='-KPIC'
7977       lt_prog_compiler_static='-Bstatic'
7978       case $cc_basename in
7979       f77* | f90* | f95*)
7980         lt_prog_compiler_wl='-Qoption ld ';;
7981       *)
7982         lt_prog_compiler_wl='-Wl,';;
7983       esac
7984       ;;
7985
7986     sunos4*)
7987       lt_prog_compiler_wl='-Qoption ld '
7988       lt_prog_compiler_pic='-PIC'
7989       lt_prog_compiler_static='-Bstatic'
7990       ;;
7991
7992     sysv4 | sysv4.2uw2* | sysv4.3*)
7993       lt_prog_compiler_wl='-Wl,'
7994       lt_prog_compiler_pic='-KPIC'
7995       lt_prog_compiler_static='-Bstatic'
7996       ;;
7997
7998     sysv4*MP*)
7999       if test -d /usr/nec ;then
8000         lt_prog_compiler_pic='-Kconform_pic'
8001         lt_prog_compiler_static='-Bstatic'
8002       fi
8003       ;;
8004
8005     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8006       lt_prog_compiler_wl='-Wl,'
8007       lt_prog_compiler_pic='-KPIC'
8008       lt_prog_compiler_static='-Bstatic'
8009       ;;
8010
8011     unicos*)
8012       lt_prog_compiler_wl='-Wl,'
8013       lt_prog_compiler_can_build_shared=no
8014       ;;
8015
8016     uts4*)
8017       lt_prog_compiler_pic='-pic'
8018       lt_prog_compiler_static='-Bstatic'
8019       ;;
8020
8021     *)
8022       lt_prog_compiler_can_build_shared=no
8023       ;;
8024     esac
8025   fi
8026
8027 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8028 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8029
8030 #
8031 # Check to make sure the PIC flag actually works.
8032 #
8033 if test -n "$lt_prog_compiler_pic"; then
8034
8035 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8036 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8037 if test "${lt_prog_compiler_pic_works+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   lt_prog_compiler_pic_works=no
8041   ac_outfile=conftest.$ac_objext
8042    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8043    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8044    # Insert the option either (1) after the last *FLAGS variable, or
8045    # (2) before a word containing "conftest.", or (3) at the end.
8046    # Note that $ac_compile itself does not contain backslashes and begins
8047    # with a dollar sign (not a hyphen), so the echo should work correctly.
8048    # The option is referenced via a variable to avoid confusing sed.
8049    lt_compile=`echo "$ac_compile" | $SED \
8050    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8051    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8052    -e 's:$: $lt_compiler_flag:'`
8053    (eval echo "\"\$as_me:8053: $lt_compile\"" >&5)
8054    (eval "$lt_compile" 2>conftest.err)
8055    ac_status=$?
8056    cat conftest.err >&5
8057    echo "$as_me:8057: \$? = $ac_status" >&5
8058    if (exit $ac_status) && test -s "$ac_outfile"; then
8059      # The compiler can only warn and ignore the option if not recognized
8060      # So say no if there are warnings other than the usual output.
8061      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8062      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8063      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8064        lt_prog_compiler_pic_works=yes
8065      fi
8066    fi
8067    $rm conftest*
8068
8069 fi
8070 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8071 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8072
8073 if test x"$lt_prog_compiler_pic_works" = xyes; then
8074     case $lt_prog_compiler_pic in
8075      "" | " "*) ;;
8076      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8077      esac
8078 else
8079     lt_prog_compiler_pic=
8080      lt_prog_compiler_can_build_shared=no
8081 fi
8082
8083 fi
8084 case $host_os in
8085   # For platforms which do not support PIC, -DPIC is meaningless:
8086   *djgpp*)
8087     lt_prog_compiler_pic=
8088     ;;
8089   *)
8090     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8091     ;;
8092 esac
8093
8094 #
8095 # Check to make sure the static flag actually works.
8096 #
8097 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8098 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8099 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8100 if test "${lt_prog_compiler_static_works+set}" = set; then
8101   echo $ECHO_N "(cached) $ECHO_C" >&6
8102 else
8103   lt_prog_compiler_static_works=no
8104    save_LDFLAGS="$LDFLAGS"
8105    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8106    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8107    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8108      # The linker can only warn and ignore the option if not recognized
8109      # So say no if there are warnings
8110      if test -s conftest.err; then
8111        # Append any errors to the config.log.
8112        cat conftest.err 1>&5
8113        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8114        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8115        if diff conftest.exp conftest.er2 >/dev/null; then
8116          lt_prog_compiler_static_works=yes
8117        fi
8118      else
8119        lt_prog_compiler_static_works=yes
8120      fi
8121    fi
8122    $rm conftest*
8123    LDFLAGS="$save_LDFLAGS"
8124
8125 fi
8126 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8127 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8128
8129 if test x"$lt_prog_compiler_static_works" = xyes; then
8130     :
8131 else
8132     lt_prog_compiler_static=
8133 fi
8134
8135
8136 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8137 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8138 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8139   echo $ECHO_N "(cached) $ECHO_C" >&6
8140 else
8141   lt_cv_prog_compiler_c_o=no
8142    $rm -r conftest 2>/dev/null
8143    mkdir conftest
8144    cd conftest
8145    mkdir out
8146    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8147
8148    lt_compiler_flag="-o out/conftest2.$ac_objext"
8149    # Insert the option either (1) after the last *FLAGS variable, or
8150    # (2) before a word containing "conftest.", or (3) at the end.
8151    # Note that $ac_compile itself does not contain backslashes and begins
8152    # with a dollar sign (not a hyphen), so the echo should work correctly.
8153    lt_compile=`echo "$ac_compile" | $SED \
8154    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8155    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8156    -e 's:$: $lt_compiler_flag:'`
8157    (eval echo "\"\$as_me:8157: $lt_compile\"" >&5)
8158    (eval "$lt_compile" 2>out/conftest.err)
8159    ac_status=$?
8160    cat out/conftest.err >&5
8161    echo "$as_me:8161: \$? = $ac_status" >&5
8162    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8163    then
8164      # The compiler can only warn and ignore the option if not recognized
8165      # So say no if there are warnings
8166      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8167      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8168      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8169        lt_cv_prog_compiler_c_o=yes
8170      fi
8171    fi
8172    chmod u+w . 2>&5
8173    $rm conftest*
8174    # SGI C++ compiler will create directory out/ii_files/ for
8175    # template instantiation
8176    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8177    $rm out/* && rmdir out
8178    cd ..
8179    rmdir conftest
8180    $rm conftest*
8181
8182 fi
8183 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8184 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8185
8186
8187 hard_links="nottested"
8188 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8189   # do not overwrite the value of need_locks provided by the user
8190   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8191 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8192   hard_links=yes
8193   $rm conftest*
8194   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8195   touch conftest.a
8196   ln conftest.a conftest.b 2>&5 || hard_links=no
8197   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8198   { echo "$as_me:$LINENO: result: $hard_links" >&5
8199 echo "${ECHO_T}$hard_links" >&6; }
8200   if test "$hard_links" = no; then
8201     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8202 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8203     need_locks=warn
8204   fi
8205 else
8206   need_locks=no
8207 fi
8208
8209 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8210 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8211
8212   runpath_var=
8213   allow_undefined_flag=
8214   enable_shared_with_static_runtimes=no
8215   archive_cmds=
8216   archive_expsym_cmds=
8217   old_archive_From_new_cmds=
8218   old_archive_from_expsyms_cmds=
8219   export_dynamic_flag_spec=
8220   whole_archive_flag_spec=
8221   thread_safe_flag_spec=
8222   hardcode_libdir_flag_spec=
8223   hardcode_libdir_flag_spec_ld=
8224   hardcode_libdir_separator=
8225   hardcode_direct=no
8226   hardcode_minus_L=no
8227   hardcode_shlibpath_var=unsupported
8228   link_all_deplibs=unknown
8229   hardcode_automatic=no
8230   module_cmds=
8231   module_expsym_cmds=
8232   always_export_symbols=no
8233   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8234   # include_expsyms should be a list of space-separated symbols to be *always*
8235   # included in the symbol list
8236   include_expsyms=
8237   # exclude_expsyms can be an extended regexp of symbols to exclude
8238   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8239   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8240   # as well as any symbol that contains `d'.
8241   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8242   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8243   # platforms (ab)use it in PIC code, but their linkers get confused if
8244   # the symbol is explicitly referenced.  Since portable code cannot
8245   # rely on this symbol name, it's probably fine to never include it in
8246   # preloaded symbol tables.
8247   extract_expsyms_cmds=
8248   # Just being paranoid about ensuring that cc_basename is set.
8249   for cc_temp in $compiler""; do
8250   case $cc_temp in
8251     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8253     \-*) ;;
8254     *) break;;
8255   esac
8256 done
8257 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8258
8259   case $host_os in
8260   cygwin* | mingw* | pw32*)
8261     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8262     # When not using gcc, we currently assume that we are using
8263     # Microsoft Visual C++.
8264     if test "$GCC" != yes; then
8265       with_gnu_ld=no
8266     fi
8267     ;;
8268   interix*)
8269     # we just hope/assume this is gcc and not c89 (= MSVC++)
8270     with_gnu_ld=yes
8271     ;;
8272   openbsd*)
8273     with_gnu_ld=no
8274     ;;
8275   esac
8276
8277   ld_shlibs=yes
8278   if test "$with_gnu_ld" = yes; then
8279     # If archive_cmds runs LD, not CC, wlarc should be empty
8280     wlarc='${wl}'
8281
8282     # Set some defaults for GNU ld with shared library support. These
8283     # are reset later if shared libraries are not supported. Putting them
8284     # here allows them to be overridden if necessary.
8285     runpath_var=LD_RUN_PATH
8286     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8287     export_dynamic_flag_spec='${wl}--export-dynamic'
8288     # ancient GNU ld didn't support --whole-archive et. al.
8289     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8290         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8291       else
8292         whole_archive_flag_spec=
8293     fi
8294     supports_anon_versioning=no
8295     case `$LD -v 2>/dev/null` in
8296       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8297       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8298       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8299       *\ 2.11.*) ;; # other 2.11 versions
8300       *) supports_anon_versioning=yes ;;
8301     esac
8302
8303     # See if GNU ld supports shared libraries.
8304     case $host_os in
8305     aix3* | aix4* | aix5*)
8306       # On AIX/PPC, the GNU linker is very broken
8307       if test "$host_cpu" != ia64; then
8308         ld_shlibs=no
8309         cat <<EOF 1>&2
8310
8311 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8312 *** to be unable to reliably create shared libraries on AIX.
8313 *** Therefore, libtool is disabling shared libraries support.  If you
8314 *** really care for shared libraries, you may want to modify your PATH
8315 *** so that a non-GNU linker is found, and then restart.
8316
8317 EOF
8318       fi
8319       ;;
8320
8321     amigaos*)
8322       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)'
8323       hardcode_libdir_flag_spec='-L$libdir'
8324       hardcode_minus_L=yes
8325
8326       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8327       # that the semantics of dynamic libraries on AmigaOS, at least up
8328       # to version 4, is to share data among multiple programs linked
8329       # with the same dynamic library.  Since this doesn't match the
8330       # behavior of shared libraries on other platforms, we can't use
8331       # them.
8332       ld_shlibs=no
8333       ;;
8334
8335     beos*)
8336       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8337         allow_undefined_flag=unsupported
8338         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8339         # support --undefined.  This deserves some investigation.  FIXME
8340         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8341       else
8342         ld_shlibs=no
8343       fi
8344       ;;
8345
8346     cygwin* | mingw* | pw32*)
8347       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8348       # as there is no search path for DLLs.
8349       hardcode_libdir_flag_spec='-L$libdir'
8350       allow_undefined_flag=unsupported
8351       always_export_symbols=no
8352       enable_shared_with_static_runtimes=yes
8353       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8354
8355       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8356         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8357         # If the export-symbols file already is a .def file (1st line
8358         # is EXPORTS), use it as is; otherwise, prepend...
8359         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8360           cp $export_symbols $output_objdir/$soname.def;
8361         else
8362           echo EXPORTS > $output_objdir/$soname.def;
8363           cat $export_symbols >> $output_objdir/$soname.def;
8364         fi~
8365         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8366       else
8367         ld_shlibs=no
8368       fi
8369       ;;
8370
8371     interix3*)
8372       hardcode_direct=no
8373       hardcode_shlibpath_var=no
8374       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8375       export_dynamic_flag_spec='${wl}-E'
8376       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8377       # Instead, shared libraries are loaded at an image base (0x10000000 by
8378       # default) and relocated if they conflict, which is a slow very memory
8379       # consuming and fragmenting process.  To avoid this, we pick a random,
8380       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8381       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8382       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8383       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'
8384       ;;
8385
8386     linux*)
8387       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8388         tmp_addflag=
8389         case $cc_basename,$host_cpu in
8390         pgcc*)                          # Portland Group C compiler
8391           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'
8392           tmp_addflag=' $pic_flag'
8393           ;;
8394         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8395           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'
8396           tmp_addflag=' $pic_flag -Mnomain' ;;
8397         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8398           tmp_addflag=' -i_dynamic' ;;
8399         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8400           tmp_addflag=' -i_dynamic -nofor_main' ;;
8401         ifc* | ifort*)                  # Intel Fortran compiler
8402           tmp_addflag=' -nofor_main' ;;
8403         esac
8404         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8405
8406         if test $supports_anon_versioning = yes; then
8407           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8408   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8409   $echo "local: *; };" >> $output_objdir/$libname.ver~
8410           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8411         fi
8412       else
8413         ld_shlibs=no
8414       fi
8415       ;;
8416
8417     netbsd*)
8418       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8419         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8420         wlarc=
8421       else
8422         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8424       fi
8425       ;;
8426
8427     solaris*)
8428       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8429         ld_shlibs=no
8430         cat <<EOF 1>&2
8431
8432 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8433 *** create shared libraries on Solaris systems.  Therefore, libtool
8434 *** is disabling shared libraries support.  We urge you to upgrade GNU
8435 *** binutils to release 2.9.1 or newer.  Another option is to modify
8436 *** your PATH or compiler configuration so that the native linker is
8437 *** used, and then restart.
8438
8439 EOF
8440       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8441         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8443       else
8444         ld_shlibs=no
8445       fi
8446       ;;
8447
8448     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8449       case `$LD -v 2>&1` in
8450         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8451         ld_shlibs=no
8452         cat <<_LT_EOF 1>&2
8453
8454 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8455 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8456 *** is disabling shared libraries support.  We urge you to upgrade GNU
8457 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8458 *** your PATH or compiler configuration so that the native linker is
8459 *** used, and then restart.
8460
8461 _LT_EOF
8462         ;;
8463         *)
8464           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8465             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8466             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8467             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8468           else
8469             ld_shlibs=no
8470           fi
8471         ;;
8472       esac
8473       ;;
8474
8475     sunos4*)
8476       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8477       wlarc=
8478       hardcode_direct=yes
8479       hardcode_shlibpath_var=no
8480       ;;
8481
8482     *)
8483       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8484         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8485         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8486       else
8487         ld_shlibs=no
8488       fi
8489       ;;
8490     esac
8491
8492     if test "$ld_shlibs" = no; then
8493       runpath_var=
8494       hardcode_libdir_flag_spec=
8495       export_dynamic_flag_spec=
8496       whole_archive_flag_spec=
8497     fi
8498   else
8499     # PORTME fill in a description of your system's linker (not GNU ld)
8500     case $host_os in
8501     aix3*)
8502       allow_undefined_flag=unsupported
8503       always_export_symbols=yes
8504       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'
8505       # Note: this linker hardcodes the directories in LIBPATH if there
8506       # are no directories specified by -L.
8507       hardcode_minus_L=yes
8508       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8509         # Neither direct hardcoding nor static linking is supported with a
8510         # broken collect2.
8511         hardcode_direct=unsupported
8512       fi
8513       ;;
8514
8515     aix4* | aix5*)
8516       if test "$host_cpu" = ia64; then
8517         # On IA64, the linker does run time linking by default, so we don't
8518         # have to do anything special.
8519         aix_use_runtimelinking=no
8520         exp_sym_flag='-Bexport'
8521         no_entry_flag=""
8522       else
8523         # If we're using GNU nm, then we don't want the "-C" option.
8524         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8525         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8526           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'
8527         else
8528           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'
8529         fi
8530         aix_use_runtimelinking=no
8531
8532         # Test if we are trying to use run time linking or normal
8533         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8534         # need to do runtime linking.
8535         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8536           for ld_flag in $LDFLAGS; do
8537           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8538             aix_use_runtimelinking=yes
8539             break
8540           fi
8541           done
8542           ;;
8543         esac
8544
8545         exp_sym_flag='-bexport'
8546         no_entry_flag='-bnoentry'
8547       fi
8548
8549       # When large executables or shared objects are built, AIX ld can
8550       # have problems creating the table of contents.  If linking a library
8551       # or program results in "error TOC overflow" add -mminimal-toc to
8552       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8553       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8554
8555       archive_cmds=''
8556       hardcode_direct=yes
8557       hardcode_libdir_separator=':'
8558       link_all_deplibs=yes
8559
8560       if test "$GCC" = yes; then
8561         case $host_os in aix4.[012]|aix4.[012].*)
8562         # We only want to do this on AIX 4.2 and lower, the check
8563         # below for broken collect2 doesn't work under 4.3+
8564           collect2name=`${CC} -print-prog-name=collect2`
8565           if test -f "$collect2name" && \
8566            strings "$collect2name" | grep resolve_lib_name >/dev/null
8567           then
8568           # We have reworked collect2
8569           hardcode_direct=yes
8570           else
8571           # We have old collect2
8572           hardcode_direct=unsupported
8573           # It fails to find uninstalled libraries when the uninstalled
8574           # path is not listed in the libpath.  Setting hardcode_minus_L
8575           # to unsupported forces relinking
8576           hardcode_minus_L=yes
8577           hardcode_libdir_flag_spec='-L$libdir'
8578           hardcode_libdir_separator=
8579           fi
8580           ;;
8581         esac
8582         shared_flag='-shared'
8583         if test "$aix_use_runtimelinking" = yes; then
8584           shared_flag="$shared_flag "'${wl}-G'
8585         fi
8586       else
8587         # not using gcc
8588         if test "$host_cpu" = ia64; then
8589         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8590         # chokes on -Wl,-G. The following line is correct:
8591           shared_flag='-G'
8592         else
8593           if test "$aix_use_runtimelinking" = yes; then
8594             shared_flag='${wl}-G'
8595           else
8596             shared_flag='${wl}-bM:SRE'
8597           fi
8598         fi
8599       fi
8600
8601       # It seems that -bexpall does not export symbols beginning with
8602       # underscore (_), so it is better to generate a list of symbols to export.
8603       always_export_symbols=yes
8604       if test "$aix_use_runtimelinking" = yes; then
8605         # Warning - without using the other runtime loading flags (-brtl),
8606         # -berok will link without error, but may produce a broken library.
8607         allow_undefined_flag='-berok'
8608        # Determine the default libpath from the value encoded in an empty executable.
8609        cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615
8616 int
8617 main ()
8618 {
8619
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8626 case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631   (eval "$ac_link") 2>conftest.er1
8632   ac_status=$?
8633   grep -v '^ *+' conftest.er1 >conftest.err
8634   rm -f conftest.er1
8635   cat conftest.err >&5
8636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637   (exit $ac_status); } &&
8638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8639   { (case "(($ac_try" in
8640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641   *) ac_try_echo=$ac_try;;
8642 esac
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644   (eval "$ac_try") 2>&5
8645   ac_status=$?
8646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647   (exit $ac_status); }; } &&
8648          { ac_try='test -s conftest$ac_exeext'
8649   { (case "(($ac_try" in
8650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651   *) ac_try_echo=$ac_try;;
8652 esac
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654   (eval "$ac_try") 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; }; then
8658
8659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8660 }'`
8661 # Check for a 64-bit object if we didn't find anything.
8662 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; }
8663 }'`; fi
8664 else
8665   echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8667
8668
8669 fi
8670
8671 rm -f core conftest.err conftest.$ac_objext \
8672       conftest$ac_exeext conftest.$ac_ext
8673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8674
8675        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8676         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"
8677        else
8678         if test "$host_cpu" = ia64; then
8679           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8680           allow_undefined_flag="-z nodefs"
8681           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"
8682         else
8683          # Determine the default libpath from the value encoded in an empty executable.
8684          cat >conftest.$ac_ext <<_ACEOF
8685 /* confdefs.h.  */
8686 _ACEOF
8687 cat confdefs.h >>conftest.$ac_ext
8688 cat >>conftest.$ac_ext <<_ACEOF
8689 /* end confdefs.h.  */
8690
8691 int
8692 main ()
8693 {
8694
8695   ;
8696   return 0;
8697 }
8698 _ACEOF
8699 rm -f conftest.$ac_objext conftest$ac_exeext
8700 if { (ac_try="$ac_link"
8701 case "(($ac_try" in
8702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8703   *) ac_try_echo=$ac_try;;
8704 esac
8705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8706   (eval "$ac_link") 2>conftest.er1
8707   ac_status=$?
8708   grep -v '^ *+' conftest.er1 >conftest.err
8709   rm -f conftest.er1
8710   cat conftest.err >&5
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); } &&
8713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8714   { (case "(($ac_try" in
8715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8716   *) ac_try_echo=$ac_try;;
8717 esac
8718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8719   (eval "$ac_try") 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); }; } &&
8723          { ac_try='test -s conftest$ac_exeext'
8724   { (case "(($ac_try" in
8725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8726   *) ac_try_echo=$ac_try;;
8727 esac
8728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8729   (eval "$ac_try") 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); }; }; then
8733
8734 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8735 }'`
8736 # Check for a 64-bit object if we didn't find anything.
8737 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; }
8738 }'`; fi
8739 else
8740   echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743
8744 fi
8745
8746 rm -f core conftest.err conftest.$ac_objext \
8747       conftest$ac_exeext conftest.$ac_ext
8748 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8749
8750          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8751           # Warning - without using the other run time loading flags,
8752           # -berok will link without error, but may produce a broken library.
8753           no_undefined_flag=' ${wl}-bernotok'
8754           allow_undefined_flag=' ${wl}-berok'
8755           # Exported symbols can be pulled into shared objects from archives
8756           whole_archive_flag_spec='$convenience'
8757           archive_cmds_need_lc=yes
8758           # This is similar to how AIX traditionally builds its shared libraries.
8759           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'
8760         fi
8761       fi
8762       ;;
8763
8764     amigaos*)
8765       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)'
8766       hardcode_libdir_flag_spec='-L$libdir'
8767       hardcode_minus_L=yes
8768       # see comment about different semantics on the GNU ld section
8769       ld_shlibs=no
8770       ;;
8771
8772     bsdi[45]*)
8773       export_dynamic_flag_spec=-rdynamic
8774       ;;
8775
8776     cygwin* | mingw* | pw32*)
8777       # When not using gcc, we currently assume that we are using
8778       # Microsoft Visual C++.
8779       # hardcode_libdir_flag_spec is actually meaningless, as there is
8780       # no search path for DLLs.
8781       hardcode_libdir_flag_spec=' '
8782       allow_undefined_flag=unsupported
8783       # Tell ltmain to make .lib files, not .a files.
8784       libext=lib
8785       # Tell ltmain to make .dll files, not .so files.
8786       shrext_cmds=".dll"
8787       # FIXME: Setting linknames here is a bad hack.
8788       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8789       # The linker will automatically build a .lib file if we build a DLL.
8790       old_archive_From_new_cmds='true'
8791       # FIXME: Should let the user specify the lib program.
8792       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8793       fix_srcfile_path='`cygpath -w "$srcfile"`'
8794       enable_shared_with_static_runtimes=yes
8795       ;;
8796
8797     darwin* | rhapsody*)
8798       case $host_os in
8799         rhapsody* | darwin1.[012])
8800          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8801          ;;
8802        *) # Darwin 1.3 on
8803          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8804            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8805          else
8806            case ${MACOSX_DEPLOYMENT_TARGET} in
8807              10.[012])
8808                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8809                ;;
8810              10.*)
8811                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8812                ;;
8813            esac
8814          fi
8815          ;;
8816       esac
8817       archive_cmds_need_lc=no
8818       hardcode_direct=no
8819       hardcode_automatic=yes
8820       hardcode_shlibpath_var=unsupported
8821       whole_archive_flag_spec=''
8822       link_all_deplibs=yes
8823     if test "$GCC" = yes ; then
8824         output_verbose_link_cmd='echo'
8825         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8826       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8827       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8828       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}'
8829       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}'
8830     else
8831       case $cc_basename in
8832         xlc*)
8833          output_verbose_link_cmd='echo'
8834          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8835          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8836           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8837          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}'
8838           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}'
8839           ;;
8840        *)
8841          ld_shlibs=no
8842           ;;
8843       esac
8844     fi
8845       ;;
8846
8847     dgux*)
8848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849       hardcode_libdir_flag_spec='-L$libdir'
8850       hardcode_shlibpath_var=no
8851       ;;
8852
8853     freebsd1*)
8854       ld_shlibs=no
8855       ;;
8856
8857     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8858     # support.  Future versions do this automatically, but an explicit c++rt0.o
8859     # does not break anything, and helps significantly (at the cost of a little
8860     # extra space).
8861     freebsd2.2*)
8862       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8863       hardcode_libdir_flag_spec='-R$libdir'
8864       hardcode_direct=yes
8865       hardcode_shlibpath_var=no
8866       ;;
8867
8868     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8869     freebsd2*)
8870       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871       hardcode_direct=yes
8872       hardcode_minus_L=yes
8873       hardcode_shlibpath_var=no
8874       ;;
8875
8876     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8877     freebsd* | kfreebsd*-gnu | dragonfly*)
8878       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8879       hardcode_libdir_flag_spec='-R$libdir'
8880       hardcode_direct=yes
8881       hardcode_shlibpath_var=no
8882       ;;
8883
8884     hpux9*)
8885       if test "$GCC" = yes; then
8886         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'
8887       else
8888         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'
8889       fi
8890       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8891       hardcode_libdir_separator=:
8892       hardcode_direct=yes
8893
8894       # hardcode_minus_L: Not really in the search PATH,
8895       # but as the default location of the library.
8896       hardcode_minus_L=yes
8897       export_dynamic_flag_spec='${wl}-E'
8898       ;;
8899
8900     hpux10*)
8901       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8902         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8903       else
8904         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8905       fi
8906       if test "$with_gnu_ld" = no; then
8907         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8908         hardcode_libdir_separator=:
8909
8910         hardcode_direct=yes
8911         export_dynamic_flag_spec='${wl}-E'
8912
8913         # hardcode_minus_L: Not really in the search PATH,
8914         # but as the default location of the library.
8915         hardcode_minus_L=yes
8916       fi
8917       ;;
8918
8919     hpux11*)
8920       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8921         case $host_cpu in
8922         hppa*64*)
8923           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8924           ;;
8925         ia64*)
8926           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8927           ;;
8928         *)
8929           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8930           ;;
8931         esac
8932       else
8933         case $host_cpu in
8934         hppa*64*)
8935           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8936           ;;
8937         ia64*)
8938           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8939           ;;
8940         *)
8941           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8942           ;;
8943         esac
8944       fi
8945       if test "$with_gnu_ld" = no; then
8946         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8947         hardcode_libdir_separator=:
8948
8949         case $host_cpu in
8950         hppa*64*|ia64*)
8951           hardcode_libdir_flag_spec_ld='+b $libdir'
8952           hardcode_direct=no
8953           hardcode_shlibpath_var=no
8954           ;;
8955         *)
8956           hardcode_direct=yes
8957           export_dynamic_flag_spec='${wl}-E'
8958
8959           # hardcode_minus_L: Not really in the search PATH,
8960           # but as the default location of the library.
8961           hardcode_minus_L=yes
8962           ;;
8963         esac
8964       fi
8965       ;;
8966
8967     irix5* | irix6* | nonstopux*)
8968       if test "$GCC" = yes; then
8969         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'
8970       else
8971         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'
8972         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8973       fi
8974       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975       hardcode_libdir_separator=:
8976       link_all_deplibs=yes
8977       ;;
8978
8979     netbsd*)
8980       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8981         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8982       else
8983         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8984       fi
8985       hardcode_libdir_flag_spec='-R$libdir'
8986       hardcode_direct=yes
8987       hardcode_shlibpath_var=no
8988       ;;
8989
8990     newsos6)
8991       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8992       hardcode_direct=yes
8993       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8994       hardcode_libdir_separator=:
8995       hardcode_shlibpath_var=no
8996       ;;
8997
8998     openbsd*)
8999       hardcode_direct=yes
9000       hardcode_shlibpath_var=no
9001       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9002         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9003         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9004         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9005         export_dynamic_flag_spec='${wl}-E'
9006       else
9007        case $host_os in
9008          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9009            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010            hardcode_libdir_flag_spec='-R$libdir'
9011            ;;
9012          *)
9013            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9014            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9015            ;;
9016        esac
9017       fi
9018       ;;
9019
9020     os2*)
9021       hardcode_libdir_flag_spec='-L$libdir'
9022       hardcode_minus_L=yes
9023       allow_undefined_flag=unsupported
9024       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'
9025       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9026       ;;
9027
9028     osf3*)
9029       if test "$GCC" = yes; then
9030         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9031         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'
9032       else
9033         allow_undefined_flag=' -expect_unresolved \*'
9034         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'
9035       fi
9036       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9037       hardcode_libdir_separator=:
9038       ;;
9039
9040     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9041       if test "$GCC" = yes; then
9042         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9043         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'
9044         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9045       else
9046         allow_undefined_flag=' -expect_unresolved \*'
9047         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'
9048         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9049         $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'
9050
9051         # Both c and cxx compiler support -rpath directly
9052         hardcode_libdir_flag_spec='-rpath $libdir'
9053       fi
9054       hardcode_libdir_separator=:
9055       ;;
9056
9057     solaris*)
9058       no_undefined_flag=' -z text'
9059       if test "$GCC" = yes; then
9060         wlarc='${wl}'
9061         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9062         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9063           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9064       else
9065         wlarc=''
9066         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9068         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9069       fi
9070       hardcode_libdir_flag_spec='-R$libdir'
9071       hardcode_shlibpath_var=no
9072       case $host_os in
9073       solaris2.[0-5] | solaris2.[0-5].*) ;;
9074       *)
9075         # The compiler driver will combine linker options so we
9076         # cannot just pass the convience library names through
9077         # without $wl, iff we do not link with $LD.
9078         # Luckily, gcc supports the same syntax we need for Sun Studio.
9079         # Supported since Solaris 2.6 (maybe 2.5.1?)
9080         case $wlarc in
9081         '')
9082           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9083         *)
9084           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' ;;
9085         esac ;;
9086       esac
9087       link_all_deplibs=yes
9088       ;;
9089
9090     sunos4*)
9091       if test "x$host_vendor" = xsequent; then
9092         # Use $CC to link under sequent, because it throws in some extra .o
9093         # files that make .init and .fini sections work.
9094         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9095       else
9096         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9097       fi
9098       hardcode_libdir_flag_spec='-L$libdir'
9099       hardcode_direct=yes
9100       hardcode_minus_L=yes
9101       hardcode_shlibpath_var=no
9102       ;;
9103
9104     sysv4)
9105       case $host_vendor in
9106         sni)
9107           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9108           hardcode_direct=yes # is this really true???
9109         ;;
9110         siemens)
9111           ## LD is ld it makes a PLAMLIB
9112           ## CC just makes a GrossModule.
9113           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9114           reload_cmds='$CC -r -o $output$reload_objs'
9115           hardcode_direct=no
9116         ;;
9117         motorola)
9118           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9119           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9120         ;;
9121       esac
9122       runpath_var='LD_RUN_PATH'
9123       hardcode_shlibpath_var=no
9124       ;;
9125
9126     sysv4.3*)
9127       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9128       hardcode_shlibpath_var=no
9129       export_dynamic_flag_spec='-Bexport'
9130       ;;
9131
9132     sysv4*MP*)
9133       if test -d /usr/nec; then
9134         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9135         hardcode_shlibpath_var=no
9136         runpath_var=LD_RUN_PATH
9137         hardcode_runpath_var=yes
9138         ld_shlibs=yes
9139       fi
9140       ;;
9141
9142     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9143       no_undefined_flag='${wl}-z,text'
9144       archive_cmds_need_lc=no
9145       hardcode_shlibpath_var=no
9146       runpath_var='LD_RUN_PATH'
9147
9148       if test "$GCC" = yes; then
9149         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9150         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9151       else
9152         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9154       fi
9155       ;;
9156
9157     sysv5* | sco3.2v5* | sco5v6*)
9158       # Note: We can NOT use -z defs as we might desire, because we do not
9159       # link with -lc, and that would cause any symbols used from libc to
9160       # always be unresolved, which means just about no library would
9161       # ever link correctly.  If we're not using GNU ld we use -z text
9162       # though, which does catch some bad symbols but isn't as heavy-handed
9163       # as -z defs.
9164       no_undefined_flag='${wl}-z,text'
9165       allow_undefined_flag='${wl}-z,nodefs'
9166       archive_cmds_need_lc=no
9167       hardcode_shlibpath_var=no
9168       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9169       hardcode_libdir_separator=':'
9170       link_all_deplibs=yes
9171       export_dynamic_flag_spec='${wl}-Bexport'
9172       runpath_var='LD_RUN_PATH'
9173
9174       if test "$GCC" = yes; then
9175         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9176         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9177       else
9178         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9180       fi
9181       ;;
9182
9183     uts4*)
9184       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9185       hardcode_libdir_flag_spec='-L$libdir'
9186       hardcode_shlibpath_var=no
9187       ;;
9188
9189     *)
9190       ld_shlibs=no
9191       ;;
9192     esac
9193   fi
9194
9195 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9196 echo "${ECHO_T}$ld_shlibs" >&6; }
9197 test "$ld_shlibs" = no && can_build_shared=no
9198
9199 #
9200 # Do we need to explicitly link libc?
9201 #
9202 case "x$archive_cmds_need_lc" in
9203 x|xyes)
9204   # Assume -lc should be added
9205   archive_cmds_need_lc=yes
9206
9207   if test "$enable_shared" = yes && test "$GCC" = yes; then
9208     case $archive_cmds in
9209     *'~'*)
9210       # FIXME: we may have to deal with multi-command sequences.
9211       ;;
9212     '$CC '*)
9213       # Test whether the compiler implicitly links with -lc since on some
9214       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9215       # to ld, don't add -lc before -lgcc.
9216       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9217 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9218       $rm conftest*
9219       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9220
9221       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222   (eval $ac_compile) 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); } 2>conftest.err; then
9226         soname=conftest
9227         lib=conftest
9228         libobjs=conftest.$ac_objext
9229         deplibs=
9230         wl=$lt_prog_compiler_wl
9231         pic_flag=$lt_prog_compiler_pic
9232         compiler_flags=-v
9233         linker_flags=-v
9234         verstring=
9235         output_objdir=.
9236         libname=conftest
9237         lt_save_allow_undefined_flag=$allow_undefined_flag
9238         allow_undefined_flag=
9239         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9240   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9241   ac_status=$?
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); }
9244         then
9245           archive_cmds_need_lc=no
9246         else
9247           archive_cmds_need_lc=yes
9248         fi
9249         allow_undefined_flag=$lt_save_allow_undefined_flag
9250       else
9251         cat conftest.err 1>&5
9252       fi
9253       $rm conftest*
9254       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9255 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9256       ;;
9257     esac
9258   fi
9259   ;;
9260 esac
9261
9262 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9263 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9264 library_names_spec=
9265 libname_spec='lib$name'
9266 soname_spec=
9267 shrext_cmds=".so"
9268 postinstall_cmds=
9269 postuninstall_cmds=
9270 finish_cmds=
9271 finish_eval=
9272 shlibpath_var=
9273 shlibpath_overrides_runpath=unknown
9274 version_type=none
9275 dynamic_linker="$host_os ld.so"
9276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9277 if test "$GCC" = yes; then
9278   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9279   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9280     # if the path contains ";" then we assume it to be the separator
9281     # otherwise default to the standard path separator (i.e. ":") - it is
9282     # assumed that no part of a normal pathname contains ";" but that should
9283     # okay in the real world where ";" in dirpaths is itself problematic.
9284     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9285   else
9286     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9287   fi
9288 else
9289   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9290 fi
9291 need_lib_prefix=unknown
9292 hardcode_into_libs=no
9293
9294 # when you set need_version to no, make sure it does not cause -set_version
9295 # flags to be left without arguments
9296 need_version=unknown
9297
9298 case $host_os in
9299 aix3*)
9300   version_type=linux
9301   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9302   shlibpath_var=LIBPATH
9303
9304   # AIX 3 has no versioning support, so we append a major version to the name.
9305   soname_spec='${libname}${release}${shared_ext}$major'
9306   ;;
9307
9308 aix4* | aix5*)
9309   version_type=linux
9310   need_lib_prefix=no
9311   need_version=no
9312   hardcode_into_libs=yes
9313   if test "$host_cpu" = ia64; then
9314     # AIX 5 supports IA64
9315     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9316     shlibpath_var=LD_LIBRARY_PATH
9317   else
9318     # With GCC up to 2.95.x, collect2 would create an import file
9319     # for dependence libraries.  The import file would start with
9320     # the line `#! .'.  This would cause the generated library to
9321     # depend on `.', always an invalid library.  This was fixed in
9322     # development snapshots of GCC prior to 3.0.
9323     case $host_os in
9324       aix4 | aix4.[01] | aix4.[01].*)
9325       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9326            echo ' yes '
9327            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9328         :
9329       else
9330         can_build_shared=no
9331       fi
9332       ;;
9333     esac
9334     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9335     # soname into executable. Probably we can add versioning support to
9336     # collect2, so additional links can be useful in future.
9337     if test "$aix_use_runtimelinking" = yes; then
9338       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9339       # instead of lib<name>.a to let people know that these are not
9340       # typical AIX shared libraries.
9341       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9342     else
9343       # We preserve .a as extension for shared libraries through AIX4.2
9344       # and later when we are not doing run time linking.
9345       library_names_spec='${libname}${release}.a $libname.a'
9346       soname_spec='${libname}${release}${shared_ext}$major'
9347     fi
9348     shlibpath_var=LIBPATH
9349   fi
9350   ;;
9351
9352 amigaos*)
9353   library_names_spec='$libname.ixlibrary $libname.a'
9354   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9355   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'
9356   ;;
9357
9358 beos*)
9359   library_names_spec='${libname}${shared_ext}'
9360   dynamic_linker="$host_os ld.so"
9361   shlibpath_var=LIBRARY_PATH
9362   ;;
9363
9364 bsdi[45]*)
9365   version_type=linux
9366   need_version=no
9367   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368   soname_spec='${libname}${release}${shared_ext}$major'
9369   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9370   shlibpath_var=LD_LIBRARY_PATH
9371   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9372   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9373   # the default ld.so.conf also contains /usr/contrib/lib and
9374   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9375   # libtool to hard-code these into programs
9376   ;;
9377
9378 cygwin* | mingw* | pw32*)
9379   version_type=windows
9380   shrext_cmds=".dll"
9381   need_version=no
9382   need_lib_prefix=no
9383
9384   case $GCC,$host_os in
9385   yes,cygwin* | yes,mingw* | yes,pw32*)
9386     library_names_spec='$libname.dll.a'
9387     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9388     postinstall_cmds='base_file=`basename \${file}`~
9389       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9390       dldir=$destdir/`dirname \$dlpath`~
9391       test -d \$dldir || mkdir -p \$dldir~
9392       $install_prog $dir/$dlname \$dldir/$dlname~
9393       chmod a+x \$dldir/$dlname'
9394     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9395       dlpath=$dir/\$dldll~
9396        $rm \$dlpath'
9397     shlibpath_overrides_runpath=yes
9398
9399     case $host_os in
9400     cygwin*)
9401       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9402       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9403       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9404       ;;
9405     mingw*)
9406       # MinGW DLLs use traditional 'lib' prefix
9407       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9408       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9409       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9410         # It is most probably a Windows format PATH printed by
9411         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9412         # path with ; separators, and with drive letters. We can handle the
9413         # drive letters (cygwin fileutils understands them), so leave them,
9414         # especially as we might pass files found there to a mingw objdump,
9415         # which wouldn't understand a cygwinified path. Ahh.
9416         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9417       else
9418         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9419       fi
9420       ;;
9421     pw32*)
9422       # pw32 DLLs use 'pw' prefix rather than 'lib'
9423       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9424       ;;
9425     esac
9426     ;;
9427
9428   *)
9429     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9430     ;;
9431   esac
9432   dynamic_linker='Win32 ld.exe'
9433   # FIXME: first we should search . and the directory the executable is in
9434   shlibpath_var=PATH
9435   ;;
9436
9437 darwin* | rhapsody*)
9438   dynamic_linker="$host_os dyld"
9439   version_type=darwin
9440   need_lib_prefix=no
9441   need_version=no
9442   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9443   soname_spec='${libname}${release}${major}$shared_ext'
9444   shlibpath_overrides_runpath=yes
9445   shlibpath_var=DYLD_LIBRARY_PATH
9446   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9447   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9448   if test "$GCC" = yes; then
9449     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"`
9450   else
9451     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9452   fi
9453   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9454   ;;
9455
9456 dgux*)
9457   version_type=linux
9458   need_lib_prefix=no
9459   need_version=no
9460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9461   soname_spec='${libname}${release}${shared_ext}$major'
9462   shlibpath_var=LD_LIBRARY_PATH
9463   ;;
9464
9465 freebsd1*)
9466   dynamic_linker=no
9467   ;;
9468
9469 kfreebsd*-gnu)
9470   version_type=linux
9471   need_lib_prefix=no
9472   need_version=no
9473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9474   soname_spec='${libname}${release}${shared_ext}$major'
9475   shlibpath_var=LD_LIBRARY_PATH
9476   shlibpath_overrides_runpath=no
9477   hardcode_into_libs=yes
9478   dynamic_linker='GNU ld.so'
9479   ;;
9480
9481 freebsd* | dragonfly*)
9482   # DragonFly does not have aout.  When/if they implement a new
9483   # versioning mechanism, adjust this.
9484   if test -x /usr/bin/objformat; then
9485     objformat=`/usr/bin/objformat`
9486   else
9487     case $host_os in
9488     freebsd[123]*) objformat=aout ;;
9489     *) objformat=elf ;;
9490     esac
9491   fi
9492   version_type=freebsd-$objformat
9493   case $version_type in
9494     freebsd-elf*)
9495       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9496       need_version=no
9497       need_lib_prefix=no
9498       ;;
9499     freebsd-*)
9500       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9501       need_version=yes
9502       ;;
9503   esac
9504   shlibpath_var=LD_LIBRARY_PATH
9505   case $host_os in
9506   freebsd2*)
9507     shlibpath_overrides_runpath=yes
9508     ;;
9509   freebsd3.[01]* | freebsdelf3.[01]*)
9510     shlibpath_overrides_runpath=yes
9511     hardcode_into_libs=yes
9512     ;;
9513   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9514   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9515     shlibpath_overrides_runpath=no
9516     hardcode_into_libs=yes
9517     ;;
9518   freebsd*) # from 4.6 on
9519     shlibpath_overrides_runpath=yes
9520     hardcode_into_libs=yes
9521     ;;
9522   esac
9523   ;;
9524
9525 gnu*)
9526   version_type=linux
9527   need_lib_prefix=no
9528   need_version=no
9529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9530   soname_spec='${libname}${release}${shared_ext}$major'
9531   shlibpath_var=LD_LIBRARY_PATH
9532   hardcode_into_libs=yes
9533   ;;
9534
9535 hpux9* | hpux10* | hpux11*)
9536   # Give a soname corresponding to the major version so that dld.sl refuses to
9537   # link against other versions.
9538   version_type=sunos
9539   need_lib_prefix=no
9540   need_version=no
9541   case $host_cpu in
9542   ia64*)
9543     shrext_cmds='.so'
9544     hardcode_into_libs=yes
9545     dynamic_linker="$host_os dld.so"
9546     shlibpath_var=LD_LIBRARY_PATH
9547     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9548     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9549     soname_spec='${libname}${release}${shared_ext}$major'
9550     if test "X$HPUX_IA64_MODE" = X32; then
9551       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9552     else
9553       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9554     fi
9555     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9556     ;;
9557    hppa*64*)
9558      shrext_cmds='.sl'
9559      hardcode_into_libs=yes
9560      dynamic_linker="$host_os dld.sl"
9561      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9562      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9563      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9564      soname_spec='${libname}${release}${shared_ext}$major'
9565      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9566      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9567      ;;
9568    *)
9569     shrext_cmds='.sl'
9570     dynamic_linker="$host_os dld.sl"
9571     shlibpath_var=SHLIB_PATH
9572     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574     soname_spec='${libname}${release}${shared_ext}$major'
9575     ;;
9576   esac
9577   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9578   postinstall_cmds='chmod 555 $lib'
9579   ;;
9580
9581 interix3*)
9582   version_type=linux
9583   need_lib_prefix=no
9584   need_version=no
9585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9586   soname_spec='${libname}${release}${shared_ext}$major'
9587   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9588   shlibpath_var=LD_LIBRARY_PATH
9589   shlibpath_overrides_runpath=no
9590   hardcode_into_libs=yes
9591   ;;
9592
9593 irix5* | irix6* | nonstopux*)
9594   case $host_os in
9595     nonstopux*) version_type=nonstopux ;;
9596     *)
9597         if test "$lt_cv_prog_gnu_ld" = yes; then
9598                 version_type=linux
9599         else
9600                 version_type=irix
9601         fi ;;
9602   esac
9603   need_lib_prefix=no
9604   need_version=no
9605   soname_spec='${libname}${release}${shared_ext}$major'
9606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9607   case $host_os in
9608   irix5* | nonstopux*)
9609     libsuff= shlibsuff=
9610     ;;
9611   *)
9612     case $LD in # libtool.m4 will add one of these switches to LD
9613     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9614       libsuff= shlibsuff= libmagic=32-bit;;
9615     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9616       libsuff=32 shlibsuff=N32 libmagic=N32;;
9617     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9618       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9619     *) libsuff= shlibsuff= libmagic=never-match;;
9620     esac
9621     ;;
9622   esac
9623   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9624   shlibpath_overrides_runpath=no
9625   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9626   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9627   hardcode_into_libs=yes
9628   ;;
9629
9630 # No shared lib support for Linux oldld, aout, or coff.
9631 linux*oldld* | linux*aout* | linux*coff*)
9632   dynamic_linker=no
9633   ;;
9634
9635 # This must be Linux ELF.
9636 linux*)
9637   version_type=linux
9638   need_lib_prefix=no
9639   need_version=no
9640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641   soname_spec='${libname}${release}${shared_ext}$major'
9642   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9643   shlibpath_var=LD_LIBRARY_PATH
9644   shlibpath_overrides_runpath=no
9645   # This implies no fast_install, which is unacceptable.
9646   # Some rework will be needed to allow for fast_install
9647   # before this can be enabled.
9648   hardcode_into_libs=yes
9649
9650   # Append ld.so.conf contents to the search path
9651   if test -f /etc/ld.so.conf; then
9652     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' ' '`
9653     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9654   fi
9655
9656   # We used to test for /lib/ld.so.1 and disable shared libraries on
9657   # powerpc, because MkLinux only supported shared libraries with the
9658   # GNU dynamic linker.  Since this was broken with cross compilers,
9659   # most powerpc-linux boxes support dynamic linking these days and
9660   # people can always --disable-shared, the test was removed, and we
9661   # assume the GNU/Linux dynamic linker is in use.
9662   dynamic_linker='GNU/Linux ld.so'
9663   ;;
9664
9665 knetbsd*-gnu)
9666   version_type=linux
9667   need_lib_prefix=no
9668   need_version=no
9669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9670   soname_spec='${libname}${release}${shared_ext}$major'
9671   shlibpath_var=LD_LIBRARY_PATH
9672   shlibpath_overrides_runpath=no
9673   hardcode_into_libs=yes
9674   dynamic_linker='GNU ld.so'
9675   ;;
9676
9677 netbsd*)
9678   version_type=sunos
9679   need_lib_prefix=no
9680   need_version=no
9681   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9682     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9683     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9684     dynamic_linker='NetBSD (a.out) ld.so'
9685   else
9686     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9687     soname_spec='${libname}${release}${shared_ext}$major'
9688     dynamic_linker='NetBSD ld.elf_so'
9689   fi
9690   shlibpath_var=LD_LIBRARY_PATH
9691   shlibpath_overrides_runpath=yes
9692   hardcode_into_libs=yes
9693   ;;
9694
9695 newsos6)
9696   version_type=linux
9697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698   shlibpath_var=LD_LIBRARY_PATH
9699   shlibpath_overrides_runpath=yes
9700   ;;
9701
9702 nto-qnx*)
9703   version_type=linux
9704   need_lib_prefix=no
9705   need_version=no
9706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707   soname_spec='${libname}${release}${shared_ext}$major'
9708   shlibpath_var=LD_LIBRARY_PATH
9709   shlibpath_overrides_runpath=yes
9710   ;;
9711
9712 openbsd*)
9713   version_type=sunos
9714   sys_lib_dlsearch_path_spec="/usr/lib"
9715   need_lib_prefix=no
9716   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9717   case $host_os in
9718     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9719     *)                         need_version=no  ;;
9720   esac
9721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9722   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9723   shlibpath_var=LD_LIBRARY_PATH
9724   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9725     case $host_os in
9726       openbsd2.[89] | openbsd2.[89].*)
9727         shlibpath_overrides_runpath=no
9728         ;;
9729       *)
9730         shlibpath_overrides_runpath=yes
9731         ;;
9732       esac
9733   else
9734     shlibpath_overrides_runpath=yes
9735   fi
9736   ;;
9737
9738 os2*)
9739   libname_spec='$name'
9740   shrext_cmds=".dll"
9741   need_lib_prefix=no
9742   library_names_spec='$libname${shared_ext} $libname.a'
9743   dynamic_linker='OS/2 ld.exe'
9744   shlibpath_var=LIBPATH
9745   ;;
9746
9747 osf3* | osf4* | osf5*)
9748   version_type=osf
9749   need_lib_prefix=no
9750   need_version=no
9751   soname_spec='${libname}${release}${shared_ext}$major'
9752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753   shlibpath_var=LD_LIBRARY_PATH
9754   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9755   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9756   ;;
9757
9758 solaris*)
9759   version_type=linux
9760   need_lib_prefix=no
9761   need_version=no
9762   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9763   soname_spec='${libname}${release}${shared_ext}$major'
9764   shlibpath_var=LD_LIBRARY_PATH
9765   shlibpath_overrides_runpath=yes
9766   hardcode_into_libs=yes
9767   # ldd complains unless libraries are executable
9768   postinstall_cmds='chmod +x $lib'
9769   ;;
9770
9771 sunos4*)
9772   version_type=sunos
9773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9774   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9775   shlibpath_var=LD_LIBRARY_PATH
9776   shlibpath_overrides_runpath=yes
9777   if test "$with_gnu_ld" = yes; then
9778     need_lib_prefix=no
9779   fi
9780   need_version=yes
9781   ;;
9782
9783 sysv4 | sysv4.3*)
9784   version_type=linux
9785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786   soname_spec='${libname}${release}${shared_ext}$major'
9787   shlibpath_var=LD_LIBRARY_PATH
9788   case $host_vendor in
9789     sni)
9790       shlibpath_overrides_runpath=no
9791       need_lib_prefix=no
9792       export_dynamic_flag_spec='${wl}-Blargedynsym'
9793       runpath_var=LD_RUN_PATH
9794       ;;
9795     siemens)
9796       need_lib_prefix=no
9797       ;;
9798     motorola)
9799       need_lib_prefix=no
9800       need_version=no
9801       shlibpath_overrides_runpath=no
9802       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9803       ;;
9804   esac
9805   ;;
9806
9807 sysv4*MP*)
9808   if test -d /usr/nec ;then
9809     version_type=linux
9810     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9811     soname_spec='$libname${shared_ext}.$major'
9812     shlibpath_var=LD_LIBRARY_PATH
9813   fi
9814   ;;
9815
9816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9817   version_type=freebsd-elf
9818   need_lib_prefix=no
9819   need_version=no
9820   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9821   soname_spec='${libname}${release}${shared_ext}$major'
9822   shlibpath_var=LD_LIBRARY_PATH
9823   hardcode_into_libs=yes
9824   if test "$with_gnu_ld" = yes; then
9825     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9826     shlibpath_overrides_runpath=no
9827   else
9828     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9829     shlibpath_overrides_runpath=yes
9830     case $host_os in
9831       sco3.2v5*)
9832         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9833         ;;
9834     esac
9835   fi
9836   sys_lib_dlsearch_path_spec='/usr/lib'
9837   ;;
9838
9839 uts4*)
9840   version_type=linux
9841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842   soname_spec='${libname}${release}${shared_ext}$major'
9843   shlibpath_var=LD_LIBRARY_PATH
9844   ;;
9845
9846 *)
9847   dynamic_linker=no
9848   ;;
9849 esac
9850 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9851 echo "${ECHO_T}$dynamic_linker" >&6; }
9852 test "$dynamic_linker" = no && can_build_shared=no
9853
9854 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9855 if test "$GCC" = yes; then
9856   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9857 fi
9858
9859 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9860 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9861 hardcode_action=
9862 if test -n "$hardcode_libdir_flag_spec" || \
9863    test -n "$runpath_var" || \
9864    test "X$hardcode_automatic" = "Xyes" ; then
9865
9866   # We can hardcode non-existant directories.
9867   if test "$hardcode_direct" != no &&
9868      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9869      # have to relink, otherwise we might link with an installed library
9870      # when we should be linking with a yet-to-be-installed one
9871      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9872      test "$hardcode_minus_L" != no; then
9873     # Linking always hardcodes the temporary library directory.
9874     hardcode_action=relink
9875   else
9876     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9877     hardcode_action=immediate
9878   fi
9879 else
9880   # We cannot hardcode anything, or else we can only hardcode existing
9881   # directories.
9882   hardcode_action=unsupported
9883 fi
9884 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9885 echo "${ECHO_T}$hardcode_action" >&6; }
9886
9887 if test "$hardcode_action" = relink; then
9888   # Fast installation is not supported
9889   enable_fast_install=no
9890 elif test "$shlibpath_overrides_runpath" = yes ||
9891      test "$enable_shared" = no; then
9892   # Fast installation is not necessary
9893   enable_fast_install=needless
9894 fi
9895
9896 striplib=
9897 old_striplib=
9898 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9899 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9900 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9901   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9902   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9903   { echo "$as_me:$LINENO: result: yes" >&5
9904 echo "${ECHO_T}yes" >&6; }
9905 else
9906 # FIXME - insert some real tests, host_os isn't really good enough
9907   case $host_os in
9908    darwin*)
9909        if test -n "$STRIP" ; then
9910          striplib="$STRIP -x"
9911          { echo "$as_me:$LINENO: result: yes" >&5
9912 echo "${ECHO_T}yes" >&6; }
9913        else
9914   { echo "$as_me:$LINENO: result: no" >&5
9915 echo "${ECHO_T}no" >&6; }
9916 fi
9917        ;;
9918    *)
9919   { echo "$as_me:$LINENO: result: no" >&5
9920 echo "${ECHO_T}no" >&6; }
9921     ;;
9922   esac
9923 fi
9924
9925 if test "x$enable_dlopen" != xyes; then
9926   enable_dlopen=unknown
9927   enable_dlopen_self=unknown
9928   enable_dlopen_self_static=unknown
9929 else
9930   lt_cv_dlopen=no
9931   lt_cv_dlopen_libs=
9932
9933   case $host_os in
9934   beos*)
9935     lt_cv_dlopen="load_add_on"
9936     lt_cv_dlopen_libs=
9937     lt_cv_dlopen_self=yes
9938     ;;
9939
9940   mingw* | pw32*)
9941     lt_cv_dlopen="LoadLibrary"
9942     lt_cv_dlopen_libs=
9943    ;;
9944
9945   cygwin*)
9946     lt_cv_dlopen="dlopen"
9947     lt_cv_dlopen_libs=
9948    ;;
9949
9950   darwin*)
9951   # if libdl is installed we need to link against it
9952     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9953 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9954 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9955   echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957   ac_check_lib_save_LIBS=$LIBS
9958 LIBS="-ldl  $LIBS"
9959 cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965
9966 /* Override any GCC internal prototype to avoid an error.
9967    Use char because int might match the return type of a GCC
9968    builtin and then its argument prototype would still apply.  */
9969 #ifdef __cplusplus
9970 extern "C"
9971 #endif
9972 char dlopen ();
9973 int
9974 main ()
9975 {
9976 return dlopen ();
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (ac_try="$ac_link"
9983 case "(($ac_try" in
9984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985   *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988   (eval "$ac_link") 2>conftest.er1
9989   ac_status=$?
9990   grep -v '^ *+' conftest.er1 >conftest.err
9991   rm -f conftest.er1
9992   cat conftest.err >&5
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } &&
9995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9996   { (case "(($ac_try" in
9997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998   *) ac_try_echo=$ac_try;;
9999 esac
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001   (eval "$ac_try") 2>&5
10002   ac_status=$?
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); }; } &&
10005          { ac_try='test -s conftest$ac_exeext'
10006   { (case "(($ac_try" in
10007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008   *) ac_try_echo=$ac_try;;
10009 esac
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011   (eval "$ac_try") 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); }; }; then
10015   ac_cv_lib_dl_dlopen=yes
10016 else
10017   echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10019
10020         ac_cv_lib_dl_dlopen=no
10021 fi
10022
10023 rm -f core conftest.err conftest.$ac_objext \
10024       conftest$ac_exeext conftest.$ac_ext
10025 LIBS=$ac_check_lib_save_LIBS
10026 fi
10027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10028 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10029 if test $ac_cv_lib_dl_dlopen = yes; then
10030   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10031 else
10032
10033     lt_cv_dlopen="dyld"
10034     lt_cv_dlopen_libs=
10035     lt_cv_dlopen_self=yes
10036
10037 fi
10038
10039    ;;
10040
10041   *)
10042     { echo "$as_me:$LINENO: checking for shl_load" >&5
10043 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10044 if test "${ac_cv_func_shl_load+set}" = set; then
10045   echo $ECHO_N "(cached) $ECHO_C" >&6
10046 else
10047   cat >conftest.$ac_ext <<_ACEOF
10048 /* confdefs.h.  */
10049 _ACEOF
10050 cat confdefs.h >>conftest.$ac_ext
10051 cat >>conftest.$ac_ext <<_ACEOF
10052 /* end confdefs.h.  */
10053 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10055 #define shl_load innocuous_shl_load
10056
10057 /* System header to define __stub macros and hopefully few prototypes,
10058     which can conflict with char shl_load (); below.
10059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10060     <limits.h> exists even on freestanding compilers.  */
10061
10062 #ifdef __STDC__
10063 # include <limits.h>
10064 #else
10065 # include <assert.h>
10066 #endif
10067
10068 #undef shl_load
10069
10070 /* Override any GCC internal prototype to avoid an error.
10071    Use char because int might match the return type of a GCC
10072    builtin and then its argument prototype would still apply.  */
10073 #ifdef __cplusplus
10074 extern "C"
10075 #endif
10076 char shl_load ();
10077 /* The GNU C library defines this for functions which it implements
10078     to always fail with ENOSYS.  Some functions are actually named
10079     something starting with __ and the normal name is an alias.  */
10080 #if defined __stub_shl_load || defined __stub___shl_load
10081 choke me
10082 #endif
10083
10084 int
10085 main ()
10086 {
10087 return shl_load ();
10088   ;
10089   return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096   *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099   (eval "$ac_link") 2>conftest.er1
10100   ac_status=$?
10101   grep -v '^ *+' conftest.er1 >conftest.err
10102   rm -f conftest.er1
10103   cat conftest.err >&5
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); } &&
10106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10107   { (case "(($ac_try" in
10108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109   *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112   (eval "$ac_try") 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; } &&
10116          { ac_try='test -s conftest$ac_exeext'
10117   { (case "(($ac_try" in
10118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119   *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122   (eval "$ac_try") 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; }; then
10126   ac_cv_func_shl_load=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131         ac_cv_func_shl_load=no
10132 fi
10133
10134 rm -f core conftest.err conftest.$ac_objext \
10135       conftest$ac_exeext conftest.$ac_ext
10136 fi
10137 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10138 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10139 if test $ac_cv_func_shl_load = yes; then
10140   lt_cv_dlopen="shl_load"
10141 else
10142   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10143 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10144 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   ac_check_lib_save_LIBS=$LIBS
10148 LIBS="-ldld  $LIBS"
10149 cat >conftest.$ac_ext <<_ACEOF
10150 /* confdefs.h.  */
10151 _ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h.  */
10155
10156 /* Override any GCC internal prototype to avoid an error.
10157    Use char because int might match the return type of a GCC
10158    builtin and then its argument prototype would still apply.  */
10159 #ifdef __cplusplus
10160 extern "C"
10161 #endif
10162 char shl_load ();
10163 int
10164 main ()
10165 {
10166 return shl_load ();
10167   ;
10168   return 0;
10169 }
10170 _ACEOF
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (ac_try="$ac_link"
10173 case "(($ac_try" in
10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175   *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178   (eval "$ac_link") 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10186   { (case "(($ac_try" in
10187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10188   *) ac_try_echo=$ac_try;;
10189 esac
10190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10191   (eval "$ac_try") 2>&5
10192   ac_status=$?
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); }; } &&
10195          { ac_try='test -s conftest$ac_exeext'
10196   { (case "(($ac_try" in
10197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198   *) ac_try_echo=$ac_try;;
10199 esac
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201   (eval "$ac_try") 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }; }; then
10205   ac_cv_lib_dld_shl_load=yes
10206 else
10207   echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210         ac_cv_lib_dld_shl_load=no
10211 fi
10212
10213 rm -f core conftest.err conftest.$ac_objext \
10214       conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10216 fi
10217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10218 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10219 if test $ac_cv_lib_dld_shl_load = yes; then
10220   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10221 else
10222   { echo "$as_me:$LINENO: checking for dlopen" >&5
10223 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10224 if test "${ac_cv_func_dlopen+set}" = set; then
10225   echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227   cat >conftest.$ac_ext <<_ACEOF
10228 /* confdefs.h.  */
10229 _ACEOF
10230 cat confdefs.h >>conftest.$ac_ext
10231 cat >>conftest.$ac_ext <<_ACEOF
10232 /* end confdefs.h.  */
10233 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10235 #define dlopen innocuous_dlopen
10236
10237 /* System header to define __stub macros and hopefully few prototypes,
10238     which can conflict with char dlopen (); below.
10239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10240     <limits.h> exists even on freestanding compilers.  */
10241
10242 #ifdef __STDC__
10243 # include <limits.h>
10244 #else
10245 # include <assert.h>
10246 #endif
10247
10248 #undef dlopen
10249
10250 /* Override any GCC internal prototype to avoid an error.
10251    Use char because int might match the return type of a GCC
10252    builtin and then its argument prototype would still apply.  */
10253 #ifdef __cplusplus
10254 extern "C"
10255 #endif
10256 char dlopen ();
10257 /* The GNU C library defines this for functions which it implements
10258     to always fail with ENOSYS.  Some functions are actually named
10259     something starting with __ and the normal name is an alias.  */
10260 #if defined __stub_dlopen || defined __stub___dlopen
10261 choke me
10262 #endif
10263
10264 int
10265 main ()
10266 {
10267 return dlopen ();
10268   ;
10269   return 0;
10270 }
10271 _ACEOF
10272 rm -f conftest.$ac_objext conftest$ac_exeext
10273 if { (ac_try="$ac_link"
10274 case "(($ac_try" in
10275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276   *) ac_try_echo=$ac_try;;
10277 esac
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279   (eval "$ac_link") 2>conftest.er1
10280   ac_status=$?
10281   grep -v '^ *+' conftest.er1 >conftest.err
10282   rm -f conftest.er1
10283   cat conftest.err >&5
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } &&
10286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10287   { (case "(($ac_try" in
10288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289   *) ac_try_echo=$ac_try;;
10290 esac
10291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292   (eval "$ac_try") 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; } &&
10296          { ac_try='test -s conftest$ac_exeext'
10297   { (case "(($ac_try" in
10298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299   *) ac_try_echo=$ac_try;;
10300 esac
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302   (eval "$ac_try") 2>&5
10303   ac_status=$?
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); }; }; then
10306   ac_cv_func_dlopen=yes
10307 else
10308   echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10310
10311         ac_cv_func_dlopen=no
10312 fi
10313
10314 rm -f core conftest.err conftest.$ac_objext \
10315       conftest$ac_exeext conftest.$ac_ext
10316 fi
10317 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10318 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10319 if test $ac_cv_func_dlopen = yes; then
10320   lt_cv_dlopen="dlopen"
10321 else
10322   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10323 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10324 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   ac_check_lib_save_LIBS=$LIBS
10328 LIBS="-ldl  $LIBS"
10329 cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335
10336 /* Override any GCC internal prototype to avoid an error.
10337    Use char because int might match the return type of a GCC
10338    builtin and then its argument prototype would still apply.  */
10339 #ifdef __cplusplus
10340 extern "C"
10341 #endif
10342 char dlopen ();
10343 int
10344 main ()
10345 {
10346 return dlopen ();
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355   *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358   (eval "$ac_link") 2>conftest.er1
10359   ac_status=$?
10360   grep -v '^ *+' conftest.er1 >conftest.err
10361   rm -f conftest.er1
10362   cat conftest.err >&5
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } &&
10365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10366   { (case "(($ac_try" in
10367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368   *) ac_try_echo=$ac_try;;
10369 esac
10370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371   (eval "$ac_try") 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; } &&
10375          { ac_try='test -s conftest$ac_exeext'
10376   { (case "(($ac_try" in
10377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378   *) ac_try_echo=$ac_try;;
10379 esac
10380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10381   (eval "$ac_try") 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; }; then
10385   ac_cv_lib_dl_dlopen=yes
10386 else
10387   echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390         ac_cv_lib_dl_dlopen=no
10391 fi
10392
10393 rm -f core conftest.err conftest.$ac_objext \
10394       conftest$ac_exeext conftest.$ac_ext
10395 LIBS=$ac_check_lib_save_LIBS
10396 fi
10397 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10398 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10399 if test $ac_cv_lib_dl_dlopen = yes; then
10400   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10401 else
10402   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10403 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10404 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407   ac_check_lib_save_LIBS=$LIBS
10408 LIBS="-lsvld  $LIBS"
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h.  */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h.  */
10415
10416 /* Override any GCC internal prototype to avoid an error.
10417    Use char because int might match the return type of a GCC
10418    builtin and then its argument prototype would still apply.  */
10419 #ifdef __cplusplus
10420 extern "C"
10421 #endif
10422 char dlopen ();
10423 int
10424 main ()
10425 {
10426 return dlopen ();
10427   ;
10428   return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435   *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438   (eval "$ac_link") 2>conftest.er1
10439   ac_status=$?
10440   grep -v '^ *+' conftest.er1 >conftest.err
10441   rm -f conftest.er1
10442   cat conftest.err >&5
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); } &&
10445          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446   { (case "(($ac_try" in
10447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448   *) ac_try_echo=$ac_try;;
10449 esac
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451   (eval "$ac_try") 2>&5
10452   ac_status=$?
10453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454   (exit $ac_status); }; } &&
10455          { ac_try='test -s conftest$ac_exeext'
10456   { (case "(($ac_try" in
10457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458   *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461   (eval "$ac_try") 2>&5
10462   ac_status=$?
10463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464   (exit $ac_status); }; }; then
10465   ac_cv_lib_svld_dlopen=yes
10466 else
10467   echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470         ac_cv_lib_svld_dlopen=no
10471 fi
10472
10473 rm -f core conftest.err conftest.$ac_objext \
10474       conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10476 fi
10477 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10478 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10479 if test $ac_cv_lib_svld_dlopen = yes; then
10480   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10481 else
10482   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10483 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10484 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10485   echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487   ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-ldld  $LIBS"
10489 cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h.  */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h.  */
10495
10496 /* Override any GCC internal prototype to avoid an error.
10497    Use char because int might match the return type of a GCC
10498    builtin and then its argument prototype would still apply.  */
10499 #ifdef __cplusplus
10500 extern "C"
10501 #endif
10502 char dld_link ();
10503 int
10504 main ()
10505 {
10506 return dld_link ();
10507   ;
10508   return 0;
10509 }
10510 _ACEOF
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (ac_try="$ac_link"
10513 case "(($ac_try" in
10514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515   *) ac_try_echo=$ac_try;;
10516 esac
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518   (eval "$ac_link") 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } &&
10525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10526   { (case "(($ac_try" in
10527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528   *) ac_try_echo=$ac_try;;
10529 esac
10530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10531   (eval "$ac_try") 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); }; } &&
10535          { ac_try='test -s conftest$ac_exeext'
10536   { (case "(($ac_try" in
10537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538   *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541   (eval "$ac_try") 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); }; }; then
10545   ac_cv_lib_dld_dld_link=yes
10546 else
10547   echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550         ac_cv_lib_dld_dld_link=no
10551 fi
10552
10553 rm -f core conftest.err conftest.$ac_objext \
10554       conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10556 fi
10557 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10558 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10559 if test $ac_cv_lib_dld_dld_link = yes; then
10560   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10561 fi
10562
10563
10564 fi
10565
10566
10567 fi
10568
10569
10570 fi
10571
10572
10573 fi
10574
10575
10576 fi
10577
10578     ;;
10579   esac
10580
10581   if test "x$lt_cv_dlopen" != xno; then
10582     enable_dlopen=yes
10583   else
10584     enable_dlopen=no
10585   fi
10586
10587   case $lt_cv_dlopen in
10588   dlopen)
10589     save_CPPFLAGS="$CPPFLAGS"
10590     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10591
10592     save_LDFLAGS="$LDFLAGS"
10593     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10594
10595     save_LIBS="$LIBS"
10596     LIBS="$lt_cv_dlopen_libs $LIBS"
10597
10598     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10599 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10600 if test "${lt_cv_dlopen_self+set}" = set; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603           if test "$cross_compiling" = yes; then :
10604   lt_cv_dlopen_self=cross
10605 else
10606   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10607   lt_status=$lt_dlunknown
10608   cat > conftest.$ac_ext <<EOF
10609 #line 10609 "configure"
10610 #include "confdefs.h"
10611
10612 #if HAVE_DLFCN_H
10613 #include <dlfcn.h>
10614 #endif
10615
10616 #include <stdio.h>
10617
10618 #ifdef RTLD_GLOBAL
10619 #  define LT_DLGLOBAL           RTLD_GLOBAL
10620 #else
10621 #  ifdef DL_GLOBAL
10622 #    define LT_DLGLOBAL         DL_GLOBAL
10623 #  else
10624 #    define LT_DLGLOBAL         0
10625 #  endif
10626 #endif
10627
10628 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10629    find out it does not work in some platform. */
10630 #ifndef LT_DLLAZY_OR_NOW
10631 #  ifdef RTLD_LAZY
10632 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10633 #  else
10634 #    ifdef DL_LAZY
10635 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10636 #    else
10637 #      ifdef RTLD_NOW
10638 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10639 #      else
10640 #        ifdef DL_NOW
10641 #          define LT_DLLAZY_OR_NOW      DL_NOW
10642 #        else
10643 #          define LT_DLLAZY_OR_NOW      0
10644 #        endif
10645 #      endif
10646 #    endif
10647 #  endif
10648 #endif
10649
10650 #ifdef __cplusplus
10651 extern "C" void exit (int);
10652 #endif
10653
10654 void fnord() { int i=42;}
10655 int main ()
10656 {
10657   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10658   int status = $lt_dlunknown;
10659
10660   if (self)
10661     {
10662       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10663       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10664       /* dlclose (self); */
10665     }
10666   else
10667     puts (dlerror ());
10668
10669     exit (status);
10670 }
10671 EOF
10672   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10673   (eval $ac_link) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10677     (./conftest; exit; ) >&5 2>/dev/null
10678     lt_status=$?
10679     case x$lt_status in
10680       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10681       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10682       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10683     esac
10684   else :
10685     # compilation failed
10686     lt_cv_dlopen_self=no
10687   fi
10688 fi
10689 rm -fr conftest*
10690
10691
10692 fi
10693 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10694 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10695
10696     if test "x$lt_cv_dlopen_self" = xyes; then
10697       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10698       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10699 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10700 if test "${lt_cv_dlopen_self_static+set}" = set; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703           if test "$cross_compiling" = yes; then :
10704   lt_cv_dlopen_self_static=cross
10705 else
10706   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10707   lt_status=$lt_dlunknown
10708   cat > conftest.$ac_ext <<EOF
10709 #line 10709 "configure"
10710 #include "confdefs.h"
10711
10712 #if HAVE_DLFCN_H
10713 #include <dlfcn.h>
10714 #endif
10715
10716 #include <stdio.h>
10717
10718 #ifdef RTLD_GLOBAL
10719 #  define LT_DLGLOBAL           RTLD_GLOBAL
10720 #else
10721 #  ifdef DL_GLOBAL
10722 #    define LT_DLGLOBAL         DL_GLOBAL
10723 #  else
10724 #    define LT_DLGLOBAL         0
10725 #  endif
10726 #endif
10727
10728 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10729    find out it does not work in some platform. */
10730 #ifndef LT_DLLAZY_OR_NOW
10731 #  ifdef RTLD_LAZY
10732 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10733 #  else
10734 #    ifdef DL_LAZY
10735 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10736 #    else
10737 #      ifdef RTLD_NOW
10738 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10739 #      else
10740 #        ifdef DL_NOW
10741 #          define LT_DLLAZY_OR_NOW      DL_NOW
10742 #        else
10743 #          define LT_DLLAZY_OR_NOW      0
10744 #        endif
10745 #      endif
10746 #    endif
10747 #  endif
10748 #endif
10749
10750 #ifdef __cplusplus
10751 extern "C" void exit (int);
10752 #endif
10753
10754 void fnord() { int i=42;}
10755 int main ()
10756 {
10757   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10758   int status = $lt_dlunknown;
10759
10760   if (self)
10761     {
10762       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10763       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10764       /* dlclose (self); */
10765     }
10766   else
10767     puts (dlerror ());
10768
10769     exit (status);
10770 }
10771 EOF
10772   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10773   (eval $ac_link) 2>&5
10774   ac_status=$?
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10777     (./conftest; exit; ) >&5 2>/dev/null
10778     lt_status=$?
10779     case x$lt_status in
10780       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10781       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10782       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10783     esac
10784   else :
10785     # compilation failed
10786     lt_cv_dlopen_self_static=no
10787   fi
10788 fi
10789 rm -fr conftest*
10790
10791
10792 fi
10793 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10794 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10795     fi
10796
10797     CPPFLAGS="$save_CPPFLAGS"
10798     LDFLAGS="$save_LDFLAGS"
10799     LIBS="$save_LIBS"
10800     ;;
10801   esac
10802
10803   case $lt_cv_dlopen_self in
10804   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10805   *) enable_dlopen_self=unknown ;;
10806   esac
10807
10808   case $lt_cv_dlopen_self_static in
10809   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10810   *) enable_dlopen_self_static=unknown ;;
10811   esac
10812 fi
10813
10814
10815 # Report which library types will actually be built
10816 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10817 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10818 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10819 echo "${ECHO_T}$can_build_shared" >&6; }
10820
10821 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10822 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10823 test "$can_build_shared" = "no" && enable_shared=no
10824
10825 # On AIX, shared libraries and static libraries use the same namespace, and
10826 # are all built from PIC.
10827 case $host_os in
10828 aix3*)
10829   test "$enable_shared" = yes && enable_static=no
10830   if test -n "$RANLIB"; then
10831     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10832     postinstall_cmds='$RANLIB $lib'
10833   fi
10834   ;;
10835
10836 aix4* | aix5*)
10837   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10838     test "$enable_shared" = yes && enable_static=no
10839   fi
10840     ;;
10841 esac
10842 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10843 echo "${ECHO_T}$enable_shared" >&6; }
10844
10845 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10846 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10847 # Make sure either enable_shared or enable_static is yes.
10848 test "$enable_shared" = yes || enable_static=yes
10849 { echo "$as_me:$LINENO: result: $enable_static" >&5
10850 echo "${ECHO_T}$enable_static" >&6; }
10851
10852 # The else clause should only fire when bootstrapping the
10853 # libtool distribution, otherwise you forgot to ship ltmain.sh
10854 # with your package, and you will get complaints that there are
10855 # no rules to generate ltmain.sh.
10856 if test -f "$ltmain"; then
10857   # See if we are running on zsh, and set the options which allow our commands through
10858   # without removal of \ escapes.
10859   if test -n "${ZSH_VERSION+set}" ; then
10860     setopt NO_GLOB_SUBST
10861   fi
10862   # Now quote all the things that may contain metacharacters while being
10863   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10864   # variables and quote the copies for generation of the libtool script.
10865   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10866     SED SHELL STRIP \
10867     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10868     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10869     deplibs_check_method reload_flag reload_cmds need_locks \
10870     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10871     lt_cv_sys_global_symbol_to_c_name_address \
10872     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10873     old_postinstall_cmds old_postuninstall_cmds \
10874     compiler \
10875     CC \
10876     LD \
10877     lt_prog_compiler_wl \
10878     lt_prog_compiler_pic \
10879     lt_prog_compiler_static \
10880     lt_prog_compiler_no_builtin_flag \
10881     export_dynamic_flag_spec \
10882     thread_safe_flag_spec \
10883     whole_archive_flag_spec \
10884     enable_shared_with_static_runtimes \
10885     old_archive_cmds \
10886     old_archive_from_new_cmds \
10887     predep_objects \
10888     postdep_objects \
10889     predeps \
10890     postdeps \
10891     compiler_lib_search_path \
10892     archive_cmds \
10893     archive_expsym_cmds \
10894     postinstall_cmds \
10895     postuninstall_cmds \
10896     old_archive_from_expsyms_cmds \
10897     allow_undefined_flag \
10898     no_undefined_flag \
10899     export_symbols_cmds \
10900     hardcode_libdir_flag_spec \
10901     hardcode_libdir_flag_spec_ld \
10902     hardcode_libdir_separator \
10903     hardcode_automatic \
10904     module_cmds \
10905     module_expsym_cmds \
10906     lt_cv_prog_compiler_c_o \
10907     exclude_expsyms \
10908     include_expsyms; do
10909
10910     case $var in
10911     old_archive_cmds | \
10912     old_archive_from_new_cmds | \
10913     archive_cmds | \
10914     archive_expsym_cmds | \
10915     module_cmds | \
10916     module_expsym_cmds | \
10917     old_archive_from_expsyms_cmds | \
10918     export_symbols_cmds | \
10919     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10920     postinstall_cmds | postuninstall_cmds | \
10921     old_postinstall_cmds | old_postuninstall_cmds | \
10922     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10923       # Double-quote double-evaled strings.
10924       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10925       ;;
10926     *)
10927       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10928       ;;
10929     esac
10930   done
10931
10932   case $lt_echo in
10933   *'\$0 --fallback-echo"')
10934     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10935     ;;
10936   esac
10937
10938 cfgfile="${ofile}T"
10939   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10940   $rm -f "$cfgfile"
10941   { echo "$as_me:$LINENO: creating $ofile" >&5
10942 echo "$as_me: creating $ofile" >&6;}
10943
10944   cat <<__EOF__ >> "$cfgfile"
10945 #! $SHELL
10946
10947 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10948 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10949 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10950 #
10951 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10952 # Free Software Foundation, Inc.
10953 #
10954 # This file is part of GNU Libtool:
10955 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10956 #
10957 # This program is free software; you can redistribute it and/or modify
10958 # it under the terms of the GNU General Public License as published by
10959 # the Free Software Foundation; either version 2 of the License, or
10960 # (at your option) any later version.
10961 #
10962 # This program is distributed in the hope that it will be useful, but
10963 # WITHOUT ANY WARRANTY; without even the implied warranty of
10964 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10965 # General Public License for more details.
10966 #
10967 # You should have received a copy of the GNU General Public License
10968 # along with this program; if not, write to the Free Software
10969 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10970 #
10971 # As a special exception to the GNU General Public License, if you
10972 # distribute this file as part of a program that contains a
10973 # configuration script generated by Autoconf, you may include it under
10974 # the same distribution terms that you use for the rest of that program.
10975
10976 # A sed program that does not truncate output.
10977 SED=$lt_SED
10978
10979 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10980 Xsed="$SED -e 1s/^X//"
10981
10982 # The HP-UX ksh and POSIX shell print the target directory to stdout
10983 # if CDPATH is set.
10984 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10985
10986 # The names of the tagged configurations supported by this script.
10987 available_tags=
10988
10989 # ### BEGIN LIBTOOL CONFIG
10990
10991 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10992
10993 # Shell to use when invoking shell scripts.
10994 SHELL=$lt_SHELL
10995
10996 # Whether or not to build shared libraries.
10997 build_libtool_libs=$enable_shared
10998
10999 # Whether or not to build static libraries.
11000 build_old_libs=$enable_static
11001
11002 # Whether or not to add -lc for building shared libraries.
11003 build_libtool_need_lc=$archive_cmds_need_lc
11004
11005 # Whether or not to disallow shared libs when runtime libs are static
11006 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11007
11008 # Whether or not to optimize for fast installation.
11009 fast_install=$enable_fast_install
11010
11011 # The host system.
11012 host_alias=$host_alias
11013 host=$host
11014 host_os=$host_os
11015
11016 # The build system.
11017 build_alias=$build_alias
11018 build=$build
11019 build_os=$build_os
11020
11021 # An echo program that does not interpret backslashes.
11022 echo=$lt_echo
11023
11024 # The archiver.
11025 AR=$lt_AR
11026 AR_FLAGS=$lt_AR_FLAGS
11027
11028 # A C compiler.
11029 LTCC=$lt_LTCC
11030
11031 # LTCC compiler flags.
11032 LTCFLAGS=$lt_LTCFLAGS
11033
11034 # A language-specific compiler.
11035 CC=$lt_compiler
11036
11037 # Is the compiler the GNU C compiler?
11038 with_gcc=$GCC
11039
11040 # An ERE matcher.
11041 EGREP=$lt_EGREP
11042
11043 # The linker used to build libraries.
11044 LD=$lt_LD
11045
11046 # Whether we need hard or soft links.
11047 LN_S=$lt_LN_S
11048
11049 # A BSD-compatible nm program.
11050 NM=$lt_NM
11051
11052 # A symbol stripping program
11053 STRIP=$lt_STRIP
11054
11055 # Used to examine libraries when file_magic_cmd begins "file"
11056 MAGIC_CMD=$MAGIC_CMD
11057
11058 # Used on cygwin: DLL creation program.
11059 DLLTOOL="$DLLTOOL"
11060
11061 # Used on cygwin: object dumper.
11062 OBJDUMP="$OBJDUMP"
11063
11064 # Used on cygwin: assembler.
11065 AS="$AS"
11066
11067 # The name of the directory that contains temporary libtool files.
11068 objdir=$objdir
11069
11070 # How to create reloadable object files.
11071 reload_flag=$lt_reload_flag
11072 reload_cmds=$lt_reload_cmds
11073
11074 # How to pass a linker flag through the compiler.
11075 wl=$lt_lt_prog_compiler_wl
11076
11077 # Object file suffix (normally "o").
11078 objext="$ac_objext"
11079
11080 # Old archive suffix (normally "a").
11081 libext="$libext"
11082
11083 # Shared library suffix (normally ".so").
11084 shrext_cmds='$shrext_cmds'
11085
11086 # Executable file suffix (normally "").
11087 exeext="$exeext"
11088
11089 # Additional compiler flags for building library objects.
11090 pic_flag=$lt_lt_prog_compiler_pic
11091 pic_mode=$pic_mode
11092
11093 # What is the maximum length of a command?
11094 max_cmd_len=$lt_cv_sys_max_cmd_len
11095
11096 # Does compiler simultaneously support -c and -o options?
11097 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11098
11099 # Must we lock files when doing compilation?
11100 need_locks=$lt_need_locks
11101
11102 # Do we need the lib prefix for modules?
11103 need_lib_prefix=$need_lib_prefix
11104
11105 # Do we need a version for libraries?
11106 need_version=$need_version
11107
11108 # Whether dlopen is supported.
11109 dlopen_support=$enable_dlopen
11110
11111 # Whether dlopen of programs is supported.
11112 dlopen_self=$enable_dlopen_self
11113
11114 # Whether dlopen of statically linked programs is supported.
11115 dlopen_self_static=$enable_dlopen_self_static
11116
11117 # Compiler flag to prevent dynamic linking.
11118 link_static_flag=$lt_lt_prog_compiler_static
11119
11120 # Compiler flag to turn off builtin functions.
11121 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11122
11123 # Compiler flag to allow reflexive dlopens.
11124 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11125
11126 # Compiler flag to generate shared objects directly from archives.
11127 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11128
11129 # Compiler flag to generate thread-safe objects.
11130 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11131
11132 # Library versioning type.
11133 version_type=$version_type
11134
11135 # Format of library name prefix.
11136 libname_spec=$lt_libname_spec
11137
11138 # List of archive names.  First name is the real one, the rest are links.
11139 # The last name is the one that the linker finds with -lNAME.
11140 library_names_spec=$lt_library_names_spec
11141
11142 # The coded name of the library, if different from the real name.
11143 soname_spec=$lt_soname_spec
11144
11145 # Commands used to build and install an old-style archive.
11146 RANLIB=$lt_RANLIB
11147 old_archive_cmds=$lt_old_archive_cmds
11148 old_postinstall_cmds=$lt_old_postinstall_cmds
11149 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11150
11151 # Create an old-style archive from a shared archive.
11152 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11153
11154 # Create a temporary old-style archive to link instead of a shared archive.
11155 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11156
11157 # Commands used to build and install a shared archive.
11158 archive_cmds=$lt_archive_cmds
11159 archive_expsym_cmds=$lt_archive_expsym_cmds
11160 postinstall_cmds=$lt_postinstall_cmds
11161 postuninstall_cmds=$lt_postuninstall_cmds
11162
11163 # Commands used to build a loadable module (assumed same as above if empty)
11164 module_cmds=$lt_module_cmds
11165 module_expsym_cmds=$lt_module_expsym_cmds
11166
11167 # Commands to strip libraries.
11168 old_striplib=$lt_old_striplib
11169 striplib=$lt_striplib
11170
11171 # Dependencies to place before the objects being linked to create a
11172 # shared library.
11173 predep_objects=$lt_predep_objects
11174
11175 # Dependencies to place after the objects being linked to create a
11176 # shared library.
11177 postdep_objects=$lt_postdep_objects
11178
11179 # Dependencies to place before the objects being linked to create a
11180 # shared library.
11181 predeps=$lt_predeps
11182
11183 # Dependencies to place after the objects being linked to create a
11184 # shared library.
11185 postdeps=$lt_postdeps
11186
11187 # The library search path used internally by the compiler when linking
11188 # a shared library.
11189 compiler_lib_search_path=$lt_compiler_lib_search_path
11190
11191 # Method to check whether dependent libraries are shared objects.
11192 deplibs_check_method=$lt_deplibs_check_method
11193
11194 # Command to use when deplibs_check_method == file_magic.
11195 file_magic_cmd=$lt_file_magic_cmd
11196
11197 # Flag that allows shared libraries with undefined symbols to be built.
11198 allow_undefined_flag=$lt_allow_undefined_flag
11199
11200 # Flag that forces no undefined symbols.
11201 no_undefined_flag=$lt_no_undefined_flag
11202
11203 # Commands used to finish a libtool library installation in a directory.
11204 finish_cmds=$lt_finish_cmds
11205
11206 # Same as above, but a single script fragment to be evaled but not shown.
11207 finish_eval=$lt_finish_eval
11208
11209 # Take the output of nm and produce a listing of raw symbols and C names.
11210 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11211
11212 # Transform the output of nm in a proper C declaration
11213 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11214
11215 # Transform the output of nm in a C name address pair
11216 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11217
11218 # This is the shared library runtime path variable.
11219 runpath_var=$runpath_var
11220
11221 # This is the shared library path variable.
11222 shlibpath_var=$shlibpath_var
11223
11224 # Is shlibpath searched before the hard-coded library search path?
11225 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11226
11227 # How to hardcode a shared library path into an executable.
11228 hardcode_action=$hardcode_action
11229
11230 # Whether we should hardcode library paths into libraries.
11231 hardcode_into_libs=$hardcode_into_libs
11232
11233 # Flag to hardcode \$libdir into a binary during linking.
11234 # This must work even if \$libdir does not exist.
11235 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11236
11237 # If ld is used when linking, flag to hardcode \$libdir into
11238 # a binary during linking. This must work even if \$libdir does
11239 # not exist.
11240 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11241
11242 # Whether we need a single -rpath flag with a separated argument.
11243 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11244
11245 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11246 # resulting binary.
11247 hardcode_direct=$hardcode_direct
11248
11249 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11250 # resulting binary.
11251 hardcode_minus_L=$hardcode_minus_L
11252
11253 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11254 # the resulting binary.
11255 hardcode_shlibpath_var=$hardcode_shlibpath_var
11256
11257 # Set to yes if building a shared library automatically hardcodes DIR into the library
11258 # and all subsequent libraries and executables linked against it.
11259 hardcode_automatic=$hardcode_automatic
11260
11261 # Variables whose values should be saved in libtool wrapper scripts and
11262 # restored at relink time.
11263 variables_saved_for_relink="$variables_saved_for_relink"
11264
11265 # Whether libtool must link a program against all its dependency libraries.
11266 link_all_deplibs=$link_all_deplibs
11267
11268 # Compile-time system search path for libraries
11269 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11270
11271 # Run-time system search path for libraries
11272 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11273
11274 # Fix the shell variable \$srcfile for the compiler.
11275 fix_srcfile_path="$fix_srcfile_path"
11276
11277 # Set to yes if exported symbols are required.
11278 always_export_symbols=$always_export_symbols
11279
11280 # The commands to list exported symbols.
11281 export_symbols_cmds=$lt_export_symbols_cmds
11282
11283 # The commands to extract the exported symbol list from a shared archive.
11284 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11285
11286 # Symbols that should not be listed in the preloaded symbols.
11287 exclude_expsyms=$lt_exclude_expsyms
11288
11289 # Symbols that must always be exported.
11290 include_expsyms=$lt_include_expsyms
11291
11292 # ### END LIBTOOL CONFIG
11293
11294 __EOF__
11295
11296
11297   case $host_os in
11298   aix3*)
11299     cat <<\EOF >> "$cfgfile"
11300
11301 # AIX sometimes has problems with the GCC collect2 program.  For some
11302 # reason, if we set the COLLECT_NAMES environment variable, the problems
11303 # vanish in a puff of smoke.
11304 if test "X${COLLECT_NAMES+set}" != Xset; then
11305   COLLECT_NAMES=
11306   export COLLECT_NAMES
11307 fi
11308 EOF
11309     ;;
11310   esac
11311
11312   # We use sed instead of cat because bash on DJGPP gets confused if
11313   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11314   # text mode, it properly converts lines to CR/LF.  This bash problem
11315   # is reportedly fixed, but why not run on old versions too?
11316   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11317
11318   mv -f "$cfgfile" "$ofile" || \
11319     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11320   chmod +x "$ofile"
11321
11322 else
11323   # If there is no Makefile yet, we rely on a make rule to execute
11324   # `config.status --recheck' to rerun these tests and create the
11325   # libtool script then.
11326   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11327   if test -f "$ltmain_in"; then
11328     test -f Makefile && make "$ltmain"
11329   fi
11330 fi
11331
11332
11333 ac_ext=c
11334 ac_cpp='$CPP $CPPFLAGS'
11335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11338
11339 CC="$lt_save_CC"
11340
11341
11342 # Check whether --with-tags was given.
11343 if test "${with_tags+set}" = set; then
11344   withval=$with_tags; tagnames="$withval"
11345 fi
11346
11347
11348 if test -f "$ltmain" && test -n "$tagnames"; then
11349   if test ! -f "${ofile}"; then
11350     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11351 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11352   fi
11353
11354   if test -z "$LTCC"; then
11355     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11356     if test -z "$LTCC"; then
11357       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11358 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11359     else
11360       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11361 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11362     fi
11363   fi
11364   if test -z "$LTCFLAGS"; then
11365     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11366   fi
11367
11368   # Extract list of available tagged configurations in $ofile.
11369   # Note that this assumes the entire list is on one line.
11370   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11371
11372   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11373   for tagname in $tagnames; do
11374     IFS="$lt_save_ifs"
11375     # Check whether tagname contains only valid characters
11376     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11377     "") ;;
11378     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11379 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11380    { (exit 1); exit 1; }; }
11381         ;;
11382     esac
11383
11384     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11385     then
11386       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11387 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11388    { (exit 1); exit 1; }; }
11389     fi
11390
11391     # Update the list of available tags.
11392     if test -n "$tagname"; then
11393       echo appending configuration tag \"$tagname\" to $ofile
11394
11395       case $tagname in
11396       CXX)
11397         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11398             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11399             (test "X$CXX" != "Xg++"))) ; then
11400           ac_ext=cpp
11401 ac_cpp='$CXXCPP $CPPFLAGS'
11402 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11403 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11405
11406
11407
11408
11409 archive_cmds_need_lc_CXX=no
11410 allow_undefined_flag_CXX=
11411 always_export_symbols_CXX=no
11412 archive_expsym_cmds_CXX=
11413 export_dynamic_flag_spec_CXX=
11414 hardcode_direct_CXX=no
11415 hardcode_libdir_flag_spec_CXX=
11416 hardcode_libdir_flag_spec_ld_CXX=
11417 hardcode_libdir_separator_CXX=
11418 hardcode_minus_L_CXX=no
11419 hardcode_shlibpath_var_CXX=unsupported
11420 hardcode_automatic_CXX=no
11421 module_cmds_CXX=
11422 module_expsym_cmds_CXX=
11423 link_all_deplibs_CXX=unknown
11424 old_archive_cmds_CXX=$old_archive_cmds
11425 no_undefined_flag_CXX=
11426 whole_archive_flag_spec_CXX=
11427 enable_shared_with_static_runtimes_CXX=no
11428
11429 # Dependencies to place before and after the object being linked:
11430 predep_objects_CXX=
11431 postdep_objects_CXX=
11432 predeps_CXX=
11433 postdeps_CXX=
11434 compiler_lib_search_path_CXX=
11435
11436 # Source file extension for C++ test sources.
11437 ac_ext=cpp
11438
11439 # Object file extension for compiled C++ test sources.
11440 objext=o
11441 objext_CXX=$objext
11442
11443 # Code to be used in simple compile tests
11444 lt_simple_compile_test_code="int some_variable = 0;\n"
11445
11446 # Code to be used in simple link tests
11447 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11448
11449 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11450
11451 # If no C compiler was specified, use CC.
11452 LTCC=${LTCC-"$CC"}
11453
11454 # If no C compiler flags were specified, use CFLAGS.
11455 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11456
11457 # Allow CC to be a program name with arguments.
11458 compiler=$CC
11459
11460
11461 # save warnings/boilerplate of simple test code
11462 ac_outfile=conftest.$ac_objext
11463 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11464 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11465 _lt_compiler_boilerplate=`cat conftest.err`
11466 $rm conftest*
11467
11468 ac_outfile=conftest.$ac_objext
11469 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11470 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11471 _lt_linker_boilerplate=`cat conftest.err`
11472 $rm conftest*
11473
11474
11475 # Allow CC to be a program name with arguments.
11476 lt_save_CC=$CC
11477 lt_save_LD=$LD
11478 lt_save_GCC=$GCC
11479 GCC=$GXX
11480 lt_save_with_gnu_ld=$with_gnu_ld
11481 lt_save_path_LD=$lt_cv_path_LD
11482 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11483   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11484 else
11485   $as_unset lt_cv_prog_gnu_ld
11486 fi
11487 if test -n "${lt_cv_path_LDCXX+set}"; then
11488   lt_cv_path_LD=$lt_cv_path_LDCXX
11489 else
11490   $as_unset lt_cv_path_LD
11491 fi
11492 test -z "${LDCXX+set}" || LD=$LDCXX
11493 CC=${CXX-"c++"}
11494 compiler=$CC
11495 compiler_CXX=$CC
11496 for cc_temp in $compiler""; do
11497   case $cc_temp in
11498     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11499     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11500     \-*) ;;
11501     *) break;;
11502   esac
11503 done
11504 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11505
11506
11507 # We don't want -fno-exception wen compiling C++ code, so set the
11508 # no_builtin_flag separately
11509 if test "$GXX" = yes; then
11510   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11511 else
11512   lt_prog_compiler_no_builtin_flag_CXX=
11513 fi
11514
11515 if test "$GXX" = yes; then
11516   # Set up default GNU C++ configuration
11517
11518
11519 # Check whether --with-gnu-ld was given.
11520 if test "${with_gnu_ld+set}" = set; then
11521   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11522 else
11523   with_gnu_ld=no
11524 fi
11525
11526 ac_prog=ld
11527 if test "$GCC" = yes; then
11528   # Check if gcc -print-prog-name=ld gives a path.
11529   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11530 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11531   case $host in
11532   *-*-mingw*)
11533     # gcc leaves a trailing carriage return which upsets mingw
11534     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11535   *)
11536     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11537   esac
11538   case $ac_prog in
11539     # Accept absolute paths.
11540     [\\/]* | ?:[\\/]*)
11541       re_direlt='/[^/][^/]*/\.\./'
11542       # Canonicalize the pathname of ld
11543       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11544       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11545         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11546       done
11547       test -z "$LD" && LD="$ac_prog"
11548       ;;
11549   "")
11550     # If it fails, then pretend we aren't using GCC.
11551     ac_prog=ld
11552     ;;
11553   *)
11554     # If it is relative, then search for the first ld in PATH.
11555     with_gnu_ld=unknown
11556     ;;
11557   esac
11558 elif test "$with_gnu_ld" = yes; then
11559   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11560 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11561 else
11562   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11563 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11564 fi
11565 if test "${lt_cv_path_LD+set}" = set; then
11566   echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568   if test -z "$LD"; then
11569   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11570   for ac_dir in $PATH; do
11571     IFS="$lt_save_ifs"
11572     test -z "$ac_dir" && ac_dir=.
11573     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11574       lt_cv_path_LD="$ac_dir/$ac_prog"
11575       # Check to see if the program is GNU ld.  I'd rather use --version,
11576       # but apparently some variants of GNU ld only accept -v.
11577       # Break only if it was the GNU/non-GNU ld that we prefer.
11578       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11579       *GNU* | *'with BFD'*)
11580         test "$with_gnu_ld" != no && break
11581         ;;
11582       *)
11583         test "$with_gnu_ld" != yes && break
11584         ;;
11585       esac
11586     fi
11587   done
11588   IFS="$lt_save_ifs"
11589 else
11590   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11591 fi
11592 fi
11593
11594 LD="$lt_cv_path_LD"
11595 if test -n "$LD"; then
11596   { echo "$as_me:$LINENO: result: $LD" >&5
11597 echo "${ECHO_T}$LD" >&6; }
11598 else
11599   { echo "$as_me:$LINENO: result: no" >&5
11600 echo "${ECHO_T}no" >&6; }
11601 fi
11602 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11603 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11604    { (exit 1); exit 1; }; }
11605 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11606 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11607 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11608   echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11611 case `$LD -v 2>&1 </dev/null` in
11612 *GNU* | *'with BFD'*)
11613   lt_cv_prog_gnu_ld=yes
11614   ;;
11615 *)
11616   lt_cv_prog_gnu_ld=no
11617   ;;
11618 esac
11619 fi
11620 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11621 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11622 with_gnu_ld=$lt_cv_prog_gnu_ld
11623
11624
11625
11626   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11627   # archiving commands below assume that GNU ld is being used.
11628   if test "$with_gnu_ld" = yes; then
11629     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11630     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'
11631
11632     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11633     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11634
11635     # If archive_cmds runs LD, not CC, wlarc should be empty
11636     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11637     #     investigate it a little bit more. (MM)
11638     wlarc='${wl}'
11639
11640     # ancient GNU ld didn't support --whole-archive et. al.
11641     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11642         grep 'no-whole-archive' > /dev/null; then
11643       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11644     else
11645       whole_archive_flag_spec_CXX=
11646     fi
11647   else
11648     with_gnu_ld=no
11649     wlarc=
11650
11651     # A generic and very simple default shared library creation
11652     # command for GNU C++ for the case where it uses the native
11653     # linker, instead of GNU ld.  If possible, this setting should
11654     # overridden to take advantage of the native linker features on
11655     # the platform it is being used on.
11656     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11657   fi
11658
11659   # Commands to make compiler produce verbose output that lists
11660   # what "hidden" libraries, object files and flags are used when
11661   # linking a shared library.
11662   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11663
11664 else
11665   GXX=no
11666   with_gnu_ld=no
11667   wlarc=
11668 fi
11669
11670 # PORTME: fill in a description of your system's C++ link characteristics
11671 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11672 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11673 ld_shlibs_CXX=yes
11674 case $host_os in
11675   aix3*)
11676     # FIXME: insert proper C++ library support
11677     ld_shlibs_CXX=no
11678     ;;
11679   aix4* | aix5*)
11680     if test "$host_cpu" = ia64; then
11681       # On IA64, the linker does run time linking by default, so we don't
11682       # have to do anything special.
11683       aix_use_runtimelinking=no
11684       exp_sym_flag='-Bexport'
11685       no_entry_flag=""
11686     else
11687       aix_use_runtimelinking=no
11688
11689       # Test if we are trying to use run time linking or normal
11690       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11691       # need to do runtime linking.
11692       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11693         for ld_flag in $LDFLAGS; do
11694           case $ld_flag in
11695           *-brtl*)
11696             aix_use_runtimelinking=yes
11697             break
11698             ;;
11699           esac
11700         done
11701         ;;
11702       esac
11703
11704       exp_sym_flag='-bexport'
11705       no_entry_flag='-bnoentry'
11706     fi
11707
11708     # When large executables or shared objects are built, AIX ld can
11709     # have problems creating the table of contents.  If linking a library
11710     # or program results in "error TOC overflow" add -mminimal-toc to
11711     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11712     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11713
11714     archive_cmds_CXX=''
11715     hardcode_direct_CXX=yes
11716     hardcode_libdir_separator_CXX=':'
11717     link_all_deplibs_CXX=yes
11718
11719     if test "$GXX" = yes; then
11720       case $host_os in aix4.[012]|aix4.[012].*)
11721       # We only want to do this on AIX 4.2 and lower, the check
11722       # below for broken collect2 doesn't work under 4.3+
11723         collect2name=`${CC} -print-prog-name=collect2`
11724         if test -f "$collect2name" && \
11725            strings "$collect2name" | grep resolve_lib_name >/dev/null
11726         then
11727           # We have reworked collect2
11728           hardcode_direct_CXX=yes
11729         else
11730           # We have old collect2
11731           hardcode_direct_CXX=unsupported
11732           # It fails to find uninstalled libraries when the uninstalled
11733           # path is not listed in the libpath.  Setting hardcode_minus_L
11734           # to unsupported forces relinking
11735           hardcode_minus_L_CXX=yes
11736           hardcode_libdir_flag_spec_CXX='-L$libdir'
11737           hardcode_libdir_separator_CXX=
11738         fi
11739         ;;
11740       esac
11741       shared_flag='-shared'
11742       if test "$aix_use_runtimelinking" = yes; then
11743         shared_flag="$shared_flag "'${wl}-G'
11744       fi
11745     else
11746       # not using gcc
11747       if test "$host_cpu" = ia64; then
11748         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11749         # chokes on -Wl,-G. The following line is correct:
11750         shared_flag='-G'
11751       else
11752         if test "$aix_use_runtimelinking" = yes; then
11753           shared_flag='${wl}-G'
11754         else
11755           shared_flag='${wl}-bM:SRE'
11756         fi
11757       fi
11758     fi
11759
11760     # It seems that -bexpall does not export symbols beginning with
11761     # underscore (_), so it is better to generate a list of symbols to export.
11762     always_export_symbols_CXX=yes
11763     if test "$aix_use_runtimelinking" = yes; then
11764       # Warning - without using the other runtime loading flags (-brtl),
11765       # -berok will link without error, but may produce a broken library.
11766       allow_undefined_flag_CXX='-berok'
11767       # Determine the default libpath from the value encoded in an empty executable.
11768       cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h.  */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h.  */
11774
11775 int
11776 main ()
11777 {
11778
11779   ;
11780   return 0;
11781 }
11782 _ACEOF
11783 rm -f conftest.$ac_objext conftest$ac_exeext
11784 if { (ac_try="$ac_link"
11785 case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790   (eval "$ac_link") 2>conftest.er1
11791   ac_status=$?
11792   grep -v '^ *+' conftest.er1 >conftest.err
11793   rm -f conftest.er1
11794   cat conftest.err >&5
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); } &&
11797          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11798   { (case "(($ac_try" in
11799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800   *) ac_try_echo=$ac_try;;
11801 esac
11802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11803   (eval "$ac_try") 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; } &&
11807          { ac_try='test -s conftest$ac_exeext'
11808   { (case "(($ac_try" in
11809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810   *) ac_try_echo=$ac_try;;
11811 esac
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813   (eval "$ac_try") 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); }; }; then
11817
11818 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11819 }'`
11820 # Check for a 64-bit object if we didn't find anything.
11821 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; }
11822 }'`; fi
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827
11828 fi
11829
11830 rm -f core conftest.err conftest.$ac_objext \
11831       conftest$ac_exeext conftest.$ac_ext
11832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11833
11834       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11835
11836       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"
11837      else
11838       if test "$host_cpu" = ia64; then
11839         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11840         allow_undefined_flag_CXX="-z nodefs"
11841         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"
11842       else
11843         # Determine the default libpath from the value encoded in an empty executable.
11844         cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h.  */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h.  */
11850
11851 int
11852 main ()
11853 {
11854
11855   ;
11856   return 0;
11857 }
11858 _ACEOF
11859 rm -f conftest.$ac_objext conftest$ac_exeext
11860 if { (ac_try="$ac_link"
11861 case "(($ac_try" in
11862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863   *) ac_try_echo=$ac_try;;
11864 esac
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866   (eval "$ac_link") 2>conftest.er1
11867   ac_status=$?
11868   grep -v '^ *+' conftest.er1 >conftest.err
11869   rm -f conftest.er1
11870   cat conftest.err >&5
11871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872   (exit $ac_status); } &&
11873          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11874   { (case "(($ac_try" in
11875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11876   *) ac_try_echo=$ac_try;;
11877 esac
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879   (eval "$ac_try") 2>&5
11880   ac_status=$?
11881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); }; } &&
11883          { ac_try='test -s conftest$ac_exeext'
11884   { (case "(($ac_try" in
11885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11886   *) ac_try_echo=$ac_try;;
11887 esac
11888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11889   (eval "$ac_try") 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); }; }; then
11893
11894 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11895 }'`
11896 # Check for a 64-bit object if we didn't find anything.
11897 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; }
11898 }'`; fi
11899 else
11900   echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903
11904 fi
11905
11906 rm -f core conftest.err conftest.$ac_objext \
11907       conftest$ac_exeext conftest.$ac_ext
11908 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11909
11910         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11911         # Warning - without using the other run time loading flags,
11912         # -berok will link without error, but may produce a broken library.
11913         no_undefined_flag_CXX=' ${wl}-bernotok'
11914         allow_undefined_flag_CXX=' ${wl}-berok'
11915         # Exported symbols can be pulled into shared objects from archives
11916         whole_archive_flag_spec_CXX='$convenience'
11917         archive_cmds_need_lc_CXX=yes
11918         # This is similar to how AIX traditionally builds its shared libraries.
11919         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'
11920       fi
11921     fi
11922     ;;
11923
11924   beos*)
11925     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11926       allow_undefined_flag_CXX=unsupported
11927       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11928       # support --undefined.  This deserves some investigation.  FIXME
11929       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11930     else
11931       ld_shlibs_CXX=no
11932     fi
11933     ;;
11934
11935   chorus*)
11936     case $cc_basename in
11937       *)
11938         # FIXME: insert proper C++ library support
11939         ld_shlibs_CXX=no
11940         ;;
11941     esac
11942     ;;
11943
11944   cygwin* | mingw* | pw32*)
11945     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11946     # as there is no search path for DLLs.
11947     hardcode_libdir_flag_spec_CXX='-L$libdir'
11948     allow_undefined_flag_CXX=unsupported
11949     always_export_symbols_CXX=no
11950     enable_shared_with_static_runtimes_CXX=yes
11951
11952     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11953       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'
11954       # If the export-symbols file already is a .def file (1st line
11955       # is EXPORTS), use it as is; otherwise, prepend...
11956       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11957         cp $export_symbols $output_objdir/$soname.def;
11958       else
11959         echo EXPORTS > $output_objdir/$soname.def;
11960         cat $export_symbols >> $output_objdir/$soname.def;
11961       fi~
11962       $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'
11963     else
11964       ld_shlibs_CXX=no
11965     fi
11966   ;;
11967       darwin* | rhapsody*)
11968         case $host_os in
11969         rhapsody* | darwin1.[012])
11970          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11971          ;;
11972        *) # Darwin 1.3 on
11973          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11974            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11975          else
11976            case ${MACOSX_DEPLOYMENT_TARGET} in
11977              10.[012])
11978                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11979                ;;
11980              10.*)
11981                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11982                ;;
11983            esac
11984          fi
11985          ;;
11986         esac
11987       archive_cmds_need_lc_CXX=no
11988       hardcode_direct_CXX=no
11989       hardcode_automatic_CXX=yes
11990       hardcode_shlibpath_var_CXX=unsupported
11991       whole_archive_flag_spec_CXX=''
11992       link_all_deplibs_CXX=yes
11993
11994     if test "$GXX" = yes ; then
11995       lt_int_apple_cc_single_mod=no
11996       output_verbose_link_cmd='echo'
11997       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11998        lt_int_apple_cc_single_mod=yes
11999       fi
12000       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12001        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12002       else
12003           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'
12004         fi
12005         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12006         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12007           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12008             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}'
12009           else
12010             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}'
12011           fi
12012             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}'
12013       else
12014       case $cc_basename in
12015         xlc*)
12016          output_verbose_link_cmd='echo'
12017           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'
12018           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12019           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12020           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}'
12021           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}'
12022           ;;
12023        *)
12024          ld_shlibs_CXX=no
12025           ;;
12026       esac
12027       fi
12028         ;;
12029
12030   dgux*)
12031     case $cc_basename in
12032       ec++*)
12033         # FIXME: insert proper C++ library support
12034         ld_shlibs_CXX=no
12035         ;;
12036       ghcx*)
12037         # Green Hills C++ Compiler
12038         # FIXME: insert proper C++ library support
12039         ld_shlibs_CXX=no
12040         ;;
12041       *)
12042         # FIXME: insert proper C++ library support
12043         ld_shlibs_CXX=no
12044         ;;
12045     esac
12046     ;;
12047   freebsd[12]*)
12048     # C++ shared libraries reported to be fairly broken before switch to ELF
12049     ld_shlibs_CXX=no
12050     ;;
12051   freebsd-elf*)
12052     archive_cmds_need_lc_CXX=no
12053     ;;
12054   freebsd* | kfreebsd*-gnu | dragonfly*)
12055     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12056     # conventions
12057     ld_shlibs_CXX=yes
12058     ;;
12059   gnu*)
12060     ;;
12061   hpux9*)
12062     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12063     hardcode_libdir_separator_CXX=:
12064     export_dynamic_flag_spec_CXX='${wl}-E'
12065     hardcode_direct_CXX=yes
12066     hardcode_minus_L_CXX=yes # Not in the search PATH,
12067                                 # but as the default
12068                                 # location of the library.
12069
12070     case $cc_basename in
12071     CC*)
12072       # FIXME: insert proper C++ library support
12073       ld_shlibs_CXX=no
12074       ;;
12075     aCC*)
12076       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'
12077       # Commands to make compiler produce verbose output that lists
12078       # what "hidden" libraries, object files and flags are used when
12079       # linking a shared library.
12080       #
12081       # There doesn't appear to be a way to prevent this compiler from
12082       # explicitly linking system object files so we need to strip them
12083       # from the output so that they don't get included in the library
12084       # dependencies.
12085       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'
12086       ;;
12087     *)
12088       if test "$GXX" = yes; then
12089         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'
12090       else
12091         # FIXME: insert proper C++ library support
12092         ld_shlibs_CXX=no
12093       fi
12094       ;;
12095     esac
12096     ;;
12097   hpux10*|hpux11*)
12098     if test $with_gnu_ld = no; then
12099       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12100       hardcode_libdir_separator_CXX=:
12101
12102       case $host_cpu in
12103       hppa*64*|ia64*)
12104         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12105         ;;
12106       *)
12107         export_dynamic_flag_spec_CXX='${wl}-E'
12108         ;;
12109       esac
12110     fi
12111     case $host_cpu in
12112     hppa*64*|ia64*)
12113       hardcode_direct_CXX=no
12114       hardcode_shlibpath_var_CXX=no
12115       ;;
12116     *)
12117       hardcode_direct_CXX=yes
12118       hardcode_minus_L_CXX=yes # Not in the search PATH,
12119                                               # but as the default
12120                                               # location of the library.
12121       ;;
12122     esac
12123
12124     case $cc_basename in
12125       CC*)
12126         # FIXME: insert proper C++ library support
12127         ld_shlibs_CXX=no
12128         ;;
12129       aCC*)
12130         case $host_cpu in
12131         hppa*64*)
12132           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12133           ;;
12134         ia64*)
12135           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12136           ;;
12137         *)
12138           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12139           ;;
12140         esac
12141         # Commands to make compiler produce verbose output that lists
12142         # what "hidden" libraries, object files and flags are used when
12143         # linking a shared library.
12144         #
12145         # There doesn't appear to be a way to prevent this compiler from
12146         # explicitly linking system object files so we need to strip them
12147         # from the output so that they don't get included in the library
12148         # dependencies.
12149         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'
12150         ;;
12151       *)
12152         if test "$GXX" = yes; then
12153           if test $with_gnu_ld = no; then
12154             case $host_cpu in
12155             hppa*64*)
12156               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12157               ;;
12158             ia64*)
12159               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12160               ;;
12161             *)
12162               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'
12163               ;;
12164             esac
12165           fi
12166         else
12167           # FIXME: insert proper C++ library support
12168           ld_shlibs_CXX=no
12169         fi
12170         ;;
12171     esac
12172     ;;
12173   interix3*)
12174     hardcode_direct_CXX=no
12175     hardcode_shlibpath_var_CXX=no
12176     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12177     export_dynamic_flag_spec_CXX='${wl}-E'
12178     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12179     # Instead, shared libraries are loaded at an image base (0x10000000 by
12180     # default) and relocated if they conflict, which is a slow very memory
12181     # consuming and fragmenting process.  To avoid this, we pick a random,
12182     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12183     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12184     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'
12185     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'
12186     ;;
12187   irix5* | irix6*)
12188     case $cc_basename in
12189       CC*)
12190         # SGI C++
12191         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'
12192
12193         # Archives containing C++ object files must be created using
12194         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12195         # necessary to make sure instantiated templates are included
12196         # in the archive.
12197         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12198         ;;
12199       *)
12200         if test "$GXX" = yes; then
12201           if test "$with_gnu_ld" = no; then
12202             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'
12203           else
12204             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'
12205           fi
12206         fi
12207         link_all_deplibs_CXX=yes
12208         ;;
12209     esac
12210     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12211     hardcode_libdir_separator_CXX=:
12212     ;;
12213   linux*)
12214     case $cc_basename in
12215       KCC*)
12216         # Kuck and Associates, Inc. (KAI) C++ Compiler
12217
12218         # KCC will only create a shared library if the output file
12219         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12220         # to its proper name (with version) after linking.
12221         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'
12222         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'
12223         # Commands to make compiler produce verbose output that lists
12224         # what "hidden" libraries, object files and flags are used when
12225         # linking a shared library.
12226         #
12227         # There doesn't appear to be a way to prevent this compiler from
12228         # explicitly linking system object files so we need to strip them
12229         # from the output so that they don't get included in the library
12230         # dependencies.
12231         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'
12232
12233         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12234         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12235
12236         # Archives containing C++ object files must be created using
12237         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12238         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12239         ;;
12240       icpc*)
12241         # Intel C++
12242         with_gnu_ld=yes
12243         # version 8.0 and above of icpc choke on multiply defined symbols
12244         # if we add $predep_objects and $postdep_objects, however 7.1 and
12245         # earlier do not add the objects themselves.
12246         case `$CC -V 2>&1` in
12247         *"Version 7."*)
12248           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12249           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'
12250           ;;
12251         *)  # Version 8.0 or newer
12252           tmp_idyn=
12253           case $host_cpu in
12254             ia64*) tmp_idyn=' -i_dynamic';;
12255           esac
12256           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257           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'
12258           ;;
12259         esac
12260         archive_cmds_need_lc_CXX=no
12261         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12262         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12263         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12264         ;;
12265       pgCC*)
12266         # Portland Group C++ compiler
12267         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12268         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'
12269
12270         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12271         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12272         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'
12273         ;;
12274       cxx*)
12275         # Compaq C++
12276         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277         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'
12278
12279         runpath_var=LD_RUN_PATH
12280         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12281         hardcode_libdir_separator_CXX=:
12282
12283         # Commands to make compiler produce verbose output that lists
12284         # what "hidden" libraries, object files and flags are used when
12285         # linking a shared library.
12286         #
12287         # There doesn't appear to be a way to prevent this compiler from
12288         # explicitly linking system object files so we need to strip them
12289         # from the output so that they don't get included in the library
12290         # dependencies.
12291         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'
12292         ;;
12293     esac
12294     ;;
12295   lynxos*)
12296     # FIXME: insert proper C++ library support
12297     ld_shlibs_CXX=no
12298     ;;
12299   m88k*)
12300     # FIXME: insert proper C++ library support
12301     ld_shlibs_CXX=no
12302     ;;
12303   mvs*)
12304     case $cc_basename in
12305       cxx*)
12306         # FIXME: insert proper C++ library support
12307         ld_shlibs_CXX=no
12308         ;;
12309       *)
12310         # FIXME: insert proper C++ library support
12311         ld_shlibs_CXX=no
12312         ;;
12313     esac
12314     ;;
12315   netbsd*)
12316     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12317       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12318       wlarc=
12319       hardcode_libdir_flag_spec_CXX='-R$libdir'
12320       hardcode_direct_CXX=yes
12321       hardcode_shlibpath_var_CXX=no
12322     fi
12323     # Workaround some broken pre-1.5 toolchains
12324     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12325     ;;
12326   openbsd2*)
12327     # C++ shared libraries are fairly broken
12328     ld_shlibs_CXX=no
12329     ;;
12330   openbsd*)
12331     hardcode_direct_CXX=yes
12332     hardcode_shlibpath_var_CXX=no
12333     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12334     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12335     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12336       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12337       export_dynamic_flag_spec_CXX='${wl}-E'
12338       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12339     fi
12340     output_verbose_link_cmd='echo'
12341     ;;
12342   osf3*)
12343     case $cc_basename in
12344       KCC*)
12345         # Kuck and Associates, Inc. (KAI) C++ Compiler
12346
12347         # KCC will only create a shared library if the output file
12348         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12349         # to its proper name (with version) after linking.
12350         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'
12351
12352         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12353         hardcode_libdir_separator_CXX=:
12354
12355         # Archives containing C++ object files must be created using
12356         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12357         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12358
12359         ;;
12360       RCC*)
12361         # Rational C++ 2.4.1
12362         # FIXME: insert proper C++ library support
12363         ld_shlibs_CXX=no
12364         ;;
12365       cxx*)
12366         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12367         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'
12368
12369         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12370         hardcode_libdir_separator_CXX=:
12371
12372         # Commands to make compiler produce verbose output that lists
12373         # what "hidden" libraries, object files and flags are used when
12374         # linking a shared library.
12375         #
12376         # There doesn't appear to be a way to prevent this compiler from
12377         # explicitly linking system object files so we need to strip them
12378         # from the output so that they don't get included in the library
12379         # dependencies.
12380         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'
12381         ;;
12382       *)
12383         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12384           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12385           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'
12386
12387           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12388           hardcode_libdir_separator_CXX=:
12389
12390           # Commands to make compiler produce verbose output that lists
12391           # what "hidden" libraries, object files and flags are used when
12392           # linking a shared library.
12393           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12394
12395         else
12396           # FIXME: insert proper C++ library support
12397           ld_shlibs_CXX=no
12398         fi
12399         ;;
12400     esac
12401     ;;
12402   osf4* | osf5*)
12403     case $cc_basename in
12404       KCC*)
12405         # Kuck and Associates, Inc. (KAI) C++ Compiler
12406
12407         # KCC will only create a shared library if the output file
12408         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12409         # to its proper name (with version) after linking.
12410         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'
12411
12412         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12413         hardcode_libdir_separator_CXX=:
12414
12415         # Archives containing C++ object files must be created using
12416         # the KAI C++ compiler.
12417         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12418         ;;
12419       RCC*)
12420         # Rational C++ 2.4.1
12421         # FIXME: insert proper C++ library support
12422         ld_shlibs_CXX=no
12423         ;;
12424       cxx*)
12425         allow_undefined_flag_CXX=' -expect_unresolved \*'
12426         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'
12427         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12428           echo "-hidden">> $lib.exp~
12429           $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~
12430           $rm $lib.exp'
12431
12432         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12433         hardcode_libdir_separator_CXX=:
12434
12435         # Commands to make compiler produce verbose output that lists
12436         # what "hidden" libraries, object files and flags are used when
12437         # linking a shared library.
12438         #
12439         # There doesn't appear to be a way to prevent this compiler from
12440         # explicitly linking system object files so we need to strip them
12441         # from the output so that they don't get included in the library
12442         # dependencies.
12443         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'
12444         ;;
12445       *)
12446         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12447           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12448          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'
12449
12450           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12451           hardcode_libdir_separator_CXX=:
12452
12453           # Commands to make compiler produce verbose output that lists
12454           # what "hidden" libraries, object files and flags are used when
12455           # linking a shared library.
12456           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12457
12458         else
12459           # FIXME: insert proper C++ library support
12460           ld_shlibs_CXX=no
12461         fi
12462         ;;
12463     esac
12464     ;;
12465   psos*)
12466     # FIXME: insert proper C++ library support
12467     ld_shlibs_CXX=no
12468     ;;
12469   sunos4*)
12470     case $cc_basename in
12471       CC*)
12472         # Sun C++ 4.x
12473         # FIXME: insert proper C++ library support
12474         ld_shlibs_CXX=no
12475         ;;
12476       lcc*)
12477         # Lucid
12478         # FIXME: insert proper C++ library support
12479         ld_shlibs_CXX=no
12480         ;;
12481       *)
12482         # FIXME: insert proper C++ library support
12483         ld_shlibs_CXX=no
12484         ;;
12485     esac
12486     ;;
12487   solaris*)
12488     case $cc_basename in
12489       CC*)
12490         # Sun C++ 4.2, 5.x and Centerline C++
12491         archive_cmds_need_lc_CXX=yes
12492         no_undefined_flag_CXX=' -zdefs'
12493         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12494         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12495         $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'
12496
12497         hardcode_libdir_flag_spec_CXX='-R$libdir'
12498         hardcode_shlibpath_var_CXX=no
12499         case $host_os in
12500           solaris2.[0-5] | solaris2.[0-5].*) ;;
12501           *)
12502             # The C++ compiler is used as linker so we must use $wl
12503             # flag to pass the commands to the underlying system
12504             # linker. We must also pass each convience library through
12505             # to the system linker between allextract/defaultextract.
12506             # The C++ compiler will combine linker options so we
12507             # cannot just pass the convience library names through
12508             # without $wl.
12509             # Supported since Solaris 2.6 (maybe 2.5.1?)
12510             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'
12511             ;;
12512         esac
12513         link_all_deplibs_CXX=yes
12514
12515         output_verbose_link_cmd='echo'
12516
12517         # Archives containing C++ object files must be created using
12518         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12519         # necessary to make sure instantiated templates are included
12520         # in the archive.
12521         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12522         ;;
12523       gcx*)
12524         # Green Hills C++ Compiler
12525         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12526
12527         # The C++ compiler must be used to create the archive.
12528         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12529         ;;
12530       *)
12531         # GNU C++ compiler with Solaris linker
12532         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12533           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12534           if $CC --version | grep -v '^2\.7' > /dev/null; then
12535             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12536             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12537                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12538
12539             # Commands to make compiler produce verbose output that lists
12540             # what "hidden" libraries, object files and flags are used when
12541             # linking a shared library.
12542             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12543           else
12544             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12545             # platform.
12546             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12547             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12548                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12549
12550             # Commands to make compiler produce verbose output that lists
12551             # what "hidden" libraries, object files and flags are used when
12552             # linking a shared library.
12553             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12554           fi
12555
12556           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12557         fi
12558         ;;
12559     esac
12560     ;;
12561   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12562     no_undefined_flag_CXX='${wl}-z,text'
12563     archive_cmds_need_lc_CXX=no
12564     hardcode_shlibpath_var_CXX=no
12565     runpath_var='LD_RUN_PATH'
12566
12567     case $cc_basename in
12568       CC*)
12569         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12570         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12571         ;;
12572       *)
12573         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12574         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12575         ;;
12576     esac
12577     ;;
12578   sysv5* | sco3.2v5* | sco5v6*)
12579     # Note: We can NOT use -z defs as we might desire, because we do not
12580     # link with -lc, and that would cause any symbols used from libc to
12581     # always be unresolved, which means just about no library would
12582     # ever link correctly.  If we're not using GNU ld we use -z text
12583     # though, which does catch some bad symbols but isn't as heavy-handed
12584     # as -z defs.
12585     # For security reasons, it is highly recommended that you always
12586     # use absolute paths for naming shared libraries, and exclude the
12587     # DT_RUNPATH tag from executables and libraries.  But doing so
12588     # requires that you compile everything twice, which is a pain.
12589     # So that behaviour is only enabled if SCOABSPATH is set to a
12590     # non-empty value in the environment.  Most likely only useful for
12591     # creating official distributions of packages.
12592     # This is a hack until libtool officially supports absolute path
12593     # names for shared libraries.
12594     no_undefined_flag_CXX='${wl}-z,text'
12595     allow_undefined_flag_CXX='${wl}-z,nodefs'
12596     archive_cmds_need_lc_CXX=no
12597     hardcode_shlibpath_var_CXX=no
12598     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12599     hardcode_libdir_separator_CXX=':'
12600     link_all_deplibs_CXX=yes
12601     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12602     runpath_var='LD_RUN_PATH'
12603
12604     case $cc_basename in
12605       CC*)
12606         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12607         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12608         ;;
12609       *)
12610         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12611         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12612         ;;
12613     esac
12614     ;;
12615   tandem*)
12616     case $cc_basename in
12617       NCC*)
12618         # NonStop-UX NCC 3.20
12619         # FIXME: insert proper C++ library support
12620         ld_shlibs_CXX=no
12621         ;;
12622       *)
12623         # FIXME: insert proper C++ library support
12624         ld_shlibs_CXX=no
12625         ;;
12626     esac
12627     ;;
12628   vxworks*)
12629     # FIXME: insert proper C++ library support
12630     ld_shlibs_CXX=no
12631     ;;
12632   *)
12633     # FIXME: insert proper C++ library support
12634     ld_shlibs_CXX=no
12635     ;;
12636 esac
12637 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12638 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12639 test "$ld_shlibs_CXX" = no && can_build_shared=no
12640
12641 GCC_CXX="$GXX"
12642 LD_CXX="$LD"
12643
12644 ## CAVEAT EMPTOR:
12645 ## There is no encapsulation within the following macros, do not change
12646 ## the running order or otherwise move them around unless you know exactly
12647 ## what you are doing...
12648
12649 cat > conftest.$ac_ext <<EOF
12650 class Foo
12651 {
12652 public:
12653   Foo (void) { a = 0; }
12654 private:
12655   int a;
12656 };
12657 EOF
12658
12659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660   (eval $ac_compile) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); }; then
12664   # Parse the compiler output and extract the necessary
12665   # objects, libraries and library flags.
12666
12667   # Sentinel used to keep track of whether or not we are before
12668   # the conftest object file.
12669   pre_test_object_deps_done=no
12670
12671   # The `*' in the case matches for architectures that use `case' in
12672   # $output_verbose_cmd can trigger glob expansion during the loop
12673   # eval without this substitution.
12674   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12675
12676   for p in `eval $output_verbose_link_cmd`; do
12677     case $p in
12678
12679     -L* | -R* | -l*)
12680        # Some compilers place space between "-{L,R}" and the path.
12681        # Remove the space.
12682        if test $p = "-L" \
12683           || test $p = "-R"; then
12684          prev=$p
12685          continue
12686        else
12687          prev=
12688        fi
12689
12690        if test "$pre_test_object_deps_done" = no; then
12691          case $p in
12692          -L* | -R*)
12693            # Internal compiler library paths should come after those
12694            # provided the user.  The postdeps already come after the
12695            # user supplied libs so there is no need to process them.
12696            if test -z "$compiler_lib_search_path_CXX"; then
12697              compiler_lib_search_path_CXX="${prev}${p}"
12698            else
12699              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12700            fi
12701            ;;
12702          # The "-l" case would never come before the object being
12703          # linked, so don't bother handling this case.
12704          esac
12705        else
12706          if test -z "$postdeps_CXX"; then
12707            postdeps_CXX="${prev}${p}"
12708          else
12709            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12710          fi
12711        fi
12712        ;;
12713
12714     *.$objext)
12715        # This assumes that the test object file only shows up
12716        # once in the compiler output.
12717        if test "$p" = "conftest.$objext"; then
12718          pre_test_object_deps_done=yes
12719          continue
12720        fi
12721
12722        if test "$pre_test_object_deps_done" = no; then
12723          if test -z "$predep_objects_CXX"; then
12724            predep_objects_CXX="$p"
12725          else
12726            predep_objects_CXX="$predep_objects_CXX $p"
12727          fi
12728        else
12729          if test -z "$postdep_objects_CXX"; then
12730            postdep_objects_CXX="$p"
12731          else
12732            postdep_objects_CXX="$postdep_objects_CXX $p"
12733          fi
12734        fi
12735        ;;
12736
12737     *) ;; # Ignore the rest.
12738
12739     esac
12740   done
12741
12742   # Clean up.
12743   rm -f a.out a.exe
12744 else
12745   echo "libtool.m4: error: problem compiling CXX test program"
12746 fi
12747
12748 $rm -f confest.$objext
12749
12750 # PORTME: override above test on systems where it is broken
12751 case $host_os in
12752 interix3*)
12753   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12754   # hack all around it, let's just trust "g++" to DTRT.
12755   predep_objects_CXX=
12756   postdep_objects_CXX=
12757   postdeps_CXX=
12758   ;;
12759
12760 solaris*)
12761   case $cc_basename in
12762   CC*)
12763     # Adding this requires a known-good setup of shared libraries for
12764     # Sun compiler versions before 5.6, else PIC objects from an old
12765     # archive will be linked into the output, leading to subtle bugs.
12766     postdeps_CXX='-lCstd -lCrun'
12767     ;;
12768   esac
12769   ;;
12770 esac
12771
12772
12773 case " $postdeps_CXX " in
12774 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12775 esac
12776
12777 lt_prog_compiler_wl_CXX=
12778 lt_prog_compiler_pic_CXX=
12779 lt_prog_compiler_static_CXX=
12780
12781 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12782 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12783
12784   # C++ specific cases for pic, static, wl, etc.
12785   if test "$GXX" = yes; then
12786     lt_prog_compiler_wl_CXX='-Wl,'
12787     lt_prog_compiler_static_CXX='-static'
12788
12789     case $host_os in
12790     aix*)
12791       # All AIX code is PIC.
12792       if test "$host_cpu" = ia64; then
12793         # AIX 5 now supports IA64 processor
12794         lt_prog_compiler_static_CXX='-Bstatic'
12795       fi
12796       ;;
12797     amigaos*)
12798       # FIXME: we need at least 68020 code to build shared libraries, but
12799       # adding the `-m68020' flag to GCC prevents building anything better,
12800       # like `-m68040'.
12801       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12802       ;;
12803     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12804       # PIC is the default for these OSes.
12805       ;;
12806     mingw* | os2* | pw32*)
12807       # This hack is so that the source file can tell whether it is being
12808       # built for inclusion in a dll (and should export symbols for example).
12809       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12810       ;;
12811     darwin* | rhapsody*)
12812       # PIC is the default on this platform
12813       # Common symbols not allowed in MH_DYLIB files
12814       lt_prog_compiler_pic_CXX='-fno-common'
12815       ;;
12816     *djgpp*)
12817       # DJGPP does not support shared libraries at all
12818       lt_prog_compiler_pic_CXX=
12819       ;;
12820     interix3*)
12821       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12822       # Instead, we relocate shared libraries at runtime.
12823       ;;
12824     sysv4*MP*)
12825       if test -d /usr/nec; then
12826         lt_prog_compiler_pic_CXX=-Kconform_pic
12827       fi
12828       ;;
12829     hpux*)
12830       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12831       # not for PA HP-UX.
12832       case $host_cpu in
12833       hppa*64*|ia64*)
12834         ;;
12835       *)
12836         lt_prog_compiler_pic_CXX='-fPIC'
12837         ;;
12838       esac
12839       ;;
12840     *)
12841       lt_prog_compiler_pic_CXX='-fPIC'
12842       ;;
12843     esac
12844   else
12845     case $host_os in
12846       aix4* | aix5*)
12847         # All AIX code is PIC.
12848         if test "$host_cpu" = ia64; then
12849           # AIX 5 now supports IA64 processor
12850           lt_prog_compiler_static_CXX='-Bstatic'
12851         else
12852           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12853         fi
12854         ;;
12855       chorus*)
12856         case $cc_basename in
12857         cxch68*)
12858           # Green Hills C++ Compiler
12859           # _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"
12860           ;;
12861         esac
12862         ;;
12863        darwin*)
12864          # PIC is the default on this platform
12865          # Common symbols not allowed in MH_DYLIB files
12866          case $cc_basename in
12867            xlc*)
12868            lt_prog_compiler_pic_CXX='-qnocommon'
12869            lt_prog_compiler_wl_CXX='-Wl,'
12870            ;;
12871          esac
12872        ;;
12873       dgux*)
12874         case $cc_basename in
12875           ec++*)
12876             lt_prog_compiler_pic_CXX='-KPIC'
12877             ;;
12878           ghcx*)
12879             # Green Hills C++ Compiler
12880             lt_prog_compiler_pic_CXX='-pic'
12881             ;;
12882           *)
12883             ;;
12884         esac
12885         ;;
12886       freebsd* | kfreebsd*-gnu | dragonfly*)
12887         # FreeBSD uses GNU C++
12888         ;;
12889       hpux9* | hpux10* | hpux11*)
12890         case $cc_basename in
12891           CC*)
12892             lt_prog_compiler_wl_CXX='-Wl,'
12893             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12894             if test "$host_cpu" != ia64; then
12895               lt_prog_compiler_pic_CXX='+Z'
12896             fi
12897             ;;
12898           aCC*)
12899             lt_prog_compiler_wl_CXX='-Wl,'
12900             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12901             case $host_cpu in
12902             hppa*64*|ia64*)
12903               # +Z the default
12904               ;;
12905             *)
12906               lt_prog_compiler_pic_CXX='+Z'
12907               ;;
12908             esac
12909             ;;
12910           *)
12911             ;;
12912         esac
12913         ;;
12914       interix*)
12915         # This is c89, which is MS Visual C++ (no shared libs)
12916         # Anyone wants to do a port?
12917         ;;
12918       irix5* | irix6* | nonstopux*)
12919         case $cc_basename in
12920           CC*)
12921             lt_prog_compiler_wl_CXX='-Wl,'
12922             lt_prog_compiler_static_CXX='-non_shared'
12923             # CC pic flag -KPIC is the default.
12924             ;;
12925           *)
12926             ;;
12927         esac
12928         ;;
12929       linux*)
12930         case $cc_basename in
12931           KCC*)
12932             # KAI C++ Compiler
12933             lt_prog_compiler_wl_CXX='--backend -Wl,'
12934             lt_prog_compiler_pic_CXX='-fPIC'
12935             ;;
12936           icpc* | ecpc*)
12937             # Intel C++
12938             lt_prog_compiler_wl_CXX='-Wl,'
12939             lt_prog_compiler_pic_CXX='-KPIC'
12940             lt_prog_compiler_static_CXX='-static'
12941             ;;
12942           pgCC*)
12943             # Portland Group C++ compiler.
12944             lt_prog_compiler_wl_CXX='-Wl,'
12945             lt_prog_compiler_pic_CXX='-fpic'
12946             lt_prog_compiler_static_CXX='-Bstatic'
12947             ;;
12948           cxx*)
12949             # Compaq C++
12950             # Make sure the PIC flag is empty.  It appears that all Alpha
12951             # Linux and Compaq Tru64 Unix objects are PIC.
12952             lt_prog_compiler_pic_CXX=
12953             lt_prog_compiler_static_CXX='-non_shared'
12954             ;;
12955           *)
12956             ;;
12957         esac
12958         ;;
12959       lynxos*)
12960         ;;
12961       m88k*)
12962         ;;
12963       mvs*)
12964         case $cc_basename in
12965           cxx*)
12966             lt_prog_compiler_pic_CXX='-W c,exportall'
12967             ;;
12968           *)
12969             ;;
12970         esac
12971         ;;
12972       netbsd*)
12973         ;;
12974       osf3* | osf4* | osf5*)
12975         case $cc_basename in
12976           KCC*)
12977             lt_prog_compiler_wl_CXX='--backend -Wl,'
12978             ;;
12979           RCC*)
12980             # Rational C++ 2.4.1
12981             lt_prog_compiler_pic_CXX='-pic'
12982             ;;
12983           cxx*)
12984             # Digital/Compaq C++
12985             lt_prog_compiler_wl_CXX='-Wl,'
12986             # Make sure the PIC flag is empty.  It appears that all Alpha
12987             # Linux and Compaq Tru64 Unix objects are PIC.
12988             lt_prog_compiler_pic_CXX=
12989             lt_prog_compiler_static_CXX='-non_shared'
12990             ;;
12991           *)
12992             ;;
12993         esac
12994         ;;
12995       psos*)
12996         ;;
12997       solaris*)
12998         case $cc_basename in
12999           CC*)
13000             # Sun C++ 4.2, 5.x and Centerline C++
13001             lt_prog_compiler_pic_CXX='-KPIC'
13002             lt_prog_compiler_static_CXX='-Bstatic'
13003             lt_prog_compiler_wl_CXX='-Qoption ld '
13004             ;;
13005           gcx*)
13006             # Green Hills C++ Compiler
13007             lt_prog_compiler_pic_CXX='-PIC'
13008             ;;
13009           *)
13010             ;;
13011         esac
13012         ;;
13013       sunos4*)
13014         case $cc_basename in
13015           CC*)
13016             # Sun C++ 4.x
13017             lt_prog_compiler_pic_CXX='-pic'
13018             lt_prog_compiler_static_CXX='-Bstatic'
13019             ;;
13020           lcc*)
13021             # Lucid
13022             lt_prog_compiler_pic_CXX='-pic'
13023             ;;
13024           *)
13025             ;;
13026         esac
13027         ;;
13028       tandem*)
13029         case $cc_basename in
13030           NCC*)
13031             # NonStop-UX NCC 3.20
13032             lt_prog_compiler_pic_CXX='-KPIC'
13033             ;;
13034           *)
13035             ;;
13036         esac
13037         ;;
13038       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13039         case $cc_basename in
13040           CC*)
13041             lt_prog_compiler_wl_CXX='-Wl,'
13042             lt_prog_compiler_pic_CXX='-KPIC'
13043             lt_prog_compiler_static_CXX='-Bstatic'
13044             ;;
13045         esac
13046         ;;
13047       vxworks*)
13048         ;;
13049       *)
13050         lt_prog_compiler_can_build_shared_CXX=no
13051         ;;
13052     esac
13053   fi
13054
13055 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13056 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13057
13058 #
13059 # Check to make sure the PIC flag actually works.
13060 #
13061 if test -n "$lt_prog_compiler_pic_CXX"; then
13062
13063 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13064 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13065 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   lt_prog_compiler_pic_works_CXX=no
13069   ac_outfile=conftest.$ac_objext
13070    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13071    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13072    # Insert the option either (1) after the last *FLAGS variable, or
13073    # (2) before a word containing "conftest.", or (3) at the end.
13074    # Note that $ac_compile itself does not contain backslashes and begins
13075    # with a dollar sign (not a hyphen), so the echo should work correctly.
13076    # The option is referenced via a variable to avoid confusing sed.
13077    lt_compile=`echo "$ac_compile" | $SED \
13078    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13079    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13080    -e 's:$: $lt_compiler_flag:'`
13081    (eval echo "\"\$as_me:13081: $lt_compile\"" >&5)
13082    (eval "$lt_compile" 2>conftest.err)
13083    ac_status=$?
13084    cat conftest.err >&5
13085    echo "$as_me:13085: \$? = $ac_status" >&5
13086    if (exit $ac_status) && test -s "$ac_outfile"; then
13087      # The compiler can only warn and ignore the option if not recognized
13088      # So say no if there are warnings other than the usual output.
13089      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13090      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13091      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13092        lt_prog_compiler_pic_works_CXX=yes
13093      fi
13094    fi
13095    $rm conftest*
13096
13097 fi
13098 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13099 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13100
13101 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13102     case $lt_prog_compiler_pic_CXX in
13103      "" | " "*) ;;
13104      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13105      esac
13106 else
13107     lt_prog_compiler_pic_CXX=
13108      lt_prog_compiler_can_build_shared_CXX=no
13109 fi
13110
13111 fi
13112 case $host_os in
13113   # For platforms which do not support PIC, -DPIC is meaningless:
13114   *djgpp*)
13115     lt_prog_compiler_pic_CXX=
13116     ;;
13117   *)
13118     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13119     ;;
13120 esac
13121
13122 #
13123 # Check to make sure the static flag actually works.
13124 #
13125 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13126 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13127 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13128 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13129   echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131   lt_prog_compiler_static_works_CXX=no
13132    save_LDFLAGS="$LDFLAGS"
13133    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13134    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13135    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13136      # The linker can only warn and ignore the option if not recognized
13137      # So say no if there are warnings
13138      if test -s conftest.err; then
13139        # Append any errors to the config.log.
13140        cat conftest.err 1>&5
13141        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13142        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13143        if diff conftest.exp conftest.er2 >/dev/null; then
13144          lt_prog_compiler_static_works_CXX=yes
13145        fi
13146      else
13147        lt_prog_compiler_static_works_CXX=yes
13148      fi
13149    fi
13150    $rm conftest*
13151    LDFLAGS="$save_LDFLAGS"
13152
13153 fi
13154 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13155 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13156
13157 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13158     :
13159 else
13160     lt_prog_compiler_static_CXX=
13161 fi
13162
13163
13164 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13165 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13166 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   lt_cv_prog_compiler_c_o_CXX=no
13170    $rm -r conftest 2>/dev/null
13171    mkdir conftest
13172    cd conftest
13173    mkdir out
13174    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13175
13176    lt_compiler_flag="-o out/conftest2.$ac_objext"
13177    # Insert the option either (1) after the last *FLAGS variable, or
13178    # (2) before a word containing "conftest.", or (3) at the end.
13179    # Note that $ac_compile itself does not contain backslashes and begins
13180    # with a dollar sign (not a hyphen), so the echo should work correctly.
13181    lt_compile=`echo "$ac_compile" | $SED \
13182    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13183    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13184    -e 's:$: $lt_compiler_flag:'`
13185    (eval echo "\"\$as_me:13185: $lt_compile\"" >&5)
13186    (eval "$lt_compile" 2>out/conftest.err)
13187    ac_status=$?
13188    cat out/conftest.err >&5
13189    echo "$as_me:13189: \$? = $ac_status" >&5
13190    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13191    then
13192      # The compiler can only warn and ignore the option if not recognized
13193      # So say no if there are warnings
13194      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13195      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13196      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13197        lt_cv_prog_compiler_c_o_CXX=yes
13198      fi
13199    fi
13200    chmod u+w . 2>&5
13201    $rm conftest*
13202    # SGI C++ compiler will create directory out/ii_files/ for
13203    # template instantiation
13204    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13205    $rm out/* && rmdir out
13206    cd ..
13207    rmdir conftest
13208    $rm conftest*
13209
13210 fi
13211 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13212 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13213
13214
13215 hard_links="nottested"
13216 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13217   # do not overwrite the value of need_locks provided by the user
13218   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13219 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13220   hard_links=yes
13221   $rm conftest*
13222   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13223   touch conftest.a
13224   ln conftest.a conftest.b 2>&5 || hard_links=no
13225   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13226   { echo "$as_me:$LINENO: result: $hard_links" >&5
13227 echo "${ECHO_T}$hard_links" >&6; }
13228   if test "$hard_links" = no; then
13229     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13230 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13231     need_locks=warn
13232   fi
13233 else
13234   need_locks=no
13235 fi
13236
13237 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13238 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13239
13240   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13241   case $host_os in
13242   aix4* | aix5*)
13243     # If we're using GNU nm, then we don't want the "-C" option.
13244     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13245     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13246       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'
13247     else
13248       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'
13249     fi
13250     ;;
13251   pw32*)
13252     export_symbols_cmds_CXX="$ltdll_cmds"
13253   ;;
13254   cygwin* | mingw*)
13255     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'
13256   ;;
13257   *)
13258     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13259   ;;
13260   esac
13261
13262 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13263 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13264 test "$ld_shlibs_CXX" = no && can_build_shared=no
13265
13266 #
13267 # Do we need to explicitly link libc?
13268 #
13269 case "x$archive_cmds_need_lc_CXX" in
13270 x|xyes)
13271   # Assume -lc should be added
13272   archive_cmds_need_lc_CXX=yes
13273
13274   if test "$enable_shared" = yes && test "$GCC" = yes; then
13275     case $archive_cmds_CXX in
13276     *'~'*)
13277       # FIXME: we may have to deal with multi-command sequences.
13278       ;;
13279     '$CC '*)
13280       # Test whether the compiler implicitly links with -lc since on some
13281       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13282       # to ld, don't add -lc before -lgcc.
13283       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13284 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13285       $rm conftest*
13286       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13287
13288       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13289   (eval $ac_compile) 2>&5
13290   ac_status=$?
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); } 2>conftest.err; then
13293         soname=conftest
13294         lib=conftest
13295         libobjs=conftest.$ac_objext
13296         deplibs=
13297         wl=$lt_prog_compiler_wl_CXX
13298         pic_flag=$lt_prog_compiler_pic_CXX
13299         compiler_flags=-v
13300         linker_flags=-v
13301         verstring=
13302         output_objdir=.
13303         libname=conftest
13304         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13305         allow_undefined_flag_CXX=
13306         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13307   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13308   ac_status=$?
13309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310   (exit $ac_status); }
13311         then
13312           archive_cmds_need_lc_CXX=no
13313         else
13314           archive_cmds_need_lc_CXX=yes
13315         fi
13316         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13317       else
13318         cat conftest.err 1>&5
13319       fi
13320       $rm conftest*
13321       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13322 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13323       ;;
13324     esac
13325   fi
13326   ;;
13327 esac
13328
13329 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13330 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13331 library_names_spec=
13332 libname_spec='lib$name'
13333 soname_spec=
13334 shrext_cmds=".so"
13335 postinstall_cmds=
13336 postuninstall_cmds=
13337 finish_cmds=
13338 finish_eval=
13339 shlibpath_var=
13340 shlibpath_overrides_runpath=unknown
13341 version_type=none
13342 dynamic_linker="$host_os ld.so"
13343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13344 if test "$GCC" = yes; then
13345   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13346   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13347     # if the path contains ";" then we assume it to be the separator
13348     # otherwise default to the standard path separator (i.e. ":") - it is
13349     # assumed that no part of a normal pathname contains ";" but that should
13350     # okay in the real world where ";" in dirpaths is itself problematic.
13351     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13352   else
13353     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13354   fi
13355 else
13356   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13357 fi
13358 need_lib_prefix=unknown
13359 hardcode_into_libs=no
13360
13361 # when you set need_version to no, make sure it does not cause -set_version
13362 # flags to be left without arguments
13363 need_version=unknown
13364
13365 case $host_os in
13366 aix3*)
13367   version_type=linux
13368   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13369   shlibpath_var=LIBPATH
13370
13371   # AIX 3 has no versioning support, so we append a major version to the name.
13372   soname_spec='${libname}${release}${shared_ext}$major'
13373   ;;
13374
13375 aix4* | aix5*)
13376   version_type=linux
13377   need_lib_prefix=no
13378   need_version=no
13379   hardcode_into_libs=yes
13380   if test "$host_cpu" = ia64; then
13381     # AIX 5 supports IA64
13382     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13383     shlibpath_var=LD_LIBRARY_PATH
13384   else
13385     # With GCC up to 2.95.x, collect2 would create an import file
13386     # for dependence libraries.  The import file would start with
13387     # the line `#! .'.  This would cause the generated library to
13388     # depend on `.', always an invalid library.  This was fixed in
13389     # development snapshots of GCC prior to 3.0.
13390     case $host_os in
13391       aix4 | aix4.[01] | aix4.[01].*)
13392       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13393            echo ' yes '
13394            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13395         :
13396       else
13397         can_build_shared=no
13398       fi
13399       ;;
13400     esac
13401     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13402     # soname into executable. Probably we can add versioning support to
13403     # collect2, so additional links can be useful in future.
13404     if test "$aix_use_runtimelinking" = yes; then
13405       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13406       # instead of lib<name>.a to let people know that these are not
13407       # typical AIX shared libraries.
13408       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13409     else
13410       # We preserve .a as extension for shared libraries through AIX4.2
13411       # and later when we are not doing run time linking.
13412       library_names_spec='${libname}${release}.a $libname.a'
13413       soname_spec='${libname}${release}${shared_ext}$major'
13414     fi
13415     shlibpath_var=LIBPATH
13416   fi
13417   ;;
13418
13419 amigaos*)
13420   library_names_spec='$libname.ixlibrary $libname.a'
13421   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13422   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'
13423   ;;
13424
13425 beos*)
13426   library_names_spec='${libname}${shared_ext}'
13427   dynamic_linker="$host_os ld.so"
13428   shlibpath_var=LIBRARY_PATH
13429   ;;
13430
13431 bsdi[45]*)
13432   version_type=linux
13433   need_version=no
13434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435   soname_spec='${libname}${release}${shared_ext}$major'
13436   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13437   shlibpath_var=LD_LIBRARY_PATH
13438   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13439   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13440   # the default ld.so.conf also contains /usr/contrib/lib and
13441   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13442   # libtool to hard-code these into programs
13443   ;;
13444
13445 cygwin* | mingw* | pw32*)
13446   version_type=windows
13447   shrext_cmds=".dll"
13448   need_version=no
13449   need_lib_prefix=no
13450
13451   case $GCC,$host_os in
13452   yes,cygwin* | yes,mingw* | yes,pw32*)
13453     library_names_spec='$libname.dll.a'
13454     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13455     postinstall_cmds='base_file=`basename \${file}`~
13456       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13457       dldir=$destdir/`dirname \$dlpath`~
13458       test -d \$dldir || mkdir -p \$dldir~
13459       $install_prog $dir/$dlname \$dldir/$dlname~
13460       chmod a+x \$dldir/$dlname'
13461     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13462       dlpath=$dir/\$dldll~
13463        $rm \$dlpath'
13464     shlibpath_overrides_runpath=yes
13465
13466     case $host_os in
13467     cygwin*)
13468       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13469       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13470       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13471       ;;
13472     mingw*)
13473       # MinGW DLLs use traditional 'lib' prefix
13474       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13475       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13476       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13477         # It is most probably a Windows format PATH printed by
13478         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13479         # path with ; separators, and with drive letters. We can handle the
13480         # drive letters (cygwin fileutils understands them), so leave them,
13481         # especially as we might pass files found there to a mingw objdump,
13482         # which wouldn't understand a cygwinified path. Ahh.
13483         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13484       else
13485         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13486       fi
13487       ;;
13488     pw32*)
13489       # pw32 DLLs use 'pw' prefix rather than 'lib'
13490       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13491       ;;
13492     esac
13493     ;;
13494
13495   *)
13496     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13497     ;;
13498   esac
13499   dynamic_linker='Win32 ld.exe'
13500   # FIXME: first we should search . and the directory the executable is in
13501   shlibpath_var=PATH
13502   ;;
13503
13504 darwin* | rhapsody*)
13505   dynamic_linker="$host_os dyld"
13506   version_type=darwin
13507   need_lib_prefix=no
13508   need_version=no
13509   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13510   soname_spec='${libname}${release}${major}$shared_ext'
13511   shlibpath_overrides_runpath=yes
13512   shlibpath_var=DYLD_LIBRARY_PATH
13513   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13514   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13515   if test "$GCC" = yes; then
13516     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"`
13517   else
13518     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13519   fi
13520   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13521   ;;
13522
13523 dgux*)
13524   version_type=linux
13525   need_lib_prefix=no
13526   need_version=no
13527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13528   soname_spec='${libname}${release}${shared_ext}$major'
13529   shlibpath_var=LD_LIBRARY_PATH
13530   ;;
13531
13532 freebsd1*)
13533   dynamic_linker=no
13534   ;;
13535
13536 kfreebsd*-gnu)
13537   version_type=linux
13538   need_lib_prefix=no
13539   need_version=no
13540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13541   soname_spec='${libname}${release}${shared_ext}$major'
13542   shlibpath_var=LD_LIBRARY_PATH
13543   shlibpath_overrides_runpath=no
13544   hardcode_into_libs=yes
13545   dynamic_linker='GNU ld.so'
13546   ;;
13547
13548 freebsd* | dragonfly*)
13549   # DragonFly does not have aout.  When/if they implement a new
13550   # versioning mechanism, adjust this.
13551   if test -x /usr/bin/objformat; then
13552     objformat=`/usr/bin/objformat`
13553   else
13554     case $host_os in
13555     freebsd[123]*) objformat=aout ;;
13556     *) objformat=elf ;;
13557     esac
13558   fi
13559   version_type=freebsd-$objformat
13560   case $version_type in
13561     freebsd-elf*)
13562       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13563       need_version=no
13564       need_lib_prefix=no
13565       ;;
13566     freebsd-*)
13567       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13568       need_version=yes
13569       ;;
13570   esac
13571   shlibpath_var=LD_LIBRARY_PATH
13572   case $host_os in
13573   freebsd2*)
13574     shlibpath_overrides_runpath=yes
13575     ;;
13576   freebsd3.[01]* | freebsdelf3.[01]*)
13577     shlibpath_overrides_runpath=yes
13578     hardcode_into_libs=yes
13579     ;;
13580   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13581   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13582     shlibpath_overrides_runpath=no
13583     hardcode_into_libs=yes
13584     ;;
13585   freebsd*) # from 4.6 on
13586     shlibpath_overrides_runpath=yes
13587     hardcode_into_libs=yes
13588     ;;
13589   esac
13590   ;;
13591
13592 gnu*)
13593   version_type=linux
13594   need_lib_prefix=no
13595   need_version=no
13596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13597   soname_spec='${libname}${release}${shared_ext}$major'
13598   shlibpath_var=LD_LIBRARY_PATH
13599   hardcode_into_libs=yes
13600   ;;
13601
13602 hpux9* | hpux10* | hpux11*)
13603   # Give a soname corresponding to the major version so that dld.sl refuses to
13604   # link against other versions.
13605   version_type=sunos
13606   need_lib_prefix=no
13607   need_version=no
13608   case $host_cpu in
13609   ia64*)
13610     shrext_cmds='.so'
13611     hardcode_into_libs=yes
13612     dynamic_linker="$host_os dld.so"
13613     shlibpath_var=LD_LIBRARY_PATH
13614     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13616     soname_spec='${libname}${release}${shared_ext}$major'
13617     if test "X$HPUX_IA64_MODE" = X32; then
13618       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13619     else
13620       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13621     fi
13622     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13623     ;;
13624    hppa*64*)
13625      shrext_cmds='.sl'
13626      hardcode_into_libs=yes
13627      dynamic_linker="$host_os dld.sl"
13628      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13629      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13630      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13631      soname_spec='${libname}${release}${shared_ext}$major'
13632      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13633      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13634      ;;
13635    *)
13636     shrext_cmds='.sl'
13637     dynamic_linker="$host_os dld.sl"
13638     shlibpath_var=SHLIB_PATH
13639     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13640     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13641     soname_spec='${libname}${release}${shared_ext}$major'
13642     ;;
13643   esac
13644   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13645   postinstall_cmds='chmod 555 $lib'
13646   ;;
13647
13648 interix3*)
13649   version_type=linux
13650   need_lib_prefix=no
13651   need_version=no
13652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13653   soname_spec='${libname}${release}${shared_ext}$major'
13654   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13655   shlibpath_var=LD_LIBRARY_PATH
13656   shlibpath_overrides_runpath=no
13657   hardcode_into_libs=yes
13658   ;;
13659
13660 irix5* | irix6* | nonstopux*)
13661   case $host_os in
13662     nonstopux*) version_type=nonstopux ;;
13663     *)
13664         if test "$lt_cv_prog_gnu_ld" = yes; then
13665                 version_type=linux
13666         else
13667                 version_type=irix
13668         fi ;;
13669   esac
13670   need_lib_prefix=no
13671   need_version=no
13672   soname_spec='${libname}${release}${shared_ext}$major'
13673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13674   case $host_os in
13675   irix5* | nonstopux*)
13676     libsuff= shlibsuff=
13677     ;;
13678   *)
13679     case $LD in # libtool.m4 will add one of these switches to LD
13680     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13681       libsuff= shlibsuff= libmagic=32-bit;;
13682     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13683       libsuff=32 shlibsuff=N32 libmagic=N32;;
13684     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13685       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13686     *) libsuff= shlibsuff= libmagic=never-match;;
13687     esac
13688     ;;
13689   esac
13690   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13691   shlibpath_overrides_runpath=no
13692   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13693   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13694   hardcode_into_libs=yes
13695   ;;
13696
13697 # No shared lib support for Linux oldld, aout, or coff.
13698 linux*oldld* | linux*aout* | linux*coff*)
13699   dynamic_linker=no
13700   ;;
13701
13702 # This must be Linux ELF.
13703 linux*)
13704   version_type=linux
13705   need_lib_prefix=no
13706   need_version=no
13707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13708   soname_spec='${libname}${release}${shared_ext}$major'
13709   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13710   shlibpath_var=LD_LIBRARY_PATH
13711   shlibpath_overrides_runpath=no
13712   # This implies no fast_install, which is unacceptable.
13713   # Some rework will be needed to allow for fast_install
13714   # before this can be enabled.
13715   hardcode_into_libs=yes
13716
13717   # Append ld.so.conf contents to the search path
13718   if test -f /etc/ld.so.conf; then
13719     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' ' '`
13720     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13721   fi
13722
13723   # We used to test for /lib/ld.so.1 and disable shared libraries on
13724   # powerpc, because MkLinux only supported shared libraries with the
13725   # GNU dynamic linker.  Since this was broken with cross compilers,
13726   # most powerpc-linux boxes support dynamic linking these days and
13727   # people can always --disable-shared, the test was removed, and we
13728   # assume the GNU/Linux dynamic linker is in use.
13729   dynamic_linker='GNU/Linux ld.so'
13730   ;;
13731
13732 knetbsd*-gnu)
13733   version_type=linux
13734   need_lib_prefix=no
13735   need_version=no
13736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13737   soname_spec='${libname}${release}${shared_ext}$major'
13738   shlibpath_var=LD_LIBRARY_PATH
13739   shlibpath_overrides_runpath=no
13740   hardcode_into_libs=yes
13741   dynamic_linker='GNU ld.so'
13742   ;;
13743
13744 netbsd*)
13745   version_type=sunos
13746   need_lib_prefix=no
13747   need_version=no
13748   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13750     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13751     dynamic_linker='NetBSD (a.out) ld.so'
13752   else
13753     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13754     soname_spec='${libname}${release}${shared_ext}$major'
13755     dynamic_linker='NetBSD ld.elf_so'
13756   fi
13757   shlibpath_var=LD_LIBRARY_PATH
13758   shlibpath_overrides_runpath=yes
13759   hardcode_into_libs=yes
13760   ;;
13761
13762 newsos6)
13763   version_type=linux
13764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765   shlibpath_var=LD_LIBRARY_PATH
13766   shlibpath_overrides_runpath=yes
13767   ;;
13768
13769 nto-qnx*)
13770   version_type=linux
13771   need_lib_prefix=no
13772   need_version=no
13773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13774   soname_spec='${libname}${release}${shared_ext}$major'
13775   shlibpath_var=LD_LIBRARY_PATH
13776   shlibpath_overrides_runpath=yes
13777   ;;
13778
13779 openbsd*)
13780   version_type=sunos
13781   sys_lib_dlsearch_path_spec="/usr/lib"
13782   need_lib_prefix=no
13783   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13784   case $host_os in
13785     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13786     *)                         need_version=no  ;;
13787   esac
13788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13789   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13790   shlibpath_var=LD_LIBRARY_PATH
13791   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13792     case $host_os in
13793       openbsd2.[89] | openbsd2.[89].*)
13794         shlibpath_overrides_runpath=no
13795         ;;
13796       *)
13797         shlibpath_overrides_runpath=yes
13798         ;;
13799       esac
13800   else
13801     shlibpath_overrides_runpath=yes
13802   fi
13803   ;;
13804
13805 os2*)
13806   libname_spec='$name'
13807   shrext_cmds=".dll"
13808   need_lib_prefix=no
13809   library_names_spec='$libname${shared_ext} $libname.a'
13810   dynamic_linker='OS/2 ld.exe'
13811   shlibpath_var=LIBPATH
13812   ;;
13813
13814 osf3* | osf4* | osf5*)
13815   version_type=osf
13816   need_lib_prefix=no
13817   need_version=no
13818   soname_spec='${libname}${release}${shared_ext}$major'
13819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13820   shlibpath_var=LD_LIBRARY_PATH
13821   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13822   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13823   ;;
13824
13825 solaris*)
13826   version_type=linux
13827   need_lib_prefix=no
13828   need_version=no
13829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13830   soname_spec='${libname}${release}${shared_ext}$major'
13831   shlibpath_var=LD_LIBRARY_PATH
13832   shlibpath_overrides_runpath=yes
13833   hardcode_into_libs=yes
13834   # ldd complains unless libraries are executable
13835   postinstall_cmds='chmod +x $lib'
13836   ;;
13837
13838 sunos4*)
13839   version_type=sunos
13840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13841   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13842   shlibpath_var=LD_LIBRARY_PATH
13843   shlibpath_overrides_runpath=yes
13844   if test "$with_gnu_ld" = yes; then
13845     need_lib_prefix=no
13846   fi
13847   need_version=yes
13848   ;;
13849
13850 sysv4 | sysv4.3*)
13851   version_type=linux
13852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13853   soname_spec='${libname}${release}${shared_ext}$major'
13854   shlibpath_var=LD_LIBRARY_PATH
13855   case $host_vendor in
13856     sni)
13857       shlibpath_overrides_runpath=no
13858       need_lib_prefix=no
13859       export_dynamic_flag_spec='${wl}-Blargedynsym'
13860       runpath_var=LD_RUN_PATH
13861       ;;
13862     siemens)
13863       need_lib_prefix=no
13864       ;;
13865     motorola)
13866       need_lib_prefix=no
13867       need_version=no
13868       shlibpath_overrides_runpath=no
13869       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13870       ;;
13871   esac
13872   ;;
13873
13874 sysv4*MP*)
13875   if test -d /usr/nec ;then
13876     version_type=linux
13877     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13878     soname_spec='$libname${shared_ext}.$major'
13879     shlibpath_var=LD_LIBRARY_PATH
13880   fi
13881   ;;
13882
13883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13884   version_type=freebsd-elf
13885   need_lib_prefix=no
13886   need_version=no
13887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13888   soname_spec='${libname}${release}${shared_ext}$major'
13889   shlibpath_var=LD_LIBRARY_PATH
13890   hardcode_into_libs=yes
13891   if test "$with_gnu_ld" = yes; then
13892     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13893     shlibpath_overrides_runpath=no
13894   else
13895     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13896     shlibpath_overrides_runpath=yes
13897     case $host_os in
13898       sco3.2v5*)
13899         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13900         ;;
13901     esac
13902   fi
13903   sys_lib_dlsearch_path_spec='/usr/lib'
13904   ;;
13905
13906 uts4*)
13907   version_type=linux
13908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909   soname_spec='${libname}${release}${shared_ext}$major'
13910   shlibpath_var=LD_LIBRARY_PATH
13911   ;;
13912
13913 *)
13914   dynamic_linker=no
13915   ;;
13916 esac
13917 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13918 echo "${ECHO_T}$dynamic_linker" >&6; }
13919 test "$dynamic_linker" = no && can_build_shared=no
13920
13921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13922 if test "$GCC" = yes; then
13923   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13924 fi
13925
13926 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13927 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13928 hardcode_action_CXX=
13929 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13930    test -n "$runpath_var_CXX" || \
13931    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13932
13933   # We can hardcode non-existant directories.
13934   if test "$hardcode_direct_CXX" != no &&
13935      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13936      # have to relink, otherwise we might link with an installed library
13937      # when we should be linking with a yet-to-be-installed one
13938      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13939      test "$hardcode_minus_L_CXX" != no; then
13940     # Linking always hardcodes the temporary library directory.
13941     hardcode_action_CXX=relink
13942   else
13943     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13944     hardcode_action_CXX=immediate
13945   fi
13946 else
13947   # We cannot hardcode anything, or else we can only hardcode existing
13948   # directories.
13949   hardcode_action_CXX=unsupported
13950 fi
13951 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13952 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13953
13954 if test "$hardcode_action_CXX" = relink; then
13955   # Fast installation is not supported
13956   enable_fast_install=no
13957 elif test "$shlibpath_overrides_runpath" = yes ||
13958      test "$enable_shared" = no; then
13959   # Fast installation is not necessary
13960   enable_fast_install=needless
13961 fi
13962
13963
13964 # The else clause should only fire when bootstrapping the
13965 # libtool distribution, otherwise you forgot to ship ltmain.sh
13966 # with your package, and you will get complaints that there are
13967 # no rules to generate ltmain.sh.
13968 if test -f "$ltmain"; then
13969   # See if we are running on zsh, and set the options which allow our commands through
13970   # without removal of \ escapes.
13971   if test -n "${ZSH_VERSION+set}" ; then
13972     setopt NO_GLOB_SUBST
13973   fi
13974   # Now quote all the things that may contain metacharacters while being
13975   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13976   # variables and quote the copies for generation of the libtool script.
13977   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13978     SED SHELL STRIP \
13979     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13980     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13981     deplibs_check_method reload_flag reload_cmds need_locks \
13982     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13983     lt_cv_sys_global_symbol_to_c_name_address \
13984     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13985     old_postinstall_cmds old_postuninstall_cmds \
13986     compiler_CXX \
13987     CC_CXX \
13988     LD_CXX \
13989     lt_prog_compiler_wl_CXX \
13990     lt_prog_compiler_pic_CXX \
13991     lt_prog_compiler_static_CXX \
13992     lt_prog_compiler_no_builtin_flag_CXX \
13993     export_dynamic_flag_spec_CXX \
13994     thread_safe_flag_spec_CXX \
13995     whole_archive_flag_spec_CXX \
13996     enable_shared_with_static_runtimes_CXX \
13997     old_archive_cmds_CXX \
13998     old_archive_from_new_cmds_CXX \
13999     predep_objects_CXX \
14000     postdep_objects_CXX \
14001     predeps_CXX \
14002     postdeps_CXX \
14003     compiler_lib_search_path_CXX \
14004     archive_cmds_CXX \
14005     archive_expsym_cmds_CXX \
14006     postinstall_cmds_CXX \
14007     postuninstall_cmds_CXX \
14008     old_archive_from_expsyms_cmds_CXX \
14009     allow_undefined_flag_CXX \
14010     no_undefined_flag_CXX \
14011     export_symbols_cmds_CXX \
14012     hardcode_libdir_flag_spec_CXX \
14013     hardcode_libdir_flag_spec_ld_CXX \
14014     hardcode_libdir_separator_CXX \
14015     hardcode_automatic_CXX \
14016     module_cmds_CXX \
14017     module_expsym_cmds_CXX \
14018     lt_cv_prog_compiler_c_o_CXX \
14019     exclude_expsyms_CXX \
14020     include_expsyms_CXX; do
14021
14022     case $var in
14023     old_archive_cmds_CXX | \
14024     old_archive_from_new_cmds_CXX | \
14025     archive_cmds_CXX | \
14026     archive_expsym_cmds_CXX | \
14027     module_cmds_CXX | \
14028     module_expsym_cmds_CXX | \
14029     old_archive_from_expsyms_cmds_CXX | \
14030     export_symbols_cmds_CXX | \
14031     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14032     postinstall_cmds | postuninstall_cmds | \
14033     old_postinstall_cmds | old_postuninstall_cmds | \
14034     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14035       # Double-quote double-evaled strings.
14036       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14037       ;;
14038     *)
14039       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14040       ;;
14041     esac
14042   done
14043
14044   case $lt_echo in
14045   *'\$0 --fallback-echo"')
14046     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14047     ;;
14048   esac
14049
14050 cfgfile="$ofile"
14051
14052   cat <<__EOF__ >> "$cfgfile"
14053 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14054
14055 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14056
14057 # Shell to use when invoking shell scripts.
14058 SHELL=$lt_SHELL
14059
14060 # Whether or not to build shared libraries.
14061 build_libtool_libs=$enable_shared
14062
14063 # Whether or not to build static libraries.
14064 build_old_libs=$enable_static
14065
14066 # Whether or not to add -lc for building shared libraries.
14067 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14068
14069 # Whether or not to disallow shared libs when runtime libs are static
14070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14071
14072 # Whether or not to optimize for fast installation.
14073 fast_install=$enable_fast_install
14074
14075 # The host system.
14076 host_alias=$host_alias
14077 host=$host
14078 host_os=$host_os
14079
14080 # The build system.
14081 build_alias=$build_alias
14082 build=$build
14083 build_os=$build_os
14084
14085 # An echo program that does not interpret backslashes.
14086 echo=$lt_echo
14087
14088 # The archiver.
14089 AR=$lt_AR
14090 AR_FLAGS=$lt_AR_FLAGS
14091
14092 # A C compiler.
14093 LTCC=$lt_LTCC
14094
14095 # LTCC compiler flags.
14096 LTCFLAGS=$lt_LTCFLAGS
14097
14098 # A language-specific compiler.
14099 CC=$lt_compiler_CXX
14100
14101 # Is the compiler the GNU C compiler?
14102 with_gcc=$GCC_CXX
14103
14104 # An ERE matcher.
14105 EGREP=$lt_EGREP
14106
14107 # The linker used to build libraries.
14108 LD=$lt_LD_CXX
14109
14110 # Whether we need hard or soft links.
14111 LN_S=$lt_LN_S
14112
14113 # A BSD-compatible nm program.
14114 NM=$lt_NM
14115
14116 # A symbol stripping program
14117 STRIP=$lt_STRIP
14118
14119 # Used to examine libraries when file_magic_cmd begins "file"
14120 MAGIC_CMD=$MAGIC_CMD
14121
14122 # Used on cygwin: DLL creation program.
14123 DLLTOOL="$DLLTOOL"
14124
14125 # Used on cygwin: object dumper.
14126 OBJDUMP="$OBJDUMP"
14127
14128 # Used on cygwin: assembler.
14129 AS="$AS"
14130
14131 # The name of the directory that contains temporary libtool files.
14132 objdir=$objdir
14133
14134 # How to create reloadable object files.
14135 reload_flag=$lt_reload_flag
14136 reload_cmds=$lt_reload_cmds
14137
14138 # How to pass a linker flag through the compiler.
14139 wl=$lt_lt_prog_compiler_wl_CXX
14140
14141 # Object file suffix (normally "o").
14142 objext="$ac_objext"
14143
14144 # Old archive suffix (normally "a").
14145 libext="$libext"
14146
14147 # Shared library suffix (normally ".so").
14148 shrext_cmds='$shrext_cmds'
14149
14150 # Executable file suffix (normally "").
14151 exeext="$exeext"
14152
14153 # Additional compiler flags for building library objects.
14154 pic_flag=$lt_lt_prog_compiler_pic_CXX
14155 pic_mode=$pic_mode
14156
14157 # What is the maximum length of a command?
14158 max_cmd_len=$lt_cv_sys_max_cmd_len
14159
14160 # Does compiler simultaneously support -c and -o options?
14161 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14162
14163 # Must we lock files when doing compilation?
14164 need_locks=$lt_need_locks
14165
14166 # Do we need the lib prefix for modules?
14167 need_lib_prefix=$need_lib_prefix
14168
14169 # Do we need a version for libraries?
14170 need_version=$need_version
14171
14172 # Whether dlopen is supported.
14173 dlopen_support=$enable_dlopen
14174
14175 # Whether dlopen of programs is supported.
14176 dlopen_self=$enable_dlopen_self
14177
14178 # Whether dlopen of statically linked programs is supported.
14179 dlopen_self_static=$enable_dlopen_self_static
14180
14181 # Compiler flag to prevent dynamic linking.
14182 link_static_flag=$lt_lt_prog_compiler_static_CXX
14183
14184 # Compiler flag to turn off builtin functions.
14185 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14186
14187 # Compiler flag to allow reflexive dlopens.
14188 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14189
14190 # Compiler flag to generate shared objects directly from archives.
14191 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14192
14193 # Compiler flag to generate thread-safe objects.
14194 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14195
14196 # Library versioning type.
14197 version_type=$version_type
14198
14199 # Format of library name prefix.
14200 libname_spec=$lt_libname_spec
14201
14202 # List of archive names.  First name is the real one, the rest are links.
14203 # The last name is the one that the linker finds with -lNAME.
14204 library_names_spec=$lt_library_names_spec
14205
14206 # The coded name of the library, if different from the real name.
14207 soname_spec=$lt_soname_spec
14208
14209 # Commands used to build and install an old-style archive.
14210 RANLIB=$lt_RANLIB
14211 old_archive_cmds=$lt_old_archive_cmds_CXX
14212 old_postinstall_cmds=$lt_old_postinstall_cmds
14213 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14214
14215 # Create an old-style archive from a shared archive.
14216 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14217
14218 # Create a temporary old-style archive to link instead of a shared archive.
14219 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14220
14221 # Commands used to build and install a shared archive.
14222 archive_cmds=$lt_archive_cmds_CXX
14223 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14224 postinstall_cmds=$lt_postinstall_cmds
14225 postuninstall_cmds=$lt_postuninstall_cmds
14226
14227 # Commands used to build a loadable module (assumed same as above if empty)
14228 module_cmds=$lt_module_cmds_CXX
14229 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14230
14231 # Commands to strip libraries.
14232 old_striplib=$lt_old_striplib
14233 striplib=$lt_striplib
14234
14235 # Dependencies to place before the objects being linked to create a
14236 # shared library.
14237 predep_objects=$lt_predep_objects_CXX
14238
14239 # Dependencies to place after the objects being linked to create a
14240 # shared library.
14241 postdep_objects=$lt_postdep_objects_CXX
14242
14243 # Dependencies to place before the objects being linked to create a
14244 # shared library.
14245 predeps=$lt_predeps_CXX
14246
14247 # Dependencies to place after the objects being linked to create a
14248 # shared library.
14249 postdeps=$lt_postdeps_CXX
14250
14251 # The library search path used internally by the compiler when linking
14252 # a shared library.
14253 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14254
14255 # Method to check whether dependent libraries are shared objects.
14256 deplibs_check_method=$lt_deplibs_check_method
14257
14258 # Command to use when deplibs_check_method == file_magic.
14259 file_magic_cmd=$lt_file_magic_cmd
14260
14261 # Flag that allows shared libraries with undefined symbols to be built.
14262 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14263
14264 # Flag that forces no undefined symbols.
14265 no_undefined_flag=$lt_no_undefined_flag_CXX
14266
14267 # Commands used to finish a libtool library installation in a directory.
14268 finish_cmds=$lt_finish_cmds
14269
14270 # Same as above, but a single script fragment to be evaled but not shown.
14271 finish_eval=$lt_finish_eval
14272
14273 # Take the output of nm and produce a listing of raw symbols and C names.
14274 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14275
14276 # Transform the output of nm in a proper C declaration
14277 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14278
14279 # Transform the output of nm in a C name address pair
14280 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14281
14282 # This is the shared library runtime path variable.
14283 runpath_var=$runpath_var
14284
14285 # This is the shared library path variable.
14286 shlibpath_var=$shlibpath_var
14287
14288 # Is shlibpath searched before the hard-coded library search path?
14289 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14290
14291 # How to hardcode a shared library path into an executable.
14292 hardcode_action=$hardcode_action_CXX
14293
14294 # Whether we should hardcode library paths into libraries.
14295 hardcode_into_libs=$hardcode_into_libs
14296
14297 # Flag to hardcode \$libdir into a binary during linking.
14298 # This must work even if \$libdir does not exist.
14299 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14300
14301 # If ld is used when linking, flag to hardcode \$libdir into
14302 # a binary during linking. This must work even if \$libdir does
14303 # not exist.
14304 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14305
14306 # Whether we need a single -rpath flag with a separated argument.
14307 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14308
14309 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14310 # resulting binary.
14311 hardcode_direct=$hardcode_direct_CXX
14312
14313 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14314 # resulting binary.
14315 hardcode_minus_L=$hardcode_minus_L_CXX
14316
14317 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14318 # the resulting binary.
14319 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14320
14321 # Set to yes if building a shared library automatically hardcodes DIR into the library
14322 # and all subsequent libraries and executables linked against it.
14323 hardcode_automatic=$hardcode_automatic_CXX
14324
14325 # Variables whose values should be saved in libtool wrapper scripts and
14326 # restored at relink time.
14327 variables_saved_for_relink="$variables_saved_for_relink"
14328
14329 # Whether libtool must link a program against all its dependency libraries.
14330 link_all_deplibs=$link_all_deplibs_CXX
14331
14332 # Compile-time system search path for libraries
14333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14334
14335 # Run-time system search path for libraries
14336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14337
14338 # Fix the shell variable \$srcfile for the compiler.
14339 fix_srcfile_path="$fix_srcfile_path_CXX"
14340
14341 # Set to yes if exported symbols are required.
14342 always_export_symbols=$always_export_symbols_CXX
14343
14344 # The commands to list exported symbols.
14345 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14346
14347 # The commands to extract the exported symbol list from a shared archive.
14348 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14349
14350 # Symbols that should not be listed in the preloaded symbols.
14351 exclude_expsyms=$lt_exclude_expsyms_CXX
14352
14353 # Symbols that must always be exported.
14354 include_expsyms=$lt_include_expsyms_CXX
14355
14356 # ### END LIBTOOL TAG CONFIG: $tagname
14357
14358 __EOF__
14359
14360
14361 else
14362   # If there is no Makefile yet, we rely on a make rule to execute
14363   # `config.status --recheck' to rerun these tests and create the
14364   # libtool script then.
14365   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14366   if test -f "$ltmain_in"; then
14367     test -f Makefile && make "$ltmain"
14368   fi
14369 fi
14370
14371
14372 ac_ext=c
14373 ac_cpp='$CPP $CPPFLAGS'
14374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14377
14378 CC=$lt_save_CC
14379 LDCXX=$LD
14380 LD=$lt_save_LD
14381 GCC=$lt_save_GCC
14382 with_gnu_ldcxx=$with_gnu_ld
14383 with_gnu_ld=$lt_save_with_gnu_ld
14384 lt_cv_path_LDCXX=$lt_cv_path_LD
14385 lt_cv_path_LD=$lt_save_path_LD
14386 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14387 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14388
14389         else
14390           tagname=""
14391         fi
14392         ;;
14393
14394       F77)
14395         if test -n "$F77" && test "X$F77" != "Xno"; then
14396
14397 ac_ext=f
14398 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14399 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14400 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14401
14402
14403 archive_cmds_need_lc_F77=no
14404 allow_undefined_flag_F77=
14405 always_export_symbols_F77=no
14406 archive_expsym_cmds_F77=
14407 export_dynamic_flag_spec_F77=
14408 hardcode_direct_F77=no
14409 hardcode_libdir_flag_spec_F77=
14410 hardcode_libdir_flag_spec_ld_F77=
14411 hardcode_libdir_separator_F77=
14412 hardcode_minus_L_F77=no
14413 hardcode_automatic_F77=no
14414 module_cmds_F77=
14415 module_expsym_cmds_F77=
14416 link_all_deplibs_F77=unknown
14417 old_archive_cmds_F77=$old_archive_cmds
14418 no_undefined_flag_F77=
14419 whole_archive_flag_spec_F77=
14420 enable_shared_with_static_runtimes_F77=no
14421
14422 # Source file extension for f77 test sources.
14423 ac_ext=f
14424
14425 # Object file extension for compiled f77 test sources.
14426 objext=o
14427 objext_F77=$objext
14428
14429 # Code to be used in simple compile tests
14430 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14431
14432 # Code to be used in simple link tests
14433 lt_simple_link_test_code="      program t\n      end\n"
14434
14435 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14436
14437 # If no C compiler was specified, use CC.
14438 LTCC=${LTCC-"$CC"}
14439
14440 # If no C compiler flags were specified, use CFLAGS.
14441 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14442
14443 # Allow CC to be a program name with arguments.
14444 compiler=$CC
14445
14446
14447 # save warnings/boilerplate of simple test code
14448 ac_outfile=conftest.$ac_objext
14449 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14450 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14451 _lt_compiler_boilerplate=`cat conftest.err`
14452 $rm conftest*
14453
14454 ac_outfile=conftest.$ac_objext
14455 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14456 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14457 _lt_linker_boilerplate=`cat conftest.err`
14458 $rm conftest*
14459
14460
14461 # Allow CC to be a program name with arguments.
14462 lt_save_CC="$CC"
14463 CC=${F77-"f77"}
14464 compiler=$CC
14465 compiler_F77=$CC
14466 for cc_temp in $compiler""; do
14467   case $cc_temp in
14468     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14469     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14470     \-*) ;;
14471     *) break;;
14472   esac
14473 done
14474 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14475
14476
14477 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14478 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14479 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14480 echo "${ECHO_T}$can_build_shared" >&6; }
14481
14482 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14483 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14484 test "$can_build_shared" = "no" && enable_shared=no
14485
14486 # On AIX, shared libraries and static libraries use the same namespace, and
14487 # are all built from PIC.
14488 case $host_os in
14489 aix3*)
14490   test "$enable_shared" = yes && enable_static=no
14491   if test -n "$RANLIB"; then
14492     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14493     postinstall_cmds='$RANLIB $lib'
14494   fi
14495   ;;
14496 aix4* | aix5*)
14497   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14498     test "$enable_shared" = yes && enable_static=no
14499   fi
14500   ;;
14501 esac
14502 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14503 echo "${ECHO_T}$enable_shared" >&6; }
14504
14505 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14506 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14507 # Make sure either enable_shared or enable_static is yes.
14508 test "$enable_shared" = yes || enable_static=yes
14509 { echo "$as_me:$LINENO: result: $enable_static" >&5
14510 echo "${ECHO_T}$enable_static" >&6; }
14511
14512 GCC_F77="$G77"
14513 LD_F77="$LD"
14514
14515 lt_prog_compiler_wl_F77=
14516 lt_prog_compiler_pic_F77=
14517 lt_prog_compiler_static_F77=
14518
14519 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14520 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14521
14522   if test "$GCC" = yes; then
14523     lt_prog_compiler_wl_F77='-Wl,'
14524     lt_prog_compiler_static_F77='-static'
14525
14526     case $host_os in
14527       aix*)
14528       # All AIX code is PIC.
14529       if test "$host_cpu" = ia64; then
14530         # AIX 5 now supports IA64 processor
14531         lt_prog_compiler_static_F77='-Bstatic'
14532       fi
14533       ;;
14534
14535     amigaos*)
14536       # FIXME: we need at least 68020 code to build shared libraries, but
14537       # adding the `-m68020' flag to GCC prevents building anything better,
14538       # like `-m68040'.
14539       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14540       ;;
14541
14542     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14543       # PIC is the default for these OSes.
14544       ;;
14545
14546     mingw* | pw32* | os2*)
14547       # This hack is so that the source file can tell whether it is being
14548       # built for inclusion in a dll (and should export symbols for example).
14549       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14550       ;;
14551
14552     darwin* | rhapsody*)
14553       # PIC is the default on this platform
14554       # Common symbols not allowed in MH_DYLIB files
14555       lt_prog_compiler_pic_F77='-fno-common'
14556       ;;
14557
14558     interix3*)
14559       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14560       # Instead, we relocate shared libraries at runtime.
14561       ;;
14562
14563     msdosdjgpp*)
14564       # Just because we use GCC doesn't mean we suddenly get shared libraries
14565       # on systems that don't support them.
14566       lt_prog_compiler_can_build_shared_F77=no
14567       enable_shared=no
14568       ;;
14569
14570     sysv4*MP*)
14571       if test -d /usr/nec; then
14572         lt_prog_compiler_pic_F77=-Kconform_pic
14573       fi
14574       ;;
14575
14576     hpux*)
14577       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14578       # not for PA HP-UX.
14579       case $host_cpu in
14580       hppa*64*|ia64*)
14581         # +Z the default
14582         ;;
14583       *)
14584         lt_prog_compiler_pic_F77='-fPIC'
14585         ;;
14586       esac
14587       ;;
14588
14589     *)
14590       lt_prog_compiler_pic_F77='-fPIC'
14591       ;;
14592     esac
14593   else
14594     # PORTME Check for flag to pass linker flags through the system compiler.
14595     case $host_os in
14596     aix*)
14597       lt_prog_compiler_wl_F77='-Wl,'
14598       if test "$host_cpu" = ia64; then
14599         # AIX 5 now supports IA64 processor
14600         lt_prog_compiler_static_F77='-Bstatic'
14601       else
14602         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14603       fi
14604       ;;
14605       darwin*)
14606         # PIC is the default on this platform
14607         # Common symbols not allowed in MH_DYLIB files
14608        case $cc_basename in
14609          xlc*)
14610          lt_prog_compiler_pic_F77='-qnocommon'
14611          lt_prog_compiler_wl_F77='-Wl,'
14612          ;;
14613        esac
14614        ;;
14615
14616     mingw* | pw32* | os2*)
14617       # This hack is so that the source file can tell whether it is being
14618       # built for inclusion in a dll (and should export symbols for example).
14619       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14620       ;;
14621
14622     hpux9* | hpux10* | hpux11*)
14623       lt_prog_compiler_wl_F77='-Wl,'
14624       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14625       # not for PA HP-UX.
14626       case $host_cpu in
14627       hppa*64*|ia64*)
14628         # +Z the default
14629         ;;
14630       *)
14631         lt_prog_compiler_pic_F77='+Z'
14632         ;;
14633       esac
14634       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14635       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14636       ;;
14637
14638     irix5* | irix6* | nonstopux*)
14639       lt_prog_compiler_wl_F77='-Wl,'
14640       # PIC (with -KPIC) is the default.
14641       lt_prog_compiler_static_F77='-non_shared'
14642       ;;
14643
14644     newsos6)
14645       lt_prog_compiler_pic_F77='-KPIC'
14646       lt_prog_compiler_static_F77='-Bstatic'
14647       ;;
14648
14649     linux*)
14650       case $cc_basename in
14651       icc* | ecc*)
14652         lt_prog_compiler_wl_F77='-Wl,'
14653         lt_prog_compiler_pic_F77='-KPIC'
14654         lt_prog_compiler_static_F77='-static'
14655         ;;
14656       pgcc* | pgf77* | pgf90* | pgf95*)
14657         # Portland Group compilers (*not* the Pentium gcc compiler,
14658         # which looks to be a dead project)
14659         lt_prog_compiler_wl_F77='-Wl,'
14660         lt_prog_compiler_pic_F77='-fpic'
14661         lt_prog_compiler_static_F77='-Bstatic'
14662         ;;
14663       ccc*)
14664         lt_prog_compiler_wl_F77='-Wl,'
14665         # All Alpha code is PIC.
14666         lt_prog_compiler_static_F77='-non_shared'
14667         ;;
14668       esac
14669       ;;
14670
14671     osf3* | osf4* | osf5*)
14672       lt_prog_compiler_wl_F77='-Wl,'
14673       # All OSF/1 code is PIC.
14674       lt_prog_compiler_static_F77='-non_shared'
14675       ;;
14676
14677     solaris*)
14678       lt_prog_compiler_pic_F77='-KPIC'
14679       lt_prog_compiler_static_F77='-Bstatic'
14680       case $cc_basename in
14681       f77* | f90* | f95*)
14682         lt_prog_compiler_wl_F77='-Qoption ld ';;
14683       *)
14684         lt_prog_compiler_wl_F77='-Wl,';;
14685       esac
14686       ;;
14687
14688     sunos4*)
14689       lt_prog_compiler_wl_F77='-Qoption ld '
14690       lt_prog_compiler_pic_F77='-PIC'
14691       lt_prog_compiler_static_F77='-Bstatic'
14692       ;;
14693
14694     sysv4 | sysv4.2uw2* | sysv4.3*)
14695       lt_prog_compiler_wl_F77='-Wl,'
14696       lt_prog_compiler_pic_F77='-KPIC'
14697       lt_prog_compiler_static_F77='-Bstatic'
14698       ;;
14699
14700     sysv4*MP*)
14701       if test -d /usr/nec ;then
14702         lt_prog_compiler_pic_F77='-Kconform_pic'
14703         lt_prog_compiler_static_F77='-Bstatic'
14704       fi
14705       ;;
14706
14707     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14708       lt_prog_compiler_wl_F77='-Wl,'
14709       lt_prog_compiler_pic_F77='-KPIC'
14710       lt_prog_compiler_static_F77='-Bstatic'
14711       ;;
14712
14713     unicos*)
14714       lt_prog_compiler_wl_F77='-Wl,'
14715       lt_prog_compiler_can_build_shared_F77=no
14716       ;;
14717
14718     uts4*)
14719       lt_prog_compiler_pic_F77='-pic'
14720       lt_prog_compiler_static_F77='-Bstatic'
14721       ;;
14722
14723     *)
14724       lt_prog_compiler_can_build_shared_F77=no
14725       ;;
14726     esac
14727   fi
14728
14729 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14730 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14731
14732 #
14733 # Check to make sure the PIC flag actually works.
14734 #
14735 if test -n "$lt_prog_compiler_pic_F77"; then
14736
14737 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14738 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14739 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14740   echo $ECHO_N "(cached) $ECHO_C" >&6
14741 else
14742   lt_prog_compiler_pic_works_F77=no
14743   ac_outfile=conftest.$ac_objext
14744    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14745    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14746    # Insert the option either (1) after the last *FLAGS variable, or
14747    # (2) before a word containing "conftest.", or (3) at the end.
14748    # Note that $ac_compile itself does not contain backslashes and begins
14749    # with a dollar sign (not a hyphen), so the echo should work correctly.
14750    # The option is referenced via a variable to avoid confusing sed.
14751    lt_compile=`echo "$ac_compile" | $SED \
14752    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14753    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14754    -e 's:$: $lt_compiler_flag:'`
14755    (eval echo "\"\$as_me:14755: $lt_compile\"" >&5)
14756    (eval "$lt_compile" 2>conftest.err)
14757    ac_status=$?
14758    cat conftest.err >&5
14759    echo "$as_me:14759: \$? = $ac_status" >&5
14760    if (exit $ac_status) && test -s "$ac_outfile"; then
14761      # The compiler can only warn and ignore the option if not recognized
14762      # So say no if there are warnings other than the usual output.
14763      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14764      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14765      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14766        lt_prog_compiler_pic_works_F77=yes
14767      fi
14768    fi
14769    $rm conftest*
14770
14771 fi
14772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14773 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14774
14775 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14776     case $lt_prog_compiler_pic_F77 in
14777      "" | " "*) ;;
14778      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14779      esac
14780 else
14781     lt_prog_compiler_pic_F77=
14782      lt_prog_compiler_can_build_shared_F77=no
14783 fi
14784
14785 fi
14786 case $host_os in
14787   # For platforms which do not support PIC, -DPIC is meaningless:
14788   *djgpp*)
14789     lt_prog_compiler_pic_F77=
14790     ;;
14791   *)
14792     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14793     ;;
14794 esac
14795
14796 #
14797 # Check to make sure the static flag actually works.
14798 #
14799 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14800 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14801 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14802 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14803   echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805   lt_prog_compiler_static_works_F77=no
14806    save_LDFLAGS="$LDFLAGS"
14807    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14808    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14809    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14810      # The linker can only warn and ignore the option if not recognized
14811      # So say no if there are warnings
14812      if test -s conftest.err; then
14813        # Append any errors to the config.log.
14814        cat conftest.err 1>&5
14815        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14816        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14817        if diff conftest.exp conftest.er2 >/dev/null; then
14818          lt_prog_compiler_static_works_F77=yes
14819        fi
14820      else
14821        lt_prog_compiler_static_works_F77=yes
14822      fi
14823    fi
14824    $rm conftest*
14825    LDFLAGS="$save_LDFLAGS"
14826
14827 fi
14828 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14829 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14830
14831 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14832     :
14833 else
14834     lt_prog_compiler_static_F77=
14835 fi
14836
14837
14838 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14839 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14840 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14841   echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843   lt_cv_prog_compiler_c_o_F77=no
14844    $rm -r conftest 2>/dev/null
14845    mkdir conftest
14846    cd conftest
14847    mkdir out
14848    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14849
14850    lt_compiler_flag="-o out/conftest2.$ac_objext"
14851    # Insert the option either (1) after the last *FLAGS variable, or
14852    # (2) before a word containing "conftest.", or (3) at the end.
14853    # Note that $ac_compile itself does not contain backslashes and begins
14854    # with a dollar sign (not a hyphen), so the echo should work correctly.
14855    lt_compile=`echo "$ac_compile" | $SED \
14856    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14857    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14858    -e 's:$: $lt_compiler_flag:'`
14859    (eval echo "\"\$as_me:14859: $lt_compile\"" >&5)
14860    (eval "$lt_compile" 2>out/conftest.err)
14861    ac_status=$?
14862    cat out/conftest.err >&5
14863    echo "$as_me:14863: \$? = $ac_status" >&5
14864    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14865    then
14866      # The compiler can only warn and ignore the option if not recognized
14867      # So say no if there are warnings
14868      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14869      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14870      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14871        lt_cv_prog_compiler_c_o_F77=yes
14872      fi
14873    fi
14874    chmod u+w . 2>&5
14875    $rm conftest*
14876    # SGI C++ compiler will create directory out/ii_files/ for
14877    # template instantiation
14878    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14879    $rm out/* && rmdir out
14880    cd ..
14881    rmdir conftest
14882    $rm conftest*
14883
14884 fi
14885 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14886 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14887
14888
14889 hard_links="nottested"
14890 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14891   # do not overwrite the value of need_locks provided by the user
14892   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14893 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14894   hard_links=yes
14895   $rm conftest*
14896   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14897   touch conftest.a
14898   ln conftest.a conftest.b 2>&5 || hard_links=no
14899   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14900   { echo "$as_me:$LINENO: result: $hard_links" >&5
14901 echo "${ECHO_T}$hard_links" >&6; }
14902   if test "$hard_links" = no; then
14903     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14904 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14905     need_locks=warn
14906   fi
14907 else
14908   need_locks=no
14909 fi
14910
14911 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14912 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14913
14914   runpath_var=
14915   allow_undefined_flag_F77=
14916   enable_shared_with_static_runtimes_F77=no
14917   archive_cmds_F77=
14918   archive_expsym_cmds_F77=
14919   old_archive_From_new_cmds_F77=
14920   old_archive_from_expsyms_cmds_F77=
14921   export_dynamic_flag_spec_F77=
14922   whole_archive_flag_spec_F77=
14923   thread_safe_flag_spec_F77=
14924   hardcode_libdir_flag_spec_F77=
14925   hardcode_libdir_flag_spec_ld_F77=
14926   hardcode_libdir_separator_F77=
14927   hardcode_direct_F77=no
14928   hardcode_minus_L_F77=no
14929   hardcode_shlibpath_var_F77=unsupported
14930   link_all_deplibs_F77=unknown
14931   hardcode_automatic_F77=no
14932   module_cmds_F77=
14933   module_expsym_cmds_F77=
14934   always_export_symbols_F77=no
14935   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14936   # include_expsyms should be a list of space-separated symbols to be *always*
14937   # included in the symbol list
14938   include_expsyms_F77=
14939   # exclude_expsyms can be an extended regexp of symbols to exclude
14940   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14941   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14942   # as well as any symbol that contains `d'.
14943   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14944   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14945   # platforms (ab)use it in PIC code, but their linkers get confused if
14946   # the symbol is explicitly referenced.  Since portable code cannot
14947   # rely on this symbol name, it's probably fine to never include it in
14948   # preloaded symbol tables.
14949   extract_expsyms_cmds=
14950   # Just being paranoid about ensuring that cc_basename is set.
14951   for cc_temp in $compiler""; do
14952   case $cc_temp in
14953     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14954     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14955     \-*) ;;
14956     *) break;;
14957   esac
14958 done
14959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14960
14961   case $host_os in
14962   cygwin* | mingw* | pw32*)
14963     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14964     # When not using gcc, we currently assume that we are using
14965     # Microsoft Visual C++.
14966     if test "$GCC" != yes; then
14967       with_gnu_ld=no
14968     fi
14969     ;;
14970   interix*)
14971     # we just hope/assume this is gcc and not c89 (= MSVC++)
14972     with_gnu_ld=yes
14973     ;;
14974   openbsd*)
14975     with_gnu_ld=no
14976     ;;
14977   esac
14978
14979   ld_shlibs_F77=yes
14980   if test "$with_gnu_ld" = yes; then
14981     # If archive_cmds runs LD, not CC, wlarc should be empty
14982     wlarc='${wl}'
14983
14984     # Set some defaults for GNU ld with shared library support. These
14985     # are reset later if shared libraries are not supported. Putting them
14986     # here allows them to be overridden if necessary.
14987     runpath_var=LD_RUN_PATH
14988     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14989     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14990     # ancient GNU ld didn't support --whole-archive et. al.
14991     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14992         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14993       else
14994         whole_archive_flag_spec_F77=
14995     fi
14996     supports_anon_versioning=no
14997     case `$LD -v 2>/dev/null` in
14998       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14999       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15000       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15001       *\ 2.11.*) ;; # other 2.11 versions
15002       *) supports_anon_versioning=yes ;;
15003     esac
15004
15005     # See if GNU ld supports shared libraries.
15006     case $host_os in
15007     aix3* | aix4* | aix5*)
15008       # On AIX/PPC, the GNU linker is very broken
15009       if test "$host_cpu" != ia64; then
15010         ld_shlibs_F77=no
15011         cat <<EOF 1>&2
15012
15013 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15014 *** to be unable to reliably create shared libraries on AIX.
15015 *** Therefore, libtool is disabling shared libraries support.  If you
15016 *** really care for shared libraries, you may want to modify your PATH
15017 *** so that a non-GNU linker is found, and then restart.
15018
15019 EOF
15020       fi
15021       ;;
15022
15023     amigaos*)
15024       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)'
15025       hardcode_libdir_flag_spec_F77='-L$libdir'
15026       hardcode_minus_L_F77=yes
15027
15028       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15029       # that the semantics of dynamic libraries on AmigaOS, at least up
15030       # to version 4, is to share data among multiple programs linked
15031       # with the same dynamic library.  Since this doesn't match the
15032       # behavior of shared libraries on other platforms, we can't use
15033       # them.
15034       ld_shlibs_F77=no
15035       ;;
15036
15037     beos*)
15038       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15039         allow_undefined_flag_F77=unsupported
15040         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15041         # support --undefined.  This deserves some investigation.  FIXME
15042         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15043       else
15044         ld_shlibs_F77=no
15045       fi
15046       ;;
15047
15048     cygwin* | mingw* | pw32*)
15049       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15050       # as there is no search path for DLLs.
15051       hardcode_libdir_flag_spec_F77='-L$libdir'
15052       allow_undefined_flag_F77=unsupported
15053       always_export_symbols_F77=no
15054       enable_shared_with_static_runtimes_F77=yes
15055       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15056
15057       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15058         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15059         # If the export-symbols file already is a .def file (1st line
15060         # is EXPORTS), use it as is; otherwise, prepend...
15061         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15062           cp $export_symbols $output_objdir/$soname.def;
15063         else
15064           echo EXPORTS > $output_objdir/$soname.def;
15065           cat $export_symbols >> $output_objdir/$soname.def;
15066         fi~
15067         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15068       else
15069         ld_shlibs_F77=no
15070       fi
15071       ;;
15072
15073     interix3*)
15074       hardcode_direct_F77=no
15075       hardcode_shlibpath_var_F77=no
15076       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15077       export_dynamic_flag_spec_F77='${wl}-E'
15078       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15079       # Instead, shared libraries are loaded at an image base (0x10000000 by
15080       # default) and relocated if they conflict, which is a slow very memory
15081       # consuming and fragmenting process.  To avoid this, we pick a random,
15082       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15083       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15084       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'
15085       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'
15086       ;;
15087
15088     linux*)
15089       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15090         tmp_addflag=
15091         case $cc_basename,$host_cpu in
15092         pgcc*)                          # Portland Group C compiler
15093           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'
15094           tmp_addflag=' $pic_flag'
15095           ;;
15096         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15097           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'
15098           tmp_addflag=' $pic_flag -Mnomain' ;;
15099         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15100           tmp_addflag=' -i_dynamic' ;;
15101         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15102           tmp_addflag=' -i_dynamic -nofor_main' ;;
15103         ifc* | ifort*)                  # Intel Fortran compiler
15104           tmp_addflag=' -nofor_main' ;;
15105         esac
15106         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15107
15108         if test $supports_anon_versioning = yes; then
15109           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15110   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15111   $echo "local: *; };" >> $output_objdir/$libname.ver~
15112           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15113         fi
15114       else
15115         ld_shlibs_F77=no
15116       fi
15117       ;;
15118
15119     netbsd*)
15120       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15121         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15122         wlarc=
15123       else
15124         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15125         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15126       fi
15127       ;;
15128
15129     solaris*)
15130       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15131         ld_shlibs_F77=no
15132         cat <<EOF 1>&2
15133
15134 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15135 *** create shared libraries on Solaris systems.  Therefore, libtool
15136 *** is disabling shared libraries support.  We urge you to upgrade GNU
15137 *** binutils to release 2.9.1 or newer.  Another option is to modify
15138 *** your PATH or compiler configuration so that the native linker is
15139 *** used, and then restart.
15140
15141 EOF
15142       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15143         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15144         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15145       else
15146         ld_shlibs_F77=no
15147       fi
15148       ;;
15149
15150     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15151       case `$LD -v 2>&1` in
15152         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15153         ld_shlibs_F77=no
15154         cat <<_LT_EOF 1>&2
15155
15156 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15157 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15158 *** is disabling shared libraries support.  We urge you to upgrade GNU
15159 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15160 *** your PATH or compiler configuration so that the native linker is
15161 *** used, and then restart.
15162
15163 _LT_EOF
15164         ;;
15165         *)
15166           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15167             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15168             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15169             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15170           else
15171             ld_shlibs_F77=no
15172           fi
15173         ;;
15174       esac
15175       ;;
15176
15177     sunos4*)
15178       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15179       wlarc=
15180       hardcode_direct_F77=yes
15181       hardcode_shlibpath_var_F77=no
15182       ;;
15183
15184     *)
15185       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15186         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15187         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15188       else
15189         ld_shlibs_F77=no
15190       fi
15191       ;;
15192     esac
15193
15194     if test "$ld_shlibs_F77" = no; then
15195       runpath_var=
15196       hardcode_libdir_flag_spec_F77=
15197       export_dynamic_flag_spec_F77=
15198       whole_archive_flag_spec_F77=
15199     fi
15200   else
15201     # PORTME fill in a description of your system's linker (not GNU ld)
15202     case $host_os in
15203     aix3*)
15204       allow_undefined_flag_F77=unsupported
15205       always_export_symbols_F77=yes
15206       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'
15207       # Note: this linker hardcodes the directories in LIBPATH if there
15208       # are no directories specified by -L.
15209       hardcode_minus_L_F77=yes
15210       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15211         # Neither direct hardcoding nor static linking is supported with a
15212         # broken collect2.
15213         hardcode_direct_F77=unsupported
15214       fi
15215       ;;
15216
15217     aix4* | aix5*)
15218       if test "$host_cpu" = ia64; then
15219         # On IA64, the linker does run time linking by default, so we don't
15220         # have to do anything special.
15221         aix_use_runtimelinking=no
15222         exp_sym_flag='-Bexport'
15223         no_entry_flag=""
15224       else
15225         # If we're using GNU nm, then we don't want the "-C" option.
15226         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15227         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15228           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'
15229         else
15230           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'
15231         fi
15232         aix_use_runtimelinking=no
15233
15234         # Test if we are trying to use run time linking or normal
15235         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15236         # need to do runtime linking.
15237         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15238           for ld_flag in $LDFLAGS; do
15239           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15240             aix_use_runtimelinking=yes
15241             break
15242           fi
15243           done
15244           ;;
15245         esac
15246
15247         exp_sym_flag='-bexport'
15248         no_entry_flag='-bnoentry'
15249       fi
15250
15251       # When large executables or shared objects are built, AIX ld can
15252       # have problems creating the table of contents.  If linking a library
15253       # or program results in "error TOC overflow" add -mminimal-toc to
15254       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15255       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15256
15257       archive_cmds_F77=''
15258       hardcode_direct_F77=yes
15259       hardcode_libdir_separator_F77=':'
15260       link_all_deplibs_F77=yes
15261
15262       if test "$GCC" = yes; then
15263         case $host_os in aix4.[012]|aix4.[012].*)
15264         # We only want to do this on AIX 4.2 and lower, the check
15265         # below for broken collect2 doesn't work under 4.3+
15266           collect2name=`${CC} -print-prog-name=collect2`
15267           if test -f "$collect2name" && \
15268            strings "$collect2name" | grep resolve_lib_name >/dev/null
15269           then
15270           # We have reworked collect2
15271           hardcode_direct_F77=yes
15272           else
15273           # We have old collect2
15274           hardcode_direct_F77=unsupported
15275           # It fails to find uninstalled libraries when the uninstalled
15276           # path is not listed in the libpath.  Setting hardcode_minus_L
15277           # to unsupported forces relinking
15278           hardcode_minus_L_F77=yes
15279           hardcode_libdir_flag_spec_F77='-L$libdir'
15280           hardcode_libdir_separator_F77=
15281           fi
15282           ;;
15283         esac
15284         shared_flag='-shared'
15285         if test "$aix_use_runtimelinking" = yes; then
15286           shared_flag="$shared_flag "'${wl}-G'
15287         fi
15288       else
15289         # not using gcc
15290         if test "$host_cpu" = ia64; then
15291         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15292         # chokes on -Wl,-G. The following line is correct:
15293           shared_flag='-G'
15294         else
15295           if test "$aix_use_runtimelinking" = yes; then
15296             shared_flag='${wl}-G'
15297           else
15298             shared_flag='${wl}-bM:SRE'
15299           fi
15300         fi
15301       fi
15302
15303       # It seems that -bexpall does not export symbols beginning with
15304       # underscore (_), so it is better to generate a list of symbols to export.
15305       always_export_symbols_F77=yes
15306       if test "$aix_use_runtimelinking" = yes; then
15307         # Warning - without using the other runtime loading flags (-brtl),
15308         # -berok will link without error, but may produce a broken library.
15309         allow_undefined_flag_F77='-berok'
15310        # Determine the default libpath from the value encoded in an empty executable.
15311        cat >conftest.$ac_ext <<_ACEOF
15312       program main
15313
15314       end
15315 _ACEOF
15316 rm -f conftest.$ac_objext conftest$ac_exeext
15317 if { (ac_try="$ac_link"
15318 case "(($ac_try" in
15319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15320   *) ac_try_echo=$ac_try;;
15321 esac
15322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15323   (eval "$ac_link") 2>conftest.er1
15324   ac_status=$?
15325   grep -v '^ *+' conftest.er1 >conftest.err
15326   rm -f conftest.er1
15327   cat conftest.err >&5
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); } &&
15330          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15331   { (case "(($ac_try" in
15332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333   *) ac_try_echo=$ac_try;;
15334 esac
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336   (eval "$ac_try") 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); }; } &&
15340          { ac_try='test -s conftest$ac_exeext'
15341   { (case "(($ac_try" in
15342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15343   *) ac_try_echo=$ac_try;;
15344 esac
15345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15346   (eval "$ac_try") 2>&5
15347   ac_status=$?
15348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349   (exit $ac_status); }; }; then
15350
15351 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15352 }'`
15353 # Check for a 64-bit object if we didn't find anything.
15354 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; }
15355 }'`; fi
15356 else
15357   echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360
15361 fi
15362
15363 rm -f core conftest.err conftest.$ac_objext \
15364       conftest$ac_exeext conftest.$ac_ext
15365 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15366
15367        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15368         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"
15369        else
15370         if test "$host_cpu" = ia64; then
15371           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15372           allow_undefined_flag_F77="-z nodefs"
15373           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"
15374         else
15375          # Determine the default libpath from the value encoded in an empty executable.
15376          cat >conftest.$ac_ext <<_ACEOF
15377       program main
15378
15379       end
15380 _ACEOF
15381 rm -f conftest.$ac_objext conftest$ac_exeext
15382 if { (ac_try="$ac_link"
15383 case "(($ac_try" in
15384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385   *) ac_try_echo=$ac_try;;
15386 esac
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388   (eval "$ac_link") 2>conftest.er1
15389   ac_status=$?
15390   grep -v '^ *+' conftest.er1 >conftest.err
15391   rm -f conftest.er1
15392   cat conftest.err >&5
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); } &&
15395          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15396   { (case "(($ac_try" in
15397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398   *) ac_try_echo=$ac_try;;
15399 esac
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401   (eval "$ac_try") 2>&5
15402   ac_status=$?
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); }; } &&
15405          { ac_try='test -s conftest$ac_exeext'
15406   { (case "(($ac_try" in
15407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408   *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411   (eval "$ac_try") 2>&5
15412   ac_status=$?
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); }; }; then
15415
15416 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15417 }'`
15418 # Check for a 64-bit object if we didn't find anything.
15419 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; }
15420 }'`; fi
15421 else
15422   echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425
15426 fi
15427
15428 rm -f core conftest.err conftest.$ac_objext \
15429       conftest$ac_exeext conftest.$ac_ext
15430 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15431
15432          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15433           # Warning - without using the other run time loading flags,
15434           # -berok will link without error, but may produce a broken library.
15435           no_undefined_flag_F77=' ${wl}-bernotok'
15436           allow_undefined_flag_F77=' ${wl}-berok'
15437           # Exported symbols can be pulled into shared objects from archives
15438           whole_archive_flag_spec_F77='$convenience'
15439           archive_cmds_need_lc_F77=yes
15440           # This is similar to how AIX traditionally builds its shared libraries.
15441           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'
15442         fi
15443       fi
15444       ;;
15445
15446     amigaos*)
15447       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)'
15448       hardcode_libdir_flag_spec_F77='-L$libdir'
15449       hardcode_minus_L_F77=yes
15450       # see comment about different semantics on the GNU ld section
15451       ld_shlibs_F77=no
15452       ;;
15453
15454     bsdi[45]*)
15455       export_dynamic_flag_spec_F77=-rdynamic
15456       ;;
15457
15458     cygwin* | mingw* | pw32*)
15459       # When not using gcc, we currently assume that we are using
15460       # Microsoft Visual C++.
15461       # hardcode_libdir_flag_spec is actually meaningless, as there is
15462       # no search path for DLLs.
15463       hardcode_libdir_flag_spec_F77=' '
15464       allow_undefined_flag_F77=unsupported
15465       # Tell ltmain to make .lib files, not .a files.
15466       libext=lib
15467       # Tell ltmain to make .dll files, not .so files.
15468       shrext_cmds=".dll"
15469       # FIXME: Setting linknames here is a bad hack.
15470       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15471       # The linker will automatically build a .lib file if we build a DLL.
15472       old_archive_From_new_cmds_F77='true'
15473       # FIXME: Should let the user specify the lib program.
15474       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15475       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15476       enable_shared_with_static_runtimes_F77=yes
15477       ;;
15478
15479     darwin* | rhapsody*)
15480       case $host_os in
15481         rhapsody* | darwin1.[012])
15482          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15483          ;;
15484        *) # Darwin 1.3 on
15485          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15486            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15487          else
15488            case ${MACOSX_DEPLOYMENT_TARGET} in
15489              10.[012])
15490                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15491                ;;
15492              10.*)
15493                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15494                ;;
15495            esac
15496          fi
15497          ;;
15498       esac
15499       archive_cmds_need_lc_F77=no
15500       hardcode_direct_F77=no
15501       hardcode_automatic_F77=yes
15502       hardcode_shlibpath_var_F77=unsupported
15503       whole_archive_flag_spec_F77=''
15504       link_all_deplibs_F77=yes
15505     if test "$GCC" = yes ; then
15506         output_verbose_link_cmd='echo'
15507         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15508       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15509       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15510       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}'
15511       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}'
15512     else
15513       case $cc_basename in
15514         xlc*)
15515          output_verbose_link_cmd='echo'
15516          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15517          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15518           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15519          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}'
15520           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}'
15521           ;;
15522        *)
15523          ld_shlibs_F77=no
15524           ;;
15525       esac
15526     fi
15527       ;;
15528
15529     dgux*)
15530       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15531       hardcode_libdir_flag_spec_F77='-L$libdir'
15532       hardcode_shlibpath_var_F77=no
15533       ;;
15534
15535     freebsd1*)
15536       ld_shlibs_F77=no
15537       ;;
15538
15539     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15540     # support.  Future versions do this automatically, but an explicit c++rt0.o
15541     # does not break anything, and helps significantly (at the cost of a little
15542     # extra space).
15543     freebsd2.2*)
15544       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15545       hardcode_libdir_flag_spec_F77='-R$libdir'
15546       hardcode_direct_F77=yes
15547       hardcode_shlibpath_var_F77=no
15548       ;;
15549
15550     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15551     freebsd2*)
15552       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15553       hardcode_direct_F77=yes
15554       hardcode_minus_L_F77=yes
15555       hardcode_shlibpath_var_F77=no
15556       ;;
15557
15558     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15559     freebsd* | kfreebsd*-gnu | dragonfly*)
15560       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15561       hardcode_libdir_flag_spec_F77='-R$libdir'
15562       hardcode_direct_F77=yes
15563       hardcode_shlibpath_var_F77=no
15564       ;;
15565
15566     hpux9*)
15567       if test "$GCC" = yes; then
15568         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'
15569       else
15570         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'
15571       fi
15572       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15573       hardcode_libdir_separator_F77=:
15574       hardcode_direct_F77=yes
15575
15576       # hardcode_minus_L: Not really in the search PATH,
15577       # but as the default location of the library.
15578       hardcode_minus_L_F77=yes
15579       export_dynamic_flag_spec_F77='${wl}-E'
15580       ;;
15581
15582     hpux10*)
15583       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15584         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15585       else
15586         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15587       fi
15588       if test "$with_gnu_ld" = no; then
15589         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15590         hardcode_libdir_separator_F77=:
15591
15592         hardcode_direct_F77=yes
15593         export_dynamic_flag_spec_F77='${wl}-E'
15594
15595         # hardcode_minus_L: Not really in the search PATH,
15596         # but as the default location of the library.
15597         hardcode_minus_L_F77=yes
15598       fi
15599       ;;
15600
15601     hpux11*)
15602       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15603         case $host_cpu in
15604         hppa*64*)
15605           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15606           ;;
15607         ia64*)
15608           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15609           ;;
15610         *)
15611           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15612           ;;
15613         esac
15614       else
15615         case $host_cpu in
15616         hppa*64*)
15617           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15618           ;;
15619         ia64*)
15620           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15621           ;;
15622         *)
15623           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15624           ;;
15625         esac
15626       fi
15627       if test "$with_gnu_ld" = no; then
15628         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15629         hardcode_libdir_separator_F77=:
15630
15631         case $host_cpu in
15632         hppa*64*|ia64*)
15633           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15634           hardcode_direct_F77=no
15635           hardcode_shlibpath_var_F77=no
15636           ;;
15637         *)
15638           hardcode_direct_F77=yes
15639           export_dynamic_flag_spec_F77='${wl}-E'
15640
15641           # hardcode_minus_L: Not really in the search PATH,
15642           # but as the default location of the library.
15643           hardcode_minus_L_F77=yes
15644           ;;
15645         esac
15646       fi
15647       ;;
15648
15649     irix5* | irix6* | nonstopux*)
15650       if test "$GCC" = yes; then
15651         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'
15652       else
15653         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'
15654         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15655       fi
15656       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15657       hardcode_libdir_separator_F77=:
15658       link_all_deplibs_F77=yes
15659       ;;
15660
15661     netbsd*)
15662       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15663         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15664       else
15665         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15666       fi
15667       hardcode_libdir_flag_spec_F77='-R$libdir'
15668       hardcode_direct_F77=yes
15669       hardcode_shlibpath_var_F77=no
15670       ;;
15671
15672     newsos6)
15673       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15674       hardcode_direct_F77=yes
15675       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15676       hardcode_libdir_separator_F77=:
15677       hardcode_shlibpath_var_F77=no
15678       ;;
15679
15680     openbsd*)
15681       hardcode_direct_F77=yes
15682       hardcode_shlibpath_var_F77=no
15683       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15684         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15685         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15686         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15687         export_dynamic_flag_spec_F77='${wl}-E'
15688       else
15689        case $host_os in
15690          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15691            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15692            hardcode_libdir_flag_spec_F77='-R$libdir'
15693            ;;
15694          *)
15695            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15696            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15697            ;;
15698        esac
15699       fi
15700       ;;
15701
15702     os2*)
15703       hardcode_libdir_flag_spec_F77='-L$libdir'
15704       hardcode_minus_L_F77=yes
15705       allow_undefined_flag_F77=unsupported
15706       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'
15707       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15708       ;;
15709
15710     osf3*)
15711       if test "$GCC" = yes; then
15712         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15713         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'
15714       else
15715         allow_undefined_flag_F77=' -expect_unresolved \*'
15716         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'
15717       fi
15718       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15719       hardcode_libdir_separator_F77=:
15720       ;;
15721
15722     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15723       if test "$GCC" = yes; then
15724         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15725         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'
15726         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15727       else
15728         allow_undefined_flag_F77=' -expect_unresolved \*'
15729         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'
15730         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~
15731         $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'
15732
15733         # Both c and cxx compiler support -rpath directly
15734         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15735       fi
15736       hardcode_libdir_separator_F77=:
15737       ;;
15738
15739     solaris*)
15740       no_undefined_flag_F77=' -z text'
15741       if test "$GCC" = yes; then
15742         wlarc='${wl}'
15743         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15744         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15745           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15746       else
15747         wlarc=''
15748         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15749         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15750         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15751       fi
15752       hardcode_libdir_flag_spec_F77='-R$libdir'
15753       hardcode_shlibpath_var_F77=no
15754       case $host_os in
15755       solaris2.[0-5] | solaris2.[0-5].*) ;;
15756       *)
15757         # The compiler driver will combine linker options so we
15758         # cannot just pass the convience library names through
15759         # without $wl, iff we do not link with $LD.
15760         # Luckily, gcc supports the same syntax we need for Sun Studio.
15761         # Supported since Solaris 2.6 (maybe 2.5.1?)
15762         case $wlarc in
15763         '')
15764           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15765         *)
15766           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' ;;
15767         esac ;;
15768       esac
15769       link_all_deplibs_F77=yes
15770       ;;
15771
15772     sunos4*)
15773       if test "x$host_vendor" = xsequent; then
15774         # Use $CC to link under sequent, because it throws in some extra .o
15775         # files that make .init and .fini sections work.
15776         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15777       else
15778         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15779       fi
15780       hardcode_libdir_flag_spec_F77='-L$libdir'
15781       hardcode_direct_F77=yes
15782       hardcode_minus_L_F77=yes
15783       hardcode_shlibpath_var_F77=no
15784       ;;
15785
15786     sysv4)
15787       case $host_vendor in
15788         sni)
15789           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790           hardcode_direct_F77=yes # is this really true???
15791         ;;
15792         siemens)
15793           ## LD is ld it makes a PLAMLIB
15794           ## CC just makes a GrossModule.
15795           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15796           reload_cmds_F77='$CC -r -o $output$reload_objs'
15797           hardcode_direct_F77=no
15798         ;;
15799         motorola)
15800           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15801           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15802         ;;
15803       esac
15804       runpath_var='LD_RUN_PATH'
15805       hardcode_shlibpath_var_F77=no
15806       ;;
15807
15808     sysv4.3*)
15809       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15810       hardcode_shlibpath_var_F77=no
15811       export_dynamic_flag_spec_F77='-Bexport'
15812       ;;
15813
15814     sysv4*MP*)
15815       if test -d /usr/nec; then
15816         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15817         hardcode_shlibpath_var_F77=no
15818         runpath_var=LD_RUN_PATH
15819         hardcode_runpath_var=yes
15820         ld_shlibs_F77=yes
15821       fi
15822       ;;
15823
15824     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15825       no_undefined_flag_F77='${wl}-z,text'
15826       archive_cmds_need_lc_F77=no
15827       hardcode_shlibpath_var_F77=no
15828       runpath_var='LD_RUN_PATH'
15829
15830       if test "$GCC" = yes; then
15831         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15832         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15833       else
15834         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15835         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15836       fi
15837       ;;
15838
15839     sysv5* | sco3.2v5* | sco5v6*)
15840       # Note: We can NOT use -z defs as we might desire, because we do not
15841       # link with -lc, and that would cause any symbols used from libc to
15842       # always be unresolved, which means just about no library would
15843       # ever link correctly.  If we're not using GNU ld we use -z text
15844       # though, which does catch some bad symbols but isn't as heavy-handed
15845       # as -z defs.
15846       no_undefined_flag_F77='${wl}-z,text'
15847       allow_undefined_flag_F77='${wl}-z,nodefs'
15848       archive_cmds_need_lc_F77=no
15849       hardcode_shlibpath_var_F77=no
15850       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15851       hardcode_libdir_separator_F77=':'
15852       link_all_deplibs_F77=yes
15853       export_dynamic_flag_spec_F77='${wl}-Bexport'
15854       runpath_var='LD_RUN_PATH'
15855
15856       if test "$GCC" = yes; then
15857         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15858         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15859       else
15860         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15861         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15862       fi
15863       ;;
15864
15865     uts4*)
15866       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15867       hardcode_libdir_flag_spec_F77='-L$libdir'
15868       hardcode_shlibpath_var_F77=no
15869       ;;
15870
15871     *)
15872       ld_shlibs_F77=no
15873       ;;
15874     esac
15875   fi
15876
15877 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15878 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15879 test "$ld_shlibs_F77" = no && can_build_shared=no
15880
15881 #
15882 # Do we need to explicitly link libc?
15883 #
15884 case "x$archive_cmds_need_lc_F77" in
15885 x|xyes)
15886   # Assume -lc should be added
15887   archive_cmds_need_lc_F77=yes
15888
15889   if test "$enable_shared" = yes && test "$GCC" = yes; then
15890     case $archive_cmds_F77 in
15891     *'~'*)
15892       # FIXME: we may have to deal with multi-command sequences.
15893       ;;
15894     '$CC '*)
15895       # Test whether the compiler implicitly links with -lc since on some
15896       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15897       # to ld, don't add -lc before -lgcc.
15898       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15900       $rm conftest*
15901       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15902
15903       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904   (eval $ac_compile) 2>&5
15905   ac_status=$?
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } 2>conftest.err; then
15908         soname=conftest
15909         lib=conftest
15910         libobjs=conftest.$ac_objext
15911         deplibs=
15912         wl=$lt_prog_compiler_wl_F77
15913         pic_flag=$lt_prog_compiler_pic_F77
15914         compiler_flags=-v
15915         linker_flags=-v
15916         verstring=
15917         output_objdir=.
15918         libname=conftest
15919         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15920         allow_undefined_flag_F77=
15921         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15922   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15923   ac_status=$?
15924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925   (exit $ac_status); }
15926         then
15927           archive_cmds_need_lc_F77=no
15928         else
15929           archive_cmds_need_lc_F77=yes
15930         fi
15931         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15932       else
15933         cat conftest.err 1>&5
15934       fi
15935       $rm conftest*
15936       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15937 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15938       ;;
15939     esac
15940   fi
15941   ;;
15942 esac
15943
15944 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15946 library_names_spec=
15947 libname_spec='lib$name'
15948 soname_spec=
15949 shrext_cmds=".so"
15950 postinstall_cmds=
15951 postuninstall_cmds=
15952 finish_cmds=
15953 finish_eval=
15954 shlibpath_var=
15955 shlibpath_overrides_runpath=unknown
15956 version_type=none
15957 dynamic_linker="$host_os ld.so"
15958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15959 if test "$GCC" = yes; then
15960   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15961   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15962     # if the path contains ";" then we assume it to be the separator
15963     # otherwise default to the standard path separator (i.e. ":") - it is
15964     # assumed that no part of a normal pathname contains ";" but that should
15965     # okay in the real world where ";" in dirpaths is itself problematic.
15966     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15967   else
15968     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15969   fi
15970 else
15971   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15972 fi
15973 need_lib_prefix=unknown
15974 hardcode_into_libs=no
15975
15976 # when you set need_version to no, make sure it does not cause -set_version
15977 # flags to be left without arguments
15978 need_version=unknown
15979
15980 case $host_os in
15981 aix3*)
15982   version_type=linux
15983   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15984   shlibpath_var=LIBPATH
15985
15986   # AIX 3 has no versioning support, so we append a major version to the name.
15987   soname_spec='${libname}${release}${shared_ext}$major'
15988   ;;
15989
15990 aix4* | aix5*)
15991   version_type=linux
15992   need_lib_prefix=no
15993   need_version=no
15994   hardcode_into_libs=yes
15995   if test "$host_cpu" = ia64; then
15996     # AIX 5 supports IA64
15997     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15998     shlibpath_var=LD_LIBRARY_PATH
15999   else
16000     # With GCC up to 2.95.x, collect2 would create an import file
16001     # for dependence libraries.  The import file would start with
16002     # the line `#! .'.  This would cause the generated library to
16003     # depend on `.', always an invalid library.  This was fixed in
16004     # development snapshots of GCC prior to 3.0.
16005     case $host_os in
16006       aix4 | aix4.[01] | aix4.[01].*)
16007       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16008            echo ' yes '
16009            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16010         :
16011       else
16012         can_build_shared=no
16013       fi
16014       ;;
16015     esac
16016     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16017     # soname into executable. Probably we can add versioning support to
16018     # collect2, so additional links can be useful in future.
16019     if test "$aix_use_runtimelinking" = yes; then
16020       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16021       # instead of lib<name>.a to let people know that these are not
16022       # typical AIX shared libraries.
16023       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16024     else
16025       # We preserve .a as extension for shared libraries through AIX4.2
16026       # and later when we are not doing run time linking.
16027       library_names_spec='${libname}${release}.a $libname.a'
16028       soname_spec='${libname}${release}${shared_ext}$major'
16029     fi
16030     shlibpath_var=LIBPATH
16031   fi
16032   ;;
16033
16034 amigaos*)
16035   library_names_spec='$libname.ixlibrary $libname.a'
16036   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16037   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'
16038   ;;
16039
16040 beos*)
16041   library_names_spec='${libname}${shared_ext}'
16042   dynamic_linker="$host_os ld.so"
16043   shlibpath_var=LIBRARY_PATH
16044   ;;
16045
16046 bsdi[45]*)
16047   version_type=linux
16048   need_version=no
16049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050   soname_spec='${libname}${release}${shared_ext}$major'
16051   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16052   shlibpath_var=LD_LIBRARY_PATH
16053   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16054   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16055   # the default ld.so.conf also contains /usr/contrib/lib and
16056   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16057   # libtool to hard-code these into programs
16058   ;;
16059
16060 cygwin* | mingw* | pw32*)
16061   version_type=windows
16062   shrext_cmds=".dll"
16063   need_version=no
16064   need_lib_prefix=no
16065
16066   case $GCC,$host_os in
16067   yes,cygwin* | yes,mingw* | yes,pw32*)
16068     library_names_spec='$libname.dll.a'
16069     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16070     postinstall_cmds='base_file=`basename \${file}`~
16071       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16072       dldir=$destdir/`dirname \$dlpath`~
16073       test -d \$dldir || mkdir -p \$dldir~
16074       $install_prog $dir/$dlname \$dldir/$dlname~
16075       chmod a+x \$dldir/$dlname'
16076     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16077       dlpath=$dir/\$dldll~
16078        $rm \$dlpath'
16079     shlibpath_overrides_runpath=yes
16080
16081     case $host_os in
16082     cygwin*)
16083       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16084       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16085       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16086       ;;
16087     mingw*)
16088       # MinGW DLLs use traditional 'lib' prefix
16089       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16090       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16091       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16092         # It is most probably a Windows format PATH printed by
16093         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16094         # path with ; separators, and with drive letters. We can handle the
16095         # drive letters (cygwin fileutils understands them), so leave them,
16096         # especially as we might pass files found there to a mingw objdump,
16097         # which wouldn't understand a cygwinified path. Ahh.
16098         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16099       else
16100         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16101       fi
16102       ;;
16103     pw32*)
16104       # pw32 DLLs use 'pw' prefix rather than 'lib'
16105       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16106       ;;
16107     esac
16108     ;;
16109
16110   *)
16111     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16112     ;;
16113   esac
16114   dynamic_linker='Win32 ld.exe'
16115   # FIXME: first we should search . and the directory the executable is in
16116   shlibpath_var=PATH
16117   ;;
16118
16119 darwin* | rhapsody*)
16120   dynamic_linker="$host_os dyld"
16121   version_type=darwin
16122   need_lib_prefix=no
16123   need_version=no
16124   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16125   soname_spec='${libname}${release}${major}$shared_ext'
16126   shlibpath_overrides_runpath=yes
16127   shlibpath_var=DYLD_LIBRARY_PATH
16128   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16129   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16130   if test "$GCC" = yes; then
16131     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"`
16132   else
16133     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16134   fi
16135   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16136   ;;
16137
16138 dgux*)
16139   version_type=linux
16140   need_lib_prefix=no
16141   need_version=no
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16143   soname_spec='${libname}${release}${shared_ext}$major'
16144   shlibpath_var=LD_LIBRARY_PATH
16145   ;;
16146
16147 freebsd1*)
16148   dynamic_linker=no
16149   ;;
16150
16151 kfreebsd*-gnu)
16152   version_type=linux
16153   need_lib_prefix=no
16154   need_version=no
16155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16156   soname_spec='${libname}${release}${shared_ext}$major'
16157   shlibpath_var=LD_LIBRARY_PATH
16158   shlibpath_overrides_runpath=no
16159   hardcode_into_libs=yes
16160   dynamic_linker='GNU ld.so'
16161   ;;
16162
16163 freebsd* | dragonfly*)
16164   # DragonFly does not have aout.  When/if they implement a new
16165   # versioning mechanism, adjust this.
16166   if test -x /usr/bin/objformat; then
16167     objformat=`/usr/bin/objformat`
16168   else
16169     case $host_os in
16170     freebsd[123]*) objformat=aout ;;
16171     *) objformat=elf ;;
16172     esac
16173   fi
16174   version_type=freebsd-$objformat
16175   case $version_type in
16176     freebsd-elf*)
16177       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16178       need_version=no
16179       need_lib_prefix=no
16180       ;;
16181     freebsd-*)
16182       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16183       need_version=yes
16184       ;;
16185   esac
16186   shlibpath_var=LD_LIBRARY_PATH
16187   case $host_os in
16188   freebsd2*)
16189     shlibpath_overrides_runpath=yes
16190     ;;
16191   freebsd3.[01]* | freebsdelf3.[01]*)
16192     shlibpath_overrides_runpath=yes
16193     hardcode_into_libs=yes
16194     ;;
16195   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16196   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16197     shlibpath_overrides_runpath=no
16198     hardcode_into_libs=yes
16199     ;;
16200   freebsd*) # from 4.6 on
16201     shlibpath_overrides_runpath=yes
16202     hardcode_into_libs=yes
16203     ;;
16204   esac
16205   ;;
16206
16207 gnu*)
16208   version_type=linux
16209   need_lib_prefix=no
16210   need_version=no
16211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16212   soname_spec='${libname}${release}${shared_ext}$major'
16213   shlibpath_var=LD_LIBRARY_PATH
16214   hardcode_into_libs=yes
16215   ;;
16216
16217 hpux9* | hpux10* | hpux11*)
16218   # Give a soname corresponding to the major version so that dld.sl refuses to
16219   # link against other versions.
16220   version_type=sunos
16221   need_lib_prefix=no
16222   need_version=no
16223   case $host_cpu in
16224   ia64*)
16225     shrext_cmds='.so'
16226     hardcode_into_libs=yes
16227     dynamic_linker="$host_os dld.so"
16228     shlibpath_var=LD_LIBRARY_PATH
16229     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231     soname_spec='${libname}${release}${shared_ext}$major'
16232     if test "X$HPUX_IA64_MODE" = X32; then
16233       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16234     else
16235       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16236     fi
16237     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16238     ;;
16239    hppa*64*)
16240      shrext_cmds='.sl'
16241      hardcode_into_libs=yes
16242      dynamic_linker="$host_os dld.sl"
16243      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16244      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16245      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246      soname_spec='${libname}${release}${shared_ext}$major'
16247      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16248      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16249      ;;
16250    *)
16251     shrext_cmds='.sl'
16252     dynamic_linker="$host_os dld.sl"
16253     shlibpath_var=SHLIB_PATH
16254     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256     soname_spec='${libname}${release}${shared_ext}$major'
16257     ;;
16258   esac
16259   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16260   postinstall_cmds='chmod 555 $lib'
16261   ;;
16262
16263 interix3*)
16264   version_type=linux
16265   need_lib_prefix=no
16266   need_version=no
16267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16268   soname_spec='${libname}${release}${shared_ext}$major'
16269   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16270   shlibpath_var=LD_LIBRARY_PATH
16271   shlibpath_overrides_runpath=no
16272   hardcode_into_libs=yes
16273   ;;
16274
16275 irix5* | irix6* | nonstopux*)
16276   case $host_os in
16277     nonstopux*) version_type=nonstopux ;;
16278     *)
16279         if test "$lt_cv_prog_gnu_ld" = yes; then
16280                 version_type=linux
16281         else
16282                 version_type=irix
16283         fi ;;
16284   esac
16285   need_lib_prefix=no
16286   need_version=no
16287   soname_spec='${libname}${release}${shared_ext}$major'
16288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16289   case $host_os in
16290   irix5* | nonstopux*)
16291     libsuff= shlibsuff=
16292     ;;
16293   *)
16294     case $LD in # libtool.m4 will add one of these switches to LD
16295     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16296       libsuff= shlibsuff= libmagic=32-bit;;
16297     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16298       libsuff=32 shlibsuff=N32 libmagic=N32;;
16299     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16300       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16301     *) libsuff= shlibsuff= libmagic=never-match;;
16302     esac
16303     ;;
16304   esac
16305   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16306   shlibpath_overrides_runpath=no
16307   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16308   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16309   hardcode_into_libs=yes
16310   ;;
16311
16312 # No shared lib support for Linux oldld, aout, or coff.
16313 linux*oldld* | linux*aout* | linux*coff*)
16314   dynamic_linker=no
16315   ;;
16316
16317 # This must be Linux ELF.
16318 linux*)
16319   version_type=linux
16320   need_lib_prefix=no
16321   need_version=no
16322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323   soname_spec='${libname}${release}${shared_ext}$major'
16324   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16325   shlibpath_var=LD_LIBRARY_PATH
16326   shlibpath_overrides_runpath=no
16327   # This implies no fast_install, which is unacceptable.
16328   # Some rework will be needed to allow for fast_install
16329   # before this can be enabled.
16330   hardcode_into_libs=yes
16331
16332   # Append ld.so.conf contents to the search path
16333   if test -f /etc/ld.so.conf; then
16334     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' ' '`
16335     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16336   fi
16337
16338   # We used to test for /lib/ld.so.1 and disable shared libraries on
16339   # powerpc, because MkLinux only supported shared libraries with the
16340   # GNU dynamic linker.  Since this was broken with cross compilers,
16341   # most powerpc-linux boxes support dynamic linking these days and
16342   # people can always --disable-shared, the test was removed, and we
16343   # assume the GNU/Linux dynamic linker is in use.
16344   dynamic_linker='GNU/Linux ld.so'
16345   ;;
16346
16347 knetbsd*-gnu)
16348   version_type=linux
16349   need_lib_prefix=no
16350   need_version=no
16351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16352   soname_spec='${libname}${release}${shared_ext}$major'
16353   shlibpath_var=LD_LIBRARY_PATH
16354   shlibpath_overrides_runpath=no
16355   hardcode_into_libs=yes
16356   dynamic_linker='GNU ld.so'
16357   ;;
16358
16359 netbsd*)
16360   version_type=sunos
16361   need_lib_prefix=no
16362   need_version=no
16363   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16364     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16365     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16366     dynamic_linker='NetBSD (a.out) ld.so'
16367   else
16368     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16369     soname_spec='${libname}${release}${shared_ext}$major'
16370     dynamic_linker='NetBSD ld.elf_so'
16371   fi
16372   shlibpath_var=LD_LIBRARY_PATH
16373   shlibpath_overrides_runpath=yes
16374   hardcode_into_libs=yes
16375   ;;
16376
16377 newsos6)
16378   version_type=linux
16379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380   shlibpath_var=LD_LIBRARY_PATH
16381   shlibpath_overrides_runpath=yes
16382   ;;
16383
16384 nto-qnx*)
16385   version_type=linux
16386   need_lib_prefix=no
16387   need_version=no
16388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16389   soname_spec='${libname}${release}${shared_ext}$major'
16390   shlibpath_var=LD_LIBRARY_PATH
16391   shlibpath_overrides_runpath=yes
16392   ;;
16393
16394 openbsd*)
16395   version_type=sunos
16396   sys_lib_dlsearch_path_spec="/usr/lib"
16397   need_lib_prefix=no
16398   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16399   case $host_os in
16400     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16401     *)                         need_version=no  ;;
16402   esac
16403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16404   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16405   shlibpath_var=LD_LIBRARY_PATH
16406   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16407     case $host_os in
16408       openbsd2.[89] | openbsd2.[89].*)
16409         shlibpath_overrides_runpath=no
16410         ;;
16411       *)
16412         shlibpath_overrides_runpath=yes
16413         ;;
16414       esac
16415   else
16416     shlibpath_overrides_runpath=yes
16417   fi
16418   ;;
16419
16420 os2*)
16421   libname_spec='$name'
16422   shrext_cmds=".dll"
16423   need_lib_prefix=no
16424   library_names_spec='$libname${shared_ext} $libname.a'
16425   dynamic_linker='OS/2 ld.exe'
16426   shlibpath_var=LIBPATH
16427   ;;
16428
16429 osf3* | osf4* | osf5*)
16430   version_type=osf
16431   need_lib_prefix=no
16432   need_version=no
16433   soname_spec='${libname}${release}${shared_ext}$major'
16434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435   shlibpath_var=LD_LIBRARY_PATH
16436   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16437   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16438   ;;
16439
16440 solaris*)
16441   version_type=linux
16442   need_lib_prefix=no
16443   need_version=no
16444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16445   soname_spec='${libname}${release}${shared_ext}$major'
16446   shlibpath_var=LD_LIBRARY_PATH
16447   shlibpath_overrides_runpath=yes
16448   hardcode_into_libs=yes
16449   # ldd complains unless libraries are executable
16450   postinstall_cmds='chmod +x $lib'
16451   ;;
16452
16453 sunos4*)
16454   version_type=sunos
16455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16456   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16457   shlibpath_var=LD_LIBRARY_PATH
16458   shlibpath_overrides_runpath=yes
16459   if test "$with_gnu_ld" = yes; then
16460     need_lib_prefix=no
16461   fi
16462   need_version=yes
16463   ;;
16464
16465 sysv4 | sysv4.3*)
16466   version_type=linux
16467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16468   soname_spec='${libname}${release}${shared_ext}$major'
16469   shlibpath_var=LD_LIBRARY_PATH
16470   case $host_vendor in
16471     sni)
16472       shlibpath_overrides_runpath=no
16473       need_lib_prefix=no
16474       export_dynamic_flag_spec='${wl}-Blargedynsym'
16475       runpath_var=LD_RUN_PATH
16476       ;;
16477     siemens)
16478       need_lib_prefix=no
16479       ;;
16480     motorola)
16481       need_lib_prefix=no
16482       need_version=no
16483       shlibpath_overrides_runpath=no
16484       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16485       ;;
16486   esac
16487   ;;
16488
16489 sysv4*MP*)
16490   if test -d /usr/nec ;then
16491     version_type=linux
16492     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16493     soname_spec='$libname${shared_ext}.$major'
16494     shlibpath_var=LD_LIBRARY_PATH
16495   fi
16496   ;;
16497
16498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16499   version_type=freebsd-elf
16500   need_lib_prefix=no
16501   need_version=no
16502   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16503   soname_spec='${libname}${release}${shared_ext}$major'
16504   shlibpath_var=LD_LIBRARY_PATH
16505   hardcode_into_libs=yes
16506   if test "$with_gnu_ld" = yes; then
16507     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16508     shlibpath_overrides_runpath=no
16509   else
16510     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16511     shlibpath_overrides_runpath=yes
16512     case $host_os in
16513       sco3.2v5*)
16514         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16515         ;;
16516     esac
16517   fi
16518   sys_lib_dlsearch_path_spec='/usr/lib'
16519   ;;
16520
16521 uts4*)
16522   version_type=linux
16523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16524   soname_spec='${libname}${release}${shared_ext}$major'
16525   shlibpath_var=LD_LIBRARY_PATH
16526   ;;
16527
16528 *)
16529   dynamic_linker=no
16530   ;;
16531 esac
16532 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16533 echo "${ECHO_T}$dynamic_linker" >&6; }
16534 test "$dynamic_linker" = no && can_build_shared=no
16535
16536 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16537 if test "$GCC" = yes; then
16538   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16539 fi
16540
16541 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16542 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16543 hardcode_action_F77=
16544 if test -n "$hardcode_libdir_flag_spec_F77" || \
16545    test -n "$runpath_var_F77" || \
16546    test "X$hardcode_automatic_F77" = "Xyes" ; then
16547
16548   # We can hardcode non-existant directories.
16549   if test "$hardcode_direct_F77" != no &&
16550      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16551      # have to relink, otherwise we might link with an installed library
16552      # when we should be linking with a yet-to-be-installed one
16553      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16554      test "$hardcode_minus_L_F77" != no; then
16555     # Linking always hardcodes the temporary library directory.
16556     hardcode_action_F77=relink
16557   else
16558     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16559     hardcode_action_F77=immediate
16560   fi
16561 else
16562   # We cannot hardcode anything, or else we can only hardcode existing
16563   # directories.
16564   hardcode_action_F77=unsupported
16565 fi
16566 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16567 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16568
16569 if test "$hardcode_action_F77" = relink; then
16570   # Fast installation is not supported
16571   enable_fast_install=no
16572 elif test "$shlibpath_overrides_runpath" = yes ||
16573      test "$enable_shared" = no; then
16574   # Fast installation is not necessary
16575   enable_fast_install=needless
16576 fi
16577
16578
16579 # The else clause should only fire when bootstrapping the
16580 # libtool distribution, otherwise you forgot to ship ltmain.sh
16581 # with your package, and you will get complaints that there are
16582 # no rules to generate ltmain.sh.
16583 if test -f "$ltmain"; then
16584   # See if we are running on zsh, and set the options which allow our commands through
16585   # without removal of \ escapes.
16586   if test -n "${ZSH_VERSION+set}" ; then
16587     setopt NO_GLOB_SUBST
16588   fi
16589   # Now quote all the things that may contain metacharacters while being
16590   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16591   # variables and quote the copies for generation of the libtool script.
16592   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16593     SED SHELL STRIP \
16594     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16595     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16596     deplibs_check_method reload_flag reload_cmds need_locks \
16597     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16598     lt_cv_sys_global_symbol_to_c_name_address \
16599     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16600     old_postinstall_cmds old_postuninstall_cmds \
16601     compiler_F77 \
16602     CC_F77 \
16603     LD_F77 \
16604     lt_prog_compiler_wl_F77 \
16605     lt_prog_compiler_pic_F77 \
16606     lt_prog_compiler_static_F77 \
16607     lt_prog_compiler_no_builtin_flag_F77 \
16608     export_dynamic_flag_spec_F77 \
16609     thread_safe_flag_spec_F77 \
16610     whole_archive_flag_spec_F77 \
16611     enable_shared_with_static_runtimes_F77 \
16612     old_archive_cmds_F77 \
16613     old_archive_from_new_cmds_F77 \
16614     predep_objects_F77 \
16615     postdep_objects_F77 \
16616     predeps_F77 \
16617     postdeps_F77 \
16618     compiler_lib_search_path_F77 \
16619     archive_cmds_F77 \
16620     archive_expsym_cmds_F77 \
16621     postinstall_cmds_F77 \
16622     postuninstall_cmds_F77 \
16623     old_archive_from_expsyms_cmds_F77 \
16624     allow_undefined_flag_F77 \
16625     no_undefined_flag_F77 \
16626     export_symbols_cmds_F77 \
16627     hardcode_libdir_flag_spec_F77 \
16628     hardcode_libdir_flag_spec_ld_F77 \
16629     hardcode_libdir_separator_F77 \
16630     hardcode_automatic_F77 \
16631     module_cmds_F77 \
16632     module_expsym_cmds_F77 \
16633     lt_cv_prog_compiler_c_o_F77 \
16634     exclude_expsyms_F77 \
16635     include_expsyms_F77; do
16636
16637     case $var in
16638     old_archive_cmds_F77 | \
16639     old_archive_from_new_cmds_F77 | \
16640     archive_cmds_F77 | \
16641     archive_expsym_cmds_F77 | \
16642     module_cmds_F77 | \
16643     module_expsym_cmds_F77 | \
16644     old_archive_from_expsyms_cmds_F77 | \
16645     export_symbols_cmds_F77 | \
16646     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16647     postinstall_cmds | postuninstall_cmds | \
16648     old_postinstall_cmds | old_postuninstall_cmds | \
16649     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16650       # Double-quote double-evaled strings.
16651       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16652       ;;
16653     *)
16654       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16655       ;;
16656     esac
16657   done
16658
16659   case $lt_echo in
16660   *'\$0 --fallback-echo"')
16661     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16662     ;;
16663   esac
16664
16665 cfgfile="$ofile"
16666
16667   cat <<__EOF__ >> "$cfgfile"
16668 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16669
16670 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16671
16672 # Shell to use when invoking shell scripts.
16673 SHELL=$lt_SHELL
16674
16675 # Whether or not to build shared libraries.
16676 build_libtool_libs=$enable_shared
16677
16678 # Whether or not to build static libraries.
16679 build_old_libs=$enable_static
16680
16681 # Whether or not to add -lc for building shared libraries.
16682 build_libtool_need_lc=$archive_cmds_need_lc_F77
16683
16684 # Whether or not to disallow shared libs when runtime libs are static
16685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16686
16687 # Whether or not to optimize for fast installation.
16688 fast_install=$enable_fast_install
16689
16690 # The host system.
16691 host_alias=$host_alias
16692 host=$host
16693 host_os=$host_os
16694
16695 # The build system.
16696 build_alias=$build_alias
16697 build=$build
16698 build_os=$build_os
16699
16700 # An echo program that does not interpret backslashes.
16701 echo=$lt_echo
16702
16703 # The archiver.
16704 AR=$lt_AR
16705 AR_FLAGS=$lt_AR_FLAGS
16706
16707 # A C compiler.
16708 LTCC=$lt_LTCC
16709
16710 # LTCC compiler flags.
16711 LTCFLAGS=$lt_LTCFLAGS
16712
16713 # A language-specific compiler.
16714 CC=$lt_compiler_F77
16715
16716 # Is the compiler the GNU C compiler?
16717 with_gcc=$GCC_F77
16718
16719 # An ERE matcher.
16720 EGREP=$lt_EGREP
16721
16722 # The linker used to build libraries.
16723 LD=$lt_LD_F77
16724
16725 # Whether we need hard or soft links.
16726 LN_S=$lt_LN_S
16727
16728 # A BSD-compatible nm program.
16729 NM=$lt_NM
16730
16731 # A symbol stripping program
16732 STRIP=$lt_STRIP
16733
16734 # Used to examine libraries when file_magic_cmd begins "file"
16735 MAGIC_CMD=$MAGIC_CMD
16736
16737 # Used on cygwin: DLL creation program.
16738 DLLTOOL="$DLLTOOL"
16739
16740 # Used on cygwin: object dumper.
16741 OBJDUMP="$OBJDUMP"
16742
16743 # Used on cygwin: assembler.
16744 AS="$AS"
16745
16746 # The name of the directory that contains temporary libtool files.
16747 objdir=$objdir
16748
16749 # How to create reloadable object files.
16750 reload_flag=$lt_reload_flag
16751 reload_cmds=$lt_reload_cmds
16752
16753 # How to pass a linker flag through the compiler.
16754 wl=$lt_lt_prog_compiler_wl_F77
16755
16756 # Object file suffix (normally "o").
16757 objext="$ac_objext"
16758
16759 # Old archive suffix (normally "a").
16760 libext="$libext"
16761
16762 # Shared library suffix (normally ".so").
16763 shrext_cmds='$shrext_cmds'
16764
16765 # Executable file suffix (normally "").
16766 exeext="$exeext"
16767
16768 # Additional compiler flags for building library objects.
16769 pic_flag=$lt_lt_prog_compiler_pic_F77
16770 pic_mode=$pic_mode
16771
16772 # What is the maximum length of a command?
16773 max_cmd_len=$lt_cv_sys_max_cmd_len
16774
16775 # Does compiler simultaneously support -c and -o options?
16776 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16777
16778 # Must we lock files when doing compilation?
16779 need_locks=$lt_need_locks
16780
16781 # Do we need the lib prefix for modules?
16782 need_lib_prefix=$need_lib_prefix
16783
16784 # Do we need a version for libraries?
16785 need_version=$need_version
16786
16787 # Whether dlopen is supported.
16788 dlopen_support=$enable_dlopen
16789
16790 # Whether dlopen of programs is supported.
16791 dlopen_self=$enable_dlopen_self
16792
16793 # Whether dlopen of statically linked programs is supported.
16794 dlopen_self_static=$enable_dlopen_self_static
16795
16796 # Compiler flag to prevent dynamic linking.
16797 link_static_flag=$lt_lt_prog_compiler_static_F77
16798
16799 # Compiler flag to turn off builtin functions.
16800 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16801
16802 # Compiler flag to allow reflexive dlopens.
16803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16804
16805 # Compiler flag to generate shared objects directly from archives.
16806 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16807
16808 # Compiler flag to generate thread-safe objects.
16809 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16810
16811 # Library versioning type.
16812 version_type=$version_type
16813
16814 # Format of library name prefix.
16815 libname_spec=$lt_libname_spec
16816
16817 # List of archive names.  First name is the real one, the rest are links.
16818 # The last name is the one that the linker finds with -lNAME.
16819 library_names_spec=$lt_library_names_spec
16820
16821 # The coded name of the library, if different from the real name.
16822 soname_spec=$lt_soname_spec
16823
16824 # Commands used to build and install an old-style archive.
16825 RANLIB=$lt_RANLIB
16826 old_archive_cmds=$lt_old_archive_cmds_F77
16827 old_postinstall_cmds=$lt_old_postinstall_cmds
16828 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16829
16830 # Create an old-style archive from a shared archive.
16831 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16832
16833 # Create a temporary old-style archive to link instead of a shared archive.
16834 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16835
16836 # Commands used to build and install a shared archive.
16837 archive_cmds=$lt_archive_cmds_F77
16838 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16839 postinstall_cmds=$lt_postinstall_cmds
16840 postuninstall_cmds=$lt_postuninstall_cmds
16841
16842 # Commands used to build a loadable module (assumed same as above if empty)
16843 module_cmds=$lt_module_cmds_F77
16844 module_expsym_cmds=$lt_module_expsym_cmds_F77
16845
16846 # Commands to strip libraries.
16847 old_striplib=$lt_old_striplib
16848 striplib=$lt_striplib
16849
16850 # Dependencies to place before the objects being linked to create a
16851 # shared library.
16852 predep_objects=$lt_predep_objects_F77
16853
16854 # Dependencies to place after the objects being linked to create a
16855 # shared library.
16856 postdep_objects=$lt_postdep_objects_F77
16857
16858 # Dependencies to place before the objects being linked to create a
16859 # shared library.
16860 predeps=$lt_predeps_F77
16861
16862 # Dependencies to place after the objects being linked to create a
16863 # shared library.
16864 postdeps=$lt_postdeps_F77
16865
16866 # The library search path used internally by the compiler when linking
16867 # a shared library.
16868 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16869
16870 # Method to check whether dependent libraries are shared objects.
16871 deplibs_check_method=$lt_deplibs_check_method
16872
16873 # Command to use when deplibs_check_method == file_magic.
16874 file_magic_cmd=$lt_file_magic_cmd
16875
16876 # Flag that allows shared libraries with undefined symbols to be built.
16877 allow_undefined_flag=$lt_allow_undefined_flag_F77
16878
16879 # Flag that forces no undefined symbols.
16880 no_undefined_flag=$lt_no_undefined_flag_F77
16881
16882 # Commands used to finish a libtool library installation in a directory.
16883 finish_cmds=$lt_finish_cmds
16884
16885 # Same as above, but a single script fragment to be evaled but not shown.
16886 finish_eval=$lt_finish_eval
16887
16888 # Take the output of nm and produce a listing of raw symbols and C names.
16889 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16890
16891 # Transform the output of nm in a proper C declaration
16892 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16893
16894 # Transform the output of nm in a C name address pair
16895 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16896
16897 # This is the shared library runtime path variable.
16898 runpath_var=$runpath_var
16899
16900 # This is the shared library path variable.
16901 shlibpath_var=$shlibpath_var
16902
16903 # Is shlibpath searched before the hard-coded library search path?
16904 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16905
16906 # How to hardcode a shared library path into an executable.
16907 hardcode_action=$hardcode_action_F77
16908
16909 # Whether we should hardcode library paths into libraries.
16910 hardcode_into_libs=$hardcode_into_libs
16911
16912 # Flag to hardcode \$libdir into a binary during linking.
16913 # This must work even if \$libdir does not exist.
16914 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16915
16916 # If ld is used when linking, flag to hardcode \$libdir into
16917 # a binary during linking. This must work even if \$libdir does
16918 # not exist.
16919 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16920
16921 # Whether we need a single -rpath flag with a separated argument.
16922 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16923
16924 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16925 # resulting binary.
16926 hardcode_direct=$hardcode_direct_F77
16927
16928 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16929 # resulting binary.
16930 hardcode_minus_L=$hardcode_minus_L_F77
16931
16932 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16933 # the resulting binary.
16934 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16935
16936 # Set to yes if building a shared library automatically hardcodes DIR into the library
16937 # and all subsequent libraries and executables linked against it.
16938 hardcode_automatic=$hardcode_automatic_F77
16939
16940 # Variables whose values should be saved in libtool wrapper scripts and
16941 # restored at relink time.
16942 variables_saved_for_relink="$variables_saved_for_relink"
16943
16944 # Whether libtool must link a program against all its dependency libraries.
16945 link_all_deplibs=$link_all_deplibs_F77
16946
16947 # Compile-time system search path for libraries
16948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16949
16950 # Run-time system search path for libraries
16951 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16952
16953 # Fix the shell variable \$srcfile for the compiler.
16954 fix_srcfile_path="$fix_srcfile_path_F77"
16955
16956 # Set to yes if exported symbols are required.
16957 always_export_symbols=$always_export_symbols_F77
16958
16959 # The commands to list exported symbols.
16960 export_symbols_cmds=$lt_export_symbols_cmds_F77
16961
16962 # The commands to extract the exported symbol list from a shared archive.
16963 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16964
16965 # Symbols that should not be listed in the preloaded symbols.
16966 exclude_expsyms=$lt_exclude_expsyms_F77
16967
16968 # Symbols that must always be exported.
16969 include_expsyms=$lt_include_expsyms_F77
16970
16971 # ### END LIBTOOL TAG CONFIG: $tagname
16972
16973 __EOF__
16974
16975
16976 else
16977   # If there is no Makefile yet, we rely on a make rule to execute
16978   # `config.status --recheck' to rerun these tests and create the
16979   # libtool script then.
16980   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16981   if test -f "$ltmain_in"; then
16982     test -f Makefile && make "$ltmain"
16983   fi
16984 fi
16985
16986
16987 ac_ext=c
16988 ac_cpp='$CPP $CPPFLAGS'
16989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16992
16993 CC="$lt_save_CC"
16994
16995         else
16996           tagname=""
16997         fi
16998         ;;
16999
17000       GCJ)
17001         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17002
17003
17004 # Source file extension for Java test sources.
17005 ac_ext=java
17006
17007 # Object file extension for compiled Java test sources.
17008 objext=o
17009 objext_GCJ=$objext
17010
17011 # Code to be used in simple compile tests
17012 lt_simple_compile_test_code="class foo {}\n"
17013
17014 # Code to be used in simple link tests
17015 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17016
17017 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17018
17019 # If no C compiler was specified, use CC.
17020 LTCC=${LTCC-"$CC"}
17021
17022 # If no C compiler flags were specified, use CFLAGS.
17023 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17024
17025 # Allow CC to be a program name with arguments.
17026 compiler=$CC
17027
17028
17029 # save warnings/boilerplate of simple test code
17030 ac_outfile=conftest.$ac_objext
17031 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17032 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17033 _lt_compiler_boilerplate=`cat conftest.err`
17034 $rm conftest*
17035
17036 ac_outfile=conftest.$ac_objext
17037 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17038 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17039 _lt_linker_boilerplate=`cat conftest.err`
17040 $rm conftest*
17041
17042
17043 # Allow CC to be a program name with arguments.
17044 lt_save_CC="$CC"
17045 CC=${GCJ-"gcj"}
17046 compiler=$CC
17047 compiler_GCJ=$CC
17048 for cc_temp in $compiler""; do
17049   case $cc_temp in
17050     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17051     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17052     \-*) ;;
17053     *) break;;
17054   esac
17055 done
17056 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17057
17058
17059 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17060 archive_cmds_need_lc_GCJ=no
17061
17062 old_archive_cmds_GCJ=$old_archive_cmds
17063
17064 ## CAVEAT EMPTOR:
17065 ## There is no encapsulation within the following macros, do not change
17066 ## the running order or otherwise move them around unless you know exactly
17067 ## what you are doing...
17068
17069 lt_prog_compiler_no_builtin_flag_GCJ=
17070
17071 if test "$GCC" = yes; then
17072   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17073
17074
17075 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17076 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17077 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17078   echo $ECHO_N "(cached) $ECHO_C" >&6
17079 else
17080   lt_cv_prog_compiler_rtti_exceptions=no
17081   ac_outfile=conftest.$ac_objext
17082    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17083    lt_compiler_flag="-fno-rtti -fno-exceptions"
17084    # Insert the option either (1) after the last *FLAGS variable, or
17085    # (2) before a word containing "conftest.", or (3) at the end.
17086    # Note that $ac_compile itself does not contain backslashes and begins
17087    # with a dollar sign (not a hyphen), so the echo should work correctly.
17088    # The option is referenced via a variable to avoid confusing sed.
17089    lt_compile=`echo "$ac_compile" | $SED \
17090    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17091    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17092    -e 's:$: $lt_compiler_flag:'`
17093    (eval echo "\"\$as_me:17093: $lt_compile\"" >&5)
17094    (eval "$lt_compile" 2>conftest.err)
17095    ac_status=$?
17096    cat conftest.err >&5
17097    echo "$as_me:17097: \$? = $ac_status" >&5
17098    if (exit $ac_status) && test -s "$ac_outfile"; then
17099      # The compiler can only warn and ignore the option if not recognized
17100      # So say no if there are warnings other than the usual output.
17101      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17102      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17103      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17104        lt_cv_prog_compiler_rtti_exceptions=yes
17105      fi
17106    fi
17107    $rm conftest*
17108
17109 fi
17110 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17111 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17112
17113 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17114     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17115 else
17116     :
17117 fi
17118
17119 fi
17120
17121 lt_prog_compiler_wl_GCJ=
17122 lt_prog_compiler_pic_GCJ=
17123 lt_prog_compiler_static_GCJ=
17124
17125 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17126 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17127
17128   if test "$GCC" = yes; then
17129     lt_prog_compiler_wl_GCJ='-Wl,'
17130     lt_prog_compiler_static_GCJ='-static'
17131
17132     case $host_os in
17133       aix*)
17134       # All AIX code is PIC.
17135       if test "$host_cpu" = ia64; then
17136         # AIX 5 now supports IA64 processor
17137         lt_prog_compiler_static_GCJ='-Bstatic'
17138       fi
17139       ;;
17140
17141     amigaos*)
17142       # FIXME: we need at least 68020 code to build shared libraries, but
17143       # adding the `-m68020' flag to GCC prevents building anything better,
17144       # like `-m68040'.
17145       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17146       ;;
17147
17148     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17149       # PIC is the default for these OSes.
17150       ;;
17151
17152     mingw* | pw32* | os2*)
17153       # This hack is so that the source file can tell whether it is being
17154       # built for inclusion in a dll (and should export symbols for example).
17155       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17156       ;;
17157
17158     darwin* | rhapsody*)
17159       # PIC is the default on this platform
17160       # Common symbols not allowed in MH_DYLIB files
17161       lt_prog_compiler_pic_GCJ='-fno-common'
17162       ;;
17163
17164     interix3*)
17165       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17166       # Instead, we relocate shared libraries at runtime.
17167       ;;
17168
17169     msdosdjgpp*)
17170       # Just because we use GCC doesn't mean we suddenly get shared libraries
17171       # on systems that don't support them.
17172       lt_prog_compiler_can_build_shared_GCJ=no
17173       enable_shared=no
17174       ;;
17175
17176     sysv4*MP*)
17177       if test -d /usr/nec; then
17178         lt_prog_compiler_pic_GCJ=-Kconform_pic
17179       fi
17180       ;;
17181
17182     hpux*)
17183       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17184       # not for PA HP-UX.
17185       case $host_cpu in
17186       hppa*64*|ia64*)
17187         # +Z the default
17188         ;;
17189       *)
17190         lt_prog_compiler_pic_GCJ='-fPIC'
17191         ;;
17192       esac
17193       ;;
17194
17195     *)
17196       lt_prog_compiler_pic_GCJ='-fPIC'
17197       ;;
17198     esac
17199   else
17200     # PORTME Check for flag to pass linker flags through the system compiler.
17201     case $host_os in
17202     aix*)
17203       lt_prog_compiler_wl_GCJ='-Wl,'
17204       if test "$host_cpu" = ia64; then
17205         # AIX 5 now supports IA64 processor
17206         lt_prog_compiler_static_GCJ='-Bstatic'
17207       else
17208         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17209       fi
17210       ;;
17211       darwin*)
17212         # PIC is the default on this platform
17213         # Common symbols not allowed in MH_DYLIB files
17214        case $cc_basename in
17215          xlc*)
17216          lt_prog_compiler_pic_GCJ='-qnocommon'
17217          lt_prog_compiler_wl_GCJ='-Wl,'
17218          ;;
17219        esac
17220        ;;
17221
17222     mingw* | pw32* | os2*)
17223       # This hack is so that the source file can tell whether it is being
17224       # built for inclusion in a dll (and should export symbols for example).
17225       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17226       ;;
17227
17228     hpux9* | hpux10* | hpux11*)
17229       lt_prog_compiler_wl_GCJ='-Wl,'
17230       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17231       # not for PA HP-UX.
17232       case $host_cpu in
17233       hppa*64*|ia64*)
17234         # +Z the default
17235         ;;
17236       *)
17237         lt_prog_compiler_pic_GCJ='+Z'
17238         ;;
17239       esac
17240       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17241       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17242       ;;
17243
17244     irix5* | irix6* | nonstopux*)
17245       lt_prog_compiler_wl_GCJ='-Wl,'
17246       # PIC (with -KPIC) is the default.
17247       lt_prog_compiler_static_GCJ='-non_shared'
17248       ;;
17249
17250     newsos6)
17251       lt_prog_compiler_pic_GCJ='-KPIC'
17252       lt_prog_compiler_static_GCJ='-Bstatic'
17253       ;;
17254
17255     linux*)
17256       case $cc_basename in
17257       icc* | ecc*)
17258         lt_prog_compiler_wl_GCJ='-Wl,'
17259         lt_prog_compiler_pic_GCJ='-KPIC'
17260         lt_prog_compiler_static_GCJ='-static'
17261         ;;
17262       pgcc* | pgf77* | pgf90* | pgf95*)
17263         # Portland Group compilers (*not* the Pentium gcc compiler,
17264         # which looks to be a dead project)
17265         lt_prog_compiler_wl_GCJ='-Wl,'
17266         lt_prog_compiler_pic_GCJ='-fpic'
17267         lt_prog_compiler_static_GCJ='-Bstatic'
17268         ;;
17269       ccc*)
17270         lt_prog_compiler_wl_GCJ='-Wl,'
17271         # All Alpha code is PIC.
17272         lt_prog_compiler_static_GCJ='-non_shared'
17273         ;;
17274       esac
17275       ;;
17276
17277     osf3* | osf4* | osf5*)
17278       lt_prog_compiler_wl_GCJ='-Wl,'
17279       # All OSF/1 code is PIC.
17280       lt_prog_compiler_static_GCJ='-non_shared'
17281       ;;
17282
17283     solaris*)
17284       lt_prog_compiler_pic_GCJ='-KPIC'
17285       lt_prog_compiler_static_GCJ='-Bstatic'
17286       case $cc_basename in
17287       f77* | f90* | f95*)
17288         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17289       *)
17290         lt_prog_compiler_wl_GCJ='-Wl,';;
17291       esac
17292       ;;
17293
17294     sunos4*)
17295       lt_prog_compiler_wl_GCJ='-Qoption ld '
17296       lt_prog_compiler_pic_GCJ='-PIC'
17297       lt_prog_compiler_static_GCJ='-Bstatic'
17298       ;;
17299
17300     sysv4 | sysv4.2uw2* | sysv4.3*)
17301       lt_prog_compiler_wl_GCJ='-Wl,'
17302       lt_prog_compiler_pic_GCJ='-KPIC'
17303       lt_prog_compiler_static_GCJ='-Bstatic'
17304       ;;
17305
17306     sysv4*MP*)
17307       if test -d /usr/nec ;then
17308         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17309         lt_prog_compiler_static_GCJ='-Bstatic'
17310       fi
17311       ;;
17312
17313     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17314       lt_prog_compiler_wl_GCJ='-Wl,'
17315       lt_prog_compiler_pic_GCJ='-KPIC'
17316       lt_prog_compiler_static_GCJ='-Bstatic'
17317       ;;
17318
17319     unicos*)
17320       lt_prog_compiler_wl_GCJ='-Wl,'
17321       lt_prog_compiler_can_build_shared_GCJ=no
17322       ;;
17323
17324     uts4*)
17325       lt_prog_compiler_pic_GCJ='-pic'
17326       lt_prog_compiler_static_GCJ='-Bstatic'
17327       ;;
17328
17329     *)
17330       lt_prog_compiler_can_build_shared_GCJ=no
17331       ;;
17332     esac
17333   fi
17334
17335 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17336 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17337
17338 #
17339 # Check to make sure the PIC flag actually works.
17340 #
17341 if test -n "$lt_prog_compiler_pic_GCJ"; then
17342
17343 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17344 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17345 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348   lt_prog_compiler_pic_works_GCJ=no
17349   ac_outfile=conftest.$ac_objext
17350    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17351    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17352    # Insert the option either (1) after the last *FLAGS variable, or
17353    # (2) before a word containing "conftest.", or (3) at the end.
17354    # Note that $ac_compile itself does not contain backslashes and begins
17355    # with a dollar sign (not a hyphen), so the echo should work correctly.
17356    # The option is referenced via a variable to avoid confusing sed.
17357    lt_compile=`echo "$ac_compile" | $SED \
17358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17360    -e 's:$: $lt_compiler_flag:'`
17361    (eval echo "\"\$as_me:17361: $lt_compile\"" >&5)
17362    (eval "$lt_compile" 2>conftest.err)
17363    ac_status=$?
17364    cat conftest.err >&5
17365    echo "$as_me:17365: \$? = $ac_status" >&5
17366    if (exit $ac_status) && test -s "$ac_outfile"; then
17367      # The compiler can only warn and ignore the option if not recognized
17368      # So say no if there are warnings other than the usual output.
17369      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17370      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17371      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17372        lt_prog_compiler_pic_works_GCJ=yes
17373      fi
17374    fi
17375    $rm conftest*
17376
17377 fi
17378 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17379 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17380
17381 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17382     case $lt_prog_compiler_pic_GCJ in
17383      "" | " "*) ;;
17384      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17385      esac
17386 else
17387     lt_prog_compiler_pic_GCJ=
17388      lt_prog_compiler_can_build_shared_GCJ=no
17389 fi
17390
17391 fi
17392 case $host_os in
17393   # For platforms which do not support PIC, -DPIC is meaningless:
17394   *djgpp*)
17395     lt_prog_compiler_pic_GCJ=
17396     ;;
17397   *)
17398     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17399     ;;
17400 esac
17401
17402 #
17403 # Check to make sure the static flag actually works.
17404 #
17405 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17406 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17407 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17408 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17409   echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411   lt_prog_compiler_static_works_GCJ=no
17412    save_LDFLAGS="$LDFLAGS"
17413    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17414    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17415    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17416      # The linker can only warn and ignore the option if not recognized
17417      # So say no if there are warnings
17418      if test -s conftest.err; then
17419        # Append any errors to the config.log.
17420        cat conftest.err 1>&5
17421        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17422        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17423        if diff conftest.exp conftest.er2 >/dev/null; then
17424          lt_prog_compiler_static_works_GCJ=yes
17425        fi
17426      else
17427        lt_prog_compiler_static_works_GCJ=yes
17428      fi
17429    fi
17430    $rm conftest*
17431    LDFLAGS="$save_LDFLAGS"
17432
17433 fi
17434 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17435 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17436
17437 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17438     :
17439 else
17440     lt_prog_compiler_static_GCJ=
17441 fi
17442
17443
17444 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17445 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17446 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17447   echo $ECHO_N "(cached) $ECHO_C" >&6
17448 else
17449   lt_cv_prog_compiler_c_o_GCJ=no
17450    $rm -r conftest 2>/dev/null
17451    mkdir conftest
17452    cd conftest
17453    mkdir out
17454    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17455
17456    lt_compiler_flag="-o out/conftest2.$ac_objext"
17457    # Insert the option either (1) after the last *FLAGS variable, or
17458    # (2) before a word containing "conftest.", or (3) at the end.
17459    # Note that $ac_compile itself does not contain backslashes and begins
17460    # with a dollar sign (not a hyphen), so the echo should work correctly.
17461    lt_compile=`echo "$ac_compile" | $SED \
17462    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17463    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17464    -e 's:$: $lt_compiler_flag:'`
17465    (eval echo "\"\$as_me:17465: $lt_compile\"" >&5)
17466    (eval "$lt_compile" 2>out/conftest.err)
17467    ac_status=$?
17468    cat out/conftest.err >&5
17469    echo "$as_me:17469: \$? = $ac_status" >&5
17470    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17471    then
17472      # The compiler can only warn and ignore the option if not recognized
17473      # So say no if there are warnings
17474      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17475      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17476      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17477        lt_cv_prog_compiler_c_o_GCJ=yes
17478      fi
17479    fi
17480    chmod u+w . 2>&5
17481    $rm conftest*
17482    # SGI C++ compiler will create directory out/ii_files/ for
17483    # template instantiation
17484    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17485    $rm out/* && rmdir out
17486    cd ..
17487    rmdir conftest
17488    $rm conftest*
17489
17490 fi
17491 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17492 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17493
17494
17495 hard_links="nottested"
17496 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17497   # do not overwrite the value of need_locks provided by the user
17498   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17499 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17500   hard_links=yes
17501   $rm conftest*
17502   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17503   touch conftest.a
17504   ln conftest.a conftest.b 2>&5 || hard_links=no
17505   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17506   { echo "$as_me:$LINENO: result: $hard_links" >&5
17507 echo "${ECHO_T}$hard_links" >&6; }
17508   if test "$hard_links" = no; then
17509     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17510 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17511     need_locks=warn
17512   fi
17513 else
17514   need_locks=no
17515 fi
17516
17517 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17519
17520   runpath_var=
17521   allow_undefined_flag_GCJ=
17522   enable_shared_with_static_runtimes_GCJ=no
17523   archive_cmds_GCJ=
17524   archive_expsym_cmds_GCJ=
17525   old_archive_From_new_cmds_GCJ=
17526   old_archive_from_expsyms_cmds_GCJ=
17527   export_dynamic_flag_spec_GCJ=
17528   whole_archive_flag_spec_GCJ=
17529   thread_safe_flag_spec_GCJ=
17530   hardcode_libdir_flag_spec_GCJ=
17531   hardcode_libdir_flag_spec_ld_GCJ=
17532   hardcode_libdir_separator_GCJ=
17533   hardcode_direct_GCJ=no
17534   hardcode_minus_L_GCJ=no
17535   hardcode_shlibpath_var_GCJ=unsupported
17536   link_all_deplibs_GCJ=unknown
17537   hardcode_automatic_GCJ=no
17538   module_cmds_GCJ=
17539   module_expsym_cmds_GCJ=
17540   always_export_symbols_GCJ=no
17541   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17542   # include_expsyms should be a list of space-separated symbols to be *always*
17543   # included in the symbol list
17544   include_expsyms_GCJ=
17545   # exclude_expsyms can be an extended regexp of symbols to exclude
17546   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17547   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17548   # as well as any symbol that contains `d'.
17549   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17550   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17551   # platforms (ab)use it in PIC code, but their linkers get confused if
17552   # the symbol is explicitly referenced.  Since portable code cannot
17553   # rely on this symbol name, it's probably fine to never include it in
17554   # preloaded symbol tables.
17555   extract_expsyms_cmds=
17556   # Just being paranoid about ensuring that cc_basename is set.
17557   for cc_temp in $compiler""; do
17558   case $cc_temp in
17559     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17560     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17561     \-*) ;;
17562     *) break;;
17563   esac
17564 done
17565 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17566
17567   case $host_os in
17568   cygwin* | mingw* | pw32*)
17569     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17570     # When not using gcc, we currently assume that we are using
17571     # Microsoft Visual C++.
17572     if test "$GCC" != yes; then
17573       with_gnu_ld=no
17574     fi
17575     ;;
17576   interix*)
17577     # we just hope/assume this is gcc and not c89 (= MSVC++)
17578     with_gnu_ld=yes
17579     ;;
17580   openbsd*)
17581     with_gnu_ld=no
17582     ;;
17583   esac
17584
17585   ld_shlibs_GCJ=yes
17586   if test "$with_gnu_ld" = yes; then
17587     # If archive_cmds runs LD, not CC, wlarc should be empty
17588     wlarc='${wl}'
17589
17590     # Set some defaults for GNU ld with shared library support. These
17591     # are reset later if shared libraries are not supported. Putting them
17592     # here allows them to be overridden if necessary.
17593     runpath_var=LD_RUN_PATH
17594     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17595     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17596     # ancient GNU ld didn't support --whole-archive et. al.
17597     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17598         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17599       else
17600         whole_archive_flag_spec_GCJ=
17601     fi
17602     supports_anon_versioning=no
17603     case `$LD -v 2>/dev/null` in
17604       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17605       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17606       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17607       *\ 2.11.*) ;; # other 2.11 versions
17608       *) supports_anon_versioning=yes ;;
17609     esac
17610
17611     # See if GNU ld supports shared libraries.
17612     case $host_os in
17613     aix3* | aix4* | aix5*)
17614       # On AIX/PPC, the GNU linker is very broken
17615       if test "$host_cpu" != ia64; then
17616         ld_shlibs_GCJ=no
17617         cat <<EOF 1>&2
17618
17619 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17620 *** to be unable to reliably create shared libraries on AIX.
17621 *** Therefore, libtool is disabling shared libraries support.  If you
17622 *** really care for shared libraries, you may want to modify your PATH
17623 *** so that a non-GNU linker is found, and then restart.
17624
17625 EOF
17626       fi
17627       ;;
17628
17629     amigaos*)
17630       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)'
17631       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17632       hardcode_minus_L_GCJ=yes
17633
17634       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17635       # that the semantics of dynamic libraries on AmigaOS, at least up
17636       # to version 4, is to share data among multiple programs linked
17637       # with the same dynamic library.  Since this doesn't match the
17638       # behavior of shared libraries on other platforms, we can't use
17639       # them.
17640       ld_shlibs_GCJ=no
17641       ;;
17642
17643     beos*)
17644       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17645         allow_undefined_flag_GCJ=unsupported
17646         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17647         # support --undefined.  This deserves some investigation.  FIXME
17648         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17649       else
17650         ld_shlibs_GCJ=no
17651       fi
17652       ;;
17653
17654     cygwin* | mingw* | pw32*)
17655       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17656       # as there is no search path for DLLs.
17657       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17658       allow_undefined_flag_GCJ=unsupported
17659       always_export_symbols_GCJ=no
17660       enable_shared_with_static_runtimes_GCJ=yes
17661       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17662
17663       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17664         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17665         # If the export-symbols file already is a .def file (1st line
17666         # is EXPORTS), use it as is; otherwise, prepend...
17667         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17668           cp $export_symbols $output_objdir/$soname.def;
17669         else
17670           echo EXPORTS > $output_objdir/$soname.def;
17671           cat $export_symbols >> $output_objdir/$soname.def;
17672         fi~
17673         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17674       else
17675         ld_shlibs_GCJ=no
17676       fi
17677       ;;
17678
17679     interix3*)
17680       hardcode_direct_GCJ=no
17681       hardcode_shlibpath_var_GCJ=no
17682       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17683       export_dynamic_flag_spec_GCJ='${wl}-E'
17684       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17685       # Instead, shared libraries are loaded at an image base (0x10000000 by
17686       # default) and relocated if they conflict, which is a slow very memory
17687       # consuming and fragmenting process.  To avoid this, we pick a random,
17688       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17689       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17690       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'
17691       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'
17692       ;;
17693
17694     linux*)
17695       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17696         tmp_addflag=
17697         case $cc_basename,$host_cpu in
17698         pgcc*)                          # Portland Group C compiler
17699           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'
17700           tmp_addflag=' $pic_flag'
17701           ;;
17702         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17703           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'
17704           tmp_addflag=' $pic_flag -Mnomain' ;;
17705         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17706           tmp_addflag=' -i_dynamic' ;;
17707         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17708           tmp_addflag=' -i_dynamic -nofor_main' ;;
17709         ifc* | ifort*)                  # Intel Fortran compiler
17710           tmp_addflag=' -nofor_main' ;;
17711         esac
17712         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17713
17714         if test $supports_anon_versioning = yes; then
17715           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17716   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17717   $echo "local: *; };" >> $output_objdir/$libname.ver~
17718           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17719         fi
17720       else
17721         ld_shlibs_GCJ=no
17722       fi
17723       ;;
17724
17725     netbsd*)
17726       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17727         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17728         wlarc=
17729       else
17730         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17731         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17732       fi
17733       ;;
17734
17735     solaris*)
17736       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17737         ld_shlibs_GCJ=no
17738         cat <<EOF 1>&2
17739
17740 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17741 *** create shared libraries on Solaris systems.  Therefore, libtool
17742 *** is disabling shared libraries support.  We urge you to upgrade GNU
17743 *** binutils to release 2.9.1 or newer.  Another option is to modify
17744 *** your PATH or compiler configuration so that the native linker is
17745 *** used, and then restart.
17746
17747 EOF
17748       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17749         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17750         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17751       else
17752         ld_shlibs_GCJ=no
17753       fi
17754       ;;
17755
17756     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17757       case `$LD -v 2>&1` in
17758         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17759         ld_shlibs_GCJ=no
17760         cat <<_LT_EOF 1>&2
17761
17762 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17763 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17764 *** is disabling shared libraries support.  We urge you to upgrade GNU
17765 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17766 *** your PATH or compiler configuration so that the native linker is
17767 *** used, and then restart.
17768
17769 _LT_EOF
17770         ;;
17771         *)
17772           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17773             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17774             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17775             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17776           else
17777             ld_shlibs_GCJ=no
17778           fi
17779         ;;
17780       esac
17781       ;;
17782
17783     sunos4*)
17784       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17785       wlarc=
17786       hardcode_direct_GCJ=yes
17787       hardcode_shlibpath_var_GCJ=no
17788       ;;
17789
17790     *)
17791       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17792         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17793         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17794       else
17795         ld_shlibs_GCJ=no
17796       fi
17797       ;;
17798     esac
17799
17800     if test "$ld_shlibs_GCJ" = no; then
17801       runpath_var=
17802       hardcode_libdir_flag_spec_GCJ=
17803       export_dynamic_flag_spec_GCJ=
17804       whole_archive_flag_spec_GCJ=
17805     fi
17806   else
17807     # PORTME fill in a description of your system's linker (not GNU ld)
17808     case $host_os in
17809     aix3*)
17810       allow_undefined_flag_GCJ=unsupported
17811       always_export_symbols_GCJ=yes
17812       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'
17813       # Note: this linker hardcodes the directories in LIBPATH if there
17814       # are no directories specified by -L.
17815       hardcode_minus_L_GCJ=yes
17816       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17817         # Neither direct hardcoding nor static linking is supported with a
17818         # broken collect2.
17819         hardcode_direct_GCJ=unsupported
17820       fi
17821       ;;
17822
17823     aix4* | aix5*)
17824       if test "$host_cpu" = ia64; then
17825         # On IA64, the linker does run time linking by default, so we don't
17826         # have to do anything special.
17827         aix_use_runtimelinking=no
17828         exp_sym_flag='-Bexport'
17829         no_entry_flag=""
17830       else
17831         # If we're using GNU nm, then we don't want the "-C" option.
17832         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17833         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17834           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'
17835         else
17836           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'
17837         fi
17838         aix_use_runtimelinking=no
17839
17840         # Test if we are trying to use run time linking or normal
17841         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17842         # need to do runtime linking.
17843         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17844           for ld_flag in $LDFLAGS; do
17845           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17846             aix_use_runtimelinking=yes
17847             break
17848           fi
17849           done
17850           ;;
17851         esac
17852
17853         exp_sym_flag='-bexport'
17854         no_entry_flag='-bnoentry'
17855       fi
17856
17857       # When large executables or shared objects are built, AIX ld can
17858       # have problems creating the table of contents.  If linking a library
17859       # or program results in "error TOC overflow" add -mminimal-toc to
17860       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17861       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17862
17863       archive_cmds_GCJ=''
17864       hardcode_direct_GCJ=yes
17865       hardcode_libdir_separator_GCJ=':'
17866       link_all_deplibs_GCJ=yes
17867
17868       if test "$GCC" = yes; then
17869         case $host_os in aix4.[012]|aix4.[012].*)
17870         # We only want to do this on AIX 4.2 and lower, the check
17871         # below for broken collect2 doesn't work under 4.3+
17872           collect2name=`${CC} -print-prog-name=collect2`
17873           if test -f "$collect2name" && \
17874            strings "$collect2name" | grep resolve_lib_name >/dev/null
17875           then
17876           # We have reworked collect2
17877           hardcode_direct_GCJ=yes
17878           else
17879           # We have old collect2
17880           hardcode_direct_GCJ=unsupported
17881           # It fails to find uninstalled libraries when the uninstalled
17882           # path is not listed in the libpath.  Setting hardcode_minus_L
17883           # to unsupported forces relinking
17884           hardcode_minus_L_GCJ=yes
17885           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17886           hardcode_libdir_separator_GCJ=
17887           fi
17888           ;;
17889         esac
17890         shared_flag='-shared'
17891         if test "$aix_use_runtimelinking" = yes; then
17892           shared_flag="$shared_flag "'${wl}-G'
17893         fi
17894       else
17895         # not using gcc
17896         if test "$host_cpu" = ia64; then
17897         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17898         # chokes on -Wl,-G. The following line is correct:
17899           shared_flag='-G'
17900         else
17901           if test "$aix_use_runtimelinking" = yes; then
17902             shared_flag='${wl}-G'
17903           else
17904             shared_flag='${wl}-bM:SRE'
17905           fi
17906         fi
17907       fi
17908
17909       # It seems that -bexpall does not export symbols beginning with
17910       # underscore (_), so it is better to generate a list of symbols to export.
17911       always_export_symbols_GCJ=yes
17912       if test "$aix_use_runtimelinking" = yes; then
17913         # Warning - without using the other runtime loading flags (-brtl),
17914         # -berok will link without error, but may produce a broken library.
17915         allow_undefined_flag_GCJ='-berok'
17916        # Determine the default libpath from the value encoded in an empty executable.
17917        cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h.  */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h.  */
17923
17924 int
17925 main ()
17926 {
17927
17928   ;
17929   return 0;
17930 }
17931 _ACEOF
17932 rm -f conftest.$ac_objext conftest$ac_exeext
17933 if { (ac_try="$ac_link"
17934 case "(($ac_try" in
17935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936   *) ac_try_echo=$ac_try;;
17937 esac
17938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939   (eval "$ac_link") 2>conftest.er1
17940   ac_status=$?
17941   grep -v '^ *+' conftest.er1 >conftest.err
17942   rm -f conftest.er1
17943   cat conftest.err >&5
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); } &&
17946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17947   { (case "(($ac_try" in
17948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949   *) ac_try_echo=$ac_try;;
17950 esac
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952   (eval "$ac_try") 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); }; } &&
17956          { ac_try='test -s conftest$ac_exeext'
17957   { (case "(($ac_try" in
17958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959   *) ac_try_echo=$ac_try;;
17960 esac
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962   (eval "$ac_try") 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; }; then
17966
17967 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17968 }'`
17969 # Check for a 64-bit object if we didn't find anything.
17970 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; }
17971 }'`; fi
17972 else
17973   echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17975
17976
17977 fi
17978
17979 rm -f core conftest.err conftest.$ac_objext \
17980       conftest$ac_exeext conftest.$ac_ext
17981 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17982
17983        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17984         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"
17985        else
17986         if test "$host_cpu" = ia64; then
17987           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17988           allow_undefined_flag_GCJ="-z nodefs"
17989           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"
17990         else
17991          # Determine the default libpath from the value encoded in an empty executable.
17992          cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h.  */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h.  */
17998
17999 int
18000 main ()
18001 {
18002
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (ac_try="$ac_link"
18009 case "(($ac_try" in
18010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18011   *) ac_try_echo=$ac_try;;
18012 esac
18013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18014   (eval "$ac_link") 2>conftest.er1
18015   ac_status=$?
18016   grep -v '^ *+' conftest.er1 >conftest.err
18017   rm -f conftest.er1
18018   cat conftest.err >&5
18019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020   (exit $ac_status); } &&
18021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18022   { (case "(($ac_try" in
18023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024   *) ac_try_echo=$ac_try;;
18025 esac
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027   (eval "$ac_try") 2>&5
18028   ac_status=$?
18029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030   (exit $ac_status); }; } &&
18031          { ac_try='test -s conftest$ac_exeext'
18032   { (case "(($ac_try" in
18033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034   *) ac_try_echo=$ac_try;;
18035 esac
18036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18037   (eval "$ac_try") 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; }; then
18041
18042 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18043 }'`
18044 # Check for a 64-bit object if we didn't find anything.
18045 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; }
18046 }'`; fi
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051
18052 fi
18053
18054 rm -f core conftest.err conftest.$ac_objext \
18055       conftest$ac_exeext conftest.$ac_ext
18056 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18057
18058          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18059           # Warning - without using the other run time loading flags,
18060           # -berok will link without error, but may produce a broken library.
18061           no_undefined_flag_GCJ=' ${wl}-bernotok'
18062           allow_undefined_flag_GCJ=' ${wl}-berok'
18063           # Exported symbols can be pulled into shared objects from archives
18064           whole_archive_flag_spec_GCJ='$convenience'
18065           archive_cmds_need_lc_GCJ=yes
18066           # This is similar to how AIX traditionally builds its shared libraries.
18067           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'
18068         fi
18069       fi
18070       ;;
18071
18072     amigaos*)
18073       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)'
18074       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18075       hardcode_minus_L_GCJ=yes
18076       # see comment about different semantics on the GNU ld section
18077       ld_shlibs_GCJ=no
18078       ;;
18079
18080     bsdi[45]*)
18081       export_dynamic_flag_spec_GCJ=-rdynamic
18082       ;;
18083
18084     cygwin* | mingw* | pw32*)
18085       # When not using gcc, we currently assume that we are using
18086       # Microsoft Visual C++.
18087       # hardcode_libdir_flag_spec is actually meaningless, as there is
18088       # no search path for DLLs.
18089       hardcode_libdir_flag_spec_GCJ=' '
18090       allow_undefined_flag_GCJ=unsupported
18091       # Tell ltmain to make .lib files, not .a files.
18092       libext=lib
18093       # Tell ltmain to make .dll files, not .so files.
18094       shrext_cmds=".dll"
18095       # FIXME: Setting linknames here is a bad hack.
18096       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18097       # The linker will automatically build a .lib file if we build a DLL.
18098       old_archive_From_new_cmds_GCJ='true'
18099       # FIXME: Should let the user specify the lib program.
18100       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18101       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18102       enable_shared_with_static_runtimes_GCJ=yes
18103       ;;
18104
18105     darwin* | rhapsody*)
18106       case $host_os in
18107         rhapsody* | darwin1.[012])
18108          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18109          ;;
18110        *) # Darwin 1.3 on
18111          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18112            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18113          else
18114            case ${MACOSX_DEPLOYMENT_TARGET} in
18115              10.[012])
18116                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18117                ;;
18118              10.*)
18119                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18120                ;;
18121            esac
18122          fi
18123          ;;
18124       esac
18125       archive_cmds_need_lc_GCJ=no
18126       hardcode_direct_GCJ=no
18127       hardcode_automatic_GCJ=yes
18128       hardcode_shlibpath_var_GCJ=unsupported
18129       whole_archive_flag_spec_GCJ=''
18130       link_all_deplibs_GCJ=yes
18131     if test "$GCC" = yes ; then
18132         output_verbose_link_cmd='echo'
18133         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18134       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18135       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18136       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}'
18137       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}'
18138     else
18139       case $cc_basename in
18140         xlc*)
18141          output_verbose_link_cmd='echo'
18142          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18143          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18144           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18145          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}'
18146           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}'
18147           ;;
18148        *)
18149          ld_shlibs_GCJ=no
18150           ;;
18151       esac
18152     fi
18153       ;;
18154
18155     dgux*)
18156       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18157       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18158       hardcode_shlibpath_var_GCJ=no
18159       ;;
18160
18161     freebsd1*)
18162       ld_shlibs_GCJ=no
18163       ;;
18164
18165     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18166     # support.  Future versions do this automatically, but an explicit c++rt0.o
18167     # does not break anything, and helps significantly (at the cost of a little
18168     # extra space).
18169     freebsd2.2*)
18170       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18171       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18172       hardcode_direct_GCJ=yes
18173       hardcode_shlibpath_var_GCJ=no
18174       ;;
18175
18176     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18177     freebsd2*)
18178       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18179       hardcode_direct_GCJ=yes
18180       hardcode_minus_L_GCJ=yes
18181       hardcode_shlibpath_var_GCJ=no
18182       ;;
18183
18184     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18185     freebsd* | kfreebsd*-gnu | dragonfly*)
18186       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18187       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18188       hardcode_direct_GCJ=yes
18189       hardcode_shlibpath_var_GCJ=no
18190       ;;
18191
18192     hpux9*)
18193       if test "$GCC" = yes; then
18194         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'
18195       else
18196         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'
18197       fi
18198       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18199       hardcode_libdir_separator_GCJ=:
18200       hardcode_direct_GCJ=yes
18201
18202       # hardcode_minus_L: Not really in the search PATH,
18203       # but as the default location of the library.
18204       hardcode_minus_L_GCJ=yes
18205       export_dynamic_flag_spec_GCJ='${wl}-E'
18206       ;;
18207
18208     hpux10*)
18209       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18210         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18211       else
18212         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18213       fi
18214       if test "$with_gnu_ld" = no; then
18215         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18216         hardcode_libdir_separator_GCJ=:
18217
18218         hardcode_direct_GCJ=yes
18219         export_dynamic_flag_spec_GCJ='${wl}-E'
18220
18221         # hardcode_minus_L: Not really in the search PATH,
18222         # but as the default location of the library.
18223         hardcode_minus_L_GCJ=yes
18224       fi
18225       ;;
18226
18227     hpux11*)
18228       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18229         case $host_cpu in
18230         hppa*64*)
18231           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18232           ;;
18233         ia64*)
18234           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18235           ;;
18236         *)
18237           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18238           ;;
18239         esac
18240       else
18241         case $host_cpu in
18242         hppa*64*)
18243           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18244           ;;
18245         ia64*)
18246           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18247           ;;
18248         *)
18249           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18250           ;;
18251         esac
18252       fi
18253       if test "$with_gnu_ld" = no; then
18254         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18255         hardcode_libdir_separator_GCJ=:
18256
18257         case $host_cpu in
18258         hppa*64*|ia64*)
18259           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18260           hardcode_direct_GCJ=no
18261           hardcode_shlibpath_var_GCJ=no
18262           ;;
18263         *)
18264           hardcode_direct_GCJ=yes
18265           export_dynamic_flag_spec_GCJ='${wl}-E'
18266
18267           # hardcode_minus_L: Not really in the search PATH,
18268           # but as the default location of the library.
18269           hardcode_minus_L_GCJ=yes
18270           ;;
18271         esac
18272       fi
18273       ;;
18274
18275     irix5* | irix6* | nonstopux*)
18276       if test "$GCC" = yes; then
18277         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'
18278       else
18279         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'
18280         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18281       fi
18282       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18283       hardcode_libdir_separator_GCJ=:
18284       link_all_deplibs_GCJ=yes
18285       ;;
18286
18287     netbsd*)
18288       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18289         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18290       else
18291         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18292       fi
18293       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18294       hardcode_direct_GCJ=yes
18295       hardcode_shlibpath_var_GCJ=no
18296       ;;
18297
18298     newsos6)
18299       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18300       hardcode_direct_GCJ=yes
18301       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18302       hardcode_libdir_separator_GCJ=:
18303       hardcode_shlibpath_var_GCJ=no
18304       ;;
18305
18306     openbsd*)
18307       hardcode_direct_GCJ=yes
18308       hardcode_shlibpath_var_GCJ=no
18309       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18310         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18311         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18312         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18313         export_dynamic_flag_spec_GCJ='${wl}-E'
18314       else
18315        case $host_os in
18316          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18317            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18318            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18319            ;;
18320          *)
18321            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18322            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18323            ;;
18324        esac
18325       fi
18326       ;;
18327
18328     os2*)
18329       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18330       hardcode_minus_L_GCJ=yes
18331       allow_undefined_flag_GCJ=unsupported
18332       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'
18333       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18334       ;;
18335
18336     osf3*)
18337       if test "$GCC" = yes; then
18338         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18339         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'
18340       else
18341         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18342         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'
18343       fi
18344       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18345       hardcode_libdir_separator_GCJ=:
18346       ;;
18347
18348     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18349       if test "$GCC" = yes; then
18350         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18351         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'
18352         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18353       else
18354         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18355         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'
18356         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~
18357         $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'
18358
18359         # Both c and cxx compiler support -rpath directly
18360         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18361       fi
18362       hardcode_libdir_separator_GCJ=:
18363       ;;
18364
18365     solaris*)
18366       no_undefined_flag_GCJ=' -z text'
18367       if test "$GCC" = yes; then
18368         wlarc='${wl}'
18369         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18370         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18371           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18372       else
18373         wlarc=''
18374         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18375         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18376         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18377       fi
18378       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18379       hardcode_shlibpath_var_GCJ=no
18380       case $host_os in
18381       solaris2.[0-5] | solaris2.[0-5].*) ;;
18382       *)
18383         # The compiler driver will combine linker options so we
18384         # cannot just pass the convience library names through
18385         # without $wl, iff we do not link with $LD.
18386         # Luckily, gcc supports the same syntax we need for Sun Studio.
18387         # Supported since Solaris 2.6 (maybe 2.5.1?)
18388         case $wlarc in
18389         '')
18390           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18391         *)
18392           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' ;;
18393         esac ;;
18394       esac
18395       link_all_deplibs_GCJ=yes
18396       ;;
18397
18398     sunos4*)
18399       if test "x$host_vendor" = xsequent; then
18400         # Use $CC to link under sequent, because it throws in some extra .o
18401         # files that make .init and .fini sections work.
18402         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18403       else
18404         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18405       fi
18406       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18407       hardcode_direct_GCJ=yes
18408       hardcode_minus_L_GCJ=yes
18409       hardcode_shlibpath_var_GCJ=no
18410       ;;
18411
18412     sysv4)
18413       case $host_vendor in
18414         sni)
18415           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18416           hardcode_direct_GCJ=yes # is this really true???
18417         ;;
18418         siemens)
18419           ## LD is ld it makes a PLAMLIB
18420           ## CC just makes a GrossModule.
18421           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18422           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18423           hardcode_direct_GCJ=no
18424         ;;
18425         motorola)
18426           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18427           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18428         ;;
18429       esac
18430       runpath_var='LD_RUN_PATH'
18431       hardcode_shlibpath_var_GCJ=no
18432       ;;
18433
18434     sysv4.3*)
18435       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18436       hardcode_shlibpath_var_GCJ=no
18437       export_dynamic_flag_spec_GCJ='-Bexport'
18438       ;;
18439
18440     sysv4*MP*)
18441       if test -d /usr/nec; then
18442         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18443         hardcode_shlibpath_var_GCJ=no
18444         runpath_var=LD_RUN_PATH
18445         hardcode_runpath_var=yes
18446         ld_shlibs_GCJ=yes
18447       fi
18448       ;;
18449
18450     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18451       no_undefined_flag_GCJ='${wl}-z,text'
18452       archive_cmds_need_lc_GCJ=no
18453       hardcode_shlibpath_var_GCJ=no
18454       runpath_var='LD_RUN_PATH'
18455
18456       if test "$GCC" = yes; then
18457         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18458         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18459       else
18460         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18461         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18462       fi
18463       ;;
18464
18465     sysv5* | sco3.2v5* | sco5v6*)
18466       # Note: We can NOT use -z defs as we might desire, because we do not
18467       # link with -lc, and that would cause any symbols used from libc to
18468       # always be unresolved, which means just about no library would
18469       # ever link correctly.  If we're not using GNU ld we use -z text
18470       # though, which does catch some bad symbols but isn't as heavy-handed
18471       # as -z defs.
18472       no_undefined_flag_GCJ='${wl}-z,text'
18473       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18474       archive_cmds_need_lc_GCJ=no
18475       hardcode_shlibpath_var_GCJ=no
18476       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18477       hardcode_libdir_separator_GCJ=':'
18478       link_all_deplibs_GCJ=yes
18479       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18480       runpath_var='LD_RUN_PATH'
18481
18482       if test "$GCC" = yes; then
18483         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18484         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18485       else
18486         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18487         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18488       fi
18489       ;;
18490
18491     uts4*)
18492       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18493       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18494       hardcode_shlibpath_var_GCJ=no
18495       ;;
18496
18497     *)
18498       ld_shlibs_GCJ=no
18499       ;;
18500     esac
18501   fi
18502
18503 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18504 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18505 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18506
18507 #
18508 # Do we need to explicitly link libc?
18509 #
18510 case "x$archive_cmds_need_lc_GCJ" in
18511 x|xyes)
18512   # Assume -lc should be added
18513   archive_cmds_need_lc_GCJ=yes
18514
18515   if test "$enable_shared" = yes && test "$GCC" = yes; then
18516     case $archive_cmds_GCJ in
18517     *'~'*)
18518       # FIXME: we may have to deal with multi-command sequences.
18519       ;;
18520     '$CC '*)
18521       # Test whether the compiler implicitly links with -lc since on some
18522       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18523       # to ld, don't add -lc before -lgcc.
18524       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18525 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18526       $rm conftest*
18527       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18528
18529       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18530   (eval $ac_compile) 2>&5
18531   ac_status=$?
18532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533   (exit $ac_status); } 2>conftest.err; then
18534         soname=conftest
18535         lib=conftest
18536         libobjs=conftest.$ac_objext
18537         deplibs=
18538         wl=$lt_prog_compiler_wl_GCJ
18539         pic_flag=$lt_prog_compiler_pic_GCJ
18540         compiler_flags=-v
18541         linker_flags=-v
18542         verstring=
18543         output_objdir=.
18544         libname=conftest
18545         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18546         allow_undefined_flag_GCJ=
18547         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18548   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18549   ac_status=$?
18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551   (exit $ac_status); }
18552         then
18553           archive_cmds_need_lc_GCJ=no
18554         else
18555           archive_cmds_need_lc_GCJ=yes
18556         fi
18557         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18558       else
18559         cat conftest.err 1>&5
18560       fi
18561       $rm conftest*
18562       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18563 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18564       ;;
18565     esac
18566   fi
18567   ;;
18568 esac
18569
18570 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18571 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18572 library_names_spec=
18573 libname_spec='lib$name'
18574 soname_spec=
18575 shrext_cmds=".so"
18576 postinstall_cmds=
18577 postuninstall_cmds=
18578 finish_cmds=
18579 finish_eval=
18580 shlibpath_var=
18581 shlibpath_overrides_runpath=unknown
18582 version_type=none
18583 dynamic_linker="$host_os ld.so"
18584 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18585 if test "$GCC" = yes; then
18586   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18587   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18588     # if the path contains ";" then we assume it to be the separator
18589     # otherwise default to the standard path separator (i.e. ":") - it is
18590     # assumed that no part of a normal pathname contains ";" but that should
18591     # okay in the real world where ";" in dirpaths is itself problematic.
18592     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18593   else
18594     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18595   fi
18596 else
18597   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18598 fi
18599 need_lib_prefix=unknown
18600 hardcode_into_libs=no
18601
18602 # when you set need_version to no, make sure it does not cause -set_version
18603 # flags to be left without arguments
18604 need_version=unknown
18605
18606 case $host_os in
18607 aix3*)
18608   version_type=linux
18609   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18610   shlibpath_var=LIBPATH
18611
18612   # AIX 3 has no versioning support, so we append a major version to the name.
18613   soname_spec='${libname}${release}${shared_ext}$major'
18614   ;;
18615
18616 aix4* | aix5*)
18617   version_type=linux
18618   need_lib_prefix=no
18619   need_version=no
18620   hardcode_into_libs=yes
18621   if test "$host_cpu" = ia64; then
18622     # AIX 5 supports IA64
18623     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18624     shlibpath_var=LD_LIBRARY_PATH
18625   else
18626     # With GCC up to 2.95.x, collect2 would create an import file
18627     # for dependence libraries.  The import file would start with
18628     # the line `#! .'.  This would cause the generated library to
18629     # depend on `.', always an invalid library.  This was fixed in
18630     # development snapshots of GCC prior to 3.0.
18631     case $host_os in
18632       aix4 | aix4.[01] | aix4.[01].*)
18633       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18634            echo ' yes '
18635            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18636         :
18637       else
18638         can_build_shared=no
18639       fi
18640       ;;
18641     esac
18642     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18643     # soname into executable. Probably we can add versioning support to
18644     # collect2, so additional links can be useful in future.
18645     if test "$aix_use_runtimelinking" = yes; then
18646       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18647       # instead of lib<name>.a to let people know that these are not
18648       # typical AIX shared libraries.
18649       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18650     else
18651       # We preserve .a as extension for shared libraries through AIX4.2
18652       # and later when we are not doing run time linking.
18653       library_names_spec='${libname}${release}.a $libname.a'
18654       soname_spec='${libname}${release}${shared_ext}$major'
18655     fi
18656     shlibpath_var=LIBPATH
18657   fi
18658   ;;
18659
18660 amigaos*)
18661   library_names_spec='$libname.ixlibrary $libname.a'
18662   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18663   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'
18664   ;;
18665
18666 beos*)
18667   library_names_spec='${libname}${shared_ext}'
18668   dynamic_linker="$host_os ld.so"
18669   shlibpath_var=LIBRARY_PATH
18670   ;;
18671
18672 bsdi[45]*)
18673   version_type=linux
18674   need_version=no
18675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18676   soname_spec='${libname}${release}${shared_ext}$major'
18677   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18678   shlibpath_var=LD_LIBRARY_PATH
18679   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18680   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18681   # the default ld.so.conf also contains /usr/contrib/lib and
18682   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18683   # libtool to hard-code these into programs
18684   ;;
18685
18686 cygwin* | mingw* | pw32*)
18687   version_type=windows
18688   shrext_cmds=".dll"
18689   need_version=no
18690   need_lib_prefix=no
18691
18692   case $GCC,$host_os in
18693   yes,cygwin* | yes,mingw* | yes,pw32*)
18694     library_names_spec='$libname.dll.a'
18695     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18696     postinstall_cmds='base_file=`basename \${file}`~
18697       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18698       dldir=$destdir/`dirname \$dlpath`~
18699       test -d \$dldir || mkdir -p \$dldir~
18700       $install_prog $dir/$dlname \$dldir/$dlname~
18701       chmod a+x \$dldir/$dlname'
18702     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18703       dlpath=$dir/\$dldll~
18704        $rm \$dlpath'
18705     shlibpath_overrides_runpath=yes
18706
18707     case $host_os in
18708     cygwin*)
18709       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18710       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18711       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18712       ;;
18713     mingw*)
18714       # MinGW DLLs use traditional 'lib' prefix
18715       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18716       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18717       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18718         # It is most probably a Windows format PATH printed by
18719         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18720         # path with ; separators, and with drive letters. We can handle the
18721         # drive letters (cygwin fileutils understands them), so leave them,
18722         # especially as we might pass files found there to a mingw objdump,
18723         # which wouldn't understand a cygwinified path. Ahh.
18724         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18725       else
18726         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18727       fi
18728       ;;
18729     pw32*)
18730       # pw32 DLLs use 'pw' prefix rather than 'lib'
18731       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18732       ;;
18733     esac
18734     ;;
18735
18736   *)
18737     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18738     ;;
18739   esac
18740   dynamic_linker='Win32 ld.exe'
18741   # FIXME: first we should search . and the directory the executable is in
18742   shlibpath_var=PATH
18743   ;;
18744
18745 darwin* | rhapsody*)
18746   dynamic_linker="$host_os dyld"
18747   version_type=darwin
18748   need_lib_prefix=no
18749   need_version=no
18750   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18751   soname_spec='${libname}${release}${major}$shared_ext'
18752   shlibpath_overrides_runpath=yes
18753   shlibpath_var=DYLD_LIBRARY_PATH
18754   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18755   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18756   if test "$GCC" = yes; then
18757     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"`
18758   else
18759     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18760   fi
18761   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18762   ;;
18763
18764 dgux*)
18765   version_type=linux
18766   need_lib_prefix=no
18767   need_version=no
18768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18769   soname_spec='${libname}${release}${shared_ext}$major'
18770   shlibpath_var=LD_LIBRARY_PATH
18771   ;;
18772
18773 freebsd1*)
18774   dynamic_linker=no
18775   ;;
18776
18777 kfreebsd*-gnu)
18778   version_type=linux
18779   need_lib_prefix=no
18780   need_version=no
18781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18782   soname_spec='${libname}${release}${shared_ext}$major'
18783   shlibpath_var=LD_LIBRARY_PATH
18784   shlibpath_overrides_runpath=no
18785   hardcode_into_libs=yes
18786   dynamic_linker='GNU ld.so'
18787   ;;
18788
18789 freebsd* | dragonfly*)
18790   # DragonFly does not have aout.  When/if they implement a new
18791   # versioning mechanism, adjust this.
18792   if test -x /usr/bin/objformat; then
18793     objformat=`/usr/bin/objformat`
18794   else
18795     case $host_os in
18796     freebsd[123]*) objformat=aout ;;
18797     *) objformat=elf ;;
18798     esac
18799   fi
18800   version_type=freebsd-$objformat
18801   case $version_type in
18802     freebsd-elf*)
18803       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18804       need_version=no
18805       need_lib_prefix=no
18806       ;;
18807     freebsd-*)
18808       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18809       need_version=yes
18810       ;;
18811   esac
18812   shlibpath_var=LD_LIBRARY_PATH
18813   case $host_os in
18814   freebsd2*)
18815     shlibpath_overrides_runpath=yes
18816     ;;
18817   freebsd3.[01]* | freebsdelf3.[01]*)
18818     shlibpath_overrides_runpath=yes
18819     hardcode_into_libs=yes
18820     ;;
18821   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18822   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18823     shlibpath_overrides_runpath=no
18824     hardcode_into_libs=yes
18825     ;;
18826   freebsd*) # from 4.6 on
18827     shlibpath_overrides_runpath=yes
18828     hardcode_into_libs=yes
18829     ;;
18830   esac
18831   ;;
18832
18833 gnu*)
18834   version_type=linux
18835   need_lib_prefix=no
18836   need_version=no
18837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18838   soname_spec='${libname}${release}${shared_ext}$major'
18839   shlibpath_var=LD_LIBRARY_PATH
18840   hardcode_into_libs=yes
18841   ;;
18842
18843 hpux9* | hpux10* | hpux11*)
18844   # Give a soname corresponding to the major version so that dld.sl refuses to
18845   # link against other versions.
18846   version_type=sunos
18847   need_lib_prefix=no
18848   need_version=no
18849   case $host_cpu in
18850   ia64*)
18851     shrext_cmds='.so'
18852     hardcode_into_libs=yes
18853     dynamic_linker="$host_os dld.so"
18854     shlibpath_var=LD_LIBRARY_PATH
18855     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18857     soname_spec='${libname}${release}${shared_ext}$major'
18858     if test "X$HPUX_IA64_MODE" = X32; then
18859       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18860     else
18861       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18862     fi
18863     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18864     ;;
18865    hppa*64*)
18866      shrext_cmds='.sl'
18867      hardcode_into_libs=yes
18868      dynamic_linker="$host_os dld.sl"
18869      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18870      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18871      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872      soname_spec='${libname}${release}${shared_ext}$major'
18873      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18874      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18875      ;;
18876    *)
18877     shrext_cmds='.sl'
18878     dynamic_linker="$host_os dld.sl"
18879     shlibpath_var=SHLIB_PATH
18880     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882     soname_spec='${libname}${release}${shared_ext}$major'
18883     ;;
18884   esac
18885   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18886   postinstall_cmds='chmod 555 $lib'
18887   ;;
18888
18889 interix3*)
18890   version_type=linux
18891   need_lib_prefix=no
18892   need_version=no
18893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18894   soname_spec='${libname}${release}${shared_ext}$major'
18895   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18896   shlibpath_var=LD_LIBRARY_PATH
18897   shlibpath_overrides_runpath=no
18898   hardcode_into_libs=yes
18899   ;;
18900
18901 irix5* | irix6* | nonstopux*)
18902   case $host_os in
18903     nonstopux*) version_type=nonstopux ;;
18904     *)
18905         if test "$lt_cv_prog_gnu_ld" = yes; then
18906                 version_type=linux
18907         else
18908                 version_type=irix
18909         fi ;;
18910   esac
18911   need_lib_prefix=no
18912   need_version=no
18913   soname_spec='${libname}${release}${shared_ext}$major'
18914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18915   case $host_os in
18916   irix5* | nonstopux*)
18917     libsuff= shlibsuff=
18918     ;;
18919   *)
18920     case $LD in # libtool.m4 will add one of these switches to LD
18921     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18922       libsuff= shlibsuff= libmagic=32-bit;;
18923     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18924       libsuff=32 shlibsuff=N32 libmagic=N32;;
18925     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18926       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18927     *) libsuff= shlibsuff= libmagic=never-match;;
18928     esac
18929     ;;
18930   esac
18931   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18932   shlibpath_overrides_runpath=no
18933   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18934   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18935   hardcode_into_libs=yes
18936   ;;
18937
18938 # No shared lib support for Linux oldld, aout, or coff.
18939 linux*oldld* | linux*aout* | linux*coff*)
18940   dynamic_linker=no
18941   ;;
18942
18943 # This must be Linux ELF.
18944 linux*)
18945   version_type=linux
18946   need_lib_prefix=no
18947   need_version=no
18948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18949   soname_spec='${libname}${release}${shared_ext}$major'
18950   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18951   shlibpath_var=LD_LIBRARY_PATH
18952   shlibpath_overrides_runpath=no
18953   # This implies no fast_install, which is unacceptable.
18954   # Some rework will be needed to allow for fast_install
18955   # before this can be enabled.
18956   hardcode_into_libs=yes
18957
18958   # Append ld.so.conf contents to the search path
18959   if test -f /etc/ld.so.conf; then
18960     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' ' '`
18961     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18962   fi
18963
18964   # We used to test for /lib/ld.so.1 and disable shared libraries on
18965   # powerpc, because MkLinux only supported shared libraries with the
18966   # GNU dynamic linker.  Since this was broken with cross compilers,
18967   # most powerpc-linux boxes support dynamic linking these days and
18968   # people can always --disable-shared, the test was removed, and we
18969   # assume the GNU/Linux dynamic linker is in use.
18970   dynamic_linker='GNU/Linux ld.so'
18971   ;;
18972
18973 knetbsd*-gnu)
18974   version_type=linux
18975   need_lib_prefix=no
18976   need_version=no
18977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18978   soname_spec='${libname}${release}${shared_ext}$major'
18979   shlibpath_var=LD_LIBRARY_PATH
18980   shlibpath_overrides_runpath=no
18981   hardcode_into_libs=yes
18982   dynamic_linker='GNU ld.so'
18983   ;;
18984
18985 netbsd*)
18986   version_type=sunos
18987   need_lib_prefix=no
18988   need_version=no
18989   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18991     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18992     dynamic_linker='NetBSD (a.out) ld.so'
18993   else
18994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18995     soname_spec='${libname}${release}${shared_ext}$major'
18996     dynamic_linker='NetBSD ld.elf_so'
18997   fi
18998   shlibpath_var=LD_LIBRARY_PATH
18999   shlibpath_overrides_runpath=yes
19000   hardcode_into_libs=yes
19001   ;;
19002
19003 newsos6)
19004   version_type=linux
19005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19006   shlibpath_var=LD_LIBRARY_PATH
19007   shlibpath_overrides_runpath=yes
19008   ;;
19009
19010 nto-qnx*)
19011   version_type=linux
19012   need_lib_prefix=no
19013   need_version=no
19014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19015   soname_spec='${libname}${release}${shared_ext}$major'
19016   shlibpath_var=LD_LIBRARY_PATH
19017   shlibpath_overrides_runpath=yes
19018   ;;
19019
19020 openbsd*)
19021   version_type=sunos
19022   sys_lib_dlsearch_path_spec="/usr/lib"
19023   need_lib_prefix=no
19024   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19025   case $host_os in
19026     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19027     *)                         need_version=no  ;;
19028   esac
19029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19030   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19031   shlibpath_var=LD_LIBRARY_PATH
19032   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19033     case $host_os in
19034       openbsd2.[89] | openbsd2.[89].*)
19035         shlibpath_overrides_runpath=no
19036         ;;
19037       *)
19038         shlibpath_overrides_runpath=yes
19039         ;;
19040       esac
19041   else
19042     shlibpath_overrides_runpath=yes
19043   fi
19044   ;;
19045
19046 os2*)
19047   libname_spec='$name'
19048   shrext_cmds=".dll"
19049   need_lib_prefix=no
19050   library_names_spec='$libname${shared_ext} $libname.a'
19051   dynamic_linker='OS/2 ld.exe'
19052   shlibpath_var=LIBPATH
19053   ;;
19054
19055 osf3* | osf4* | osf5*)
19056   version_type=osf
19057   need_lib_prefix=no
19058   need_version=no
19059   soname_spec='${libname}${release}${shared_ext}$major'
19060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19061   shlibpath_var=LD_LIBRARY_PATH
19062   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19063   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19064   ;;
19065
19066 solaris*)
19067   version_type=linux
19068   need_lib_prefix=no
19069   need_version=no
19070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19071   soname_spec='${libname}${release}${shared_ext}$major'
19072   shlibpath_var=LD_LIBRARY_PATH
19073   shlibpath_overrides_runpath=yes
19074   hardcode_into_libs=yes
19075   # ldd complains unless libraries are executable
19076   postinstall_cmds='chmod +x $lib'
19077   ;;
19078
19079 sunos4*)
19080   version_type=sunos
19081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19082   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19083   shlibpath_var=LD_LIBRARY_PATH
19084   shlibpath_overrides_runpath=yes
19085   if test "$with_gnu_ld" = yes; then
19086     need_lib_prefix=no
19087   fi
19088   need_version=yes
19089   ;;
19090
19091 sysv4 | sysv4.3*)
19092   version_type=linux
19093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19094   soname_spec='${libname}${release}${shared_ext}$major'
19095   shlibpath_var=LD_LIBRARY_PATH
19096   case $host_vendor in
19097     sni)
19098       shlibpath_overrides_runpath=no
19099       need_lib_prefix=no
19100       export_dynamic_flag_spec='${wl}-Blargedynsym'
19101       runpath_var=LD_RUN_PATH
19102       ;;
19103     siemens)
19104       need_lib_prefix=no
19105       ;;
19106     motorola)
19107       need_lib_prefix=no
19108       need_version=no
19109       shlibpath_overrides_runpath=no
19110       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19111       ;;
19112   esac
19113   ;;
19114
19115 sysv4*MP*)
19116   if test -d /usr/nec ;then
19117     version_type=linux
19118     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19119     soname_spec='$libname${shared_ext}.$major'
19120     shlibpath_var=LD_LIBRARY_PATH
19121   fi
19122   ;;
19123
19124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19125   version_type=freebsd-elf
19126   need_lib_prefix=no
19127   need_version=no
19128   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19129   soname_spec='${libname}${release}${shared_ext}$major'
19130   shlibpath_var=LD_LIBRARY_PATH
19131   hardcode_into_libs=yes
19132   if test "$with_gnu_ld" = yes; then
19133     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19134     shlibpath_overrides_runpath=no
19135   else
19136     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19137     shlibpath_overrides_runpath=yes
19138     case $host_os in
19139       sco3.2v5*)
19140         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19141         ;;
19142     esac
19143   fi
19144   sys_lib_dlsearch_path_spec='/usr/lib'
19145   ;;
19146
19147 uts4*)
19148   version_type=linux
19149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19150   soname_spec='${libname}${release}${shared_ext}$major'
19151   shlibpath_var=LD_LIBRARY_PATH
19152   ;;
19153
19154 *)
19155   dynamic_linker=no
19156   ;;
19157 esac
19158 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19159 echo "${ECHO_T}$dynamic_linker" >&6; }
19160 test "$dynamic_linker" = no && can_build_shared=no
19161
19162 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19163 if test "$GCC" = yes; then
19164   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19165 fi
19166
19167 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19168 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19169 hardcode_action_GCJ=
19170 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19171    test -n "$runpath_var_GCJ" || \
19172    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19173
19174   # We can hardcode non-existant directories.
19175   if test "$hardcode_direct_GCJ" != no &&
19176      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19177      # have to relink, otherwise we might link with an installed library
19178      # when we should be linking with a yet-to-be-installed one
19179      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19180      test "$hardcode_minus_L_GCJ" != no; then
19181     # Linking always hardcodes the temporary library directory.
19182     hardcode_action_GCJ=relink
19183   else
19184     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19185     hardcode_action_GCJ=immediate
19186   fi
19187 else
19188   # We cannot hardcode anything, or else we can only hardcode existing
19189   # directories.
19190   hardcode_action_GCJ=unsupported
19191 fi
19192 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19193 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19194
19195 if test "$hardcode_action_GCJ" = relink; then
19196   # Fast installation is not supported
19197   enable_fast_install=no
19198 elif test "$shlibpath_overrides_runpath" = yes ||
19199      test "$enable_shared" = no; then
19200   # Fast installation is not necessary
19201   enable_fast_install=needless
19202 fi
19203
19204
19205 # The else clause should only fire when bootstrapping the
19206 # libtool distribution, otherwise you forgot to ship ltmain.sh
19207 # with your package, and you will get complaints that there are
19208 # no rules to generate ltmain.sh.
19209 if test -f "$ltmain"; then
19210   # See if we are running on zsh, and set the options which allow our commands through
19211   # without removal of \ escapes.
19212   if test -n "${ZSH_VERSION+set}" ; then
19213     setopt NO_GLOB_SUBST
19214   fi
19215   # Now quote all the things that may contain metacharacters while being
19216   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19217   # variables and quote the copies for generation of the libtool script.
19218   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19219     SED SHELL STRIP \
19220     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19221     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19222     deplibs_check_method reload_flag reload_cmds need_locks \
19223     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19224     lt_cv_sys_global_symbol_to_c_name_address \
19225     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19226     old_postinstall_cmds old_postuninstall_cmds \
19227     compiler_GCJ \
19228     CC_GCJ \
19229     LD_GCJ \
19230     lt_prog_compiler_wl_GCJ \
19231     lt_prog_compiler_pic_GCJ \
19232     lt_prog_compiler_static_GCJ \
19233     lt_prog_compiler_no_builtin_flag_GCJ \
19234     export_dynamic_flag_spec_GCJ \
19235     thread_safe_flag_spec_GCJ \
19236     whole_archive_flag_spec_GCJ \
19237     enable_shared_with_static_runtimes_GCJ \
19238     old_archive_cmds_GCJ \
19239     old_archive_from_new_cmds_GCJ \
19240     predep_objects_GCJ \
19241     postdep_objects_GCJ \
19242     predeps_GCJ \
19243     postdeps_GCJ \
19244     compiler_lib_search_path_GCJ \
19245     archive_cmds_GCJ \
19246     archive_expsym_cmds_GCJ \
19247     postinstall_cmds_GCJ \
19248     postuninstall_cmds_GCJ \
19249     old_archive_from_expsyms_cmds_GCJ \
19250     allow_undefined_flag_GCJ \
19251     no_undefined_flag_GCJ \
19252     export_symbols_cmds_GCJ \
19253     hardcode_libdir_flag_spec_GCJ \
19254     hardcode_libdir_flag_spec_ld_GCJ \
19255     hardcode_libdir_separator_GCJ \
19256     hardcode_automatic_GCJ \
19257     module_cmds_GCJ \
19258     module_expsym_cmds_GCJ \
19259     lt_cv_prog_compiler_c_o_GCJ \
19260     exclude_expsyms_GCJ \
19261     include_expsyms_GCJ; do
19262
19263     case $var in
19264     old_archive_cmds_GCJ | \
19265     old_archive_from_new_cmds_GCJ | \
19266     archive_cmds_GCJ | \
19267     archive_expsym_cmds_GCJ | \
19268     module_cmds_GCJ | \
19269     module_expsym_cmds_GCJ | \
19270     old_archive_from_expsyms_cmds_GCJ | \
19271     export_symbols_cmds_GCJ | \
19272     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19273     postinstall_cmds | postuninstall_cmds | \
19274     old_postinstall_cmds | old_postuninstall_cmds | \
19275     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19276       # Double-quote double-evaled strings.
19277       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19278       ;;
19279     *)
19280       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19281       ;;
19282     esac
19283   done
19284
19285   case $lt_echo in
19286   *'\$0 --fallback-echo"')
19287     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19288     ;;
19289   esac
19290
19291 cfgfile="$ofile"
19292
19293   cat <<__EOF__ >> "$cfgfile"
19294 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19295
19296 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19297
19298 # Shell to use when invoking shell scripts.
19299 SHELL=$lt_SHELL
19300
19301 # Whether or not to build shared libraries.
19302 build_libtool_libs=$enable_shared
19303
19304 # Whether or not to build static libraries.
19305 build_old_libs=$enable_static
19306
19307 # Whether or not to add -lc for building shared libraries.
19308 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19309
19310 # Whether or not to disallow shared libs when runtime libs are static
19311 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19312
19313 # Whether or not to optimize for fast installation.
19314 fast_install=$enable_fast_install
19315
19316 # The host system.
19317 host_alias=$host_alias
19318 host=$host
19319 host_os=$host_os
19320
19321 # The build system.
19322 build_alias=$build_alias
19323 build=$build
19324 build_os=$build_os
19325
19326 # An echo program that does not interpret backslashes.
19327 echo=$lt_echo
19328
19329 # The archiver.
19330 AR=$lt_AR
19331 AR_FLAGS=$lt_AR_FLAGS
19332
19333 # A C compiler.
19334 LTCC=$lt_LTCC
19335
19336 # LTCC compiler flags.
19337 LTCFLAGS=$lt_LTCFLAGS
19338
19339 # A language-specific compiler.
19340 CC=$lt_compiler_GCJ
19341
19342 # Is the compiler the GNU C compiler?
19343 with_gcc=$GCC_GCJ
19344
19345 # An ERE matcher.
19346 EGREP=$lt_EGREP
19347
19348 # The linker used to build libraries.
19349 LD=$lt_LD_GCJ
19350
19351 # Whether we need hard or soft links.
19352 LN_S=$lt_LN_S
19353
19354 # A BSD-compatible nm program.
19355 NM=$lt_NM
19356
19357 # A symbol stripping program
19358 STRIP=$lt_STRIP
19359
19360 # Used to examine libraries when file_magic_cmd begins "file"
19361 MAGIC_CMD=$MAGIC_CMD
19362
19363 # Used on cygwin: DLL creation program.
19364 DLLTOOL="$DLLTOOL"
19365
19366 # Used on cygwin: object dumper.
19367 OBJDUMP="$OBJDUMP"
19368
19369 # Used on cygwin: assembler.
19370 AS="$AS"
19371
19372 # The name of the directory that contains temporary libtool files.
19373 objdir=$objdir
19374
19375 # How to create reloadable object files.
19376 reload_flag=$lt_reload_flag
19377 reload_cmds=$lt_reload_cmds
19378
19379 # How to pass a linker flag through the compiler.
19380 wl=$lt_lt_prog_compiler_wl_GCJ
19381
19382 # Object file suffix (normally "o").
19383 objext="$ac_objext"
19384
19385 # Old archive suffix (normally "a").
19386 libext="$libext"
19387
19388 # Shared library suffix (normally ".so").
19389 shrext_cmds='$shrext_cmds'
19390
19391 # Executable file suffix (normally "").
19392 exeext="$exeext"
19393
19394 # Additional compiler flags for building library objects.
19395 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19396 pic_mode=$pic_mode
19397
19398 # What is the maximum length of a command?
19399 max_cmd_len=$lt_cv_sys_max_cmd_len
19400
19401 # Does compiler simultaneously support -c and -o options?
19402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19403
19404 # Must we lock files when doing compilation?
19405 need_locks=$lt_need_locks
19406
19407 # Do we need the lib prefix for modules?
19408 need_lib_prefix=$need_lib_prefix
19409
19410 # Do we need a version for libraries?
19411 need_version=$need_version
19412
19413 # Whether dlopen is supported.
19414 dlopen_support=$enable_dlopen
19415
19416 # Whether dlopen of programs is supported.
19417 dlopen_self=$enable_dlopen_self
19418
19419 # Whether dlopen of statically linked programs is supported.
19420 dlopen_self_static=$enable_dlopen_self_static
19421
19422 # Compiler flag to prevent dynamic linking.
19423 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19424
19425 # Compiler flag to turn off builtin functions.
19426 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19427
19428 # Compiler flag to allow reflexive dlopens.
19429 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19430
19431 # Compiler flag to generate shared objects directly from archives.
19432 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19433
19434 # Compiler flag to generate thread-safe objects.
19435 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19436
19437 # Library versioning type.
19438 version_type=$version_type
19439
19440 # Format of library name prefix.
19441 libname_spec=$lt_libname_spec
19442
19443 # List of archive names.  First name is the real one, the rest are links.
19444 # The last name is the one that the linker finds with -lNAME.
19445 library_names_spec=$lt_library_names_spec
19446
19447 # The coded name of the library, if different from the real name.
19448 soname_spec=$lt_soname_spec
19449
19450 # Commands used to build and install an old-style archive.
19451 RANLIB=$lt_RANLIB
19452 old_archive_cmds=$lt_old_archive_cmds_GCJ
19453 old_postinstall_cmds=$lt_old_postinstall_cmds
19454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19455
19456 # Create an old-style archive from a shared archive.
19457 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19458
19459 # Create a temporary old-style archive to link instead of a shared archive.
19460 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19461
19462 # Commands used to build and install a shared archive.
19463 archive_cmds=$lt_archive_cmds_GCJ
19464 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19465 postinstall_cmds=$lt_postinstall_cmds
19466 postuninstall_cmds=$lt_postuninstall_cmds
19467
19468 # Commands used to build a loadable module (assumed same as above if empty)
19469 module_cmds=$lt_module_cmds_GCJ
19470 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19471
19472 # Commands to strip libraries.
19473 old_striplib=$lt_old_striplib
19474 striplib=$lt_striplib
19475
19476 # Dependencies to place before the objects being linked to create a
19477 # shared library.
19478 predep_objects=$lt_predep_objects_GCJ
19479
19480 # Dependencies to place after the objects being linked to create a
19481 # shared library.
19482 postdep_objects=$lt_postdep_objects_GCJ
19483
19484 # Dependencies to place before the objects being linked to create a
19485 # shared library.
19486 predeps=$lt_predeps_GCJ
19487
19488 # Dependencies to place after the objects being linked to create a
19489 # shared library.
19490 postdeps=$lt_postdeps_GCJ
19491
19492 # The library search path used internally by the compiler when linking
19493 # a shared library.
19494 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19495
19496 # Method to check whether dependent libraries are shared objects.
19497 deplibs_check_method=$lt_deplibs_check_method
19498
19499 # Command to use when deplibs_check_method == file_magic.
19500 file_magic_cmd=$lt_file_magic_cmd
19501
19502 # Flag that allows shared libraries with undefined symbols to be built.
19503 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19504
19505 # Flag that forces no undefined symbols.
19506 no_undefined_flag=$lt_no_undefined_flag_GCJ
19507
19508 # Commands used to finish a libtool library installation in a directory.
19509 finish_cmds=$lt_finish_cmds
19510
19511 # Same as above, but a single script fragment to be evaled but not shown.
19512 finish_eval=$lt_finish_eval
19513
19514 # Take the output of nm and produce a listing of raw symbols and C names.
19515 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19516
19517 # Transform the output of nm in a proper C declaration
19518 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19519
19520 # Transform the output of nm in a C name address pair
19521 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19522
19523 # This is the shared library runtime path variable.
19524 runpath_var=$runpath_var
19525
19526 # This is the shared library path variable.
19527 shlibpath_var=$shlibpath_var
19528
19529 # Is shlibpath searched before the hard-coded library search path?
19530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19531
19532 # How to hardcode a shared library path into an executable.
19533 hardcode_action=$hardcode_action_GCJ
19534
19535 # Whether we should hardcode library paths into libraries.
19536 hardcode_into_libs=$hardcode_into_libs
19537
19538 # Flag to hardcode \$libdir into a binary during linking.
19539 # This must work even if \$libdir does not exist.
19540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19541
19542 # If ld is used when linking, flag to hardcode \$libdir into
19543 # a binary during linking. This must work even if \$libdir does
19544 # not exist.
19545 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19546
19547 # Whether we need a single -rpath flag with a separated argument.
19548 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19549
19550 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19551 # resulting binary.
19552 hardcode_direct=$hardcode_direct_GCJ
19553
19554 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19555 # resulting binary.
19556 hardcode_minus_L=$hardcode_minus_L_GCJ
19557
19558 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19559 # the resulting binary.
19560 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19561
19562 # Set to yes if building a shared library automatically hardcodes DIR into the library
19563 # and all subsequent libraries and executables linked against it.
19564 hardcode_automatic=$hardcode_automatic_GCJ
19565
19566 # Variables whose values should be saved in libtool wrapper scripts and
19567 # restored at relink time.
19568 variables_saved_for_relink="$variables_saved_for_relink"
19569
19570 # Whether libtool must link a program against all its dependency libraries.
19571 link_all_deplibs=$link_all_deplibs_GCJ
19572
19573 # Compile-time system search path for libraries
19574 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19575
19576 # Run-time system search path for libraries
19577 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19578
19579 # Fix the shell variable \$srcfile for the compiler.
19580 fix_srcfile_path="$fix_srcfile_path_GCJ"
19581
19582 # Set to yes if exported symbols are required.
19583 always_export_symbols=$always_export_symbols_GCJ
19584
19585 # The commands to list exported symbols.
19586 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19587
19588 # The commands to extract the exported symbol list from a shared archive.
19589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19590
19591 # Symbols that should not be listed in the preloaded symbols.
19592 exclude_expsyms=$lt_exclude_expsyms_GCJ
19593
19594 # Symbols that must always be exported.
19595 include_expsyms=$lt_include_expsyms_GCJ
19596
19597 # ### END LIBTOOL TAG CONFIG: $tagname
19598
19599 __EOF__
19600
19601
19602 else
19603   # If there is no Makefile yet, we rely on a make rule to execute
19604   # `config.status --recheck' to rerun these tests and create the
19605   # libtool script then.
19606   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19607   if test -f "$ltmain_in"; then
19608     test -f Makefile && make "$ltmain"
19609   fi
19610 fi
19611
19612
19613 ac_ext=c
19614 ac_cpp='$CPP $CPPFLAGS'
19615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19618
19619 CC="$lt_save_CC"
19620
19621         else
19622           tagname=""
19623         fi
19624         ;;
19625
19626       RC)
19627
19628
19629 # Source file extension for RC test sources.
19630 ac_ext=rc
19631
19632 # Object file extension for compiled RC test sources.
19633 objext=o
19634 objext_RC=$objext
19635
19636 # Code to be used in simple compile tests
19637 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19638
19639 # Code to be used in simple link tests
19640 lt_simple_link_test_code="$lt_simple_compile_test_code"
19641
19642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19643
19644 # If no C compiler was specified, use CC.
19645 LTCC=${LTCC-"$CC"}
19646
19647 # If no C compiler flags were specified, use CFLAGS.
19648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19649
19650 # Allow CC to be a program name with arguments.
19651 compiler=$CC
19652
19653
19654 # save warnings/boilerplate of simple test code
19655 ac_outfile=conftest.$ac_objext
19656 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19657 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19658 _lt_compiler_boilerplate=`cat conftest.err`
19659 $rm conftest*
19660
19661 ac_outfile=conftest.$ac_objext
19662 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19663 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19664 _lt_linker_boilerplate=`cat conftest.err`
19665 $rm conftest*
19666
19667
19668 # Allow CC to be a program name with arguments.
19669 lt_save_CC="$CC"
19670 CC=${RC-"windres"}
19671 compiler=$CC
19672 compiler_RC=$CC
19673 for cc_temp in $compiler""; do
19674   case $cc_temp in
19675     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19676     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19677     \-*) ;;
19678     *) break;;
19679   esac
19680 done
19681 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19682
19683 lt_cv_prog_compiler_c_o_RC=yes
19684
19685 # The else clause should only fire when bootstrapping the
19686 # libtool distribution, otherwise you forgot to ship ltmain.sh
19687 # with your package, and you will get complaints that there are
19688 # no rules to generate ltmain.sh.
19689 if test -f "$ltmain"; then
19690   # See if we are running on zsh, and set the options which allow our commands through
19691   # without removal of \ escapes.
19692   if test -n "${ZSH_VERSION+set}" ; then
19693     setopt NO_GLOB_SUBST
19694   fi
19695   # Now quote all the things that may contain metacharacters while being
19696   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19697   # variables and quote the copies for generation of the libtool script.
19698   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19699     SED SHELL STRIP \
19700     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19701     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19702     deplibs_check_method reload_flag reload_cmds need_locks \
19703     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19704     lt_cv_sys_global_symbol_to_c_name_address \
19705     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19706     old_postinstall_cmds old_postuninstall_cmds \
19707     compiler_RC \
19708     CC_RC \
19709     LD_RC \
19710     lt_prog_compiler_wl_RC \
19711     lt_prog_compiler_pic_RC \
19712     lt_prog_compiler_static_RC \
19713     lt_prog_compiler_no_builtin_flag_RC \
19714     export_dynamic_flag_spec_RC \
19715     thread_safe_flag_spec_RC \
19716     whole_archive_flag_spec_RC \
19717     enable_shared_with_static_runtimes_RC \
19718     old_archive_cmds_RC \
19719     old_archive_from_new_cmds_RC \
19720     predep_objects_RC \
19721     postdep_objects_RC \
19722     predeps_RC \
19723     postdeps_RC \
19724     compiler_lib_search_path_RC \
19725     archive_cmds_RC \
19726     archive_expsym_cmds_RC \
19727     postinstall_cmds_RC \
19728     postuninstall_cmds_RC \
19729     old_archive_from_expsyms_cmds_RC \
19730     allow_undefined_flag_RC \
19731     no_undefined_flag_RC \
19732     export_symbols_cmds_RC \
19733     hardcode_libdir_flag_spec_RC \
19734     hardcode_libdir_flag_spec_ld_RC \
19735     hardcode_libdir_separator_RC \
19736     hardcode_automatic_RC \
19737     module_cmds_RC \
19738     module_expsym_cmds_RC \
19739     lt_cv_prog_compiler_c_o_RC \
19740     exclude_expsyms_RC \
19741     include_expsyms_RC; do
19742
19743     case $var in
19744     old_archive_cmds_RC | \
19745     old_archive_from_new_cmds_RC | \
19746     archive_cmds_RC | \
19747     archive_expsym_cmds_RC | \
19748     module_cmds_RC | \
19749     module_expsym_cmds_RC | \
19750     old_archive_from_expsyms_cmds_RC | \
19751     export_symbols_cmds_RC | \
19752     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19753     postinstall_cmds | postuninstall_cmds | \
19754     old_postinstall_cmds | old_postuninstall_cmds | \
19755     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19756       # Double-quote double-evaled strings.
19757       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19758       ;;
19759     *)
19760       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19761       ;;
19762     esac
19763   done
19764
19765   case $lt_echo in
19766   *'\$0 --fallback-echo"')
19767     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19768     ;;
19769   esac
19770
19771 cfgfile="$ofile"
19772
19773   cat <<__EOF__ >> "$cfgfile"
19774 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19775
19776 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19777
19778 # Shell to use when invoking shell scripts.
19779 SHELL=$lt_SHELL
19780
19781 # Whether or not to build shared libraries.
19782 build_libtool_libs=$enable_shared
19783
19784 # Whether or not to build static libraries.
19785 build_old_libs=$enable_static
19786
19787 # Whether or not to add -lc for building shared libraries.
19788 build_libtool_need_lc=$archive_cmds_need_lc_RC
19789
19790 # Whether or not to disallow shared libs when runtime libs are static
19791 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19792
19793 # Whether or not to optimize for fast installation.
19794 fast_install=$enable_fast_install
19795
19796 # The host system.
19797 host_alias=$host_alias
19798 host=$host
19799 host_os=$host_os
19800
19801 # The build system.
19802 build_alias=$build_alias
19803 build=$build
19804 build_os=$build_os
19805
19806 # An echo program that does not interpret backslashes.
19807 echo=$lt_echo
19808
19809 # The archiver.
19810 AR=$lt_AR
19811 AR_FLAGS=$lt_AR_FLAGS
19812
19813 # A C compiler.
19814 LTCC=$lt_LTCC
19815
19816 # LTCC compiler flags.
19817 LTCFLAGS=$lt_LTCFLAGS
19818
19819 # A language-specific compiler.
19820 CC=$lt_compiler_RC
19821
19822 # Is the compiler the GNU C compiler?
19823 with_gcc=$GCC_RC
19824
19825 # An ERE matcher.
19826 EGREP=$lt_EGREP
19827
19828 # The linker used to build libraries.
19829 LD=$lt_LD_RC
19830
19831 # Whether we need hard or soft links.
19832 LN_S=$lt_LN_S
19833
19834 # A BSD-compatible nm program.
19835 NM=$lt_NM
19836
19837 # A symbol stripping program
19838 STRIP=$lt_STRIP
19839
19840 # Used to examine libraries when file_magic_cmd begins "file"
19841 MAGIC_CMD=$MAGIC_CMD
19842
19843 # Used on cygwin: DLL creation program.
19844 DLLTOOL="$DLLTOOL"
19845
19846 # Used on cygwin: object dumper.
19847 OBJDUMP="$OBJDUMP"
19848
19849 # Used on cygwin: assembler.
19850 AS="$AS"
19851
19852 # The name of the directory that contains temporary libtool files.
19853 objdir=$objdir
19854
19855 # How to create reloadable object files.
19856 reload_flag=$lt_reload_flag
19857 reload_cmds=$lt_reload_cmds
19858
19859 # How to pass a linker flag through the compiler.
19860 wl=$lt_lt_prog_compiler_wl_RC
19861
19862 # Object file suffix (normally "o").
19863 objext="$ac_objext"
19864
19865 # Old archive suffix (normally "a").
19866 libext="$libext"
19867
19868 # Shared library suffix (normally ".so").
19869 shrext_cmds='$shrext_cmds'
19870
19871 # Executable file suffix (normally "").
19872 exeext="$exeext"
19873
19874 # Additional compiler flags for building library objects.
19875 pic_flag=$lt_lt_prog_compiler_pic_RC
19876 pic_mode=$pic_mode
19877
19878 # What is the maximum length of a command?
19879 max_cmd_len=$lt_cv_sys_max_cmd_len
19880
19881 # Does compiler simultaneously support -c and -o options?
19882 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19883
19884 # Must we lock files when doing compilation?
19885 need_locks=$lt_need_locks
19886
19887 # Do we need the lib prefix for modules?
19888 need_lib_prefix=$need_lib_prefix
19889
19890 # Do we need a version for libraries?
19891 need_version=$need_version
19892
19893 # Whether dlopen is supported.
19894 dlopen_support=$enable_dlopen
19895
19896 # Whether dlopen of programs is supported.
19897 dlopen_self=$enable_dlopen_self
19898
19899 # Whether dlopen of statically linked programs is supported.
19900 dlopen_self_static=$enable_dlopen_self_static
19901
19902 # Compiler flag to prevent dynamic linking.
19903 link_static_flag=$lt_lt_prog_compiler_static_RC
19904
19905 # Compiler flag to turn off builtin functions.
19906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19907
19908 # Compiler flag to allow reflexive dlopens.
19909 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19910
19911 # Compiler flag to generate shared objects directly from archives.
19912 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19913
19914 # Compiler flag to generate thread-safe objects.
19915 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19916
19917 # Library versioning type.
19918 version_type=$version_type
19919
19920 # Format of library name prefix.
19921 libname_spec=$lt_libname_spec
19922
19923 # List of archive names.  First name is the real one, the rest are links.
19924 # The last name is the one that the linker finds with -lNAME.
19925 library_names_spec=$lt_library_names_spec
19926
19927 # The coded name of the library, if different from the real name.
19928 soname_spec=$lt_soname_spec
19929
19930 # Commands used to build and install an old-style archive.
19931 RANLIB=$lt_RANLIB
19932 old_archive_cmds=$lt_old_archive_cmds_RC
19933 old_postinstall_cmds=$lt_old_postinstall_cmds
19934 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19935
19936 # Create an old-style archive from a shared archive.
19937 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19938
19939 # Create a temporary old-style archive to link instead of a shared archive.
19940 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19941
19942 # Commands used to build and install a shared archive.
19943 archive_cmds=$lt_archive_cmds_RC
19944 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19945 postinstall_cmds=$lt_postinstall_cmds
19946 postuninstall_cmds=$lt_postuninstall_cmds
19947
19948 # Commands used to build a loadable module (assumed same as above if empty)
19949 module_cmds=$lt_module_cmds_RC
19950 module_expsym_cmds=$lt_module_expsym_cmds_RC
19951
19952 # Commands to strip libraries.
19953 old_striplib=$lt_old_striplib
19954 striplib=$lt_striplib
19955
19956 # Dependencies to place before the objects being linked to create a
19957 # shared library.
19958 predep_objects=$lt_predep_objects_RC
19959
19960 # Dependencies to place after the objects being linked to create a
19961 # shared library.
19962 postdep_objects=$lt_postdep_objects_RC
19963
19964 # Dependencies to place before the objects being linked to create a
19965 # shared library.
19966 predeps=$lt_predeps_RC
19967
19968 # Dependencies to place after the objects being linked to create a
19969 # shared library.
19970 postdeps=$lt_postdeps_RC
19971
19972 # The library search path used internally by the compiler when linking
19973 # a shared library.
19974 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19975
19976 # Method to check whether dependent libraries are shared objects.
19977 deplibs_check_method=$lt_deplibs_check_method
19978
19979 # Command to use when deplibs_check_method == file_magic.
19980 file_magic_cmd=$lt_file_magic_cmd
19981
19982 # Flag that allows shared libraries with undefined symbols to be built.
19983 allow_undefined_flag=$lt_allow_undefined_flag_RC
19984
19985 # Flag that forces no undefined symbols.
19986 no_undefined_flag=$lt_no_undefined_flag_RC
19987
19988 # Commands used to finish a libtool library installation in a directory.
19989 finish_cmds=$lt_finish_cmds
19990
19991 # Same as above, but a single script fragment to be evaled but not shown.
19992 finish_eval=$lt_finish_eval
19993
19994 # Take the output of nm and produce a listing of raw symbols and C names.
19995 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19996
19997 # Transform the output of nm in a proper C declaration
19998 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19999
20000 # Transform the output of nm in a C name address pair
20001 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20002
20003 # This is the shared library runtime path variable.
20004 runpath_var=$runpath_var
20005
20006 # This is the shared library path variable.
20007 shlibpath_var=$shlibpath_var
20008
20009 # Is shlibpath searched before the hard-coded library search path?
20010 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20011
20012 # How to hardcode a shared library path into an executable.
20013 hardcode_action=$hardcode_action_RC
20014
20015 # Whether we should hardcode library paths into libraries.
20016 hardcode_into_libs=$hardcode_into_libs
20017
20018 # Flag to hardcode \$libdir into a binary during linking.
20019 # This must work even if \$libdir does not exist.
20020 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20021
20022 # If ld is used when linking, flag to hardcode \$libdir into
20023 # a binary during linking. This must work even if \$libdir does
20024 # not exist.
20025 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20026
20027 # Whether we need a single -rpath flag with a separated argument.
20028 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20029
20030 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20031 # resulting binary.
20032 hardcode_direct=$hardcode_direct_RC
20033
20034 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20035 # resulting binary.
20036 hardcode_minus_L=$hardcode_minus_L_RC
20037
20038 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20039 # the resulting binary.
20040 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20041
20042 # Set to yes if building a shared library automatically hardcodes DIR into the library
20043 # and all subsequent libraries and executables linked against it.
20044 hardcode_automatic=$hardcode_automatic_RC
20045
20046 # Variables whose values should be saved in libtool wrapper scripts and
20047 # restored at relink time.
20048 variables_saved_for_relink="$variables_saved_for_relink"
20049
20050 # Whether libtool must link a program against all its dependency libraries.
20051 link_all_deplibs=$link_all_deplibs_RC
20052
20053 # Compile-time system search path for libraries
20054 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20055
20056 # Run-time system search path for libraries
20057 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20058
20059 # Fix the shell variable \$srcfile for the compiler.
20060 fix_srcfile_path="$fix_srcfile_path_RC"
20061
20062 # Set to yes if exported symbols are required.
20063 always_export_symbols=$always_export_symbols_RC
20064
20065 # The commands to list exported symbols.
20066 export_symbols_cmds=$lt_export_symbols_cmds_RC
20067
20068 # The commands to extract the exported symbol list from a shared archive.
20069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20070
20071 # Symbols that should not be listed in the preloaded symbols.
20072 exclude_expsyms=$lt_exclude_expsyms_RC
20073
20074 # Symbols that must always be exported.
20075 include_expsyms=$lt_include_expsyms_RC
20076
20077 # ### END LIBTOOL TAG CONFIG: $tagname
20078
20079 __EOF__
20080
20081
20082 else
20083   # If there is no Makefile yet, we rely on a make rule to execute
20084   # `config.status --recheck' to rerun these tests and create the
20085   # libtool script then.
20086   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20087   if test -f "$ltmain_in"; then
20088     test -f Makefile && make "$ltmain"
20089   fi
20090 fi
20091
20092
20093 ac_ext=c
20094 ac_cpp='$CPP $CPPFLAGS'
20095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20098
20099 CC="$lt_save_CC"
20100
20101         ;;
20102
20103       *)
20104         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20105 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20106    { (exit 1); exit 1; }; }
20107         ;;
20108       esac
20109
20110       # Append the new tag name to the list of available tags.
20111       if test -n "$tagname" ; then
20112       available_tags="$available_tags $tagname"
20113     fi
20114     fi
20115   done
20116   IFS="$lt_save_ifs"
20117
20118   # Now substitute the updated list of available tags.
20119   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20120     mv "${ofile}T" "$ofile"
20121     chmod +x "$ofile"
20122   else
20123     rm -f "${ofile}T"
20124     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20125 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20126    { (exit 1); exit 1; }; }
20127   fi
20128 fi
20129
20130
20131
20132 # This can be used to rebuild libtool when needed
20133 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20134
20135 # Always use our own libtool.
20136 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20137
20138 # Prevent multiple expansion
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151 # Check whether --with-system-libtool was given.
20152 if test "${with_system_libtool+set}" = set; then
20153   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
20154 set dummy libtool; ac_word=$2
20155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20157 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20158   echo $ECHO_N "(cached) $ECHO_C" >&6
20159 else
20160   case $LIBTOOL in
20161   [\\/]* | ?:[\\/]*)
20162   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20163   ;;
20164   *)
20165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20166 as_dummy="$PATH:/usr/local/bin"
20167 for as_dir in $as_dummy
20168 do
20169   IFS=$as_save_IFS
20170   test -z "$as_dir" && as_dir=.
20171   for ac_exec_ext in '' $ac_executable_extensions; do
20172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20173     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20175     break 2
20176   fi
20177 done
20178 done
20179 IFS=$as_save_IFS
20180
20181   ;;
20182 esac
20183 fi
20184 LIBTOOL=$ac_cv_path_LIBTOOL
20185 if test -n "$LIBTOOL"; then
20186   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20187 echo "${ECHO_T}$LIBTOOL" >&6; }
20188 else
20189   { echo "$as_me:$LINENO: result: no" >&5
20190 echo "${ECHO_T}no" >&6; }
20191 fi
20192
20193
20194 else
20195
20196   LIBTOOL="`pwd`/libtool"
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211 fi
20212
20213
20214
20215
20216 # Check whether --enable-strict-dependencies was given.
20217 if test "${enable_strict_dependencies+set}" = set; then
20218   enableval=$enable_strict_dependencies;
20219 fi
20220
20221
20222 docdir='${datadir}/doc/freeradius'
20223 { echo "$as_me:$LINENO: checking docdir" >&5
20224 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20225
20226 # Check whether --with-docdir was given.
20227 if test "${with_docdir+set}" = set; then
20228   withval=$with_docdir;  case "$withval" in
20229     no)
20230         docdir=no
20231         ;;
20232     yes)
20233         ;;
20234     [\\/$]* | ?:[\\/]* )
20235         docdir="$withval"
20236         ;;
20237     *)
20238         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20239 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20240    { (exit 1); exit 1; }; }
20241         ;;
20242   esac
20243
20244 fi
20245
20246
20247 { echo "$as_me:$LINENO: result: $docdir" >&5
20248 echo "${ECHO_T}$docdir" >&6; }
20249 if test "x$docdir" = xno; then
20250         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20251 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20252 fi
20253
20254 logdir='${localstatedir}/log/radius'
20255 { echo "$as_me:$LINENO: checking logdir" >&5
20256 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20257
20258 # Check whether --with-logdir was given.
20259 if test "${with_logdir+set}" = set; then
20260   withval=$with_logdir;  case "$withval" in
20261     no)
20262         { { echo "$as_me:$LINENO: error: Need logdir" >&5
20263 echo "$as_me: error: Need logdir" >&2;}
20264    { (exit 1); exit 1; }; }
20265         ;;
20266     yes)
20267         ;;
20268     [\\/$]* | ?:[\\/]* )
20269         logdir="$withval"
20270         ;;
20271     *)
20272         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20273 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20274    { (exit 1); exit 1; }; }
20275         ;;
20276   esac
20277
20278 fi
20279
20280
20281 { echo "$as_me:$LINENO: result: $logdir" >&5
20282 echo "${ECHO_T}$logdir" >&6; }
20283
20284 radacctdir='${logdir}/radacct'
20285 { echo "$as_me:$LINENO: checking radacctdir" >&5
20286 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20287
20288 # Check whether --with-radacctdir was given.
20289 if test "${with_radacctdir+set}" = set; then
20290   withval=$with_radacctdir;  case "$withval" in
20291     no)
20292         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20293 echo "$as_me: error: Need radacctdir" >&2;}
20294    { (exit 1); exit 1; }; }
20295         ;;
20296     yes)
20297         ;;
20298     [\\/$]* | ?:[\\/]* )
20299         radacctdir="$withval"
20300         ;;
20301     *)
20302         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20303 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20304    { (exit 1); exit 1; }; }
20305         ;;
20306   esac
20307
20308 fi
20309
20310
20311 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20312 echo "${ECHO_T}$radacctdir" >&6; }
20313
20314 raddbdir='${sysconfdir}/raddb'
20315 { echo "$as_me:$LINENO: checking raddbdir" >&5
20316 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20317
20318 # Check whether --with-raddbdir was given.
20319 if test "${with_raddbdir+set}" = set; then
20320   withval=$with_raddbdir;  case "$withval" in
20321     no)
20322         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20323 echo "$as_me: error: Need raddbdir" >&2;}
20324    { (exit 1); exit 1; }; }
20325         ;;
20326     yes)
20327         ;;
20328     [\\/$]* | ?:[\\/]* )
20329         raddbdir="$withval"
20330         ;;
20331     *)
20332         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20333 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20334    { (exit 1); exit 1; }; }
20335         ;;
20336   esac
20337
20338 fi
20339
20340
20341 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20342 echo "${ECHO_T}$raddbdir" >&6; }
20343
20344 ASCEND_BINARY=yes
20345
20346 # Check whether --with-ascend-binary was given.
20347 if test "${with_ascend_binary+set}" = set; then
20348   withval=$with_ascend_binary;  case "$withval" in
20349     yes)
20350         ;;
20351     *)
20352         ASCEND_BINARY=""
20353   esac
20354
20355 fi
20356
20357 if test "X$ASCEND_BINARY" = "Xyes"; then
20358
20359 cat >>confdefs.h <<\_ACEOF
20360 #define ASCEND_BINARY
20361 _ACEOF
20362
20363 fi
20364
20365 WITH_THREADS=yes
20366
20367 # Check whether --with-threads was given.
20368 if test "${with_threads+set}" = set; then
20369   withval=$with_threads;  case "$withval" in
20370     yes)
20371         ;;
20372     *)
20373         WITH_THREADS=""
20374   esac
20375
20376 fi
20377
20378
20379 WITH_SNMP=yes
20380
20381 # Check whether --with-snmp was given.
20382 if test "${with_snmp+set}" = set; then
20383   withval=$with_snmp;  case "$withval" in
20384     yes)
20385         ;;
20386     *)
20387         WITH_SNMP=no
20388   esac
20389
20390 fi
20391
20392
20393 WITH_VMPS=yes
20394
20395 # Check whether --with-vmps was given.
20396 if test "${with_vmps+set}" = set; then
20397   withval=$with_vmps;  case "$withval" in
20398     yes)
20399         ;;
20400     *)
20401         WITH_VMPS=no
20402   esac
20403
20404 fi
20405
20406 if test "x$WITH_VMPS" = "xyes"; then
20407
20408 cat >>confdefs.h <<\_ACEOF
20409 #define WITH_VMPS
20410 _ACEOF
20411
20412 fi
20413
20414
20415 STATIC_MODULES=
20416
20417 # Check whether --with-static_modules was given.
20418 if test "${with_static_modules+set}" = set; then
20419   withval=$with_static_modules;
20420   for i in $withval; do
20421     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20422   done
20423
20424 fi
20425
20426
20427 MODULES=
20428
20429 # Check whether --with-modules was given.
20430 if test "${with_modules+set}" = set; then
20431   withval=$with_modules;
20432  for i in $withval; do
20433    MODULES="$MODULES $i"
20434  done
20435
20436 fi
20437
20438
20439 # Check whether --enable-developer was given.
20440 if test "${enable_developer+set}" = set; then
20441   enableval=$enable_developer;  case "$enableval" in
20442     no)
20443         developer=no
20444         ;;
20445     *)
20446         developer=yes
20447   esac
20448
20449 fi
20450
20451
20452 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20453     developer="yes"
20454 fi
20455
20456 EXPERIMENTAL=
20457
20458 # Check whether --with-experimental-modules was given.
20459 if test "${with_experimental_modules+set}" = set; then
20460   withval=$with_experimental_modules;  case "$withval" in
20461     yes)
20462         EXPERIMENTAL=yes
20463         ;;
20464     *)
20465   esac
20466
20467 fi
20468
20469
20470 OPENSSL_INCLUDE_DIR=
20471
20472 # Check whether --with-openssl-includes was given.
20473 if test "${with_openssl_includes+set}" = set; then
20474   withval=$with_openssl_includes;  case "$withval" in
20475     *) OPENSSL_INCLUDE_DIR="$withval"
20476         ;;
20477   esac
20478
20479 fi
20480
20481
20482 OPENSSL_LIB_DIR=
20483
20484 # Check whether --with-openssl-libraries was given.
20485 if test "${with_openssl_libraries+set}" = set; then
20486   withval=$with_openssl_libraries;  case "$withval" in
20487     *) OPENSSL_LIB_DIR="$withval"
20488         ;;
20489   esac
20490
20491 fi
20492
20493
20494
20495
20496 # Check whether --with-rlm-FOO-lib-dir was given.
20497 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20498   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
20499     *)
20500         ;;
20501   esac
20502
20503 fi
20504
20505
20506
20507 # Check whether --with-rlm-FOO-include-dir was given.
20508 if test "${with_rlm_FOO_include_dir+set}" = set; then
20509   withval=$with_rlm_FOO_include_dir;  case "$withval" in
20510     *)
20511         ;;
20512   esac
20513
20514 fi
20515
20516
20517
20518 WITH_UDPFROMTO=no
20519
20520 # Check whether --with-udpfromto was given.
20521 if test "${with_udpfromto+set}" = set; then
20522   withval=$with_udpfromto;  case "$withval" in
20523     yes)
20524         WITH_UDPFROMTO=yes
20525         ;;
20526     *)
20527         WITH_UDPFROMTO=no
20528   esac
20529
20530 fi
20531
20532
20533 if test "x$WITH_UDPFROMTO" = "xyes"; then
20534
20535 cat >>confdefs.h <<\_ACEOF
20536 #define WITH_UDPFROMTO
20537 _ACEOF
20538
20539 fi
20540
20541
20542 CHECKRAD=checkrad.pl
20543 # Extract the first word of "perl", so it can be a program name with args.
20544 set dummy perl; ac_word=$2
20545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20547 if test "${ac_cv_path_PERL+set}" = set; then
20548   echo $ECHO_N "(cached) $ECHO_C" >&6
20549 else
20550   case $PERL in
20551   [\\/]* | ?:[\\/]*)
20552   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20553   ;;
20554   *)
20555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20556 for as_dir in $PATH
20557 do
20558   IFS=$as_save_IFS
20559   test -z "$as_dir" && as_dir=.
20560   for ac_exec_ext in '' $ac_executable_extensions; do
20561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20562     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20564     break 2
20565   fi
20566 done
20567 done
20568 IFS=$as_save_IFS
20569
20570   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20571   ;;
20572 esac
20573 fi
20574 PERL=$ac_cv_path_PERL
20575 if test -n "$PERL"; then
20576   { echo "$as_me:$LINENO: result: $PERL" >&5
20577 echo "${ECHO_T}$PERL" >&6; }
20578 else
20579   { echo "$as_me:$LINENO: result: no" >&5
20580 echo "${ECHO_T}no" >&6; }
20581 fi
20582
20583
20584 if test "x$ac_cv_path_PERL" = "x"; then
20585   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20586 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20587 fi
20588 # Extract the first word of "snmpget", so it can be a program name with args.
20589 set dummy snmpget; ac_word=$2
20590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20592 if test "${ac_cv_path_SNMPGET+set}" = set; then
20593   echo $ECHO_N "(cached) $ECHO_C" >&6
20594 else
20595   case $SNMPGET in
20596   [\\/]* | ?:[\\/]*)
20597   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20598   ;;
20599   *)
20600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20601 for as_dir in $PATH
20602 do
20603   IFS=$as_save_IFS
20604   test -z "$as_dir" && as_dir=.
20605   for ac_exec_ext in '' $ac_executable_extensions; do
20606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20607     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20609     break 2
20610   fi
20611 done
20612 done
20613 IFS=$as_save_IFS
20614
20615   ;;
20616 esac
20617 fi
20618 SNMPGET=$ac_cv_path_SNMPGET
20619 if test -n "$SNMPGET"; then
20620   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20621 echo "${ECHO_T}$SNMPGET" >&6; }
20622 else
20623   { echo "$as_me:$LINENO: result: no" >&5
20624 echo "${ECHO_T}no" >&6; }
20625 fi
20626
20627
20628 if test "x$ac_cv_path_SNMPGET" = "x"; then
20629   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20630 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20631 fi
20632
20633 # Extract the first word of "snmpwalk", so it can be a program name with args.
20634 set dummy snmpwalk; ac_word=$2
20635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20637 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20638   echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640   case $SNMPWALK in
20641   [\\/]* | ?:[\\/]*)
20642   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20643   ;;
20644   *)
20645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20646 for as_dir in $PATH
20647 do
20648   IFS=$as_save_IFS
20649   test -z "$as_dir" && as_dir=.
20650   for ac_exec_ext in '' $ac_executable_extensions; do
20651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20652     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20654     break 2
20655   fi
20656 done
20657 done
20658 IFS=$as_save_IFS
20659
20660   ;;
20661 esac
20662 fi
20663 SNMPWALK=$ac_cv_path_SNMPWALK
20664 if test -n "$SNMPWALK"; then
20665   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20666 echo "${ECHO_T}$SNMPWALK" >&6; }
20667 else
20668   { echo "$as_me:$LINENO: result: no" >&5
20669 echo "${ECHO_T}no" >&6; }
20670 fi
20671
20672
20673 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20674   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20675 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20676 fi
20677
20678 # Extract the first word of "rusers", so it can be a program name with args.
20679 set dummy rusers; ac_word=$2
20680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20682 if test "${ac_cv_path_RUSERS+set}" = set; then
20683   echo $ECHO_N "(cached) $ECHO_C" >&6
20684 else
20685   case $RUSERS in
20686   [\\/]* | ?:[\\/]*)
20687   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20688   ;;
20689   *)
20690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20691 for as_dir in $PATH
20692 do
20693   IFS=$as_save_IFS
20694   test -z "$as_dir" && as_dir=.
20695   for ac_exec_ext in '' $ac_executable_extensions; do
20696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20697     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20699     break 2
20700   fi
20701 done
20702 done
20703 IFS=$as_save_IFS
20704
20705   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20706   ;;
20707 esac
20708 fi
20709 RUSERS=$ac_cv_path_RUSERS
20710 if test -n "$RUSERS"; then
20711   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20712 echo "${ECHO_T}$RUSERS" >&6; }
20713 else
20714   { echo "$as_me:$LINENO: result: no" >&5
20715 echo "${ECHO_T}no" >&6; }
20716 fi
20717
20718
20719
20720 missing_dir=`cd $ac_aux_dir && pwd`
20721 # expand $ac_aux_dir to an absolute path
20722 am_aux_dir=`cd $ac_aux_dir && pwd`
20723
20724 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20725 # Use eval to expand $SHELL
20726 if eval "$MISSING --run true"; then
20727   am_missing_run="$MISSING --run "
20728 else
20729   am_missing_run=
20730   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20731 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20732 fi
20733
20734
20735 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20736
20737
20738 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20739
20740
20741 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20742
20743
20744 # Extract the first word of "locate", so it can be a program name with args.
20745 set dummy locate; ac_word=$2
20746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20748 if test "${ac_cv_path_LOCATE+set}" = set; then
20749   echo $ECHO_N "(cached) $ECHO_C" >&6
20750 else
20751   case $LOCATE in
20752   [\\/]* | ?:[\\/]*)
20753   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20754   ;;
20755   *)
20756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20757 for as_dir in $PATH
20758 do
20759   IFS=$as_save_IFS
20760   test -z "$as_dir" && as_dir=.
20761   for ac_exec_ext in '' $ac_executable_extensions; do
20762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20763     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20765     break 2
20766   fi
20767 done
20768 done
20769 IFS=$as_save_IFS
20770
20771   ;;
20772 esac
20773 fi
20774 LOCATE=$ac_cv_path_LOCATE
20775 if test -n "$LOCATE"; then
20776   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20777 echo "${ECHO_T}$LOCATE" >&6; }
20778 else
20779   { echo "$as_me:$LINENO: result: no" >&5
20780 echo "${ECHO_T}no" >&6; }
20781 fi
20782
20783
20784 # Extract the first word of "dirname", so it can be a program name with args.
20785 set dummy dirname; ac_word=$2
20786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20788 if test "${ac_cv_path_DIRNAME+set}" = set; then
20789   echo $ECHO_N "(cached) $ECHO_C" >&6
20790 else
20791   case $DIRNAME in
20792   [\\/]* | ?:[\\/]*)
20793   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20794   ;;
20795   *)
20796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20797 for as_dir in $PATH
20798 do
20799   IFS=$as_save_IFS
20800   test -z "$as_dir" && as_dir=.
20801   for ac_exec_ext in '' $ac_executable_extensions; do
20802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20803     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20805     break 2
20806   fi
20807 done
20808 done
20809 IFS=$as_save_IFS
20810
20811   ;;
20812 esac
20813 fi
20814 DIRNAME=$ac_cv_path_DIRNAME
20815 if test -n "$DIRNAME"; then
20816   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20817 echo "${ECHO_T}$DIRNAME" >&6; }
20818 else
20819   { echo "$as_me:$LINENO: result: no" >&5
20820 echo "${ECHO_T}no" >&6; }
20821 fi
20822
20823
20824 # Extract the first word of "grep", so it can be a program name with args.
20825 set dummy grep; ac_word=$2
20826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20828 if test "${ac_cv_path_GREP+set}" = set; then
20829   echo $ECHO_N "(cached) $ECHO_C" >&6
20830 else
20831   case $GREP in
20832   [\\/]* | ?:[\\/]*)
20833   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20834   ;;
20835   *)
20836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20837 for as_dir in $PATH
20838 do
20839   IFS=$as_save_IFS
20840   test -z "$as_dir" && as_dir=.
20841   for ac_exec_ext in '' $ac_executable_extensions; do
20842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20843     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20844     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20845     break 2
20846   fi
20847 done
20848 done
20849 IFS=$as_save_IFS
20850
20851   ;;
20852 esac
20853 fi
20854 GREP=$ac_cv_path_GREP
20855 if test -n "$GREP"; then
20856   { echo "$as_me:$LINENO: result: $GREP" >&5
20857 echo "${ECHO_T}$GREP" >&6; }
20858 else
20859   { echo "$as_me:$LINENO: result: no" >&5
20860 echo "${ECHO_T}no" >&6; }
20861 fi
20862
20863
20864
20865
20866 old_CFLAGS=$CFLAGS
20867 if test "x$WITH_THREADS" = "xyes"; then
20868   if test $ac_cv_prog_suncc = "yes"; then
20869     CFLAGS="$CFLAGS -mt"
20870   fi
20871
20872
20873 for ac_header in pthread.h
20874 do
20875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20877   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20880   echo $ECHO_N "(cached) $ECHO_C" >&6
20881 fi
20882 ac_res=`eval echo '${'$as_ac_Header'}'`
20883                { echo "$as_me:$LINENO: result: $ac_res" >&5
20884 echo "${ECHO_T}$ac_res" >&6; }
20885 else
20886   # Is the header compilable?
20887 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h.  */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h.  */
20895 $ac_includes_default
20896 #include <$ac_header>
20897 _ACEOF
20898 rm -f conftest.$ac_objext
20899 if { (ac_try="$ac_compile"
20900 case "(($ac_try" in
20901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20902   *) ac_try_echo=$ac_try;;
20903 esac
20904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20905   (eval "$ac_compile") 2>conftest.er1
20906   ac_status=$?
20907   grep -v '^ *+' conftest.er1 >conftest.err
20908   rm -f conftest.er1
20909   cat conftest.err >&5
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); } &&
20912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20913   { (case "(($ac_try" in
20914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915   *) ac_try_echo=$ac_try;;
20916 esac
20917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20918   (eval "$ac_try") 2>&5
20919   ac_status=$?
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); }; } &&
20922          { ac_try='test -s conftest.$ac_objext'
20923   { (case "(($ac_try" in
20924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925   *) ac_try_echo=$ac_try;;
20926 esac
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928   (eval "$ac_try") 2>&5
20929   ac_status=$?
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); }; }; then
20932   ac_header_compiler=yes
20933 else
20934   echo "$as_me: failed program was:" >&5
20935 sed 's/^/| /' conftest.$ac_ext >&5
20936
20937         ac_header_compiler=no
20938 fi
20939
20940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20942 echo "${ECHO_T}$ac_header_compiler" >&6; }
20943
20944 # Is the header present?
20945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20947 cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953 #include <$ac_header>
20954 _ACEOF
20955 if { (ac_try="$ac_cpp conftest.$ac_ext"
20956 case "(($ac_try" in
20957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958   *) ac_try_echo=$ac_try;;
20959 esac
20960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20962   ac_status=$?
20963   grep -v '^ *+' conftest.er1 >conftest.err
20964   rm -f conftest.er1
20965   cat conftest.err >&5
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); } >/dev/null; then
20968   if test -s conftest.err; then
20969     ac_cpp_err=$ac_c_preproc_warn_flag
20970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20971   else
20972     ac_cpp_err=
20973   fi
20974 else
20975   ac_cpp_err=yes
20976 fi
20977 if test -z "$ac_cpp_err"; then
20978   ac_header_preproc=yes
20979 else
20980   echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20982
20983   ac_header_preproc=no
20984 fi
20985
20986 rm -f conftest.err conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20988 echo "${ECHO_T}$ac_header_preproc" >&6; }
20989
20990 # So?  What about this header?
20991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20992   yes:no: )
20993     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20997     ac_header_preproc=yes
20998     ;;
20999   no:yes:* )
21000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21002     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21003 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21004     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21006     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21007 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21010     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21012
21013     ;;
21014 esac
21015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21018   echo $ECHO_N "(cached) $ECHO_C" >&6
21019 else
21020   eval "$as_ac_Header=\$ac_header_preproc"
21021 fi
21022 ac_res=`eval echo '${'$as_ac_Header'}'`
21023                { echo "$as_me:$LINENO: result: $ac_res" >&5
21024 echo "${ECHO_T}$ac_res" >&6; }
21025
21026 fi
21027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21028   cat >>confdefs.h <<_ACEOF
21029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21030 _ACEOF
21031
21032 else
21033    WITH_THREADS="no"
21034 fi
21035
21036 done
21037
21038
21039   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21040 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21041 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21042   echo $ECHO_N "(cached) $ECHO_C" >&6
21043 else
21044   ac_check_lib_save_LIBS=$LIBS
21045 LIBS="-lpthread  $LIBS"
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052
21053 /* Override any GCC internal prototype to avoid an error.
21054    Use char because int might match the return type of a GCC
21055    builtin and then its argument prototype would still apply.  */
21056 #ifdef __cplusplus
21057 extern "C"
21058 #endif
21059 char pthread_create ();
21060 int
21061 main ()
21062 {
21063 return pthread_create ();
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (ac_try="$ac_link"
21070 case "(($ac_try" in
21071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072   *) ac_try_echo=$ac_try;;
21073 esac
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075   (eval "$ac_link") 2>conftest.er1
21076   ac_status=$?
21077   grep -v '^ *+' conftest.er1 >conftest.err
21078   rm -f conftest.er1
21079   cat conftest.err >&5
21080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081   (exit $ac_status); } &&
21082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21083   { (case "(($ac_try" in
21084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085   *) ac_try_echo=$ac_try;;
21086 esac
21087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088   (eval "$ac_try") 2>&5
21089   ac_status=$?
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); }; } &&
21092          { ac_try='test -s conftest$ac_exeext'
21093   { (case "(($ac_try" in
21094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095   *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098   (eval "$ac_try") 2>&5
21099   ac_status=$?
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); }; }; then
21102   ac_cv_lib_pthread_pthread_create=yes
21103 else
21104   echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21106
21107         ac_cv_lib_pthread_pthread_create=no
21108 fi
21109
21110 rm -f core conftest.err conftest.$ac_objext \
21111       conftest$ac_exeext conftest.$ac_ext
21112 LIBS=$ac_check_lib_save_LIBS
21113 fi
21114 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21115 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21116 if test $ac_cv_lib_pthread_pthread_create = yes; then
21117    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21118                   LIBS="$LIBS -lpthread"
21119 else
21120   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21121 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21122 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21123   echo $ECHO_N "(cached) $ECHO_C" >&6
21124 else
21125   ac_check_lib_save_LIBS=$LIBS
21126 LIBS="-lc_r  $LIBS"
21127 cat >conftest.$ac_ext <<_ACEOF
21128 /* confdefs.h.  */
21129 _ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h.  */
21133
21134 /* Override any GCC internal prototype to avoid an error.
21135    Use char because int might match the return type of a GCC
21136    builtin and then its argument prototype would still apply.  */
21137 #ifdef __cplusplus
21138 extern "C"
21139 #endif
21140 char pthread_create ();
21141 int
21142 main ()
21143 {
21144 return pthread_create ();
21145   ;
21146   return 0;
21147 }
21148 _ACEOF
21149 rm -f conftest.$ac_objext conftest$ac_exeext
21150 if { (ac_try="$ac_link"
21151 case "(($ac_try" in
21152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153   *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156   (eval "$ac_link") 2>conftest.er1
21157   ac_status=$?
21158   grep -v '^ *+' conftest.er1 >conftest.err
21159   rm -f conftest.er1
21160   cat conftest.err >&5
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); } &&
21163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21164   { (case "(($ac_try" in
21165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166   *) ac_try_echo=$ac_try;;
21167 esac
21168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169   (eval "$ac_try") 2>&5
21170   ac_status=$?
21171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172   (exit $ac_status); }; } &&
21173          { ac_try='test -s conftest$ac_exeext'
21174   { (case "(($ac_try" in
21175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21176   *) ac_try_echo=$ac_try;;
21177 esac
21178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21179   (eval "$ac_try") 2>&5
21180   ac_status=$?
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); }; }; then
21183   ac_cv_lib_c_r_pthread_create=yes
21184 else
21185   echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21187
21188         ac_cv_lib_c_r_pthread_create=no
21189 fi
21190
21191 rm -f core conftest.err conftest.$ac_objext \
21192       conftest$ac_exeext conftest.$ac_ext
21193 LIBS=$ac_check_lib_save_LIBS
21194 fi
21195 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21196 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21197 if test $ac_cv_lib_c_r_pthread_create = yes; then
21198    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21199 else
21200    WITH_THREADS="no"
21201
21202 fi
21203
21204
21205 fi
21206
21207 fi
21208
21209 if test "x$WITH_THREADS" != "xyes"; then
21210   CFLAGS=$old_CFLAGS
21211   ac_cv_header_pthread_h="no"
21212   WITH_THREADS=no
21213 else
21214
21215   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21216 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21217 if test "${ac_cv_search_sem_init+set}" = set; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220   ac_func_search_save_LIBS=$LIBS
21221 cat >conftest.$ac_ext <<_ACEOF
21222 /* confdefs.h.  */
21223 _ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h.  */
21227
21228 /* Override any GCC internal prototype to avoid an error.
21229    Use char because int might match the return type of a GCC
21230    builtin and then its argument prototype would still apply.  */
21231 #ifdef __cplusplus
21232 extern "C"
21233 #endif
21234 char sem_init ();
21235 int
21236 main ()
21237 {
21238 return sem_init ();
21239   ;
21240   return 0;
21241 }
21242 _ACEOF
21243 for ac_lib in '' pthread sem posix4 rt semaphore; do
21244   if test -z "$ac_lib"; then
21245     ac_res="none required"
21246   else
21247     ac_res=-l$ac_lib
21248     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21249   fi
21250   rm -f conftest.$ac_objext conftest$ac_exeext
21251 if { (ac_try="$ac_link"
21252 case "(($ac_try" in
21253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254   *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257   (eval "$ac_link") 2>conftest.er1
21258   ac_status=$?
21259   grep -v '^ *+' conftest.er1 >conftest.err
21260   rm -f conftest.er1
21261   cat conftest.err >&5
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); } &&
21264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21265   { (case "(($ac_try" in
21266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267   *) ac_try_echo=$ac_try;;
21268 esac
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270   (eval "$ac_try") 2>&5
21271   ac_status=$?
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); }; } &&
21274          { ac_try='test -s conftest$ac_exeext'
21275   { (case "(($ac_try" in
21276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277   *) ac_try_echo=$ac_try;;
21278 esac
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280   (eval "$ac_try") 2>&5
21281   ac_status=$?
21282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283   (exit $ac_status); }; }; then
21284   ac_cv_search_sem_init=$ac_res
21285 else
21286   echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21288
21289
21290 fi
21291
21292 rm -f core conftest.err conftest.$ac_objext \
21293       conftest$ac_exeext
21294   if test "${ac_cv_search_sem_init+set}" = set; then
21295   break
21296 fi
21297 done
21298 if test "${ac_cv_search_sem_init+set}" = set; then
21299   :
21300 else
21301   ac_cv_search_sem_init=no
21302 fi
21303 rm conftest.$ac_ext
21304 LIBS=$ac_func_search_save_LIBS
21305 fi
21306 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21307 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21308 ac_res=$ac_cv_search_sem_init
21309 if test "$ac_res" != no; then
21310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21311
21312 else
21313   { { 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
21314 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;}
21315    { (exit 1); exit 1; }; }
21316
21317 fi
21318
21319 fi
21320
21321
21322 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21323 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21324 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21325   echo $ECHO_N "(cached) $ECHO_C" >&6
21326 else
21327   ac_check_lib_save_LIBS=$LIBS
21328 LIBS="-lsocket  $LIBS"
21329 cat >conftest.$ac_ext <<_ACEOF
21330 /* confdefs.h.  */
21331 _ACEOF
21332 cat confdefs.h >>conftest.$ac_ext
21333 cat >>conftest.$ac_ext <<_ACEOF
21334 /* end confdefs.h.  */
21335
21336 /* Override any GCC internal prototype to avoid an error.
21337    Use char because int might match the return type of a GCC
21338    builtin and then its argument prototype would still apply.  */
21339 #ifdef __cplusplus
21340 extern "C"
21341 #endif
21342 char getsockname ();
21343 int
21344 main ()
21345 {
21346 return getsockname ();
21347   ;
21348   return 0;
21349 }
21350 _ACEOF
21351 rm -f conftest.$ac_objext conftest$ac_exeext
21352 if { (ac_try="$ac_link"
21353 case "(($ac_try" in
21354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21355   *) ac_try_echo=$ac_try;;
21356 esac
21357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21358   (eval "$ac_link") 2>conftest.er1
21359   ac_status=$?
21360   grep -v '^ *+' conftest.er1 >conftest.err
21361   rm -f conftest.er1
21362   cat conftest.err >&5
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); } &&
21365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21366   { (case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_try") 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); }; } &&
21375          { ac_try='test -s conftest$ac_exeext'
21376   { (case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381   (eval "$ac_try") 2>&5
21382   ac_status=$?
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); }; }; then
21385   ac_cv_lib_socket_getsockname=yes
21386 else
21387   echo "$as_me: failed program was:" >&5
21388 sed 's/^/| /' conftest.$ac_ext >&5
21389
21390         ac_cv_lib_socket_getsockname=no
21391 fi
21392
21393 rm -f core conftest.err conftest.$ac_objext \
21394       conftest$ac_exeext conftest.$ac_ext
21395 LIBS=$ac_check_lib_save_LIBS
21396 fi
21397 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21398 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21399 if test $ac_cv_lib_socket_getsockname = yes; then
21400   cat >>confdefs.h <<_ACEOF
21401 #define HAVE_LIBSOCKET 1
21402 _ACEOF
21403
21404   LIBS="-lsocket $LIBS"
21405
21406 fi
21407
21408
21409
21410 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21411 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21412 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21413   echo $ECHO_N "(cached) $ECHO_C" >&6
21414 else
21415   ac_check_lib_save_LIBS=$LIBS
21416 LIBS="-lresolv  $LIBS"
21417 cat >conftest.$ac_ext <<_ACEOF
21418 /* confdefs.h.  */
21419 _ACEOF
21420 cat confdefs.h >>conftest.$ac_ext
21421 cat >>conftest.$ac_ext <<_ACEOF
21422 /* end confdefs.h.  */
21423
21424 /* Override any GCC internal prototype to avoid an error.
21425    Use char because int might match the return type of a GCC
21426    builtin and then its argument prototype would still apply.  */
21427 #ifdef __cplusplus
21428 extern "C"
21429 #endif
21430 char inet_aton ();
21431 int
21432 main ()
21433 {
21434 return inet_aton ();
21435   ;
21436   return 0;
21437 }
21438 _ACEOF
21439 rm -f conftest.$ac_objext conftest$ac_exeext
21440 if { (ac_try="$ac_link"
21441 case "(($ac_try" in
21442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443   *) ac_try_echo=$ac_try;;
21444 esac
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446   (eval "$ac_link") 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } &&
21453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21454   { (case "(($ac_try" in
21455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456   *) ac_try_echo=$ac_try;;
21457 esac
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459   (eval "$ac_try") 2>&5
21460   ac_status=$?
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); }; } &&
21463          { ac_try='test -s conftest$ac_exeext'
21464   { (case "(($ac_try" in
21465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466   *) ac_try_echo=$ac_try;;
21467 esac
21468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469   (eval "$ac_try") 2>&5
21470   ac_status=$?
21471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); }; }; then
21473   ac_cv_lib_resolv_inet_aton=yes
21474 else
21475   echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21477
21478         ac_cv_lib_resolv_inet_aton=no
21479 fi
21480
21481 rm -f core conftest.err conftest.$ac_objext \
21482       conftest$ac_exeext conftest.$ac_ext
21483 LIBS=$ac_check_lib_save_LIBS
21484 fi
21485 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21486 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21487 if test $ac_cv_lib_resolv_inet_aton = yes; then
21488   cat >>confdefs.h <<_ACEOF
21489 #define HAVE_LIBRESOLV 1
21490 _ACEOF
21491
21492   LIBS="-lresolv $LIBS"
21493
21494 fi
21495
21496
21497
21498 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21499 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21500 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21501   echo $ECHO_N "(cached) $ECHO_C" >&6
21502 else
21503   ac_check_lib_save_LIBS=$LIBS
21504 LIBS="-lnsl  $LIBS"
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511
21512 /* Override any GCC internal prototype to avoid an error.
21513    Use char because int might match the return type of a GCC
21514    builtin and then its argument prototype would still apply.  */
21515 #ifdef __cplusplus
21516 extern "C"
21517 #endif
21518 char inet_ntoa ();
21519 int
21520 main ()
21521 {
21522 return inet_ntoa ();
21523   ;
21524   return 0;
21525 }
21526 _ACEOF
21527 rm -f conftest.$ac_objext conftest$ac_exeext
21528 if { (ac_try="$ac_link"
21529 case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534   (eval "$ac_link") 2>conftest.er1
21535   ac_status=$?
21536   grep -v '^ *+' conftest.er1 >conftest.err
21537   rm -f conftest.er1
21538   cat conftest.err >&5
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); } &&
21541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21542   { (case "(($ac_try" in
21543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544   *) ac_try_echo=$ac_try;;
21545 esac
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547   (eval "$ac_try") 2>&5
21548   ac_status=$?
21549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550   (exit $ac_status); }; } &&
21551          { ac_try='test -s conftest$ac_exeext'
21552   { (case "(($ac_try" in
21553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554   *) ac_try_echo=$ac_try;;
21555 esac
21556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21557   (eval "$ac_try") 2>&5
21558   ac_status=$?
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); }; }; then
21561   ac_cv_lib_nsl_inet_ntoa=yes
21562 else
21563   echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21565
21566         ac_cv_lib_nsl_inet_ntoa=no
21567 fi
21568
21569 rm -f core conftest.err conftest.$ac_objext \
21570       conftest$ac_exeext conftest.$ac_ext
21571 LIBS=$ac_check_lib_save_LIBS
21572 fi
21573 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21574 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21575 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21576   cat >>confdefs.h <<_ACEOF
21577 #define HAVE_LIBNSL 1
21578 _ACEOF
21579
21580   LIBS="-lnsl $LIBS"
21581
21582 fi
21583
21584
21585 OPENSSL_LIBS=
21586 old_LIBS=$LIBS
21587 if test "x$OPENSSL_LIB_DIR" != "x"; then
21588     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21589 fi
21590 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21591 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21592 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21593   echo $ECHO_N "(cached) $ECHO_C" >&6
21594 else
21595   ac_check_lib_save_LIBS=$LIBS
21596 LIBS="-lcrypto  $LIBS"
21597 cat >conftest.$ac_ext <<_ACEOF
21598 /* confdefs.h.  */
21599 _ACEOF
21600 cat confdefs.h >>conftest.$ac_ext
21601 cat >>conftest.$ac_ext <<_ACEOF
21602 /* end confdefs.h.  */
21603
21604 /* Override any GCC internal prototype to avoid an error.
21605    Use char because int might match the return type of a GCC
21606    builtin and then its argument prototype would still apply.  */
21607 #ifdef __cplusplus
21608 extern "C"
21609 #endif
21610 char DH_new ();
21611 int
21612 main ()
21613 {
21614 return DH_new ();
21615   ;
21616   return 0;
21617 }
21618 _ACEOF
21619 rm -f conftest.$ac_objext conftest$ac_exeext
21620 if { (ac_try="$ac_link"
21621 case "(($ac_try" in
21622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623   *) ac_try_echo=$ac_try;;
21624 esac
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626   (eval "$ac_link") 2>conftest.er1
21627   ac_status=$?
21628   grep -v '^ *+' conftest.er1 >conftest.err
21629   rm -f conftest.er1
21630   cat conftest.err >&5
21631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632   (exit $ac_status); } &&
21633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21634   { (case "(($ac_try" in
21635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636   *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639   (eval "$ac_try") 2>&5
21640   ac_status=$?
21641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642   (exit $ac_status); }; } &&
21643          { ac_try='test -s conftest$ac_exeext'
21644   { (case "(($ac_try" in
21645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21646   *) ac_try_echo=$ac_try;;
21647 esac
21648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21649   (eval "$ac_try") 2>&5
21650   ac_status=$?
21651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652   (exit $ac_status); }; }; then
21653   ac_cv_lib_crypto_DH_new=yes
21654 else
21655   echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658         ac_cv_lib_crypto_DH_new=no
21659 fi
21660
21661 rm -f core conftest.err conftest.$ac_objext \
21662       conftest$ac_exeext conftest.$ac_ext
21663 LIBS=$ac_check_lib_save_LIBS
21664 fi
21665 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21666 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21667 if test $ac_cv_lib_crypto_DH_new = yes; then
21668
21669
21670 cat >>confdefs.h <<\_ACEOF
21671 #define HAVE_LIBCRYPTO 1
21672 _ACEOF
21673
21674         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21675 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21676 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21677   echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679   ac_check_lib_save_LIBS=$LIBS
21680 LIBS="-lssl  $LIBS"
21681 cat >conftest.$ac_ext <<_ACEOF
21682 /* confdefs.h.  */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h.  */
21687
21688 /* Override any GCC internal prototype to avoid an error.
21689    Use char because int might match the return type of a GCC
21690    builtin and then its argument prototype would still apply.  */
21691 #ifdef __cplusplus
21692 extern "C"
21693 #endif
21694 char SSL_new ();
21695 int
21696 main ()
21697 {
21698 return SSL_new ();
21699   ;
21700   return 0;
21701 }
21702 _ACEOF
21703 rm -f conftest.$ac_objext conftest$ac_exeext
21704 if { (ac_try="$ac_link"
21705 case "(($ac_try" in
21706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707   *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710   (eval "$ac_link") 2>conftest.er1
21711   ac_status=$?
21712   grep -v '^ *+' conftest.er1 >conftest.err
21713   rm -f conftest.er1
21714   cat conftest.err >&5
21715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716   (exit $ac_status); } &&
21717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21718   { (case "(($ac_try" in
21719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720   *) ac_try_echo=$ac_try;;
21721 esac
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723   (eval "$ac_try") 2>&5
21724   ac_status=$?
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); }; } &&
21727          { ac_try='test -s conftest$ac_exeext'
21728   { (case "(($ac_try" in
21729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21730   *) ac_try_echo=$ac_try;;
21731 esac
21732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21733   (eval "$ac_try") 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); }; }; then
21737   ac_cv_lib_ssl_SSL_new=yes
21738 else
21739   echo "$as_me: failed program was:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21741
21742         ac_cv_lib_ssl_SSL_new=no
21743 fi
21744
21745 rm -f core conftest.err conftest.$ac_objext \
21746       conftest$ac_exeext conftest.$ac_ext
21747 LIBS=$ac_check_lib_save_LIBS
21748 fi
21749 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21750 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21751 if test $ac_cv_lib_ssl_SSL_new = yes; then
21752
21753
21754 cat >>confdefs.h <<\_ACEOF
21755 #define HAVE_LIBSSL 1
21756 _ACEOF
21757
21758                 if test "x$OPENSSL_LIB_DIR" != "x"; then
21759                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21760                 fi
21761                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21762
21763 fi
21764
21765
21766 fi
21767
21768 LIBS=$old_LIBS
21769
21770
21771 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21772 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21773 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21774   echo $ECHO_N "(cached) $ECHO_C" >&6
21775 else
21776   ac_check_lib_save_LIBS=$LIBS
21777 LIBS="-lws2_32  $LIBS"
21778 cat >conftest.$ac_ext <<_ACEOF
21779 /* confdefs.h.  */
21780 _ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h.  */
21784
21785 /* Override any GCC internal prototype to avoid an error.
21786    Use char because int might match the return type of a GCC
21787    builtin and then its argument prototype would still apply.  */
21788 #ifdef __cplusplus
21789 extern "C"
21790 #endif
21791 char htonl ();
21792 int
21793 main ()
21794 {
21795 return htonl ();
21796   ;
21797   return 0;
21798 }
21799 _ACEOF
21800 rm -f conftest.$ac_objext conftest$ac_exeext
21801 if { (ac_try="$ac_link"
21802 case "(($ac_try" in
21803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804   *) ac_try_echo=$ac_try;;
21805 esac
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807   (eval "$ac_link") 2>conftest.er1
21808   ac_status=$?
21809   grep -v '^ *+' conftest.er1 >conftest.err
21810   rm -f conftest.er1
21811   cat conftest.err >&5
21812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813   (exit $ac_status); } &&
21814          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21815   { (case "(($ac_try" in
21816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21817   *) ac_try_echo=$ac_try;;
21818 esac
21819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21820   (eval "$ac_try") 2>&5
21821   ac_status=$?
21822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823   (exit $ac_status); }; } &&
21824          { ac_try='test -s conftest$ac_exeext'
21825   { (case "(($ac_try" in
21826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827   *) ac_try_echo=$ac_try;;
21828 esac
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830   (eval "$ac_try") 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); }; }; then
21834   ac_cv_lib_ws2_32_htonl=yes
21835 else
21836   echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21838
21839         ac_cv_lib_ws2_32_htonl=no
21840 fi
21841
21842 rm -f core conftest.err conftest.$ac_objext \
21843       conftest$ac_exeext conftest.$ac_ext
21844 LIBS=$ac_check_lib_save_LIBS
21845 fi
21846 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21847 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21848 if test $ac_cv_lib_ws2_32_htonl = yes; then
21849   cat >>confdefs.h <<_ACEOF
21850 #define HAVE_LIBWS2_32 1
21851 _ACEOF
21852
21853   LIBS="-lws2_32 $LIBS"
21854
21855 fi
21856
21857
21858 PCAP_LIBS=
21859 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21860 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21861 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21862   echo $ECHO_N "(cached) $ECHO_C" >&6
21863 else
21864   ac_check_lib_save_LIBS=$LIBS
21865 LIBS="-lpcap  $LIBS"
21866 cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872
21873 /* Override any GCC internal prototype to avoid an error.
21874    Use char because int might match the return type of a GCC
21875    builtin and then its argument prototype would still apply.  */
21876 #ifdef __cplusplus
21877 extern "C"
21878 #endif
21879 char pcap_open_live ();
21880 int
21881 main ()
21882 {
21883 return pcap_open_live ();
21884   ;
21885   return 0;
21886 }
21887 _ACEOF
21888 rm -f conftest.$ac_objext conftest$ac_exeext
21889 if { (ac_try="$ac_link"
21890 case "(($ac_try" in
21891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21892   *) ac_try_echo=$ac_try;;
21893 esac
21894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21895   (eval "$ac_link") 2>conftest.er1
21896   ac_status=$?
21897   grep -v '^ *+' conftest.er1 >conftest.err
21898   rm -f conftest.er1
21899   cat conftest.err >&5
21900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901   (exit $ac_status); } &&
21902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21903   { (case "(($ac_try" in
21904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905   *) ac_try_echo=$ac_try;;
21906 esac
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908   (eval "$ac_try") 2>&5
21909   ac_status=$?
21910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911   (exit $ac_status); }; } &&
21912          { ac_try='test -s conftest$ac_exeext'
21913   { (case "(($ac_try" in
21914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915   *) ac_try_echo=$ac_try;;
21916 esac
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918   (eval "$ac_try") 2>&5
21919   ac_status=$?
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); }; }; then
21922   ac_cv_lib_pcap_pcap_open_live=yes
21923 else
21924   echo "$as_me: failed program was:" >&5
21925 sed 's/^/| /' conftest.$ac_ext >&5
21926
21927         ac_cv_lib_pcap_pcap_open_live=no
21928 fi
21929
21930 rm -f core conftest.err conftest.$ac_objext \
21931       conftest$ac_exeext conftest.$ac_ext
21932 LIBS=$ac_check_lib_save_LIBS
21933 fi
21934 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21935 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21936 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21937    PCAP_LIBS="-lpcap"
21938
21939 cat >>confdefs.h <<\_ACEOF
21940 #define HAVE_LIBPCAP 1
21941 _ACEOF
21942
21943
21944 else
21945    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21946 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21947 fi
21948
21949
21950
21951 case "$host" in
21952 *-interix*)
21953         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21954         ;;
21955 *-darwin*)
21956         CFLAGS="$CFLAGS -DDARWIN"
21957         ;;
21958 esac
21959
21960
21961
21962
21963
21964
21965 ac_header_dirent=no
21966 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21967   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21968 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21969 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21971   echo $ECHO_N "(cached) $ECHO_C" >&6
21972 else
21973   cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979 #include <sys/types.h>
21980 #include <$ac_hdr>
21981
21982 int
21983 main ()
21984 {
21985 if ((DIR *) 0)
21986 return 0;
21987   ;
21988   return 0;
21989 }
21990 _ACEOF
21991 rm -f conftest.$ac_objext
21992 if { (ac_try="$ac_compile"
21993 case "(($ac_try" in
21994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995   *) ac_try_echo=$ac_try;;
21996 esac
21997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21998   (eval "$ac_compile") 2>conftest.er1
21999   ac_status=$?
22000   grep -v '^ *+' conftest.er1 >conftest.err
22001   rm -f conftest.er1
22002   cat conftest.err >&5
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); } &&
22005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22006   { (case "(($ac_try" in
22007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008   *) ac_try_echo=$ac_try;;
22009 esac
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011   (eval "$ac_try") 2>&5
22012   ac_status=$?
22013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014   (exit $ac_status); }; } &&
22015          { ac_try='test -s conftest.$ac_objext'
22016   { (case "(($ac_try" in
22017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018   *) ac_try_echo=$ac_try;;
22019 esac
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021   (eval "$ac_try") 2>&5
22022   ac_status=$?
22023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024   (exit $ac_status); }; }; then
22025   eval "$as_ac_Header=yes"
22026 else
22027   echo "$as_me: failed program was:" >&5
22028 sed 's/^/| /' conftest.$ac_ext >&5
22029
22030         eval "$as_ac_Header=no"
22031 fi
22032
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22034 fi
22035 ac_res=`eval echo '${'$as_ac_Header'}'`
22036                { echo "$as_me:$LINENO: result: $ac_res" >&5
22037 echo "${ECHO_T}$ac_res" >&6; }
22038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22039   cat >>confdefs.h <<_ACEOF
22040 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22041 _ACEOF
22042
22043 ac_header_dirent=$ac_hdr; break
22044 fi
22045
22046 done
22047 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22048 if test $ac_header_dirent = dirent.h; then
22049   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22050 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22051 if test "${ac_cv_search_opendir+set}" = set; then
22052   echo $ECHO_N "(cached) $ECHO_C" >&6
22053 else
22054   ac_func_search_save_LIBS=$LIBS
22055 cat >conftest.$ac_ext <<_ACEOF
22056 /* confdefs.h.  */
22057 _ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h.  */
22061
22062 /* Override any GCC internal prototype to avoid an error.
22063    Use char because int might match the return type of a GCC
22064    builtin and then its argument prototype would still apply.  */
22065 #ifdef __cplusplus
22066 extern "C"
22067 #endif
22068 char opendir ();
22069 int
22070 main ()
22071 {
22072 return opendir ();
22073   ;
22074   return 0;
22075 }
22076 _ACEOF
22077 for ac_lib in '' dir; do
22078   if test -z "$ac_lib"; then
22079     ac_res="none required"
22080   else
22081     ac_res=-l$ac_lib
22082     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22083   fi
22084   rm -f conftest.$ac_objext conftest$ac_exeext
22085 if { (ac_try="$ac_link"
22086 case "(($ac_try" in
22087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088   *) ac_try_echo=$ac_try;;
22089 esac
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091   (eval "$ac_link") 2>conftest.er1
22092   ac_status=$?
22093   grep -v '^ *+' conftest.er1 >conftest.err
22094   rm -f conftest.er1
22095   cat conftest.err >&5
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); } &&
22098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22099   { (case "(($ac_try" in
22100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101   *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104   (eval "$ac_try") 2>&5
22105   ac_status=$?
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); }; } &&
22108          { ac_try='test -s conftest$ac_exeext'
22109   { (case "(($ac_try" in
22110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111   *) ac_try_echo=$ac_try;;
22112 esac
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114   (eval "$ac_try") 2>&5
22115   ac_status=$?
22116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); }; }; then
22118   ac_cv_search_opendir=$ac_res
22119 else
22120   echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123
22124 fi
22125
22126 rm -f core conftest.err conftest.$ac_objext \
22127       conftest$ac_exeext
22128   if test "${ac_cv_search_opendir+set}" = set; then
22129   break
22130 fi
22131 done
22132 if test "${ac_cv_search_opendir+set}" = set; then
22133   :
22134 else
22135   ac_cv_search_opendir=no
22136 fi
22137 rm conftest.$ac_ext
22138 LIBS=$ac_func_search_save_LIBS
22139 fi
22140 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22141 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22142 ac_res=$ac_cv_search_opendir
22143 if test "$ac_res" != no; then
22144   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22145
22146 fi
22147
22148 else
22149   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22150 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22151 if test "${ac_cv_search_opendir+set}" = set; then
22152   echo $ECHO_N "(cached) $ECHO_C" >&6
22153 else
22154   ac_func_search_save_LIBS=$LIBS
22155 cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161
22162 /* Override any GCC internal prototype to avoid an error.
22163    Use char because int might match the return type of a GCC
22164    builtin and then its argument prototype would still apply.  */
22165 #ifdef __cplusplus
22166 extern "C"
22167 #endif
22168 char opendir ();
22169 int
22170 main ()
22171 {
22172 return opendir ();
22173   ;
22174   return 0;
22175 }
22176 _ACEOF
22177 for ac_lib in '' x; do
22178   if test -z "$ac_lib"; then
22179     ac_res="none required"
22180   else
22181     ac_res=-l$ac_lib
22182     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22183   fi
22184   rm -f conftest.$ac_objext conftest$ac_exeext
22185 if { (ac_try="$ac_link"
22186 case "(($ac_try" in
22187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188   *) ac_try_echo=$ac_try;;
22189 esac
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191   (eval "$ac_link") 2>conftest.er1
22192   ac_status=$?
22193   grep -v '^ *+' conftest.er1 >conftest.err
22194   rm -f conftest.er1
22195   cat conftest.err >&5
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); } &&
22198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22199   { (case "(($ac_try" in
22200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201   *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204   (eval "$ac_try") 2>&5
22205   ac_status=$?
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); }; } &&
22208          { ac_try='test -s conftest$ac_exeext'
22209   { (case "(($ac_try" in
22210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211   *) ac_try_echo=$ac_try;;
22212 esac
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214   (eval "$ac_try") 2>&5
22215   ac_status=$?
22216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217   (exit $ac_status); }; }; then
22218   ac_cv_search_opendir=$ac_res
22219 else
22220   echo "$as_me: failed program was:" >&5
22221 sed 's/^/| /' conftest.$ac_ext >&5
22222
22223
22224 fi
22225
22226 rm -f core conftest.err conftest.$ac_objext \
22227       conftest$ac_exeext
22228   if test "${ac_cv_search_opendir+set}" = set; then
22229   break
22230 fi
22231 done
22232 if test "${ac_cv_search_opendir+set}" = set; then
22233   :
22234 else
22235   ac_cv_search_opendir=no
22236 fi
22237 rm conftest.$ac_ext
22238 LIBS=$ac_func_search_save_LIBS
22239 fi
22240 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22241 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22242 ac_res=$ac_cv_search_opendir
22243 if test "$ac_res" != no; then
22244   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22245
22246 fi
22247
22248 fi
22249
22250 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22251 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22252 if test "${ac_cv_header_stdc+set}" = set; then
22253   echo $ECHO_N "(cached) $ECHO_C" >&6
22254 else
22255   cat >conftest.$ac_ext <<_ACEOF
22256 /* confdefs.h.  */
22257 _ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h.  */
22261 #include <stdlib.h>
22262 #include <stdarg.h>
22263 #include <string.h>
22264 #include <float.h>
22265
22266 int
22267 main ()
22268 {
22269
22270   ;
22271   return 0;
22272 }
22273 _ACEOF
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278   *) ac_try_echo=$ac_try;;
22279 esac
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281   (eval "$ac_compile") 2>conftest.er1
22282   ac_status=$?
22283   grep -v '^ *+' conftest.er1 >conftest.err
22284   rm -f conftest.er1
22285   cat conftest.err >&5
22286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287   (exit $ac_status); } &&
22288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22289   { (case "(($ac_try" in
22290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291   *) ac_try_echo=$ac_try;;
22292 esac
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294   (eval "$ac_try") 2>&5
22295   ac_status=$?
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); }; } &&
22298          { ac_try='test -s conftest.$ac_objext'
22299   { (case "(($ac_try" in
22300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301   *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304   (eval "$ac_try") 2>&5
22305   ac_status=$?
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); }; }; then
22308   ac_cv_header_stdc=yes
22309 else
22310   echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22312
22313         ac_cv_header_stdc=no
22314 fi
22315
22316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22317
22318 if test $ac_cv_header_stdc = yes; then
22319   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22320   cat >conftest.$ac_ext <<_ACEOF
22321 /* confdefs.h.  */
22322 _ACEOF
22323 cat confdefs.h >>conftest.$ac_ext
22324 cat >>conftest.$ac_ext <<_ACEOF
22325 /* end confdefs.h.  */
22326 #include <string.h>
22327
22328 _ACEOF
22329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22330   $EGREP "memchr" >/dev/null 2>&1; then
22331   :
22332 else
22333   ac_cv_header_stdc=no
22334 fi
22335 rm -f conftest*
22336
22337 fi
22338
22339 if test $ac_cv_header_stdc = yes; then
22340   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22341   cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h.  */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h.  */
22347 #include <stdlib.h>
22348
22349 _ACEOF
22350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22351   $EGREP "free" >/dev/null 2>&1; then
22352   :
22353 else
22354   ac_cv_header_stdc=no
22355 fi
22356 rm -f conftest*
22357
22358 fi
22359
22360 if test $ac_cv_header_stdc = yes; then
22361   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22362   if test "$cross_compiling" = yes; then
22363   :
22364 else
22365   cat >conftest.$ac_ext <<_ACEOF
22366 /* confdefs.h.  */
22367 _ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h.  */
22371 #include <ctype.h>
22372 #include <stdlib.h>
22373 #if ((' ' & 0x0FF) == 0x020)
22374 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22375 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22376 #else
22377 # define ISLOWER(c) \
22378                    (('a' <= (c) && (c) <= 'i') \
22379                      || ('j' <= (c) && (c) <= 'r') \
22380                      || ('s' <= (c) && (c) <= 'z'))
22381 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22382 #endif
22383
22384 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22385 int
22386 main ()
22387 {
22388   int i;
22389   for (i = 0; i < 256; i++)
22390     if (XOR (islower (i), ISLOWER (i))
22391         || toupper (i) != TOUPPER (i))
22392       return 2;
22393   return 0;
22394 }
22395 _ACEOF
22396 rm -f conftest$ac_exeext
22397 if { (ac_try="$ac_link"
22398 case "(($ac_try" in
22399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400   *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403   (eval "$ac_link") 2>&5
22404   ac_status=$?
22405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22407   { (case "(($ac_try" in
22408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409   *) ac_try_echo=$ac_try;;
22410 esac
22411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22412   (eval "$ac_try") 2>&5
22413   ac_status=$?
22414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415   (exit $ac_status); }; }; then
22416   :
22417 else
22418   echo "$as_me: program exited with status $ac_status" >&5
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22421
22422 ( exit $ac_status )
22423 ac_cv_header_stdc=no
22424 fi
22425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22426 fi
22427
22428
22429 fi
22430 fi
22431 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22432 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22433 if test $ac_cv_header_stdc = yes; then
22434
22435 cat >>confdefs.h <<\_ACEOF
22436 #define STDC_HEADERS 1
22437 _ACEOF
22438
22439 fi
22440
22441 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22442 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22443 if test "${ac_cv_header_time+set}" = set; then
22444   echo $ECHO_N "(cached) $ECHO_C" >&6
22445 else
22446   cat >conftest.$ac_ext <<_ACEOF
22447 /* confdefs.h.  */
22448 _ACEOF
22449 cat confdefs.h >>conftest.$ac_ext
22450 cat >>conftest.$ac_ext <<_ACEOF
22451 /* end confdefs.h.  */
22452 #include <sys/types.h>
22453 #include <sys/time.h>
22454 #include <time.h>
22455
22456 int
22457 main ()
22458 {
22459 if ((struct tm *) 0)
22460 return 0;
22461   ;
22462   return 0;
22463 }
22464 _ACEOF
22465 rm -f conftest.$ac_objext
22466 if { (ac_try="$ac_compile"
22467 case "(($ac_try" in
22468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469   *) ac_try_echo=$ac_try;;
22470 esac
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472   (eval "$ac_compile") 2>conftest.er1
22473   ac_status=$?
22474   grep -v '^ *+' conftest.er1 >conftest.err
22475   rm -f conftest.er1
22476   cat conftest.err >&5
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); } &&
22479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22480   { (case "(($ac_try" in
22481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482   *) ac_try_echo=$ac_try;;
22483 esac
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485   (eval "$ac_try") 2>&5
22486   ac_status=$?
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); }; } &&
22489          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22499   ac_cv_header_time=yes
22500 else
22501   echo "$as_me: failed program was:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22503
22504         ac_cv_header_time=no
22505 fi
22506
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 fi
22509 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22510 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22511 if test $ac_cv_header_time = yes; then
22512
22513 cat >>confdefs.h <<\_ACEOF
22514 #define TIME_WITH_SYS_TIME 1
22515 _ACEOF
22516
22517 fi
22518
22519 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22520 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22521 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22522   echo $ECHO_N "(cached) $ECHO_C" >&6
22523 else
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 <sys/types.h>
22531 #include <sys/wait.h>
22532 #ifndef WEXITSTATUS
22533 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22534 #endif
22535 #ifndef WIFEXITED
22536 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22537 #endif
22538
22539 int
22540 main ()
22541 {
22542   int s;
22543   wait (&s);
22544   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22545   ;
22546   return 0;
22547 }
22548 _ACEOF
22549 rm -f conftest.$ac_objext
22550 if { (ac_try="$ac_compile"
22551 case "(($ac_try" in
22552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553   *) ac_try_echo=$ac_try;;
22554 esac
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556   (eval "$ac_compile") 2>conftest.er1
22557   ac_status=$?
22558   grep -v '^ *+' conftest.er1 >conftest.err
22559   rm -f conftest.er1
22560   cat conftest.err >&5
22561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562   (exit $ac_status); } &&
22563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22564   { (case "(($ac_try" in
22565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22566   *) ac_try_echo=$ac_try;;
22567 esac
22568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22569   (eval "$ac_try") 2>&5
22570   ac_status=$?
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); }; } &&
22573          { ac_try='test -s conftest.$ac_objext'
22574   { (case "(($ac_try" in
22575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576   *) ac_try_echo=$ac_try;;
22577 esac
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579   (eval "$ac_try") 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); }; }; then
22583   ac_cv_header_sys_wait_h=yes
22584 else
22585   echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22587
22588         ac_cv_header_sys_wait_h=no
22589 fi
22590
22591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22592 fi
22593 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22594 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22595 if test $ac_cv_header_sys_wait_h = yes; then
22596
22597 cat >>confdefs.h <<\_ACEOF
22598 #define HAVE_SYS_WAIT_H 1
22599 _ACEOF
22600
22601 fi
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636 for ac_header in \
22637         unistd.h \
22638         crypt.h \
22639         errno.h \
22640         resource.h \
22641         sys/resource.h \
22642         getopt.h \
22643         malloc.h \
22644         utmp.h \
22645         utmpx.h \
22646         signal.h \
22647         sys/select.h \
22648         syslog.h \
22649         inttypes.h \
22650         stdint.h \
22651         stdio.h \
22652         netdb.h \
22653         semaphore.h \
22654         arpa/inet.h \
22655         netinet/in.h \
22656         sys/types.h \
22657         sys/socket.h \
22658         winsock.h \
22659         sys/time.h \
22660         sys/wait.h \
22661         sys/security.h \
22662         fcntl.h \
22663         sys/fcntl.h \
22664         prot.h \
22665         pwd.h \
22666         grp.h \
22667         sia.h \
22668         siad.h
22669
22670 do
22671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22673   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22676   echo $ECHO_N "(cached) $ECHO_C" >&6
22677 fi
22678 ac_res=`eval echo '${'$as_ac_Header'}'`
22679                { echo "$as_me:$LINENO: result: $ac_res" >&5
22680 echo "${ECHO_T}$ac_res" >&6; }
22681 else
22682   # Is the header compilable?
22683 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22684 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22685 cat >conftest.$ac_ext <<_ACEOF
22686 /* confdefs.h.  */
22687 _ACEOF
22688 cat confdefs.h >>conftest.$ac_ext
22689 cat >>conftest.$ac_ext <<_ACEOF
22690 /* end confdefs.h.  */
22691 $ac_includes_default
22692 #include <$ac_header>
22693 _ACEOF
22694 rm -f conftest.$ac_objext
22695 if { (ac_try="$ac_compile"
22696 case "(($ac_try" in
22697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22698   *) ac_try_echo=$ac_try;;
22699 esac
22700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22701   (eval "$ac_compile") 2>conftest.er1
22702   ac_status=$?
22703   grep -v '^ *+' conftest.er1 >conftest.err
22704   rm -f conftest.er1
22705   cat conftest.err >&5
22706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707   (exit $ac_status); } &&
22708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22709   { (case "(($ac_try" in
22710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711   *) ac_try_echo=$ac_try;;
22712 esac
22713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22714   (eval "$ac_try") 2>&5
22715   ac_status=$?
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); }; } &&
22718          { ac_try='test -s conftest.$ac_objext'
22719   { (case "(($ac_try" in
22720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721   *) ac_try_echo=$ac_try;;
22722 esac
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724   (eval "$ac_try") 2>&5
22725   ac_status=$?
22726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727   (exit $ac_status); }; }; then
22728   ac_header_compiler=yes
22729 else
22730   echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22732
22733         ac_header_compiler=no
22734 fi
22735
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22738 echo "${ECHO_T}$ac_header_compiler" >&6; }
22739
22740 # Is the header present?
22741 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
22750 _ACEOF
22751 if { (ac_try="$ac_cpp conftest.$ac_ext"
22752 case "(($ac_try" in
22753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754   *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22758   ac_status=$?
22759   grep -v '^ *+' conftest.er1 >conftest.err
22760   rm -f conftest.er1
22761   cat conftest.err >&5
22762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763   (exit $ac_status); } >/dev/null; then
22764   if test -s conftest.err; then
22765     ac_cpp_err=$ac_c_preproc_warn_flag
22766     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22767   else
22768     ac_cpp_err=
22769   fi
22770 else
22771   ac_cpp_err=yes
22772 fi
22773 if test -z "$ac_cpp_err"; then
22774   ac_header_preproc=yes
22775 else
22776   echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22778
22779   ac_header_preproc=no
22780 fi
22781
22782 rm -f conftest.err conftest.$ac_ext
22783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22784 echo "${ECHO_T}$ac_header_preproc" >&6; }
22785
22786 # So?  What about this header?
22787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22788   yes:no: )
22789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22793     ac_header_preproc=yes
22794     ;;
22795   no:yes:* )
22796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22808
22809     ;;
22810 esac
22811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22814   echo $ECHO_N "(cached) $ECHO_C" >&6
22815 else
22816   eval "$as_ac_Header=\$ac_header_preproc"
22817 fi
22818 ac_res=`eval echo '${'$as_ac_Header'}'`
22819                { echo "$as_me:$LINENO: result: $ac_res" >&5
22820 echo "${ECHO_T}$ac_res" >&6; }
22821
22822 fi
22823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22824   cat >>confdefs.h <<_ACEOF
22825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22826 _ACEOF
22827
22828 fi
22829
22830 done
22831
22832
22833
22834 for ac_header in net/if.h
22835 do
22836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22840   echo $ECHO_N "(cached) $ECHO_C" >&6
22841 else
22842   cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h.  */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h.  */
22848 #ifdef HAVE_SYS_SOCKET_H
22849 # include <sys/socket.h>
22850 # endif
22851
22852
22853 #include <$ac_header>
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22863   ac_status=$?
22864   grep -v '^ *+' conftest.er1 >conftest.err
22865   rm -f conftest.er1
22866   cat conftest.err >&5
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); } &&
22869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22870   { (case "(($ac_try" in
22871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22872   *) ac_try_echo=$ac_try;;
22873 esac
22874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22875   (eval "$ac_try") 2>&5
22876   ac_status=$?
22877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878   (exit $ac_status); }; } &&
22879          { ac_try='test -s conftest.$ac_objext'
22880   { (case "(($ac_try" in
22881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882   *) ac_try_echo=$ac_try;;
22883 esac
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885   (eval "$ac_try") 2>&5
22886   ac_status=$?
22887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888   (exit $ac_status); }; }; then
22889   eval "$as_ac_Header=yes"
22890 else
22891   echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22893
22894         eval "$as_ac_Header=no"
22895 fi
22896
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898 fi
22899 ac_res=`eval echo '${'$as_ac_Header'}'`
22900                { echo "$as_me:$LINENO: result: $ac_res" >&5
22901 echo "${ECHO_T}$ac_res" >&6; }
22902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22903   cat >>confdefs.h <<_ACEOF
22904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22905 _ACEOF
22906
22907 fi
22908
22909 done
22910
22911
22912 REGEX=no
22913 if test "${ac_cv_header_regex_h+set}" = set; then
22914   { echo "$as_me:$LINENO: checking for regex.h" >&5
22915 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22916 if test "${ac_cv_header_regex_h+set}" = set; then
22917   echo $ECHO_N "(cached) $ECHO_C" >&6
22918 fi
22919 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22920 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22921 else
22922   # Is the header compilable?
22923 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22924 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22925 cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h.  */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h.  */
22931 $ac_includes_default
22932 #include <regex.h>
22933 _ACEOF
22934 rm -f conftest.$ac_objext
22935 if { (ac_try="$ac_compile"
22936 case "(($ac_try" in
22937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938   *) ac_try_echo=$ac_try;;
22939 esac
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941   (eval "$ac_compile") 2>conftest.er1
22942   ac_status=$?
22943   grep -v '^ *+' conftest.er1 >conftest.err
22944   rm -f conftest.er1
22945   cat conftest.err >&5
22946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947   (exit $ac_status); } &&
22948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22949   { (case "(($ac_try" in
22950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951   *) ac_try_echo=$ac_try;;
22952 esac
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954   (eval "$ac_try") 2>&5
22955   ac_status=$?
22956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957   (exit $ac_status); }; } &&
22958          { ac_try='test -s conftest.$ac_objext'
22959   { (case "(($ac_try" in
22960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961   *) ac_try_echo=$ac_try;;
22962 esac
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964   (eval "$ac_try") 2>&5
22965   ac_status=$?
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); }; }; then
22968   ac_header_compiler=yes
22969 else
22970   echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22972
22973         ac_header_compiler=no
22974 fi
22975
22976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22978 echo "${ECHO_T}$ac_header_compiler" >&6; }
22979
22980 # Is the header present?
22981 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22982 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22983 cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h.  */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h.  */
22989 #include <regex.h>
22990 _ACEOF
22991 if { (ac_try="$ac_cpp conftest.$ac_ext"
22992 case "(($ac_try" in
22993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994   *) ac_try_echo=$ac_try;;
22995 esac
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22998   ac_status=$?
22999   grep -v '^ *+' conftest.er1 >conftest.err
23000   rm -f conftest.er1
23001   cat conftest.err >&5
23002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003   (exit $ac_status); } >/dev/null; then
23004   if test -s conftest.err; then
23005     ac_cpp_err=$ac_c_preproc_warn_flag
23006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23007   else
23008     ac_cpp_err=
23009   fi
23010 else
23011   ac_cpp_err=yes
23012 fi
23013 if test -z "$ac_cpp_err"; then
23014   ac_header_preproc=yes
23015 else
23016   echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019   ac_header_preproc=no
23020 fi
23021
23022 rm -f conftest.err conftest.$ac_ext
23023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23024 echo "${ECHO_T}$ac_header_preproc" >&6; }
23025
23026 # So?  What about this header?
23027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23028   yes:no: )
23029     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23030 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23031     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23032 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23033     ac_header_preproc=yes
23034     ;;
23035   no:yes:* )
23036     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23037 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23038     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
23039 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
23040     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23041 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23042     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
23043 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23044     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23045 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23046     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23047 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23048
23049     ;;
23050 esac
23051 { echo "$as_me:$LINENO: checking for regex.h" >&5
23052 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23053 if test "${ac_cv_header_regex_h+set}" = set; then
23054   echo $ECHO_N "(cached) $ECHO_C" >&6
23055 else
23056   ac_cv_header_regex_h=$ac_header_preproc
23057 fi
23058 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23059 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23060
23061 fi
23062 if test $ac_cv_header_regex_h = yes; then
23063
23064 cat >>confdefs.h <<\_ACEOF
23065 #define HAVE_REGEX_H
23066 _ACEOF
23067
23068 fi
23069
23070
23071 if test "x$ac_cv_header_regex_h" = "xyes"; then
23072   REGEX_EXTENDED=no
23073   REGEX=yes
23074   cat >conftest.$ac_ext <<_ACEOF
23075 /* confdefs.h.  */
23076 _ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h.  */
23080 #include <regex.h>
23081      #ifdef REG_EXTENDED
23082        yes
23083      #endif
23084
23085 _ACEOF
23086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23087   $EGREP "yes" >/dev/null 2>&1; then
23088
23089 cat >>confdefs.h <<\_ACEOF
23090 #define HAVE_REG_EXTENDED
23091 _ACEOF
23092  REGEX_EXTENDED=yes
23093 fi
23094 rm -f conftest*
23095
23096 fi
23097
23098
23099
23100 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23101 then
23102
23103 cat >>confdefs.h <<\_ACEOF
23104 #define OSFC2
23105 _ACEOF
23106
23107 fi
23108
23109 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23110 then
23111
23112 cat >>confdefs.h <<\_ACEOF
23113 #define OSFSIA
23114 _ACEOF
23115
23116 fi
23117
23118 OPENSSL_INCLUDE="-DNO_OPENSSL"
23119 if test "x$OPENSSL_LIBS" = "x"; then
23120     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23121 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23122 else
23123     old_CPPFLAGS=$CPPFLAGS
23124     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23125         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23126     fi
23127         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23128
23129
23130
23131
23132 for ac_header in \
23133         openssl/ssl.h \
23134         openssl/crypto.h \
23135         openssl/err.h \
23136         openssl/engine.h
23137 do
23138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23140   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23143   echo $ECHO_N "(cached) $ECHO_C" >&6
23144 fi
23145 ac_res=`eval echo '${'$as_ac_Header'}'`
23146                { echo "$as_me:$LINENO: result: $ac_res" >&5
23147 echo "${ECHO_T}$ac_res" >&6; }
23148 else
23149   # Is the header compilable?
23150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23152 cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158 $ac_includes_default
23159 #include <$ac_header>
23160 _ACEOF
23161 rm -f conftest.$ac_objext
23162 if { (ac_try="$ac_compile"
23163 case "(($ac_try" in
23164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165   *) ac_try_echo=$ac_try;;
23166 esac
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168   (eval "$ac_compile") 2>conftest.er1
23169   ac_status=$?
23170   grep -v '^ *+' conftest.er1 >conftest.err
23171   rm -f conftest.er1
23172   cat conftest.err >&5
23173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174   (exit $ac_status); } &&
23175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23176   { (case "(($ac_try" in
23177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23178   *) ac_try_echo=$ac_try;;
23179 esac
23180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23181   (eval "$ac_try") 2>&5
23182   ac_status=$?
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); }; } &&
23185          { ac_try='test -s conftest.$ac_objext'
23186   { (case "(($ac_try" in
23187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188   *) ac_try_echo=$ac_try;;
23189 esac
23190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23191   (eval "$ac_try") 2>&5
23192   ac_status=$?
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); }; }; then
23195   ac_header_compiler=yes
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200         ac_header_compiler=no
23201 fi
23202
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23205 echo "${ECHO_T}$ac_header_compiler" >&6; }
23206
23207 # Is the header present?
23208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23210 cat >conftest.$ac_ext <<_ACEOF
23211 /* confdefs.h.  */
23212 _ACEOF
23213 cat confdefs.h >>conftest.$ac_ext
23214 cat >>conftest.$ac_ext <<_ACEOF
23215 /* end confdefs.h.  */
23216 #include <$ac_header>
23217 _ACEOF
23218 if { (ac_try="$ac_cpp conftest.$ac_ext"
23219 case "(($ac_try" in
23220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221   *) ac_try_echo=$ac_try;;
23222 esac
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23225   ac_status=$?
23226   grep -v '^ *+' conftest.er1 >conftest.err
23227   rm -f conftest.er1
23228   cat conftest.err >&5
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); } >/dev/null; then
23231   if test -s conftest.err; then
23232     ac_cpp_err=$ac_c_preproc_warn_flag
23233     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23234   else
23235     ac_cpp_err=
23236   fi
23237 else
23238   ac_cpp_err=yes
23239 fi
23240 if test -z "$ac_cpp_err"; then
23241   ac_header_preproc=yes
23242 else
23243   echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23245
23246   ac_header_preproc=no
23247 fi
23248
23249 rm -f conftest.err conftest.$ac_ext
23250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23251 echo "${ECHO_T}$ac_header_preproc" >&6; }
23252
23253 # So?  What about this header?
23254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23255   yes:no: )
23256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23260     ac_header_preproc=yes
23261     ;;
23262   no:yes:* )
23263     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23265     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23266 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23267     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23269     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23270 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23273     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23275
23276     ;;
23277 esac
23278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23281   echo $ECHO_N "(cached) $ECHO_C" >&6
23282 else
23283   eval "$as_ac_Header=\$ac_header_preproc"
23284 fi
23285 ac_res=`eval echo '${'$as_ac_Header'}'`
23286                { echo "$as_me:$LINENO: result: $ac_res" >&5
23287 echo "${ECHO_T}$ac_res" >&6; }
23288
23289 fi
23290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23291   cat >>confdefs.h <<_ACEOF
23292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23293 _ACEOF
23294
23295 else
23296   OPENSSL_LIBS=
23297
23298 fi
23299
23300 done
23301
23302     if test "x$OPENSSL_LIBS" != "x"; then
23303         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23304 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23305         cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h.  */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h.  */
23311 #include <openssl/crypto.h>
23312              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23313              yes
23314              #endif
23315
23316 _ACEOF
23317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23318   $EGREP "yes" >/dev/null 2>&1; then
23319   goodssl="yes"
23320 fi
23321 rm -f conftest*
23322
23323         if test "x$goodssl" != "xyes"; then
23324             { echo "$as_me:$LINENO: result: no" >&5
23325 echo "${ECHO_T}no" >&6; }
23326             OPENSSL_LIBS=
23327         else
23328             { echo "$as_me:$LINENO: result: yes" >&5
23329 echo "${ECHO_T}yes" >&6; }
23330             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23331                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23332             else
23333                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23334             fi
23335         fi
23336     fi
23337     CPPFLAGS=$old_CPPFLAGS
23338 fi
23339
23340
23341 export OPENSSL_LIBS
23342
23343 if test "x$PCAP_LIBS" = x; then
23344     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23345 echo "$as_me: skipping test for pcap.h." >&6;}
23346 else
23347     if test "${ac_cv_header_pcap_h+set}" = set; then
23348   { echo "$as_me:$LINENO: checking for pcap.h" >&5
23349 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23350 if test "${ac_cv_header_pcap_h+set}" = set; then
23351   echo $ECHO_N "(cached) $ECHO_C" >&6
23352 fi
23353 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23354 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23355 else
23356   # Is the header compilable?
23357 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23358 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23359 cat >conftest.$ac_ext <<_ACEOF
23360 /* confdefs.h.  */
23361 _ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h.  */
23365 $ac_includes_default
23366 #include <pcap.h>
23367 _ACEOF
23368 rm -f conftest.$ac_objext
23369 if { (ac_try="$ac_compile"
23370 case "(($ac_try" in
23371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23372   *) ac_try_echo=$ac_try;;
23373 esac
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375   (eval "$ac_compile") 2>conftest.er1
23376   ac_status=$?
23377   grep -v '^ *+' conftest.er1 >conftest.err
23378   rm -f conftest.er1
23379   cat conftest.err >&5
23380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381   (exit $ac_status); } &&
23382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23383   { (case "(($ac_try" in
23384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385   *) ac_try_echo=$ac_try;;
23386 esac
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388   (eval "$ac_try") 2>&5
23389   ac_status=$?
23390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391   (exit $ac_status); }; } &&
23392          { ac_try='test -s conftest.$ac_objext'
23393   { (case "(($ac_try" in
23394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395   *) ac_try_echo=$ac_try;;
23396 esac
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398   (eval "$ac_try") 2>&5
23399   ac_status=$?
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); }; }; then
23402   ac_header_compiler=yes
23403 else
23404   echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23406
23407         ac_header_compiler=no
23408 fi
23409
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23412 echo "${ECHO_T}$ac_header_compiler" >&6; }
23413
23414 # Is the header present?
23415 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23416 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23417 cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h.  */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h.  */
23423 #include <pcap.h>
23424 _ACEOF
23425 if { (ac_try="$ac_cpp conftest.$ac_ext"
23426 case "(($ac_try" in
23427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428   *) ac_try_echo=$ac_try;;
23429 esac
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23432   ac_status=$?
23433   grep -v '^ *+' conftest.er1 >conftest.err
23434   rm -f conftest.er1
23435   cat conftest.err >&5
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); } >/dev/null; then
23438   if test -s conftest.err; then
23439     ac_cpp_err=$ac_c_preproc_warn_flag
23440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23441   else
23442     ac_cpp_err=
23443   fi
23444 else
23445   ac_cpp_err=yes
23446 fi
23447 if test -z "$ac_cpp_err"; then
23448   ac_header_preproc=yes
23449 else
23450   echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23452
23453   ac_header_preproc=no
23454 fi
23455
23456 rm -f conftest.err conftest.$ac_ext
23457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23458 echo "${ECHO_T}$ac_header_preproc" >&6; }
23459
23460 # So?  What about this header?
23461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23462   yes:no: )
23463     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23464 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23465     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23466 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23467     ac_header_preproc=yes
23468     ;;
23469   no:yes:* )
23470     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23471 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23472     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
23473 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
23474     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23475 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23476     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
23477 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23478     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23479 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23480     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23481 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23482
23483     ;;
23484 esac
23485 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23486 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23487 if test "${ac_cv_header_pcap_h+set}" = set; then
23488   echo $ECHO_N "(cached) $ECHO_C" >&6
23489 else
23490   ac_cv_header_pcap_h=$ac_header_preproc
23491 fi
23492 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23493 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23494
23495 fi
23496 if test $ac_cv_header_pcap_h = yes; then
23497
23498 cat >>confdefs.h <<\_ACEOF
23499 #define HAVE_PCAP_H 1
23500 _ACEOF
23501
23502 else
23503    PCAP_LIBS=
23504         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23505 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23506
23507 fi
23508
23509
23510 fi
23511
23512
23513
23514 { echo "$as_me:$LINENO: checking for off_t" >&5
23515 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23516 if test "${ac_cv_type_off_t+set}" = set; then
23517   echo $ECHO_N "(cached) $ECHO_C" >&6
23518 else
23519   cat >conftest.$ac_ext <<_ACEOF
23520 /* confdefs.h.  */
23521 _ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h.  */
23525 $ac_includes_default
23526 typedef off_t ac__type_new_;
23527 int
23528 main ()
23529 {
23530 if ((ac__type_new_ *) 0)
23531   return 0;
23532 if (sizeof (ac__type_new_))
23533   return 0;
23534   ;
23535   return 0;
23536 }
23537 _ACEOF
23538 rm -f conftest.$ac_objext
23539 if { (ac_try="$ac_compile"
23540 case "(($ac_try" in
23541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542   *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545   (eval "$ac_compile") 2>conftest.er1
23546   ac_status=$?
23547   grep -v '^ *+' conftest.er1 >conftest.err
23548   rm -f conftest.er1
23549   cat conftest.err >&5
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); } &&
23552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23553   { (case "(($ac_try" in
23554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555   *) ac_try_echo=$ac_try;;
23556 esac
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558   (eval "$ac_try") 2>&5
23559   ac_status=$?
23560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561   (exit $ac_status); }; } &&
23562          { ac_try='test -s conftest.$ac_objext'
23563   { (case "(($ac_try" in
23564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565   *) ac_try_echo=$ac_try;;
23566 esac
23567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568   (eval "$ac_try") 2>&5
23569   ac_status=$?
23570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571   (exit $ac_status); }; }; then
23572   ac_cv_type_off_t=yes
23573 else
23574   echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23576
23577         ac_cv_type_off_t=no
23578 fi
23579
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23581 fi
23582 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23583 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23584 if test $ac_cv_type_off_t = yes; then
23585   :
23586 else
23587
23588 cat >>confdefs.h <<_ACEOF
23589 #define off_t long int
23590 _ACEOF
23591
23592 fi
23593
23594 { echo "$as_me:$LINENO: checking for pid_t" >&5
23595 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23596 if test "${ac_cv_type_pid_t+set}" = set; then
23597   echo $ECHO_N "(cached) $ECHO_C" >&6
23598 else
23599   cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h.  */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h.  */
23605 $ac_includes_default
23606 typedef pid_t ac__type_new_;
23607 int
23608 main ()
23609 {
23610 if ((ac__type_new_ *) 0)
23611   return 0;
23612 if (sizeof (ac__type_new_))
23613   return 0;
23614   ;
23615   return 0;
23616 }
23617 _ACEOF
23618 rm -f conftest.$ac_objext
23619 if { (ac_try="$ac_compile"
23620 case "(($ac_try" in
23621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23622   *) ac_try_echo=$ac_try;;
23623 esac
23624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23625   (eval "$ac_compile") 2>conftest.er1
23626   ac_status=$?
23627   grep -v '^ *+' conftest.er1 >conftest.err
23628   rm -f conftest.er1
23629   cat conftest.err >&5
23630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631   (exit $ac_status); } &&
23632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23633   { (case "(($ac_try" in
23634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635   *) ac_try_echo=$ac_try;;
23636 esac
23637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23638   (eval "$ac_try") 2>&5
23639   ac_status=$?
23640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641   (exit $ac_status); }; } &&
23642          { ac_try='test -s conftest.$ac_objext'
23643   { (case "(($ac_try" in
23644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645   *) ac_try_echo=$ac_try;;
23646 esac
23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648   (eval "$ac_try") 2>&5
23649   ac_status=$?
23650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651   (exit $ac_status); }; }; then
23652   ac_cv_type_pid_t=yes
23653 else
23654   echo "$as_me: failed program was:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23656
23657         ac_cv_type_pid_t=no
23658 fi
23659
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23661 fi
23662 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23663 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23664 if test $ac_cv_type_pid_t = yes; then
23665   :
23666 else
23667
23668 cat >>confdefs.h <<_ACEOF
23669 #define pid_t int
23670 _ACEOF
23671
23672 fi
23673
23674 { echo "$as_me:$LINENO: checking for size_t" >&5
23675 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23676 if test "${ac_cv_type_size_t+set}" = set; then
23677   echo $ECHO_N "(cached) $ECHO_C" >&6
23678 else
23679   cat >conftest.$ac_ext <<_ACEOF
23680 /* confdefs.h.  */
23681 _ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h.  */
23685 $ac_includes_default
23686 typedef size_t ac__type_new_;
23687 int
23688 main ()
23689 {
23690 if ((ac__type_new_ *) 0)
23691   return 0;
23692 if (sizeof (ac__type_new_))
23693   return 0;
23694   ;
23695   return 0;
23696 }
23697 _ACEOF
23698 rm -f conftest.$ac_objext
23699 if { (ac_try="$ac_compile"
23700 case "(($ac_try" in
23701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702   *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705   (eval "$ac_compile") 2>conftest.er1
23706   ac_status=$?
23707   grep -v '^ *+' conftest.er1 >conftest.err
23708   rm -f conftest.er1
23709   cat conftest.err >&5
23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); } &&
23712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23713   { (case "(($ac_try" in
23714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23715   *) ac_try_echo=$ac_try;;
23716 esac
23717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23718   (eval "$ac_try") 2>&5
23719   ac_status=$?
23720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721   (exit $ac_status); }; } &&
23722          { ac_try='test -s conftest.$ac_objext'
23723   { (case "(($ac_try" in
23724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23725   *) ac_try_echo=$ac_try;;
23726 esac
23727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23728   (eval "$ac_try") 2>&5
23729   ac_status=$?
23730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731   (exit $ac_status); }; }; then
23732   ac_cv_type_size_t=yes
23733 else
23734   echo "$as_me: failed program was:" >&5
23735 sed 's/^/| /' conftest.$ac_ext >&5
23736
23737         ac_cv_type_size_t=no
23738 fi
23739
23740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741 fi
23742 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23743 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23744 if test $ac_cv_type_size_t = yes; then
23745   :
23746 else
23747
23748 cat >>confdefs.h <<_ACEOF
23749 #define size_t unsigned int
23750 _ACEOF
23751
23752 fi
23753
23754 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23755 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23756 if test "${ac_cv_type_uid_t+set}" = set; then
23757   echo $ECHO_N "(cached) $ECHO_C" >&6
23758 else
23759   cat >conftest.$ac_ext <<_ACEOF
23760 /* confdefs.h.  */
23761 _ACEOF
23762 cat confdefs.h >>conftest.$ac_ext
23763 cat >>conftest.$ac_ext <<_ACEOF
23764 /* end confdefs.h.  */
23765 #include <sys/types.h>
23766
23767 _ACEOF
23768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23769   $EGREP "uid_t" >/dev/null 2>&1; then
23770   ac_cv_type_uid_t=yes
23771 else
23772   ac_cv_type_uid_t=no
23773 fi
23774 rm -f conftest*
23775
23776 fi
23777 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23778 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23779 if test $ac_cv_type_uid_t = no; then
23780
23781 cat >>confdefs.h <<\_ACEOF
23782 #define uid_t int
23783 _ACEOF
23784
23785
23786 cat >>confdefs.h <<\_ACEOF
23787 #define gid_t int
23788 _ACEOF
23789
23790 fi
23791
23792
23793
23794   { echo "$as_me:$LINENO: checking for socklen_t" >&5
23795 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23796 if test "${ac_cv_type_socklen_t+set}" = set; then
23797   echo $ECHO_N "(cached) $ECHO_C" >&6
23798 else
23799    ac_cv_type_socklen_t=no
23800       cat >conftest.$ac_ext <<_ACEOF
23801 /* confdefs.h.  */
23802 _ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h.  */
23806 #ifdef HAVE_SYS_TYPES_H
23807 #include <sys/types.h>
23808 #endif
23809 #ifdef HAVE_SYS_SOCKET_H
23810 #include <sys/socket.h>
23811 #endif
23812
23813 int
23814 main ()
23815 {
23816 socklen_t foo
23817   ;
23818   return 0;
23819 }
23820 _ACEOF
23821 rm -f conftest.$ac_objext
23822 if { (ac_try="$ac_compile"
23823 case "(($ac_try" in
23824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825   *) ac_try_echo=$ac_try;;
23826 esac
23827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23828   (eval "$ac_compile") 2>conftest.er1
23829   ac_status=$?
23830   grep -v '^ *+' conftest.er1 >conftest.err
23831   rm -f conftest.er1
23832   cat conftest.err >&5
23833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); } &&
23835          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23836   { (case "(($ac_try" in
23837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838   *) ac_try_echo=$ac_try;;
23839 esac
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841   (eval "$ac_try") 2>&5
23842   ac_status=$?
23843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844   (exit $ac_status); }; } &&
23845          { ac_try='test -s conftest.$ac_objext'
23846   { (case "(($ac_try" in
23847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848   *) ac_try_echo=$ac_try;;
23849 esac
23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851   (eval "$ac_try") 2>&5
23852   ac_status=$?
23853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854   (exit $ac_status); }; }; then
23855   ac_cv_type_socklen_t=yes
23856 else
23857   echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23859
23860
23861 fi
23862
23863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23864
23865
23866 fi
23867 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23868 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23869
23870   if test "$ac_cv_type_socklen_t" != "yes"; then
23871
23872 cat >>confdefs.h <<\_ACEOF
23873 #define socklen_t int
23874 _ACEOF
23875
23876   fi
23877
23878
23879
23880   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23881 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23882 if test "${ac_cv_type_uint8_t+set}" = set; then
23883   echo $ECHO_N "(cached) $ECHO_C" >&6
23884 else
23885    ac_cv_type_uint8_t=no
23886       cat >conftest.$ac_ext <<_ACEOF
23887 /* confdefs.h.  */
23888 _ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h.  */
23892 #ifdef HAVE_INTTYPES_H
23893 #include <inttypes.h>
23894 #endif
23895 #ifdef HAVE_STDINT_H
23896 #include <stdint.h>
23897 #endif
23898
23899 int
23900 main ()
23901 {
23902 uint8_t foo
23903   ;
23904   return 0;
23905 }
23906 _ACEOF
23907 rm -f conftest.$ac_objext
23908 if { (ac_try="$ac_compile"
23909 case "(($ac_try" in
23910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23911   *) ac_try_echo=$ac_try;;
23912 esac
23913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23914   (eval "$ac_compile") 2>conftest.er1
23915   ac_status=$?
23916   grep -v '^ *+' conftest.er1 >conftest.err
23917   rm -f conftest.er1
23918   cat conftest.err >&5
23919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920   (exit $ac_status); } &&
23921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23922   { (case "(($ac_try" in
23923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23924   *) ac_try_echo=$ac_try;;
23925 esac
23926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23927   (eval "$ac_try") 2>&5
23928   ac_status=$?
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); }; } &&
23931          { ac_try='test -s conftest.$ac_objext'
23932   { (case "(($ac_try" in
23933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934   *) ac_try_echo=$ac_try;;
23935 esac
23936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23937   (eval "$ac_try") 2>&5
23938   ac_status=$?
23939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940   (exit $ac_status); }; }; then
23941   ac_cv_type_uint8_t=yes
23942 else
23943   echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946
23947 fi
23948
23949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950
23951
23952 fi
23953 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23954 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23955
23956   if test "$ac_cv_type_uint8_t" != "yes"; then
23957
23958 cat >>confdefs.h <<\_ACEOF
23959 #define uint8_t unsigned char
23960 _ACEOF
23961
23962   fi
23963
23964
23965
23966   { echo "$as_me:$LINENO: checking for uint16_t" >&5
23967 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23968 if test "${ac_cv_type_uint16_t+set}" = set; then
23969   echo $ECHO_N "(cached) $ECHO_C" >&6
23970 else
23971    ac_cv_type_uint16_t=no
23972       cat >conftest.$ac_ext <<_ACEOF
23973 /* confdefs.h.  */
23974 _ACEOF
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h.  */
23978 #ifdef HAVE_INTTYPES_H
23979 #include <inttypes.h>
23980 #endif
23981 #ifdef HAVE_STDINT_H
23982 #include <stdint.h>
23983 #endif
23984
23985 int
23986 main ()
23987 {
23988 uint16_t foo
23989   ;
23990   return 0;
23991 }
23992 _ACEOF
23993 rm -f conftest.$ac_objext
23994 if { (ac_try="$ac_compile"
23995 case "(($ac_try" in
23996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997   *) ac_try_echo=$ac_try;;
23998 esac
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000   (eval "$ac_compile") 2>conftest.er1
24001   ac_status=$?
24002   grep -v '^ *+' conftest.er1 >conftest.err
24003   rm -f conftest.er1
24004   cat conftest.err >&5
24005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006   (exit $ac_status); } &&
24007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24008   { (case "(($ac_try" in
24009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010   *) ac_try_echo=$ac_try;;
24011 esac
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013   (eval "$ac_try") 2>&5
24014   ac_status=$?
24015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016   (exit $ac_status); }; } &&
24017          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
24024   ac_status=$?
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); }; }; then
24027   ac_cv_type_uint16_t=yes
24028 else
24029   echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24031
24032
24033 fi
24034
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036
24037
24038 fi
24039 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
24040 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
24041
24042   if test "$ac_cv_type_uint16_t" != "yes"; then
24043
24044 cat >>confdefs.h <<\_ACEOF
24045 #define uint16_t unsigned short
24046 _ACEOF
24047
24048   fi
24049
24050
24051
24052   { echo "$as_me:$LINENO: checking for uint32_t" >&5
24053 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
24054 if test "${ac_cv_type_uint32_t+set}" = set; then
24055   echo $ECHO_N "(cached) $ECHO_C" >&6
24056 else
24057    ac_cv_type_uint32_t=no
24058       cat >conftest.$ac_ext <<_ACEOF
24059 /* confdefs.h.  */
24060 _ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h.  */
24064 #ifdef HAVE_INTTYPES_H
24065 #include <inttypes.h>
24066 #endif
24067 #ifdef HAVE_STDINT_H
24068 #include <stdint.h>
24069 #endif
24070
24071 int
24072 main ()
24073 {
24074 uint32_t foo
24075   ;
24076   return 0;
24077 }
24078 _ACEOF
24079 rm -f conftest.$ac_objext
24080 if { (ac_try="$ac_compile"
24081 case "(($ac_try" in
24082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24083   *) ac_try_echo=$ac_try;;
24084 esac
24085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24086   (eval "$ac_compile") 2>conftest.er1
24087   ac_status=$?
24088   grep -v '^ *+' conftest.er1 >conftest.err
24089   rm -f conftest.er1
24090   cat conftest.err >&5
24091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092   (exit $ac_status); } &&
24093          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24094   { (case "(($ac_try" in
24095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096   *) ac_try_echo=$ac_try;;
24097 esac
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099   (eval "$ac_try") 2>&5
24100   ac_status=$?
24101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102   (exit $ac_status); }; } &&
24103          { ac_try='test -s conftest.$ac_objext'
24104   { (case "(($ac_try" in
24105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24106   *) ac_try_echo=$ac_try;;
24107 esac
24108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24109   (eval "$ac_try") 2>&5
24110   ac_status=$?
24111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112   (exit $ac_status); }; }; then
24113   ac_cv_type_uint32_t=yes
24114 else
24115   echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24117
24118
24119 fi
24120
24121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24122
24123
24124 fi
24125 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24126 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24127
24128   if test "$ac_cv_type_uint32_t" != "yes"; then
24129
24130 cat >>confdefs.h <<\_ACEOF
24131 #define uint32_t unsigned int
24132 _ACEOF
24133
24134   fi
24135
24136
24137 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24138 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24139 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24140   echo $ECHO_N "(cached) $ECHO_C" >&6
24141 else
24142   cat >conftest.$ac_ext <<_ACEOF
24143 /* confdefs.h.  */
24144 _ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h.  */
24148
24149 #ifdef HAVE_NETINET_IN_H
24150 #include <netinet/in.h>
24151 #endif
24152
24153
24154 typedef struct in6_addr ac__type_new_;
24155 int
24156 main ()
24157 {
24158 if ((ac__type_new_ *) 0)
24159   return 0;
24160 if (sizeof (ac__type_new_))
24161   return 0;
24162   ;
24163   return 0;
24164 }
24165 _ACEOF
24166 rm -f conftest.$ac_objext
24167 if { (ac_try="$ac_compile"
24168 case "(($ac_try" in
24169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24170   *) ac_try_echo=$ac_try;;
24171 esac
24172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24173   (eval "$ac_compile") 2>conftest.er1
24174   ac_status=$?
24175   grep -v '^ *+' conftest.er1 >conftest.err
24176   rm -f conftest.er1
24177   cat conftest.err >&5
24178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179   (exit $ac_status); } &&
24180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24181   { (case "(($ac_try" in
24182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183   *) ac_try_echo=$ac_try;;
24184 esac
24185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24186   (eval "$ac_try") 2>&5
24187   ac_status=$?
24188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189   (exit $ac_status); }; } &&
24190          { ac_try='test -s conftest.$ac_objext'
24191   { (case "(($ac_try" in
24192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193   *) ac_try_echo=$ac_try;;
24194 esac
24195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24196   (eval "$ac_try") 2>&5
24197   ac_status=$?
24198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199   (exit $ac_status); }; }; then
24200   ac_cv_type_struct_in6_addr=yes
24201 else
24202   echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24204
24205         ac_cv_type_struct_in6_addr=no
24206 fi
24207
24208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24209 fi
24210 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24211 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24212 if test $ac_cv_type_struct_in6_addr = yes; then
24213
24214 cat >>confdefs.h <<\_ACEOF
24215 #define HAVE_STRUCT_IN6_ADDR 1
24216 _ACEOF
24217
24218 fi
24219
24220
24221 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24222 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24223 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24224   echo $ECHO_N "(cached) $ECHO_C" >&6
24225 else
24226   cat >conftest.$ac_ext <<_ACEOF
24227 /* confdefs.h.  */
24228 _ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h.  */
24232
24233 #ifdef HAVE_NETINET_IN_H
24234 #include <netinet/in.h>
24235 #endif
24236 #ifdef HAVE_SYS_SOCKET_H
24237 #include <sys/socket.h>
24238 #endif
24239
24240
24241 typedef struct sockaddr_storage ac__type_new_;
24242 int
24243 main ()
24244 {
24245 if ((ac__type_new_ *) 0)
24246   return 0;
24247 if (sizeof (ac__type_new_))
24248   return 0;
24249   ;
24250   return 0;
24251 }
24252 _ACEOF
24253 rm -f conftest.$ac_objext
24254 if { (ac_try="$ac_compile"
24255 case "(($ac_try" in
24256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257   *) ac_try_echo=$ac_try;;
24258 esac
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260   (eval "$ac_compile") 2>conftest.er1
24261   ac_status=$?
24262   grep -v '^ *+' conftest.er1 >conftest.err
24263   rm -f conftest.er1
24264   cat conftest.err >&5
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); } &&
24267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24268   { (case "(($ac_try" in
24269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270   *) ac_try_echo=$ac_try;;
24271 esac
24272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24273   (eval "$ac_try") 2>&5
24274   ac_status=$?
24275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24276   (exit $ac_status); }; } &&
24277          { ac_try='test -s conftest.$ac_objext'
24278   { (case "(($ac_try" in
24279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280   *) ac_try_echo=$ac_try;;
24281 esac
24282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24283   (eval "$ac_try") 2>&5
24284   ac_status=$?
24285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286   (exit $ac_status); }; }; then
24287   ac_cv_type_struct_sockaddr_storage=yes
24288 else
24289   echo "$as_me: failed program was:" >&5
24290 sed 's/^/| /' conftest.$ac_ext >&5
24291
24292         ac_cv_type_struct_sockaddr_storage=no
24293 fi
24294
24295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24296 fi
24297 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24298 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24299 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24300
24301 cat >>confdefs.h <<\_ACEOF
24302 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24303 _ACEOF
24304
24305 fi
24306
24307
24308 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24309 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24310 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24311   echo $ECHO_N "(cached) $ECHO_C" >&6
24312 else
24313   cat >conftest.$ac_ext <<_ACEOF
24314 /* confdefs.h.  */
24315 _ACEOF
24316 cat confdefs.h >>conftest.$ac_ext
24317 cat >>conftest.$ac_ext <<_ACEOF
24318 /* end confdefs.h.  */
24319
24320 #ifdef HAVE_NETINET_IN_H
24321 #include <netinet/in.h>
24322 #endif
24323
24324
24325 typedef struct sockaddr_in6 ac__type_new_;
24326 int
24327 main ()
24328 {
24329 if ((ac__type_new_ *) 0)
24330   return 0;
24331 if (sizeof (ac__type_new_))
24332   return 0;
24333   ;
24334   return 0;
24335 }
24336 _ACEOF
24337 rm -f conftest.$ac_objext
24338 if { (ac_try="$ac_compile"
24339 case "(($ac_try" in
24340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341   *) ac_try_echo=$ac_try;;
24342 esac
24343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24344   (eval "$ac_compile") 2>conftest.er1
24345   ac_status=$?
24346   grep -v '^ *+' conftest.er1 >conftest.err
24347   rm -f conftest.er1
24348   cat conftest.err >&5
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); } &&
24351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24352   { (case "(($ac_try" in
24353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354   *) ac_try_echo=$ac_try;;
24355 esac
24356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357   (eval "$ac_try") 2>&5
24358   ac_status=$?
24359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360   (exit $ac_status); }; } &&
24361          { ac_try='test -s conftest.$ac_objext'
24362   { (case "(($ac_try" in
24363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24364   *) ac_try_echo=$ac_try;;
24365 esac
24366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24367   (eval "$ac_try") 2>&5
24368   ac_status=$?
24369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370   (exit $ac_status); }; }; then
24371   ac_cv_type_struct_sockaddr_in6=yes
24372 else
24373   echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24375
24376         ac_cv_type_struct_sockaddr_in6=no
24377 fi
24378
24379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24380 fi
24381 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24382 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24383 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24384
24385 cat >>confdefs.h <<\_ACEOF
24386 #define HAVE_STRUCT_SOCKADDR_IN6 1
24387 _ACEOF
24388
24389 fi
24390
24391
24392 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24393 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24394 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24395   echo $ECHO_N "(cached) $ECHO_C" >&6
24396 else
24397   cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h.  */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h.  */
24403
24404 #ifdef HAVE_SYS_TYPES_H
24405 #include <sys/types.h>
24406 #endif
24407 #ifdef HAVE_SYS_SOCKET_H
24408 #include <sys/socket.h>
24409 #endif
24410 #ifdef HAVE_NETDB_H
24411 #include <netdb.h>
24412 #endif
24413
24414
24415 typedef struct addrinfo ac__type_new_;
24416 int
24417 main ()
24418 {
24419 if ((ac__type_new_ *) 0)
24420   return 0;
24421 if (sizeof (ac__type_new_))
24422   return 0;
24423   ;
24424   return 0;
24425 }
24426 _ACEOF
24427 rm -f conftest.$ac_objext
24428 if { (ac_try="$ac_compile"
24429 case "(($ac_try" in
24430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431   *) ac_try_echo=$ac_try;;
24432 esac
24433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434   (eval "$ac_compile") 2>conftest.er1
24435   ac_status=$?
24436   grep -v '^ *+' conftest.er1 >conftest.err
24437   rm -f conftest.er1
24438   cat conftest.err >&5
24439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); } &&
24441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24442   { (case "(($ac_try" in
24443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24444   *) ac_try_echo=$ac_try;;
24445 esac
24446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24447   (eval "$ac_try") 2>&5
24448   ac_status=$?
24449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450   (exit $ac_status); }; } &&
24451          { ac_try='test -s conftest.$ac_objext'
24452   { (case "(($ac_try" in
24453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454   *) ac_try_echo=$ac_try;;
24455 esac
24456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24457   (eval "$ac_try") 2>&5
24458   ac_status=$?
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); }; }; then
24461   ac_cv_type_struct_addrinfo=yes
24462 else
24463   echo "$as_me: failed program was:" >&5
24464 sed 's/^/| /' conftest.$ac_ext >&5
24465
24466         ac_cv_type_struct_addrinfo=no
24467 fi
24468
24469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24470 fi
24471 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24472 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24473 if test $ac_cv_type_struct_addrinfo = yes; then
24474
24475 cat >>confdefs.h <<\_ACEOF
24476 #define HAVE_STRUCT_ADDRINFO 1
24477 _ACEOF
24478
24479 fi
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510 for ac_func in \
24511         getopt_long \
24512         lockf \
24513         strsignal \
24514         sigaction \
24515         sigprocmask \
24516         pthread_sigmask \
24517         snprintf \
24518         vsnprintf \
24519         setsid \
24520         strncasecmp \
24521         strcasecmp \
24522         localtime_r \
24523         ctime_r \
24524         gmtime_r \
24525         strsep \
24526         inet_aton \
24527         inet_pton \
24528         inet_ntop \
24529         setlinebuf \
24530         setvbuf \
24531         getusershell \
24532         initgroups \
24533         getaddrinfo \
24534         getnameinfo \
24535         closefrom \
24536         gettimeofday \
24537         strlcat \
24538         strlcpy
24539
24540 do
24541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24542 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24544 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24545   echo $ECHO_N "(cached) $ECHO_C" >&6
24546 else
24547   cat >conftest.$ac_ext <<_ACEOF
24548 /* confdefs.h.  */
24549 _ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h.  */
24553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24554    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24555 #define $ac_func innocuous_$ac_func
24556
24557 /* System header to define __stub macros and hopefully few prototypes,
24558     which can conflict with char $ac_func (); below.
24559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24560     <limits.h> exists even on freestanding compilers.  */
24561
24562 #ifdef __STDC__
24563 # include <limits.h>
24564 #else
24565 # include <assert.h>
24566 #endif
24567
24568 #undef $ac_func
24569
24570 /* Override any GCC internal prototype to avoid an error.
24571    Use char because int might match the return type of a GCC
24572    builtin and then its argument prototype would still apply.  */
24573 #ifdef __cplusplus
24574 extern "C"
24575 #endif
24576 char $ac_func ();
24577 /* The GNU C library defines this for functions which it implements
24578     to always fail with ENOSYS.  Some functions are actually named
24579     something starting with __ and the normal name is an alias.  */
24580 #if defined __stub_$ac_func || defined __stub___$ac_func
24581 choke me
24582 #endif
24583
24584 int
24585 main ()
24586 {
24587 return $ac_func ();
24588   ;
24589   return 0;
24590 }
24591 _ACEOF
24592 rm -f conftest.$ac_objext conftest$ac_exeext
24593 if { (ac_try="$ac_link"
24594 case "(($ac_try" in
24595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596   *) ac_try_echo=$ac_try;;
24597 esac
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599   (eval "$ac_link") 2>conftest.er1
24600   ac_status=$?
24601   grep -v '^ *+' conftest.er1 >conftest.err
24602   rm -f conftest.er1
24603   cat conftest.err >&5
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); } &&
24606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24607   { (case "(($ac_try" in
24608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609   *) ac_try_echo=$ac_try;;
24610 esac
24611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24612   (eval "$ac_try") 2>&5
24613   ac_status=$?
24614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615   (exit $ac_status); }; } &&
24616          { ac_try='test -s conftest$ac_exeext'
24617   { (case "(($ac_try" in
24618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619   *) ac_try_echo=$ac_try;;
24620 esac
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622   (eval "$ac_try") 2>&5
24623   ac_status=$?
24624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625   (exit $ac_status); }; }; then
24626   eval "$as_ac_var=yes"
24627 else
24628   echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24630
24631         eval "$as_ac_var=no"
24632 fi
24633
24634 rm -f core conftest.err conftest.$ac_objext \
24635       conftest$ac_exeext conftest.$ac_ext
24636 fi
24637 ac_res=`eval echo '${'$as_ac_var'}'`
24638                { echo "$as_me:$LINENO: result: $ac_res" >&5
24639 echo "${ECHO_T}$ac_res" >&6; }
24640 if test `eval echo '${'$as_ac_var'}'` = yes; then
24641   cat >>confdefs.h <<_ACEOF
24642 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24643 _ACEOF
24644
24645 fi
24646 done
24647
24648 for ac_func in \
24649         crypt \
24650         strncasecmp \
24651         strcasecmp \
24652         inet_aton \
24653         setlinebuf \
24654         getusershell \
24655         endusershell
24656
24657 do
24658 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24659 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24660 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24661   echo $ECHO_N "(cached) $ECHO_C" >&6
24662 else
24663   cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h.  */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h.  */
24669
24670 #include <stdio.h>
24671 #include <string.h>
24672 #ifdef HAVE_UNISTD_H
24673 #include <unistd.h>
24674 #endif
24675 #ifdef HAVE_CRYPT_H
24676 #include <crypt.h>
24677 #endif
24678 #ifdef HAVE_ERRNO_H
24679 #include <errno.h>
24680 #endif
24681 #ifdef HAVE_RESOURCE_H
24682 #include <resource.h>
24683 #endif
24684 #ifdef HAVE_GETOPT_H
24685 #include <getopt.h>
24686 #endif
24687 #ifdef HAVE_MALLOC_H
24688 #include <malloc.h>
24689 #endif
24690 #ifdef HAVE_UTMP_H
24691 #include <utmp.h>
24692 #endif
24693 #ifdef HAVE_UTMPX_H
24694 #include <utmpx.h>
24695 #endif
24696 #ifdef HAVE_SYS_SELECT_H
24697 #include <sys/select.h>
24698 #endif
24699 #ifdef HAVE_DLFCN_H
24700 #include <dlfcn.h>
24701 #endif
24702 #ifdef HAVE_REGEX_H
24703 #include <regex.h>
24704 #endif
24705 #ifdef HAVE_SYSLOG_H
24706 #include <syslog.h>
24707 #endif
24708 #ifdef HAVE_INTTYPES_H
24709 #include <inttypes.h>
24710 #endif
24711 #ifdef HAVE_STDINT_H
24712 #include <stdint.h>
24713 #endif
24714 #ifdef HAVE_ARPA_INET_H
24715 #include <arpa/inet.h>
24716 #endif
24717
24718 int
24719 main ()
24720 {
24721 char *(*pfn) = (char *(*)) $ac_func
24722   ;
24723   return 0;
24724 }
24725 _ACEOF
24726 rm -f conftest.$ac_objext
24727 if { (ac_try="$ac_compile"
24728 case "(($ac_try" in
24729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24730   *) ac_try_echo=$ac_try;;
24731 esac
24732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24733   (eval "$ac_compile") 2>conftest.er1
24734   ac_status=$?
24735   grep -v '^ *+' conftest.er1 >conftest.err
24736   rm -f conftest.er1
24737   cat conftest.err >&5
24738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739   (exit $ac_status); } &&
24740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24741   { (case "(($ac_try" in
24742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24743   *) ac_try_echo=$ac_try;;
24744 esac
24745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24746   (eval "$ac_try") 2>&5
24747   ac_status=$?
24748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749   (exit $ac_status); }; } &&
24750          { ac_try='test -s conftest.$ac_objext'
24751   { (case "(($ac_try" in
24752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24753   *) ac_try_echo=$ac_try;;
24754 esac
24755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24756   (eval "$ac_try") 2>&5
24757   ac_status=$?
24758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759   (exit $ac_status); }; }; then
24760   eval "radius_cv_decl_needed_$ac_func=no"
24761 else
24762   echo "$as_me: failed program was:" >&5
24763 sed 's/^/| /' conftest.$ac_ext >&5
24764
24765         eval "radius_cv_decl_needed_$ac_func=yes"
24766 fi
24767
24768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24769 fi
24770
24771 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24772   { echo "$as_me:$LINENO: result: yes" >&5
24773 echo "${ECHO_T}yes" >&6; }
24774   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24775   cat >>confdefs.h <<_ACEOF
24776 #define $radius_tr_decl 1
24777 _ACEOF
24778
24779 else
24780   { echo "$as_me:$LINENO: result: no" >&5
24781 echo "${ECHO_T}no" >&6; }
24782 fi
24783
24784 done
24785
24786
24787 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24788 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24789 if test "${ac_cv_type_signal+set}" = set; then
24790   echo $ECHO_N "(cached) $ECHO_C" >&6
24791 else
24792   cat >conftest.$ac_ext <<_ACEOF
24793 /* confdefs.h.  */
24794 _ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h.  */
24798 #include <sys/types.h>
24799 #include <signal.h>
24800
24801 int
24802 main ()
24803 {
24804 return *(signal (0, 0)) (0) == 1;
24805   ;
24806   return 0;
24807 }
24808 _ACEOF
24809 rm -f conftest.$ac_objext
24810 if { (ac_try="$ac_compile"
24811 case "(($ac_try" in
24812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24813   *) ac_try_echo=$ac_try;;
24814 esac
24815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24816   (eval "$ac_compile") 2>conftest.er1
24817   ac_status=$?
24818   grep -v '^ *+' conftest.er1 >conftest.err
24819   rm -f conftest.er1
24820   cat conftest.err >&5
24821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822   (exit $ac_status); } &&
24823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24824   { (case "(($ac_try" in
24825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24826   *) ac_try_echo=$ac_try;;
24827 esac
24828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24829   (eval "$ac_try") 2>&5
24830   ac_status=$?
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); }; } &&
24833          { ac_try='test -s conftest.$ac_objext'
24834   { (case "(($ac_try" in
24835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24836   *) ac_try_echo=$ac_try;;
24837 esac
24838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24839   (eval "$ac_try") 2>&5
24840   ac_status=$?
24841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842   (exit $ac_status); }; }; then
24843   ac_cv_type_signal=int
24844 else
24845   echo "$as_me: failed program was:" >&5
24846 sed 's/^/| /' conftest.$ac_ext >&5
24847
24848         ac_cv_type_signal=void
24849 fi
24850
24851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24852 fi
24853 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24854 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24855
24856 cat >>confdefs.h <<_ACEOF
24857 #define RETSIGTYPE $ac_cv_type_signal
24858 _ACEOF
24859
24860
24861
24862 if test "x$ac_cv_header_utmpx_h" = "xyes"
24863 then
24864
24865   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24866 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24867
24868
24869   cat >conftest.$ac_ext <<_ACEOF
24870 /* confdefs.h.  */
24871 _ACEOF
24872 cat confdefs.h >>conftest.$ac_ext
24873 cat >>conftest.$ac_ext <<_ACEOF
24874 /* end confdefs.h.  */
24875
24876 #include <utmpx.h>
24877 #ifndef offsetof
24878 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24879 #endif
24880
24881 int
24882 main ()
24883 {
24884  int foo = offsetof(struct utmpx, ut_xtime)
24885   ;
24886   return 0;
24887 }
24888 _ACEOF
24889 rm -f conftest.$ac_objext
24890 if { (ac_try="$ac_compile"
24891 case "(($ac_try" in
24892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24893   *) ac_try_echo=$ac_try;;
24894 esac
24895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24896   (eval "$ac_compile") 2>conftest.er1
24897   ac_status=$?
24898   grep -v '^ *+' conftest.er1 >conftest.err
24899   rm -f conftest.er1
24900   cat conftest.err >&5
24901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902   (exit $ac_status); } &&
24903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24904   { (case "(($ac_try" in
24905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906   *) ac_try_echo=$ac_try;;
24907 esac
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909   (eval "$ac_try") 2>&5
24910   ac_status=$?
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); }; } &&
24913          { ac_try='test -s conftest.$ac_objext'
24914   { (case "(($ac_try" in
24915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24916   *) ac_try_echo=$ac_try;;
24917 esac
24918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24919   (eval "$ac_try") 2>&5
24920   ac_status=$?
24921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922   (exit $ac_status); }; }; then
24923   has_element=" "
24924 else
24925   echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928         has_element=
24929 fi
24930
24931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24932
24933   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24934   if test "x$has_element" != "x"; then
24935     { echo "$as_me:$LINENO: result: yes" >&5
24936 echo "${ECHO_T}yes" >&6; }
24937     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24938   else
24939     { echo "$as_me:$LINENO: result: no" >&5
24940 echo "${ECHO_T}no" >&6; }
24941     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24942  fi
24943
24944  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24945  then
24946
24947 cat >>confdefs.h <<\_ACEOF
24948 #define ut_xtime ut_tv.tv_sec
24949 _ACEOF
24950
24951  fi
24952 fi
24953
24954
24955   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24956 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24957
24958
24959   cat >conftest.$ac_ext <<_ACEOF
24960 /* confdefs.h.  */
24961 _ACEOF
24962 cat confdefs.h >>conftest.$ac_ext
24963 cat >>conftest.$ac_ext <<_ACEOF
24964 /* end confdefs.h.  */
24965
24966 #include <netinet/in.h>
24967 #ifndef offsetof
24968 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24969 #endif
24970
24971 int
24972 main ()
24973 {
24974  int foo = offsetof(struct in_pktinfo, ipi_addr)
24975   ;
24976   return 0;
24977 }
24978 _ACEOF
24979 rm -f conftest.$ac_objext
24980 if { (ac_try="$ac_compile"
24981 case "(($ac_try" in
24982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983   *) ac_try_echo=$ac_try;;
24984 esac
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986   (eval "$ac_compile") 2>conftest.er1
24987   ac_status=$?
24988   grep -v '^ *+' conftest.er1 >conftest.err
24989   rm -f conftest.er1
24990   cat conftest.err >&5
24991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992   (exit $ac_status); } &&
24993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24994   { (case "(($ac_try" in
24995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24996   *) ac_try_echo=$ac_try;;
24997 esac
24998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24999   (eval "$ac_try") 2>&5
25000   ac_status=$?
25001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002   (exit $ac_status); }; } &&
25003          { ac_try='test -s conftest.$ac_objext'
25004   { (case "(($ac_try" in
25005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25006   *) ac_try_echo=$ac_try;;
25007 esac
25008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25009   (eval "$ac_try") 2>&5
25010   ac_status=$?
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); }; }; then
25013   has_element=" "
25014 else
25015   echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25017
25018         has_element=
25019 fi
25020
25021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25022
25023   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
25024   if test "x$has_element" != "x"; then
25025     { echo "$as_me:$LINENO: result: yes" >&5
25026 echo "${ECHO_T}yes" >&6; }
25027     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
25028   else
25029     { echo "$as_me:$LINENO: result: no" >&5
25030 echo "${ECHO_T}no" >&6; }
25031     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
25032  fi
25033
25034 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
25035 then
25036
25037 cat >>confdefs.h <<\_ACEOF
25038 #define HAVE_IP_PKTINFO
25039 _ACEOF
25040
25041 fi
25042
25043
25044   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
25045 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
25046
25047
25048   cat >conftest.$ac_ext <<_ACEOF
25049 /* confdefs.h.  */
25050 _ACEOF
25051 cat confdefs.h >>conftest.$ac_ext
25052 cat >>conftest.$ac_ext <<_ACEOF
25053 /* end confdefs.h.  */
25054
25055 #include <netinet/in.h>
25056 #ifndef offsetof
25057 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
25058 #endif
25059
25060 int
25061 main ()
25062 {
25063  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
25064   ;
25065   return 0;
25066 }
25067 _ACEOF
25068 rm -f conftest.$ac_objext
25069 if { (ac_try="$ac_compile"
25070 case "(($ac_try" in
25071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25072   *) ac_try_echo=$ac_try;;
25073 esac
25074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25075   (eval "$ac_compile") 2>conftest.er1
25076   ac_status=$?
25077   grep -v '^ *+' conftest.er1 >conftest.err
25078   rm -f conftest.er1
25079   cat conftest.err >&5
25080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25081   (exit $ac_status); } &&
25082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25083   { (case "(($ac_try" in
25084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085   *) ac_try_echo=$ac_try;;
25086 esac
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088   (eval "$ac_try") 2>&5
25089   ac_status=$?
25090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091   (exit $ac_status); }; } &&
25092          { ac_try='test -s conftest.$ac_objext'
25093   { (case "(($ac_try" in
25094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095   *) ac_try_echo=$ac_try;;
25096 esac
25097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098   (eval "$ac_try") 2>&5
25099   ac_status=$?
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); }; }; then
25102   has_element=" "
25103 else
25104   echo "$as_me: failed program was:" >&5
25105 sed 's/^/| /' conftest.$ac_ext >&5
25106
25107         has_element=
25108 fi
25109
25110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25111
25112   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
25113   if test "x$has_element" != "x"; then
25114     { echo "$as_me:$LINENO: result: yes" >&5
25115 echo "${ECHO_T}yes" >&6; }
25116     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
25117   else
25118     { echo "$as_me:$LINENO: result: no" >&5
25119 echo "${ECHO_T}no" >&6; }
25120     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
25121  fi
25122
25123 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
25124 then
25125
25126 cat >>confdefs.h <<\_ACEOF
25127 #define HAVE_IN6_PKTINFO
25128 _ACEOF
25129
25130 fi
25131
25132
25133 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25135 if test "${ac_cv_c_const+set}" = set; then
25136   echo $ECHO_N "(cached) $ECHO_C" >&6
25137 else
25138   cat >conftest.$ac_ext <<_ACEOF
25139 /* confdefs.h.  */
25140 _ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h.  */
25144
25145 int
25146 main ()
25147 {
25148 /* FIXME: Include the comments suggested by Paul. */
25149 #ifndef __cplusplus
25150   /* Ultrix mips cc rejects this.  */
25151   typedef int charset[2];
25152   const charset x;
25153   /* SunOS 4.1.1 cc rejects this.  */
25154   char const *const *ccp;
25155   char **p;
25156   /* NEC SVR4.0.2 mips cc rejects this.  */
25157   struct point {int x, y;};
25158   static struct point const zero = {0,0};
25159   /* AIX XL C 1.02.0.0 rejects this.
25160      It does not let you subtract one const X* pointer from another in
25161      an arm of an if-expression whose if-part is not a constant
25162      expression */
25163   const char *g = "string";
25164   ccp = &g + (g ? g-g : 0);
25165   /* HPUX 7.0 cc rejects these. */
25166   ++ccp;
25167   p = (char**) ccp;
25168   ccp = (char const *const *) p;
25169   { /* SCO 3.2v4 cc rejects this.  */
25170     char *t;
25171     char const *s = 0 ? (char *) 0 : (char const *) 0;
25172
25173     *t++ = 0;
25174     if (s) return 0;
25175   }
25176   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25177     int x[] = {25, 17};
25178     const int *foo = &x[0];
25179     ++foo;
25180   }
25181   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25182     typedef const int *iptr;
25183     iptr p = 0;
25184     ++p;
25185   }
25186   { /* AIX XL C 1.02.0.0 rejects this saying
25187        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25188     struct s { int j; const int *ap[3]; };
25189     struct s *b; b->j = 5;
25190   }
25191   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25192     const int foo = 10;
25193     if (!foo) return 0;
25194   }
25195   return !x[0] && !zero.x;
25196 #endif
25197
25198   ;
25199   return 0;
25200 }
25201 _ACEOF
25202 rm -f conftest.$ac_objext
25203 if { (ac_try="$ac_compile"
25204 case "(($ac_try" in
25205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206   *) ac_try_echo=$ac_try;;
25207 esac
25208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25209   (eval "$ac_compile") 2>conftest.er1
25210   ac_status=$?
25211   grep -v '^ *+' conftest.er1 >conftest.err
25212   rm -f conftest.er1
25213   cat conftest.err >&5
25214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215   (exit $ac_status); } &&
25216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25217   { (case "(($ac_try" in
25218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219   *) ac_try_echo=$ac_try;;
25220 esac
25221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25222   (eval "$ac_try") 2>&5
25223   ac_status=$?
25224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225   (exit $ac_status); }; } &&
25226          { ac_try='test -s conftest.$ac_objext'
25227   { (case "(($ac_try" in
25228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229   *) ac_try_echo=$ac_try;;
25230 esac
25231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25232   (eval "$ac_try") 2>&5
25233   ac_status=$?
25234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235   (exit $ac_status); }; }; then
25236   ac_cv_c_const=yes
25237 else
25238   echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25240
25241         ac_cv_c_const=no
25242 fi
25243
25244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25245 fi
25246 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25247 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25248 if test $ac_cv_c_const = no; then
25249
25250 cat >>confdefs.h <<\_ACEOF
25251 #define const
25252 _ACEOF
25253
25254 fi
25255
25256
25257 { echo "$as_me:$LINENO: checking type of OS" >&5
25258 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
25259 OS=`uname -s`
25260 { echo "$as_me:$LINENO: result: $OS" >&5
25261 echo "${ECHO_T}$OS" >&6; }
25262 if test "$OS" = "OS/2"; then
25263         LIBPREFIX=
25264 else
25265         LIBPREFIX=lib
25266 fi
25267
25268
25269 if test "x$GCC" = "xyes"; then
25270     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
25271 fi
25272
25273 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
25274 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
25275 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
25276   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
25277   CFLAGS="$CFLAGS $devflags"
25278   INSTALLSTRIP=""
25279   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
25280 echo "${ECHO_T}yes.  Using $devflags" >&6; }
25281 else
25282   devflags=""
25283   CFLAGS="$CFLAGS -DNDEBUG"
25284   INSTALLSTRIP="-s"
25285   { echo "$as_me:$LINENO: result: no." >&5
25286 echo "${ECHO_T}no." >&6; }
25287 fi
25288
25289
25290 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25291 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25292 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25293   echo $ECHO_N "(cached) $ECHO_C" >&6
25294 else
25295   ac_check_lib_save_LIBS=$LIBS
25296 LIBS="-lcrypt  $LIBS"
25297 cat >conftest.$ac_ext <<_ACEOF
25298 /* confdefs.h.  */
25299 _ACEOF
25300 cat confdefs.h >>conftest.$ac_ext
25301 cat >>conftest.$ac_ext <<_ACEOF
25302 /* end confdefs.h.  */
25303
25304 /* Override any GCC internal prototype to avoid an error.
25305    Use char because int might match the return type of a GCC
25306    builtin and then its argument prototype would still apply.  */
25307 #ifdef __cplusplus
25308 extern "C"
25309 #endif
25310 char crypt ();
25311 int
25312 main ()
25313 {
25314 return crypt ();
25315   ;
25316   return 0;
25317 }
25318 _ACEOF
25319 rm -f conftest.$ac_objext conftest$ac_exeext
25320 if { (ac_try="$ac_link"
25321 case "(($ac_try" in
25322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323   *) ac_try_echo=$ac_try;;
25324 esac
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326   (eval "$ac_link") 2>conftest.er1
25327   ac_status=$?
25328   grep -v '^ *+' conftest.er1 >conftest.err
25329   rm -f conftest.er1
25330   cat conftest.err >&5
25331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); } &&
25333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25334   { (case "(($ac_try" in
25335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25336   *) ac_try_echo=$ac_try;;
25337 esac
25338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25339   (eval "$ac_try") 2>&5
25340   ac_status=$?
25341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342   (exit $ac_status); }; } &&
25343          { ac_try='test -s conftest$ac_exeext'
25344   { (case "(($ac_try" in
25345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25346   *) ac_try_echo=$ac_try;;
25347 esac
25348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25349   (eval "$ac_try") 2>&5
25350   ac_status=$?
25351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352   (exit $ac_status); }; }; then
25353   ac_cv_lib_crypt_crypt=yes
25354 else
25355   echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25357
25358         ac_cv_lib_crypt_crypt=no
25359 fi
25360
25361 rm -f core conftest.err conftest.$ac_objext \
25362       conftest$ac_exeext conftest.$ac_ext
25363 LIBS=$ac_check_lib_save_LIBS
25364 fi
25365 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25366 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25367 if test $ac_cv_lib_crypt_crypt = yes; then
25368   CRYPTLIB="-lcrypt"
25369
25370 fi
25371
25372 if test "$CRYPTLIB" != ""; then
25373
25374 cat >>confdefs.h <<\_ACEOF
25375 #define HAVE_CRYPT
25376 _ACEOF
25377
25378 else
25379   { echo "$as_me:$LINENO: checking for crypt" >&5
25380 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25381 if test "${ac_cv_func_crypt+set}" = set; then
25382   echo $ECHO_N "(cached) $ECHO_C" >&6
25383 else
25384   cat >conftest.$ac_ext <<_ACEOF
25385 /* confdefs.h.  */
25386 _ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h.  */
25390 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25392 #define crypt innocuous_crypt
25393
25394 /* System header to define __stub macros and hopefully few prototypes,
25395     which can conflict with char crypt (); below.
25396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25397     <limits.h> exists even on freestanding compilers.  */
25398
25399 #ifdef __STDC__
25400 # include <limits.h>
25401 #else
25402 # include <assert.h>
25403 #endif
25404
25405 #undef crypt
25406
25407 /* Override any GCC internal prototype to avoid an error.
25408    Use char because int might match the return type of a GCC
25409    builtin and then its argument prototype would still apply.  */
25410 #ifdef __cplusplus
25411 extern "C"
25412 #endif
25413 char crypt ();
25414 /* The GNU C library defines this for functions which it implements
25415     to always fail with ENOSYS.  Some functions are actually named
25416     something starting with __ and the normal name is an alias.  */
25417 #if defined __stub_crypt || defined __stub___crypt
25418 choke me
25419 #endif
25420
25421 int
25422 main ()
25423 {
25424 return crypt ();
25425   ;
25426   return 0;
25427 }
25428 _ACEOF
25429 rm -f conftest.$ac_objext conftest$ac_exeext
25430 if { (ac_try="$ac_link"
25431 case "(($ac_try" in
25432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433   *) ac_try_echo=$ac_try;;
25434 esac
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436   (eval "$ac_link") 2>conftest.er1
25437   ac_status=$?
25438   grep -v '^ *+' conftest.er1 >conftest.err
25439   rm -f conftest.er1
25440   cat conftest.err >&5
25441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442   (exit $ac_status); } &&
25443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25444   { (case "(($ac_try" in
25445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446   *) ac_try_echo=$ac_try;;
25447 esac
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449   (eval "$ac_try") 2>&5
25450   ac_status=$?
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); }; } &&
25453          { ac_try='test -s conftest$ac_exeext'
25454   { (case "(($ac_try" in
25455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25456   *) ac_try_echo=$ac_try;;
25457 esac
25458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25459   (eval "$ac_try") 2>&5
25460   ac_status=$?
25461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462   (exit $ac_status); }; }; then
25463   ac_cv_func_crypt=yes
25464 else
25465   echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468         ac_cv_func_crypt=no
25469 fi
25470
25471 rm -f core conftest.err conftest.$ac_objext \
25472       conftest$ac_exeext conftest.$ac_ext
25473 fi
25474 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25475 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25476 if test $ac_cv_func_crypt = yes; then
25477
25478 cat >>confdefs.h <<\_ACEOF
25479 #define HAVE_CRYPT
25480 _ACEOF
25481
25482 fi
25483
25484 fi
25485
25486 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25487 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25488 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25489   echo $ECHO_N "(cached) $ECHO_C" >&6
25490 else
25491   ac_check_lib_save_LIBS=$LIBS
25492 LIBS="-lcipher  $LIBS"
25493 cat >conftest.$ac_ext <<_ACEOF
25494 /* confdefs.h.  */
25495 _ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h.  */
25499
25500 /* Override any GCC internal prototype to avoid an error.
25501    Use char because int might match the return type of a GCC
25502    builtin and then its argument prototype would still apply.  */
25503 #ifdef __cplusplus
25504 extern "C"
25505 #endif
25506 char setkey ();
25507 int
25508 main ()
25509 {
25510 return setkey ();
25511   ;
25512   return 0;
25513 }
25514 _ACEOF
25515 rm -f conftest.$ac_objext conftest$ac_exeext
25516 if { (ac_try="$ac_link"
25517 case "(($ac_try" in
25518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25519   *) ac_try_echo=$ac_try;;
25520 esac
25521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25522   (eval "$ac_link") 2>conftest.er1
25523   ac_status=$?
25524   grep -v '^ *+' conftest.er1 >conftest.err
25525   rm -f conftest.er1
25526   cat conftest.err >&5
25527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528   (exit $ac_status); } &&
25529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25530   { (case "(($ac_try" in
25531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532   *) ac_try_echo=$ac_try;;
25533 esac
25534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25535   (eval "$ac_try") 2>&5
25536   ac_status=$?
25537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538   (exit $ac_status); }; } &&
25539          { ac_try='test -s conftest$ac_exeext'
25540   { (case "(($ac_try" in
25541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25542   *) ac_try_echo=$ac_try;;
25543 esac
25544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25545   (eval "$ac_try") 2>&5
25546   ac_status=$?
25547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548   (exit $ac_status); }; }; then
25549   ac_cv_lib_cipher_setkey=yes
25550 else
25551   echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25553
25554         ac_cv_lib_cipher_setkey=no
25555 fi
25556
25557 rm -f core conftest.err conftest.$ac_objext \
25558       conftest$ac_exeext conftest.$ac_ext
25559 LIBS=$ac_check_lib_save_LIBS
25560 fi
25561 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25562 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25563 if test $ac_cv_lib_cipher_setkey = yes; then
25564   CRYPTLIB="${CRYPTLIB} -lcipher"
25565
25566 fi
25567
25568
25569
25570 if test "x$WITH_SNMP" = "xyes"; then
25571
25572
25573
25574
25575 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
25576 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
25577
25578 cat >conftest.$ac_ext <<_ACEOF
25579 /* confdefs.h.  */
25580 _ACEOF
25581 cat confdefs.h >>conftest.$ac_ext
25582 cat >>conftest.$ac_ext <<_ACEOF
25583 /* end confdefs.h.  */
25584
25585 #ifdef HAVE_SYS_TYPES_H
25586 #include <sys/types.h>
25587 #endif
25588 #ifdef HAVE_STDINT_H
25589 #include <stdint.h>
25590 #endif
25591 #ifdef HAVE_STDIO_H
25592 #include <stdio.h>
25593 #endif
25594 #ifdef HAVE_NETDB_H
25595 #include <netdb.h>
25596 #endif
25597 #ifdef HAVE_UNISTD_H
25598 #include <unistd.h>
25599 #endif
25600 #include <ucd-snmp/ucd-snmp-config.h>
25601 #include <ucd-snmp/asn1.h>
25602 #include <ucd-snmp/snmp.h>
25603 #include <ucd-snmp/snmp_impl.h>
25604 int
25605 main ()
25606 {
25607  int a = 1;
25608   ;
25609   return 0;
25610 }
25611 _ACEOF
25612 rm -f conftest.$ac_objext
25613 if { (ac_try="$ac_compile"
25614 case "(($ac_try" in
25615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616   *) ac_try_echo=$ac_try;;
25617 esac
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619   (eval "$ac_compile") 2>conftest.er1
25620   ac_status=$?
25621   grep -v '^ *+' conftest.er1 >conftest.err
25622   rm -f conftest.er1
25623   cat conftest.err >&5
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); } &&
25626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25627   { (case "(($ac_try" in
25628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629   *) ac_try_echo=$ac_try;;
25630 esac
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632   (eval "$ac_try") 2>&5
25633   ac_status=$?
25634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635   (exit $ac_status); }; } &&
25636          { ac_try='test -s conftest.$ac_objext'
25637   { (case "(($ac_try" in
25638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639   *) ac_try_echo=$ac_try;;
25640 esac
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642   (eval "$ac_try") 2>&5
25643   ac_status=$?
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); }; }; then
25646   SNMP_INCLUDE="";ucdsnmp=yes
25647 else
25648   echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25650
25651         ucdsnmp=
25652 fi
25653
25654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25655
25656 if test "x$ucdsnmp" = "x"; then
25657   old_CFLAGS="$CFLAGS"
25658   for try in /usr/include /usr/local/include $snmp_include_dir; do
25659     CFLAGS="$old_CFLAGS -I$try"
25660     cat >conftest.$ac_ext <<_ACEOF
25661 /* confdefs.h.  */
25662 _ACEOF
25663 cat confdefs.h >>conftest.$ac_ext
25664 cat >>conftest.$ac_ext <<_ACEOF
25665 /* end confdefs.h.  */
25666
25667 #ifdef HAVE_SYS_TYPES_H
25668 #include <sys/types.h>
25669 #endif
25670 #ifdef HAVE_STDINT_H
25671 #include <stdint.h>
25672 #endif
25673 #ifdef HAVE_STDIO_H
25674 #include <stdio.h>
25675 #endif
25676 #ifdef HAVE_NETDB_H
25677 #include <netdb.h>
25678 #endif
25679 #ifdef HAVE_UNISTD_H
25680 #include <unistd.h>
25681 #endif
25682 #include <ucd-snmp/ucd-snmp-config.h>
25683 #include <ucd-snmp/asn1.h>
25684 #include <ucd-snmp/snmp.h>
25685 #include <ucd-snmp/snmp_impl.h>
25686 int
25687 main ()
25688 {
25689  int a = 1;
25690   ;
25691   return 0;
25692 }
25693 _ACEOF
25694 rm -f conftest.$ac_objext
25695 if { (ac_try="$ac_compile"
25696 case "(($ac_try" in
25697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698   *) ac_try_echo=$ac_try;;
25699 esac
25700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25701   (eval "$ac_compile") 2>conftest.er1
25702   ac_status=$?
25703   grep -v '^ *+' conftest.er1 >conftest.err
25704   rm -f conftest.er1
25705   cat conftest.err >&5
25706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707   (exit $ac_status); } &&
25708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25709   { (case "(($ac_try" in
25710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711   *) ac_try_echo=$ac_try;;
25712 esac
25713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25714   (eval "$ac_try") 2>&5
25715   ac_status=$?
25716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717   (exit $ac_status); }; } &&
25718          { ac_try='test -s conftest.$ac_objext'
25719   { (case "(($ac_try" in
25720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25721   *) ac_try_echo=$ac_try;;
25722 esac
25723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25724   (eval "$ac_try") 2>&5
25725   ac_status=$?
25726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727   (exit $ac_status); }; }; then
25728   SNMP_INCLUDE="-I$try";ucdsnmp=yes
25729 else
25730   echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25732
25733         ucdsnmp=
25734 fi
25735
25736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25737     if test "x$ucdsnmp" != "x"; then
25738       break;
25739     fi
25740   done
25741   CFLAGS="$old_CFLAGS"
25742 fi
25743
25744 if test "x$ucdsnmp" = "x"; then
25745   old_CFLAGS="$CFLAGS"
25746   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
25747     CFLAGS="$old_CFLAGS -I$try"
25748 cat >conftest.$ac_ext <<_ACEOF
25749 /* confdefs.h.  */
25750 _ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h.  */
25754
25755 #ifdef HAVE_SYS_TYPES_H
25756 #include <sys/types.h>
25757 #endif
25758 #ifdef HAVE_STDINT_H
25759 #include <stdint.h>
25760 #endif
25761 #ifdef HAVE_STDIO_H
25762 #include <stdio.h>
25763 #endif
25764 #ifdef HAVE_NETDB_H
25765 #include <netdb.h>
25766 #endif
25767 #ifdef HAVE_UNISTD_H
25768 #include <unistd.h>
25769 #endif
25770 #include <asn1.h>
25771 #include <snmp.h>
25772 #include <snmp_impl.h>
25773 int
25774 main ()
25775 {
25776  int a = 1;
25777   ;
25778   return 0;
25779 }
25780 _ACEOF
25781 rm -f conftest.$ac_objext
25782 if { (ac_try="$ac_compile"
25783 case "(($ac_try" in
25784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25785   *) ac_try_echo=$ac_try;;
25786 esac
25787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25788   (eval "$ac_compile") 2>conftest.er1
25789   ac_status=$?
25790   grep -v '^ *+' conftest.er1 >conftest.err
25791   rm -f conftest.er1
25792   cat conftest.err >&5
25793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794   (exit $ac_status); } &&
25795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25796   { (case "(($ac_try" in
25797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798   *) ac_try_echo=$ac_try;;
25799 esac
25800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801   (eval "$ac_try") 2>&5
25802   ac_status=$?
25803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25804   (exit $ac_status); }; } &&
25805          { ac_try='test -s conftest.$ac_objext'
25806   { (case "(($ac_try" in
25807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808   *) ac_try_echo=$ac_try;;
25809 esac
25810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25811   (eval "$ac_try") 2>&5
25812   ac_status=$?
25813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25814   (exit $ac_status); }; }; then
25815   SNMP_INCLUDE="";ucdsnmp=no
25816 else
25817   echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25819
25820         ucdsnmp=
25821 fi
25822
25823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25824     if test "x$ucdsnmp" != "x"; then
25825       break;
25826     fi
25827   done
25828   CFLAGS="$old_CFLAGS"
25829 fi
25830
25831 if test "x$ucdsnmp" = "x"; then
25832   old_CFLAGS="$CFLAGS"
25833   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
25834     CFLAGS="$old_CFLAGS -I$try"
25835     cat >conftest.$ac_ext <<_ACEOF
25836 /* confdefs.h.  */
25837 _ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h.  */
25841
25842 #ifdef HAVE_SYS_TYPES_H
25843 #include <sys/types.h>
25844 #endif
25845 #ifdef HAVE_STDINT_H
25846 #include <stdint.h>
25847 #endif
25848 #ifdef HAVE_STDIO_H
25849 #include <stdio.h>
25850 #endif
25851 #ifdef HAVE_NETDB_H
25852 #include <netdb.h>
25853 #endif
25854 #ifdef HAVE_UNISTD_H
25855 #include <unistd.h>
25856 #endif
25857 #include <asn1.h>
25858 #include <snmp.h>
25859 #include <snmp_impl.h>
25860 int
25861 main ()
25862 {
25863  int a = 1;
25864   ;
25865   return 0;
25866 }
25867 _ACEOF
25868 rm -f conftest.$ac_objext
25869 if { (ac_try="$ac_compile"
25870 case "(($ac_try" in
25871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25872   *) ac_try_echo=$ac_try;;
25873 esac
25874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25875   (eval "$ac_compile") 2>conftest.er1
25876   ac_status=$?
25877   grep -v '^ *+' conftest.er1 >conftest.err
25878   rm -f conftest.er1
25879   cat conftest.err >&5
25880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881   (exit $ac_status); } &&
25882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25883   { (case "(($ac_try" in
25884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25885   *) ac_try_echo=$ac_try;;
25886 esac
25887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25888   (eval "$ac_try") 2>&5
25889   ac_status=$?
25890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891   (exit $ac_status); }; } &&
25892          { ac_try='test -s conftest.$ac_objext'
25893   { (case "(($ac_try" in
25894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25895   *) ac_try_echo=$ac_try;;
25896 esac
25897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25898   (eval "$ac_try") 2>&5
25899   ac_status=$?
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); }; }; then
25902   SNMP_INCLUDE="-I$try";ucdsnmp=no
25903 else
25904   echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25906
25907         ucdsnmp=
25908 fi
25909
25910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25911     if test "x$ucdsnmp" != "x"; then
25912       break;
25913     fi
25914   done
25915   CFLAGS="$old_CFLAGS"
25916 fi
25917
25918 if test "x$ucdsnmp" = "x"; then
25919   { echo "$as_me:$LINENO: result: no" >&5
25920 echo "${ECHO_T}no" >&6; }
25921 else
25922   if test "x$ucdsnmp" = "xyes"; then
25923     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
25924 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
25925
25926 cat >>confdefs.h <<\_ACEOF
25927 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
25928 _ACEOF
25929
25930   else
25931     { echo "$as_me:$LINENO: result: yes" >&5
25932 echo "${ECHO_T}yes" >&6; }
25933
25934 cat >>confdefs.h <<\_ACEOF
25935 #define HAVE_ASN1_SNMP_SNMPIMPL_H
25936 _ACEOF
25937
25938   fi
25939   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
25940 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
25941
25942   old_LIBS="$LIBS"
25943   LIBS="$old_LIBS -lsnmp"
25944   cat >conftest.$ac_ext <<_ACEOF
25945 /* confdefs.h.  */
25946 _ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h.  */
25950 extern char snmp_build_var_op();
25951 int
25952 main ()
25953 {
25954  snmp_build_var_op()
25955   ;
25956   return 0;
25957 }
25958 _ACEOF
25959 rm -f conftest.$ac_objext conftest$ac_exeext
25960 if { (ac_try="$ac_link"
25961 case "(($ac_try" in
25962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25963   *) ac_try_echo=$ac_try;;
25964 esac
25965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25966   (eval "$ac_link") 2>conftest.er1
25967   ac_status=$?
25968   grep -v '^ *+' conftest.er1 >conftest.err
25969   rm -f conftest.er1
25970   cat conftest.err >&5
25971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972   (exit $ac_status); } &&
25973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25974   { (case "(($ac_try" in
25975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976   *) ac_try_echo=$ac_try;;
25977 esac
25978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25979   (eval "$ac_try") 2>&5
25980   ac_status=$?
25981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); }; } &&
25983          { ac_try='test -s conftest$ac_exeext'
25984   { (case "(($ac_try" in
25985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986   *) ac_try_echo=$ac_try;;
25987 esac
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989   (eval "$ac_try") 2>&5
25990   ac_status=$?
25991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992   (exit $ac_status); }; }; then
25993   SNMP_LIBS="-lsnmp"
25994 else
25995   echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25997
25998         SNMP_LIBS=
25999 fi
26000
26001 rm -f core conftest.err conftest.$ac_objext \
26002       conftest$ac_exeext conftest.$ac_ext
26003
26004   if test "x$SNMP_LIBS" = "x"; then
26005     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
26006       LIBS="$old_LIBS -L$try -lsnmp"
26007       cat >conftest.$ac_ext <<_ACEOF
26008 /* confdefs.h.  */
26009 _ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h.  */
26013 extern char snmp_build_var_op();
26014 int
26015 main ()
26016 {
26017  snmp_build_var_op()
26018   ;
26019   return 0;
26020 }
26021 _ACEOF
26022 rm -f conftest.$ac_objext conftest$ac_exeext
26023 if { (ac_try="$ac_link"
26024 case "(($ac_try" in
26025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26026   *) ac_try_echo=$ac_try;;
26027 esac
26028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26029   (eval "$ac_link") 2>conftest.er1
26030   ac_status=$?
26031   grep -v '^ *+' conftest.er1 >conftest.err
26032   rm -f conftest.er1
26033   cat conftest.err >&5
26034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26035   (exit $ac_status); } &&
26036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26037   { (case "(($ac_try" in
26038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26039   *) ac_try_echo=$ac_try;;
26040 esac
26041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26042   (eval "$ac_try") 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); }; } &&
26046          { ac_try='test -s conftest$ac_exeext'
26047   { (case "(($ac_try" in
26048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26049   *) ac_try_echo=$ac_try;;
26050 esac
26051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26052   (eval "$ac_try") 2>&5
26053   ac_status=$?
26054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055   (exit $ac_status); }; }; then
26056   SNMP_LIBS="-L$try -lsnmp"
26057 else
26058   echo "$as_me: failed program was:" >&5
26059 sed 's/^/| /' conftest.$ac_ext >&5
26060
26061         SNMP_LIBS=
26062 fi
26063
26064 rm -f core conftest.err conftest.$ac_objext \
26065       conftest$ac_exeext conftest.$ac_ext
26066       if test "x$SNMP_LIBS" != "x"; then
26067         break;
26068       fi
26069       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
26070       cat >conftest.$ac_ext <<_ACEOF
26071 /* confdefs.h.  */
26072 _ACEOF
26073 cat confdefs.h >>conftest.$ac_ext
26074 cat >>conftest.$ac_ext <<_ACEOF
26075 /* end confdefs.h.  */
26076 extern char snmp_build_var_op();
26077 int
26078 main ()
26079 {
26080  snmp_build_var_op()
26081   ;
26082   return 0;
26083 }
26084 _ACEOF
26085 rm -f conftest.$ac_objext conftest$ac_exeext
26086 if { (ac_try="$ac_link"
26087 case "(($ac_try" in
26088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089   *) ac_try_echo=$ac_try;;
26090 esac
26091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26092   (eval "$ac_link") 2>conftest.er1
26093   ac_status=$?
26094   grep -v '^ *+' conftest.er1 >conftest.err
26095   rm -f conftest.er1
26096   cat conftest.err >&5
26097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098   (exit $ac_status); } &&
26099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26100   { (case "(($ac_try" in
26101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26102   *) ac_try_echo=$ac_try;;
26103 esac
26104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26105   (eval "$ac_try") 2>&5
26106   ac_status=$?
26107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108   (exit $ac_status); }; } &&
26109          { ac_try='test -s conftest$ac_exeext'
26110   { (case "(($ac_try" in
26111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26112   *) ac_try_echo=$ac_try;;
26113 esac
26114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26115   (eval "$ac_try") 2>&5
26116   ac_status=$?
26117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118   (exit $ac_status); }; }; then
26119   SNMP_LIBS="-L$try -lsnmp -lcrypto"
26120 else
26121   echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26123
26124         SNMP_LIBS=
26125 fi
26126
26127 rm -f core conftest.err conftest.$ac_objext \
26128       conftest$ac_exeext conftest.$ac_ext
26129       if test "x$SNMP_LIBS" != "x"; then
26130         break;
26131       fi
26132       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
26133       cat >conftest.$ac_ext <<_ACEOF
26134 /* confdefs.h.  */
26135 _ACEOF
26136 cat confdefs.h >>conftest.$ac_ext
26137 cat >>conftest.$ac_ext <<_ACEOF
26138 /* end confdefs.h.  */
26139 extern char snmp_build_var_op();
26140 int
26141 main ()
26142 {
26143  snmp_build_var_op()
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 rm -f conftest.$ac_objext conftest$ac_exeext
26149 if { (ac_try="$ac_link"
26150 case "(($ac_try" in
26151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152   *) ac_try_echo=$ac_try;;
26153 esac
26154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26155   (eval "$ac_link") 2>conftest.er1
26156   ac_status=$?
26157   grep -v '^ *+' conftest.er1 >conftest.err
26158   rm -f conftest.er1
26159   cat conftest.err >&5
26160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161   (exit $ac_status); } &&
26162          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26163   { (case "(($ac_try" in
26164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26165   *) ac_try_echo=$ac_try;;
26166 esac
26167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26168   (eval "$ac_try") 2>&5
26169   ac_status=$?
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); }; } &&
26172          { ac_try='test -s conftest$ac_exeext'
26173   { (case "(($ac_try" in
26174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175   *) ac_try_echo=$ac_try;;
26176 esac
26177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26178   (eval "$ac_try") 2>&5
26179   ac_status=$?
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); }; }; then
26182   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
26183 else
26184   echo "$as_me: failed program was:" >&5
26185 sed 's/^/| /' conftest.$ac_ext >&5
26186
26187         SNMP_LIBS=
26188 fi
26189
26190 rm -f core conftest.err conftest.$ac_objext \
26191       conftest$ac_exeext conftest.$ac_ext
26192       if test "x$SNMP_LIBS" != "x"; then
26193         break;
26194       fi
26195     done
26196   fi
26197   LIBS="$old_LIBS"
26198
26199           CFLAGS="$old_CFLAGS"
26200   if test "x$SNMP_LIBS" = "x"; then
26201     { echo "$as_me:$LINENO: result: no" >&5
26202 echo "${ECHO_T}no" >&6; }
26203     SNMP_INCLUDE=
26204   else
26205     { echo "$as_me:$LINENO: result: yes" >&5
26206 echo "${ECHO_T}yes" >&6; }
26207
26208 cat >>confdefs.h <<\_ACEOF
26209 #define WITH_SNMP
26210 _ACEOF
26211
26212
26213 cat >>confdefs.h <<\_ACEOF
26214 #define HAVE_LIBSNMP
26215 _ACEOF
26216
26217   fi
26218 fi
26219
26220 fi
26221
26222
26223 cat >>confdefs.h <<\_ACEOF
26224 #define GNUSTYLE 1
26225 _ACEOF
26226
26227
26228 cat >>confdefs.h <<\_ACEOF
26229 #define SYSVSTYLE 2
26230 _ACEOF
26231
26232
26233 cat >>confdefs.h <<\_ACEOF
26234 #define BSDSTYLE 3
26235 _ACEOF
26236
26237 gethostbyaddrrstyle=""
26238 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
26239 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
26240 case "$host" in
26241 *-freebsd*)
26242         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
26243 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
26244 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
26245   echo $ECHO_N "(cached) $ECHO_C" >&6
26246 else
26247   cat >conftest.$ac_ext <<_ACEOF
26248 /* confdefs.h.  */
26249 _ACEOF
26250 cat confdefs.h >>conftest.$ac_ext
26251 cat >>conftest.$ac_ext <<_ACEOF
26252 /* end confdefs.h.  */
26253
26254 #ifdef HAVE_NETDB_H
26255 #include <netdb.h>
26256 #endif
26257
26258
26259 int
26260 main ()
26261 {
26262 #ifndef gethostbyaddr_r
26263   char *p = (char *) gethostbyaddr_r;
26264   return !p;
26265 #endif
26266
26267   ;
26268   return 0;
26269 }
26270 _ACEOF
26271 rm -f conftest.$ac_objext
26272 if { (ac_try="$ac_compile"
26273 case "(($ac_try" in
26274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26275   *) ac_try_echo=$ac_try;;
26276 esac
26277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26278   (eval "$ac_compile") 2>conftest.er1
26279   ac_status=$?
26280   grep -v '^ *+' conftest.er1 >conftest.err
26281   rm -f conftest.er1
26282   cat conftest.err >&5
26283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); } &&
26285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26286   { (case "(($ac_try" in
26287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288   *) ac_try_echo=$ac_try;;
26289 esac
26290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26291   (eval "$ac_try") 2>&5
26292   ac_status=$?
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); }; } &&
26295          { ac_try='test -s conftest.$ac_objext'
26296   { (case "(($ac_try" in
26297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298   *) ac_try_echo=$ac_try;;
26299 esac
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301   (eval "$ac_try") 2>&5
26302   ac_status=$?
26303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304   (exit $ac_status); }; }; then
26305   ac_cv_have_decl_gethostbyaddr_r=yes
26306 else
26307   echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26309
26310         ac_cv_have_decl_gethostbyaddr_r=no
26311 fi
26312
26313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26314 fi
26315 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
26316 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
26317 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
26318
26319 cat >>confdefs.h <<_ACEOF
26320 #define HAVE_DECL_GETHOSTBYADDR_R 1
26321 _ACEOF
26322
26323
26324 else
26325   cat >>confdefs.h <<_ACEOF
26326 #define HAVE_DECL_GETHOSTBYADDR_R 0
26327 _ACEOF
26328
26329
26330
26331 cat >>confdefs.h <<\_ACEOF
26332 #define GETHOSTBYADDRRSTYLE BSDSTYLE
26333 _ACEOF
26334
26335                 gethostbyaddrrstyle=BSD
26336                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
26337 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
26338
26339 fi
26340
26341
26342         ;;
26343 esac
26344 if test "x$gethostbyaddrrstyle" = "x"; then
26345         cat >conftest.$ac_ext <<_ACEOF
26346 /* confdefs.h.  */
26347 _ACEOF
26348 cat confdefs.h >>conftest.$ac_ext
26349 cat >>conftest.$ac_ext <<_ACEOF
26350 /* end confdefs.h.  */
26351
26352 #include <stdio.h>
26353 #include <netdb.h>
26354
26355 int
26356 main ()
26357 {
26358  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
26359   ;
26360   return 0;
26361 }
26362 _ACEOF
26363 rm -f conftest.$ac_objext conftest$ac_exeext
26364 if { (ac_try="$ac_link"
26365 case "(($ac_try" in
26366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367   *) ac_try_echo=$ac_try;;
26368 esac
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370   (eval "$ac_link") 2>conftest.er1
26371   ac_status=$?
26372   grep -v '^ *+' conftest.er1 >conftest.err
26373   rm -f conftest.er1
26374   cat conftest.err >&5
26375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376   (exit $ac_status); } &&
26377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26378   { (case "(($ac_try" in
26379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26380   *) ac_try_echo=$ac_try;;
26381 esac
26382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26383   (eval "$ac_try") 2>&5
26384   ac_status=$?
26385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386   (exit $ac_status); }; } &&
26387          { ac_try='test -s conftest$ac_exeext'
26388   { (case "(($ac_try" in
26389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390   *) ac_try_echo=$ac_try;;
26391 esac
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393   (eval "$ac_try") 2>&5
26394   ac_status=$?
26395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396   (exit $ac_status); }; }; then
26397
26398
26399 cat >>confdefs.h <<\_ACEOF
26400 #define GETHOSTBYADDRRSTYLE GNUSTYLE
26401 _ACEOF
26402
26403         gethostbyaddrrstyle=GNU
26404
26405 else
26406   echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26408
26409
26410 fi
26411
26412 rm -f core conftest.err conftest.$ac_objext \
26413       conftest$ac_exeext conftest.$ac_ext
26414 fi
26415 if test "x$gethostbyaddrrstyle" = "x"; then
26416         cat >conftest.$ac_ext <<_ACEOF
26417 /* confdefs.h.  */
26418 _ACEOF
26419 cat confdefs.h >>conftest.$ac_ext
26420 cat >>conftest.$ac_ext <<_ACEOF
26421 /* end confdefs.h.  */
26422
26423 #include <stdio.h>
26424 #include <netdb.h>
26425
26426 int
26427 main ()
26428 {
26429  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
26430   ;
26431   return 0;
26432 }
26433 _ACEOF
26434 rm -f conftest.$ac_objext conftest$ac_exeext
26435 if { (ac_try="$ac_link"
26436 case "(($ac_try" in
26437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438   *) ac_try_echo=$ac_try;;
26439 esac
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441   (eval "$ac_link") 2>conftest.er1
26442   ac_status=$?
26443   grep -v '^ *+' conftest.er1 >conftest.err
26444   rm -f conftest.er1
26445   cat conftest.err >&5
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); } &&
26448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26449   { (case "(($ac_try" in
26450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26451   *) ac_try_echo=$ac_try;;
26452 esac
26453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26454   (eval "$ac_try") 2>&5
26455   ac_status=$?
26456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457   (exit $ac_status); }; } &&
26458          { ac_try='test -s conftest$ac_exeext'
26459   { (case "(($ac_try" in
26460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26461   *) ac_try_echo=$ac_try;;
26462 esac
26463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26464   (eval "$ac_try") 2>&5
26465   ac_status=$?
26466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26467   (exit $ac_status); }; }; then
26468
26469
26470 cat >>confdefs.h <<\_ACEOF
26471 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
26472 _ACEOF
26473
26474                 gethostbyaddrrstyle=SYSV
26475
26476 else
26477   echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26479
26480
26481 fi
26482
26483 rm -f core conftest.err conftest.$ac_objext \
26484       conftest$ac_exeext conftest.$ac_ext
26485 fi
26486 if test "x$gethostbyaddrrstyle" = "x"; then
26487         cat >conftest.$ac_ext <<_ACEOF
26488 /* confdefs.h.  */
26489 _ACEOF
26490 cat confdefs.h >>conftest.$ac_ext
26491 cat >>conftest.$ac_ext <<_ACEOF
26492 /* end confdefs.h.  */
26493
26494 #include <stdio.h>
26495 #include <netdb.h>
26496
26497 int
26498 main ()
26499 {
26500  gethostbyaddr(NULL, 0, 0)
26501   ;
26502   return 0;
26503 }
26504 _ACEOF
26505 rm -f conftest.$ac_objext conftest$ac_exeext
26506 if { (ac_try="$ac_link"
26507 case "(($ac_try" in
26508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509   *) ac_try_echo=$ac_try;;
26510 esac
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512   (eval "$ac_link") 2>conftest.er1
26513   ac_status=$?
26514   grep -v '^ *+' conftest.er1 >conftest.err
26515   rm -f conftest.er1
26516   cat conftest.err >&5
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); } &&
26519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26520   { (case "(($ac_try" in
26521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26522   *) ac_try_echo=$ac_try;;
26523 esac
26524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26525   (eval "$ac_try") 2>&5
26526   ac_status=$?
26527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528   (exit $ac_status); }; } &&
26529          { ac_try='test -s conftest$ac_exeext'
26530   { (case "(($ac_try" in
26531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26532   *) ac_try_echo=$ac_try;;
26533 esac
26534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26535   (eval "$ac_try") 2>&5
26536   ac_status=$?
26537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538   (exit $ac_status); }; }; then
26539
26540
26541 cat >>confdefs.h <<\_ACEOF
26542 #define GETHOSTBYADDRRSTYLE BSDSTYLE
26543 _ACEOF
26544
26545                 gethostbyaddrrstyle=BSD
26546
26547 else
26548   echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26550
26551
26552 fi
26553
26554 rm -f core conftest.err conftest.$ac_objext \
26555       conftest$ac_exeext conftest.$ac_ext
26556 fi
26557
26558 if test "x$gethostbyaddrrstyle" = "x"; then
26559         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26560 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26561 else
26562         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
26563 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
26564 fi
26565
26566 if test "x$gethostbyaddrrstyle" = "xBSD"; then
26567         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
26568 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
26569 fi
26570
26571 gethostbynamerstyle=""
26572 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
26573 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
26574 cat >conftest.$ac_ext <<_ACEOF
26575 /* confdefs.h.  */
26576 _ACEOF
26577 cat confdefs.h >>conftest.$ac_ext
26578 cat >>conftest.$ac_ext <<_ACEOF
26579 /* end confdefs.h.  */
26580
26581 #include <stdio.h>
26582 #include <netdb.h>
26583
26584 int
26585 main ()
26586 {
26587  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
26588   ;
26589   return 0;
26590 }
26591 _ACEOF
26592 rm -f conftest.$ac_objext conftest$ac_exeext
26593 if { (ac_try="$ac_link"
26594 case "(($ac_try" in
26595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26596   *) ac_try_echo=$ac_try;;
26597 esac
26598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26599   (eval "$ac_link") 2>conftest.er1
26600   ac_status=$?
26601   grep -v '^ *+' conftest.er1 >conftest.err
26602   rm -f conftest.er1
26603   cat conftest.err >&5
26604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605   (exit $ac_status); } &&
26606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26607   { (case "(($ac_try" in
26608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26609   *) ac_try_echo=$ac_try;;
26610 esac
26611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26612   (eval "$ac_try") 2>&5
26613   ac_status=$?
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); }; } &&
26616          { ac_try='test -s conftest$ac_exeext'
26617   { (case "(($ac_try" in
26618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619   *) ac_try_echo=$ac_try;;
26620 esac
26621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26622   (eval "$ac_try") 2>&5
26623   ac_status=$?
26624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625   (exit $ac_status); }; }; then
26626
26627
26628 cat >>confdefs.h <<\_ACEOF
26629 #define GETHOSTBYNAMERSTYLE GNUSTYLE
26630 _ACEOF
26631
26632         gethostbynamerstyle=GNU
26633
26634 else
26635   echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.$ac_ext >&5
26637
26638
26639 fi
26640
26641 rm -f core conftest.err conftest.$ac_objext \
26642       conftest$ac_exeext conftest.$ac_ext
26643 if test "x$gethostbynamerstyle" = "x"; then
26644         cat >conftest.$ac_ext <<_ACEOF
26645 /* confdefs.h.  */
26646 _ACEOF
26647 cat confdefs.h >>conftest.$ac_ext
26648 cat >>conftest.$ac_ext <<_ACEOF
26649 /* end confdefs.h.  */
26650
26651 #include <stdio.h>
26652 #include <netdb.h>
26653
26654 int
26655 main ()
26656 {
26657  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 rm -f conftest.$ac_objext conftest$ac_exeext
26663 if { (ac_try="$ac_link"
26664 case "(($ac_try" in
26665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26666   *) ac_try_echo=$ac_try;;
26667 esac
26668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26669   (eval "$ac_link") 2>conftest.er1
26670   ac_status=$?
26671   grep -v '^ *+' conftest.er1 >conftest.err
26672   rm -f conftest.er1
26673   cat conftest.err >&5
26674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675   (exit $ac_status); } &&
26676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26677   { (case "(($ac_try" in
26678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26679   *) ac_try_echo=$ac_try;;
26680 esac
26681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26682   (eval "$ac_try") 2>&5
26683   ac_status=$?
26684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685   (exit $ac_status); }; } &&
26686          { ac_try='test -s conftest$ac_exeext'
26687   { (case "(($ac_try" in
26688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26689   *) ac_try_echo=$ac_try;;
26690 esac
26691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26692   (eval "$ac_try") 2>&5
26693   ac_status=$?
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); }; }; then
26696
26697
26698 cat >>confdefs.h <<\_ACEOF
26699 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
26700 _ACEOF
26701
26702                 gethostbynamerstyle=SYSV
26703
26704 else
26705   echo "$as_me: failed program was:" >&5
26706 sed 's/^/| /' conftest.$ac_ext >&5
26707
26708
26709 fi
26710
26711 rm -f core conftest.err conftest.$ac_objext \
26712       conftest$ac_exeext conftest.$ac_ext
26713 fi
26714 if test "x$gethostbynamerstyle" = "x"; then
26715         cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721
26722 #include <stdio.h>
26723 #include <netdb.h>
26724
26725 int
26726 main ()
26727 {
26728  gethostbyname(NULL)
26729   ;
26730   return 0;
26731 }
26732 _ACEOF
26733 rm -f conftest.$ac_objext conftest$ac_exeext
26734 if { (ac_try="$ac_link"
26735 case "(($ac_try" in
26736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26737   *) ac_try_echo=$ac_try;;
26738 esac
26739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26740   (eval "$ac_link") 2>conftest.er1
26741   ac_status=$?
26742   grep -v '^ *+' conftest.er1 >conftest.err
26743   rm -f conftest.er1
26744   cat conftest.err >&5
26745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746   (exit $ac_status); } &&
26747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26748   { (case "(($ac_try" in
26749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26750   *) ac_try_echo=$ac_try;;
26751 esac
26752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26753   (eval "$ac_try") 2>&5
26754   ac_status=$?
26755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); }; } &&
26757          { ac_try='test -s conftest$ac_exeext'
26758   { (case "(($ac_try" in
26759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760   *) ac_try_echo=$ac_try;;
26761 esac
26762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26763   (eval "$ac_try") 2>&5
26764   ac_status=$?
26765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766   (exit $ac_status); }; }; then
26767
26768
26769 cat >>confdefs.h <<\_ACEOF
26770 #define GETHOSTBYNAMERSTYLE BSDSTYLE
26771 _ACEOF
26772
26773                 gethostbynamerstyle=BSD
26774
26775 else
26776   echo "$as_me: failed program was:" >&5
26777 sed 's/^/| /' conftest.$ac_ext >&5
26778
26779
26780 fi
26781
26782 rm -f core conftest.err conftest.$ac_objext \
26783       conftest$ac_exeext conftest.$ac_ext
26784 fi
26785
26786 if test "x$gethostbynamerstyle" = "x"; then
26787         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26788 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26789 else
26790         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
26791 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
26792 fi
26793
26794 if test "x$gethostbynamerstyle" = "xBSD"; then
26795         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
26796 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
26797 fi
26798
26799
26800 cat >>confdefs.h <<\_ACEOF
26801 #define POSIXSTYLE 1
26802 _ACEOF
26803
26804
26805 cat >>confdefs.h <<\_ACEOF
26806 #define SOLARISSTYLE 2
26807 _ACEOF
26808
26809 ctimerstyle=""
26810 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
26811 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
26812 cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818
26819 #include <time.h>
26820
26821 int
26822 main ()
26823 {
26824  ctime_r(NULL, NULL, 0)
26825   ;
26826   return 0;
26827 }
26828 _ACEOF
26829 rm -f conftest.$ac_objext conftest$ac_exeext
26830 if { (ac_try="$ac_link"
26831 case "(($ac_try" in
26832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833   *) ac_try_echo=$ac_try;;
26834 esac
26835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26836   (eval "$ac_link") 2>conftest.er1
26837   ac_status=$?
26838   grep -v '^ *+' conftest.er1 >conftest.err
26839   rm -f conftest.er1
26840   cat conftest.err >&5
26841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842   (exit $ac_status); } &&
26843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26844   { (case "(($ac_try" in
26845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846   *) ac_try_echo=$ac_try;;
26847 esac
26848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26849   (eval "$ac_try") 2>&5
26850   ac_status=$?
26851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852   (exit $ac_status); }; } &&
26853          { ac_try='test -s conftest$ac_exeext'
26854   { (case "(($ac_try" in
26855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26856   *) ac_try_echo=$ac_try;;
26857 esac
26858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26859   (eval "$ac_try") 2>&5
26860   ac_status=$?
26861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); }; }; then
26863
26864
26865 cat >>confdefs.h <<\_ACEOF
26866 #define CTIMERSTYLE SOLARISSTYLE
26867 _ACEOF
26868
26869         ctimerstyle="SOLARIS"
26870
26871 else
26872   echo "$as_me: failed program was:" >&5
26873 sed 's/^/| /' conftest.$ac_ext >&5
26874
26875
26876 fi
26877
26878 rm -f core conftest.err conftest.$ac_objext \
26879       conftest$ac_exeext conftest.$ac_ext
26880 if test "x$ctimerstyle" = "x"; then
26881         cat >conftest.$ac_ext <<_ACEOF
26882 /* confdefs.h.  */
26883 _ACEOF
26884 cat confdefs.h >>conftest.$ac_ext
26885 cat >>conftest.$ac_ext <<_ACEOF
26886 /* end confdefs.h.  */
26887
26888 #include <time.h>
26889
26890 int
26891 main ()
26892 {
26893  ctime_r(NULL, NULL)
26894   ;
26895   return 0;
26896 }
26897 _ACEOF
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902   *) ac_try_echo=$ac_try;;
26903 esac
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905   (eval "$ac_link") 2>conftest.er1
26906   ac_status=$?
26907   grep -v '^ *+' conftest.er1 >conftest.err
26908   rm -f conftest.er1
26909   cat conftest.err >&5
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); } &&
26912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26913   { (case "(($ac_try" in
26914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915   *) ac_try_echo=$ac_try;;
26916 esac
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918   (eval "$ac_try") 2>&5
26919   ac_status=$?
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); }; } &&
26922          { ac_try='test -s conftest$ac_exeext'
26923   { (case "(($ac_try" in
26924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925   *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928   (eval "$ac_try") 2>&5
26929   ac_status=$?
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); }; }; then
26932
26933
26934 cat >>confdefs.h <<\_ACEOF
26935 #define CTIMERSTYLE POSIXSTYLE
26936 _ACEOF
26937
26938                 ctimerstyle="POSIX"
26939
26940 else
26941   echo "$as_me: failed program was:" >&5
26942 sed 's/^/| /' conftest.$ac_ext >&5
26943
26944
26945 fi
26946
26947 rm -f core conftest.err conftest.$ac_objext \
26948       conftest$ac_exeext conftest.$ac_ext
26949 fi
26950
26951 if test "x$ctimerstyle" = "x"; then
26952         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26953 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26954 else
26955         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
26956 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
26957 fi
26958
26959 HOSTINFO=$host
26960
26961
26962
26963 top_builddir=`pwd`
26964 export top_builddir
26965 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
26966 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
26967
26968
26969
26970
26971
26972 mysubdirs="$LIBLTDLPATH"
26973 if test "x$EXPERIMENTAL" = "xyes"; then
26974   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
26975     mysubdirs=`echo $mysubdirs $bar`
26976 else
26977         for bar in `cat "${srcdir}"/src/modules/stable`; do
26978     if test -f "${srcdir}"/src/modules/$bar/configure; then
26979       mysubdirs="$mysubdirs src/modules/$bar"
26980     fi
26981   done
26982 fi
26983
26984 if test "x$EXPERIMENTAL" = "xyes"; then
26985   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
26986     MODULES="$MODULES $foo"
26987   done
26988 else
26989             for foo in `cat "${srcdir}"/src/modules/stable`; do
26990     MODULES="$MODULES $foo"
26991    done
26992 fi
26993
26994 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
26995
26996
26997
26998
26999 ac_config_commands="$ac_config_commands stamp-h"
27000
27001 ac_config_commands="$ac_config_commands build-radpaths-h"
27002
27003 ac_config_commands="$ac_config_commands main-chmod"
27004
27005 ac_config_commands="$ac_config_commands scripts-chmod"
27006
27007
27008
27009
27010
27011 USE_SHARED_LIBS=$enable_shared
27012
27013 USE_STATIC_LIBS=$enable_static
27014
27015
27016
27017
27018
27019
27020 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 ./raddb/vmpsd.conf ./raddb/radrelay.conf"
27021
27022 cat >confcache <<\_ACEOF
27023 # This file is a shell script that caches the results of configure
27024 # tests run on this system so they can be shared between configure
27025 # scripts and configure runs, see configure's option --config-cache.
27026 # It is not useful on other systems.  If it contains results you don't
27027 # want to keep, you may remove or edit it.
27028 #
27029 # config.status only pays attention to the cache file if you give it
27030 # the --recheck option to rerun configure.
27031 #
27032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27034 # following values.
27035
27036 _ACEOF
27037
27038 # The following way of writing the cache mishandles newlines in values,
27039 # but we know of no workaround that is simple, portable, and efficient.
27040 # So, we kill variables containing newlines.
27041 # Ultrix sh set writes to stderr and can't be redirected directly,
27042 # and sets the high bit in the cache file unless we assign to the vars.
27043 (
27044   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27045     eval ac_val=\$$ac_var
27046     case $ac_val in #(
27047     *${as_nl}*)
27048       case $ac_var in #(
27049       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27050 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27051       esac
27052       case $ac_var in #(
27053       _ | IFS | as_nl) ;; #(
27054       *) $as_unset $ac_var ;;
27055       esac ;;
27056     esac
27057   done
27058
27059   (set) 2>&1 |
27060     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27061     *${as_nl}ac_space=\ *)
27062       # `set' does not quote correctly, so add quotes (double-quote
27063       # substitution turns \\\\ into \\, and sed turns \\ into \).
27064       sed -n \
27065         "s/'/'\\\\''/g;
27066           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27067       ;; #(
27068     *)
27069       # `set' quotes correctly as required by POSIX, so do not add quotes.
27070       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27071       ;;
27072     esac |
27073     sort
27074 ) |
27075   sed '
27076      /^ac_cv_env_/b end
27077      t clear
27078      :clear
27079      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27080      t end
27081      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27082      :end' >>confcache
27083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27084   if test -w "$cache_file"; then
27085     test "x$cache_file" != "x/dev/null" &&
27086       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27087 echo "$as_me: updating cache $cache_file" >&6;}
27088     cat confcache >$cache_file
27089   else
27090     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27091 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27092   fi
27093 fi
27094 rm -f confcache
27095
27096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27097 # Let make expand exec_prefix.
27098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27099
27100 DEFS=-DHAVE_CONFIG_H
27101
27102 ac_libobjs=
27103 ac_ltlibobjs=
27104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27105   # 1. Remove the extension, and $U if already installed.
27106   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27107   ac_i=`echo "$ac_i" | sed "$ac_script"`
27108   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27109   #    will be set to the directory where LIBOBJS objects are built.
27110   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27111   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27112 done
27113 LIBOBJS=$ac_libobjs
27114
27115 LTLIBOBJS=$ac_ltlibobjs
27116
27117
27118
27119 : ${CONFIG_STATUS=./config.status}
27120 ac_clean_files_save=$ac_clean_files
27121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27122 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27123 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27124 cat >$CONFIG_STATUS <<_ACEOF
27125 #! $SHELL
27126 # Generated by $as_me.
27127 # Run this file to recreate the current configuration.
27128 # Compiler output produced by configure, useful for debugging
27129 # configure, is in config.log if it exists.
27130
27131 debug=false
27132 ac_cs_recheck=false
27133 ac_cs_silent=false
27134 SHELL=\${CONFIG_SHELL-$SHELL}
27135 _ACEOF
27136
27137 cat >>$CONFIG_STATUS <<\_ACEOF
27138 ## --------------------- ##
27139 ## M4sh Initialization.  ##
27140 ## --------------------- ##
27141
27142 # Be Bourne compatible
27143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27144   emulate sh
27145   NULLCMD=:
27146   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27147   # is contrary to our usage.  Disable this feature.
27148   alias -g '${1+"$@"}'='"$@"'
27149   setopt NO_GLOB_SUBST
27150 else
27151   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27152 fi
27153 BIN_SH=xpg4; export BIN_SH # for Tru64
27154 DUALCASE=1; export DUALCASE # for MKS sh
27155
27156
27157 # PATH needs CR
27158 # Avoid depending upon Character Ranges.
27159 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27160 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27161 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27162 as_cr_digits='0123456789'
27163 as_cr_alnum=$as_cr_Letters$as_cr_digits
27164
27165 # The user is always right.
27166 if test "${PATH_SEPARATOR+set}" != set; then
27167   echo "#! /bin/sh" >conf$$.sh
27168   echo  "exit 0"   >>conf$$.sh
27169   chmod +x conf$$.sh
27170   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27171     PATH_SEPARATOR=';'
27172   else
27173     PATH_SEPARATOR=:
27174   fi
27175   rm -f conf$$.sh
27176 fi
27177
27178 # Support unset when possible.
27179 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27180   as_unset=unset
27181 else
27182   as_unset=false
27183 fi
27184
27185
27186 # IFS
27187 # We need space, tab and new line, in precisely that order.  Quoting is
27188 # there to prevent editors from complaining about space-tab.
27189 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27190 # splitting by setting IFS to empty value.)
27191 as_nl='
27192 '
27193 IFS=" ""        $as_nl"
27194
27195 # Find who we are.  Look in the path if we contain no directory separator.
27196 case $0 in
27197   *[\\/]* ) as_myself=$0 ;;
27198   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27199 for as_dir in $PATH
27200 do
27201   IFS=$as_save_IFS
27202   test -z "$as_dir" && as_dir=.
27203   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27204 done
27205 IFS=$as_save_IFS
27206
27207      ;;
27208 esac
27209 # We did not find ourselves, most probably we were run as `sh COMMAND'
27210 # in which case we are not to be found in the path.
27211 if test "x$as_myself" = x; then
27212   as_myself=$0
27213 fi
27214 if test ! -f "$as_myself"; then
27215   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27216   { (exit 1); exit 1; }
27217 fi
27218
27219 # Work around bugs in pre-3.0 UWIN ksh.
27220 for as_var in ENV MAIL MAILPATH
27221 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27222 done
27223 PS1='$ '
27224 PS2='> '
27225 PS4='+ '
27226
27227 # NLS nuisances.
27228 for as_var in \
27229   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27230   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27231   LC_TELEPHONE LC_TIME
27232 do
27233   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27234     eval $as_var=C; export $as_var
27235   else
27236     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27237   fi
27238 done
27239
27240 # Required to use basename.
27241 if expr a : '\(a\)' >/dev/null 2>&1 &&
27242    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27243   as_expr=expr
27244 else
27245   as_expr=false
27246 fi
27247
27248 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27249   as_basename=basename
27250 else
27251   as_basename=false
27252 fi
27253
27254
27255 # Name of the executable.
27256 as_me=`$as_basename -- "$0" ||
27257 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27258          X"$0" : 'X\(//\)$' \| \
27259          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27260 echo X/"$0" |
27261     sed '/^.*\/\([^/][^/]*\)\/*$/{
27262             s//\1/
27263             q
27264           }
27265           /^X\/\(\/\/\)$/{
27266             s//\1/
27267             q
27268           }
27269           /^X\/\(\/\).*/{
27270             s//\1/
27271             q
27272           }
27273           s/.*/./; q'`
27274
27275 # CDPATH.
27276 $as_unset CDPATH
27277
27278
27279
27280   as_lineno_1=$LINENO
27281   as_lineno_2=$LINENO
27282   test "x$as_lineno_1" != "x$as_lineno_2" &&
27283   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27284
27285   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27286   # uniformly replaced by the line number.  The first 'sed' inserts a
27287   # line-number line after each line using $LINENO; the second 'sed'
27288   # does the real work.  The second script uses 'N' to pair each
27289   # line-number line with the line containing $LINENO, and appends
27290   # trailing '-' during substitution so that $LINENO is not a special
27291   # case at line end.
27292   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27293   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27294   # E. McMahon (1931-1989) for sed's syntax.  :-)
27295   sed -n '
27296     p
27297     /[$]LINENO/=
27298   ' <$as_myself |
27299     sed '
27300       s/[$]LINENO.*/&-/
27301       t lineno
27302       b
27303       :lineno
27304       N
27305       :loop
27306       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27307       t loop
27308       s/-\n.*//
27309     ' >$as_me.lineno &&
27310   chmod +x "$as_me.lineno" ||
27311     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27312    { (exit 1); exit 1; }; }
27313
27314   # Don't try to exec as it changes $[0], causing all sort of problems
27315   # (the dirname of $[0] is not the place where we might find the
27316   # original and so on.  Autoconf is especially sensitive to this).
27317   . "./$as_me.lineno"
27318   # Exit status is that of the last command.
27319   exit
27320 }
27321
27322
27323 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27324   as_dirname=dirname
27325 else
27326   as_dirname=false
27327 fi
27328
27329 ECHO_C= ECHO_N= ECHO_T=
27330 case `echo -n x` in
27331 -n*)
27332   case `echo 'x\c'` in
27333   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27334   *)   ECHO_C='\c';;
27335   esac;;
27336 *)
27337   ECHO_N='-n';;
27338 esac
27339
27340 if expr a : '\(a\)' >/dev/null 2>&1 &&
27341    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27342   as_expr=expr
27343 else
27344   as_expr=false
27345 fi
27346
27347 rm -f conf$$ conf$$.exe conf$$.file
27348 if test -d conf$$.dir; then
27349   rm -f conf$$.dir/conf$$.file
27350 else
27351   rm -f conf$$.dir
27352   mkdir conf$$.dir
27353 fi
27354 echo >conf$$.file
27355 if ln -s conf$$.file conf$$ 2>/dev/null; then
27356   as_ln_s='ln -s'
27357   # ... but there are two gotchas:
27358   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27359   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27360   # In both cases, we have to default to `cp -p'.
27361   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27362     as_ln_s='cp -p'
27363 elif ln conf$$.file conf$$ 2>/dev/null; then
27364   as_ln_s=ln
27365 else
27366   as_ln_s='cp -p'
27367 fi
27368 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27369 rmdir conf$$.dir 2>/dev/null
27370
27371 if mkdir -p . 2>/dev/null; then
27372   as_mkdir_p=:
27373 else
27374   test -d ./-p && rmdir ./-p
27375   as_mkdir_p=false
27376 fi
27377
27378 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
27379 # systems may use methods other than mode bits to determine executability.
27380 cat >conf$$.file <<_ASEOF
27381 #! /bin/sh
27382 exit 0
27383 _ASEOF
27384 chmod +x conf$$.file
27385 if test -x conf$$.file >/dev/null 2>&1; then
27386   as_executable_p="test -x"
27387 else
27388   as_executable_p=:
27389 fi
27390 rm -f conf$$.file
27391
27392 # Sed expression to map a string onto a valid CPP name.
27393 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27394
27395 # Sed expression to map a string onto a valid variable name.
27396 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27397
27398
27399 exec 6>&1
27400
27401 # Save the log message, to keep $[0] and so on meaningful, and to
27402 # report actual input values of CONFIG_FILES etc. instead of their
27403 # values after options handling.
27404 ac_log="
27405 This file was extended by $as_me, which was
27406 generated by GNU Autoconf 2.60.  Invocation command line was
27407
27408   CONFIG_FILES    = $CONFIG_FILES
27409   CONFIG_HEADERS  = $CONFIG_HEADERS
27410   CONFIG_LINKS    = $CONFIG_LINKS
27411   CONFIG_COMMANDS = $CONFIG_COMMANDS
27412   $ $0 $@
27413
27414 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27415 "
27416
27417 _ACEOF
27418
27419 cat >>$CONFIG_STATUS <<_ACEOF
27420 # Files that config.status was made for.
27421 config_files="$ac_config_files"
27422 config_headers="$ac_config_headers"
27423 config_commands="$ac_config_commands"
27424
27425 _ACEOF
27426
27427 cat >>$CONFIG_STATUS <<\_ACEOF
27428 ac_cs_usage="\
27429 \`$as_me' instantiates files from templates according to the
27430 current configuration.
27431
27432 Usage: $0 [OPTIONS] [FILE]...
27433
27434   -h, --help       print this help, then exit
27435   -V, --version    print version number, then exit
27436   -q, --quiet      do not print progress messages
27437   -d, --debug      don't remove temporary files
27438       --recheck    update $as_me by reconfiguring in the same conditions
27439   --file=FILE[:TEMPLATE]
27440                    instantiate the configuration file FILE
27441   --header=FILE[:TEMPLATE]
27442                    instantiate the configuration header FILE
27443
27444 Configuration files:
27445 $config_files
27446
27447 Configuration headers:
27448 $config_headers
27449
27450 Configuration commands:
27451 $config_commands
27452
27453 Report bugs to <bug-autoconf@gnu.org>."
27454
27455 _ACEOF
27456 cat >>$CONFIG_STATUS <<_ACEOF
27457 ac_cs_version="\\
27458 config.status
27459 configured by $0, generated by GNU Autoconf 2.60,
27460   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27461
27462 Copyright (C) 2006 Free Software Foundation, Inc.
27463 This config.status script is free software; the Free Software Foundation
27464 gives unlimited permission to copy, distribute and modify it."
27465
27466 ac_pwd='$ac_pwd'
27467 srcdir='$srcdir'
27468 _ACEOF
27469
27470 cat >>$CONFIG_STATUS <<\_ACEOF
27471 # If no file are specified by the user, then we need to provide default
27472 # value.  By we need to know if files were specified by the user.
27473 ac_need_defaults=:
27474 while test $# != 0
27475 do
27476   case $1 in
27477   --*=*)
27478     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27479     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27480     ac_shift=:
27481     ;;
27482   *)
27483     ac_option=$1
27484     ac_optarg=$2
27485     ac_shift=shift
27486     ;;
27487   esac
27488
27489   case $ac_option in
27490   # Handling of the options.
27491   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27492     ac_cs_recheck=: ;;
27493   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27494     echo "$ac_cs_version"; exit ;;
27495   --debug | --debu | --deb | --de | --d | -d )
27496     debug=: ;;
27497   --file | --fil | --fi | --f )
27498     $ac_shift
27499     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27500     ac_need_defaults=false;;
27501   --header | --heade | --head | --hea )
27502     $ac_shift
27503     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27504     ac_need_defaults=false;;
27505   --he | --h)
27506     # Conflict between --help and --header
27507     { echo "$as_me: error: ambiguous option: $1
27508 Try \`$0 --help' for more information." >&2
27509    { (exit 1); exit 1; }; };;
27510   --help | --hel | -h )
27511     echo "$ac_cs_usage"; exit ;;
27512   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27513   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27514     ac_cs_silent=: ;;
27515
27516   # This is an error.
27517   -*) { echo "$as_me: error: unrecognized option: $1
27518 Try \`$0 --help' for more information." >&2
27519    { (exit 1); exit 1; }; } ;;
27520
27521   *) ac_config_targets="$ac_config_targets $1"
27522      ac_need_defaults=false ;;
27523
27524   esac
27525   shift
27526 done
27527
27528 ac_configure_extra_args=
27529
27530 if $ac_cs_silent; then
27531   exec 6>/dev/null
27532   ac_configure_extra_args="$ac_configure_extra_args --silent"
27533 fi
27534
27535 _ACEOF
27536 cat >>$CONFIG_STATUS <<_ACEOF
27537 if \$ac_cs_recheck; then
27538   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27539   CONFIG_SHELL=$SHELL
27540   export CONFIG_SHELL
27541   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27542 fi
27543
27544 _ACEOF
27545 cat >>$CONFIG_STATUS <<\_ACEOF
27546 exec 5>>config.log
27547 {
27548   echo
27549   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27550 ## Running $as_me. ##
27551 _ASBOX
27552   echo "$ac_log"
27553 } >&5
27554
27555 _ACEOF
27556 cat >>$CONFIG_STATUS <<_ACEOF
27557 _ACEOF
27558
27559 cat >>$CONFIG_STATUS <<\_ACEOF
27560
27561 # Handling of arguments.
27562 for ac_config_target in $ac_config_targets
27563 do
27564   case $ac_config_target in
27565     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
27566     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
27567     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
27568     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
27569     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
27570     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
27571     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
27572     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
27573     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
27574     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
27575     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
27576     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
27577     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
27578     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
27579     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
27580     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
27581     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
27582     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
27583     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
27584     "./raddb/vmpsd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/vmpsd.conf" ;;
27585     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
27586
27587   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27588 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27589    { (exit 1); exit 1; }; };;
27590   esac
27591 done
27592
27593
27594 # If the user did not use the arguments to specify the items to instantiate,
27595 # then the envvar interface is used.  Set only those that are not.
27596 # We use the long form for the default assignment because of an extremely
27597 # bizarre bug on SunOS 4.1.3.
27598 if $ac_need_defaults; then
27599   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27600   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27601   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27602 fi
27603
27604 # Have a temporary directory for convenience.  Make it in the build tree
27605 # simply because there is no reason against having it here, and in addition,
27606 # creating and moving files from /tmp can sometimes cause problems.
27607 # Hook for its removal unless debugging.
27608 # Note that there is a small window in which the directory will not be cleaned:
27609 # after its creation but before its name has been assigned to `$tmp'.
27610 $debug ||
27611 {
27612   tmp=
27613   trap 'exit_status=$?
27614   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27615 ' 0
27616   trap '{ (exit 1); exit 1; }' 1 2 13 15
27617 }
27618 # Create a (secure) tmp directory for tmp files.
27619
27620 {
27621   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27622   test -n "$tmp" && test -d "$tmp"
27623 }  ||
27624 {
27625   tmp=./conf$$-$RANDOM
27626   (umask 077 && mkdir "$tmp")
27627 } ||
27628 {
27629    echo "$me: cannot create a temporary directory in ." >&2
27630    { (exit 1); exit 1; }
27631 }
27632
27633 #
27634 # Set up the sed scripts for CONFIG_FILES section.
27635 #
27636
27637 # No need to generate the scripts if there are no CONFIG_FILES.
27638 # This happens for instance when ./config.status config.h
27639 if test -n "$CONFIG_FILES"; then
27640
27641 _ACEOF
27642
27643
27644
27645 ac_delim='%!_!# '
27646 for ac_last_try in false false false false false :; do
27647   cat >conf$$subs.sed <<_ACEOF
27648 SHELL!$SHELL$ac_delim
27649 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27650 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27651 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27652 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27653 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27654 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27655 exec_prefix!$exec_prefix$ac_delim
27656 prefix!$prefix$ac_delim
27657 program_transform_name!$program_transform_name$ac_delim
27658 bindir!$bindir$ac_delim
27659 sbindir!$sbindir$ac_delim
27660 libexecdir!$libexecdir$ac_delim
27661 datarootdir!$datarootdir$ac_delim
27662 datadir!$datadir$ac_delim
27663 sysconfdir!$sysconfdir$ac_delim
27664 sharedstatedir!$sharedstatedir$ac_delim
27665 localstatedir!$localstatedir$ac_delim
27666 includedir!$includedir$ac_delim
27667 oldincludedir!$oldincludedir$ac_delim
27668 docdir!$docdir$ac_delim
27669 infodir!$infodir$ac_delim
27670 htmldir!$htmldir$ac_delim
27671 dvidir!$dvidir$ac_delim
27672 pdfdir!$pdfdir$ac_delim
27673 psdir!$psdir$ac_delim
27674 libdir!$libdir$ac_delim
27675 localedir!$localedir$ac_delim
27676 mandir!$mandir$ac_delim
27677 DEFS!$DEFS$ac_delim
27678 ECHO_C!$ECHO_C$ac_delim
27679 ECHO_N!$ECHO_N$ac_delim
27680 ECHO_T!$ECHO_T$ac_delim
27681 LIBS!$LIBS$ac_delim
27682 build_alias!$build_alias$ac_delim
27683 host_alias!$host_alias$ac_delim
27684 target_alias!$target_alias$ac_delim
27685 CC!$CC$ac_delim
27686 CFLAGS!$CFLAGS$ac_delim
27687 LDFLAGS!$LDFLAGS$ac_delim
27688 CPPFLAGS!$CPPFLAGS$ac_delim
27689 ac_ct_CC!$ac_ct_CC$ac_delim
27690 EXEEXT!$EXEEXT$ac_delim
27691 OBJEXT!$OBJEXT$ac_delim
27692 CXX!$CXX$ac_delim
27693 CXXFLAGS!$CXXFLAGS$ac_delim
27694 ac_ct_CXX!$ac_ct_CXX$ac_delim
27695 CPP!$CPP$ac_delim
27696 GREP!$GREP$ac_delim
27697 EGREP!$EGREP$ac_delim
27698 RANLIB!$RANLIB$ac_delim
27699 GMAKE!$GMAKE$ac_delim
27700 MAKE!$MAKE$ac_delim
27701 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
27702 LIBTOOL!$LIBTOOL$ac_delim
27703 build!$build$ac_delim
27704 build_cpu!$build_cpu$ac_delim
27705 build_vendor!$build_vendor$ac_delim
27706 build_os!$build_os$ac_delim
27707 host!$host$ac_delim
27708 host_cpu!$host_cpu$ac_delim
27709 host_vendor!$host_vendor$ac_delim
27710 host_os!$host_os$ac_delim
27711 LN_S!$LN_S$ac_delim
27712 ECHO!$ECHO$ac_delim
27713 AR!$AR$ac_delim
27714 STRIP!$STRIP$ac_delim
27715 CXXCPP!$CXXCPP$ac_delim
27716 F77!$F77$ac_delim
27717 FFLAGS!$FFLAGS$ac_delim
27718 ac_ct_F77!$ac_ct_F77$ac_delim
27719 logdir!$logdir$ac_delim
27720 radacctdir!$radacctdir$ac_delim
27721 raddbdir!$raddbdir$ac_delim
27722 PERL!$PERL$ac_delim
27723 SNMPGET!$SNMPGET$ac_delim
27724 SNMPWALK!$SNMPWALK$ac_delim
27725 RUSERS!$RUSERS$ac_delim
27726 ACLOCAL!$ACLOCAL$ac_delim
27727 AUTOCONF!$AUTOCONF$ac_delim
27728 AUTOHEADER!$AUTOHEADER$ac_delim
27729 LOCATE!$LOCATE$ac_delim
27730 DIRNAME!$DIRNAME$ac_delim
27731 REGEX!$REGEX$ac_delim
27732 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
27733 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
27734 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
27735 PCAP_LIBS!$PCAP_LIBS$ac_delim
27736 LIBPREFIX!$LIBPREFIX$ac_delim
27737 CRYPTLIB!$CRYPTLIB$ac_delim
27738 SNMP_LIBS!$SNMP_LIBS$ac_delim
27739 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
27740 HOSTINFO!$HOSTINFO$ac_delim
27741 LIBLTDL!$LIBLTDL$ac_delim
27742 INCLTDL!$INCLTDL$ac_delim
27743 subdirs!$subdirs$ac_delim
27744 MODULES!$MODULES$ac_delim
27745 _ACEOF
27746
27747   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27748     break
27749   elif $ac_last_try; then
27750     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27751 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27752    { (exit 1); exit 1; }; }
27753   else
27754     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27755   fi
27756 done
27757
27758 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27759 if test -n "$ac_eof"; then
27760   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27761   ac_eof=`expr $ac_eof + 1`
27762 fi
27763
27764 cat >>$CONFIG_STATUS <<_ACEOF
27765 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27767 _ACEOF
27768 sed '
27769 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27770 s/^/s,@/; s/!/@,|#_!!_#|/
27771 :n
27772 t n
27773 s/'"$ac_delim"'$/,g/; t
27774 s/$/\\/; p
27775 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27776 ' >>$CONFIG_STATUS <conf$$subs.sed
27777 rm -f conf$$subs.sed
27778 cat >>$CONFIG_STATUS <<_ACEOF
27779 CEOF$ac_eof
27780 _ACEOF
27781
27782
27783 ac_delim='%!_!# '
27784 for ac_last_try in false false false false false :; do
27785   cat >conf$$subs.sed <<_ACEOF
27786 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
27787 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
27788 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
27789 STATIC_MODULES!$STATIC_MODULES$ac_delim
27790 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
27791 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
27792 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
27793 LIBOBJS!$LIBOBJS$ac_delim
27794 LTLIBOBJS!$LTLIBOBJS$ac_delim
27795 _ACEOF
27796
27797   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
27798     break
27799   elif $ac_last_try; then
27800     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27801 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27802    { (exit 1); exit 1; }; }
27803   else
27804     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27805   fi
27806 done
27807
27808 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27809 if test -n "$ac_eof"; then
27810   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27811   ac_eof=`expr $ac_eof + 1`
27812 fi
27813
27814 cat >>$CONFIG_STATUS <<_ACEOF
27815 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27817 _ACEOF
27818 sed '
27819 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27820 s/^/s,@/; s/!/@,|#_!!_#|/
27821 :n
27822 t n
27823 s/'"$ac_delim"'$/,g/; t
27824 s/$/\\/; p
27825 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27826 ' >>$CONFIG_STATUS <conf$$subs.sed
27827 rm -f conf$$subs.sed
27828 cat >>$CONFIG_STATUS <<_ACEOF
27829 :end
27830 s/|#_!!_#|//g
27831 CEOF$ac_eof
27832 _ACEOF
27833
27834
27835 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27836 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27837 # trailing colons and then remove the whole line if VPATH becomes empty
27838 # (actually we leave an empty line to preserve line numbers).
27839 if test "x$srcdir" = x.; then
27840   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27841 s/:*\$(srcdir):*/:/
27842 s/:*\${srcdir}:*/:/
27843 s/:*@srcdir@:*/:/
27844 s/^\([^=]*=[     ]*\):*/\1/
27845 s/:*$//
27846 s/^[^=]*=[       ]*$//
27847 }'
27848 fi
27849
27850 cat >>$CONFIG_STATUS <<\_ACEOF
27851 fi # test -n "$CONFIG_FILES"
27852
27853
27854 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27855 do
27856   case $ac_tag in
27857   :[FHLC]) ac_mode=$ac_tag; continue;;
27858   esac
27859   case $ac_mode$ac_tag in
27860   :[FHL]*:*);;
27861   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27862 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27863    { (exit 1); exit 1; }; };;
27864   :[FH]-) ac_tag=-:-;;
27865   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27866   esac
27867   ac_save_IFS=$IFS
27868   IFS=:
27869   set x $ac_tag
27870   IFS=$ac_save_IFS
27871   shift
27872   ac_file=$1
27873   shift
27874
27875   case $ac_mode in
27876   :L) ac_source=$1;;
27877   :[FH])
27878     ac_file_inputs=
27879     for ac_f
27880     do
27881       case $ac_f in
27882       -) ac_f="$tmp/stdin";;
27883       *) # Look for the file first in the build tree, then in the source tree
27884          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27885          # because $ac_f cannot contain `:'.
27886          test -f "$ac_f" ||
27887            case $ac_f in
27888            [\\/$]*) false;;
27889            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27890            esac ||
27891            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27892 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27893    { (exit 1); exit 1; }; };;
27894       esac
27895       ac_file_inputs="$ac_file_inputs $ac_f"
27896     done
27897
27898     # Let's still pretend it is `configure' which instantiates (i.e., don't
27899     # use $as_me), people would be surprised to read:
27900     #    /* config.h.  Generated by config.status.  */
27901     configure_input="Generated from "`IFS=:
27902           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27903     if test x"$ac_file" != x-; then
27904       configure_input="$ac_file.  $configure_input"
27905       { echo "$as_me:$LINENO: creating $ac_file" >&5
27906 echo "$as_me: creating $ac_file" >&6;}
27907     fi
27908
27909     case $ac_tag in
27910     *:-:* | *:-) cat >"$tmp/stdin";;
27911     esac
27912     ;;
27913   esac
27914
27915   ac_dir=`$as_dirname -- "$ac_file" ||
27916 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27917          X"$ac_file" : 'X\(//\)[^/]' \| \
27918          X"$ac_file" : 'X\(//\)$' \| \
27919          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27920 echo X"$ac_file" |
27921     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27922             s//\1/
27923             q
27924           }
27925           /^X\(\/\/\)[^/].*/{
27926             s//\1/
27927             q
27928           }
27929           /^X\(\/\/\)$/{
27930             s//\1/
27931             q
27932           }
27933           /^X\(\/\).*/{
27934             s//\1/
27935             q
27936           }
27937           s/.*/./; q'`
27938   { as_dir="$ac_dir"
27939   case $as_dir in #(
27940   -*) as_dir=./$as_dir;;
27941   esac
27942   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27943     as_dirs=
27944     while :; do
27945       case $as_dir in #(
27946       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27947       *) as_qdir=$as_dir;;
27948       esac
27949       as_dirs="'$as_qdir' $as_dirs"
27950       as_dir=`$as_dirname -- "$as_dir" ||
27951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27952          X"$as_dir" : 'X\(//\)[^/]' \| \
27953          X"$as_dir" : 'X\(//\)$' \| \
27954          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27955 echo X"$as_dir" |
27956     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27957             s//\1/
27958             q
27959           }
27960           /^X\(\/\/\)[^/].*/{
27961             s//\1/
27962             q
27963           }
27964           /^X\(\/\/\)$/{
27965             s//\1/
27966             q
27967           }
27968           /^X\(\/\).*/{
27969             s//\1/
27970             q
27971           }
27972           s/.*/./; q'`
27973       test -d "$as_dir" && break
27974     done
27975     test -z "$as_dirs" || eval "mkdir $as_dirs"
27976   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27977 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27978    { (exit 1); exit 1; }; }; }
27979   ac_builddir=.
27980
27981 case "$ac_dir" in
27982 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27983 *)
27984   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27985   # A ".." for each directory in $ac_dir_suffix.
27986   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27987   case $ac_top_builddir_sub in
27988   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27989   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27990   esac ;;
27991 esac
27992 ac_abs_top_builddir=$ac_pwd
27993 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27994 # for backward compatibility:
27995 ac_top_builddir=$ac_top_build_prefix
27996
27997 case $srcdir in
27998   .)  # We are building in place.
27999     ac_srcdir=.
28000     ac_top_srcdir=$ac_top_builddir_sub
28001     ac_abs_top_srcdir=$ac_pwd ;;
28002   [\\/]* | ?:[\\/]* )  # Absolute name.
28003     ac_srcdir=$srcdir$ac_dir_suffix;
28004     ac_top_srcdir=$srcdir
28005     ac_abs_top_srcdir=$srcdir ;;
28006   *) # Relative name.
28007     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28008     ac_top_srcdir=$ac_top_build_prefix$srcdir
28009     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28010 esac
28011 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28012
28013
28014   case $ac_mode in
28015   :F)
28016   #
28017   # CONFIG_FILE
28018   #
28019
28020 _ACEOF
28021
28022 cat >>$CONFIG_STATUS <<\_ACEOF
28023 # If the template does not know about datarootdir, expand it.
28024 # FIXME: This hack should be removed a few years after 2.60.
28025 ac_datarootdir_hack=; ac_datarootdir_seen=
28026
28027 case `sed -n '/datarootdir/ {
28028   p
28029   q
28030 }
28031 /@datadir@/p
28032 /@docdir@/p
28033 /@infodir@/p
28034 /@localedir@/p
28035 /@mandir@/p
28036 ' $ac_file_inputs` in
28037 *datarootdir*) ac_datarootdir_seen=yes;;
28038 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28039   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28040 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28041 _ACEOF
28042 cat >>$CONFIG_STATUS <<_ACEOF
28043   ac_datarootdir_hack='
28044   s&@datadir@&$datadir&g
28045   s&@docdir@&$docdir&g
28046   s&@infodir@&$infodir&g
28047   s&@localedir@&$localedir&g
28048   s&@mandir@&$mandir&g
28049     s&\\\${datarootdir}&$datarootdir&g' ;;
28050 esac
28051 _ACEOF
28052
28053 # Neutralize VPATH when `$srcdir' = `.'.
28054 # Shell code in configure.ac might set extrasub.
28055 # FIXME: do we really want to maintain this feature?
28056 cat >>$CONFIG_STATUS <<_ACEOF
28057   sed "$ac_vpsub
28058 $extrasub
28059 _ACEOF
28060 cat >>$CONFIG_STATUS <<\_ACEOF
28061 :t
28062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28063 s&@configure_input@&$configure_input&;t t
28064 s&@top_builddir@&$ac_top_builddir_sub&;t t
28065 s&@srcdir@&$ac_srcdir&;t t
28066 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28067 s&@top_srcdir@&$ac_top_srcdir&;t t
28068 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28069 s&@builddir@&$ac_builddir&;t t
28070 s&@abs_builddir@&$ac_abs_builddir&;t t
28071 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28072 $ac_datarootdir_hack
28073 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28074
28075 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28076   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28077   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28078   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28079 which seems to be undefined.  Please make sure it is defined." >&5
28080 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28081 which seems to be undefined.  Please make sure it is defined." >&2;}
28082
28083   rm -f "$tmp/stdin"
28084   case $ac_file in
28085   -) cat "$tmp/out"; rm -f "$tmp/out";;
28086   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28087   esac
28088  ;;
28089   :H)
28090   #
28091   # CONFIG_HEADER
28092   #
28093 _ACEOF
28094
28095 # Transform confdefs.h into a sed script `conftest.defines', that
28096 # substitutes the proper values into config.h.in to produce config.h.
28097 rm -f conftest.defines conftest.tail
28098 # First, append a space to every undef/define line, to ease matching.
28099 echo 's/$/ /' >conftest.defines
28100 # Then, protect against being on the right side of a sed subst, or in
28101 # an unquoted here document, in config.status.  If some macros were
28102 # called several times there might be several #defines for the same
28103 # symbol, which is useless.  But do not sort them, since the last
28104 # AC_DEFINE must be honored.
28105 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28106 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28107 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28108 # PARAMS is the parameter list in the macro definition--in most cases, it's
28109 # just an empty string.
28110 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28111 ac_dB='\\)[      (].*,\\1define\\2'
28112 ac_dC=' '
28113 ac_dD=' ,'
28114
28115 uniq confdefs.h |
28116   sed -n '
28117         t rset
28118         :rset
28119         s/^[     ]*#[    ]*define[       ][      ]*//
28120         t ok
28121         d
28122         :ok
28123         s/[\\&,]/\\&/g
28124         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28125         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28126   ' >>conftest.defines
28127
28128 # Remove the space that was appended to ease matching.
28129 # Then replace #undef with comments.  This is necessary, for
28130 # example, in the case of _POSIX_SOURCE, which is predefined and required
28131 # on some systems where configure will not decide to define it.
28132 # (The regexp can be short, since the line contains either #define or #undef.)
28133 echo 's/ $//
28134 s,^[     #]*u.*,/* & */,' >>conftest.defines
28135
28136 # Break up conftest.defines:
28137 ac_max_sed_lines=50
28138
28139 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28140 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28141 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28142 # et cetera.
28143 ac_in='$ac_file_inputs'
28144 ac_out='"$tmp/out1"'
28145 ac_nxt='"$tmp/out2"'
28146
28147 while :
28148 do
28149   # Write a here document:
28150     cat >>$CONFIG_STATUS <<_ACEOF
28151     # First, check the format of the line:
28152     cat >"\$tmp/defines.sed" <<\\CEOF
28153 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28154 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28155 b
28156 :def
28157 _ACEOF
28158   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28159   echo 'CEOF
28160     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28161   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28162   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28163   grep . conftest.tail >/dev/null || break
28164   rm -f conftest.defines
28165   mv conftest.tail conftest.defines
28166 done
28167 rm -f conftest.defines conftest.tail
28168
28169 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28170 cat >>$CONFIG_STATUS <<\_ACEOF
28171   if test x"$ac_file" != x-; then
28172     echo "/* $configure_input  */" >"$tmp/config.h"
28173     cat "$ac_result" >>"$tmp/config.h"
28174     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28175       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28176 echo "$as_me: $ac_file is unchanged" >&6;}
28177     else
28178       rm -f $ac_file
28179       mv "$tmp/config.h" $ac_file
28180     fi
28181   else
28182     echo "/* $configure_input  */"
28183     cat "$ac_result"
28184   fi
28185   rm -f "$tmp/out12"
28186  ;;
28187
28188   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28189 echo "$as_me: executing $ac_file commands" >&6;}
28190  ;;
28191   esac
28192
28193
28194   case $ac_file$ac_mode in
28195     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
28196     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
28197     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
28198     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
28199
28200   esac
28201 done # for ac_tag
28202
28203
28204 { (exit 0); exit 0; }
28205 _ACEOF
28206 chmod +x $CONFIG_STATUS
28207 ac_clean_files=$ac_clean_files_save
28208
28209
28210 # configure is writing to config.log, and then calls config.status.
28211 # config.status does its own redirection, appending to config.log.
28212 # Unfortunately, on DOS this fails, as config.log is still kept open
28213 # by configure, so config.status won't be able to write to it; its
28214 # output is simply discarded.  So we exec the FD to /dev/null,
28215 # effectively closing config.log, so it can be properly (re)opened and
28216 # appended to by config.status.  When coming back to configure, we
28217 # need to make the FD available again.
28218 if test "$no_create" != yes; then
28219   ac_cs_success=:
28220   ac_config_status_args=
28221   test "$silent" = yes &&
28222     ac_config_status_args="$ac_config_status_args --quiet"
28223   exec 5>/dev/null
28224   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28225   exec 5>>config.log
28226   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28227   # would make configure fail if this is the last instruction.
28228   $ac_cs_success || { (exit 1); exit 1; }
28229 fi
28230
28231 #
28232 # CONFIG_SUBDIRS section.
28233 #
28234 if test "$no_recursion" != yes; then
28235
28236   # Remove --cache-file and --srcdir arguments so they do not pile up.
28237   ac_sub_configure_args=
28238   ac_prev=
28239   eval "set x $ac_configure_args"
28240   shift
28241   for ac_arg
28242   do
28243     if test -n "$ac_prev"; then
28244       ac_prev=
28245       continue
28246     fi
28247     case $ac_arg in
28248     -cache-file | --cache-file | --cache-fil | --cache-fi \
28249     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28250       ac_prev=cache_file ;;
28251     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28252     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28253     | --c=*)
28254       ;;
28255     --config-cache | -C)
28256       ;;
28257     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28258       ac_prev=srcdir ;;
28259     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28260       ;;
28261     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28262       ac_prev=prefix ;;
28263     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28264       ;;
28265     *)
28266       case $ac_arg in
28267       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28268       esac
28269       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
28270     esac
28271   done
28272
28273   # Always prepend --prefix to ensure using the same prefix
28274   # in subdir configurations.
28275   ac_arg="--prefix=$prefix"
28276   case $ac_arg in
28277   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28278   esac
28279   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
28280
28281   ac_popdir=`pwd`
28282   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28283
28284     # Do not complain, so a configure script can configure whichever
28285     # parts of a large source tree are present.
28286     test -d "$srcdir/$ac_dir" || continue
28287
28288     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28289     echo "$as_me:$LINENO: $ac_msg" >&5
28290     echo "$ac_msg" >&6
28291     { as_dir="$ac_dir"
28292   case $as_dir in #(
28293   -*) as_dir=./$as_dir;;
28294   esac
28295   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28296     as_dirs=
28297     while :; do
28298       case $as_dir in #(
28299       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28300       *) as_qdir=$as_dir;;
28301       esac
28302       as_dirs="'$as_qdir' $as_dirs"
28303       as_dir=`$as_dirname -- "$as_dir" ||
28304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28305          X"$as_dir" : 'X\(//\)[^/]' \| \
28306          X"$as_dir" : 'X\(//\)$' \| \
28307          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28308 echo X"$as_dir" |
28309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28310             s//\1/
28311             q
28312           }
28313           /^X\(\/\/\)[^/].*/{
28314             s//\1/
28315             q
28316           }
28317           /^X\(\/\/\)$/{
28318             s//\1/
28319             q
28320           }
28321           /^X\(\/\).*/{
28322             s//\1/
28323             q
28324           }
28325           s/.*/./; q'`
28326       test -d "$as_dir" && break
28327     done
28328     test -z "$as_dirs" || eval "mkdir $as_dirs"
28329   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28330 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28331    { (exit 1); exit 1; }; }; }
28332     ac_builddir=.
28333
28334 case "$ac_dir" in
28335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28336 *)
28337   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28338   # A ".." for each directory in $ac_dir_suffix.
28339   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28340   case $ac_top_builddir_sub in
28341   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28342   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28343   esac ;;
28344 esac
28345 ac_abs_top_builddir=$ac_pwd
28346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28347 # for backward compatibility:
28348 ac_top_builddir=$ac_top_build_prefix
28349
28350 case $srcdir in
28351   .)  # We are building in place.
28352     ac_srcdir=.
28353     ac_top_srcdir=$ac_top_builddir_sub
28354     ac_abs_top_srcdir=$ac_pwd ;;
28355   [\\/]* | ?:[\\/]* )  # Absolute name.
28356     ac_srcdir=$srcdir$ac_dir_suffix;
28357     ac_top_srcdir=$srcdir
28358     ac_abs_top_srcdir=$srcdir ;;
28359   *) # Relative name.
28360     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28361     ac_top_srcdir=$ac_top_build_prefix$srcdir
28362     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28363 esac
28364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28365
28366
28367     cd "$ac_dir"
28368
28369     # Check for guested configure; otherwise get Cygnus style configure.
28370     if test -f "$ac_srcdir/configure.gnu"; then
28371       ac_sub_configure=$ac_srcdir/configure.gnu
28372     elif test -f "$ac_srcdir/configure"; then
28373       ac_sub_configure=$ac_srcdir/configure
28374     elif test -f "$ac_srcdir/configure.in"; then
28375       # This should be Cygnus configure.
28376       ac_sub_configure=$ac_aux_dir/configure
28377     else
28378       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28379 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28380       ac_sub_configure=
28381     fi
28382
28383     # The recursion is here.
28384     if test -n "$ac_sub_configure"; then
28385       # Make the cache file name correct relative to the subdirectory.
28386       case $cache_file in
28387       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28388       *) # Relative name.
28389         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28390       esac
28391
28392       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28393 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28394       # The eval makes quoting arguments work.
28395       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28396            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28397         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28398 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28399    { (exit 1); exit 1; }; }
28400     fi
28401
28402     cd "$ac_popdir"
28403   done
28404 fi
28405