Renamed version to -pre2
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.239 .
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-static-modules=QUOTED-MODULE-LIST
1474  --with-modules=QUOTED-MODULE-LIST
1475   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1476   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1477   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1478   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1479   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1480   --with-udpfromto        Compile in UDPFROMTO support. (default=yes)
1481
1482 Some influential environment variables:
1483   CC          C compiler command
1484   CFLAGS      C compiler flags
1485   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1486               nonstandard directory <lib dir>
1487   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1488               you have headers in a nonstandard directory <include dir>
1489   CXX         C++ compiler command
1490   CXXFLAGS    C++ compiler flags
1491   CPP         C preprocessor
1492   CXXCPP      C++ preprocessor
1493   F77         Fortran 77 compiler command
1494   FFLAGS      Fortran 77 compiler flags
1495
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1498
1499 _ACEOF
1500 ac_status=$?
1501 fi
1502
1503 if test "$ac_init_help" = "recursive"; then
1504   # If there are subdirs, report their specific --help.
1505   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506     test -d "$ac_dir" || continue
1507     ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1513   # A ".." for each directory in $ac_dir_suffix.
1514   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1515   case $ac_top_builddir_sub in
1516   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518   esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526   .)  # We are building in place.
1527     ac_srcdir=.
1528     ac_top_srcdir=$ac_top_builddir_sub
1529     ac_abs_top_srcdir=$ac_pwd ;;
1530   [\\/]* | ?:[\\/]* )  # Absolute name.
1531     ac_srcdir=$srcdir$ac_dir_suffix;
1532     ac_top_srcdir=$srcdir
1533     ac_abs_top_srcdir=$srcdir ;;
1534   *) # Relative name.
1535     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536     ac_top_srcdir=$ac_top_build_prefix$srcdir
1537     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541     cd "$ac_dir" || { ac_status=$?; continue; }
1542     # Check for guested configure.
1543     if test -f "$ac_srcdir/configure.gnu"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546     elif test -f "$ac_srcdir/configure"; then
1547       echo &&
1548       $SHELL "$ac_srcdir/configure" --help=recursive
1549     else
1550       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551     fi || ac_status=$?
1552     cd "$ac_pwd" || { ac_status=$?; break; }
1553   done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558   cat <<\_ACEOF
1559 configure
1560 generated by GNU Autoconf 2.60
1561
1562 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1563 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1564 This configure script is free software; the Free Software Foundation
1565 gives unlimited permission to copy, distribute and modify it.
1566 _ACEOF
1567   exit
1568 fi
1569 cat >config.log <<_ACEOF
1570 This file contains any messages produced by compilers while
1571 running configure, to aid debugging if configure makes a mistake.
1572
1573 It was created by $as_me, which was
1574 generated by GNU Autoconf 2.60.  Invocation command line was
1575
1576   $ $0 $@
1577
1578 _ACEOF
1579 exec 5>>config.log
1580 {
1581 cat <<_ASUNAME
1582 ## --------- ##
1583 ## Platform. ##
1584 ## --------- ##
1585
1586 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1587 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1588 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1589 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1590 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591
1592 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1593 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1594
1595 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1596 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1597 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1598 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1599 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1600 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1601 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1602
1603 _ASUNAME
1604
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608   IFS=$as_save_IFS
1609   test -z "$as_dir" && as_dir=.
1610   echo "PATH: $as_dir"
1611 done
1612 IFS=$as_save_IFS
1613
1614 } >&5
1615
1616 cat >&5 <<_ACEOF
1617
1618
1619 ## ----------- ##
1620 ## Core tests. ##
1621 ## ----------- ##
1622
1623 _ACEOF
1624
1625
1626 # Keep a trace of the command line.
1627 # Strip out --no-create and --no-recursion so they do not pile up.
1628 # Strip out --silent because we don't want to record it for future runs.
1629 # Also quote any args containing shell meta-characters.
1630 # Make two passes to allow for proper duplicate-argument suppression.
1631 ac_configure_args=
1632 ac_configure_args0=
1633 ac_configure_args1=
1634 ac_must_keep_next=false
1635 for ac_pass in 1 2
1636 do
1637   for ac_arg
1638   do
1639     case $ac_arg in
1640     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1641     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1642     | -silent | --silent | --silen | --sile | --sil)
1643       continue ;;
1644     *\'*)
1645       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1646     esac
1647     case $ac_pass in
1648     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649     2)
1650       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1651       if test $ac_must_keep_next = true; then
1652         ac_must_keep_next=false # Got value, back to normal.
1653       else
1654         case $ac_arg in
1655           *=* | --config-cache | -C | -disable-* | --disable-* \
1656           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1657           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1658           | -with-* | --with-* | -without-* | --without-* | --x)
1659             case "$ac_configure_args0 " in
1660               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1661             esac
1662             ;;
1663           -* ) ac_must_keep_next=true ;;
1664         esac
1665       fi
1666       ac_configure_args="$ac_configure_args '$ac_arg'"
1667       ;;
1668     esac
1669   done
1670 done
1671 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1672 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673
1674 # When interrupted or exit'd, cleanup temporary files, and complete
1675 # config.log.  We remove comments because anyway the quotes in there
1676 # would cause problems or look ugly.
1677 # WARNING: Use '\'' to represent an apostrophe within the trap.
1678 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1679 trap 'exit_status=$?
1680   # Save into config.log some information that might help in debugging.
1681   {
1682     echo
1683
1684     cat <<\_ASBOX
1685 ## ---------------- ##
1686 ## Cache variables. ##
1687 ## ---------------- ##
1688 _ASBOX
1689     echo
1690     # The following way of writing the cache mishandles newlines in values,
1691 (
1692   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1693     eval ac_val=\$$ac_var
1694     case $ac_val in #(
1695     *${as_nl}*)
1696       case $ac_var in #(
1697       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1698 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1699       esac
1700       case $ac_var in #(
1701       _ | IFS | as_nl) ;; #(
1702       *) $as_unset $ac_var ;;
1703       esac ;;
1704     esac
1705   done
1706   (set) 2>&1 |
1707     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1708     *${as_nl}ac_space=\ *)
1709       sed -n \
1710         "s/'\''/'\''\\\\'\'''\''/g;
1711           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1712       ;; #(
1713     *)
1714       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1715       ;;
1716     esac |
1717     sort
1718 )
1719     echo
1720
1721     cat <<\_ASBOX
1722 ## ----------------- ##
1723 ## Output variables. ##
1724 ## ----------------- ##
1725 _ASBOX
1726     echo
1727     for ac_var in $ac_subst_vars
1728     do
1729       eval ac_val=\$$ac_var
1730       case $ac_val in
1731       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732       esac
1733       echo "$ac_var='\''$ac_val'\''"
1734     done | sort
1735     echo
1736
1737     if test -n "$ac_subst_files"; then
1738       cat <<\_ASBOX
1739 ## ------------------- ##
1740 ## File substitutions. ##
1741 ## ------------------- ##
1742 _ASBOX
1743       echo
1744       for ac_var in $ac_subst_files
1745       do
1746         eval ac_val=\$$ac_var
1747         case $ac_val in
1748         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749         esac
1750         echo "$ac_var='\''$ac_val'\''"
1751       done | sort
1752       echo
1753     fi
1754
1755     if test -s confdefs.h; then
1756       cat <<\_ASBOX
1757 ## ----------- ##
1758 ## confdefs.h. ##
1759 ## ----------- ##
1760 _ASBOX
1761       echo
1762       cat confdefs.h
1763       echo
1764     fi
1765     test "$ac_signal" != 0 &&
1766       echo "$as_me: caught signal $ac_signal"
1767     echo "$as_me: exit $exit_status"
1768   } >&5
1769   rm -f core *.core core.conftest.* &&
1770     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1771     exit $exit_status
1772 ' 0
1773 for ac_signal in 1 2 13 15; do
1774   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1775 done
1776 ac_signal=0
1777
1778 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1779 rm -f -r conftest* confdefs.h
1780
1781 # Predefined preprocessor variables.
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_NAME "$PACKAGE_NAME"
1785 _ACEOF
1786
1787
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1790 _ACEOF
1791
1792
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1795 _ACEOF
1796
1797
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_STRING "$PACKAGE_STRING"
1800 _ACEOF
1801
1802
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1805 _ACEOF
1806
1807
1808 # Let the site file select an alternate cache file if it wants to.
1809 # Prefer explicitly selected file to automatically selected ones.
1810 if test -n "$CONFIG_SITE"; then
1811   set x "$CONFIG_SITE"
1812 elif test "x$prefix" != xNONE; then
1813   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814 else
1815   set x "$ac_default_prefix/share/config.site" \
1816         "$ac_default_prefix/etc/config.site"
1817 fi
1818 shift
1819 for ac_site_file
1820 do
1821   if test -r "$ac_site_file"; then
1822     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1823 echo "$as_me: loading site script $ac_site_file" >&6;}
1824     sed 's/^/| /' "$ac_site_file" >&5
1825     . "$ac_site_file"
1826   fi
1827 done
1828
1829 if test -r "$cache_file"; then
1830   # Some versions of bash will fail to source /dev/null (special
1831   # files actually), so we avoid doing that.
1832   if test -f "$cache_file"; then
1833     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1834 echo "$as_me: loading cache $cache_file" >&6;}
1835     case $cache_file in
1836       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1837       *)                      . "./$cache_file";;
1838     esac
1839   fi
1840 else
1841   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1842 echo "$as_me: creating cache $cache_file" >&6;}
1843   >$cache_file
1844 fi
1845
1846 # Check that the precious variables saved in the cache have kept the same
1847 # value.
1848 ac_cache_corrupted=false
1849 for ac_var in $ac_precious_vars; do
1850   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1851   eval ac_new_set=\$ac_env_${ac_var}_set
1852   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1853   eval ac_new_val=\$ac_env_${ac_var}_value
1854   case $ac_old_set,$ac_new_set in
1855     set,)
1856       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1857 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1858       ac_cache_corrupted=: ;;
1859     ,set)
1860       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1861 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1862       ac_cache_corrupted=: ;;
1863     ,);;
1864     *)
1865       if test "x$ac_old_val" != "x$ac_new_val"; then
1866         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1867 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1868         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1869 echo "$as_me:   former value:  $ac_old_val" >&2;}
1870         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1871 echo "$as_me:   current value: $ac_new_val" >&2;}
1872         ac_cache_corrupted=:
1873       fi;;
1874   esac
1875   # Pass precious variables to config.status.
1876   if test "$ac_new_set" = set; then
1877     case $ac_new_val in
1878     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1879     *) ac_arg=$ac_var=$ac_new_val ;;
1880     esac
1881     case " $ac_configure_args " in
1882       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1883       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1884     esac
1885   fi
1886 done
1887 if $ac_cache_corrupted; then
1888   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1889 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1890   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1891 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1892    { (exit 1); exit 1; }; }
1893 fi
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911 ac_ext=c
1912 ac_cpp='$CPP $CPPFLAGS'
1913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1916
1917
1918 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1919
1920
1921 RADIUSD_MAJOR_VERSION=2
1922 RADIUSD_MINOR_VERSION=0.0-pre2
1923 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1924 PACKAGE=freeradius
1925
1926
1927 ac_ext=c
1928 ac_cpp='$CPP $CPPFLAGS'
1929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1932 if test -n "$ac_tool_prefix"; then
1933   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1934 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1937 if test "${ac_cv_prog_CC+set}" = set; then
1938   echo $ECHO_N "(cached) $ECHO_C" >&6
1939 else
1940   if test -n "$CC"; then
1941   ac_cv_prog_CC="$CC" # Let the user override the test.
1942 else
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944 for as_dir in $PATH
1945 do
1946   IFS=$as_save_IFS
1947   test -z "$as_dir" && as_dir=.
1948   for ac_exec_ext in '' $ac_executable_extensions; do
1949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1950     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952     break 2
1953   fi
1954 done
1955 done
1956 IFS=$as_save_IFS
1957
1958 fi
1959 fi
1960 CC=$ac_cv_prog_CC
1961 if test -n "$CC"; then
1962   { echo "$as_me:$LINENO: result: $CC" >&5
1963 echo "${ECHO_T}$CC" >&6; }
1964 else
1965   { echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6; }
1967 fi
1968
1969
1970 fi
1971 if test -z "$ac_cv_prog_CC"; then
1972   ac_ct_CC=$CC
1973   # Extract the first word of "gcc", so it can be a program name with args.
1974 set dummy gcc; ac_word=$2
1975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1978   echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980   if test -n "$ac_ct_CC"; then
1981   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1982 else
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988   for ac_exec_ext in '' $ac_executable_extensions; do
1989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1990     ac_cv_prog_ac_ct_CC="gcc"
1991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992     break 2
1993   fi
1994 done
1995 done
1996 IFS=$as_save_IFS
1997
1998 fi
1999 fi
2000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2001 if test -n "$ac_ct_CC"; then
2002   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2003 echo "${ECHO_T}$ac_ct_CC" >&6; }
2004 else
2005   { echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6; }
2007 fi
2008
2009   if test "x$ac_ct_CC" = x; then
2010     CC=""
2011   else
2012     case $cross_compiling:$ac_tool_warned in
2013 yes:)
2014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2015 whose name does not start with the host triplet.  If you think this
2016 configuration is useful to you, please write to autoconf@gnu.org." >&5
2017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2018 whose name does not start with the host triplet.  If you think this
2019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2020 ac_tool_warned=yes ;;
2021 esac
2022     CC=$ac_ct_CC
2023   fi
2024 else
2025   CC="$ac_cv_prog_CC"
2026 fi
2027
2028 if test -z "$CC"; then
2029           if test -n "$ac_tool_prefix"; then
2030     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2031 set dummy ${ac_tool_prefix}cc; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_prog_CC+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   if test -n "$CC"; then
2038   ac_cv_prog_CC="$CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
2043   IFS=$as_save_IFS
2044   test -z "$as_dir" && as_dir=.
2045   for ac_exec_ext in '' $ac_executable_extensions; do
2046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2047     ac_cv_prog_CC="${ac_tool_prefix}cc"
2048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049     break 2
2050   fi
2051 done
2052 done
2053 IFS=$as_save_IFS
2054
2055 fi
2056 fi
2057 CC=$ac_cv_prog_CC
2058 if test -n "$CC"; then
2059   { echo "$as_me:$LINENO: result: $CC" >&5
2060 echo "${ECHO_T}$CC" >&6; }
2061 else
2062   { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2064 fi
2065
2066
2067   fi
2068 fi
2069 if test -z "$CC"; then
2070   # Extract the first word of "cc", so it can be a program name with args.
2071 set dummy cc; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_prog_CC+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   if test -n "$CC"; then
2078   ac_cv_prog_CC="$CC" # Let the user override the test.
2079 else
2080   ac_prog_rejected=no
2081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 for as_dir in $PATH
2083 do
2084   IFS=$as_save_IFS
2085   test -z "$as_dir" && as_dir=.
2086   for ac_exec_ext in '' $ac_executable_extensions; do
2087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2088     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2089        ac_prog_rejected=yes
2090        continue
2091      fi
2092     ac_cv_prog_CC="cc"
2093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094     break 2
2095   fi
2096 done
2097 done
2098 IFS=$as_save_IFS
2099
2100 if test $ac_prog_rejected = yes; then
2101   # We found a bogon in the path, so make sure we never use it.
2102   set dummy $ac_cv_prog_CC
2103   shift
2104   if test $# != 0; then
2105     # We chose a different compiler from the bogus one.
2106     # However, it has the same basename, so the bogon will be chosen
2107     # first if we set CC to just the basename; use the full file name.
2108     shift
2109     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2110   fi
2111 fi
2112 fi
2113 fi
2114 CC=$ac_cv_prog_CC
2115 if test -n "$CC"; then
2116   { echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6; }
2118 else
2119   { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2121 fi
2122
2123
2124 fi
2125 if test -z "$CC"; then
2126   if test -n "$ac_tool_prefix"; then
2127   for ac_prog in cl.exe
2128   do
2129     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$CC"; then
2137   ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2146     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152 IFS=$as_save_IFS
2153
2154 fi
2155 fi
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158   { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2160 else
2161   { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2163 fi
2164
2165
2166     test -n "$CC" && break
2167   done
2168 fi
2169 if test -z "$CC"; then
2170   ac_ct_CC=$CC
2171   for ac_prog in cl.exe
2172 do
2173   # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   if test -n "$ac_ct_CC"; then
2181   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2182 else
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2185 do
2186   IFS=$as_save_IFS
2187   test -z "$as_dir" && as_dir=.
2188   for ac_exec_ext in '' $ac_executable_extensions; do
2189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2190     ac_cv_prog_ac_ct_CC="$ac_prog"
2191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192     break 2
2193   fi
2194 done
2195 done
2196 IFS=$as_save_IFS
2197
2198 fi
2199 fi
2200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2201 if test -n "$ac_ct_CC"; then
2202   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2203 echo "${ECHO_T}$ac_ct_CC" >&6; }
2204 else
2205   { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2207 fi
2208
2209
2210   test -n "$ac_ct_CC" && break
2211 done
2212
2213   if test "x$ac_ct_CC" = x; then
2214     CC=""
2215   else
2216     case $cross_compiling:$ac_tool_warned in
2217 yes:)
2218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2219 whose name does not start with the host triplet.  If you think this
2220 configuration is useful to you, please write to autoconf@gnu.org." >&5
2221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2222 whose name does not start with the host triplet.  If you think this
2223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2224 ac_tool_warned=yes ;;
2225 esac
2226     CC=$ac_ct_CC
2227   fi
2228 fi
2229
2230 fi
2231
2232
2233 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: no acceptable C compiler found in \$PATH
2236 See \`config.log' for more details." >&2;}
2237    { (exit 1); exit 1; }; }
2238
2239 # Provide some information about the compiler.
2240 echo "$as_me:$LINENO: checking for C compiler version" >&5
2241 ac_compiler=`set X $ac_compile; echo $2`
2242 { (ac_try="$ac_compiler --version >&5"
2243 case "(($ac_try" in
2244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245   *) ac_try_echo=$ac_try;;
2246 esac
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248   (eval "$ac_compiler --version >&5") 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }
2252 { (ac_try="$ac_compiler -v >&5"
2253 case "(($ac_try" in
2254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255   *) ac_try_echo=$ac_try;;
2256 esac
2257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2258   (eval "$ac_compiler -v >&5") 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }
2262 { (ac_try="$ac_compiler -V >&5"
2263 case "(($ac_try" in
2264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265   *) ac_try_echo=$ac_try;;
2266 esac
2267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2268   (eval "$ac_compiler -V >&5") 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }
2272
2273 cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h.  */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h.  */
2279
2280 int
2281 main ()
2282 {
2283
2284   ;
2285   return 0;
2286 }
2287 _ACEOF
2288 ac_clean_files_save=$ac_clean_files
2289 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2290 # Try to create an executable without -o first, disregard a.out.
2291 # It will help us diagnose broken compilers, and finding out an intuition
2292 # of exeext.
2293 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2294 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2295 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2296 #
2297 # List of possible output files, starting from the most likely.
2298 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2299 # only as a last resort.  b.out is created by i960 compilers.
2300 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2301 #
2302 # The IRIX 6 linker writes into existing files which may not be
2303 # executable, retaining their permissions.  Remove them first so a
2304 # subsequent execution test works.
2305 ac_rmfiles=
2306 for ac_file in $ac_files
2307 do
2308   case $ac_file in
2309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2310     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2311   esac
2312 done
2313 rm -f $ac_rmfiles
2314
2315 if { (ac_try="$ac_link_default"
2316 case "(($ac_try" in
2317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318   *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321   (eval "$ac_link_default") 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; then
2325   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2327 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2328 # so that the user can short-circuit this test for compilers unknown to
2329 # Autoconf.
2330 for ac_file in $ac_files
2331 do
2332   test -f "$ac_file" || continue
2333   case $ac_file in
2334     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2335         ;;
2336     [ab].out )
2337         # We found the default executable, but exeext='' is most
2338         # certainly right.
2339         break;;
2340     *.* )
2341         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2342         then :; else
2343            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2344         fi
2345         # We set ac_cv_exeext here because the later test for it is not
2346         # safe: cross compilers may not add the suffix if given an `-o'
2347         # argument, so we may need to know it at that point already.
2348         # Even if this section looks crufty: it has the advantage of
2349         # actually working.
2350         break;;
2351     * )
2352         break;;
2353   esac
2354 done
2355 test "$ac_cv_exeext" = no && ac_cv_exeext=
2356
2357 else
2358   echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2362 See \`config.log' for more details." >&5
2363 echo "$as_me: error: C compiler cannot create executables
2364 See \`config.log' for more details." >&2;}
2365    { (exit 77); exit 77; }; }
2366 fi
2367
2368 ac_exeext=$ac_cv_exeext
2369 { echo "$as_me:$LINENO: result: $ac_file" >&5
2370 echo "${ECHO_T}$ac_file" >&6; }
2371
2372 # Check that the compiler produces executables we can run.  If not, either
2373 # the compiler is broken, or we cross compile.
2374 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2375 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2376 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2377 # If not cross compiling, check that we can run a simple program.
2378 if test "$cross_compiling" != yes; then
2379   if { ac_try='./$ac_file'
2380   { (case "(($ac_try" in
2381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382   *) ac_try_echo=$ac_try;;
2383 esac
2384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385   (eval "$ac_try") 2>&5
2386   ac_status=$?
2387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388   (exit $ac_status); }; }; then
2389     cross_compiling=no
2390   else
2391     if test "$cross_compiling" = maybe; then
2392         cross_compiling=yes
2393     else
2394         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2395 If you meant to cross compile, use \`--host'.
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: cannot run C compiled programs.
2398 If you meant to cross compile, use \`--host'.
2399 See \`config.log' for more details." >&2;}
2400    { (exit 1); exit 1; }; }
2401     fi
2402   fi
2403 fi
2404 { echo "$as_me:$LINENO: result: yes" >&5
2405 echo "${ECHO_T}yes" >&6; }
2406
2407 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2408 ac_clean_files=$ac_clean_files_save
2409 # Check that the compiler produces executables we can run.  If not, either
2410 # the compiler is broken, or we cross compile.
2411 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2412 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2413 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2414 echo "${ECHO_T}$cross_compiling" >&6; }
2415
2416 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2417 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2418 if { (ac_try="$ac_link"
2419 case "(($ac_try" in
2420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421   *) ac_try_echo=$ac_try;;
2422 esac
2423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2424   (eval "$ac_link") 2>&5
2425   ac_status=$?
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); }; then
2428   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2429 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2430 # work properly (i.e., refer to `conftest.exe'), while it won't with
2431 # `rm'.
2432 for ac_file in conftest.exe conftest conftest.*; do
2433   test -f "$ac_file" || continue
2434   case $ac_file in
2435     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2436     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2437           break;;
2438     * ) break;;
2439   esac
2440 done
2441 else
2442   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2443 See \`config.log' for more details." >&5
2444 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2445 See \`config.log' for more details." >&2;}
2446    { (exit 1); exit 1; }; }
2447 fi
2448
2449 rm -f conftest$ac_cv_exeext
2450 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2451 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2452
2453 rm -f conftest.$ac_ext
2454 EXEEXT=$ac_cv_exeext
2455 ac_exeext=$EXEEXT
2456 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2457 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2458 if test "${ac_cv_objext+set}" = set; then
2459   echo $ECHO_N "(cached) $ECHO_C" >&6
2460 else
2461   cat >conftest.$ac_ext <<_ACEOF
2462 /* confdefs.h.  */
2463 _ACEOF
2464 cat confdefs.h >>conftest.$ac_ext
2465 cat >>conftest.$ac_ext <<_ACEOF
2466 /* end confdefs.h.  */
2467
2468 int
2469 main ()
2470 {
2471
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 rm -f conftest.o conftest.obj
2477 if { (ac_try="$ac_compile"
2478 case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483   (eval "$ac_compile") 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; then
2487   for ac_file in conftest.o conftest.obj conftest.*; do
2488   test -f "$ac_file" || continue;
2489   case $ac_file in
2490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2491     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2492        break;;
2493   esac
2494 done
2495 else
2496   echo "$as_me: failed program was:" >&5
2497 sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2500 See \`config.log' for more details." >&5
2501 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2502 See \`config.log' for more details." >&2;}
2503    { (exit 1); exit 1; }; }
2504 fi
2505
2506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2507 fi
2508 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2509 echo "${ECHO_T}$ac_cv_objext" >&6; }
2510 OBJEXT=$ac_cv_objext
2511 ac_objext=$OBJEXT
2512 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2513 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2514 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   cat >conftest.$ac_ext <<_ACEOF
2518 /* confdefs.h.  */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h.  */
2523
2524 int
2525 main ()
2526 {
2527 #ifndef __GNUC__
2528        choke me
2529 #endif
2530
2531   ;
2532   return 0;
2533 }
2534 _ACEOF
2535 rm -f conftest.$ac_objext
2536 if { (ac_try="$ac_compile"
2537 case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_compile") 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550   { (case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555   (eval "$ac_try") 2>&5
2556   ac_status=$?
2557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558   (exit $ac_status); }; } &&
2559          { ac_try='test -s conftest.$ac_objext'
2560   { (case "(($ac_try" in
2561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562   *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565   (eval "$ac_try") 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }; }; then
2569   ac_compiler_gnu=yes
2570 else
2571   echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574         ac_compiler_gnu=no
2575 fi
2576
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2579
2580 fi
2581 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2582 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2583 GCC=`test $ac_compiler_gnu = yes && echo yes`
2584 ac_test_CFLAGS=${CFLAGS+set}
2585 ac_save_CFLAGS=$CFLAGS
2586 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2587 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_cc_g+set}" = set; then
2589   echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591   ac_save_c_werror_flag=$ac_c_werror_flag
2592    ac_c_werror_flag=yes
2593    ac_cv_prog_cc_g=no
2594    CFLAGS="-g"
2595    cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h.  */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h.  */
2601
2602 int
2603 main ()
2604 {
2605
2606   ;
2607   return 0;
2608 }
2609 _ACEOF
2610 rm -f conftest.$ac_objext
2611 if { (ac_try="$ac_compile"
2612 case "(($ac_try" in
2613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614   *) ac_try_echo=$ac_try;;
2615 esac
2616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2617   (eval "$ac_compile") 2>conftest.er1
2618   ac_status=$?
2619   grep -v '^ *+' conftest.er1 >conftest.err
2620   rm -f conftest.er1
2621   cat conftest.err >&5
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); } &&
2624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2625   { (case "(($ac_try" in
2626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627   *) ac_try_echo=$ac_try;;
2628 esac
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630   (eval "$ac_try") 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; } &&
2634          { ac_try='test -s conftest.$ac_objext'
2635   { (case "(($ac_try" in
2636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637   *) ac_try_echo=$ac_try;;
2638 esac
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640   (eval "$ac_try") 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); }; }; then
2644   ac_cv_prog_cc_g=yes
2645 else
2646   echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2648
2649         CFLAGS=""
2650       cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656
2657 int
2658 main ()
2659 {
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (ac_try="$ac_compile"
2667 case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672   (eval "$ac_compile") 2>conftest.er1
2673   ac_status=$?
2674   grep -v '^ *+' conftest.er1 >conftest.err
2675   rm -f conftest.er1
2676   cat conftest.err >&5
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); } &&
2679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2680   { (case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685   (eval "$ac_try") 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }; } &&
2689          { ac_try='test -s conftest.$ac_objext'
2690   { (case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695   (eval "$ac_try") 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); }; }; then
2699   :
2700 else
2701   echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2703
2704         ac_c_werror_flag=$ac_save_c_werror_flag
2705          CFLAGS="-g"
2706          cat >conftest.$ac_ext <<_ACEOF
2707 /* confdefs.h.  */
2708 _ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h.  */
2712
2713 int
2714 main ()
2715 {
2716
2717   ;
2718   return 0;
2719 }
2720 _ACEOF
2721 rm -f conftest.$ac_objext
2722 if { (ac_try="$ac_compile"
2723 case "(($ac_try" in
2724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725   *) ac_try_echo=$ac_try;;
2726 esac
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728   (eval "$ac_compile") 2>conftest.er1
2729   ac_status=$?
2730   grep -v '^ *+' conftest.er1 >conftest.err
2731   rm -f conftest.er1
2732   cat conftest.err >&5
2733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734   (exit $ac_status); } &&
2735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2736   { (case "(($ac_try" in
2737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738   *) ac_try_echo=$ac_try;;
2739 esac
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741   (eval "$ac_try") 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; } &&
2745          { ac_try='test -s conftest.$ac_objext'
2746   { (case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_try") 2>&5
2752   ac_status=$?
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); }; }; then
2755   ac_cv_prog_cc_g=yes
2756 else
2757   echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760
2761 fi
2762
2763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2764 fi
2765
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 fi
2768
2769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770    ac_c_werror_flag=$ac_save_c_werror_flag
2771 fi
2772 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2773 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2774 if test "$ac_test_CFLAGS" = set; then
2775   CFLAGS=$ac_save_CFLAGS
2776 elif test $ac_cv_prog_cc_g = yes; then
2777   if test "$GCC" = yes; then
2778     CFLAGS="-g -O2"
2779   else
2780     CFLAGS="-g"
2781   fi
2782 else
2783   if test "$GCC" = yes; then
2784     CFLAGS="-O2"
2785   else
2786     CFLAGS=
2787   fi
2788 fi
2789 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2790 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2791 if test "${ac_cv_prog_cc_c89+set}" = set; then
2792   echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794   ac_cv_prog_cc_c89=no
2795 ac_save_CC=$CC
2796 cat >conftest.$ac_ext <<_ACEOF
2797 /* confdefs.h.  */
2798 _ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h.  */
2802 #include <stdarg.h>
2803 #include <stdio.h>
2804 #include <sys/types.h>
2805 #include <sys/stat.h>
2806 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2807 struct buf { int x; };
2808 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2809 static char *e (p, i)
2810      char **p;
2811      int i;
2812 {
2813   return p[i];
2814 }
2815 static char *f (char * (*g) (char **, int), char **p, ...)
2816 {
2817   char *s;
2818   va_list v;
2819   va_start (v,p);
2820   s = g (p, va_arg (v,int));
2821   va_end (v);
2822   return s;
2823 }
2824
2825 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2826    function prototypes and stuff, but not '\xHH' hex character constants.
2827    These don't provoke an error unfortunately, instead are silently treated
2828    as 'x'.  The following induces an error, until -std is added to get
2829    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2830    array size at least.  It's necessary to write '\x00'==0 to get something
2831    that's true only with -std.  */
2832 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2833
2834 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2835    inside strings and character constants.  */
2836 #define FOO(x) 'x'
2837 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2838
2839 int test (int i, double x);
2840 struct s1 {int (*f) (int a);};
2841 struct s2 {int (*f) (double a);};
2842 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2843 int argc;
2844 char **argv;
2845 int
2846 main ()
2847 {
2848 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2854         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2855 do
2856   CC="$ac_save_CC $ac_arg"
2857   rm -f conftest.$ac_objext
2858 if { (ac_try="$ac_compile"
2859 case "(($ac_try" in
2860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861   *) ac_try_echo=$ac_try;;
2862 esac
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864   (eval "$ac_compile") 2>conftest.er1
2865   ac_status=$?
2866   grep -v '^ *+' conftest.er1 >conftest.err
2867   rm -f conftest.er1
2868   cat conftest.err >&5
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); } &&
2871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2872   { (case "(($ac_try" in
2873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874   *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877   (eval "$ac_try") 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); }; } &&
2881          { ac_try='test -s conftest.$ac_objext'
2882   { (case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887   (eval "$ac_try") 2>&5
2888   ac_status=$?
2889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890   (exit $ac_status); }; }; then
2891   ac_cv_prog_cc_c89=$ac_arg
2892 else
2893   echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896
2897 fi
2898
2899 rm -f core conftest.err conftest.$ac_objext
2900   test "x$ac_cv_prog_cc_c89" != "xno" && break
2901 done
2902 rm -f conftest.$ac_ext
2903 CC=$ac_save_CC
2904
2905 fi
2906 # AC_CACHE_VAL
2907 case "x$ac_cv_prog_cc_c89" in
2908   x)
2909     { echo "$as_me:$LINENO: result: none needed" >&5
2910 echo "${ECHO_T}none needed" >&6; } ;;
2911   xno)
2912     { echo "$as_me:$LINENO: result: unsupported" >&5
2913 echo "${ECHO_T}unsupported" >&6; } ;;
2914   *)
2915     CC="$CC $ac_cv_prog_cc_c89"
2916     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2918 esac
2919
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926
2927 ac_ext=cpp
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 if test -z "$CXX"; then
2933   if test -n "$CCC"; then
2934     CXX=$CCC
2935   else
2936     if test -n "$ac_tool_prefix"; then
2937   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2938   do
2939     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CXX+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   if test -n "$CXX"; then
2947   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954   for ac_exec_ext in '' $ac_executable_extensions; do
2955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2956     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CXX=$ac_cv_prog_CXX
2967 if test -n "$CXX"; then
2968   { echo "$as_me:$LINENO: result: $CXX" >&5
2969 echo "${ECHO_T}$CXX" >&6; }
2970 else
2971   { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2973 fi
2974
2975
2976     test -n "$CXX" && break
2977   done
2978 fi
2979 if test -z "$CXX"; then
2980   ac_ct_CXX=$CXX
2981   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2982 do
2983   # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   if test -n "$ac_ct_CXX"; then
2991   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996   IFS=$as_save_IFS
2997   test -z "$as_dir" && as_dir=.
2998   for ac_exec_ext in '' $ac_executable_extensions; do
2999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3000     ac_cv_prog_ac_ct_CXX="$ac_prog"
3001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002     break 2
3003   fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3011 if test -n "$ac_ct_CXX"; then
3012   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3013 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3014 else
3015   { echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6; }
3017 fi
3018
3019
3020   test -n "$ac_ct_CXX" && break
3021 done
3022
3023   if test "x$ac_ct_CXX" = x; then
3024     CXX="g++"
3025   else
3026     case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet.  If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet.  If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036     CXX=$ac_ct_CXX
3037   fi
3038 fi
3039
3040   fi
3041 fi
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compiler --version >&5") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compiler -v >&5") 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compiler -V >&5") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }
3075
3076 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3078 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087
3088 int
3089 main ()
3090 {
3091 #ifndef __GNUC__
3092        choke me
3093 #endif
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } &&
3113          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3114   { (case "(($ac_try" in
3115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116   *) ac_try_echo=$ac_try;;
3117 esac
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119   (eval "$ac_try") 2>&5
3120   ac_status=$?
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); }; } &&
3123          { ac_try='test -s conftest.$ac_objext'
3124   { (case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_try") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }; }; then
3133   ac_compiler_gnu=yes
3134 else
3135   echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3137
3138         ac_compiler_gnu=no
3139 fi
3140
3141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3143
3144 fi
3145 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3146 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3147 GXX=`test $ac_compiler_gnu = yes && echo yes`
3148 ac_test_CXXFLAGS=${CXXFLAGS+set}
3149 ac_save_CXXFLAGS=$CXXFLAGS
3150 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3151 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3152 if test "${ac_cv_prog_cxx_g+set}" = set; then
3153   echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3156    ac_cxx_werror_flag=yes
3157    ac_cv_prog_cxx_g=no
3158    CXXFLAGS="-g"
3159    cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } &&
3188          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3189   { (case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_try") 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; } &&
3198          { ac_try='test -s conftest.$ac_objext'
3199   { (case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_try") 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; }; then
3208   ac_cv_prog_cxx_g=yes
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213         CXXFLAGS=""
3214       cat >conftest.$ac_ext <<_ACEOF
3215 /* confdefs.h.  */
3216 _ACEOF
3217 cat confdefs.h >>conftest.$ac_ext
3218 cat >>conftest.$ac_ext <<_ACEOF
3219 /* end confdefs.h.  */
3220
3221 int
3222 main ()
3223 {
3224
3225   ;
3226   return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_compile") 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3244   { (case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249   (eval "$ac_try") 2>&5
3250   ac_status=$?
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }; } &&
3253          { ac_try='test -s conftest.$ac_objext'
3254   { (case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259   (eval "$ac_try") 2>&5
3260   ac_status=$?
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); }; }; then
3263   :
3264 else
3265   echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3269          CXXFLAGS="-g"
3270          cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276
3277 int
3278 main ()
3279 {
3280
3281   ;
3282   return 0;
3283 }
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292   (eval "$ac_compile") 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } &&
3299          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3300   { (case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305   (eval "$ac_try") 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; } &&
3309          { ac_try='test -s conftest.$ac_objext'
3310   { (case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315   (eval "$ac_try") 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; }; then
3319   ac_cv_prog_cxx_g=yes
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3323
3324
3325 fi
3326
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 fi
3329
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 fi
3332
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3335 fi
3336 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3337 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3338 if test "$ac_test_CXXFLAGS" = set; then
3339   CXXFLAGS=$ac_save_CXXFLAGS
3340 elif test $ac_cv_prog_cxx_g = yes; then
3341   if test "$GXX" = yes; then
3342     CXXFLAGS="-g -O2"
3343   else
3344     CXXFLAGS="-g"
3345   fi
3346 else
3347   if test "$GXX" = yes; then
3348     CXXFLAGS="-O2"
3349   else
3350     CXXFLAGS=
3351   fi
3352 fi
3353 ac_ext=c
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358
3359
3360
3361 ac_ext=c
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3366 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3370   CPP=
3371 fi
3372 if test -z "$CPP"; then
3373   if test "${ac_cv_prog_CPP+set}" = set; then
3374   echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376       # Double quotes because CPP needs to be expanded
3377     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3378     do
3379       ac_preproc_ok=false
3380 for ac_c_preproc_warn_flag in '' yes
3381 do
3382   # Use a header file that comes with gcc, so configuring glibc
3383   # with a fresh cross-compiler works.
3384   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385   # <limits.h> exists even on freestanding compilers.
3386   # On the NeXT, cc -E runs the code through the compiler's parser,
3387   # not just through cpp. "Syntax error" is here to catch this case.
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #ifdef __STDC__
3395 # include <limits.h>
3396 #else
3397 # include <assert.h>
3398 #endif
3399                      Syntax error
3400 _ACEOF
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } >/dev/null; then
3414   if test -s conftest.err; then
3415     ac_cpp_err=$ac_c_preproc_warn_flag
3416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417   else
3418     ac_cpp_err=
3419   fi
3420 else
3421   ac_cpp_err=yes
3422 fi
3423 if test -z "$ac_cpp_err"; then
3424   :
3425 else
3426   echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3428
3429   # Broken: fails on valid input.
3430 continue
3431 fi
3432
3433 rm -f conftest.err conftest.$ac_ext
3434
3435   # OK, works on sane cases.  Now check whether nonexistent headers
3436   # can be detected and how.
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443 #include <ac_nonexistent.h>
3444 _ACEOF
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } >/dev/null; then
3458   if test -s conftest.err; then
3459     ac_cpp_err=$ac_c_preproc_warn_flag
3460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3461   else
3462     ac_cpp_err=
3463   fi
3464 else
3465   ac_cpp_err=yes
3466 fi
3467 if test -z "$ac_cpp_err"; then
3468   # Broken: success on invalid input.
3469 continue
3470 else
3471   echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3473
3474   # Passes both tests.
3475 ac_preproc_ok=:
3476 break
3477 fi
3478
3479 rm -f conftest.err conftest.$ac_ext
3480
3481 done
3482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3483 rm -f conftest.err conftest.$ac_ext
3484 if $ac_preproc_ok; then
3485   break
3486 fi
3487
3488     done
3489     ac_cv_prog_CPP=$CPP
3490
3491 fi
3492   CPP=$ac_cv_prog_CPP
3493 else
3494   ac_cv_prog_CPP=$CPP
3495 fi
3496 { echo "$as_me:$LINENO: result: $CPP" >&5
3497 echo "${ECHO_T}$CPP" >&6; }
3498 ac_preproc_ok=false
3499 for ac_c_preproc_warn_flag in '' yes
3500 do
3501   # Use a header file that comes with gcc, so configuring glibc
3502   # with a fresh cross-compiler works.
3503   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3504   # <limits.h> exists even on freestanding compilers.
3505   # On the NeXT, cc -E runs the code through the compiler's parser,
3506   # not just through cpp. "Syntax error" is here to catch this case.
3507   cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 #ifdef __STDC__
3514 # include <limits.h>
3515 #else
3516 # include <assert.h>
3517 #endif
3518                      Syntax error
3519 _ACEOF
3520 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 case "(($ac_try" in
3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523   *) ac_try_echo=$ac_try;;
3524 esac
3525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527   ac_status=$?
3528   grep -v '^ *+' conftest.er1 >conftest.err
3529   rm -f conftest.er1
3530   cat conftest.err >&5
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); } >/dev/null; then
3533   if test -s conftest.err; then
3534     ac_cpp_err=$ac_c_preproc_warn_flag
3535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3536   else
3537     ac_cpp_err=
3538   fi
3539 else
3540   ac_cpp_err=yes
3541 fi
3542 if test -z "$ac_cpp_err"; then
3543   :
3544 else
3545   echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3547
3548   # Broken: fails on valid input.
3549 continue
3550 fi
3551
3552 rm -f conftest.err conftest.$ac_ext
3553
3554   # OK, works on sane cases.  Now check whether nonexistent headers
3555   # can be detected and how.
3556   cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h.  */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h.  */
3562 #include <ac_nonexistent.h>
3563 _ACEOF
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } >/dev/null; then
3577   if test -s conftest.err; then
3578     ac_cpp_err=$ac_c_preproc_warn_flag
3579     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3580   else
3581     ac_cpp_err=
3582   fi
3583 else
3584   ac_cpp_err=yes
3585 fi
3586 if test -z "$ac_cpp_err"; then
3587   # Broken: success on invalid input.
3588 continue
3589 else
3590   echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3592
3593   # Passes both tests.
3594 ac_preproc_ok=:
3595 break
3596 fi
3597
3598 rm -f conftest.err conftest.$ac_ext
3599
3600 done
3601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3602 rm -f conftest.err conftest.$ac_ext
3603 if $ac_preproc_ok; then
3604   :
3605 else
3606   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3607 See \`config.log' for more details." >&5
3608 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3609 See \`config.log' for more details." >&2;}
3610    { (exit 1); exit 1; }; }
3611 fi
3612
3613 ac_ext=c
3614 ac_cpp='$CPP $CPPFLAGS'
3615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3618
3619
3620 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3621 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3622 if test "${ac_cv_path_GREP+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   # Extract the first word of "grep ggrep" to use in msg output
3626 if test -z "$GREP"; then
3627 set dummy grep ggrep; ac_prog_name=$2
3628 if test "${ac_cv_path_GREP+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   ac_path_GREP_found=false
3632 # Loop through the user's path and test for each of PROGNAME-LIST
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3635 do
3636   IFS=$as_save_IFS
3637   test -z "$as_dir" && as_dir=.
3638   for ac_prog in grep ggrep; do
3639   for ac_exec_ext in '' $ac_executable_extensions; do
3640     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3641     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3642     # Check for GNU ac_path_GREP and select it if it is found.
3643   # Check for GNU $ac_path_GREP
3644 case `"$ac_path_GREP" --version 2>&1` in
3645 *GNU*)
3646   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3647 *)
3648   ac_count=0
3649   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3650   while :
3651   do
3652     cat "conftest.in" "conftest.in" >"conftest.tmp"
3653     mv "conftest.tmp" "conftest.in"
3654     cp "conftest.in" "conftest.nl"
3655     echo 'GREP' >> "conftest.nl"
3656     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3657     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3658     ac_count=`expr $ac_count + 1`
3659     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3660       # Best one so far, save it but keep looking for a better one
3661       ac_cv_path_GREP="$ac_path_GREP"
3662       ac_path_GREP_max=$ac_count
3663     fi
3664     # 10*(2^10) chars as input seems more than enough
3665     test $ac_count -gt 10 && break
3666   done
3667   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3668 esac
3669
3670
3671     $ac_path_GREP_found && break 3
3672   done
3673 done
3674
3675 done
3676 IFS=$as_save_IFS
3677
3678
3679 fi
3680
3681 GREP="$ac_cv_path_GREP"
3682 if test -z "$GREP"; then
3683   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3684 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3685    { (exit 1); exit 1; }; }
3686 fi
3687
3688 else
3689   ac_cv_path_GREP=$GREP
3690 fi
3691
3692
3693 fi
3694 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3695 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3696  GREP="$ac_cv_path_GREP"
3697
3698
3699 { echo "$as_me:$LINENO: checking for egrep" >&5
3700 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3701 if test "${ac_cv_path_EGREP+set}" = set; then
3702   echo $ECHO_N "(cached) $ECHO_C" >&6
3703 else
3704   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3705    then ac_cv_path_EGREP="$GREP -E"
3706    else
3707      # Extract the first word of "egrep" to use in msg output
3708 if test -z "$EGREP"; then
3709 set dummy egrep; ac_prog_name=$2
3710 if test "${ac_cv_path_EGREP+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   ac_path_EGREP_found=false
3714 # Loop through the user's path and test for each of PROGNAME-LIST
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3717 do
3718   IFS=$as_save_IFS
3719   test -z "$as_dir" && as_dir=.
3720   for ac_prog in egrep; do
3721   for ac_exec_ext in '' $ac_executable_extensions; do
3722     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3723     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3724     # Check for GNU ac_path_EGREP and select it if it is found.
3725   # Check for GNU $ac_path_EGREP
3726 case `"$ac_path_EGREP" --version 2>&1` in
3727 *GNU*)
3728   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3729 *)
3730   ac_count=0
3731   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3732   while :
3733   do
3734     cat "conftest.in" "conftest.in" >"conftest.tmp"
3735     mv "conftest.tmp" "conftest.in"
3736     cp "conftest.in" "conftest.nl"
3737     echo 'EGREP' >> "conftest.nl"
3738     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3739     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3740     ac_count=`expr $ac_count + 1`
3741     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3742       # Best one so far, save it but keep looking for a better one
3743       ac_cv_path_EGREP="$ac_path_EGREP"
3744       ac_path_EGREP_max=$ac_count
3745     fi
3746     # 10*(2^10) chars as input seems more than enough
3747     test $ac_count -gt 10 && break
3748   done
3749   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3750 esac
3751
3752
3753     $ac_path_EGREP_found && break 3
3754   done
3755 done
3756
3757 done
3758 IFS=$as_save_IFS
3759
3760
3761 fi
3762
3763 EGREP="$ac_cv_path_EGREP"
3764 if test -z "$EGREP"; then
3765   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3766 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3767    { (exit 1); exit 1; }; }
3768 fi
3769
3770 else
3771   ac_cv_path_EGREP=$EGREP
3772 fi
3773
3774
3775    fi
3776 fi
3777 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3778 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3779  EGREP="$ac_cv_path_EGREP"
3780
3781
3782
3783 { echo "$as_me:$LINENO: checking for AIX" >&5
3784 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3785 cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791 #ifdef _AIX
3792   yes
3793 #endif
3794
3795 _ACEOF
3796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3797   $EGREP "yes" >/dev/null 2>&1; then
3798   { echo "$as_me:$LINENO: result: yes" >&5
3799 echo "${ECHO_T}yes" >&6; }
3800 cat >>confdefs.h <<\_ACEOF
3801 #define _ALL_SOURCE 1
3802 _ACEOF
3803
3804 else
3805   { echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6; }
3807 fi
3808 rm -f conftest*
3809
3810
3811
3812 if test $ac_cv_c_compiler_gnu = yes; then
3813     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3814 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3815 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3816   echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818     ac_pattern="Autoconf.*'x'"
3819   cat >conftest.$ac_ext <<_ACEOF
3820 /* confdefs.h.  */
3821 _ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h.  */
3825 #include <sgtty.h>
3826 Autoconf TIOCGETP
3827 _ACEOF
3828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3830   ac_cv_prog_gcc_traditional=yes
3831 else
3832   ac_cv_prog_gcc_traditional=no
3833 fi
3834 rm -f conftest*
3835
3836
3837   if test $ac_cv_prog_gcc_traditional = no; then
3838     cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #include <termio.h>
3845 Autoconf TCGETA
3846 _ACEOF
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3849   ac_cv_prog_gcc_traditional=yes
3850 fi
3851 rm -f conftest*
3852
3853   fi
3854 fi
3855 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3856 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3857   if test $ac_cv_prog_gcc_traditional = yes; then
3858     CC="$CC -traditional"
3859   fi
3860 fi
3861
3862 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3863 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3864 if test "${ac_cv_prog_suncc+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   cat > conftest.c <<EOF
3868 #ifdef __SUNPRO_C
3869   yes;
3870 #endif
3871 EOF
3872 if { ac_try='${CC-cc} -E conftest.c'
3873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874   (eval $ac_try) 2>&5
3875   ac_status=$?
3876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3878   ac_cv_prog_suncc=yes
3879 else
3880   ac_cv_prog_suncc=no
3881 fi
3882 fi
3883 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3884 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3885 if test -n "$ac_tool_prefix"; then
3886   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3887 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3890 if test "${ac_cv_prog_RANLIB+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   if test -n "$RANLIB"; then
3894   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3895 else
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH
3898 do
3899   IFS=$as_save_IFS
3900   test -z "$as_dir" && as_dir=.
3901   for ac_exec_ext in '' $ac_executable_extensions; do
3902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3903     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905     break 2
3906   fi
3907 done
3908 done
3909 IFS=$as_save_IFS
3910
3911 fi
3912 fi
3913 RANLIB=$ac_cv_prog_RANLIB
3914 if test -n "$RANLIB"; then
3915   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3916 echo "${ECHO_T}$RANLIB" >&6; }
3917 else
3918   { echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6; }
3920 fi
3921
3922
3923 fi
3924 if test -z "$ac_cv_prog_RANLIB"; then
3925   ac_ct_RANLIB=$RANLIB
3926   # Extract the first word of "ranlib", so it can be a program name with args.
3927 set dummy ranlib; ac_word=$2
3928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3930 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   if test -n "$ac_ct_RANLIB"; then
3934   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3938 do
3939   IFS=$as_save_IFS
3940   test -z "$as_dir" && as_dir=.
3941   for ac_exec_ext in '' $ac_executable_extensions; do
3942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3943     ac_cv_prog_ac_ct_RANLIB="ranlib"
3944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948 done
3949 IFS=$as_save_IFS
3950
3951 fi
3952 fi
3953 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3954 if test -n "$ac_ct_RANLIB"; then
3955   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3956 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3957 else
3958   { echo "$as_me:$LINENO: result: no" >&5
3959 echo "${ECHO_T}no" >&6; }
3960 fi
3961
3962   if test "x$ac_ct_RANLIB" = x; then
3963     RANLIB=":"
3964   else
3965     case $cross_compiling:$ac_tool_warned in
3966 yes:)
3967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3968 whose name does not start with the host triplet.  If you think this
3969 configuration is useful to you, please write to autoconf@gnu.org." >&5
3970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3971 whose name does not start with the host triplet.  If you think this
3972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3973 ac_tool_warned=yes ;;
3974 esac
3975     RANLIB=$ac_ct_RANLIB
3976   fi
3977 else
3978   RANLIB="$ac_cv_prog_RANLIB"
3979 fi
3980
3981
3982 # Check whether --enable-largefile was given.
3983 if test "${enable_largefile+set}" = set; then
3984   enableval=$enable_largefile;
3985 fi
3986
3987 if test "$enable_largefile" != no; then
3988
3989   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3990 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3991 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   ac_cv_sys_largefile_CC=no
3995      if test "$GCC" != yes; then
3996        ac_save_CC=$CC
3997        while :; do
3998          # IRIX 6.2 and later do not support large files by default,
3999          # so use the C compiler's -n32 option if that helps.
4000          cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h.  */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h.  */
4006 #include <sys/types.h>
4007  /* Check that off_t can represent 2**63 - 1 correctly.
4008     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4009     since some C++ compilers masquerading as C compilers
4010     incorrectly reject 9223372036854775807.  */
4011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4012   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4013                        && LARGE_OFF_T % 2147483647 == 1)
4014                       ? 1 : -1];
4015 int
4016 main ()
4017 {
4018
4019   ;
4020   return 0;
4021 }
4022 _ACEOF
4023          rm -f conftest.$ac_objext
4024 if { (ac_try="$ac_compile"
4025 case "(($ac_try" in
4026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4027   *) ac_try_echo=$ac_try;;
4028 esac
4029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4030   (eval "$ac_compile") 2>conftest.er1
4031   ac_status=$?
4032   grep -v '^ *+' conftest.er1 >conftest.err
4033   rm -f conftest.er1
4034   cat conftest.err >&5
4035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036   (exit $ac_status); } &&
4037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4038   { (case "(($ac_try" in
4039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040   *) ac_try_echo=$ac_try;;
4041 esac
4042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4043   (eval "$ac_try") 2>&5
4044   ac_status=$?
4045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046   (exit $ac_status); }; } &&
4047          { ac_try='test -s conftest.$ac_objext'
4048   { (case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053   (eval "$ac_try") 2>&5
4054   ac_status=$?
4055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056   (exit $ac_status); }; }; then
4057   break
4058 else
4059   echo "$as_me: failed program was:" >&5
4060 sed 's/^/| /' conftest.$ac_ext >&5
4061
4062
4063 fi
4064
4065 rm -f core conftest.err conftest.$ac_objext
4066          CC="$CC -n32"
4067          rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4069 case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074   (eval "$ac_compile") 2>conftest.er1
4075   ac_status=$?
4076   grep -v '^ *+' conftest.er1 >conftest.err
4077   rm -f conftest.er1
4078   cat conftest.err >&5
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } &&
4081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4082   { (case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_try") 2>&5
4088   ac_status=$?
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); }; } &&
4091          { ac_try='test -s conftest.$ac_objext'
4092   { (case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097   (eval "$ac_try") 2>&5
4098   ac_status=$?
4099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100   (exit $ac_status); }; }; then
4101   ac_cv_sys_largefile_CC=' -n32'; break
4102 else
4103   echo "$as_me: failed program was:" >&5
4104 sed 's/^/| /' conftest.$ac_ext >&5
4105
4106
4107 fi
4108
4109 rm -f core conftest.err conftest.$ac_objext
4110          break
4111        done
4112        CC=$ac_save_CC
4113        rm -f conftest.$ac_ext
4114     fi
4115 fi
4116 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4117 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4118   if test "$ac_cv_sys_largefile_CC" != no; then
4119     CC=$CC$ac_cv_sys_largefile_CC
4120   fi
4121
4122   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4123 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4124 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   while :; do
4128   ac_cv_sys_file_offset_bits=no
4129   cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h.  */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h.  */
4135 #include <sys/types.h>
4136  /* Check that off_t can represent 2**63 - 1 correctly.
4137     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4138     since some C++ compilers masquerading as C compilers
4139     incorrectly reject 9223372036854775807.  */
4140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4141   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4142                        && LARGE_OFF_T % 2147483647 == 1)
4143                       ? 1 : -1];
4144 int
4145 main ()
4146 {
4147
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4154 case "(($ac_try" in
4155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156   *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159   (eval "$ac_compile") 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } &&
4166          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4167   { (case "(($ac_try" in
4168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169   *) ac_try_echo=$ac_try;;
4170 esac
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172   (eval "$ac_try") 2>&5
4173   ac_status=$?
4174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); }; } &&
4176          { ac_try='test -s conftest.$ac_objext'
4177   { (case "(($ac_try" in
4178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179   *) ac_try_echo=$ac_try;;
4180 esac
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182   (eval "$ac_try") 2>&5
4183   ac_status=$?
4184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185   (exit $ac_status); }; }; then
4186   break
4187 else
4188   echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191
4192 fi
4193
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195   cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h.  */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h.  */
4201 #define _FILE_OFFSET_BITS 64
4202 #include <sys/types.h>
4203  /* Check that off_t can represent 2**63 - 1 correctly.
4204     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4205     since some C++ compilers masquerading as C compilers
4206     incorrectly reject 9223372036854775807.  */
4207 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4208   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4209                        && LARGE_OFF_T % 2147483647 == 1)
4210                       ? 1 : -1];
4211 int
4212 main ()
4213 {
4214
4215   ;
4216   return 0;
4217 }
4218 _ACEOF
4219 rm -f conftest.$ac_objext
4220 if { (ac_try="$ac_compile"
4221 case "(($ac_try" in
4222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223   *) ac_try_echo=$ac_try;;
4224 esac
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226   (eval "$ac_compile") 2>conftest.er1
4227   ac_status=$?
4228   grep -v '^ *+' conftest.er1 >conftest.err
4229   rm -f conftest.er1
4230   cat conftest.err >&5
4231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232   (exit $ac_status); } &&
4233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4234   { (case "(($ac_try" in
4235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236   *) ac_try_echo=$ac_try;;
4237 esac
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239   (eval "$ac_try") 2>&5
4240   ac_status=$?
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); }; } &&
4243          { ac_try='test -s conftest.$ac_objext'
4244   { (case "(($ac_try" in
4245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246   *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249   (eval "$ac_try") 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; }; then
4253   ac_cv_sys_file_offset_bits=64; break
4254 else
4255   echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258
4259 fi
4260
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262   break
4263 done
4264 fi
4265 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4266 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4267 if test "$ac_cv_sys_file_offset_bits" != no; then
4268
4269 cat >>confdefs.h <<_ACEOF
4270 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4271 _ACEOF
4272
4273 fi
4274 rm -f conftest*
4275   { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4276 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4277 if test "${ac_cv_sys_large_files+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   while :; do
4281   ac_cv_sys_large_files=no
4282   cat >conftest.$ac_ext <<_ACEOF
4283 /* confdefs.h.  */
4284 _ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h.  */
4288 #include <sys/types.h>
4289  /* Check that off_t can represent 2**63 - 1 correctly.
4290     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4291     since some C++ compilers masquerading as C compilers
4292     incorrectly reject 9223372036854775807.  */
4293 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4294   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4295                        && LARGE_OFF_T % 2147483647 == 1)
4296                       ? 1 : -1];
4297 int
4298 main ()
4299 {
4300
4301   ;
4302   return 0;
4303 }
4304 _ACEOF
4305 rm -f conftest.$ac_objext
4306 if { (ac_try="$ac_compile"
4307 case "(($ac_try" in
4308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309   *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312   (eval "$ac_compile") 2>conftest.er1
4313   ac_status=$?
4314   grep -v '^ *+' conftest.er1 >conftest.err
4315   rm -f conftest.er1
4316   cat conftest.err >&5
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); } &&
4319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4320   { (case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_try") 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); }; } &&
4329          { ac_try='test -s conftest.$ac_objext'
4330   { (case "(($ac_try" in
4331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332   *) ac_try_echo=$ac_try;;
4333 esac
4334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335   (eval "$ac_try") 2>&5
4336   ac_status=$?
4337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338   (exit $ac_status); }; }; then
4339   break
4340 else
4341   echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344
4345 fi
4346
4347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348   cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h.  */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h.  */
4354 #define _LARGE_FILES 1
4355 #include <sys/types.h>
4356  /* Check that off_t can represent 2**63 - 1 correctly.
4357     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4358     since some C++ compilers masquerading as C compilers
4359     incorrectly reject 9223372036854775807.  */
4360 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4361   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4362                        && LARGE_OFF_T % 2147483647 == 1)
4363                       ? 1 : -1];
4364 int
4365 main ()
4366 {
4367
4368   ;
4369   return 0;
4370 }
4371 _ACEOF
4372 rm -f conftest.$ac_objext
4373 if { (ac_try="$ac_compile"
4374 case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379   (eval "$ac_compile") 2>conftest.er1
4380   ac_status=$?
4381   grep -v '^ *+' conftest.er1 >conftest.err
4382   rm -f conftest.er1
4383   cat conftest.err >&5
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); } &&
4386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4387   { (case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_try") 2>&5
4393   ac_status=$?
4394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395   (exit $ac_status); }; } &&
4396          { ac_try='test -s conftest.$ac_objext'
4397   { (case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402   (eval "$ac_try") 2>&5
4403   ac_status=$?
4404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405   (exit $ac_status); }; }; then
4406   ac_cv_sys_large_files=1; break
4407 else
4408   echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4410
4411
4412 fi
4413
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415   break
4416 done
4417 fi
4418 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4419 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4420 if test "$ac_cv_sys_large_files" != no; then
4421
4422 cat >>confdefs.h <<_ACEOF
4423 #define _LARGE_FILES $ac_cv_sys_large_files
4424 _ACEOF
4425
4426 fi
4427 rm -f conftest*
4428 fi
4429
4430
4431 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4432 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4433 if test "${ac_cv_header_stdc+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 #include <stdlib.h>
4443 #include <stdarg.h>
4444 #include <string.h>
4445 #include <float.h>
4446
4447 int
4448 main ()
4449 {
4450
4451   ;
4452   return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (ac_try="$ac_compile"
4457 case "(($ac_try" in
4458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459   *) ac_try_echo=$ac_try;;
4460 esac
4461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462   (eval "$ac_compile") 2>conftest.er1
4463   ac_status=$?
4464   grep -v '^ *+' conftest.er1 >conftest.err
4465   rm -f conftest.er1
4466   cat conftest.err >&5
4467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468   (exit $ac_status); } &&
4469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4470   { (case "(($ac_try" in
4471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472   *) ac_try_echo=$ac_try;;
4473 esac
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475   (eval "$ac_try") 2>&5
4476   ac_status=$?
4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478   (exit $ac_status); }; } &&
4479          { ac_try='test -s conftest.$ac_objext'
4480   { (case "(($ac_try" in
4481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482   *) ac_try_echo=$ac_try;;
4483 esac
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485   (eval "$ac_try") 2>&5
4486   ac_status=$?
4487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488   (exit $ac_status); }; }; then
4489   ac_cv_header_stdc=yes
4490 else
4491   echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494         ac_cv_header_stdc=no
4495 fi
4496
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498
4499 if test $ac_cv_header_stdc = yes; then
4500   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4501   cat >conftest.$ac_ext <<_ACEOF
4502 /* confdefs.h.  */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h.  */
4507 #include <string.h>
4508
4509 _ACEOF
4510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511   $EGREP "memchr" >/dev/null 2>&1; then
4512   :
4513 else
4514   ac_cv_header_stdc=no
4515 fi
4516 rm -f conftest*
4517
4518 fi
4519
4520 if test $ac_cv_header_stdc = yes; then
4521   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522   cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 #include <stdlib.h>
4529
4530 _ACEOF
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532   $EGREP "free" >/dev/null 2>&1; then
4533   :
4534 else
4535   ac_cv_header_stdc=no
4536 fi
4537 rm -f conftest*
4538
4539 fi
4540
4541 if test $ac_cv_header_stdc = yes; then
4542   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4543   if test "$cross_compiling" = yes; then
4544   :
4545 else
4546   cat >conftest.$ac_ext <<_ACEOF
4547 /* confdefs.h.  */
4548 _ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h.  */
4552 #include <ctype.h>
4553 #include <stdlib.h>
4554 #if ((' ' & 0x0FF) == 0x020)
4555 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4556 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4557 #else
4558 # define ISLOWER(c) \
4559                    (('a' <= (c) && (c) <= 'i') \
4560                      || ('j' <= (c) && (c) <= 'r') \
4561                      || ('s' <= (c) && (c) <= 'z'))
4562 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4563 #endif
4564
4565 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4566 int
4567 main ()
4568 {
4569   int i;
4570   for (i = 0; i < 256; i++)
4571     if (XOR (islower (i), ISLOWER (i))
4572         || toupper (i) != TOUPPER (i))
4573       return 2;
4574   return 0;
4575 }
4576 _ACEOF
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584   (eval "$ac_link") 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588   { (case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   :
4598 else
4599   echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603 ( exit $ac_status )
4604 ac_cv_header_stdc=no
4605 fi
4606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4607 fi
4608
4609
4610 fi
4611 fi
4612 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4613 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4614 if test $ac_cv_header_stdc = yes; then
4615
4616 cat >>confdefs.h <<\_ACEOF
4617 #define STDC_HEADERS 1
4618 _ACEOF
4619
4620 fi
4621
4622 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4633                   inttypes.h stdint.h unistd.h
4634 do
4635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4639   echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641   cat >conftest.$ac_ext <<_ACEOF
4642 /* confdefs.h.  */
4643 _ACEOF
4644 cat confdefs.h >>conftest.$ac_ext
4645 cat >>conftest.$ac_ext <<_ACEOF
4646 /* end confdefs.h.  */
4647 $ac_includes_default
4648
4649 #include <$ac_header>
4650 _ACEOF
4651 rm -f conftest.$ac_objext
4652 if { (ac_try="$ac_compile"
4653 case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658   (eval "$ac_compile") 2>conftest.er1
4659   ac_status=$?
4660   grep -v '^ *+' conftest.er1 >conftest.err
4661   rm -f conftest.er1
4662   cat conftest.err >&5
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } &&
4665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4666   { (case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671   (eval "$ac_try") 2>&5
4672   ac_status=$?
4673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674   (exit $ac_status); }; } &&
4675          { ac_try='test -s conftest.$ac_objext'
4676   { (case "(($ac_try" in
4677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678   *) ac_try_echo=$ac_try;;
4679 esac
4680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681   (eval "$ac_try") 2>&5
4682   ac_status=$?
4683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684   (exit $ac_status); }; }; then
4685   eval "$as_ac_Header=yes"
4686 else
4687   echo "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690         eval "$as_ac_Header=no"
4691 fi
4692
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 fi
4695 ac_res=`eval echo '${'$as_ac_Header'}'`
4696                { echo "$as_me:$LINENO: result: $ac_res" >&5
4697 echo "${ECHO_T}$ac_res" >&6; }
4698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4699   cat >>confdefs.h <<_ACEOF
4700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701 _ACEOF
4702
4703 fi
4704
4705 done
4706
4707
4708 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4709 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4710 if test "${ac_cv_c_bigendian+set}" = set; then
4711   echo $ECHO_N "(cached) $ECHO_C" >&6
4712 else
4713   # See if sys/param.h defines the BYTE_ORDER macro.
4714 cat >conftest.$ac_ext <<_ACEOF
4715 /* confdefs.h.  */
4716 _ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h.  */
4720 #include <sys/types.h>
4721 #include <sys/param.h>
4722
4723 int
4724 main ()
4725 {
4726 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4727  bogus endian macros
4728 #endif
4729
4730   ;
4731   return 0;
4732 }
4733 _ACEOF
4734 rm -f conftest.$ac_objext
4735 if { (ac_try="$ac_compile"
4736 case "(($ac_try" in
4737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738   *) ac_try_echo=$ac_try;;
4739 esac
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741   (eval "$ac_compile") 2>conftest.er1
4742   ac_status=$?
4743   grep -v '^ *+' conftest.er1 >conftest.err
4744   rm -f conftest.er1
4745   cat conftest.err >&5
4746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747   (exit $ac_status); } &&
4748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4749   { (case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_try") 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; } &&
4758          { ac_try='test -s conftest.$ac_objext'
4759   { (case "(($ac_try" in
4760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761   *) ac_try_echo=$ac_try;;
4762 esac
4763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764   (eval "$ac_try") 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; }; then
4768   # It does; now see whether it defined to BIG_ENDIAN or not.
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775 #include <sys/types.h>
4776 #include <sys/param.h>
4777
4778 int
4779 main ()
4780 {
4781 #if BYTE_ORDER != BIG_ENDIAN
4782  not big endian
4783 #endif
4784
4785   ;
4786   return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793   *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796   (eval "$ac_compile") 2>conftest.er1
4797   ac_status=$?
4798   grep -v '^ *+' conftest.er1 >conftest.err
4799   rm -f conftest.er1
4800   cat conftest.err >&5
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); } &&
4803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4804   { (case "(($ac_try" in
4805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806   *) ac_try_echo=$ac_try;;
4807 esac
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809   (eval "$ac_try") 2>&5
4810   ac_status=$?
4811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812   (exit $ac_status); }; } &&
4813          { ac_try='test -s conftest.$ac_objext'
4814   { (case "(($ac_try" in
4815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816   *) ac_try_echo=$ac_try;;
4817 esac
4818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819   (eval "$ac_try") 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; }; then
4823   ac_cv_c_bigendian=yes
4824 else
4825   echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4827
4828         ac_cv_c_bigendian=no
4829 fi
4830
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 else
4833   echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4835
4836         # It does not; compile a test program.
4837 if test "$cross_compiling" = yes; then
4838   # try to guess the endianness by grepping values into an object file
4839   ac_cv_c_bigendian=unknown
4840   cat >conftest.$ac_ext <<_ACEOF
4841 /* confdefs.h.  */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h.  */
4846 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4847 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4848 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4849 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4850 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4851 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4852 int
4853 main ()
4854 {
4855  _ascii (); _ebcdic ();
4856   ;
4857   return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4862 case "(($ac_try" in
4863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864   *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867   (eval "$ac_compile") 2>conftest.er1
4868   ac_status=$?
4869   grep -v '^ *+' conftest.er1 >conftest.err
4870   rm -f conftest.er1
4871   cat conftest.err >&5
4872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873   (exit $ac_status); } &&
4874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4875   { (case "(($ac_try" in
4876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877   *) ac_try_echo=$ac_try;;
4878 esac
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880   (eval "$ac_try") 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; } &&
4884          { ac_try='test -s conftest.$ac_objext'
4885   { (case "(($ac_try" in
4886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887   *) ac_try_echo=$ac_try;;
4888 esac
4889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890   (eval "$ac_try") 2>&5
4891   ac_status=$?
4892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893   (exit $ac_status); }; }; then
4894   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4895   ac_cv_c_bigendian=yes
4896 fi
4897 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4898   if test "$ac_cv_c_bigendian" = unknown; then
4899     ac_cv_c_bigendian=no
4900   else
4901     # finding both strings is unlikely to happen, but who knows?
4902     ac_cv_c_bigendian=unknown
4903   fi
4904 fi
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909
4910 fi
4911
4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 else
4914   cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h.  */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h.  */
4920 $ac_includes_default
4921 int
4922 main ()
4923 {
4924
4925   /* Are we little or big endian?  From Harbison&Steele.  */
4926   union
4927   {
4928     long int l;
4929     char c[sizeof (long int)];
4930   } u;
4931   u.l = 1;
4932   return u.c[sizeof (long int) - 1] == 1;
4933
4934   ;
4935   return 0;
4936 }
4937 _ACEOF
4938 rm -f conftest$ac_exeext
4939 if { (ac_try="$ac_link"
4940 case "(($ac_try" in
4941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4942   *) ac_try_echo=$ac_try;;
4943 esac
4944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4945   (eval "$ac_link") 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4949   { (case "(($ac_try" in
4950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951   *) ac_try_echo=$ac_try;;
4952 esac
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954   (eval "$ac_try") 2>&5
4955   ac_status=$?
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); }; }; then
4958   ac_cv_c_bigendian=no
4959 else
4960   echo "$as_me: program exited with status $ac_status" >&5
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 ( exit $ac_status )
4965 ac_cv_c_bigendian=yes
4966 fi
4967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4968 fi
4969
4970
4971 fi
4972
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4974 fi
4975 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4976 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4977 case $ac_cv_c_bigendian in
4978   yes)
4979
4980 cat >>confdefs.h <<\_ACEOF
4981 #define WORDS_BIGENDIAN 1
4982 _ACEOF
4983  ;;
4984   no)
4985      ;;
4986   *)
4987     { { echo "$as_me:$LINENO: error: unknown endianness
4988 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4989 echo "$as_me: error: unknown endianness
4990 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4991    { (exit 1); exit 1; }; } ;;
4992 esac
4993
4994
4995 # Extract the first word of "gmake", so it can be a program name with args.
4996 set dummy gmake; ac_word=$2
4997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4999 if test "${ac_cv_prog_GMAKE+set}" = set; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002   if test -n "$GMAKE"; then
5003   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
5004 else
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008   IFS=$as_save_IFS
5009   test -z "$as_dir" && as_dir=.
5010   for ac_exec_ext in '' $ac_executable_extensions; do
5011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5012     ac_cv_prog_GMAKE="yes"
5013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014     break 2
5015   fi
5016 done
5017 done
5018 IFS=$as_save_IFS
5019
5020   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
5021 fi
5022 fi
5023 GMAKE=$ac_cv_prog_GMAKE
5024 if test -n "$GMAKE"; then
5025   { echo "$as_me:$LINENO: result: $GMAKE" >&5
5026 echo "${ECHO_T}$GMAKE" >&6; }
5027 else
5028   { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5030 fi
5031
5032
5033 if test $GMAKE = no; then
5034   # Extract the first word of "make", so it can be a program name with args.
5035 set dummy make; ac_word=$2
5036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5038 if test "${ac_cv_path_MAKE+set}" = set; then
5039   echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041   case $MAKE in
5042   [\\/]* | ?:[\\/]*)
5043   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5044   ;;
5045   *)
5046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049   IFS=$as_save_IFS
5050   test -z "$as_dir" && as_dir=.
5051   for ac_exec_ext in '' $ac_executable_extensions; do
5052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5053     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055     break 2
5056   fi
5057 done
5058 done
5059 IFS=$as_save_IFS
5060
5061   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
5062   ;;
5063 esac
5064 fi
5065 MAKE=$ac_cv_path_MAKE
5066 if test -n "$MAKE"; then
5067   { echo "$as_me:$LINENO: result: $MAKE" >&5
5068 echo "${ECHO_T}$MAKE" >&6; }
5069 else
5070   { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5072 fi
5073
5074
5075 else
5076   # Extract the first word of "gmake", so it can be a program name with args.
5077 set dummy gmake; ac_word=$2
5078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5080 if test "${ac_cv_path_MAKE+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   case $MAKE in
5084   [\\/]* | ?:[\\/]*)
5085   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
5086   ;;
5087   *)
5088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093   for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
5096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100 done
5101 IFS=$as_save_IFS
5102
5103   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
5104   ;;
5105 esac
5106 fi
5107 MAKE=$ac_cv_path_MAKE
5108 if test -n "$MAKE"; then
5109   { echo "$as_me:$LINENO: result: $MAKE" >&5
5110 echo "${ECHO_T}$MAKE" >&6; }
5111 else
5112   { echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6; }
5114 fi
5115
5116
5117 fi
5118 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
5119 if test -z "$makever"; then
5120   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
5121                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
5122 echo "$as_me: error: GNU Make is not installed.  Please download and install it
5123                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
5124    { (exit 1); exit 1; }; }
5125 fi
5126
5127   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
5128 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
5129 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
5130   echo $ECHO_N "(cached) $ECHO_C" >&6
5131 else
5132   ac_check_lib_save_LIBS=$LIBS
5133 LIBS="-lltdl  $LIBS"
5134 cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140
5141 /* Override any GCC internal prototype to avoid an error.
5142    Use char because int might match the return type of a GCC
5143    builtin and then its argument prototype would still apply.  */
5144 #ifdef __cplusplus
5145 extern "C"
5146 #endif
5147 char lt_dlinit ();
5148 int
5149 main ()
5150 {
5151 return lt_dlinit ();
5152   ;
5153   return 0;
5154 }
5155 _ACEOF
5156 rm -f conftest.$ac_objext conftest$ac_exeext
5157 if { (ac_try="$ac_link"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_link") 2>conftest.er1
5164   ac_status=$?
5165   grep -v '^ *+' conftest.er1 >conftest.err
5166   rm -f conftest.er1
5167   cat conftest.err >&5
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); } &&
5170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5171   { (case "(($ac_try" in
5172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173   *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176   (eval "$ac_try") 2>&5
5177   ac_status=$?
5178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179   (exit $ac_status); }; } &&
5180          { ac_try='test -s conftest$ac_exeext'
5181   { (case "(($ac_try" in
5182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183   *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186   (eval "$ac_try") 2>&5
5187   ac_status=$?
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); }; }; then
5190   ac_cv_lib_ltdl_lt_dlinit=yes
5191 else
5192   echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
5195         ac_cv_lib_ltdl_lt_dlinit=no
5196 fi
5197
5198 rm -f core conftest.err conftest.$ac_objext \
5199       conftest$ac_exeext conftest.$ac_ext
5200 LIBS=$ac_check_lib_save_LIBS
5201 fi
5202 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
5203 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
5204 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
5205   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
5206 else
5207   if test x"$enable_ltdl_install" = xno; then
5208      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
5209 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
5210    else
5211      enable_ltdl_install=yes
5212    fi
5213
5214 fi
5215
5216   if test x"$enable_ltdl_install" = x"yes"; then
5217     ac_configure_args="$ac_configure_args --enable-ltdl-install"
5218     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
5219     LTDLINCL='-I${top_srcdir}/''libltdl'
5220   else
5221     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
5222     LIBLTDL="-lltdl"
5223     LTDLINCL=
5224   fi
5225   # For backwards non-gettext consistent compatibility...
5226   INCLTDL="$LTDLINCL"
5227
5228
5229 if test x"$enable_ltdl_install" = x"yes"; then
5230   LTDL_SUBDIRS=libltdl
5231 fi
5232
5233
5234 # Check whether --enable-shared was given.
5235 if test "${enable_shared+set}" = set; then
5236   enableval=$enable_shared; p=${PACKAGE-default}
5237     case $enableval in
5238     yes) enable_shared=yes ;;
5239     no) enable_shared=no ;;
5240     *)
5241       enable_shared=no
5242       # Look at the argument we got.  We use all the common list separators.
5243       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5244       for pkg in $enableval; do
5245         IFS="$lt_save_ifs"
5246         if test "X$pkg" = "X$p"; then
5247           enable_shared=yes
5248         fi
5249       done
5250       IFS="$lt_save_ifs"
5251       ;;
5252     esac
5253 else
5254   enable_shared=yes
5255 fi
5256
5257
5258 # Check whether --enable-static was given.
5259 if test "${enable_static+set}" = set; then
5260   enableval=$enable_static; p=${PACKAGE-default}
5261     case $enableval in
5262     yes) enable_static=yes ;;
5263     no) enable_static=no ;;
5264     *)
5265      enable_static=no
5266       # Look at the argument we got.  We use all the common list separators.
5267       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5268       for pkg in $enableval; do
5269         IFS="$lt_save_ifs"
5270         if test "X$pkg" = "X$p"; then
5271           enable_static=yes
5272         fi
5273       done
5274       IFS="$lt_save_ifs"
5275       ;;
5276     esac
5277 else
5278   enable_static=yes
5279 fi
5280
5281
5282 # Check whether --enable-fast-install was given.
5283 if test "${enable_fast_install+set}" = set; then
5284   enableval=$enable_fast_install; p=${PACKAGE-default}
5285     case $enableval in
5286     yes) enable_fast_install=yes ;;
5287     no) enable_fast_install=no ;;
5288     *)
5289       enable_fast_install=no
5290       # Look at the argument we got.  We use all the common list separators.
5291       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5292       for pkg in $enableval; do
5293         IFS="$lt_save_ifs"
5294         if test "X$pkg" = "X$p"; then
5295           enable_fast_install=yes
5296         fi
5297       done
5298       IFS="$lt_save_ifs"
5299       ;;
5300     esac
5301 else
5302   enable_fast_install=yes
5303 fi
5304
5305
5306 ac_aux_dir=
5307 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5308   if test -f "$ac_dir/install-sh"; then
5309     ac_aux_dir=$ac_dir
5310     ac_install_sh="$ac_aux_dir/install-sh -c"
5311     break
5312   elif test -f "$ac_dir/install.sh"; then
5313     ac_aux_dir=$ac_dir
5314     ac_install_sh="$ac_aux_dir/install.sh -c"
5315     break
5316   elif test -f "$ac_dir/shtool"; then
5317     ac_aux_dir=$ac_dir
5318     ac_install_sh="$ac_aux_dir/shtool install -c"
5319     break
5320   fi
5321 done
5322 if test -z "$ac_aux_dir"; then
5323   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5324 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5325    { (exit 1); exit 1; }; }
5326 fi
5327
5328 # These three variables are undocumented and unsupported,
5329 # and are intended to be withdrawn in a future Autoconf release.
5330 # They can cause serious problems if a builder's source tree is in a directory
5331 # whose full name contains unusual characters.
5332 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5333 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5334 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5335
5336
5337 # Make sure we can run config.sub.
5338 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5339   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5340 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5341    { (exit 1); exit 1; }; }
5342
5343 { echo "$as_me:$LINENO: checking build system type" >&5
5344 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5345 if test "${ac_cv_build+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   ac_build_alias=$build_alias
5349 test "x$ac_build_alias" = x &&
5350   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5351 test "x$ac_build_alias" = x &&
5352   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5353 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5354    { (exit 1); exit 1; }; }
5355 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5356   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5357 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5358    { (exit 1); exit 1; }; }
5359
5360 fi
5361 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5362 echo "${ECHO_T}$ac_cv_build" >&6; }
5363 case $ac_cv_build in
5364 *-*-*) ;;
5365 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5366 echo "$as_me: error: invalid value of canonical build" >&2;}
5367    { (exit 1); exit 1; }; };;
5368 esac
5369 build=$ac_cv_build
5370 ac_save_IFS=$IFS; IFS='-'
5371 set x $ac_cv_build
5372 shift
5373 build_cpu=$1
5374 build_vendor=$2
5375 shift; shift
5376 # Remember, the first character of IFS is used to create $*,
5377 # except with old shells:
5378 build_os=$*
5379 IFS=$ac_save_IFS
5380 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5381
5382
5383 { echo "$as_me:$LINENO: checking host system type" >&5
5384 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5385 if test "${ac_cv_host+set}" = set; then
5386   echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388   if test "x$host_alias" = x; then
5389   ac_cv_host=$ac_cv_build
5390 else
5391   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5392     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5393 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5394    { (exit 1); exit 1; }; }
5395 fi
5396
5397 fi
5398 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5399 echo "${ECHO_T}$ac_cv_host" >&6; }
5400 case $ac_cv_host in
5401 *-*-*) ;;
5402 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5403 echo "$as_me: error: invalid value of canonical host" >&2;}
5404    { (exit 1); exit 1; }; };;
5405 esac
5406 host=$ac_cv_host
5407 ac_save_IFS=$IFS; IFS='-'
5408 set x $ac_cv_host
5409 shift
5410 host_cpu=$1
5411 host_vendor=$2
5412 shift; shift
5413 # Remember, the first character of IFS is used to create $*,
5414 # except with old shells:
5415 host_os=$*
5416 IFS=$ac_save_IFS
5417 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5418
5419
5420 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5421 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5422 if test "${lt_cv_path_SED+set}" = set; then
5423   echo $ECHO_N "(cached) $ECHO_C" >&6
5424 else
5425   # Loop through the user's path and test for sed and gsed.
5426 # Then use that list of sed's as ones to test for truncation.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH
5429 do
5430   IFS=$as_save_IFS
5431   test -z "$as_dir" && as_dir=.
5432   for lt_ac_prog in sed gsed; do
5433     for ac_exec_ext in '' $ac_executable_extensions; do
5434       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5435         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5436       fi
5437     done
5438   done
5439 done
5440 lt_ac_max=0
5441 lt_ac_count=0
5442 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5443 # along with /bin/sed that truncates output.
5444 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5445   test ! -f $lt_ac_sed && continue
5446   cat /dev/null > conftest.in
5447   lt_ac_count=0
5448   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5449   # Check for GNU sed and select it if it is found.
5450   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5451     lt_cv_path_SED=$lt_ac_sed
5452     break
5453   fi
5454   while true; do
5455     cat conftest.in conftest.in >conftest.tmp
5456     mv conftest.tmp conftest.in
5457     cp conftest.in conftest.nl
5458     echo >>conftest.nl
5459     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5460     cmp -s conftest.out conftest.nl || break
5461     # 10000 chars as input seems more than enough
5462     test $lt_ac_count -gt 10 && break
5463     lt_ac_count=`expr $lt_ac_count + 1`
5464     if test $lt_ac_count -gt $lt_ac_max; then
5465       lt_ac_max=$lt_ac_count
5466       lt_cv_path_SED=$lt_ac_sed
5467     fi
5468   done
5469 done
5470
5471 fi
5472
5473 SED=$lt_cv_path_SED
5474 { echo "$as_me:$LINENO: result: $SED" >&5
5475 echo "${ECHO_T}$SED" >&6; }
5476
5477
5478 # Check whether --with-gnu-ld was given.
5479 if test "${with_gnu_ld+set}" = set; then
5480   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5481 else
5482   with_gnu_ld=no
5483 fi
5484
5485 ac_prog=ld
5486 if test "$GCC" = yes; then
5487   # Check if gcc -print-prog-name=ld gives a path.
5488   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5489 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5490   case $host in
5491   *-*-mingw*)
5492     # gcc leaves a trailing carriage return which upsets mingw
5493     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5494   *)
5495     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5496   esac
5497   case $ac_prog in
5498     # Accept absolute paths.
5499     [\\/]* | ?:[\\/]*)
5500       re_direlt='/[^/][^/]*/\.\./'
5501       # Canonicalize the pathname of ld
5502       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5503       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5504         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5505       done
5506       test -z "$LD" && LD="$ac_prog"
5507       ;;
5508   "")
5509     # If it fails, then pretend we aren't using GCC.
5510     ac_prog=ld
5511     ;;
5512   *)
5513     # If it is relative, then search for the first ld in PATH.
5514     with_gnu_ld=unknown
5515     ;;
5516   esac
5517 elif test "$with_gnu_ld" = yes; then
5518   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5519 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5520 else
5521   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5522 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5523 fi
5524 if test "${lt_cv_path_LD+set}" = set; then
5525   echo $ECHO_N "(cached) $ECHO_C" >&6
5526 else
5527   if test -z "$LD"; then
5528   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5529   for ac_dir in $PATH; do
5530     IFS="$lt_save_ifs"
5531     test -z "$ac_dir" && ac_dir=.
5532     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5533       lt_cv_path_LD="$ac_dir/$ac_prog"
5534       # Check to see if the program is GNU ld.  I'd rather use --version,
5535       # but apparently some variants of GNU ld only accept -v.
5536       # Break only if it was the GNU/non-GNU ld that we prefer.
5537       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5538       *GNU* | *'with BFD'*)
5539         test "$with_gnu_ld" != no && break
5540         ;;
5541       *)
5542         test "$with_gnu_ld" != yes && break
5543         ;;
5544       esac
5545     fi
5546   done
5547   IFS="$lt_save_ifs"
5548 else
5549   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5550 fi
5551 fi
5552
5553 LD="$lt_cv_path_LD"
5554 if test -n "$LD"; then
5555   { echo "$as_me:$LINENO: result: $LD" >&5
5556 echo "${ECHO_T}$LD" >&6; }
5557 else
5558   { echo "$as_me:$LINENO: result: no" >&5
5559 echo "${ECHO_T}no" >&6; }
5560 fi
5561 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5562 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5563    { (exit 1); exit 1; }; }
5564 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5565 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5566 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5567   echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5570 case `$LD -v 2>&1 </dev/null` in
5571 *GNU* | *'with BFD'*)
5572   lt_cv_prog_gnu_ld=yes
5573   ;;
5574 *)
5575   lt_cv_prog_gnu_ld=no
5576   ;;
5577 esac
5578 fi
5579 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5580 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5581 with_gnu_ld=$lt_cv_prog_gnu_ld
5582
5583
5584 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5585 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5586 if test "${lt_cv_ld_reload_flag+set}" = set; then
5587   echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589   lt_cv_ld_reload_flag='-r'
5590 fi
5591 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5592 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5593 reload_flag=$lt_cv_ld_reload_flag
5594 case $reload_flag in
5595 "" | " "*) ;;
5596 *) reload_flag=" $reload_flag" ;;
5597 esac
5598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5599 case $host_os in
5600   darwin*)
5601     if test "$GCC" = yes; then
5602       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5603     else
5604       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5605     fi
5606     ;;
5607 esac
5608
5609 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5610 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5611 if test "${lt_cv_path_NM+set}" = set; then
5612   echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614   if test -n "$NM"; then
5615   # Let the user override the test.
5616   lt_cv_path_NM="$NM"
5617 else
5618   lt_nm_to_check="${ac_tool_prefix}nm"
5619   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5620     lt_nm_to_check="$lt_nm_to_check nm"
5621   fi
5622   for lt_tmp_nm in $lt_nm_to_check; do
5623     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5624     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5625       IFS="$lt_save_ifs"
5626       test -z "$ac_dir" && ac_dir=.
5627       tmp_nm="$ac_dir/$lt_tmp_nm"
5628       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5629         # Check to see if the nm accepts a BSD-compat flag.
5630         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5631         #   nm: unknown option "B" ignored
5632         # Tru64's nm complains that /dev/null is an invalid object file
5633         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5634         */dev/null* | *'Invalid file or object type'*)
5635           lt_cv_path_NM="$tmp_nm -B"
5636           break
5637           ;;
5638         *)
5639           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5640           */dev/null*)
5641             lt_cv_path_NM="$tmp_nm -p"
5642             break
5643             ;;
5644           *)
5645             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5646             continue # so that we can try to find one that supports BSD flags
5647             ;;
5648           esac
5649           ;;
5650         esac
5651       fi
5652     done
5653     IFS="$lt_save_ifs"
5654   done
5655   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5656 fi
5657 fi
5658 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5659 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5660 NM="$lt_cv_path_NM"
5661
5662 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5663 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5664 LN_S=$as_ln_s
5665 if test "$LN_S" = "ln -s"; then
5666   { echo "$as_me:$LINENO: result: yes" >&5
5667 echo "${ECHO_T}yes" >&6; }
5668 else
5669   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5670 echo "${ECHO_T}no, using $LN_S" >&6; }
5671 fi
5672
5673 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5674 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5675 if test "${lt_cv_deplibs_check_method+set}" = set; then
5676   echo $ECHO_N "(cached) $ECHO_C" >&6
5677 else
5678   lt_cv_file_magic_cmd='$MAGIC_CMD'
5679 lt_cv_file_magic_test_file=
5680 lt_cv_deplibs_check_method='unknown'
5681 # Need to set the preceding variable on all platforms that support
5682 # interlibrary dependencies.
5683 # 'none' -- dependencies not supported.
5684 # `unknown' -- same as none, but documents that we really don't know.
5685 # 'pass_all' -- all dependencies passed with no checks.
5686 # 'test_compile' -- check by making test program.
5687 # 'file_magic [[regex]]' -- check by looking for files in library path
5688 # which responds to the $file_magic_cmd with a given extended regex.
5689 # If you have `file' or equivalent on your system and you're not sure
5690 # whether `pass_all' will *always* work, you probably want this one.
5691
5692 case $host_os in
5693 aix4* | aix5*)
5694   lt_cv_deplibs_check_method=pass_all
5695   ;;
5696
5697 beos*)
5698   lt_cv_deplibs_check_method=pass_all
5699   ;;
5700
5701 bsdi[45]*)
5702   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5703   lt_cv_file_magic_cmd='/usr/bin/file -L'
5704   lt_cv_file_magic_test_file=/shlib/libc.so
5705   ;;
5706
5707 cygwin*)
5708   # func_win32_libid is a shell function defined in ltmain.sh
5709   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5710   lt_cv_file_magic_cmd='func_win32_libid'
5711   ;;
5712
5713 mingw* | pw32*)
5714   # Base MSYS/MinGW do not provide the 'file' command needed by
5715   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5716   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5717   lt_cv_file_magic_cmd='$OBJDUMP -f'
5718   ;;
5719
5720 darwin* | rhapsody*)
5721   lt_cv_deplibs_check_method=pass_all
5722   ;;
5723
5724 freebsd* | kfreebsd*-gnu | dragonfly*)
5725   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5726     case $host_cpu in
5727     i*86 )
5728       # Not sure whether the presence of OpenBSD here was a mistake.
5729       # Let's accept both of them until this is cleared up.
5730       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5731       lt_cv_file_magic_cmd=/usr/bin/file
5732       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5733       ;;
5734     esac
5735   else
5736     lt_cv_deplibs_check_method=pass_all
5737   fi
5738   ;;
5739
5740 gnu*)
5741   lt_cv_deplibs_check_method=pass_all
5742   ;;
5743
5744 hpux10.20* | hpux11*)
5745   lt_cv_file_magic_cmd=/usr/bin/file
5746   case $host_cpu in
5747   ia64*)
5748     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5749     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5750     ;;
5751   hppa*64*)
5752     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]'
5753     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5754     ;;
5755   *)
5756     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5757     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5758     ;;
5759   esac
5760   ;;
5761
5762 interix3*)
5763   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5764   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5765   ;;
5766
5767 irix5* | irix6* | nonstopux*)
5768   case $LD in
5769   *-32|*"-32 ") libmagic=32-bit;;
5770   *-n32|*"-n32 ") libmagic=N32;;
5771   *-64|*"-64 ") libmagic=64-bit;;
5772   *) libmagic=never-match;;
5773   esac
5774   lt_cv_deplibs_check_method=pass_all
5775   ;;
5776
5777 # This must be Linux ELF.
5778 linux*)
5779   lt_cv_deplibs_check_method=pass_all
5780   ;;
5781
5782 netbsd*)
5783   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5784     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5785   else
5786     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5787   fi
5788   ;;
5789
5790 newos6*)
5791   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5792   lt_cv_file_magic_cmd=/usr/bin/file
5793   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5794   ;;
5795
5796 nto-qnx*)
5797   lt_cv_deplibs_check_method=unknown
5798   ;;
5799
5800 openbsd*)
5801   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5802     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5803   else
5804     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5805   fi
5806   ;;
5807
5808 osf3* | osf4* | osf5*)
5809   lt_cv_deplibs_check_method=pass_all
5810   ;;
5811
5812 solaris*)
5813   lt_cv_deplibs_check_method=pass_all
5814   ;;
5815
5816 sysv4 | sysv4.3*)
5817   case $host_vendor in
5818   motorola)
5819     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]'
5820     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5821     ;;
5822   ncr)
5823     lt_cv_deplibs_check_method=pass_all
5824     ;;
5825   sequent)
5826     lt_cv_file_magic_cmd='/bin/file'
5827     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5828     ;;
5829   sni)
5830     lt_cv_file_magic_cmd='/bin/file'
5831     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5832     lt_cv_file_magic_test_file=/lib/libc.so
5833     ;;
5834   siemens)
5835     lt_cv_deplibs_check_method=pass_all
5836     ;;
5837   pc)
5838     lt_cv_deplibs_check_method=pass_all
5839     ;;
5840   esac
5841   ;;
5842
5843 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5844   lt_cv_deplibs_check_method=pass_all
5845   ;;
5846 esac
5847
5848 fi
5849 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5850 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5851 file_magic_cmd=$lt_cv_file_magic_cmd
5852 deplibs_check_method=$lt_cv_deplibs_check_method
5853 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5854
5855
5856
5857
5858 # If no C compiler was specified, use CC.
5859 LTCC=${LTCC-"$CC"}
5860
5861 # If no C compiler flags were specified, use CFLAGS.
5862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5863
5864 # Allow CC to be a program name with arguments.
5865 compiler=$CC
5866
5867 # Check whether --enable-libtool-lock was given.
5868 if test "${enable_libtool_lock+set}" = set; then
5869   enableval=$enable_libtool_lock;
5870 fi
5871
5872 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5873
5874 # Some flags need to be propagated to the compiler or linker for good
5875 # libtool support.
5876 case $host in
5877 ia64-*-hpux*)
5878   # Find out which ABI we are using.
5879   echo 'int i;' > conftest.$ac_ext
5880   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881   (eval $ac_compile) 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }; then
5885     case `/usr/bin/file conftest.$ac_objext` in
5886     *ELF-32*)
5887       HPUX_IA64_MODE="32"
5888       ;;
5889     *ELF-64*)
5890       HPUX_IA64_MODE="64"
5891       ;;
5892     esac
5893   fi
5894   rm -rf conftest*
5895   ;;
5896 *-*-irix6*)
5897   # Find out which ABI we are using.
5898   echo '#line 5898 "configure"' > conftest.$ac_ext
5899   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900   (eval $ac_compile) 2>&5
5901   ac_status=$?
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); }; then
5904    if test "$lt_cv_prog_gnu_ld" = yes; then
5905     case `/usr/bin/file conftest.$ac_objext` in
5906     *32-bit*)
5907       LD="${LD-ld} -melf32bsmip"
5908       ;;
5909     *N32*)
5910       LD="${LD-ld} -melf32bmipn32"
5911       ;;
5912     *64-bit*)
5913       LD="${LD-ld} -melf64bmip"
5914       ;;
5915     esac
5916    else
5917     case `/usr/bin/file conftest.$ac_objext` in
5918     *32-bit*)
5919       LD="${LD-ld} -32"
5920       ;;
5921     *N32*)
5922       LD="${LD-ld} -n32"
5923       ;;
5924     *64-bit*)
5925       LD="${LD-ld} -64"
5926       ;;
5927     esac
5928    fi
5929   fi
5930   rm -rf conftest*
5931   ;;
5932
5933 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5934   # Find out which ABI we are using.
5935   echo 'int i;' > conftest.$ac_ext
5936   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937   (eval $ac_compile) 2>&5
5938   ac_status=$?
5939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940   (exit $ac_status); }; then
5941     case `/usr/bin/file conftest.o` in
5942     *32-bit*)
5943       case $host in
5944         x86_64-*linux*)
5945           LD="${LD-ld} -m elf_i386"
5946           ;;
5947         ppc64-*linux*|powerpc64-*linux*)
5948           LD="${LD-ld} -m elf32ppclinux"
5949           ;;
5950         s390x-*linux*)
5951           LD="${LD-ld} -m elf_s390"
5952           ;;
5953         sparc64-*linux*)
5954           LD="${LD-ld} -m elf32_sparc"
5955           ;;
5956       esac
5957       ;;
5958     *64-bit*)
5959       case $host in
5960         x86_64-*linux*)
5961           LD="${LD-ld} -m elf_x86_64"
5962           ;;
5963         ppc*-*linux*|powerpc*-*linux*)
5964           LD="${LD-ld} -m elf64ppc"
5965           ;;
5966         s390*-*linux*)
5967           LD="${LD-ld} -m elf64_s390"
5968           ;;
5969         sparc*-*linux*)
5970           LD="${LD-ld} -m elf64_sparc"
5971           ;;
5972       esac
5973       ;;
5974     esac
5975   fi
5976   rm -rf conftest*
5977   ;;
5978
5979 *-*-sco3.2v5*)
5980   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5981   SAVE_CFLAGS="$CFLAGS"
5982   CFLAGS="$CFLAGS -belf"
5983   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5984 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5985 if test "${lt_cv_cc_needs_belf+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   ac_ext=c
5989 ac_cpp='$CPP $CPPFLAGS'
5990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5993
5994      cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000
6001 int
6002 main ()
6003 {
6004
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 rm -f conftest.$ac_objext conftest$ac_exeext
6010 if { (ac_try="$ac_link"
6011 case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016   (eval "$ac_link") 2>conftest.er1
6017   ac_status=$?
6018   grep -v '^ *+' conftest.er1 >conftest.err
6019   rm -f conftest.er1
6020   cat conftest.err >&5
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024   { (case "(($ac_try" in
6025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026   *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029   (eval "$ac_try") 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; } &&
6033          { ac_try='test -s conftest$ac_exeext'
6034   { (case "(($ac_try" in
6035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036   *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039   (eval "$ac_try") 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }; }; then
6043   lt_cv_cc_needs_belf=yes
6044 else
6045   echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048         lt_cv_cc_needs_belf=no
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext \
6052       conftest$ac_exeext conftest.$ac_ext
6053      ac_ext=c
6054 ac_cpp='$CPP $CPPFLAGS'
6055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6058
6059 fi
6060 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6061 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6062   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6063     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6064     CFLAGS="$SAVE_CFLAGS"
6065   fi
6066   ;;
6067 sparc*-*solaris*)
6068   # Find out which ABI we are using.
6069   echo 'int i;' > conftest.$ac_ext
6070   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071   (eval $ac_compile) 2>&5
6072   ac_status=$?
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); }; then
6075     case `/usr/bin/file conftest.o` in
6076     *64-bit*)
6077       case $lt_cv_prog_gnu_ld in
6078       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6079       *)    LD="${LD-ld} -64" ;;
6080       esac
6081       ;;
6082     esac
6083   fi
6084   rm -rf conftest*
6085   ;;
6086
6087
6088 esac
6089
6090 need_locks="$enable_libtool_lock"
6091
6092
6093
6094 for ac_header in dlfcn.h
6095 do
6096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6098   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 fi
6103 ac_res=`eval echo '${'$as_ac_Header'}'`
6104                { echo "$as_me:$LINENO: result: $ac_res" >&5
6105 echo "${ECHO_T}$ac_res" >&6; }
6106 else
6107   # Is the header compilable?
6108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116 $ac_includes_default
6117 #include <$ac_header>
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (ac_try="$ac_compile"
6121 case "(($ac_try" in
6122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123   *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126   (eval "$ac_compile") 2>conftest.er1
6127   ac_status=$?
6128   grep -v '^ *+' conftest.er1 >conftest.err
6129   rm -f conftest.er1
6130   cat conftest.err >&5
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); } &&
6133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6134   { (case "(($ac_try" in
6135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136   *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139   (eval "$ac_try") 2>&5
6140   ac_status=$?
6141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142   (exit $ac_status); }; } &&
6143          { ac_try='test -s conftest.$ac_objext'
6144   { (case "(($ac_try" in
6145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146   *) ac_try_echo=$ac_try;;
6147 esac
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149   (eval "$ac_try") 2>&5
6150   ac_status=$?
6151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152   (exit $ac_status); }; }; then
6153   ac_header_compiler=yes
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158         ac_header_compiler=no
6159 fi
6160
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6163 echo "${ECHO_T}$ac_header_compiler" >&6; }
6164
6165 # Is the header present?
6166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 #include <$ac_header>
6175 _ACEOF
6176 if { (ac_try="$ac_cpp conftest.$ac_ext"
6177 case "(($ac_try" in
6178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179   *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6183   ac_status=$?
6184   grep -v '^ *+' conftest.er1 >conftest.err
6185   rm -f conftest.er1
6186   cat conftest.err >&5
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); } >/dev/null; then
6189   if test -s conftest.err; then
6190     ac_cpp_err=$ac_c_preproc_warn_flag
6191     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6192   else
6193     ac_cpp_err=
6194   fi
6195 else
6196   ac_cpp_err=yes
6197 fi
6198 if test -z "$ac_cpp_err"; then
6199   ac_header_preproc=yes
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204   ac_header_preproc=no
6205 fi
6206
6207 rm -f conftest.err conftest.$ac_ext
6208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6209 echo "${ECHO_T}$ac_header_preproc" >&6; }
6210
6211 # So?  What about this header?
6212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6213   yes:no: )
6214     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6218     ac_header_preproc=yes
6219     ;;
6220   no:yes:* )
6221     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6223     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6224 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6225     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6227     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6228 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6231     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6233
6234     ;;
6235 esac
6236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6239   echo $ECHO_N "(cached) $ECHO_C" >&6
6240 else
6241   eval "$as_ac_Header=\$ac_header_preproc"
6242 fi
6243 ac_res=`eval echo '${'$as_ac_Header'}'`
6244                { echo "$as_me:$LINENO: result: $ac_res" >&5
6245 echo "${ECHO_T}$ac_res" >&6; }
6246
6247 fi
6248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6249   cat >>confdefs.h <<_ACEOF
6250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6251 _ACEOF
6252
6253 fi
6254
6255 done
6256
6257
6258
6259 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6260     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6261     (test "X$CXX" != "Xg++"))) ; then
6262   ac_ext=cpp
6263 ac_cpp='$CXXCPP $CPPFLAGS'
6264 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6265 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6266 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6267 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6268 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6269 if test -z "$CXXCPP"; then
6270   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273       # Double quotes because CXXCPP needs to be expanded
6274     for CXXCPP in "$CXX -E" "/lib/cpp"
6275     do
6276       ac_preproc_ok=false
6277 for ac_cxx_preproc_warn_flag in '' yes
6278 do
6279   # Use a header file that comes with gcc, so configuring glibc
6280   # with a fresh cross-compiler works.
6281   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6282   # <limits.h> exists even on freestanding compilers.
6283   # On the NeXT, cc -E runs the code through the compiler's parser,
6284   # not just through cpp. "Syntax error" is here to catch this case.
6285   cat >conftest.$ac_ext <<_ACEOF
6286 /* confdefs.h.  */
6287 _ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h.  */
6291 #ifdef __STDC__
6292 # include <limits.h>
6293 #else
6294 # include <assert.h>
6295 #endif
6296                      Syntax error
6297 _ACEOF
6298 if { (ac_try="$ac_cpp conftest.$ac_ext"
6299 case "(($ac_try" in
6300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301   *) ac_try_echo=$ac_try;;
6302 esac
6303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } >/dev/null; then
6311   if test -s conftest.err; then
6312     ac_cpp_err=$ac_cxx_preproc_warn_flag
6313     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6314   else
6315     ac_cpp_err=
6316   fi
6317 else
6318   ac_cpp_err=yes
6319 fi
6320 if test -z "$ac_cpp_err"; then
6321   :
6322 else
6323   echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6325
6326   # Broken: fails on valid input.
6327 continue
6328 fi
6329
6330 rm -f conftest.err conftest.$ac_ext
6331
6332   # OK, works on sane cases.  Now check whether nonexistent headers
6333   # can be detected and how.
6334   cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h.  */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h.  */
6340 #include <ac_nonexistent.h>
6341 _ACEOF
6342 if { (ac_try="$ac_cpp conftest.$ac_ext"
6343 case "(($ac_try" in
6344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345   *) ac_try_echo=$ac_try;;
6346 esac
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6349   ac_status=$?
6350   grep -v '^ *+' conftest.er1 >conftest.err
6351   rm -f conftest.er1
6352   cat conftest.err >&5
6353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354   (exit $ac_status); } >/dev/null; then
6355   if test -s conftest.err; then
6356     ac_cpp_err=$ac_cxx_preproc_warn_flag
6357     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6358   else
6359     ac_cpp_err=
6360   fi
6361 else
6362   ac_cpp_err=yes
6363 fi
6364 if test -z "$ac_cpp_err"; then
6365   # Broken: success on invalid input.
6366 continue
6367 else
6368   echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371   # Passes both tests.
6372 ac_preproc_ok=:
6373 break
6374 fi
6375
6376 rm -f conftest.err conftest.$ac_ext
6377
6378 done
6379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6380 rm -f conftest.err conftest.$ac_ext
6381 if $ac_preproc_ok; then
6382   break
6383 fi
6384
6385     done
6386     ac_cv_prog_CXXCPP=$CXXCPP
6387
6388 fi
6389   CXXCPP=$ac_cv_prog_CXXCPP
6390 else
6391   ac_cv_prog_CXXCPP=$CXXCPP
6392 fi
6393 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6394 echo "${ECHO_T}$CXXCPP" >&6; }
6395 ac_preproc_ok=false
6396 for ac_cxx_preproc_warn_flag in '' yes
6397 do
6398   # Use a header file that comes with gcc, so configuring glibc
6399   # with a fresh cross-compiler works.
6400   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6401   # <limits.h> exists even on freestanding compilers.
6402   # On the NeXT, cc -E runs the code through the compiler's parser,
6403   # not just through cpp. "Syntax error" is here to catch this case.
6404   cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h.  */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h.  */
6410 #ifdef __STDC__
6411 # include <limits.h>
6412 #else
6413 # include <assert.h>
6414 #endif
6415                      Syntax error
6416 _ACEOF
6417 if { (ac_try="$ac_cpp conftest.$ac_ext"
6418 case "(($ac_try" in
6419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6420   *) ac_try_echo=$ac_try;;
6421 esac
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6424   ac_status=$?
6425   grep -v '^ *+' conftest.er1 >conftest.err
6426   rm -f conftest.er1
6427   cat conftest.err >&5
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); } >/dev/null; then
6430   if test -s conftest.err; then
6431     ac_cpp_err=$ac_cxx_preproc_warn_flag
6432     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6433   else
6434     ac_cpp_err=
6435   fi
6436 else
6437   ac_cpp_err=yes
6438 fi
6439 if test -z "$ac_cpp_err"; then
6440   :
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445   # Broken: fails on valid input.
6446 continue
6447 fi
6448
6449 rm -f conftest.err conftest.$ac_ext
6450
6451   # OK, works on sane cases.  Now check whether nonexistent headers
6452   # can be detected and how.
6453   cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h.  */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h.  */
6459 #include <ac_nonexistent.h>
6460 _ACEOF
6461 if { (ac_try="$ac_cpp conftest.$ac_ext"
6462 case "(($ac_try" in
6463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464   *) ac_try_echo=$ac_try;;
6465 esac
6466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6468   ac_status=$?
6469   grep -v '^ *+' conftest.er1 >conftest.err
6470   rm -f conftest.er1
6471   cat conftest.err >&5
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } >/dev/null; then
6474   if test -s conftest.err; then
6475     ac_cpp_err=$ac_cxx_preproc_warn_flag
6476     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6477   else
6478     ac_cpp_err=
6479   fi
6480 else
6481   ac_cpp_err=yes
6482 fi
6483 if test -z "$ac_cpp_err"; then
6484   # Broken: success on invalid input.
6485 continue
6486 else
6487   echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490   # Passes both tests.
6491 ac_preproc_ok=:
6492 break
6493 fi
6494
6495 rm -f conftest.err conftest.$ac_ext
6496
6497 done
6498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6499 rm -f conftest.err conftest.$ac_ext
6500 if $ac_preproc_ok; then
6501   :
6502 else
6503   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6504 See \`config.log' for more details." >&5
6505 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6506 See \`config.log' for more details." >&2;}
6507    { (exit 1); exit 1; }; }
6508 fi
6509
6510 ac_ext=cpp
6511 ac_cpp='$CXXCPP $CPPFLAGS'
6512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6515
6516 fi
6517
6518
6519 ac_ext=f
6520 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6521 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6522 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6523 if test -n "$ac_tool_prefix"; then
6524   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
6525   do
6526     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6530 if test "${ac_cv_prog_F77+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   if test -n "$F77"; then
6534   ac_cv_prog_F77="$F77" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541   for ac_exec_ext in '' $ac_executable_extensions; do
6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6543     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548 done
6549 IFS=$as_save_IFS
6550
6551 fi
6552 fi
6553 F77=$ac_cv_prog_F77
6554 if test -n "$F77"; then
6555   { echo "$as_me:$LINENO: result: $F77" >&5
6556 echo "${ECHO_T}$F77" >&6; }
6557 else
6558   { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6560 fi
6561
6562
6563     test -n "$F77" && break
6564   done
6565 fi
6566 if test -z "$F77"; then
6567   ac_ct_F77=$F77
6568   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
6569 do
6570   # Extract the first word of "$ac_prog", so it can be a program name with args.
6571 set dummy $ac_prog; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   if test -n "$ac_ct_F77"; then
6578   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_F77="$ac_prog"
6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6598 if test -n "$ac_ct_F77"; then
6599   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6600 echo "${ECHO_T}$ac_ct_F77" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606
6607   test -n "$ac_ct_F77" && break
6608 done
6609
6610   if test "x$ac_ct_F77" = x; then
6611     F77=""
6612   else
6613     case $cross_compiling:$ac_tool_warned in
6614 yes:)
6615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6616 whose name does not start with the host triplet.  If you think this
6617 configuration is useful to you, please write to autoconf@gnu.org." >&5
6618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6619 whose name does not start with the host triplet.  If you think this
6620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6621 ac_tool_warned=yes ;;
6622 esac
6623     F77=$ac_ct_F77
6624   fi
6625 fi
6626
6627
6628 # Provide some information about the compiler.
6629 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6630 ac_compiler=`set X $ac_compile; echo $2`
6631 { (ac_try="$ac_compiler --version >&5"
6632 case "(($ac_try" in
6633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634   *) ac_try_echo=$ac_try;;
6635 esac
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637   (eval "$ac_compiler --version >&5") 2>&5
6638   ac_status=$?
6639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); }
6641 { (ac_try="$ac_compiler -v >&5"
6642 case "(($ac_try" in
6643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644   *) ac_try_echo=$ac_try;;
6645 esac
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647   (eval "$ac_compiler -v >&5") 2>&5
6648   ac_status=$?
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); }
6651 { (ac_try="$ac_compiler -V >&5"
6652 case "(($ac_try" in
6653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654   *) ac_try_echo=$ac_try;;
6655 esac
6656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657   (eval "$ac_compiler -V >&5") 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }
6661 rm -f a.out
6662
6663 # If we don't use `.F' as extension, the preprocessor is not run on the
6664 # input file.  (Note that this only needs to work for GNU compilers.)
6665 ac_save_ext=$ac_ext
6666 ac_ext=F
6667 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6668 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6669 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   cat >conftest.$ac_ext <<_ACEOF
6673       program main
6674 #ifndef __GNUC__
6675        choke me
6676 #endif
6677
6678       end
6679 _ACEOF
6680 rm -f conftest.$ac_objext
6681 if { (ac_try="$ac_compile"
6682 case "(($ac_try" in
6683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684   *) ac_try_echo=$ac_try;;
6685 esac
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687   (eval "$ac_compile") 2>conftest.er1
6688   ac_status=$?
6689   grep -v '^ *+' conftest.er1 >conftest.err
6690   rm -f conftest.er1
6691   cat conftest.err >&5
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); } &&
6694          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6695   { (case "(($ac_try" in
6696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697   *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700   (eval "$ac_try") 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; } &&
6704          { ac_try='test -s conftest.$ac_objext'
6705   { (case "(($ac_try" in
6706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707   *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710   (eval "$ac_try") 2>&5
6711   ac_status=$?
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); }; }; then
6714   ac_compiler_gnu=yes
6715 else
6716   echo "$as_me: failed program was:" >&5
6717 sed 's/^/| /' conftest.$ac_ext >&5
6718
6719         ac_compiler_gnu=no
6720 fi
6721
6722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6724
6725 fi
6726 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6727 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6728 ac_ext=$ac_save_ext
6729 ac_test_FFLAGS=${FFLAGS+set}
6730 ac_save_FFLAGS=$FFLAGS
6731 FFLAGS=
6732 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6733 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6734 if test "${ac_cv_prog_f77_g+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   FFLAGS=-g
6738 cat >conftest.$ac_ext <<_ACEOF
6739       program main
6740
6741       end
6742 _ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (ac_try="$ac_compile"
6745 case "(($ac_try" in
6746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747   *) ac_try_echo=$ac_try;;
6748 esac
6749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750   (eval "$ac_compile") 2>conftest.er1
6751   ac_status=$?
6752   grep -v '^ *+' conftest.er1 >conftest.err
6753   rm -f conftest.er1
6754   cat conftest.err >&5
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); } &&
6757          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
6758   { (case "(($ac_try" in
6759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760   *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763   (eval "$ac_try") 2>&5
6764   ac_status=$?
6765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); }; } &&
6767          { ac_try='test -s conftest.$ac_objext'
6768   { (case "(($ac_try" in
6769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770   *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773   (eval "$ac_try") 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); }; }; then
6777   ac_cv_prog_f77_g=yes
6778 else
6779   echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782         ac_cv_prog_f77_g=no
6783 fi
6784
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786
6787 fi
6788 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6789 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6790 if test "$ac_test_FFLAGS" = set; then
6791   FFLAGS=$ac_save_FFLAGS
6792 elif test $ac_cv_prog_f77_g = yes; then
6793   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6794     FFLAGS="-g -O2"
6795   else
6796     FFLAGS="-g"
6797   fi
6798 else
6799   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6800     FFLAGS="-O2"
6801   else
6802     FFLAGS=
6803   fi
6804 fi
6805
6806 G77=`test $ac_compiler_gnu = yes && echo yes`
6807 ac_ext=c
6808 ac_cpp='$CPP $CPPFLAGS'
6809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6812
6813
6814
6815 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6816
6817 # find the maximum length of command line arguments
6818 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6819 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6820 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823     i=0
6824   teststring="ABCD"
6825
6826   case $build_os in
6827   msdosdjgpp*)
6828     # On DJGPP, this test can blow up pretty badly due to problems in libc
6829     # (any single argument exceeding 2000 bytes causes a buffer overrun
6830     # during glob expansion).  Even if it were fixed, the result of this
6831     # check would be larger than it should be.
6832     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6833     ;;
6834
6835   gnu*)
6836     # Under GNU Hurd, this test is not required because there is
6837     # no limit to the length of command line arguments.
6838     # Libtool will interpret -1 as no limit whatsoever
6839     lt_cv_sys_max_cmd_len=-1;
6840     ;;
6841
6842   cygwin* | mingw*)
6843     # On Win9x/ME, this test blows up -- it succeeds, but takes
6844     # about 5 minutes as the teststring grows exponentially.
6845     # Worse, since 9x/ME are not pre-emptively multitasking,
6846     # you end up with a "frozen" computer, even though with patience
6847     # the test eventually succeeds (with a max line length of 256k).
6848     # Instead, let's just punt: use the minimum linelength reported by
6849     # all of the supported platforms: 8192 (on NT/2K/XP).
6850     lt_cv_sys_max_cmd_len=8192;
6851     ;;
6852
6853   amigaos*)
6854     # On AmigaOS with pdksh, this test takes hours, literally.
6855     # So we just punt and use a minimum line length of 8192.
6856     lt_cv_sys_max_cmd_len=8192;
6857     ;;
6858
6859   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6860     # This has been around since 386BSD, at least.  Likely further.
6861     if test -x /sbin/sysctl; then
6862       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6863     elif test -x /usr/sbin/sysctl; then
6864       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6865     else
6866       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6867     fi
6868     # And add a safety zone
6869     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6870     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6871     ;;
6872
6873   interix*)
6874     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6875     lt_cv_sys_max_cmd_len=196608
6876     ;;
6877
6878   osf*)
6879     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6880     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6881     # nice to cause kernel panics so lets avoid the loop below.
6882     # First set a reasonable default.
6883     lt_cv_sys_max_cmd_len=16384
6884     #
6885     if test -x /sbin/sysconfig; then
6886       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6887         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6888       esac
6889     fi
6890     ;;
6891   sco3.2v5*)
6892     lt_cv_sys_max_cmd_len=102400
6893     ;;
6894   sysv5* | sco5v6* | sysv4.2uw2*)
6895     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6896     if test -n "$kargmax"; then
6897       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6898     else
6899       lt_cv_sys_max_cmd_len=32768
6900     fi
6901     ;;
6902   *)
6903     # If test is not a shell built-in, we'll probably end up computing a
6904     # maximum length that is only half of the actual maximum length, but
6905     # we can't tell.
6906     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6907     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6908                = "XX$teststring") >/dev/null 2>&1 &&
6909             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6910             lt_cv_sys_max_cmd_len=$new_result &&
6911             test $i != 17 # 1/2 MB should be enough
6912     do
6913       i=`expr $i + 1`
6914       teststring=$teststring$teststring
6915     done
6916     teststring=
6917     # Add a significant safety factor because C++ compilers can tack on massive
6918     # amounts of additional arguments before passing them to the linker.
6919     # It appears as though 1/2 is a usable value.
6920     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6921     ;;
6922   esac
6923
6924 fi
6925
6926 if test -n $lt_cv_sys_max_cmd_len ; then
6927   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6928 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6929 else
6930   { echo "$as_me:$LINENO: result: none" >&5
6931 echo "${ECHO_T}none" >&6; }
6932 fi
6933
6934
6935
6936
6937 # Check for command to grab the raw symbol name followed by C symbol from nm.
6938 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6939 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6940 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6941   echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943
6944 # These are sane defaults that work on at least a few old systems.
6945 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6946
6947 # Character class describing NM global symbol codes.
6948 symcode='[BCDEGRST]'
6949
6950 # Regexp to match symbols that can be accessed directly from C.
6951 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6952
6953 # Transform an extracted symbol line into a proper C declaration
6954 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6955
6956 # Transform an extracted symbol line into symbol name and symbol address
6957 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'"
6958
6959 # Define system-specific variables.
6960 case $host_os in
6961 aix*)
6962   symcode='[BCDT]'
6963   ;;
6964 cygwin* | mingw* | pw32*)
6965   symcode='[ABCDGISTW]'
6966   ;;
6967 hpux*) # Its linker distinguishes data from code symbols
6968   if test "$host_cpu" = ia64; then
6969     symcode='[ABCDEGRST]'
6970   fi
6971   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6972   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'"
6973   ;;
6974 linux*)
6975   if test "$host_cpu" = ia64; then
6976     symcode='[ABCDGIRSTW]'
6977     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6978     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'"
6979   fi
6980   ;;
6981 irix* | nonstopux*)
6982   symcode='[BCDEGRST]'
6983   ;;
6984 osf*)
6985   symcode='[BCDEGQRST]'
6986   ;;
6987 solaris*)
6988   symcode='[BDRT]'
6989   ;;
6990 sco3.2v5*)
6991   symcode='[DT]'
6992   ;;
6993 sysv4.2uw2*)
6994   symcode='[DT]'
6995   ;;
6996 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6997   symcode='[ABDT]'
6998   ;;
6999 sysv4)
7000   symcode='[DFNSTU]'
7001   ;;
7002 esac
7003
7004 # Handle CRLF in mingw tool chain
7005 opt_cr=
7006 case $build_os in
7007 mingw*)
7008   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7009   ;;
7010 esac
7011
7012 # If we're using GNU nm, then use its standard symbol codes.
7013 case `$NM -V 2>&1` in
7014 *GNU* | *'with BFD'*)
7015   symcode='[ABCDGIRSTW]' ;;
7016 esac
7017
7018 # Try without a prefix undercore, then with it.
7019 for ac_symprfx in "" "_"; do
7020
7021   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7022   symxfrm="\\1 $ac_symprfx\\2 \\2"
7023
7024   # Write the raw and C identifiers.
7025   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7026
7027   # Check to see that the pipe works correctly.
7028   pipe_works=no
7029
7030   rm -f conftest*
7031   cat > conftest.$ac_ext <<EOF
7032 #ifdef __cplusplus
7033 extern "C" {
7034 #endif
7035 char nm_test_var;
7036 void nm_test_func(){}
7037 #ifdef __cplusplus
7038 }
7039 #endif
7040 int main(){nm_test_var='a';nm_test_func();return(0);}
7041 EOF
7042
7043   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044   (eval $ac_compile) 2>&5
7045   ac_status=$?
7046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); }; then
7048     # Now try to grab the symbols.
7049     nlist=conftest.nm
7050     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7051   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7052   ac_status=$?
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); } && test -s "$nlist"; then
7055       # Try sorting and uniquifying the output.
7056       if sort "$nlist" | uniq > "$nlist"T; then
7057         mv -f "$nlist"T "$nlist"
7058       else
7059         rm -f "$nlist"T
7060       fi
7061
7062       # Make sure that we snagged all the symbols we need.
7063       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7064         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7065           cat <<EOF > conftest.$ac_ext
7066 #ifdef __cplusplus
7067 extern "C" {
7068 #endif
7069
7070 EOF
7071           # Now generate the symbol file.
7072           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7073
7074           cat <<EOF >> conftest.$ac_ext
7075 #if defined (__STDC__) && __STDC__
7076 # define lt_ptr_t void *
7077 #else
7078 # define lt_ptr_t char *
7079 # define const
7080 #endif
7081
7082 /* The mapping between symbol names and symbols. */
7083 const struct {
7084   const char *name;
7085   lt_ptr_t address;
7086 }
7087 lt_preloaded_symbols[] =
7088 {
7089 EOF
7090           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7091           cat <<\EOF >> conftest.$ac_ext
7092   {0, (lt_ptr_t) 0}
7093 };
7094
7095 #ifdef __cplusplus
7096 }
7097 #endif
7098 EOF
7099           # Now try linking the two files.
7100           mv conftest.$ac_objext conftstm.$ac_objext
7101           lt_save_LIBS="$LIBS"
7102           lt_save_CFLAGS="$CFLAGS"
7103           LIBS="conftstm.$ac_objext"
7104           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7105           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7106   (eval $ac_link) 2>&5
7107   ac_status=$?
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7110             pipe_works=yes
7111           fi
7112           LIBS="$lt_save_LIBS"
7113           CFLAGS="$lt_save_CFLAGS"
7114         else
7115           echo "cannot find nm_test_func in $nlist" >&5
7116         fi
7117       else
7118         echo "cannot find nm_test_var in $nlist" >&5
7119       fi
7120     else
7121       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7122     fi
7123   else
7124     echo "$progname: failed program was:" >&5
7125     cat conftest.$ac_ext >&5
7126   fi
7127   rm -f conftest* conftst*
7128
7129   # Do not use the global_symbol_pipe unless it works.
7130   if test "$pipe_works" = yes; then
7131     break
7132   else
7133     lt_cv_sys_global_symbol_pipe=
7134   fi
7135 done
7136
7137 fi
7138
7139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7140   lt_cv_sys_global_symbol_to_cdecl=
7141 fi
7142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7143   { echo "$as_me:$LINENO: result: failed" >&5
7144 echo "${ECHO_T}failed" >&6; }
7145 else
7146   { echo "$as_me:$LINENO: result: ok" >&5
7147 echo "${ECHO_T}ok" >&6; }
7148 fi
7149
7150 { echo "$as_me:$LINENO: checking for objdir" >&5
7151 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7152 if test "${lt_cv_objdir+set}" = set; then
7153   echo $ECHO_N "(cached) $ECHO_C" >&6
7154 else
7155   rm -f .libs 2>/dev/null
7156 mkdir .libs 2>/dev/null
7157 if test -d .libs; then
7158   lt_cv_objdir=.libs
7159 else
7160   # MS-DOS does not allow filenames that begin with a dot.
7161   lt_cv_objdir=_libs
7162 fi
7163 rmdir .libs 2>/dev/null
7164 fi
7165 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7166 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7167 objdir=$lt_cv_objdir
7168
7169
7170
7171
7172
7173 case $host_os in
7174 aix3*)
7175   # AIX sometimes has problems with the GCC collect2 program.  For some
7176   # reason, if we set the COLLECT_NAMES environment variable, the problems
7177   # vanish in a puff of smoke.
7178   if test "X${COLLECT_NAMES+set}" != Xset; then
7179     COLLECT_NAMES=
7180     export COLLECT_NAMES
7181   fi
7182   ;;
7183 esac
7184
7185 # Sed substitution that helps us do robust quoting.  It backslashifies
7186 # metacharacters that are still active within double-quoted strings.
7187 Xsed='sed -e 1s/^X//'
7188 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7189
7190 # Same as above, but do not quote variable references.
7191 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7192
7193 # Sed substitution to delay expansion of an escaped shell variable in a
7194 # double_quote_subst'ed string.
7195 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7196
7197 # Sed substitution to avoid accidental globbing in evaled expressions
7198 no_glob_subst='s/\*/\\\*/g'
7199
7200 # Constants:
7201 rm="rm -f"
7202
7203 # Global variables:
7204 default_ofile=libtool
7205 can_build_shared=yes
7206
7207 # All known linkers require a `.a' archive for static linking (except MSVC,
7208 # which needs '.lib').
7209 libext=a
7210 ltmain="$ac_aux_dir/ltmain.sh"
7211 ofile="$default_ofile"
7212 with_gnu_ld="$lt_cv_prog_gnu_ld"
7213
7214 if test -n "$ac_tool_prefix"; then
7215   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7216 set dummy ${ac_tool_prefix}ar; ac_word=$2
7217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7219 if test "${ac_cv_prog_AR+set}" = set; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   if test -n "$AR"; then
7223   ac_cv_prog_AR="$AR" # Let the user override the test.
7224 else
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228   IFS=$as_save_IFS
7229   test -z "$as_dir" && as_dir=.
7230   for ac_exec_ext in '' $ac_executable_extensions; do
7231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232     ac_cv_prog_AR="${ac_tool_prefix}ar"
7233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234     break 2
7235   fi
7236 done
7237 done
7238 IFS=$as_save_IFS
7239
7240 fi
7241 fi
7242 AR=$ac_cv_prog_AR
7243 if test -n "$AR"; then
7244   { echo "$as_me:$LINENO: result: $AR" >&5
7245 echo "${ECHO_T}$AR" >&6; }
7246 else
7247   { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7249 fi
7250
7251
7252 fi
7253 if test -z "$ac_cv_prog_AR"; then
7254   ac_ct_AR=$AR
7255   # Extract the first word of "ar", so it can be a program name with args.
7256 set dummy ar; ac_word=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7260   echo $ECHO_N "(cached) $ECHO_C" >&6
7261 else
7262   if test -n "$ac_ct_AR"; then
7263   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270   for ac_exec_ext in '' $ac_executable_extensions; do
7271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272     ac_cv_prog_ac_ct_AR="ar"
7273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277 done
7278 IFS=$as_save_IFS
7279
7280 fi
7281 fi
7282 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7283 if test -n "$ac_ct_AR"; then
7284   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7285 echo "${ECHO_T}$ac_ct_AR" >&6; }
7286 else
7287   { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7289 fi
7290
7291   if test "x$ac_ct_AR" = x; then
7292     AR="false"
7293   else
7294     case $cross_compiling:$ac_tool_warned in
7295 yes:)
7296 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7297 whose name does not start with the host triplet.  If you think this
7298 configuration is useful to you, please write to autoconf@gnu.org." >&5
7299 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7300 whose name does not start with the host triplet.  If you think this
7301 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304     AR=$ac_ct_AR
7305   fi
7306 else
7307   AR="$ac_cv_prog_AR"
7308 fi
7309
7310 if test -n "$ac_tool_prefix"; then
7311   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_prog_RANLIB+set}" = set; then
7316   echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318   if test -n "$RANLIB"; then
7319   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324   IFS=$as_save_IFS
7325   test -z "$as_dir" && as_dir=.
7326   for ac_exec_ext in '' $ac_executable_extensions; do
7327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7328     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7330     break 2
7331   fi
7332 done
7333 done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 RANLIB=$ac_cv_prog_RANLIB
7339 if test -n "$RANLIB"; then
7340   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7341 echo "${ECHO_T}$RANLIB" >&6; }
7342 else
7343   { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7345 fi
7346
7347
7348 fi
7349 if test -z "$ac_cv_prog_RANLIB"; then
7350   ac_ct_RANLIB=$RANLIB
7351   # Extract the first word of "ranlib", so it can be a program name with args.
7352 set dummy ranlib; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358   if test -n "$ac_ct_RANLIB"; then
7359   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366   for ac_exec_ext in '' $ac_executable_extensions; do
7367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368     ac_cv_prog_ac_ct_RANLIB="ranlib"
7369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373 done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7379 if test -n "$ac_ct_RANLIB"; then
7380   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7381 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7382 else
7383   { echo "$as_me:$LINENO: result: no" >&5
7384 echo "${ECHO_T}no" >&6; }
7385 fi
7386
7387   if test "x$ac_ct_RANLIB" = x; then
7388     RANLIB=":"
7389   else
7390     case $cross_compiling:$ac_tool_warned in
7391 yes:)
7392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7393 whose name does not start with the host triplet.  If you think this
7394 configuration is useful to you, please write to autoconf@gnu.org." >&5
7395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7396 whose name does not start with the host triplet.  If you think this
7397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7398 ac_tool_warned=yes ;;
7399 esac
7400     RANLIB=$ac_ct_RANLIB
7401   fi
7402 else
7403   RANLIB="$ac_cv_prog_RANLIB"
7404 fi
7405
7406 if test -n "$ac_tool_prefix"; then
7407   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}strip; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_prog_STRIP+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414   if test -n "$STRIP"; then
7415   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7419 do
7420   IFS=$as_save_IFS
7421   test -z "$as_dir" && as_dir=.
7422   for ac_exec_ext in '' $ac_executable_extensions; do
7423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426     break 2
7427   fi
7428 done
7429 done
7430 IFS=$as_save_IFS
7431
7432 fi
7433 fi
7434 STRIP=$ac_cv_prog_STRIP
7435 if test -n "$STRIP"; then
7436   { echo "$as_me:$LINENO: result: $STRIP" >&5
7437 echo "${ECHO_T}$STRIP" >&6; }
7438 else
7439   { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7441 fi
7442
7443
7444 fi
7445 if test -z "$ac_cv_prog_STRIP"; then
7446   ac_ct_STRIP=$STRIP
7447   # Extract the first word of "strip", so it can be a program name with args.
7448 set dummy strip; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   if test -n "$ac_ct_STRIP"; then
7455   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462   for ac_exec_ext in '' $ac_executable_extensions; do
7463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464     ac_cv_prog_ac_ct_STRIP="strip"
7465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469 done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7475 if test -n "$ac_ct_STRIP"; then
7476   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7477 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7478 else
7479   { echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6; }
7481 fi
7482
7483   if test "x$ac_ct_STRIP" = x; then
7484     STRIP=":"
7485   else
7486     case $cross_compiling:$ac_tool_warned in
7487 yes:)
7488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7489 whose name does not start with the host triplet.  If you think this
7490 configuration is useful to you, please write to autoconf@gnu.org." >&5
7491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7492 whose name does not start with the host triplet.  If you think this
7493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7494 ac_tool_warned=yes ;;
7495 esac
7496     STRIP=$ac_ct_STRIP
7497   fi
7498 else
7499   STRIP="$ac_cv_prog_STRIP"
7500 fi
7501
7502
7503 old_CC="$CC"
7504 old_CFLAGS="$CFLAGS"
7505
7506 # Set sane defaults for various variables
7507 test -z "$AR" && AR=ar
7508 test -z "$AR_FLAGS" && AR_FLAGS=cru
7509 test -z "$AS" && AS=as
7510 test -z "$CC" && CC=cc
7511 test -z "$LTCC" && LTCC=$CC
7512 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7513 test -z "$DLLTOOL" && DLLTOOL=dlltool
7514 test -z "$LD" && LD=ld
7515 test -z "$LN_S" && LN_S="ln -s"
7516 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7517 test -z "$NM" && NM=nm
7518 test -z "$SED" && SED=sed
7519 test -z "$OBJDUMP" && OBJDUMP=objdump
7520 test -z "$RANLIB" && RANLIB=:
7521 test -z "$STRIP" && STRIP=:
7522 test -z "$ac_objext" && ac_objext=o
7523
7524 # Determine commands to create old-style static archives.
7525 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7526 old_postinstall_cmds='chmod 644 $oldlib'
7527 old_postuninstall_cmds=
7528
7529 if test -n "$RANLIB"; then
7530   case $host_os in
7531   openbsd*)
7532     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7533     ;;
7534   *)
7535     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7536     ;;
7537   esac
7538   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7539 fi
7540
7541 for cc_temp in $compiler""; do
7542   case $cc_temp in
7543     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7544     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7545     \-*) ;;
7546     *) break;;
7547   esac
7548 done
7549 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7550
7551
7552 # Only perform the check for file, if the check method requires it
7553 case $deplibs_check_method in
7554 file_magic*)
7555   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7556     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7557 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7558 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7559   echo $ECHO_N "(cached) $ECHO_C" >&6
7560 else
7561   case $MAGIC_CMD in
7562 [\\/*] |  ?:[\\/]*)
7563   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7564   ;;
7565 *)
7566   lt_save_MAGIC_CMD="$MAGIC_CMD"
7567   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7568   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7569   for ac_dir in $ac_dummy; do
7570     IFS="$lt_save_ifs"
7571     test -z "$ac_dir" && ac_dir=.
7572     if test -f $ac_dir/${ac_tool_prefix}file; then
7573       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7574       if test -n "$file_magic_test_file"; then
7575         case $deplibs_check_method in
7576         "file_magic "*)
7577           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7578           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7579           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7580             $EGREP "$file_magic_regex" > /dev/null; then
7581             :
7582           else
7583             cat <<EOF 1>&2
7584
7585 *** Warning: the command libtool uses to detect shared libraries,
7586 *** $file_magic_cmd, produces output that libtool cannot recognize.
7587 *** The result is that libtool may fail to recognize shared libraries
7588 *** as such.  This will affect the creation of libtool libraries that
7589 *** depend on shared libraries, but programs linked with such libtool
7590 *** libraries will work regardless of this problem.  Nevertheless, you
7591 *** may want to report the problem to your system manager and/or to
7592 *** bug-libtool@gnu.org
7593
7594 EOF
7595           fi ;;
7596         esac
7597       fi
7598       break
7599     fi
7600   done
7601   IFS="$lt_save_ifs"
7602   MAGIC_CMD="$lt_save_MAGIC_CMD"
7603   ;;
7604 esac
7605 fi
7606
7607 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7608 if test -n "$MAGIC_CMD"; then
7609   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7610 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7611 else
7612   { echo "$as_me:$LINENO: result: no" >&5
7613 echo "${ECHO_T}no" >&6; }
7614 fi
7615
7616 if test -z "$lt_cv_path_MAGIC_CMD"; then
7617   if test -n "$ac_tool_prefix"; then
7618     { echo "$as_me:$LINENO: checking for file" >&5
7619 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7620 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7621   echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623   case $MAGIC_CMD in
7624 [\\/*] |  ?:[\\/]*)
7625   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7626   ;;
7627 *)
7628   lt_save_MAGIC_CMD="$MAGIC_CMD"
7629   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7630   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7631   for ac_dir in $ac_dummy; do
7632     IFS="$lt_save_ifs"
7633     test -z "$ac_dir" && ac_dir=.
7634     if test -f $ac_dir/file; then
7635       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7636       if test -n "$file_magic_test_file"; then
7637         case $deplibs_check_method in
7638         "file_magic "*)
7639           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7640           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7642             $EGREP "$file_magic_regex" > /dev/null; then
7643             :
7644           else
7645             cat <<EOF 1>&2
7646
7647 *** Warning: the command libtool uses to detect shared libraries,
7648 *** $file_magic_cmd, produces output that libtool cannot recognize.
7649 *** The result is that libtool may fail to recognize shared libraries
7650 *** as such.  This will affect the creation of libtool libraries that
7651 *** depend on shared libraries, but programs linked with such libtool
7652 *** libraries will work regardless of this problem.  Nevertheless, you
7653 *** may want to report the problem to your system manager and/or to
7654 *** bug-libtool@gnu.org
7655
7656 EOF
7657           fi ;;
7658         esac
7659       fi
7660       break
7661     fi
7662   done
7663   IFS="$lt_save_ifs"
7664   MAGIC_CMD="$lt_save_MAGIC_CMD"
7665   ;;
7666 esac
7667 fi
7668
7669 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7670 if test -n "$MAGIC_CMD"; then
7671   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7672 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7673 else
7674   { echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6; }
7676 fi
7677
7678   else
7679     MAGIC_CMD=:
7680   fi
7681 fi
7682
7683   fi
7684   ;;
7685 esac
7686
7687 enable_dlopen=yes
7688 enable_win32_dll=no
7689
7690 # Check whether --enable-libtool-lock was given.
7691 if test "${enable_libtool_lock+set}" = set; then
7692   enableval=$enable_libtool_lock;
7693 fi
7694
7695 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7696
7697
7698 # Check whether --with-pic was given.
7699 if test "${with_pic+set}" = set; then
7700   withval=$with_pic; pic_mode="$withval"
7701 else
7702   pic_mode=default
7703 fi
7704
7705 test -z "$pic_mode" && pic_mode=default
7706
7707 # Use C for the default configuration in the libtool script
7708 tagname=
7709 lt_save_CC="$CC"
7710 ac_ext=c
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716
7717 # Source file extension for C test sources.
7718 ac_ext=c
7719
7720 # Object file extension for compiled C test sources.
7721 objext=o
7722 objext=$objext
7723
7724 # Code to be used in simple compile tests
7725 lt_simple_compile_test_code="int some_variable = 0;\n"
7726
7727 # Code to be used in simple link tests
7728 lt_simple_link_test_code='int main(){return(0);}\n'
7729
7730
7731 # If no C compiler was specified, use CC.
7732 LTCC=${LTCC-"$CC"}
7733
7734 # If no C compiler flags were specified, use CFLAGS.
7735 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7736
7737 # Allow CC to be a program name with arguments.
7738 compiler=$CC
7739
7740
7741 # save warnings/boilerplate of simple test code
7742 ac_outfile=conftest.$ac_objext
7743 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7744 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7745 _lt_compiler_boilerplate=`cat conftest.err`
7746 $rm conftest*
7747
7748 ac_outfile=conftest.$ac_objext
7749 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7750 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7751 _lt_linker_boilerplate=`cat conftest.err`
7752 $rm conftest*
7753
7754
7755 ## CAVEAT EMPTOR:
7756 ## There is no encapsulation within the following macros, do not change
7757 ## the running order or otherwise move them around unless you know exactly
7758 ## what you are doing...
7759
7760 lt_prog_compiler_no_builtin_flag=
7761
7762 if test "$GCC" = yes; then
7763   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7764
7765
7766 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7767 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7768 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7769   echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771   lt_cv_prog_compiler_rtti_exceptions=no
7772   ac_outfile=conftest.$ac_objext
7773    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7774    lt_compiler_flag="-fno-rtti -fno-exceptions"
7775    # Insert the option either (1) after the last *FLAGS variable, or
7776    # (2) before a word containing "conftest.", or (3) at the end.
7777    # Note that $ac_compile itself does not contain backslashes and begins
7778    # with a dollar sign (not a hyphen), so the echo should work correctly.
7779    # The option is referenced via a variable to avoid confusing sed.
7780    lt_compile=`echo "$ac_compile" | $SED \
7781    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783    -e 's:$: $lt_compiler_flag:'`
7784    (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
7785    (eval "$lt_compile" 2>conftest.err)
7786    ac_status=$?
7787    cat conftest.err >&5
7788    echo "$as_me:7788: \$? = $ac_status" >&5
7789    if (exit $ac_status) && test -s "$ac_outfile"; then
7790      # The compiler can only warn and ignore the option if not recognized
7791      # So say no if there are warnings other than the usual output.
7792      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7793      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7795        lt_cv_prog_compiler_rtti_exceptions=yes
7796      fi
7797    fi
7798    $rm conftest*
7799
7800 fi
7801 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7802 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7803
7804 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7805     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7806 else
7807     :
7808 fi
7809
7810 fi
7811
7812 lt_prog_compiler_wl=
7813 lt_prog_compiler_pic=
7814 lt_prog_compiler_static=
7815
7816 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7817 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7818
7819   if test "$GCC" = yes; then
7820     lt_prog_compiler_wl='-Wl,'
7821     lt_prog_compiler_static='-static'
7822
7823     case $host_os in
7824       aix*)
7825       # All AIX code is PIC.
7826       if test "$host_cpu" = ia64; then
7827         # AIX 5 now supports IA64 processor
7828         lt_prog_compiler_static='-Bstatic'
7829       fi
7830       ;;
7831
7832     amigaos*)
7833       # FIXME: we need at least 68020 code to build shared libraries, but
7834       # adding the `-m68020' flag to GCC prevents building anything better,
7835       # like `-m68040'.
7836       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7837       ;;
7838
7839     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7840       # PIC is the default for these OSes.
7841       ;;
7842
7843     mingw* | pw32* | os2*)
7844       # This hack is so that the source file can tell whether it is being
7845       # built for inclusion in a dll (and should export symbols for example).
7846       lt_prog_compiler_pic='-DDLL_EXPORT'
7847       ;;
7848
7849     darwin* | rhapsody*)
7850       # PIC is the default on this platform
7851       # Common symbols not allowed in MH_DYLIB files
7852       lt_prog_compiler_pic='-fno-common'
7853       ;;
7854
7855     interix3*)
7856       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7857       # Instead, we relocate shared libraries at runtime.
7858       ;;
7859
7860     msdosdjgpp*)
7861       # Just because we use GCC doesn't mean we suddenly get shared libraries
7862       # on systems that don't support them.
7863       lt_prog_compiler_can_build_shared=no
7864       enable_shared=no
7865       ;;
7866
7867     sysv4*MP*)
7868       if test -d /usr/nec; then
7869         lt_prog_compiler_pic=-Kconform_pic
7870       fi
7871       ;;
7872
7873     hpux*)
7874       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7875       # not for PA HP-UX.
7876       case $host_cpu in
7877       hppa*64*|ia64*)
7878         # +Z the default
7879         ;;
7880       *)
7881         lt_prog_compiler_pic='-fPIC'
7882         ;;
7883       esac
7884       ;;
7885
7886     *)
7887       lt_prog_compiler_pic='-fPIC'
7888       ;;
7889     esac
7890   else
7891     # PORTME Check for flag to pass linker flags through the system compiler.
7892     case $host_os in
7893     aix*)
7894       lt_prog_compiler_wl='-Wl,'
7895       if test "$host_cpu" = ia64; then
7896         # AIX 5 now supports IA64 processor
7897         lt_prog_compiler_static='-Bstatic'
7898       else
7899         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7900       fi
7901       ;;
7902       darwin*)
7903         # PIC is the default on this platform
7904         # Common symbols not allowed in MH_DYLIB files
7905        case $cc_basename in
7906          xlc*)
7907          lt_prog_compiler_pic='-qnocommon'
7908          lt_prog_compiler_wl='-Wl,'
7909          ;;
7910        esac
7911        ;;
7912
7913     mingw* | pw32* | os2*)
7914       # This hack is so that the source file can tell whether it is being
7915       # built for inclusion in a dll (and should export symbols for example).
7916       lt_prog_compiler_pic='-DDLL_EXPORT'
7917       ;;
7918
7919     hpux9* | hpux10* | hpux11*)
7920       lt_prog_compiler_wl='-Wl,'
7921       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7922       # not for PA HP-UX.
7923       case $host_cpu in
7924       hppa*64*|ia64*)
7925         # +Z the default
7926         ;;
7927       *)
7928         lt_prog_compiler_pic='+Z'
7929         ;;
7930       esac
7931       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7932       lt_prog_compiler_static='${wl}-a ${wl}archive'
7933       ;;
7934
7935     irix5* | irix6* | nonstopux*)
7936       lt_prog_compiler_wl='-Wl,'
7937       # PIC (with -KPIC) is the default.
7938       lt_prog_compiler_static='-non_shared'
7939       ;;
7940
7941     newsos6)
7942       lt_prog_compiler_pic='-KPIC'
7943       lt_prog_compiler_static='-Bstatic'
7944       ;;
7945
7946     linux*)
7947       case $cc_basename in
7948       icc* | ecc*)
7949         lt_prog_compiler_wl='-Wl,'
7950         lt_prog_compiler_pic='-KPIC'
7951         lt_prog_compiler_static='-static'
7952         ;;
7953       pgcc* | pgf77* | pgf90* | pgf95*)
7954         # Portland Group compilers (*not* the Pentium gcc compiler,
7955         # which looks to be a dead project)
7956         lt_prog_compiler_wl='-Wl,'
7957         lt_prog_compiler_pic='-fpic'
7958         lt_prog_compiler_static='-Bstatic'
7959         ;;
7960       ccc*)
7961         lt_prog_compiler_wl='-Wl,'
7962         # All Alpha code is PIC.
7963         lt_prog_compiler_static='-non_shared'
7964         ;;
7965       esac
7966       ;;
7967
7968     osf3* | osf4* | osf5*)
7969       lt_prog_compiler_wl='-Wl,'
7970       # All OSF/1 code is PIC.
7971       lt_prog_compiler_static='-non_shared'
7972       ;;
7973
7974     solaris*)
7975       lt_prog_compiler_pic='-KPIC'
7976       lt_prog_compiler_static='-Bstatic'
7977       case $cc_basename in
7978       f77* | f90* | f95*)
7979         lt_prog_compiler_wl='-Qoption ld ';;
7980       *)
7981         lt_prog_compiler_wl='-Wl,';;
7982       esac
7983       ;;
7984
7985     sunos4*)
7986       lt_prog_compiler_wl='-Qoption ld '
7987       lt_prog_compiler_pic='-PIC'
7988       lt_prog_compiler_static='-Bstatic'
7989       ;;
7990
7991     sysv4 | sysv4.2uw2* | sysv4.3*)
7992       lt_prog_compiler_wl='-Wl,'
7993       lt_prog_compiler_pic='-KPIC'
7994       lt_prog_compiler_static='-Bstatic'
7995       ;;
7996
7997     sysv4*MP*)
7998       if test -d /usr/nec ;then
7999         lt_prog_compiler_pic='-Kconform_pic'
8000         lt_prog_compiler_static='-Bstatic'
8001       fi
8002       ;;
8003
8004     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8005       lt_prog_compiler_wl='-Wl,'
8006       lt_prog_compiler_pic='-KPIC'
8007       lt_prog_compiler_static='-Bstatic'
8008       ;;
8009
8010     unicos*)
8011       lt_prog_compiler_wl='-Wl,'
8012       lt_prog_compiler_can_build_shared=no
8013       ;;
8014
8015     uts4*)
8016       lt_prog_compiler_pic='-pic'
8017       lt_prog_compiler_static='-Bstatic'
8018       ;;
8019
8020     *)
8021       lt_prog_compiler_can_build_shared=no
8022       ;;
8023     esac
8024   fi
8025
8026 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8027 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8028
8029 #
8030 # Check to make sure the PIC flag actually works.
8031 #
8032 if test -n "$lt_prog_compiler_pic"; then
8033
8034 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8035 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8036 if test "${lt_prog_compiler_pic_works+set}" = set; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   lt_prog_compiler_pic_works=no
8040   ac_outfile=conftest.$ac_objext
8041    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8042    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8043    # Insert the option either (1) after the last *FLAGS variable, or
8044    # (2) before a word containing "conftest.", or (3) at the end.
8045    # Note that $ac_compile itself does not contain backslashes and begins
8046    # with a dollar sign (not a hyphen), so the echo should work correctly.
8047    # The option is referenced via a variable to avoid confusing sed.
8048    lt_compile=`echo "$ac_compile" | $SED \
8049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051    -e 's:$: $lt_compiler_flag:'`
8052    (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
8053    (eval "$lt_compile" 2>conftest.err)
8054    ac_status=$?
8055    cat conftest.err >&5
8056    echo "$as_me:8056: \$? = $ac_status" >&5
8057    if (exit $ac_status) && test -s "$ac_outfile"; then
8058      # The compiler can only warn and ignore the option if not recognized
8059      # So say no if there are warnings other than the usual output.
8060      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8061      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8062      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8063        lt_prog_compiler_pic_works=yes
8064      fi
8065    fi
8066    $rm conftest*
8067
8068 fi
8069 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8070 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8071
8072 if test x"$lt_prog_compiler_pic_works" = xyes; then
8073     case $lt_prog_compiler_pic in
8074      "" | " "*) ;;
8075      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8076      esac
8077 else
8078     lt_prog_compiler_pic=
8079      lt_prog_compiler_can_build_shared=no
8080 fi
8081
8082 fi
8083 case $host_os in
8084   # For platforms which do not support PIC, -DPIC is meaningless:
8085   *djgpp*)
8086     lt_prog_compiler_pic=
8087     ;;
8088   *)
8089     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8090     ;;
8091 esac
8092
8093 #
8094 # Check to make sure the static flag actually works.
8095 #
8096 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8097 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8098 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8099 if test "${lt_prog_compiler_static_works+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   lt_prog_compiler_static_works=no
8103    save_LDFLAGS="$LDFLAGS"
8104    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8105    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8106    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8107      # The linker can only warn and ignore the option if not recognized
8108      # So say no if there are warnings
8109      if test -s conftest.err; then
8110        # Append any errors to the config.log.
8111        cat conftest.err 1>&5
8112        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8113        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8114        if diff conftest.exp conftest.er2 >/dev/null; then
8115          lt_prog_compiler_static_works=yes
8116        fi
8117      else
8118        lt_prog_compiler_static_works=yes
8119      fi
8120    fi
8121    $rm conftest*
8122    LDFLAGS="$save_LDFLAGS"
8123
8124 fi
8125 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8126 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8127
8128 if test x"$lt_prog_compiler_static_works" = xyes; then
8129     :
8130 else
8131     lt_prog_compiler_static=
8132 fi
8133
8134
8135 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8136 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8137 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8138   echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140   lt_cv_prog_compiler_c_o=no
8141    $rm -r conftest 2>/dev/null
8142    mkdir conftest
8143    cd conftest
8144    mkdir out
8145    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8146
8147    lt_compiler_flag="-o out/conftest2.$ac_objext"
8148    # Insert the option either (1) after the last *FLAGS variable, or
8149    # (2) before a word containing "conftest.", or (3) at the end.
8150    # Note that $ac_compile itself does not contain backslashes and begins
8151    # with a dollar sign (not a hyphen), so the echo should work correctly.
8152    lt_compile=`echo "$ac_compile" | $SED \
8153    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8154    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8155    -e 's:$: $lt_compiler_flag:'`
8156    (eval echo "\"\$as_me:8156: $lt_compile\"" >&5)
8157    (eval "$lt_compile" 2>out/conftest.err)
8158    ac_status=$?
8159    cat out/conftest.err >&5
8160    echo "$as_me:8160: \$? = $ac_status" >&5
8161    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8162    then
8163      # The compiler can only warn and ignore the option if not recognized
8164      # So say no if there are warnings
8165      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8166      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8167      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8168        lt_cv_prog_compiler_c_o=yes
8169      fi
8170    fi
8171    chmod u+w . 2>&5
8172    $rm conftest*
8173    # SGI C++ compiler will create directory out/ii_files/ for
8174    # template instantiation
8175    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8176    $rm out/* && rmdir out
8177    cd ..
8178    rmdir conftest
8179    $rm conftest*
8180
8181 fi
8182 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8183 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8184
8185
8186 hard_links="nottested"
8187 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8188   # do not overwrite the value of need_locks provided by the user
8189   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8190 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8191   hard_links=yes
8192   $rm conftest*
8193   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8194   touch conftest.a
8195   ln conftest.a conftest.b 2>&5 || hard_links=no
8196   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8197   { echo "$as_me:$LINENO: result: $hard_links" >&5
8198 echo "${ECHO_T}$hard_links" >&6; }
8199   if test "$hard_links" = no; then
8200     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8201 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8202     need_locks=warn
8203   fi
8204 else
8205   need_locks=no
8206 fi
8207
8208 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8209 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8210
8211   runpath_var=
8212   allow_undefined_flag=
8213   enable_shared_with_static_runtimes=no
8214   archive_cmds=
8215   archive_expsym_cmds=
8216   old_archive_From_new_cmds=
8217   old_archive_from_expsyms_cmds=
8218   export_dynamic_flag_spec=
8219   whole_archive_flag_spec=
8220   thread_safe_flag_spec=
8221   hardcode_libdir_flag_spec=
8222   hardcode_libdir_flag_spec_ld=
8223   hardcode_libdir_separator=
8224   hardcode_direct=no
8225   hardcode_minus_L=no
8226   hardcode_shlibpath_var=unsupported
8227   link_all_deplibs=unknown
8228   hardcode_automatic=no
8229   module_cmds=
8230   module_expsym_cmds=
8231   always_export_symbols=no
8232   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8233   # include_expsyms should be a list of space-separated symbols to be *always*
8234   # included in the symbol list
8235   include_expsyms=
8236   # exclude_expsyms can be an extended regexp of symbols to exclude
8237   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8238   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8239   # as well as any symbol that contains `d'.
8240   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8241   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8242   # platforms (ab)use it in PIC code, but their linkers get confused if
8243   # the symbol is explicitly referenced.  Since portable code cannot
8244   # rely on this symbol name, it's probably fine to never include it in
8245   # preloaded symbol tables.
8246   extract_expsyms_cmds=
8247   # Just being paranoid about ensuring that cc_basename is set.
8248   for cc_temp in $compiler""; do
8249   case $cc_temp in
8250     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8251     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8252     \-*) ;;
8253     *) break;;
8254   esac
8255 done
8256 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8257
8258   case $host_os in
8259   cygwin* | mingw* | pw32*)
8260     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8261     # When not using gcc, we currently assume that we are using
8262     # Microsoft Visual C++.
8263     if test "$GCC" != yes; then
8264       with_gnu_ld=no
8265     fi
8266     ;;
8267   interix*)
8268     # we just hope/assume this is gcc and not c89 (= MSVC++)
8269     with_gnu_ld=yes
8270     ;;
8271   openbsd*)
8272     with_gnu_ld=no
8273     ;;
8274   esac
8275
8276   ld_shlibs=yes
8277   if test "$with_gnu_ld" = yes; then
8278     # If archive_cmds runs LD, not CC, wlarc should be empty
8279     wlarc='${wl}'
8280
8281     # Set some defaults for GNU ld with shared library support. These
8282     # are reset later if shared libraries are not supported. Putting them
8283     # here allows them to be overridden if necessary.
8284     runpath_var=LD_RUN_PATH
8285     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8286     export_dynamic_flag_spec='${wl}--export-dynamic'
8287     # ancient GNU ld didn't support --whole-archive et. al.
8288     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8289         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8290       else
8291         whole_archive_flag_spec=
8292     fi
8293     supports_anon_versioning=no
8294     case `$LD -v 2>/dev/null` in
8295       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8296       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8297       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8298       *\ 2.11.*) ;; # other 2.11 versions
8299       *) supports_anon_versioning=yes ;;
8300     esac
8301
8302     # See if GNU ld supports shared libraries.
8303     case $host_os in
8304     aix3* | aix4* | aix5*)
8305       # On AIX/PPC, the GNU linker is very broken
8306       if test "$host_cpu" != ia64; then
8307         ld_shlibs=no
8308         cat <<EOF 1>&2
8309
8310 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8311 *** to be unable to reliably create shared libraries on AIX.
8312 *** Therefore, libtool is disabling shared libraries support.  If you
8313 *** really care for shared libraries, you may want to modify your PATH
8314 *** so that a non-GNU linker is found, and then restart.
8315
8316 EOF
8317       fi
8318       ;;
8319
8320     amigaos*)
8321       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)'
8322       hardcode_libdir_flag_spec='-L$libdir'
8323       hardcode_minus_L=yes
8324
8325       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8326       # that the semantics of dynamic libraries on AmigaOS, at least up
8327       # to version 4, is to share data among multiple programs linked
8328       # with the same dynamic library.  Since this doesn't match the
8329       # behavior of shared libraries on other platforms, we can't use
8330       # them.
8331       ld_shlibs=no
8332       ;;
8333
8334     beos*)
8335       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8336         allow_undefined_flag=unsupported
8337         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8338         # support --undefined.  This deserves some investigation.  FIXME
8339         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8340       else
8341         ld_shlibs=no
8342       fi
8343       ;;
8344
8345     cygwin* | mingw* | pw32*)
8346       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8347       # as there is no search path for DLLs.
8348       hardcode_libdir_flag_spec='-L$libdir'
8349       allow_undefined_flag=unsupported
8350       always_export_symbols=no
8351       enable_shared_with_static_runtimes=yes
8352       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8353
8354       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8355         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8356         # If the export-symbols file already is a .def file (1st line
8357         # is EXPORTS), use it as is; otherwise, prepend...
8358         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8359           cp $export_symbols $output_objdir/$soname.def;
8360         else
8361           echo EXPORTS > $output_objdir/$soname.def;
8362           cat $export_symbols >> $output_objdir/$soname.def;
8363         fi~
8364         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8365       else
8366         ld_shlibs=no
8367       fi
8368       ;;
8369
8370     interix3*)
8371       hardcode_direct=no
8372       hardcode_shlibpath_var=no
8373       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8374       export_dynamic_flag_spec='${wl}-E'
8375       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8376       # Instead, shared libraries are loaded at an image base (0x10000000 by
8377       # default) and relocated if they conflict, which is a slow very memory
8378       # consuming and fragmenting process.  To avoid this, we pick a random,
8379       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8380       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8381       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8382       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'
8383       ;;
8384
8385     linux*)
8386       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8387         tmp_addflag=
8388         case $cc_basename,$host_cpu in
8389         pgcc*)                          # Portland Group C compiler
8390           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'
8391           tmp_addflag=' $pic_flag'
8392           ;;
8393         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8394           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'
8395           tmp_addflag=' $pic_flag -Mnomain' ;;
8396         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8397           tmp_addflag=' -i_dynamic' ;;
8398         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8399           tmp_addflag=' -i_dynamic -nofor_main' ;;
8400         ifc* | ifort*)                  # Intel Fortran compiler
8401           tmp_addflag=' -nofor_main' ;;
8402         esac
8403         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8404
8405         if test $supports_anon_versioning = yes; then
8406           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8407   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8408   $echo "local: *; };" >> $output_objdir/$libname.ver~
8409           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8410         fi
8411       else
8412         ld_shlibs=no
8413       fi
8414       ;;
8415
8416     netbsd*)
8417       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8418         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8419         wlarc=
8420       else
8421         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8422         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8423       fi
8424       ;;
8425
8426     solaris*)
8427       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8428         ld_shlibs=no
8429         cat <<EOF 1>&2
8430
8431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8432 *** create shared libraries on Solaris systems.  Therefore, libtool
8433 *** is disabling shared libraries support.  We urge you to upgrade GNU
8434 *** binutils to release 2.9.1 or newer.  Another option is to modify
8435 *** your PATH or compiler configuration so that the native linker is
8436 *** used, and then restart.
8437
8438 EOF
8439       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8440         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8441         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8442       else
8443         ld_shlibs=no
8444       fi
8445       ;;
8446
8447     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8448       case `$LD -v 2>&1` in
8449         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8450         ld_shlibs=no
8451         cat <<_LT_EOF 1>&2
8452
8453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8454 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8455 *** is disabling shared libraries support.  We urge you to upgrade GNU
8456 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8457 *** your PATH or compiler configuration so that the native linker is
8458 *** used, and then restart.
8459
8460 _LT_EOF
8461         ;;
8462         *)
8463           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8464             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8465             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8466             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8467           else
8468             ld_shlibs=no
8469           fi
8470         ;;
8471       esac
8472       ;;
8473
8474     sunos4*)
8475       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8476       wlarc=
8477       hardcode_direct=yes
8478       hardcode_shlibpath_var=no
8479       ;;
8480
8481     *)
8482       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8483         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8484         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8485       else
8486         ld_shlibs=no
8487       fi
8488       ;;
8489     esac
8490
8491     if test "$ld_shlibs" = no; then
8492       runpath_var=
8493       hardcode_libdir_flag_spec=
8494       export_dynamic_flag_spec=
8495       whole_archive_flag_spec=
8496     fi
8497   else
8498     # PORTME fill in a description of your system's linker (not GNU ld)
8499     case $host_os in
8500     aix3*)
8501       allow_undefined_flag=unsupported
8502       always_export_symbols=yes
8503       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'
8504       # Note: this linker hardcodes the directories in LIBPATH if there
8505       # are no directories specified by -L.
8506       hardcode_minus_L=yes
8507       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8508         # Neither direct hardcoding nor static linking is supported with a
8509         # broken collect2.
8510         hardcode_direct=unsupported
8511       fi
8512       ;;
8513
8514     aix4* | aix5*)
8515       if test "$host_cpu" = ia64; then
8516         # On IA64, the linker does run time linking by default, so we don't
8517         # have to do anything special.
8518         aix_use_runtimelinking=no
8519         exp_sym_flag='-Bexport'
8520         no_entry_flag=""
8521       else
8522         # If we're using GNU nm, then we don't want the "-C" option.
8523         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8524         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8525           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'
8526         else
8527           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'
8528         fi
8529         aix_use_runtimelinking=no
8530
8531         # Test if we are trying to use run time linking or normal
8532         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8533         # need to do runtime linking.
8534         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8535           for ld_flag in $LDFLAGS; do
8536           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8537             aix_use_runtimelinking=yes
8538             break
8539           fi
8540           done
8541           ;;
8542         esac
8543
8544         exp_sym_flag='-bexport'
8545         no_entry_flag='-bnoentry'
8546       fi
8547
8548       # When large executables or shared objects are built, AIX ld can
8549       # have problems creating the table of contents.  If linking a library
8550       # or program results in "error TOC overflow" add -mminimal-toc to
8551       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8552       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8553
8554       archive_cmds=''
8555       hardcode_direct=yes
8556       hardcode_libdir_separator=':'
8557       link_all_deplibs=yes
8558
8559       if test "$GCC" = yes; then
8560         case $host_os in aix4.[012]|aix4.[012].*)
8561         # We only want to do this on AIX 4.2 and lower, the check
8562         # below for broken collect2 doesn't work under 4.3+
8563           collect2name=`${CC} -print-prog-name=collect2`
8564           if test -f "$collect2name" && \
8565            strings "$collect2name" | grep resolve_lib_name >/dev/null
8566           then
8567           # We have reworked collect2
8568           hardcode_direct=yes
8569           else
8570           # We have old collect2
8571           hardcode_direct=unsupported
8572           # It fails to find uninstalled libraries when the uninstalled
8573           # path is not listed in the libpath.  Setting hardcode_minus_L
8574           # to unsupported forces relinking
8575           hardcode_minus_L=yes
8576           hardcode_libdir_flag_spec='-L$libdir'
8577           hardcode_libdir_separator=
8578           fi
8579           ;;
8580         esac
8581         shared_flag='-shared'
8582         if test "$aix_use_runtimelinking" = yes; then
8583           shared_flag="$shared_flag "'${wl}-G'
8584         fi
8585       else
8586         # not using gcc
8587         if test "$host_cpu" = ia64; then
8588         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8589         # chokes on -Wl,-G. The following line is correct:
8590           shared_flag='-G'
8591         else
8592           if test "$aix_use_runtimelinking" = yes; then
8593             shared_flag='${wl}-G'
8594           else
8595             shared_flag='${wl}-bM:SRE'
8596           fi
8597         fi
8598       fi
8599
8600       # It seems that -bexpall does not export symbols beginning with
8601       # underscore (_), so it is better to generate a list of symbols to export.
8602       always_export_symbols=yes
8603       if test "$aix_use_runtimelinking" = yes; then
8604         # Warning - without using the other runtime loading flags (-brtl),
8605         # -berok will link without error, but may produce a broken library.
8606         allow_undefined_flag='-berok'
8607        # Determine the default libpath from the value encoded in an empty executable.
8608        cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h.  */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h.  */
8614
8615 int
8616 main ()
8617 {
8618
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (ac_try="$ac_link"
8625 case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_link") 2>conftest.er1
8631   ac_status=$?
8632   grep -v '^ *+' conftest.er1 >conftest.err
8633   rm -f conftest.er1
8634   cat conftest.err >&5
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); } &&
8637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8638   { (case "(($ac_try" in
8639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640   *) ac_try_echo=$ac_try;;
8641 esac
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643   (eval "$ac_try") 2>&5
8644   ac_status=$?
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); }; } &&
8647          { ac_try='test -s conftest$ac_exeext'
8648   { (case "(($ac_try" in
8649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650   *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653   (eval "$ac_try") 2>&5
8654   ac_status=$?
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); }; }; then
8657
8658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8659 }'`
8660 # Check for a 64-bit object if we didn't find anything.
8661 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; }
8662 }'`; fi
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667
8668 fi
8669
8670 rm -f core conftest.err conftest.$ac_objext \
8671       conftest$ac_exeext conftest.$ac_ext
8672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8673
8674        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8675         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"
8676        else
8677         if test "$host_cpu" = ia64; then
8678           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8679           allow_undefined_flag="-z nodefs"
8680           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"
8681         else
8682          # Determine the default libpath from the value encoded in an empty executable.
8683          cat >conftest.$ac_ext <<_ACEOF
8684 /* confdefs.h.  */
8685 _ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h.  */
8689
8690 int
8691 main ()
8692 {
8693
8694   ;
8695   return 0;
8696 }
8697 _ACEOF
8698 rm -f conftest.$ac_objext conftest$ac_exeext
8699 if { (ac_try="$ac_link"
8700 case "(($ac_try" in
8701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702   *) ac_try_echo=$ac_try;;
8703 esac
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705   (eval "$ac_link") 2>conftest.er1
8706   ac_status=$?
8707   grep -v '^ *+' conftest.er1 >conftest.err
8708   rm -f conftest.er1
8709   cat conftest.err >&5
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); } &&
8712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8713   { (case "(($ac_try" in
8714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715   *) ac_try_echo=$ac_try;;
8716 esac
8717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8718   (eval "$ac_try") 2>&5
8719   ac_status=$?
8720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721   (exit $ac_status); }; } &&
8722          { ac_try='test -s conftest$ac_exeext'
8723   { (case "(($ac_try" in
8724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725   *) ac_try_echo=$ac_try;;
8726 esac
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728   (eval "$ac_try") 2>&5
8729   ac_status=$?
8730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731   (exit $ac_status); }; }; then
8732
8733 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8734 }'`
8735 # Check for a 64-bit object if we didn't find anything.
8736 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; }
8737 }'`; fi
8738 else
8739   echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742
8743 fi
8744
8745 rm -f core conftest.err conftest.$ac_objext \
8746       conftest$ac_exeext conftest.$ac_ext
8747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8748
8749          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8750           # Warning - without using the other run time loading flags,
8751           # -berok will link without error, but may produce a broken library.
8752           no_undefined_flag=' ${wl}-bernotok'
8753           allow_undefined_flag=' ${wl}-berok'
8754           # Exported symbols can be pulled into shared objects from archives
8755           whole_archive_flag_spec='$convenience'
8756           archive_cmds_need_lc=yes
8757           # This is similar to how AIX traditionally builds its shared libraries.
8758           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'
8759         fi
8760       fi
8761       ;;
8762
8763     amigaos*)
8764       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)'
8765       hardcode_libdir_flag_spec='-L$libdir'
8766       hardcode_minus_L=yes
8767       # see comment about different semantics on the GNU ld section
8768       ld_shlibs=no
8769       ;;
8770
8771     bsdi[45]*)
8772       export_dynamic_flag_spec=-rdynamic
8773       ;;
8774
8775     cygwin* | mingw* | pw32*)
8776       # When not using gcc, we currently assume that we are using
8777       # Microsoft Visual C++.
8778       # hardcode_libdir_flag_spec is actually meaningless, as there is
8779       # no search path for DLLs.
8780       hardcode_libdir_flag_spec=' '
8781       allow_undefined_flag=unsupported
8782       # Tell ltmain to make .lib files, not .a files.
8783       libext=lib
8784       # Tell ltmain to make .dll files, not .so files.
8785       shrext_cmds=".dll"
8786       # FIXME: Setting linknames here is a bad hack.
8787       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8788       # The linker will automatically build a .lib file if we build a DLL.
8789       old_archive_From_new_cmds='true'
8790       # FIXME: Should let the user specify the lib program.
8791       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8792       fix_srcfile_path='`cygpath -w "$srcfile"`'
8793       enable_shared_with_static_runtimes=yes
8794       ;;
8795
8796     darwin* | rhapsody*)
8797       case $host_os in
8798         rhapsody* | darwin1.[012])
8799          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8800          ;;
8801        *) # Darwin 1.3 on
8802          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8803            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8804          else
8805            case ${MACOSX_DEPLOYMENT_TARGET} in
8806              10.[012])
8807                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8808                ;;
8809              10.*)
8810                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8811                ;;
8812            esac
8813          fi
8814          ;;
8815       esac
8816       archive_cmds_need_lc=no
8817       hardcode_direct=no
8818       hardcode_automatic=yes
8819       hardcode_shlibpath_var=unsupported
8820       whole_archive_flag_spec=''
8821       link_all_deplibs=yes
8822     if test "$GCC" = yes ; then
8823         output_verbose_link_cmd='echo'
8824         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8825       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8826       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8827       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}'
8828       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}'
8829     else
8830       case $cc_basename in
8831         xlc*)
8832          output_verbose_link_cmd='echo'
8833          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8834          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8835           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8836          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}'
8837           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}'
8838           ;;
8839        *)
8840          ld_shlibs=no
8841           ;;
8842       esac
8843     fi
8844       ;;
8845
8846     dgux*)
8847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848       hardcode_libdir_flag_spec='-L$libdir'
8849       hardcode_shlibpath_var=no
8850       ;;
8851
8852     freebsd1*)
8853       ld_shlibs=no
8854       ;;
8855
8856     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8857     # support.  Future versions do this automatically, but an explicit c++rt0.o
8858     # does not break anything, and helps significantly (at the cost of a little
8859     # extra space).
8860     freebsd2.2*)
8861       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8862       hardcode_libdir_flag_spec='-R$libdir'
8863       hardcode_direct=yes
8864       hardcode_shlibpath_var=no
8865       ;;
8866
8867     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8868     freebsd2*)
8869       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8870       hardcode_direct=yes
8871       hardcode_minus_L=yes
8872       hardcode_shlibpath_var=no
8873       ;;
8874
8875     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8876     freebsd* | kfreebsd*-gnu | dragonfly*)
8877       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8878       hardcode_libdir_flag_spec='-R$libdir'
8879       hardcode_direct=yes
8880       hardcode_shlibpath_var=no
8881       ;;
8882
8883     hpux9*)
8884       if test "$GCC" = yes; then
8885         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'
8886       else
8887         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'
8888       fi
8889       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8890       hardcode_libdir_separator=:
8891       hardcode_direct=yes
8892
8893       # hardcode_minus_L: Not really in the search PATH,
8894       # but as the default location of the library.
8895       hardcode_minus_L=yes
8896       export_dynamic_flag_spec='${wl}-E'
8897       ;;
8898
8899     hpux10*)
8900       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8901         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8902       else
8903         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8904       fi
8905       if test "$with_gnu_ld" = no; then
8906         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8907         hardcode_libdir_separator=:
8908
8909         hardcode_direct=yes
8910         export_dynamic_flag_spec='${wl}-E'
8911
8912         # hardcode_minus_L: Not really in the search PATH,
8913         # but as the default location of the library.
8914         hardcode_minus_L=yes
8915       fi
8916       ;;
8917
8918     hpux11*)
8919       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8920         case $host_cpu in
8921         hppa*64*)
8922           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8923           ;;
8924         ia64*)
8925           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8926           ;;
8927         *)
8928           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8929           ;;
8930         esac
8931       else
8932         case $host_cpu in
8933         hppa*64*)
8934           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8935           ;;
8936         ia64*)
8937           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8938           ;;
8939         *)
8940           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8941           ;;
8942         esac
8943       fi
8944       if test "$with_gnu_ld" = no; then
8945         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8946         hardcode_libdir_separator=:
8947
8948         case $host_cpu in
8949         hppa*64*|ia64*)
8950           hardcode_libdir_flag_spec_ld='+b $libdir'
8951           hardcode_direct=no
8952           hardcode_shlibpath_var=no
8953           ;;
8954         *)
8955           hardcode_direct=yes
8956           export_dynamic_flag_spec='${wl}-E'
8957
8958           # hardcode_minus_L: Not really in the search PATH,
8959           # but as the default location of the library.
8960           hardcode_minus_L=yes
8961           ;;
8962         esac
8963       fi
8964       ;;
8965
8966     irix5* | irix6* | nonstopux*)
8967       if test "$GCC" = yes; then
8968         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'
8969       else
8970         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'
8971         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8972       fi
8973       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8974       hardcode_libdir_separator=:
8975       link_all_deplibs=yes
8976       ;;
8977
8978     netbsd*)
8979       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8980         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8981       else
8982         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8983       fi
8984       hardcode_libdir_flag_spec='-R$libdir'
8985       hardcode_direct=yes
8986       hardcode_shlibpath_var=no
8987       ;;
8988
8989     newsos6)
8990       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991       hardcode_direct=yes
8992       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8993       hardcode_libdir_separator=:
8994       hardcode_shlibpath_var=no
8995       ;;
8996
8997     openbsd*)
8998       hardcode_direct=yes
8999       hardcode_shlibpath_var=no
9000       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9001         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9002         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9003         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9004         export_dynamic_flag_spec='${wl}-E'
9005       else
9006        case $host_os in
9007          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9008            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9009            hardcode_libdir_flag_spec='-R$libdir'
9010            ;;
9011          *)
9012            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9013            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9014            ;;
9015        esac
9016       fi
9017       ;;
9018
9019     os2*)
9020       hardcode_libdir_flag_spec='-L$libdir'
9021       hardcode_minus_L=yes
9022       allow_undefined_flag=unsupported
9023       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'
9024       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9025       ;;
9026
9027     osf3*)
9028       if test "$GCC" = yes; then
9029         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9030         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'
9031       else
9032         allow_undefined_flag=' -expect_unresolved \*'
9033         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'
9034       fi
9035       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9036       hardcode_libdir_separator=:
9037       ;;
9038
9039     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9040       if test "$GCC" = yes; then
9041         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9042         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'
9043         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9044       else
9045         allow_undefined_flag=' -expect_unresolved \*'
9046         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'
9047         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9048         $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'
9049
9050         # Both c and cxx compiler support -rpath directly
9051         hardcode_libdir_flag_spec='-rpath $libdir'
9052       fi
9053       hardcode_libdir_separator=:
9054       ;;
9055
9056     solaris*)
9057       no_undefined_flag=' -z text'
9058       if test "$GCC" = yes; then
9059         wlarc='${wl}'
9060         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9061         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9062           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9063       else
9064         wlarc=''
9065         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9066         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9067         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9068       fi
9069       hardcode_libdir_flag_spec='-R$libdir'
9070       hardcode_shlibpath_var=no
9071       case $host_os in
9072       solaris2.[0-5] | solaris2.[0-5].*) ;;
9073       *)
9074         # The compiler driver will combine linker options so we
9075         # cannot just pass the convience library names through
9076         # without $wl, iff we do not link with $LD.
9077         # Luckily, gcc supports the same syntax we need for Sun Studio.
9078         # Supported since Solaris 2.6 (maybe 2.5.1?)
9079         case $wlarc in
9080         '')
9081           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9082         *)
9083           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' ;;
9084         esac ;;
9085       esac
9086       link_all_deplibs=yes
9087       ;;
9088
9089     sunos4*)
9090       if test "x$host_vendor" = xsequent; then
9091         # Use $CC to link under sequent, because it throws in some extra .o
9092         # files that make .init and .fini sections work.
9093         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9094       else
9095         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9096       fi
9097       hardcode_libdir_flag_spec='-L$libdir'
9098       hardcode_direct=yes
9099       hardcode_minus_L=yes
9100       hardcode_shlibpath_var=no
9101       ;;
9102
9103     sysv4)
9104       case $host_vendor in
9105         sni)
9106           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9107           hardcode_direct=yes # is this really true???
9108         ;;
9109         siemens)
9110           ## LD is ld it makes a PLAMLIB
9111           ## CC just makes a GrossModule.
9112           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9113           reload_cmds='$CC -r -o $output$reload_objs'
9114           hardcode_direct=no
9115         ;;
9116         motorola)
9117           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9119         ;;
9120       esac
9121       runpath_var='LD_RUN_PATH'
9122       hardcode_shlibpath_var=no
9123       ;;
9124
9125     sysv4.3*)
9126       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9127       hardcode_shlibpath_var=no
9128       export_dynamic_flag_spec='-Bexport'
9129       ;;
9130
9131     sysv4*MP*)
9132       if test -d /usr/nec; then
9133         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9134         hardcode_shlibpath_var=no
9135         runpath_var=LD_RUN_PATH
9136         hardcode_runpath_var=yes
9137         ld_shlibs=yes
9138       fi
9139       ;;
9140
9141     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9142       no_undefined_flag='${wl}-z,text'
9143       archive_cmds_need_lc=no
9144       hardcode_shlibpath_var=no
9145       runpath_var='LD_RUN_PATH'
9146
9147       if test "$GCC" = yes; then
9148         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9149         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9150       else
9151         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9153       fi
9154       ;;
9155
9156     sysv5* | sco3.2v5* | sco5v6*)
9157       # Note: We can NOT use -z defs as we might desire, because we do not
9158       # link with -lc, and that would cause any symbols used from libc to
9159       # always be unresolved, which means just about no library would
9160       # ever link correctly.  If we're not using GNU ld we use -z text
9161       # though, which does catch some bad symbols but isn't as heavy-handed
9162       # as -z defs.
9163       no_undefined_flag='${wl}-z,text'
9164       allow_undefined_flag='${wl}-z,nodefs'
9165       archive_cmds_need_lc=no
9166       hardcode_shlibpath_var=no
9167       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9168       hardcode_libdir_separator=':'
9169       link_all_deplibs=yes
9170       export_dynamic_flag_spec='${wl}-Bexport'
9171       runpath_var='LD_RUN_PATH'
9172
9173       if test "$GCC" = yes; then
9174         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9176       else
9177         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9178         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179       fi
9180       ;;
9181
9182     uts4*)
9183       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184       hardcode_libdir_flag_spec='-L$libdir'
9185       hardcode_shlibpath_var=no
9186       ;;
9187
9188     *)
9189       ld_shlibs=no
9190       ;;
9191     esac
9192   fi
9193
9194 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9195 echo "${ECHO_T}$ld_shlibs" >&6; }
9196 test "$ld_shlibs" = no && can_build_shared=no
9197
9198 #
9199 # Do we need to explicitly link libc?
9200 #
9201 case "x$archive_cmds_need_lc" in
9202 x|xyes)
9203   # Assume -lc should be added
9204   archive_cmds_need_lc=yes
9205
9206   if test "$enable_shared" = yes && test "$GCC" = yes; then
9207     case $archive_cmds in
9208     *'~'*)
9209       # FIXME: we may have to deal with multi-command sequences.
9210       ;;
9211     '$CC '*)
9212       # Test whether the compiler implicitly links with -lc since on some
9213       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9214       # to ld, don't add -lc before -lgcc.
9215       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9216 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9217       $rm conftest*
9218       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9219
9220       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9221   (eval $ac_compile) 2>&5
9222   ac_status=$?
9223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224   (exit $ac_status); } 2>conftest.err; then
9225         soname=conftest
9226         lib=conftest
9227         libobjs=conftest.$ac_objext
9228         deplibs=
9229         wl=$lt_prog_compiler_wl
9230         pic_flag=$lt_prog_compiler_pic
9231         compiler_flags=-v
9232         linker_flags=-v
9233         verstring=
9234         output_objdir=.
9235         libname=conftest
9236         lt_save_allow_undefined_flag=$allow_undefined_flag
9237         allow_undefined_flag=
9238         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9239   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); }
9243         then
9244           archive_cmds_need_lc=no
9245         else
9246           archive_cmds_need_lc=yes
9247         fi
9248         allow_undefined_flag=$lt_save_allow_undefined_flag
9249       else
9250         cat conftest.err 1>&5
9251       fi
9252       $rm conftest*
9253       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9254 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9255       ;;
9256     esac
9257   fi
9258   ;;
9259 esac
9260
9261 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9262 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9263 library_names_spec=
9264 libname_spec='lib$name'
9265 soname_spec=
9266 shrext_cmds=".so"
9267 postinstall_cmds=
9268 postuninstall_cmds=
9269 finish_cmds=
9270 finish_eval=
9271 shlibpath_var=
9272 shlibpath_overrides_runpath=unknown
9273 version_type=none
9274 dynamic_linker="$host_os ld.so"
9275 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9276 if test "$GCC" = yes; then
9277   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9278   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9279     # if the path contains ";" then we assume it to be the separator
9280     # otherwise default to the standard path separator (i.e. ":") - it is
9281     # assumed that no part of a normal pathname contains ";" but that should
9282     # okay in the real world where ";" in dirpaths is itself problematic.
9283     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9284   else
9285     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9286   fi
9287 else
9288   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9289 fi
9290 need_lib_prefix=unknown
9291 hardcode_into_libs=no
9292
9293 # when you set need_version to no, make sure it does not cause -set_version
9294 # flags to be left without arguments
9295 need_version=unknown
9296
9297 case $host_os in
9298 aix3*)
9299   version_type=linux
9300   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9301   shlibpath_var=LIBPATH
9302
9303   # AIX 3 has no versioning support, so we append a major version to the name.
9304   soname_spec='${libname}${release}${shared_ext}$major'
9305   ;;
9306
9307 aix4* | aix5*)
9308   version_type=linux
9309   need_lib_prefix=no
9310   need_version=no
9311   hardcode_into_libs=yes
9312   if test "$host_cpu" = ia64; then
9313     # AIX 5 supports IA64
9314     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9315     shlibpath_var=LD_LIBRARY_PATH
9316   else
9317     # With GCC up to 2.95.x, collect2 would create an import file
9318     # for dependence libraries.  The import file would start with
9319     # the line `#! .'.  This would cause the generated library to
9320     # depend on `.', always an invalid library.  This was fixed in
9321     # development snapshots of GCC prior to 3.0.
9322     case $host_os in
9323       aix4 | aix4.[01] | aix4.[01].*)
9324       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9325            echo ' yes '
9326            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9327         :
9328       else
9329         can_build_shared=no
9330       fi
9331       ;;
9332     esac
9333     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9334     # soname into executable. Probably we can add versioning support to
9335     # collect2, so additional links can be useful in future.
9336     if test "$aix_use_runtimelinking" = yes; then
9337       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9338       # instead of lib<name>.a to let people know that these are not
9339       # typical AIX shared libraries.
9340       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9341     else
9342       # We preserve .a as extension for shared libraries through AIX4.2
9343       # and later when we are not doing run time linking.
9344       library_names_spec='${libname}${release}.a $libname.a'
9345       soname_spec='${libname}${release}${shared_ext}$major'
9346     fi
9347     shlibpath_var=LIBPATH
9348   fi
9349   ;;
9350
9351 amigaos*)
9352   library_names_spec='$libname.ixlibrary $libname.a'
9353   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9354   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'
9355   ;;
9356
9357 beos*)
9358   library_names_spec='${libname}${shared_ext}'
9359   dynamic_linker="$host_os ld.so"
9360   shlibpath_var=LIBRARY_PATH
9361   ;;
9362
9363 bsdi[45]*)
9364   version_type=linux
9365   need_version=no
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367   soname_spec='${libname}${release}${shared_ext}$major'
9368   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9369   shlibpath_var=LD_LIBRARY_PATH
9370   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9371   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9372   # the default ld.so.conf also contains /usr/contrib/lib and
9373   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9374   # libtool to hard-code these into programs
9375   ;;
9376
9377 cygwin* | mingw* | pw32*)
9378   version_type=windows
9379   shrext_cmds=".dll"
9380   need_version=no
9381   need_lib_prefix=no
9382
9383   case $GCC,$host_os in
9384   yes,cygwin* | yes,mingw* | yes,pw32*)
9385     library_names_spec='$libname.dll.a'
9386     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9387     postinstall_cmds='base_file=`basename \${file}`~
9388       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9389       dldir=$destdir/`dirname \$dlpath`~
9390       test -d \$dldir || mkdir -p \$dldir~
9391       $install_prog $dir/$dlname \$dldir/$dlname~
9392       chmod a+x \$dldir/$dlname'
9393     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9394       dlpath=$dir/\$dldll~
9395        $rm \$dlpath'
9396     shlibpath_overrides_runpath=yes
9397
9398     case $host_os in
9399     cygwin*)
9400       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9401       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9402       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9403       ;;
9404     mingw*)
9405       # MinGW DLLs use traditional 'lib' prefix
9406       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9407       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9408       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9409         # It is most probably a Windows format PATH printed by
9410         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9411         # path with ; separators, and with drive letters. We can handle the
9412         # drive letters (cygwin fileutils understands them), so leave them,
9413         # especially as we might pass files found there to a mingw objdump,
9414         # which wouldn't understand a cygwinified path. Ahh.
9415         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9416       else
9417         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9418       fi
9419       ;;
9420     pw32*)
9421       # pw32 DLLs use 'pw' prefix rather than 'lib'
9422       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9423       ;;
9424     esac
9425     ;;
9426
9427   *)
9428     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9429     ;;
9430   esac
9431   dynamic_linker='Win32 ld.exe'
9432   # FIXME: first we should search . and the directory the executable is in
9433   shlibpath_var=PATH
9434   ;;
9435
9436 darwin* | rhapsody*)
9437   dynamic_linker="$host_os dyld"
9438   version_type=darwin
9439   need_lib_prefix=no
9440   need_version=no
9441   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9442   soname_spec='${libname}${release}${major}$shared_ext'
9443   shlibpath_overrides_runpath=yes
9444   shlibpath_var=DYLD_LIBRARY_PATH
9445   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9446   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9447   if test "$GCC" = yes; then
9448     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"`
9449   else
9450     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9451   fi
9452   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9453   ;;
9454
9455 dgux*)
9456   version_type=linux
9457   need_lib_prefix=no
9458   need_version=no
9459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9460   soname_spec='${libname}${release}${shared_ext}$major'
9461   shlibpath_var=LD_LIBRARY_PATH
9462   ;;
9463
9464 freebsd1*)
9465   dynamic_linker=no
9466   ;;
9467
9468 kfreebsd*-gnu)
9469   version_type=linux
9470   need_lib_prefix=no
9471   need_version=no
9472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9473   soname_spec='${libname}${release}${shared_ext}$major'
9474   shlibpath_var=LD_LIBRARY_PATH
9475   shlibpath_overrides_runpath=no
9476   hardcode_into_libs=yes
9477   dynamic_linker='GNU ld.so'
9478   ;;
9479
9480 freebsd* | dragonfly*)
9481   # DragonFly does not have aout.  When/if they implement a new
9482   # versioning mechanism, adjust this.
9483   if test -x /usr/bin/objformat; then
9484     objformat=`/usr/bin/objformat`
9485   else
9486     case $host_os in
9487     freebsd[123]*) objformat=aout ;;
9488     *) objformat=elf ;;
9489     esac
9490   fi
9491   version_type=freebsd-$objformat
9492   case $version_type in
9493     freebsd-elf*)
9494       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9495       need_version=no
9496       need_lib_prefix=no
9497       ;;
9498     freebsd-*)
9499       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9500       need_version=yes
9501       ;;
9502   esac
9503   shlibpath_var=LD_LIBRARY_PATH
9504   case $host_os in
9505   freebsd2*)
9506     shlibpath_overrides_runpath=yes
9507     ;;
9508   freebsd3.[01]* | freebsdelf3.[01]*)
9509     shlibpath_overrides_runpath=yes
9510     hardcode_into_libs=yes
9511     ;;
9512   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9513   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9514     shlibpath_overrides_runpath=no
9515     hardcode_into_libs=yes
9516     ;;
9517   freebsd*) # from 4.6 on
9518     shlibpath_overrides_runpath=yes
9519     hardcode_into_libs=yes
9520     ;;
9521   esac
9522   ;;
9523
9524 gnu*)
9525   version_type=linux
9526   need_lib_prefix=no
9527   need_version=no
9528   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9529   soname_spec='${libname}${release}${shared_ext}$major'
9530   shlibpath_var=LD_LIBRARY_PATH
9531   hardcode_into_libs=yes
9532   ;;
9533
9534 hpux9* | hpux10* | hpux11*)
9535   # Give a soname corresponding to the major version so that dld.sl refuses to
9536   # link against other versions.
9537   version_type=sunos
9538   need_lib_prefix=no
9539   need_version=no
9540   case $host_cpu in
9541   ia64*)
9542     shrext_cmds='.so'
9543     hardcode_into_libs=yes
9544     dynamic_linker="$host_os dld.so"
9545     shlibpath_var=LD_LIBRARY_PATH
9546     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9547     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548     soname_spec='${libname}${release}${shared_ext}$major'
9549     if test "X$HPUX_IA64_MODE" = X32; then
9550       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9551     else
9552       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9553     fi
9554     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9555     ;;
9556    hppa*64*)
9557      shrext_cmds='.sl'
9558      hardcode_into_libs=yes
9559      dynamic_linker="$host_os dld.sl"
9560      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9561      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9562      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563      soname_spec='${libname}${release}${shared_ext}$major'
9564      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9565      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9566      ;;
9567    *)
9568     shrext_cmds='.sl'
9569     dynamic_linker="$host_os dld.sl"
9570     shlibpath_var=SHLIB_PATH
9571     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573     soname_spec='${libname}${release}${shared_ext}$major'
9574     ;;
9575   esac
9576   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9577   postinstall_cmds='chmod 555 $lib'
9578   ;;
9579
9580 interix3*)
9581   version_type=linux
9582   need_lib_prefix=no
9583   need_version=no
9584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9585   soname_spec='${libname}${release}${shared_ext}$major'
9586   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9587   shlibpath_var=LD_LIBRARY_PATH
9588   shlibpath_overrides_runpath=no
9589   hardcode_into_libs=yes
9590   ;;
9591
9592 irix5* | irix6* | nonstopux*)
9593   case $host_os in
9594     nonstopux*) version_type=nonstopux ;;
9595     *)
9596         if test "$lt_cv_prog_gnu_ld" = yes; then
9597                 version_type=linux
9598         else
9599                 version_type=irix
9600         fi ;;
9601   esac
9602   need_lib_prefix=no
9603   need_version=no
9604   soname_spec='${libname}${release}${shared_ext}$major'
9605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9606   case $host_os in
9607   irix5* | nonstopux*)
9608     libsuff= shlibsuff=
9609     ;;
9610   *)
9611     case $LD in # libtool.m4 will add one of these switches to LD
9612     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9613       libsuff= shlibsuff= libmagic=32-bit;;
9614     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9615       libsuff=32 shlibsuff=N32 libmagic=N32;;
9616     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9617       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9618     *) libsuff= shlibsuff= libmagic=never-match;;
9619     esac
9620     ;;
9621   esac
9622   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9623   shlibpath_overrides_runpath=no
9624   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9625   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9626   hardcode_into_libs=yes
9627   ;;
9628
9629 # No shared lib support for Linux oldld, aout, or coff.
9630 linux*oldld* | linux*aout* | linux*coff*)
9631   dynamic_linker=no
9632   ;;
9633
9634 # This must be Linux ELF.
9635 linux*)
9636   version_type=linux
9637   need_lib_prefix=no
9638   need_version=no
9639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640   soname_spec='${libname}${release}${shared_ext}$major'
9641   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9642   shlibpath_var=LD_LIBRARY_PATH
9643   shlibpath_overrides_runpath=no
9644   # This implies no fast_install, which is unacceptable.
9645   # Some rework will be needed to allow for fast_install
9646   # before this can be enabled.
9647   hardcode_into_libs=yes
9648
9649   # Append ld.so.conf contents to the search path
9650   if test -f /etc/ld.so.conf; then
9651     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' ' '`
9652     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9653   fi
9654
9655   # We used to test for /lib/ld.so.1 and disable shared libraries on
9656   # powerpc, because MkLinux only supported shared libraries with the
9657   # GNU dynamic linker.  Since this was broken with cross compilers,
9658   # most powerpc-linux boxes support dynamic linking these days and
9659   # people can always --disable-shared, the test was removed, and we
9660   # assume the GNU/Linux dynamic linker is in use.
9661   dynamic_linker='GNU/Linux ld.so'
9662   ;;
9663
9664 knetbsd*-gnu)
9665   version_type=linux
9666   need_lib_prefix=no
9667   need_version=no
9668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9669   soname_spec='${libname}${release}${shared_ext}$major'
9670   shlibpath_var=LD_LIBRARY_PATH
9671   shlibpath_overrides_runpath=no
9672   hardcode_into_libs=yes
9673   dynamic_linker='GNU ld.so'
9674   ;;
9675
9676 netbsd*)
9677   version_type=sunos
9678   need_lib_prefix=no
9679   need_version=no
9680   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9681     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9682     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9683     dynamic_linker='NetBSD (a.out) ld.so'
9684   else
9685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9686     soname_spec='${libname}${release}${shared_ext}$major'
9687     dynamic_linker='NetBSD ld.elf_so'
9688   fi
9689   shlibpath_var=LD_LIBRARY_PATH
9690   shlibpath_overrides_runpath=yes
9691   hardcode_into_libs=yes
9692   ;;
9693
9694 newsos6)
9695   version_type=linux
9696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9697   shlibpath_var=LD_LIBRARY_PATH
9698   shlibpath_overrides_runpath=yes
9699   ;;
9700
9701 nto-qnx*)
9702   version_type=linux
9703   need_lib_prefix=no
9704   need_version=no
9705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706   soname_spec='${libname}${release}${shared_ext}$major'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   shlibpath_overrides_runpath=yes
9709   ;;
9710
9711 openbsd*)
9712   version_type=sunos
9713   sys_lib_dlsearch_path_spec="/usr/lib"
9714   need_lib_prefix=no
9715   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9716   case $host_os in
9717     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9718     *)                         need_version=no  ;;
9719   esac
9720   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9721   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9722   shlibpath_var=LD_LIBRARY_PATH
9723   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9724     case $host_os in
9725       openbsd2.[89] | openbsd2.[89].*)
9726         shlibpath_overrides_runpath=no
9727         ;;
9728       *)
9729         shlibpath_overrides_runpath=yes
9730         ;;
9731       esac
9732   else
9733     shlibpath_overrides_runpath=yes
9734   fi
9735   ;;
9736
9737 os2*)
9738   libname_spec='$name'
9739   shrext_cmds=".dll"
9740   need_lib_prefix=no
9741   library_names_spec='$libname${shared_ext} $libname.a'
9742   dynamic_linker='OS/2 ld.exe'
9743   shlibpath_var=LIBPATH
9744   ;;
9745
9746 osf3* | osf4* | osf5*)
9747   version_type=osf
9748   need_lib_prefix=no
9749   need_version=no
9750   soname_spec='${libname}${release}${shared_ext}$major'
9751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752   shlibpath_var=LD_LIBRARY_PATH
9753   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9754   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9755   ;;
9756
9757 solaris*)
9758   version_type=linux
9759   need_lib_prefix=no
9760   need_version=no
9761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762   soname_spec='${libname}${release}${shared_ext}$major'
9763   shlibpath_var=LD_LIBRARY_PATH
9764   shlibpath_overrides_runpath=yes
9765   hardcode_into_libs=yes
9766   # ldd complains unless libraries are executable
9767   postinstall_cmds='chmod +x $lib'
9768   ;;
9769
9770 sunos4*)
9771   version_type=sunos
9772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9773   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9774   shlibpath_var=LD_LIBRARY_PATH
9775   shlibpath_overrides_runpath=yes
9776   if test "$with_gnu_ld" = yes; then
9777     need_lib_prefix=no
9778   fi
9779   need_version=yes
9780   ;;
9781
9782 sysv4 | sysv4.3*)
9783   version_type=linux
9784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785   soname_spec='${libname}${release}${shared_ext}$major'
9786   shlibpath_var=LD_LIBRARY_PATH
9787   case $host_vendor in
9788     sni)
9789       shlibpath_overrides_runpath=no
9790       need_lib_prefix=no
9791       export_dynamic_flag_spec='${wl}-Blargedynsym'
9792       runpath_var=LD_RUN_PATH
9793       ;;
9794     siemens)
9795       need_lib_prefix=no
9796       ;;
9797     motorola)
9798       need_lib_prefix=no
9799       need_version=no
9800       shlibpath_overrides_runpath=no
9801       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9802       ;;
9803   esac
9804   ;;
9805
9806 sysv4*MP*)
9807   if test -d /usr/nec ;then
9808     version_type=linux
9809     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9810     soname_spec='$libname${shared_ext}.$major'
9811     shlibpath_var=LD_LIBRARY_PATH
9812   fi
9813   ;;
9814
9815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9816   version_type=freebsd-elf
9817   need_lib_prefix=no
9818   need_version=no
9819   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9820   soname_spec='${libname}${release}${shared_ext}$major'
9821   shlibpath_var=LD_LIBRARY_PATH
9822   hardcode_into_libs=yes
9823   if test "$with_gnu_ld" = yes; then
9824     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9825     shlibpath_overrides_runpath=no
9826   else
9827     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9828     shlibpath_overrides_runpath=yes
9829     case $host_os in
9830       sco3.2v5*)
9831         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9832         ;;
9833     esac
9834   fi
9835   sys_lib_dlsearch_path_spec='/usr/lib'
9836   ;;
9837
9838 uts4*)
9839   version_type=linux
9840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841   soname_spec='${libname}${release}${shared_ext}$major'
9842   shlibpath_var=LD_LIBRARY_PATH
9843   ;;
9844
9845 *)
9846   dynamic_linker=no
9847   ;;
9848 esac
9849 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9850 echo "${ECHO_T}$dynamic_linker" >&6; }
9851 test "$dynamic_linker" = no && can_build_shared=no
9852
9853 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9854 if test "$GCC" = yes; then
9855   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9856 fi
9857
9858 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9859 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9860 hardcode_action=
9861 if test -n "$hardcode_libdir_flag_spec" || \
9862    test -n "$runpath_var" || \
9863    test "X$hardcode_automatic" = "Xyes" ; then
9864
9865   # We can hardcode non-existant directories.
9866   if test "$hardcode_direct" != no &&
9867      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9868      # have to relink, otherwise we might link with an installed library
9869      # when we should be linking with a yet-to-be-installed one
9870      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9871      test "$hardcode_minus_L" != no; then
9872     # Linking always hardcodes the temporary library directory.
9873     hardcode_action=relink
9874   else
9875     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9876     hardcode_action=immediate
9877   fi
9878 else
9879   # We cannot hardcode anything, or else we can only hardcode existing
9880   # directories.
9881   hardcode_action=unsupported
9882 fi
9883 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9884 echo "${ECHO_T}$hardcode_action" >&6; }
9885
9886 if test "$hardcode_action" = relink; then
9887   # Fast installation is not supported
9888   enable_fast_install=no
9889 elif test "$shlibpath_overrides_runpath" = yes ||
9890      test "$enable_shared" = no; then
9891   # Fast installation is not necessary
9892   enable_fast_install=needless
9893 fi
9894
9895 striplib=
9896 old_striplib=
9897 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9898 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9899 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9900   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9901   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9902   { echo "$as_me:$LINENO: result: yes" >&5
9903 echo "${ECHO_T}yes" >&6; }
9904 else
9905 # FIXME - insert some real tests, host_os isn't really good enough
9906   case $host_os in
9907    darwin*)
9908        if test -n "$STRIP" ; then
9909          striplib="$STRIP -x"
9910          { echo "$as_me:$LINENO: result: yes" >&5
9911 echo "${ECHO_T}yes" >&6; }
9912        else
9913   { echo "$as_me:$LINENO: result: no" >&5
9914 echo "${ECHO_T}no" >&6; }
9915 fi
9916        ;;
9917    *)
9918   { echo "$as_me:$LINENO: result: no" >&5
9919 echo "${ECHO_T}no" >&6; }
9920     ;;
9921   esac
9922 fi
9923
9924 if test "x$enable_dlopen" != xyes; then
9925   enable_dlopen=unknown
9926   enable_dlopen_self=unknown
9927   enable_dlopen_self_static=unknown
9928 else
9929   lt_cv_dlopen=no
9930   lt_cv_dlopen_libs=
9931
9932   case $host_os in
9933   beos*)
9934     lt_cv_dlopen="load_add_on"
9935     lt_cv_dlopen_libs=
9936     lt_cv_dlopen_self=yes
9937     ;;
9938
9939   mingw* | pw32*)
9940     lt_cv_dlopen="LoadLibrary"
9941     lt_cv_dlopen_libs=
9942    ;;
9943
9944   cygwin*)
9945     lt_cv_dlopen="dlopen"
9946     lt_cv_dlopen_libs=
9947    ;;
9948
9949   darwin*)
9950   # if libdl is installed we need to link against it
9951     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9952 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9953 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9954   echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956   ac_check_lib_save_LIBS=$LIBS
9957 LIBS="-ldl  $LIBS"
9958 cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964
9965 /* Override any GCC internal prototype to avoid an error.
9966    Use char because int might match the return type of a GCC
9967    builtin and then its argument prototype would still apply.  */
9968 #ifdef __cplusplus
9969 extern "C"
9970 #endif
9971 char dlopen ();
9972 int
9973 main ()
9974 {
9975 return dlopen ();
9976   ;
9977   return 0;
9978 }
9979 _ACEOF
9980 rm -f conftest.$ac_objext conftest$ac_exeext
9981 if { (ac_try="$ac_link"
9982 case "(($ac_try" in
9983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984   *) ac_try_echo=$ac_try;;
9985 esac
9986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987   (eval "$ac_link") 2>conftest.er1
9988   ac_status=$?
9989   grep -v '^ *+' conftest.er1 >conftest.err
9990   rm -f conftest.er1
9991   cat conftest.err >&5
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); } &&
9994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9995   { (case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_try") 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; } &&
10004          { ac_try='test -s conftest$ac_exeext'
10005   { (case "(($ac_try" in
10006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007   *) ac_try_echo=$ac_try;;
10008 esac
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010   (eval "$ac_try") 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; }; then
10014   ac_cv_lib_dl_dlopen=yes
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019         ac_cv_lib_dl_dlopen=no
10020 fi
10021
10022 rm -f core conftest.err conftest.$ac_objext \
10023       conftest$ac_exeext conftest.$ac_ext
10024 LIBS=$ac_check_lib_save_LIBS
10025 fi
10026 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10027 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10028 if test $ac_cv_lib_dl_dlopen = yes; then
10029   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10030 else
10031
10032     lt_cv_dlopen="dyld"
10033     lt_cv_dlopen_libs=
10034     lt_cv_dlopen_self=yes
10035
10036 fi
10037
10038    ;;
10039
10040   *)
10041     { echo "$as_me:$LINENO: checking for shl_load" >&5
10042 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10043 if test "${ac_cv_func_shl_load+set}" = set; then
10044   echo $ECHO_N "(cached) $ECHO_C" >&6
10045 else
10046   cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h.  */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h.  */
10052 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10054 #define shl_load innocuous_shl_load
10055
10056 /* System header to define __stub macros and hopefully few prototypes,
10057     which can conflict with char shl_load (); below.
10058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059     <limits.h> exists even on freestanding compilers.  */
10060
10061 #ifdef __STDC__
10062 # include <limits.h>
10063 #else
10064 # include <assert.h>
10065 #endif
10066
10067 #undef shl_load
10068
10069 /* Override any GCC internal prototype to avoid an error.
10070    Use char because int might match the return type of a GCC
10071    builtin and then its argument prototype would still apply.  */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 char shl_load ();
10076 /* The GNU C library defines this for functions which it implements
10077     to always fail with ENOSYS.  Some functions are actually named
10078     something starting with __ and the normal name is an alias.  */
10079 #if defined __stub_shl_load || defined __stub___shl_load
10080 choke me
10081 #endif
10082
10083 int
10084 main ()
10085 {
10086 return shl_load ();
10087   ;
10088   return 0;
10089 }
10090 _ACEOF
10091 rm -f conftest.$ac_objext conftest$ac_exeext
10092 if { (ac_try="$ac_link"
10093 case "(($ac_try" in
10094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095   *) ac_try_echo=$ac_try;;
10096 esac
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098   (eval "$ac_link") 2>conftest.er1
10099   ac_status=$?
10100   grep -v '^ *+' conftest.er1 >conftest.err
10101   rm -f conftest.er1
10102   cat conftest.err >&5
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); } &&
10105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10106   { (case "(($ac_try" in
10107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108   *) ac_try_echo=$ac_try;;
10109 esac
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111   (eval "$ac_try") 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); }; } &&
10115          { ac_try='test -s conftest$ac_exeext'
10116   { (case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_try") 2>&5
10122   ac_status=$?
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); }; }; then
10125   ac_cv_func_shl_load=yes
10126 else
10127   echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10129
10130         ac_cv_func_shl_load=no
10131 fi
10132
10133 rm -f core conftest.err conftest.$ac_objext \
10134       conftest$ac_exeext conftest.$ac_ext
10135 fi
10136 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10137 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10138 if test $ac_cv_func_shl_load = yes; then
10139   lt_cv_dlopen="shl_load"
10140 else
10141   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10142 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10143 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-ldld  $LIBS"
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154
10155 /* Override any GCC internal prototype to avoid an error.
10156    Use char because int might match the return type of a GCC
10157    builtin and then its argument prototype would still apply.  */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char shl_load ();
10162 int
10163 main ()
10164 {
10165 return shl_load ();
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174   *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177   (eval "$ac_link") 2>conftest.er1
10178   ac_status=$?
10179   grep -v '^ *+' conftest.er1 >conftest.err
10180   rm -f conftest.er1
10181   cat conftest.err >&5
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } &&
10184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185   { (case "(($ac_try" in
10186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187   *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190   (eval "$ac_try") 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; } &&
10194          { ac_try='test -s conftest$ac_exeext'
10195   { (case "(($ac_try" in
10196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197   *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200   (eval "$ac_try") 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); }; }; then
10204   ac_cv_lib_dld_shl_load=yes
10205 else
10206   echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209         ac_cv_lib_dld_shl_load=no
10210 fi
10211
10212 rm -f core conftest.err conftest.$ac_objext \
10213       conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10215 fi
10216 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10217 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10218 if test $ac_cv_lib_dld_shl_load = yes; then
10219   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10220 else
10221   { echo "$as_me:$LINENO: checking for dlopen" >&5
10222 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10223 if test "${ac_cv_func_dlopen+set}" = set; then
10224   echo $ECHO_N "(cached) $ECHO_C" >&6
10225 else
10226   cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10234 #define dlopen innocuous_dlopen
10235
10236 /* System header to define __stub macros and hopefully few prototypes,
10237     which can conflict with char dlopen (); below.
10238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10239     <limits.h> exists even on freestanding compilers.  */
10240
10241 #ifdef __STDC__
10242 # include <limits.h>
10243 #else
10244 # include <assert.h>
10245 #endif
10246
10247 #undef dlopen
10248
10249 /* Override any GCC internal prototype to avoid an error.
10250    Use char because int might match the return type of a GCC
10251    builtin and then its argument prototype would still apply.  */
10252 #ifdef __cplusplus
10253 extern "C"
10254 #endif
10255 char dlopen ();
10256 /* The GNU C library defines this for functions which it implements
10257     to always fail with ENOSYS.  Some functions are actually named
10258     something starting with __ and the normal name is an alias.  */
10259 #if defined __stub_dlopen || defined __stub___dlopen
10260 choke me
10261 #endif
10262
10263 int
10264 main ()
10265 {
10266 return dlopen ();
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (ac_try="$ac_link"
10273 case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_link") 2>conftest.er1
10279   ac_status=$?
10280   grep -v '^ *+' conftest.er1 >conftest.err
10281   rm -f conftest.er1
10282   cat conftest.err >&5
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); } &&
10285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286   { (case "(($ac_try" in
10287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288   *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291   (eval "$ac_try") 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; } &&
10295          { ac_try='test -s conftest$ac_exeext'
10296   { (case "(($ac_try" in
10297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298   *) ac_try_echo=$ac_try;;
10299 esac
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301   (eval "$ac_try") 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   ac_cv_func_dlopen=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310         ac_cv_func_dlopen=no
10311 fi
10312
10313 rm -f core conftest.err conftest.$ac_objext \
10314       conftest$ac_exeext conftest.$ac_ext
10315 fi
10316 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10317 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10318 if test $ac_cv_func_dlopen = yes; then
10319   lt_cv_dlopen="dlopen"
10320 else
10321   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10322 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10323 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10324   echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326   ac_check_lib_save_LIBS=$LIBS
10327 LIBS="-ldl  $LIBS"
10328 cat >conftest.$ac_ext <<_ACEOF
10329 /* confdefs.h.  */
10330 _ACEOF
10331 cat confdefs.h >>conftest.$ac_ext
10332 cat >>conftest.$ac_ext <<_ACEOF
10333 /* end confdefs.h.  */
10334
10335 /* Override any GCC internal prototype to avoid an error.
10336    Use char because int might match the return type of a GCC
10337    builtin and then its argument prototype would still apply.  */
10338 #ifdef __cplusplus
10339 extern "C"
10340 #endif
10341 char dlopen ();
10342 int
10343 main ()
10344 {
10345 return dlopen ();
10346   ;
10347   return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext conftest$ac_exeext
10351 if { (ac_try="$ac_link"
10352 case "(($ac_try" in
10353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354   *) ac_try_echo=$ac_try;;
10355 esac
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357   (eval "$ac_link") 2>conftest.er1
10358   ac_status=$?
10359   grep -v '^ *+' conftest.er1 >conftest.err
10360   rm -f conftest.er1
10361   cat conftest.err >&5
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } &&
10364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10365   { (case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_try") 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; } &&
10374          { ac_try='test -s conftest$ac_exeext'
10375   { (case "(($ac_try" in
10376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377   *) ac_try_echo=$ac_try;;
10378 esac
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380   (eval "$ac_try") 2>&5
10381   ac_status=$?
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); }; }; then
10384   ac_cv_lib_dl_dlopen=yes
10385 else
10386   echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389         ac_cv_lib_dl_dlopen=no
10390 fi
10391
10392 rm -f core conftest.err conftest.$ac_objext \
10393       conftest$ac_exeext conftest.$ac_ext
10394 LIBS=$ac_check_lib_save_LIBS
10395 fi
10396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10397 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10398 if test $ac_cv_lib_dl_dlopen = yes; then
10399   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10400 else
10401   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10402 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10403 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   ac_check_lib_save_LIBS=$LIBS
10407 LIBS="-lsvld  $LIBS"
10408 cat >conftest.$ac_ext <<_ACEOF
10409 /* confdefs.h.  */
10410 _ACEOF
10411 cat confdefs.h >>conftest.$ac_ext
10412 cat >>conftest.$ac_ext <<_ACEOF
10413 /* end confdefs.h.  */
10414
10415 /* Override any GCC internal prototype to avoid an error.
10416    Use char because int might match the return type of a GCC
10417    builtin and then its argument prototype would still apply.  */
10418 #ifdef __cplusplus
10419 extern "C"
10420 #endif
10421 char dlopen ();
10422 int
10423 main ()
10424 {
10425 return dlopen ();
10426   ;
10427   return 0;
10428 }
10429 _ACEOF
10430 rm -f conftest.$ac_objext conftest$ac_exeext
10431 if { (ac_try="$ac_link"
10432 case "(($ac_try" in
10433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10434   *) ac_try_echo=$ac_try;;
10435 esac
10436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10437   (eval "$ac_link") 2>conftest.er1
10438   ac_status=$?
10439   grep -v '^ *+' conftest.er1 >conftest.err
10440   rm -f conftest.er1
10441   cat conftest.err >&5
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); } &&
10444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10445   { (case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10450   (eval "$ac_try") 2>&5
10451   ac_status=$?
10452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453   (exit $ac_status); }; } &&
10454          { ac_try='test -s conftest$ac_exeext'
10455   { (case "(($ac_try" in
10456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457   *) ac_try_echo=$ac_try;;
10458 esac
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460   (eval "$ac_try") 2>&5
10461   ac_status=$?
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); }; }; then
10464   ac_cv_lib_svld_dlopen=yes
10465 else
10466   echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469         ac_cv_lib_svld_dlopen=no
10470 fi
10471
10472 rm -f core conftest.err conftest.$ac_objext \
10473       conftest$ac_exeext conftest.$ac_ext
10474 LIBS=$ac_check_lib_save_LIBS
10475 fi
10476 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10477 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10478 if test $ac_cv_lib_svld_dlopen = yes; then
10479   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10480 else
10481   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10482 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10483 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10484   echo $ECHO_N "(cached) $ECHO_C" >&6
10485 else
10486   ac_check_lib_save_LIBS=$LIBS
10487 LIBS="-ldld  $LIBS"
10488 cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494
10495 /* Override any GCC internal prototype to avoid an error.
10496    Use char because int might match the return type of a GCC
10497    builtin and then its argument prototype would still apply.  */
10498 #ifdef __cplusplus
10499 extern "C"
10500 #endif
10501 char dld_link ();
10502 int
10503 main ()
10504 {
10505 return dld_link ();
10506   ;
10507   return 0;
10508 }
10509 _ACEOF
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (ac_try="$ac_link"
10512 case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_link") 2>conftest.er1
10518   ac_status=$?
10519   grep -v '^ *+' conftest.er1 >conftest.err
10520   rm -f conftest.er1
10521   cat conftest.err >&5
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); } &&
10524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10525   { (case "(($ac_try" in
10526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527   *) ac_try_echo=$ac_try;;
10528 esac
10529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530   (eval "$ac_try") 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; } &&
10534          { ac_try='test -s conftest$ac_exeext'
10535   { (case "(($ac_try" in
10536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537   *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540   (eval "$ac_try") 2>&5
10541   ac_status=$?
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); }; }; then
10544   ac_cv_lib_dld_dld_link=yes
10545 else
10546   echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549         ac_cv_lib_dld_dld_link=no
10550 fi
10551
10552 rm -f core conftest.err conftest.$ac_objext \
10553       conftest$ac_exeext conftest.$ac_ext
10554 LIBS=$ac_check_lib_save_LIBS
10555 fi
10556 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10557 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10558 if test $ac_cv_lib_dld_dld_link = yes; then
10559   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10560 fi
10561
10562
10563 fi
10564
10565
10566 fi
10567
10568
10569 fi
10570
10571
10572 fi
10573
10574
10575 fi
10576
10577     ;;
10578   esac
10579
10580   if test "x$lt_cv_dlopen" != xno; then
10581     enable_dlopen=yes
10582   else
10583     enable_dlopen=no
10584   fi
10585
10586   case $lt_cv_dlopen in
10587   dlopen)
10588     save_CPPFLAGS="$CPPFLAGS"
10589     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10590
10591     save_LDFLAGS="$LDFLAGS"
10592     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10593
10594     save_LIBS="$LIBS"
10595     LIBS="$lt_cv_dlopen_libs $LIBS"
10596
10597     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10598 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10599 if test "${lt_cv_dlopen_self+set}" = set; then
10600   echo $ECHO_N "(cached) $ECHO_C" >&6
10601 else
10602           if test "$cross_compiling" = yes; then :
10603   lt_cv_dlopen_self=cross
10604 else
10605   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10606   lt_status=$lt_dlunknown
10607   cat > conftest.$ac_ext <<EOF
10608 #line 10608 "configure"
10609 #include "confdefs.h"
10610
10611 #if HAVE_DLFCN_H
10612 #include <dlfcn.h>
10613 #endif
10614
10615 #include <stdio.h>
10616
10617 #ifdef RTLD_GLOBAL
10618 #  define LT_DLGLOBAL           RTLD_GLOBAL
10619 #else
10620 #  ifdef DL_GLOBAL
10621 #    define LT_DLGLOBAL         DL_GLOBAL
10622 #  else
10623 #    define LT_DLGLOBAL         0
10624 #  endif
10625 #endif
10626
10627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10628    find out it does not work in some platform. */
10629 #ifndef LT_DLLAZY_OR_NOW
10630 #  ifdef RTLD_LAZY
10631 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10632 #  else
10633 #    ifdef DL_LAZY
10634 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10635 #    else
10636 #      ifdef RTLD_NOW
10637 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10638 #      else
10639 #        ifdef DL_NOW
10640 #          define LT_DLLAZY_OR_NOW      DL_NOW
10641 #        else
10642 #          define LT_DLLAZY_OR_NOW      0
10643 #        endif
10644 #      endif
10645 #    endif
10646 #  endif
10647 #endif
10648
10649 #ifdef __cplusplus
10650 extern "C" void exit (int);
10651 #endif
10652
10653 void fnord() { int i=42;}
10654 int main ()
10655 {
10656   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10657   int status = $lt_dlunknown;
10658
10659   if (self)
10660     {
10661       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10662       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10663       /* dlclose (self); */
10664     }
10665   else
10666     puts (dlerror ());
10667
10668     exit (status);
10669 }
10670 EOF
10671   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672   (eval $ac_link) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10676     (./conftest; exit; ) >&5 2>/dev/null
10677     lt_status=$?
10678     case x$lt_status in
10679       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10680       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10681       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10682     esac
10683   else :
10684     # compilation failed
10685     lt_cv_dlopen_self=no
10686   fi
10687 fi
10688 rm -fr conftest*
10689
10690
10691 fi
10692 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10693 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10694
10695     if test "x$lt_cv_dlopen_self" = xyes; then
10696       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10697       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10698 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10699 if test "${lt_cv_dlopen_self_static+set}" = set; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702           if test "$cross_compiling" = yes; then :
10703   lt_cv_dlopen_self_static=cross
10704 else
10705   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10706   lt_status=$lt_dlunknown
10707   cat > conftest.$ac_ext <<EOF
10708 #line 10708 "configure"
10709 #include "confdefs.h"
10710
10711 #if HAVE_DLFCN_H
10712 #include <dlfcn.h>
10713 #endif
10714
10715 #include <stdio.h>
10716
10717 #ifdef RTLD_GLOBAL
10718 #  define LT_DLGLOBAL           RTLD_GLOBAL
10719 #else
10720 #  ifdef DL_GLOBAL
10721 #    define LT_DLGLOBAL         DL_GLOBAL
10722 #  else
10723 #    define LT_DLGLOBAL         0
10724 #  endif
10725 #endif
10726
10727 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10728    find out it does not work in some platform. */
10729 #ifndef LT_DLLAZY_OR_NOW
10730 #  ifdef RTLD_LAZY
10731 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10732 #  else
10733 #    ifdef DL_LAZY
10734 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10735 #    else
10736 #      ifdef RTLD_NOW
10737 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10738 #      else
10739 #        ifdef DL_NOW
10740 #          define LT_DLLAZY_OR_NOW      DL_NOW
10741 #        else
10742 #          define LT_DLLAZY_OR_NOW      0
10743 #        endif
10744 #      endif
10745 #    endif
10746 #  endif
10747 #endif
10748
10749 #ifdef __cplusplus
10750 extern "C" void exit (int);
10751 #endif
10752
10753 void fnord() { int i=42;}
10754 int main ()
10755 {
10756   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10757   int status = $lt_dlunknown;
10758
10759   if (self)
10760     {
10761       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10762       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10763       /* dlclose (self); */
10764     }
10765   else
10766     puts (dlerror ());
10767
10768     exit (status);
10769 }
10770 EOF
10771   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772   (eval $ac_link) 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10776     (./conftest; exit; ) >&5 2>/dev/null
10777     lt_status=$?
10778     case x$lt_status in
10779       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10780       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10781       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10782     esac
10783   else :
10784     # compilation failed
10785     lt_cv_dlopen_self_static=no
10786   fi
10787 fi
10788 rm -fr conftest*
10789
10790
10791 fi
10792 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10793 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10794     fi
10795
10796     CPPFLAGS="$save_CPPFLAGS"
10797     LDFLAGS="$save_LDFLAGS"
10798     LIBS="$save_LIBS"
10799     ;;
10800   esac
10801
10802   case $lt_cv_dlopen_self in
10803   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10804   *) enable_dlopen_self=unknown ;;
10805   esac
10806
10807   case $lt_cv_dlopen_self_static in
10808   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10809   *) enable_dlopen_self_static=unknown ;;
10810   esac
10811 fi
10812
10813
10814 # Report which library types will actually be built
10815 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10816 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10817 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10818 echo "${ECHO_T}$can_build_shared" >&6; }
10819
10820 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10821 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10822 test "$can_build_shared" = "no" && enable_shared=no
10823
10824 # On AIX, shared libraries and static libraries use the same namespace, and
10825 # are all built from PIC.
10826 case $host_os in
10827 aix3*)
10828   test "$enable_shared" = yes && enable_static=no
10829   if test -n "$RANLIB"; then
10830     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10831     postinstall_cmds='$RANLIB $lib'
10832   fi
10833   ;;
10834
10835 aix4* | aix5*)
10836   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10837     test "$enable_shared" = yes && enable_static=no
10838   fi
10839     ;;
10840 esac
10841 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10842 echo "${ECHO_T}$enable_shared" >&6; }
10843
10844 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10845 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10846 # Make sure either enable_shared or enable_static is yes.
10847 test "$enable_shared" = yes || enable_static=yes
10848 { echo "$as_me:$LINENO: result: $enable_static" >&5
10849 echo "${ECHO_T}$enable_static" >&6; }
10850
10851 # The else clause should only fire when bootstrapping the
10852 # libtool distribution, otherwise you forgot to ship ltmain.sh
10853 # with your package, and you will get complaints that there are
10854 # no rules to generate ltmain.sh.
10855 if test -f "$ltmain"; then
10856   # See if we are running on zsh, and set the options which allow our commands through
10857   # without removal of \ escapes.
10858   if test -n "${ZSH_VERSION+set}" ; then
10859     setopt NO_GLOB_SUBST
10860   fi
10861   # Now quote all the things that may contain metacharacters while being
10862   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10863   # variables and quote the copies for generation of the libtool script.
10864   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10865     SED SHELL STRIP \
10866     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10867     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10868     deplibs_check_method reload_flag reload_cmds need_locks \
10869     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10870     lt_cv_sys_global_symbol_to_c_name_address \
10871     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10872     old_postinstall_cmds old_postuninstall_cmds \
10873     compiler \
10874     CC \
10875     LD \
10876     lt_prog_compiler_wl \
10877     lt_prog_compiler_pic \
10878     lt_prog_compiler_static \
10879     lt_prog_compiler_no_builtin_flag \
10880     export_dynamic_flag_spec \
10881     thread_safe_flag_spec \
10882     whole_archive_flag_spec \
10883     enable_shared_with_static_runtimes \
10884     old_archive_cmds \
10885     old_archive_from_new_cmds \
10886     predep_objects \
10887     postdep_objects \
10888     predeps \
10889     postdeps \
10890     compiler_lib_search_path \
10891     archive_cmds \
10892     archive_expsym_cmds \
10893     postinstall_cmds \
10894     postuninstall_cmds \
10895     old_archive_from_expsyms_cmds \
10896     allow_undefined_flag \
10897     no_undefined_flag \
10898     export_symbols_cmds \
10899     hardcode_libdir_flag_spec \
10900     hardcode_libdir_flag_spec_ld \
10901     hardcode_libdir_separator \
10902     hardcode_automatic \
10903     module_cmds \
10904     module_expsym_cmds \
10905     lt_cv_prog_compiler_c_o \
10906     exclude_expsyms \
10907     include_expsyms; do
10908
10909     case $var in
10910     old_archive_cmds | \
10911     old_archive_from_new_cmds | \
10912     archive_cmds | \
10913     archive_expsym_cmds | \
10914     module_cmds | \
10915     module_expsym_cmds | \
10916     old_archive_from_expsyms_cmds | \
10917     export_symbols_cmds | \
10918     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10919     postinstall_cmds | postuninstall_cmds | \
10920     old_postinstall_cmds | old_postuninstall_cmds | \
10921     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10922       # Double-quote double-evaled strings.
10923       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10924       ;;
10925     *)
10926       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10927       ;;
10928     esac
10929   done
10930
10931   case $lt_echo in
10932   *'\$0 --fallback-echo"')
10933     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10934     ;;
10935   esac
10936
10937 cfgfile="${ofile}T"
10938   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10939   $rm -f "$cfgfile"
10940   { echo "$as_me:$LINENO: creating $ofile" >&5
10941 echo "$as_me: creating $ofile" >&6;}
10942
10943   cat <<__EOF__ >> "$cfgfile"
10944 #! $SHELL
10945
10946 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10947 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10948 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10949 #
10950 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10951 # Free Software Foundation, Inc.
10952 #
10953 # This file is part of GNU Libtool:
10954 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10955 #
10956 # This program is free software; you can redistribute it and/or modify
10957 # it under the terms of the GNU General Public License as published by
10958 # the Free Software Foundation; either version 2 of the License, or
10959 # (at your option) any later version.
10960 #
10961 # This program is distributed in the hope that it will be useful, but
10962 # WITHOUT ANY WARRANTY; without even the implied warranty of
10963 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10964 # General Public License for more details.
10965 #
10966 # You should have received a copy of the GNU General Public License
10967 # along with this program; if not, write to the Free Software
10968 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10969 #
10970 # As a special exception to the GNU General Public License, if you
10971 # distribute this file as part of a program that contains a
10972 # configuration script generated by Autoconf, you may include it under
10973 # the same distribution terms that you use for the rest of that program.
10974
10975 # A sed program that does not truncate output.
10976 SED=$lt_SED
10977
10978 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10979 Xsed="$SED -e 1s/^X//"
10980
10981 # The HP-UX ksh and POSIX shell print the target directory to stdout
10982 # if CDPATH is set.
10983 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10984
10985 # The names of the tagged configurations supported by this script.
10986 available_tags=
10987
10988 # ### BEGIN LIBTOOL CONFIG
10989
10990 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10991
10992 # Shell to use when invoking shell scripts.
10993 SHELL=$lt_SHELL
10994
10995 # Whether or not to build shared libraries.
10996 build_libtool_libs=$enable_shared
10997
10998 # Whether or not to build static libraries.
10999 build_old_libs=$enable_static
11000
11001 # Whether or not to add -lc for building shared libraries.
11002 build_libtool_need_lc=$archive_cmds_need_lc
11003
11004 # Whether or not to disallow shared libs when runtime libs are static
11005 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11006
11007 # Whether or not to optimize for fast installation.
11008 fast_install=$enable_fast_install
11009
11010 # The host system.
11011 host_alias=$host_alias
11012 host=$host
11013 host_os=$host_os
11014
11015 # The build system.
11016 build_alias=$build_alias
11017 build=$build
11018 build_os=$build_os
11019
11020 # An echo program that does not interpret backslashes.
11021 echo=$lt_echo
11022
11023 # The archiver.
11024 AR=$lt_AR
11025 AR_FLAGS=$lt_AR_FLAGS
11026
11027 # A C compiler.
11028 LTCC=$lt_LTCC
11029
11030 # LTCC compiler flags.
11031 LTCFLAGS=$lt_LTCFLAGS
11032
11033 # A language-specific compiler.
11034 CC=$lt_compiler
11035
11036 # Is the compiler the GNU C compiler?
11037 with_gcc=$GCC
11038
11039 # An ERE matcher.
11040 EGREP=$lt_EGREP
11041
11042 # The linker used to build libraries.
11043 LD=$lt_LD
11044
11045 # Whether we need hard or soft links.
11046 LN_S=$lt_LN_S
11047
11048 # A BSD-compatible nm program.
11049 NM=$lt_NM
11050
11051 # A symbol stripping program
11052 STRIP=$lt_STRIP
11053
11054 # Used to examine libraries when file_magic_cmd begins "file"
11055 MAGIC_CMD=$MAGIC_CMD
11056
11057 # Used on cygwin: DLL creation program.
11058 DLLTOOL="$DLLTOOL"
11059
11060 # Used on cygwin: object dumper.
11061 OBJDUMP="$OBJDUMP"
11062
11063 # Used on cygwin: assembler.
11064 AS="$AS"
11065
11066 # The name of the directory that contains temporary libtool files.
11067 objdir=$objdir
11068
11069 # How to create reloadable object files.
11070 reload_flag=$lt_reload_flag
11071 reload_cmds=$lt_reload_cmds
11072
11073 # How to pass a linker flag through the compiler.
11074 wl=$lt_lt_prog_compiler_wl
11075
11076 # Object file suffix (normally "o").
11077 objext="$ac_objext"
11078
11079 # Old archive suffix (normally "a").
11080 libext="$libext"
11081
11082 # Shared library suffix (normally ".so").
11083 shrext_cmds='$shrext_cmds'
11084
11085 # Executable file suffix (normally "").
11086 exeext="$exeext"
11087
11088 # Additional compiler flags for building library objects.
11089 pic_flag=$lt_lt_prog_compiler_pic
11090 pic_mode=$pic_mode
11091
11092 # What is the maximum length of a command?
11093 max_cmd_len=$lt_cv_sys_max_cmd_len
11094
11095 # Does compiler simultaneously support -c and -o options?
11096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11097
11098 # Must we lock files when doing compilation?
11099 need_locks=$lt_need_locks
11100
11101 # Do we need the lib prefix for modules?
11102 need_lib_prefix=$need_lib_prefix
11103
11104 # Do we need a version for libraries?
11105 need_version=$need_version
11106
11107 # Whether dlopen is supported.
11108 dlopen_support=$enable_dlopen
11109
11110 # Whether dlopen of programs is supported.
11111 dlopen_self=$enable_dlopen_self
11112
11113 # Whether dlopen of statically linked programs is supported.
11114 dlopen_self_static=$enable_dlopen_self_static
11115
11116 # Compiler flag to prevent dynamic linking.
11117 link_static_flag=$lt_lt_prog_compiler_static
11118
11119 # Compiler flag to turn off builtin functions.
11120 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11121
11122 # Compiler flag to allow reflexive dlopens.
11123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11124
11125 # Compiler flag to generate shared objects directly from archives.
11126 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11127
11128 # Compiler flag to generate thread-safe objects.
11129 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11130
11131 # Library versioning type.
11132 version_type=$version_type
11133
11134 # Format of library name prefix.
11135 libname_spec=$lt_libname_spec
11136
11137 # List of archive names.  First name is the real one, the rest are links.
11138 # The last name is the one that the linker finds with -lNAME.
11139 library_names_spec=$lt_library_names_spec
11140
11141 # The coded name of the library, if different from the real name.
11142 soname_spec=$lt_soname_spec
11143
11144 # Commands used to build and install an old-style archive.
11145 RANLIB=$lt_RANLIB
11146 old_archive_cmds=$lt_old_archive_cmds
11147 old_postinstall_cmds=$lt_old_postinstall_cmds
11148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11149
11150 # Create an old-style archive from a shared archive.
11151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11152
11153 # Create a temporary old-style archive to link instead of a shared archive.
11154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11155
11156 # Commands used to build and install a shared archive.
11157 archive_cmds=$lt_archive_cmds
11158 archive_expsym_cmds=$lt_archive_expsym_cmds
11159 postinstall_cmds=$lt_postinstall_cmds
11160 postuninstall_cmds=$lt_postuninstall_cmds
11161
11162 # Commands used to build a loadable module (assumed same as above if empty)
11163 module_cmds=$lt_module_cmds
11164 module_expsym_cmds=$lt_module_expsym_cmds
11165
11166 # Commands to strip libraries.
11167 old_striplib=$lt_old_striplib
11168 striplib=$lt_striplib
11169
11170 # Dependencies to place before the objects being linked to create a
11171 # shared library.
11172 predep_objects=$lt_predep_objects
11173
11174 # Dependencies to place after the objects being linked to create a
11175 # shared library.
11176 postdep_objects=$lt_postdep_objects
11177
11178 # Dependencies to place before the objects being linked to create a
11179 # shared library.
11180 predeps=$lt_predeps
11181
11182 # Dependencies to place after the objects being linked to create a
11183 # shared library.
11184 postdeps=$lt_postdeps
11185
11186 # The library search path used internally by the compiler when linking
11187 # a shared library.
11188 compiler_lib_search_path=$lt_compiler_lib_search_path
11189
11190 # Method to check whether dependent libraries are shared objects.
11191 deplibs_check_method=$lt_deplibs_check_method
11192
11193 # Command to use when deplibs_check_method == file_magic.
11194 file_magic_cmd=$lt_file_magic_cmd
11195
11196 # Flag that allows shared libraries with undefined symbols to be built.
11197 allow_undefined_flag=$lt_allow_undefined_flag
11198
11199 # Flag that forces no undefined symbols.
11200 no_undefined_flag=$lt_no_undefined_flag
11201
11202 # Commands used to finish a libtool library installation in a directory.
11203 finish_cmds=$lt_finish_cmds
11204
11205 # Same as above, but a single script fragment to be evaled but not shown.
11206 finish_eval=$lt_finish_eval
11207
11208 # Take the output of nm and produce a listing of raw symbols and C names.
11209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11210
11211 # Transform the output of nm in a proper C declaration
11212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11213
11214 # Transform the output of nm in a C name address pair
11215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11216
11217 # This is the shared library runtime path variable.
11218 runpath_var=$runpath_var
11219
11220 # This is the shared library path variable.
11221 shlibpath_var=$shlibpath_var
11222
11223 # Is shlibpath searched before the hard-coded library search path?
11224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11225
11226 # How to hardcode a shared library path into an executable.
11227 hardcode_action=$hardcode_action
11228
11229 # Whether we should hardcode library paths into libraries.
11230 hardcode_into_libs=$hardcode_into_libs
11231
11232 # Flag to hardcode \$libdir into a binary during linking.
11233 # This must work even if \$libdir does not exist.
11234 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11235
11236 # If ld is used when linking, flag to hardcode \$libdir into
11237 # a binary during linking. This must work even if \$libdir does
11238 # not exist.
11239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11240
11241 # Whether we need a single -rpath flag with a separated argument.
11242 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11243
11244 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11245 # resulting binary.
11246 hardcode_direct=$hardcode_direct
11247
11248 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11249 # resulting binary.
11250 hardcode_minus_L=$hardcode_minus_L
11251
11252 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11253 # the resulting binary.
11254 hardcode_shlibpath_var=$hardcode_shlibpath_var
11255
11256 # Set to yes if building a shared library automatically hardcodes DIR into the library
11257 # and all subsequent libraries and executables linked against it.
11258 hardcode_automatic=$hardcode_automatic
11259
11260 # Variables whose values should be saved in libtool wrapper scripts and
11261 # restored at relink time.
11262 variables_saved_for_relink="$variables_saved_for_relink"
11263
11264 # Whether libtool must link a program against all its dependency libraries.
11265 link_all_deplibs=$link_all_deplibs
11266
11267 # Compile-time system search path for libraries
11268 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11269
11270 # Run-time system search path for libraries
11271 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11272
11273 # Fix the shell variable \$srcfile for the compiler.
11274 fix_srcfile_path="$fix_srcfile_path"
11275
11276 # Set to yes if exported symbols are required.
11277 always_export_symbols=$always_export_symbols
11278
11279 # The commands to list exported symbols.
11280 export_symbols_cmds=$lt_export_symbols_cmds
11281
11282 # The commands to extract the exported symbol list from a shared archive.
11283 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11284
11285 # Symbols that should not be listed in the preloaded symbols.
11286 exclude_expsyms=$lt_exclude_expsyms
11287
11288 # Symbols that must always be exported.
11289 include_expsyms=$lt_include_expsyms
11290
11291 # ### END LIBTOOL CONFIG
11292
11293 __EOF__
11294
11295
11296   case $host_os in
11297   aix3*)
11298     cat <<\EOF >> "$cfgfile"
11299
11300 # AIX sometimes has problems with the GCC collect2 program.  For some
11301 # reason, if we set the COLLECT_NAMES environment variable, the problems
11302 # vanish in a puff of smoke.
11303 if test "X${COLLECT_NAMES+set}" != Xset; then
11304   COLLECT_NAMES=
11305   export COLLECT_NAMES
11306 fi
11307 EOF
11308     ;;
11309   esac
11310
11311   # We use sed instead of cat because bash on DJGPP gets confused if
11312   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11313   # text mode, it properly converts lines to CR/LF.  This bash problem
11314   # is reportedly fixed, but why not run on old versions too?
11315   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11316
11317   mv -f "$cfgfile" "$ofile" || \
11318     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11319   chmod +x "$ofile"
11320
11321 else
11322   # If there is no Makefile yet, we rely on a make rule to execute
11323   # `config.status --recheck' to rerun these tests and create the
11324   # libtool script then.
11325   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11326   if test -f "$ltmain_in"; then
11327     test -f Makefile && make "$ltmain"
11328   fi
11329 fi
11330
11331
11332 ac_ext=c
11333 ac_cpp='$CPP $CPPFLAGS'
11334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11337
11338 CC="$lt_save_CC"
11339
11340
11341 # Check whether --with-tags was given.
11342 if test "${with_tags+set}" = set; then
11343   withval=$with_tags; tagnames="$withval"
11344 fi
11345
11346
11347 if test -f "$ltmain" && test -n "$tagnames"; then
11348   if test ! -f "${ofile}"; then
11349     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11350 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11351   fi
11352
11353   if test -z "$LTCC"; then
11354     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11355     if test -z "$LTCC"; then
11356       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11357 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11358     else
11359       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11360 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11361     fi
11362   fi
11363   if test -z "$LTCFLAGS"; then
11364     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11365   fi
11366
11367   # Extract list of available tagged configurations in $ofile.
11368   # Note that this assumes the entire list is on one line.
11369   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11370
11371   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11372   for tagname in $tagnames; do
11373     IFS="$lt_save_ifs"
11374     # Check whether tagname contains only valid characters
11375     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11376     "") ;;
11377     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11378 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11379    { (exit 1); exit 1; }; }
11380         ;;
11381     esac
11382
11383     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11384     then
11385       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11386 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11387    { (exit 1); exit 1; }; }
11388     fi
11389
11390     # Update the list of available tags.
11391     if test -n "$tagname"; then
11392       echo appending configuration tag \"$tagname\" to $ofile
11393
11394       case $tagname in
11395       CXX)
11396         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11397             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11398             (test "X$CXX" != "Xg++"))) ; then
11399           ac_ext=cpp
11400 ac_cpp='$CXXCPP $CPPFLAGS'
11401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11404
11405
11406
11407
11408 archive_cmds_need_lc_CXX=no
11409 allow_undefined_flag_CXX=
11410 always_export_symbols_CXX=no
11411 archive_expsym_cmds_CXX=
11412 export_dynamic_flag_spec_CXX=
11413 hardcode_direct_CXX=no
11414 hardcode_libdir_flag_spec_CXX=
11415 hardcode_libdir_flag_spec_ld_CXX=
11416 hardcode_libdir_separator_CXX=
11417 hardcode_minus_L_CXX=no
11418 hardcode_shlibpath_var_CXX=unsupported
11419 hardcode_automatic_CXX=no
11420 module_cmds_CXX=
11421 module_expsym_cmds_CXX=
11422 link_all_deplibs_CXX=unknown
11423 old_archive_cmds_CXX=$old_archive_cmds
11424 no_undefined_flag_CXX=
11425 whole_archive_flag_spec_CXX=
11426 enable_shared_with_static_runtimes_CXX=no
11427
11428 # Dependencies to place before and after the object being linked:
11429 predep_objects_CXX=
11430 postdep_objects_CXX=
11431 predeps_CXX=
11432 postdeps_CXX=
11433 compiler_lib_search_path_CXX=
11434
11435 # Source file extension for C++ test sources.
11436 ac_ext=cpp
11437
11438 # Object file extension for compiled C++ test sources.
11439 objext=o
11440 objext_CXX=$objext
11441
11442 # Code to be used in simple compile tests
11443 lt_simple_compile_test_code="int some_variable = 0;\n"
11444
11445 # Code to be used in simple link tests
11446 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11447
11448 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11449
11450 # If no C compiler was specified, use CC.
11451 LTCC=${LTCC-"$CC"}
11452
11453 # If no C compiler flags were specified, use CFLAGS.
11454 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11455
11456 # Allow CC to be a program name with arguments.
11457 compiler=$CC
11458
11459
11460 # save warnings/boilerplate of simple test code
11461 ac_outfile=conftest.$ac_objext
11462 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11463 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11464 _lt_compiler_boilerplate=`cat conftest.err`
11465 $rm conftest*
11466
11467 ac_outfile=conftest.$ac_objext
11468 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11469 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11470 _lt_linker_boilerplate=`cat conftest.err`
11471 $rm conftest*
11472
11473
11474 # Allow CC to be a program name with arguments.
11475 lt_save_CC=$CC
11476 lt_save_LD=$LD
11477 lt_save_GCC=$GCC
11478 GCC=$GXX
11479 lt_save_with_gnu_ld=$with_gnu_ld
11480 lt_save_path_LD=$lt_cv_path_LD
11481 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11482   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11483 else
11484   $as_unset lt_cv_prog_gnu_ld
11485 fi
11486 if test -n "${lt_cv_path_LDCXX+set}"; then
11487   lt_cv_path_LD=$lt_cv_path_LDCXX
11488 else
11489   $as_unset lt_cv_path_LD
11490 fi
11491 test -z "${LDCXX+set}" || LD=$LDCXX
11492 CC=${CXX-"c++"}
11493 compiler=$CC
11494 compiler_CXX=$CC
11495 for cc_temp in $compiler""; do
11496   case $cc_temp in
11497     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11498     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11499     \-*) ;;
11500     *) break;;
11501   esac
11502 done
11503 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11504
11505
11506 # We don't want -fno-exception wen compiling C++ code, so set the
11507 # no_builtin_flag separately
11508 if test "$GXX" = yes; then
11509   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11510 else
11511   lt_prog_compiler_no_builtin_flag_CXX=
11512 fi
11513
11514 if test "$GXX" = yes; then
11515   # Set up default GNU C++ configuration
11516
11517
11518 # Check whether --with-gnu-ld was given.
11519 if test "${with_gnu_ld+set}" = set; then
11520   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11521 else
11522   with_gnu_ld=no
11523 fi
11524
11525 ac_prog=ld
11526 if test "$GCC" = yes; then
11527   # Check if gcc -print-prog-name=ld gives a path.
11528   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11529 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11530   case $host in
11531   *-*-mingw*)
11532     # gcc leaves a trailing carriage return which upsets mingw
11533     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11534   *)
11535     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11536   esac
11537   case $ac_prog in
11538     # Accept absolute paths.
11539     [\\/]* | ?:[\\/]*)
11540       re_direlt='/[^/][^/]*/\.\./'
11541       # Canonicalize the pathname of ld
11542       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11543       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11544         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11545       done
11546       test -z "$LD" && LD="$ac_prog"
11547       ;;
11548   "")
11549     # If it fails, then pretend we aren't using GCC.
11550     ac_prog=ld
11551     ;;
11552   *)
11553     # If it is relative, then search for the first ld in PATH.
11554     with_gnu_ld=unknown
11555     ;;
11556   esac
11557 elif test "$with_gnu_ld" = yes; then
11558   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11559 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11560 else
11561   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11562 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11563 fi
11564 if test "${lt_cv_path_LD+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567   if test -z "$LD"; then
11568   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11569   for ac_dir in $PATH; do
11570     IFS="$lt_save_ifs"
11571     test -z "$ac_dir" && ac_dir=.
11572     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11573       lt_cv_path_LD="$ac_dir/$ac_prog"
11574       # Check to see if the program is GNU ld.  I'd rather use --version,
11575       # but apparently some variants of GNU ld only accept -v.
11576       # Break only if it was the GNU/non-GNU ld that we prefer.
11577       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11578       *GNU* | *'with BFD'*)
11579         test "$with_gnu_ld" != no && break
11580         ;;
11581       *)
11582         test "$with_gnu_ld" != yes && break
11583         ;;
11584       esac
11585     fi
11586   done
11587   IFS="$lt_save_ifs"
11588 else
11589   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11590 fi
11591 fi
11592
11593 LD="$lt_cv_path_LD"
11594 if test -n "$LD"; then
11595   { echo "$as_me:$LINENO: result: $LD" >&5
11596 echo "${ECHO_T}$LD" >&6; }
11597 else
11598   { echo "$as_me:$LINENO: result: no" >&5
11599 echo "${ECHO_T}no" >&6; }
11600 fi
11601 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11602 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11603    { (exit 1); exit 1; }; }
11604 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11605 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11606 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11607   echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11610 case `$LD -v 2>&1 </dev/null` in
11611 *GNU* | *'with BFD'*)
11612   lt_cv_prog_gnu_ld=yes
11613   ;;
11614 *)
11615   lt_cv_prog_gnu_ld=no
11616   ;;
11617 esac
11618 fi
11619 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11620 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11621 with_gnu_ld=$lt_cv_prog_gnu_ld
11622
11623
11624
11625   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11626   # archiving commands below assume that GNU ld is being used.
11627   if test "$with_gnu_ld" = yes; then
11628     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11629     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'
11630
11631     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11632     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11633
11634     # If archive_cmds runs LD, not CC, wlarc should be empty
11635     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11636     #     investigate it a little bit more. (MM)
11637     wlarc='${wl}'
11638
11639     # ancient GNU ld didn't support --whole-archive et. al.
11640     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11641         grep 'no-whole-archive' > /dev/null; then
11642       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11643     else
11644       whole_archive_flag_spec_CXX=
11645     fi
11646   else
11647     with_gnu_ld=no
11648     wlarc=
11649
11650     # A generic and very simple default shared library creation
11651     # command for GNU C++ for the case where it uses the native
11652     # linker, instead of GNU ld.  If possible, this setting should
11653     # overridden to take advantage of the native linker features on
11654     # the platform it is being used on.
11655     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11656   fi
11657
11658   # Commands to make compiler produce verbose output that lists
11659   # what "hidden" libraries, object files and flags are used when
11660   # linking a shared library.
11661   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11662
11663 else
11664   GXX=no
11665   with_gnu_ld=no
11666   wlarc=
11667 fi
11668
11669 # PORTME: fill in a description of your system's C++ link characteristics
11670 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11671 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11672 ld_shlibs_CXX=yes
11673 case $host_os in
11674   aix3*)
11675     # FIXME: insert proper C++ library support
11676     ld_shlibs_CXX=no
11677     ;;
11678   aix4* | aix5*)
11679     if test "$host_cpu" = ia64; then
11680       # On IA64, the linker does run time linking by default, so we don't
11681       # have to do anything special.
11682       aix_use_runtimelinking=no
11683       exp_sym_flag='-Bexport'
11684       no_entry_flag=""
11685     else
11686       aix_use_runtimelinking=no
11687
11688       # Test if we are trying to use run time linking or normal
11689       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11690       # need to do runtime linking.
11691       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11692         for ld_flag in $LDFLAGS; do
11693           case $ld_flag in
11694           *-brtl*)
11695             aix_use_runtimelinking=yes
11696             break
11697             ;;
11698           esac
11699         done
11700         ;;
11701       esac
11702
11703       exp_sym_flag='-bexport'
11704       no_entry_flag='-bnoentry'
11705     fi
11706
11707     # When large executables or shared objects are built, AIX ld can
11708     # have problems creating the table of contents.  If linking a library
11709     # or program results in "error TOC overflow" add -mminimal-toc to
11710     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11711     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11712
11713     archive_cmds_CXX=''
11714     hardcode_direct_CXX=yes
11715     hardcode_libdir_separator_CXX=':'
11716     link_all_deplibs_CXX=yes
11717
11718     if test "$GXX" = yes; then
11719       case $host_os in aix4.[012]|aix4.[012].*)
11720       # We only want to do this on AIX 4.2 and lower, the check
11721       # below for broken collect2 doesn't work under 4.3+
11722         collect2name=`${CC} -print-prog-name=collect2`
11723         if test -f "$collect2name" && \
11724            strings "$collect2name" | grep resolve_lib_name >/dev/null
11725         then
11726           # We have reworked collect2
11727           hardcode_direct_CXX=yes
11728         else
11729           # We have old collect2
11730           hardcode_direct_CXX=unsupported
11731           # It fails to find uninstalled libraries when the uninstalled
11732           # path is not listed in the libpath.  Setting hardcode_minus_L
11733           # to unsupported forces relinking
11734           hardcode_minus_L_CXX=yes
11735           hardcode_libdir_flag_spec_CXX='-L$libdir'
11736           hardcode_libdir_separator_CXX=
11737         fi
11738         ;;
11739       esac
11740       shared_flag='-shared'
11741       if test "$aix_use_runtimelinking" = yes; then
11742         shared_flag="$shared_flag "'${wl}-G'
11743       fi
11744     else
11745       # not using gcc
11746       if test "$host_cpu" = ia64; then
11747         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11748         # chokes on -Wl,-G. The following line is correct:
11749         shared_flag='-G'
11750       else
11751         if test "$aix_use_runtimelinking" = yes; then
11752           shared_flag='${wl}-G'
11753         else
11754           shared_flag='${wl}-bM:SRE'
11755         fi
11756       fi
11757     fi
11758
11759     # It seems that -bexpall does not export symbols beginning with
11760     # underscore (_), so it is better to generate a list of symbols to export.
11761     always_export_symbols_CXX=yes
11762     if test "$aix_use_runtimelinking" = yes; then
11763       # Warning - without using the other runtime loading flags (-brtl),
11764       # -berok will link without error, but may produce a broken library.
11765       allow_undefined_flag_CXX='-berok'
11766       # Determine the default libpath from the value encoded in an empty executable.
11767       cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h.  */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h.  */
11773
11774 int
11775 main ()
11776 {
11777
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 rm -f conftest.$ac_objext conftest$ac_exeext
11783 if { (ac_try="$ac_link"
11784 case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_link") 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11797   { (case "(($ac_try" in
11798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799   *) ac_try_echo=$ac_try;;
11800 esac
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802   (eval "$ac_try") 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); }; } &&
11806          { ac_try='test -s conftest$ac_exeext'
11807   { (case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812   (eval "$ac_try") 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; }; then
11816
11817 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11818 }'`
11819 # Check for a 64-bit object if we didn't find anything.
11820 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; }
11821 }'`; fi
11822 else
11823   echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826
11827 fi
11828
11829 rm -f core conftest.err conftest.$ac_objext \
11830       conftest$ac_exeext conftest.$ac_ext
11831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11832
11833       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11834
11835       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"
11836      else
11837       if test "$host_cpu" = ia64; then
11838         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11839         allow_undefined_flag_CXX="-z nodefs"
11840         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"
11841       else
11842         # Determine the default libpath from the value encoded in an empty executable.
11843         cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849
11850 int
11851 main ()
11852 {
11853
11854   ;
11855   return 0;
11856 }
11857 _ACEOF
11858 rm -f conftest.$ac_objext conftest$ac_exeext
11859 if { (ac_try="$ac_link"
11860 case "(($ac_try" in
11861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862   *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865   (eval "$ac_link") 2>conftest.er1
11866   ac_status=$?
11867   grep -v '^ *+' conftest.er1 >conftest.err
11868   rm -f conftest.er1
11869   cat conftest.err >&5
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); } &&
11872          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11873   { (case "(($ac_try" in
11874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875   *) ac_try_echo=$ac_try;;
11876 esac
11877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11878   (eval "$ac_try") 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; } &&
11882          { ac_try='test -s conftest$ac_exeext'
11883   { (case "(($ac_try" in
11884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11885   *) ac_try_echo=$ac_try;;
11886 esac
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888   (eval "$ac_try") 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }; }; then
11892
11893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11894 }'`
11895 # Check for a 64-bit object if we didn't find anything.
11896 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; }
11897 }'`; fi
11898 else
11899   echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902
11903 fi
11904
11905 rm -f core conftest.err conftest.$ac_objext \
11906       conftest$ac_exeext conftest.$ac_ext
11907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11908
11909         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11910         # Warning - without using the other run time loading flags,
11911         # -berok will link without error, but may produce a broken library.
11912         no_undefined_flag_CXX=' ${wl}-bernotok'
11913         allow_undefined_flag_CXX=' ${wl}-berok'
11914         # Exported symbols can be pulled into shared objects from archives
11915         whole_archive_flag_spec_CXX='$convenience'
11916         archive_cmds_need_lc_CXX=yes
11917         # This is similar to how AIX traditionally builds its shared libraries.
11918         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'
11919       fi
11920     fi
11921     ;;
11922
11923   beos*)
11924     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11925       allow_undefined_flag_CXX=unsupported
11926       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11927       # support --undefined.  This deserves some investigation.  FIXME
11928       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11929     else
11930       ld_shlibs_CXX=no
11931     fi
11932     ;;
11933
11934   chorus*)
11935     case $cc_basename in
11936       *)
11937         # FIXME: insert proper C++ library support
11938         ld_shlibs_CXX=no
11939         ;;
11940     esac
11941     ;;
11942
11943   cygwin* | mingw* | pw32*)
11944     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11945     # as there is no search path for DLLs.
11946     hardcode_libdir_flag_spec_CXX='-L$libdir'
11947     allow_undefined_flag_CXX=unsupported
11948     always_export_symbols_CXX=no
11949     enable_shared_with_static_runtimes_CXX=yes
11950
11951     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11952       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'
11953       # If the export-symbols file already is a .def file (1st line
11954       # is EXPORTS), use it as is; otherwise, prepend...
11955       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11956         cp $export_symbols $output_objdir/$soname.def;
11957       else
11958         echo EXPORTS > $output_objdir/$soname.def;
11959         cat $export_symbols >> $output_objdir/$soname.def;
11960       fi~
11961       $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'
11962     else
11963       ld_shlibs_CXX=no
11964     fi
11965   ;;
11966       darwin* | rhapsody*)
11967         case $host_os in
11968         rhapsody* | darwin1.[012])
11969          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11970          ;;
11971        *) # Darwin 1.3 on
11972          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11973            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11974          else
11975            case ${MACOSX_DEPLOYMENT_TARGET} in
11976              10.[012])
11977                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11978                ;;
11979              10.*)
11980                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11981                ;;
11982            esac
11983          fi
11984          ;;
11985         esac
11986       archive_cmds_need_lc_CXX=no
11987       hardcode_direct_CXX=no
11988       hardcode_automatic_CXX=yes
11989       hardcode_shlibpath_var_CXX=unsupported
11990       whole_archive_flag_spec_CXX=''
11991       link_all_deplibs_CXX=yes
11992
11993     if test "$GXX" = yes ; then
11994       lt_int_apple_cc_single_mod=no
11995       output_verbose_link_cmd='echo'
11996       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11997        lt_int_apple_cc_single_mod=yes
11998       fi
11999       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12000        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12001       else
12002           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'
12003         fi
12004         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12005         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12006           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12007             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}'
12008           else
12009             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}'
12010           fi
12011             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}'
12012       else
12013       case $cc_basename in
12014         xlc*)
12015          output_verbose_link_cmd='echo'
12016           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'
12017           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12018           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12019           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}'
12020           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}'
12021           ;;
12022        *)
12023          ld_shlibs_CXX=no
12024           ;;
12025       esac
12026       fi
12027         ;;
12028
12029   dgux*)
12030     case $cc_basename in
12031       ec++*)
12032         # FIXME: insert proper C++ library support
12033         ld_shlibs_CXX=no
12034         ;;
12035       ghcx*)
12036         # Green Hills C++ Compiler
12037         # FIXME: insert proper C++ library support
12038         ld_shlibs_CXX=no
12039         ;;
12040       *)
12041         # FIXME: insert proper C++ library support
12042         ld_shlibs_CXX=no
12043         ;;
12044     esac
12045     ;;
12046   freebsd[12]*)
12047     # C++ shared libraries reported to be fairly broken before switch to ELF
12048     ld_shlibs_CXX=no
12049     ;;
12050   freebsd-elf*)
12051     archive_cmds_need_lc_CXX=no
12052     ;;
12053   freebsd* | kfreebsd*-gnu | dragonfly*)
12054     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12055     # conventions
12056     ld_shlibs_CXX=yes
12057     ;;
12058   gnu*)
12059     ;;
12060   hpux9*)
12061     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12062     hardcode_libdir_separator_CXX=:
12063     export_dynamic_flag_spec_CXX='${wl}-E'
12064     hardcode_direct_CXX=yes
12065     hardcode_minus_L_CXX=yes # Not in the search PATH,
12066                                 # but as the default
12067                                 # location of the library.
12068
12069     case $cc_basename in
12070     CC*)
12071       # FIXME: insert proper C++ library support
12072       ld_shlibs_CXX=no
12073       ;;
12074     aCC*)
12075       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'
12076       # Commands to make compiler produce verbose output that lists
12077       # what "hidden" libraries, object files and flags are used when
12078       # linking a shared library.
12079       #
12080       # There doesn't appear to be a way to prevent this compiler from
12081       # explicitly linking system object files so we need to strip them
12082       # from the output so that they don't get included in the library
12083       # dependencies.
12084       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'
12085       ;;
12086     *)
12087       if test "$GXX" = yes; then
12088         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'
12089       else
12090         # FIXME: insert proper C++ library support
12091         ld_shlibs_CXX=no
12092       fi
12093       ;;
12094     esac
12095     ;;
12096   hpux10*|hpux11*)
12097     if test $with_gnu_ld = no; then
12098       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12099       hardcode_libdir_separator_CXX=:
12100
12101       case $host_cpu in
12102       hppa*64*|ia64*)
12103         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12104         ;;
12105       *)
12106         export_dynamic_flag_spec_CXX='${wl}-E'
12107         ;;
12108       esac
12109     fi
12110     case $host_cpu in
12111     hppa*64*|ia64*)
12112       hardcode_direct_CXX=no
12113       hardcode_shlibpath_var_CXX=no
12114       ;;
12115     *)
12116       hardcode_direct_CXX=yes
12117       hardcode_minus_L_CXX=yes # Not in the search PATH,
12118                                               # but as the default
12119                                               # location of the library.
12120       ;;
12121     esac
12122
12123     case $cc_basename in
12124       CC*)
12125         # FIXME: insert proper C++ library support
12126         ld_shlibs_CXX=no
12127         ;;
12128       aCC*)
12129         case $host_cpu in
12130         hppa*64*)
12131           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12132           ;;
12133         ia64*)
12134           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12135           ;;
12136         *)
12137           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12138           ;;
12139         esac
12140         # Commands to make compiler produce verbose output that lists
12141         # what "hidden" libraries, object files and flags are used when
12142         # linking a shared library.
12143         #
12144         # There doesn't appear to be a way to prevent this compiler from
12145         # explicitly linking system object files so we need to strip them
12146         # from the output so that they don't get included in the library
12147         # dependencies.
12148         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'
12149         ;;
12150       *)
12151         if test "$GXX" = yes; then
12152           if test $with_gnu_ld = no; then
12153             case $host_cpu in
12154             hppa*64*)
12155               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12156               ;;
12157             ia64*)
12158               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12159               ;;
12160             *)
12161               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'
12162               ;;
12163             esac
12164           fi
12165         else
12166           # FIXME: insert proper C++ library support
12167           ld_shlibs_CXX=no
12168         fi
12169         ;;
12170     esac
12171     ;;
12172   interix3*)
12173     hardcode_direct_CXX=no
12174     hardcode_shlibpath_var_CXX=no
12175     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12176     export_dynamic_flag_spec_CXX='${wl}-E'
12177     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12178     # Instead, shared libraries are loaded at an image base (0x10000000 by
12179     # default) and relocated if they conflict, which is a slow very memory
12180     # consuming and fragmenting process.  To avoid this, we pick a random,
12181     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12182     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12183     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'
12184     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'
12185     ;;
12186   irix5* | irix6*)
12187     case $cc_basename in
12188       CC*)
12189         # SGI C++
12190         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'
12191
12192         # Archives containing C++ object files must be created using
12193         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12194         # necessary to make sure instantiated templates are included
12195         # in the archive.
12196         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12197         ;;
12198       *)
12199         if test "$GXX" = yes; then
12200           if test "$with_gnu_ld" = no; then
12201             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'
12202           else
12203             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'
12204           fi
12205         fi
12206         link_all_deplibs_CXX=yes
12207         ;;
12208     esac
12209     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12210     hardcode_libdir_separator_CXX=:
12211     ;;
12212   linux*)
12213     case $cc_basename in
12214       KCC*)
12215         # Kuck and Associates, Inc. (KAI) C++ Compiler
12216
12217         # KCC will only create a shared library if the output file
12218         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12219         # to its proper name (with version) after linking.
12220         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'
12221         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'
12222         # Commands to make compiler produce verbose output that lists
12223         # what "hidden" libraries, object files and flags are used when
12224         # linking a shared library.
12225         #
12226         # There doesn't appear to be a way to prevent this compiler from
12227         # explicitly linking system object files so we need to strip them
12228         # from the output so that they don't get included in the library
12229         # dependencies.
12230         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'
12231
12232         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12233         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12234
12235         # Archives containing C++ object files must be created using
12236         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12237         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12238         ;;
12239       icpc*)
12240         # Intel C++
12241         with_gnu_ld=yes
12242         # version 8.0 and above of icpc choke on multiply defined symbols
12243         # if we add $predep_objects and $postdep_objects, however 7.1 and
12244         # earlier do not add the objects themselves.
12245         case `$CC -V 2>&1` in
12246         *"Version 7."*)
12247           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12248           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'
12249           ;;
12250         *)  # Version 8.0 or newer
12251           tmp_idyn=
12252           case $host_cpu in
12253             ia64*) tmp_idyn=' -i_dynamic';;
12254           esac
12255           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12256           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'
12257           ;;
12258         esac
12259         archive_cmds_need_lc_CXX=no
12260         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12261         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12262         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12263         ;;
12264       pgCC*)
12265         # Portland Group C++ compiler
12266         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12267         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'
12268
12269         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12270         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12271         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'
12272         ;;
12273       cxx*)
12274         # Compaq C++
12275         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12276         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'
12277
12278         runpath_var=LD_RUN_PATH
12279         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12280         hardcode_libdir_separator_CXX=:
12281
12282         # Commands to make compiler produce verbose output that lists
12283         # what "hidden" libraries, object files and flags are used when
12284         # linking a shared library.
12285         #
12286         # There doesn't appear to be a way to prevent this compiler from
12287         # explicitly linking system object files so we need to strip them
12288         # from the output so that they don't get included in the library
12289         # dependencies.
12290         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'
12291         ;;
12292     esac
12293     ;;
12294   lynxos*)
12295     # FIXME: insert proper C++ library support
12296     ld_shlibs_CXX=no
12297     ;;
12298   m88k*)
12299     # FIXME: insert proper C++ library support
12300     ld_shlibs_CXX=no
12301     ;;
12302   mvs*)
12303     case $cc_basename in
12304       cxx*)
12305         # FIXME: insert proper C++ library support
12306         ld_shlibs_CXX=no
12307         ;;
12308       *)
12309         # FIXME: insert proper C++ library support
12310         ld_shlibs_CXX=no
12311         ;;
12312     esac
12313     ;;
12314   netbsd*)
12315     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12316       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12317       wlarc=
12318       hardcode_libdir_flag_spec_CXX='-R$libdir'
12319       hardcode_direct_CXX=yes
12320       hardcode_shlibpath_var_CXX=no
12321     fi
12322     # Workaround some broken pre-1.5 toolchains
12323     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12324     ;;
12325   openbsd2*)
12326     # C++ shared libraries are fairly broken
12327     ld_shlibs_CXX=no
12328     ;;
12329   openbsd*)
12330     hardcode_direct_CXX=yes
12331     hardcode_shlibpath_var_CXX=no
12332     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12333     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12334     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12335       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12336       export_dynamic_flag_spec_CXX='${wl}-E'
12337       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12338     fi
12339     output_verbose_link_cmd='echo'
12340     ;;
12341   osf3*)
12342     case $cc_basename in
12343       KCC*)
12344         # Kuck and Associates, Inc. (KAI) C++ Compiler
12345
12346         # KCC will only create a shared library if the output file
12347         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12348         # to its proper name (with version) after linking.
12349         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'
12350
12351         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12352         hardcode_libdir_separator_CXX=:
12353
12354         # Archives containing C++ object files must be created using
12355         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12356         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12357
12358         ;;
12359       RCC*)
12360         # Rational C++ 2.4.1
12361         # FIXME: insert proper C++ library support
12362         ld_shlibs_CXX=no
12363         ;;
12364       cxx*)
12365         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12366         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'
12367
12368         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12369         hardcode_libdir_separator_CXX=:
12370
12371         # Commands to make compiler produce verbose output that lists
12372         # what "hidden" libraries, object files and flags are used when
12373         # linking a shared library.
12374         #
12375         # There doesn't appear to be a way to prevent this compiler from
12376         # explicitly linking system object files so we need to strip them
12377         # from the output so that they don't get included in the library
12378         # dependencies.
12379         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'
12380         ;;
12381       *)
12382         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12383           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12384           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'
12385
12386           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12387           hardcode_libdir_separator_CXX=:
12388
12389           # Commands to make compiler produce verbose output that lists
12390           # what "hidden" libraries, object files and flags are used when
12391           # linking a shared library.
12392           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12393
12394         else
12395           # FIXME: insert proper C++ library support
12396           ld_shlibs_CXX=no
12397         fi
12398         ;;
12399     esac
12400     ;;
12401   osf4* | osf5*)
12402     case $cc_basename in
12403       KCC*)
12404         # Kuck and Associates, Inc. (KAI) C++ Compiler
12405
12406         # KCC will only create a shared library if the output file
12407         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12408         # to its proper name (with version) after linking.
12409         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'
12410
12411         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12412         hardcode_libdir_separator_CXX=:
12413
12414         # Archives containing C++ object files must be created using
12415         # the KAI C++ compiler.
12416         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12417         ;;
12418       RCC*)
12419         # Rational C++ 2.4.1
12420         # FIXME: insert proper C++ library support
12421         ld_shlibs_CXX=no
12422         ;;
12423       cxx*)
12424         allow_undefined_flag_CXX=' -expect_unresolved \*'
12425         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'
12426         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12427           echo "-hidden">> $lib.exp~
12428           $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~
12429           $rm $lib.exp'
12430
12431         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12432         hardcode_libdir_separator_CXX=:
12433
12434         # Commands to make compiler produce verbose output that lists
12435         # what "hidden" libraries, object files and flags are used when
12436         # linking a shared library.
12437         #
12438         # There doesn't appear to be a way to prevent this compiler from
12439         # explicitly linking system object files so we need to strip them
12440         # from the output so that they don't get included in the library
12441         # dependencies.
12442         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'
12443         ;;
12444       *)
12445         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12446           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12447          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'
12448
12449           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12450           hardcode_libdir_separator_CXX=:
12451
12452           # Commands to make compiler produce verbose output that lists
12453           # what "hidden" libraries, object files and flags are used when
12454           # linking a shared library.
12455           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12456
12457         else
12458           # FIXME: insert proper C++ library support
12459           ld_shlibs_CXX=no
12460         fi
12461         ;;
12462     esac
12463     ;;
12464   psos*)
12465     # FIXME: insert proper C++ library support
12466     ld_shlibs_CXX=no
12467     ;;
12468   sunos4*)
12469     case $cc_basename in
12470       CC*)
12471         # Sun C++ 4.x
12472         # FIXME: insert proper C++ library support
12473         ld_shlibs_CXX=no
12474         ;;
12475       lcc*)
12476         # Lucid
12477         # FIXME: insert proper C++ library support
12478         ld_shlibs_CXX=no
12479         ;;
12480       *)
12481         # FIXME: insert proper C++ library support
12482         ld_shlibs_CXX=no
12483         ;;
12484     esac
12485     ;;
12486   solaris*)
12487     case $cc_basename in
12488       CC*)
12489         # Sun C++ 4.2, 5.x and Centerline C++
12490         archive_cmds_need_lc_CXX=yes
12491         no_undefined_flag_CXX=' -zdefs'
12492         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12493         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12494         $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'
12495
12496         hardcode_libdir_flag_spec_CXX='-R$libdir'
12497         hardcode_shlibpath_var_CXX=no
12498         case $host_os in
12499           solaris2.[0-5] | solaris2.[0-5].*) ;;
12500           *)
12501             # The C++ compiler is used as linker so we must use $wl
12502             # flag to pass the commands to the underlying system
12503             # linker. We must also pass each convience library through
12504             # to the system linker between allextract/defaultextract.
12505             # The C++ compiler will combine linker options so we
12506             # cannot just pass the convience library names through
12507             # without $wl.
12508             # Supported since Solaris 2.6 (maybe 2.5.1?)
12509             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'
12510             ;;
12511         esac
12512         link_all_deplibs_CXX=yes
12513
12514         output_verbose_link_cmd='echo'
12515
12516         # Archives containing C++ object files must be created using
12517         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12518         # necessary to make sure instantiated templates are included
12519         # in the archive.
12520         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12521         ;;
12522       gcx*)
12523         # Green Hills C++ Compiler
12524         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12525
12526         # The C++ compiler must be used to create the archive.
12527         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12528         ;;
12529       *)
12530         # GNU C++ compiler with Solaris linker
12531         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12532           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12533           if $CC --version | grep -v '^2\.7' > /dev/null; then
12534             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12535             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12536                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12537
12538             # Commands to make compiler produce verbose output that lists
12539             # what "hidden" libraries, object files and flags are used when
12540             # linking a shared library.
12541             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12542           else
12543             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12544             # platform.
12545             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12546             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12547                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12548
12549             # Commands to make compiler produce verbose output that lists
12550             # what "hidden" libraries, object files and flags are used when
12551             # linking a shared library.
12552             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12553           fi
12554
12555           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12556         fi
12557         ;;
12558     esac
12559     ;;
12560   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12561     no_undefined_flag_CXX='${wl}-z,text'
12562     archive_cmds_need_lc_CXX=no
12563     hardcode_shlibpath_var_CXX=no
12564     runpath_var='LD_RUN_PATH'
12565
12566     case $cc_basename in
12567       CC*)
12568         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12570         ;;
12571       *)
12572         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12574         ;;
12575     esac
12576     ;;
12577   sysv5* | sco3.2v5* | sco5v6*)
12578     # Note: We can NOT use -z defs as we might desire, because we do not
12579     # link with -lc, and that would cause any symbols used from libc to
12580     # always be unresolved, which means just about no library would
12581     # ever link correctly.  If we're not using GNU ld we use -z text
12582     # though, which does catch some bad symbols but isn't as heavy-handed
12583     # as -z defs.
12584     # For security reasons, it is highly recommended that you always
12585     # use absolute paths for naming shared libraries, and exclude the
12586     # DT_RUNPATH tag from executables and libraries.  But doing so
12587     # requires that you compile everything twice, which is a pain.
12588     # So that behaviour is only enabled if SCOABSPATH is set to a
12589     # non-empty value in the environment.  Most likely only useful for
12590     # creating official distributions of packages.
12591     # This is a hack until libtool officially supports absolute path
12592     # names for shared libraries.
12593     no_undefined_flag_CXX='${wl}-z,text'
12594     allow_undefined_flag_CXX='${wl}-z,nodefs'
12595     archive_cmds_need_lc_CXX=no
12596     hardcode_shlibpath_var_CXX=no
12597     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12598     hardcode_libdir_separator_CXX=':'
12599     link_all_deplibs_CXX=yes
12600     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12601     runpath_var='LD_RUN_PATH'
12602
12603     case $cc_basename in
12604       CC*)
12605         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12606         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12607         ;;
12608       *)
12609         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12610         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12611         ;;
12612     esac
12613     ;;
12614   tandem*)
12615     case $cc_basename in
12616       NCC*)
12617         # NonStop-UX NCC 3.20
12618         # FIXME: insert proper C++ library support
12619         ld_shlibs_CXX=no
12620         ;;
12621       *)
12622         # FIXME: insert proper C++ library support
12623         ld_shlibs_CXX=no
12624         ;;
12625     esac
12626     ;;
12627   vxworks*)
12628     # FIXME: insert proper C++ library support
12629     ld_shlibs_CXX=no
12630     ;;
12631   *)
12632     # FIXME: insert proper C++ library support
12633     ld_shlibs_CXX=no
12634     ;;
12635 esac
12636 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12637 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12638 test "$ld_shlibs_CXX" = no && can_build_shared=no
12639
12640 GCC_CXX="$GXX"
12641 LD_CXX="$LD"
12642
12643 ## CAVEAT EMPTOR:
12644 ## There is no encapsulation within the following macros, do not change
12645 ## the running order or otherwise move them around unless you know exactly
12646 ## what you are doing...
12647
12648 cat > conftest.$ac_ext <<EOF
12649 class Foo
12650 {
12651 public:
12652   Foo (void) { a = 0; }
12653 private:
12654   int a;
12655 };
12656 EOF
12657
12658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12659   (eval $ac_compile) 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; then
12663   # Parse the compiler output and extract the necessary
12664   # objects, libraries and library flags.
12665
12666   # Sentinel used to keep track of whether or not we are before
12667   # the conftest object file.
12668   pre_test_object_deps_done=no
12669
12670   # The `*' in the case matches for architectures that use `case' in
12671   # $output_verbose_cmd can trigger glob expansion during the loop
12672   # eval without this substitution.
12673   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12674
12675   for p in `eval $output_verbose_link_cmd`; do
12676     case $p in
12677
12678     -L* | -R* | -l*)
12679        # Some compilers place space between "-{L,R}" and the path.
12680        # Remove the space.
12681        if test $p = "-L" \
12682           || test $p = "-R"; then
12683          prev=$p
12684          continue
12685        else
12686          prev=
12687        fi
12688
12689        if test "$pre_test_object_deps_done" = no; then
12690          case $p in
12691          -L* | -R*)
12692            # Internal compiler library paths should come after those
12693            # provided the user.  The postdeps already come after the
12694            # user supplied libs so there is no need to process them.
12695            if test -z "$compiler_lib_search_path_CXX"; then
12696              compiler_lib_search_path_CXX="${prev}${p}"
12697            else
12698              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12699            fi
12700            ;;
12701          # The "-l" case would never come before the object being
12702          # linked, so don't bother handling this case.
12703          esac
12704        else
12705          if test -z "$postdeps_CXX"; then
12706            postdeps_CXX="${prev}${p}"
12707          else
12708            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12709          fi
12710        fi
12711        ;;
12712
12713     *.$objext)
12714        # This assumes that the test object file only shows up
12715        # once in the compiler output.
12716        if test "$p" = "conftest.$objext"; then
12717          pre_test_object_deps_done=yes
12718          continue
12719        fi
12720
12721        if test "$pre_test_object_deps_done" = no; then
12722          if test -z "$predep_objects_CXX"; then
12723            predep_objects_CXX="$p"
12724          else
12725            predep_objects_CXX="$predep_objects_CXX $p"
12726          fi
12727        else
12728          if test -z "$postdep_objects_CXX"; then
12729            postdep_objects_CXX="$p"
12730          else
12731            postdep_objects_CXX="$postdep_objects_CXX $p"
12732          fi
12733        fi
12734        ;;
12735
12736     *) ;; # Ignore the rest.
12737
12738     esac
12739   done
12740
12741   # Clean up.
12742   rm -f a.out a.exe
12743 else
12744   echo "libtool.m4: error: problem compiling CXX test program"
12745 fi
12746
12747 $rm -f confest.$objext
12748
12749 # PORTME: override above test on systems where it is broken
12750 case $host_os in
12751 interix3*)
12752   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12753   # hack all around it, let's just trust "g++" to DTRT.
12754   predep_objects_CXX=
12755   postdep_objects_CXX=
12756   postdeps_CXX=
12757   ;;
12758
12759 solaris*)
12760   case $cc_basename in
12761   CC*)
12762     # Adding this requires a known-good setup of shared libraries for
12763     # Sun compiler versions before 5.6, else PIC objects from an old
12764     # archive will be linked into the output, leading to subtle bugs.
12765     postdeps_CXX='-lCstd -lCrun'
12766     ;;
12767   esac
12768   ;;
12769 esac
12770
12771
12772 case " $postdeps_CXX " in
12773 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12774 esac
12775
12776 lt_prog_compiler_wl_CXX=
12777 lt_prog_compiler_pic_CXX=
12778 lt_prog_compiler_static_CXX=
12779
12780 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12781 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12782
12783   # C++ specific cases for pic, static, wl, etc.
12784   if test "$GXX" = yes; then
12785     lt_prog_compiler_wl_CXX='-Wl,'
12786     lt_prog_compiler_static_CXX='-static'
12787
12788     case $host_os in
12789     aix*)
12790       # All AIX code is PIC.
12791       if test "$host_cpu" = ia64; then
12792         # AIX 5 now supports IA64 processor
12793         lt_prog_compiler_static_CXX='-Bstatic'
12794       fi
12795       ;;
12796     amigaos*)
12797       # FIXME: we need at least 68020 code to build shared libraries, but
12798       # adding the `-m68020' flag to GCC prevents building anything better,
12799       # like `-m68040'.
12800       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12801       ;;
12802     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12803       # PIC is the default for these OSes.
12804       ;;
12805     mingw* | os2* | pw32*)
12806       # This hack is so that the source file can tell whether it is being
12807       # built for inclusion in a dll (and should export symbols for example).
12808       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12809       ;;
12810     darwin* | rhapsody*)
12811       # PIC is the default on this platform
12812       # Common symbols not allowed in MH_DYLIB files
12813       lt_prog_compiler_pic_CXX='-fno-common'
12814       ;;
12815     *djgpp*)
12816       # DJGPP does not support shared libraries at all
12817       lt_prog_compiler_pic_CXX=
12818       ;;
12819     interix3*)
12820       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12821       # Instead, we relocate shared libraries at runtime.
12822       ;;
12823     sysv4*MP*)
12824       if test -d /usr/nec; then
12825         lt_prog_compiler_pic_CXX=-Kconform_pic
12826       fi
12827       ;;
12828     hpux*)
12829       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12830       # not for PA HP-UX.
12831       case $host_cpu in
12832       hppa*64*|ia64*)
12833         ;;
12834       *)
12835         lt_prog_compiler_pic_CXX='-fPIC'
12836         ;;
12837       esac
12838       ;;
12839     *)
12840       lt_prog_compiler_pic_CXX='-fPIC'
12841       ;;
12842     esac
12843   else
12844     case $host_os in
12845       aix4* | aix5*)
12846         # All AIX code is PIC.
12847         if test "$host_cpu" = ia64; then
12848           # AIX 5 now supports IA64 processor
12849           lt_prog_compiler_static_CXX='-Bstatic'
12850         else
12851           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12852         fi
12853         ;;
12854       chorus*)
12855         case $cc_basename in
12856         cxch68*)
12857           # Green Hills C++ Compiler
12858           # _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"
12859           ;;
12860         esac
12861         ;;
12862        darwin*)
12863          # PIC is the default on this platform
12864          # Common symbols not allowed in MH_DYLIB files
12865          case $cc_basename in
12866            xlc*)
12867            lt_prog_compiler_pic_CXX='-qnocommon'
12868            lt_prog_compiler_wl_CXX='-Wl,'
12869            ;;
12870          esac
12871        ;;
12872       dgux*)
12873         case $cc_basename in
12874           ec++*)
12875             lt_prog_compiler_pic_CXX='-KPIC'
12876             ;;
12877           ghcx*)
12878             # Green Hills C++ Compiler
12879             lt_prog_compiler_pic_CXX='-pic'
12880             ;;
12881           *)
12882             ;;
12883         esac
12884         ;;
12885       freebsd* | kfreebsd*-gnu | dragonfly*)
12886         # FreeBSD uses GNU C++
12887         ;;
12888       hpux9* | hpux10* | hpux11*)
12889         case $cc_basename in
12890           CC*)
12891             lt_prog_compiler_wl_CXX='-Wl,'
12892             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12893             if test "$host_cpu" != ia64; then
12894               lt_prog_compiler_pic_CXX='+Z'
12895             fi
12896             ;;
12897           aCC*)
12898             lt_prog_compiler_wl_CXX='-Wl,'
12899             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12900             case $host_cpu in
12901             hppa*64*|ia64*)
12902               # +Z the default
12903               ;;
12904             *)
12905               lt_prog_compiler_pic_CXX='+Z'
12906               ;;
12907             esac
12908             ;;
12909           *)
12910             ;;
12911         esac
12912         ;;
12913       interix*)
12914         # This is c89, which is MS Visual C++ (no shared libs)
12915         # Anyone wants to do a port?
12916         ;;
12917       irix5* | irix6* | nonstopux*)
12918         case $cc_basename in
12919           CC*)
12920             lt_prog_compiler_wl_CXX='-Wl,'
12921             lt_prog_compiler_static_CXX='-non_shared'
12922             # CC pic flag -KPIC is the default.
12923             ;;
12924           *)
12925             ;;
12926         esac
12927         ;;
12928       linux*)
12929         case $cc_basename in
12930           KCC*)
12931             # KAI C++ Compiler
12932             lt_prog_compiler_wl_CXX='--backend -Wl,'
12933             lt_prog_compiler_pic_CXX='-fPIC'
12934             ;;
12935           icpc* | ecpc*)
12936             # Intel C++
12937             lt_prog_compiler_wl_CXX='-Wl,'
12938             lt_prog_compiler_pic_CXX='-KPIC'
12939             lt_prog_compiler_static_CXX='-static'
12940             ;;
12941           pgCC*)
12942             # Portland Group C++ compiler.
12943             lt_prog_compiler_wl_CXX='-Wl,'
12944             lt_prog_compiler_pic_CXX='-fpic'
12945             lt_prog_compiler_static_CXX='-Bstatic'
12946             ;;
12947           cxx*)
12948             # Compaq C++
12949             # Make sure the PIC flag is empty.  It appears that all Alpha
12950             # Linux and Compaq Tru64 Unix objects are PIC.
12951             lt_prog_compiler_pic_CXX=
12952             lt_prog_compiler_static_CXX='-non_shared'
12953             ;;
12954           *)
12955             ;;
12956         esac
12957         ;;
12958       lynxos*)
12959         ;;
12960       m88k*)
12961         ;;
12962       mvs*)
12963         case $cc_basename in
12964           cxx*)
12965             lt_prog_compiler_pic_CXX='-W c,exportall'
12966             ;;
12967           *)
12968             ;;
12969         esac
12970         ;;
12971       netbsd*)
12972         ;;
12973       osf3* | osf4* | osf5*)
12974         case $cc_basename in
12975           KCC*)
12976             lt_prog_compiler_wl_CXX='--backend -Wl,'
12977             ;;
12978           RCC*)
12979             # Rational C++ 2.4.1
12980             lt_prog_compiler_pic_CXX='-pic'
12981             ;;
12982           cxx*)
12983             # Digital/Compaq C++
12984             lt_prog_compiler_wl_CXX='-Wl,'
12985             # Make sure the PIC flag is empty.  It appears that all Alpha
12986             # Linux and Compaq Tru64 Unix objects are PIC.
12987             lt_prog_compiler_pic_CXX=
12988             lt_prog_compiler_static_CXX='-non_shared'
12989             ;;
12990           *)
12991             ;;
12992         esac
12993         ;;
12994       psos*)
12995         ;;
12996       solaris*)
12997         case $cc_basename in
12998           CC*)
12999             # Sun C++ 4.2, 5.x and Centerline C++
13000             lt_prog_compiler_pic_CXX='-KPIC'
13001             lt_prog_compiler_static_CXX='-Bstatic'
13002             lt_prog_compiler_wl_CXX='-Qoption ld '
13003             ;;
13004           gcx*)
13005             # Green Hills C++ Compiler
13006             lt_prog_compiler_pic_CXX='-PIC'
13007             ;;
13008           *)
13009             ;;
13010         esac
13011         ;;
13012       sunos4*)
13013         case $cc_basename in
13014           CC*)
13015             # Sun C++ 4.x
13016             lt_prog_compiler_pic_CXX='-pic'
13017             lt_prog_compiler_static_CXX='-Bstatic'
13018             ;;
13019           lcc*)
13020             # Lucid
13021             lt_prog_compiler_pic_CXX='-pic'
13022             ;;
13023           *)
13024             ;;
13025         esac
13026         ;;
13027       tandem*)
13028         case $cc_basename in
13029           NCC*)
13030             # NonStop-UX NCC 3.20
13031             lt_prog_compiler_pic_CXX='-KPIC'
13032             ;;
13033           *)
13034             ;;
13035         esac
13036         ;;
13037       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13038         case $cc_basename in
13039           CC*)
13040             lt_prog_compiler_wl_CXX='-Wl,'
13041             lt_prog_compiler_pic_CXX='-KPIC'
13042             lt_prog_compiler_static_CXX='-Bstatic'
13043             ;;
13044         esac
13045         ;;
13046       vxworks*)
13047         ;;
13048       *)
13049         lt_prog_compiler_can_build_shared_CXX=no
13050         ;;
13051     esac
13052   fi
13053
13054 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13055 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13056
13057 #
13058 # Check to make sure the PIC flag actually works.
13059 #
13060 if test -n "$lt_prog_compiler_pic_CXX"; then
13061
13062 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13063 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13064 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13065   echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067   lt_prog_compiler_pic_works_CXX=no
13068   ac_outfile=conftest.$ac_objext
13069    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13070    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13071    # Insert the option either (1) after the last *FLAGS variable, or
13072    # (2) before a word containing "conftest.", or (3) at the end.
13073    # Note that $ac_compile itself does not contain backslashes and begins
13074    # with a dollar sign (not a hyphen), so the echo should work correctly.
13075    # The option is referenced via a variable to avoid confusing sed.
13076    lt_compile=`echo "$ac_compile" | $SED \
13077    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13078    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13079    -e 's:$: $lt_compiler_flag:'`
13080    (eval echo "\"\$as_me:13080: $lt_compile\"" >&5)
13081    (eval "$lt_compile" 2>conftest.err)
13082    ac_status=$?
13083    cat conftest.err >&5
13084    echo "$as_me:13084: \$? = $ac_status" >&5
13085    if (exit $ac_status) && test -s "$ac_outfile"; then
13086      # The compiler can only warn and ignore the option if not recognized
13087      # So say no if there are warnings other than the usual output.
13088      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13089      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13090      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13091        lt_prog_compiler_pic_works_CXX=yes
13092      fi
13093    fi
13094    $rm conftest*
13095
13096 fi
13097 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13098 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13099
13100 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13101     case $lt_prog_compiler_pic_CXX in
13102      "" | " "*) ;;
13103      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13104      esac
13105 else
13106     lt_prog_compiler_pic_CXX=
13107      lt_prog_compiler_can_build_shared_CXX=no
13108 fi
13109
13110 fi
13111 case $host_os in
13112   # For platforms which do not support PIC, -DPIC is meaningless:
13113   *djgpp*)
13114     lt_prog_compiler_pic_CXX=
13115     ;;
13116   *)
13117     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13118     ;;
13119 esac
13120
13121 #
13122 # Check to make sure the static flag actually works.
13123 #
13124 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13125 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13126 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13127 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13128   echo $ECHO_N "(cached) $ECHO_C" >&6
13129 else
13130   lt_prog_compiler_static_works_CXX=no
13131    save_LDFLAGS="$LDFLAGS"
13132    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13133    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13134    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13135      # The linker can only warn and ignore the option if not recognized
13136      # So say no if there are warnings
13137      if test -s conftest.err; then
13138        # Append any errors to the config.log.
13139        cat conftest.err 1>&5
13140        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13141        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13142        if diff conftest.exp conftest.er2 >/dev/null; then
13143          lt_prog_compiler_static_works_CXX=yes
13144        fi
13145      else
13146        lt_prog_compiler_static_works_CXX=yes
13147      fi
13148    fi
13149    $rm conftest*
13150    LDFLAGS="$save_LDFLAGS"
13151
13152 fi
13153 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13154 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13155
13156 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13157     :
13158 else
13159     lt_prog_compiler_static_CXX=
13160 fi
13161
13162
13163 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13164 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13165 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13166   echo $ECHO_N "(cached) $ECHO_C" >&6
13167 else
13168   lt_cv_prog_compiler_c_o_CXX=no
13169    $rm -r conftest 2>/dev/null
13170    mkdir conftest
13171    cd conftest
13172    mkdir out
13173    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13174
13175    lt_compiler_flag="-o out/conftest2.$ac_objext"
13176    # Insert the option either (1) after the last *FLAGS variable, or
13177    # (2) before a word containing "conftest.", or (3) at the end.
13178    # Note that $ac_compile itself does not contain backslashes and begins
13179    # with a dollar sign (not a hyphen), so the echo should work correctly.
13180    lt_compile=`echo "$ac_compile" | $SED \
13181    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13182    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13183    -e 's:$: $lt_compiler_flag:'`
13184    (eval echo "\"\$as_me:13184: $lt_compile\"" >&5)
13185    (eval "$lt_compile" 2>out/conftest.err)
13186    ac_status=$?
13187    cat out/conftest.err >&5
13188    echo "$as_me:13188: \$? = $ac_status" >&5
13189    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13190    then
13191      # The compiler can only warn and ignore the option if not recognized
13192      # So say no if there are warnings
13193      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13194      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13195      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13196        lt_cv_prog_compiler_c_o_CXX=yes
13197      fi
13198    fi
13199    chmod u+w . 2>&5
13200    $rm conftest*
13201    # SGI C++ compiler will create directory out/ii_files/ for
13202    # template instantiation
13203    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13204    $rm out/* && rmdir out
13205    cd ..
13206    rmdir conftest
13207    $rm conftest*
13208
13209 fi
13210 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13211 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13212
13213
13214 hard_links="nottested"
13215 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13216   # do not overwrite the value of need_locks provided by the user
13217   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13218 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13219   hard_links=yes
13220   $rm conftest*
13221   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13222   touch conftest.a
13223   ln conftest.a conftest.b 2>&5 || hard_links=no
13224   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13225   { echo "$as_me:$LINENO: result: $hard_links" >&5
13226 echo "${ECHO_T}$hard_links" >&6; }
13227   if test "$hard_links" = no; then
13228     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13229 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13230     need_locks=warn
13231   fi
13232 else
13233   need_locks=no
13234 fi
13235
13236 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13237 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13238
13239   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13240   case $host_os in
13241   aix4* | aix5*)
13242     # If we're using GNU nm, then we don't want the "-C" option.
13243     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13244     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13245       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'
13246     else
13247       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'
13248     fi
13249     ;;
13250   pw32*)
13251     export_symbols_cmds_CXX="$ltdll_cmds"
13252   ;;
13253   cygwin* | mingw*)
13254     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'
13255   ;;
13256   *)
13257     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13258   ;;
13259   esac
13260
13261 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13262 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13263 test "$ld_shlibs_CXX" = no && can_build_shared=no
13264
13265 #
13266 # Do we need to explicitly link libc?
13267 #
13268 case "x$archive_cmds_need_lc_CXX" in
13269 x|xyes)
13270   # Assume -lc should be added
13271   archive_cmds_need_lc_CXX=yes
13272
13273   if test "$enable_shared" = yes && test "$GCC" = yes; then
13274     case $archive_cmds_CXX in
13275     *'~'*)
13276       # FIXME: we may have to deal with multi-command sequences.
13277       ;;
13278     '$CC '*)
13279       # Test whether the compiler implicitly links with -lc since on some
13280       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13281       # to ld, don't add -lc before -lgcc.
13282       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13283 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13284       $rm conftest*
13285       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13286
13287       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13288   (eval $ac_compile) 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } 2>conftest.err; then
13292         soname=conftest
13293         lib=conftest
13294         libobjs=conftest.$ac_objext
13295         deplibs=
13296         wl=$lt_prog_compiler_wl_CXX
13297         pic_flag=$lt_prog_compiler_pic_CXX
13298         compiler_flags=-v
13299         linker_flags=-v
13300         verstring=
13301         output_objdir=.
13302         libname=conftest
13303         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13304         allow_undefined_flag_CXX=
13305         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13306   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); }
13310         then
13311           archive_cmds_need_lc_CXX=no
13312         else
13313           archive_cmds_need_lc_CXX=yes
13314         fi
13315         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13316       else
13317         cat conftest.err 1>&5
13318       fi
13319       $rm conftest*
13320       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13321 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13322       ;;
13323     esac
13324   fi
13325   ;;
13326 esac
13327
13328 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13329 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13330 library_names_spec=
13331 libname_spec='lib$name'
13332 soname_spec=
13333 shrext_cmds=".so"
13334 postinstall_cmds=
13335 postuninstall_cmds=
13336 finish_cmds=
13337 finish_eval=
13338 shlibpath_var=
13339 shlibpath_overrides_runpath=unknown
13340 version_type=none
13341 dynamic_linker="$host_os ld.so"
13342 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13343 if test "$GCC" = yes; then
13344   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13345   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13346     # if the path contains ";" then we assume it to be the separator
13347     # otherwise default to the standard path separator (i.e. ":") - it is
13348     # assumed that no part of a normal pathname contains ";" but that should
13349     # okay in the real world where ";" in dirpaths is itself problematic.
13350     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13351   else
13352     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13353   fi
13354 else
13355   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13356 fi
13357 need_lib_prefix=unknown
13358 hardcode_into_libs=no
13359
13360 # when you set need_version to no, make sure it does not cause -set_version
13361 # flags to be left without arguments
13362 need_version=unknown
13363
13364 case $host_os in
13365 aix3*)
13366   version_type=linux
13367   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13368   shlibpath_var=LIBPATH
13369
13370   # AIX 3 has no versioning support, so we append a major version to the name.
13371   soname_spec='${libname}${release}${shared_ext}$major'
13372   ;;
13373
13374 aix4* | aix5*)
13375   version_type=linux
13376   need_lib_prefix=no
13377   need_version=no
13378   hardcode_into_libs=yes
13379   if test "$host_cpu" = ia64; then
13380     # AIX 5 supports IA64
13381     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13382     shlibpath_var=LD_LIBRARY_PATH
13383   else
13384     # With GCC up to 2.95.x, collect2 would create an import file
13385     # for dependence libraries.  The import file would start with
13386     # the line `#! .'.  This would cause the generated library to
13387     # depend on `.', always an invalid library.  This was fixed in
13388     # development snapshots of GCC prior to 3.0.
13389     case $host_os in
13390       aix4 | aix4.[01] | aix4.[01].*)
13391       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13392            echo ' yes '
13393            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13394         :
13395       else
13396         can_build_shared=no
13397       fi
13398       ;;
13399     esac
13400     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13401     # soname into executable. Probably we can add versioning support to
13402     # collect2, so additional links can be useful in future.
13403     if test "$aix_use_runtimelinking" = yes; then
13404       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13405       # instead of lib<name>.a to let people know that these are not
13406       # typical AIX shared libraries.
13407       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408     else
13409       # We preserve .a as extension for shared libraries through AIX4.2
13410       # and later when we are not doing run time linking.
13411       library_names_spec='${libname}${release}.a $libname.a'
13412       soname_spec='${libname}${release}${shared_ext}$major'
13413     fi
13414     shlibpath_var=LIBPATH
13415   fi
13416   ;;
13417
13418 amigaos*)
13419   library_names_spec='$libname.ixlibrary $libname.a'
13420   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13421   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'
13422   ;;
13423
13424 beos*)
13425   library_names_spec='${libname}${shared_ext}'
13426   dynamic_linker="$host_os ld.so"
13427   shlibpath_var=LIBRARY_PATH
13428   ;;
13429
13430 bsdi[45]*)
13431   version_type=linux
13432   need_version=no
13433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13434   soname_spec='${libname}${release}${shared_ext}$major'
13435   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13436   shlibpath_var=LD_LIBRARY_PATH
13437   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13438   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13439   # the default ld.so.conf also contains /usr/contrib/lib and
13440   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13441   # libtool to hard-code these into programs
13442   ;;
13443
13444 cygwin* | mingw* | pw32*)
13445   version_type=windows
13446   shrext_cmds=".dll"
13447   need_version=no
13448   need_lib_prefix=no
13449
13450   case $GCC,$host_os in
13451   yes,cygwin* | yes,mingw* | yes,pw32*)
13452     library_names_spec='$libname.dll.a'
13453     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13454     postinstall_cmds='base_file=`basename \${file}`~
13455       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13456       dldir=$destdir/`dirname \$dlpath`~
13457       test -d \$dldir || mkdir -p \$dldir~
13458       $install_prog $dir/$dlname \$dldir/$dlname~
13459       chmod a+x \$dldir/$dlname'
13460     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13461       dlpath=$dir/\$dldll~
13462        $rm \$dlpath'
13463     shlibpath_overrides_runpath=yes
13464
13465     case $host_os in
13466     cygwin*)
13467       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13468       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13469       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13470       ;;
13471     mingw*)
13472       # MinGW DLLs use traditional 'lib' prefix
13473       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13474       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13475       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13476         # It is most probably a Windows format PATH printed by
13477         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13478         # path with ; separators, and with drive letters. We can handle the
13479         # drive letters (cygwin fileutils understands them), so leave them,
13480         # especially as we might pass files found there to a mingw objdump,
13481         # which wouldn't understand a cygwinified path. Ahh.
13482         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13483       else
13484         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13485       fi
13486       ;;
13487     pw32*)
13488       # pw32 DLLs use 'pw' prefix rather than 'lib'
13489       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13490       ;;
13491     esac
13492     ;;
13493
13494   *)
13495     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13496     ;;
13497   esac
13498   dynamic_linker='Win32 ld.exe'
13499   # FIXME: first we should search . and the directory the executable is in
13500   shlibpath_var=PATH
13501   ;;
13502
13503 darwin* | rhapsody*)
13504   dynamic_linker="$host_os dyld"
13505   version_type=darwin
13506   need_lib_prefix=no
13507   need_version=no
13508   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13509   soname_spec='${libname}${release}${major}$shared_ext'
13510   shlibpath_overrides_runpath=yes
13511   shlibpath_var=DYLD_LIBRARY_PATH
13512   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13513   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13514   if test "$GCC" = yes; then
13515     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"`
13516   else
13517     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13518   fi
13519   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13520   ;;
13521
13522 dgux*)
13523   version_type=linux
13524   need_lib_prefix=no
13525   need_version=no
13526   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13527   soname_spec='${libname}${release}${shared_ext}$major'
13528   shlibpath_var=LD_LIBRARY_PATH
13529   ;;
13530
13531 freebsd1*)
13532   dynamic_linker=no
13533   ;;
13534
13535 kfreebsd*-gnu)
13536   version_type=linux
13537   need_lib_prefix=no
13538   need_version=no
13539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13540   soname_spec='${libname}${release}${shared_ext}$major'
13541   shlibpath_var=LD_LIBRARY_PATH
13542   shlibpath_overrides_runpath=no
13543   hardcode_into_libs=yes
13544   dynamic_linker='GNU ld.so'
13545   ;;
13546
13547 freebsd* | dragonfly*)
13548   # DragonFly does not have aout.  When/if they implement a new
13549   # versioning mechanism, adjust this.
13550   if test -x /usr/bin/objformat; then
13551     objformat=`/usr/bin/objformat`
13552   else
13553     case $host_os in
13554     freebsd[123]*) objformat=aout ;;
13555     *) objformat=elf ;;
13556     esac
13557   fi
13558   version_type=freebsd-$objformat
13559   case $version_type in
13560     freebsd-elf*)
13561       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13562       need_version=no
13563       need_lib_prefix=no
13564       ;;
13565     freebsd-*)
13566       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13567       need_version=yes
13568       ;;
13569   esac
13570   shlibpath_var=LD_LIBRARY_PATH
13571   case $host_os in
13572   freebsd2*)
13573     shlibpath_overrides_runpath=yes
13574     ;;
13575   freebsd3.[01]* | freebsdelf3.[01]*)
13576     shlibpath_overrides_runpath=yes
13577     hardcode_into_libs=yes
13578     ;;
13579   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13580   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13581     shlibpath_overrides_runpath=no
13582     hardcode_into_libs=yes
13583     ;;
13584   freebsd*) # from 4.6 on
13585     shlibpath_overrides_runpath=yes
13586     hardcode_into_libs=yes
13587     ;;
13588   esac
13589   ;;
13590
13591 gnu*)
13592   version_type=linux
13593   need_lib_prefix=no
13594   need_version=no
13595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13596   soname_spec='${libname}${release}${shared_ext}$major'
13597   shlibpath_var=LD_LIBRARY_PATH
13598   hardcode_into_libs=yes
13599   ;;
13600
13601 hpux9* | hpux10* | hpux11*)
13602   # Give a soname corresponding to the major version so that dld.sl refuses to
13603   # link against other versions.
13604   version_type=sunos
13605   need_lib_prefix=no
13606   need_version=no
13607   case $host_cpu in
13608   ia64*)
13609     shrext_cmds='.so'
13610     hardcode_into_libs=yes
13611     dynamic_linker="$host_os dld.so"
13612     shlibpath_var=LD_LIBRARY_PATH
13613     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13614     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13615     soname_spec='${libname}${release}${shared_ext}$major'
13616     if test "X$HPUX_IA64_MODE" = X32; then
13617       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13618     else
13619       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13620     fi
13621     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13622     ;;
13623    hppa*64*)
13624      shrext_cmds='.sl'
13625      hardcode_into_libs=yes
13626      dynamic_linker="$host_os dld.sl"
13627      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13628      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13629      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13630      soname_spec='${libname}${release}${shared_ext}$major'
13631      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13632      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13633      ;;
13634    *)
13635     shrext_cmds='.sl'
13636     dynamic_linker="$host_os dld.sl"
13637     shlibpath_var=SHLIB_PATH
13638     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13640     soname_spec='${libname}${release}${shared_ext}$major'
13641     ;;
13642   esac
13643   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13644   postinstall_cmds='chmod 555 $lib'
13645   ;;
13646
13647 interix3*)
13648   version_type=linux
13649   need_lib_prefix=no
13650   need_version=no
13651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13652   soname_spec='${libname}${release}${shared_ext}$major'
13653   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13654   shlibpath_var=LD_LIBRARY_PATH
13655   shlibpath_overrides_runpath=no
13656   hardcode_into_libs=yes
13657   ;;
13658
13659 irix5* | irix6* | nonstopux*)
13660   case $host_os in
13661     nonstopux*) version_type=nonstopux ;;
13662     *)
13663         if test "$lt_cv_prog_gnu_ld" = yes; then
13664                 version_type=linux
13665         else
13666                 version_type=irix
13667         fi ;;
13668   esac
13669   need_lib_prefix=no
13670   need_version=no
13671   soname_spec='${libname}${release}${shared_ext}$major'
13672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13673   case $host_os in
13674   irix5* | nonstopux*)
13675     libsuff= shlibsuff=
13676     ;;
13677   *)
13678     case $LD in # libtool.m4 will add one of these switches to LD
13679     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13680       libsuff= shlibsuff= libmagic=32-bit;;
13681     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13682       libsuff=32 shlibsuff=N32 libmagic=N32;;
13683     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13684       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13685     *) libsuff= shlibsuff= libmagic=never-match;;
13686     esac
13687     ;;
13688   esac
13689   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13690   shlibpath_overrides_runpath=no
13691   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13692   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13693   hardcode_into_libs=yes
13694   ;;
13695
13696 # No shared lib support for Linux oldld, aout, or coff.
13697 linux*oldld* | linux*aout* | linux*coff*)
13698   dynamic_linker=no
13699   ;;
13700
13701 # This must be Linux ELF.
13702 linux*)
13703   version_type=linux
13704   need_lib_prefix=no
13705   need_version=no
13706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707   soname_spec='${libname}${release}${shared_ext}$major'
13708   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13709   shlibpath_var=LD_LIBRARY_PATH
13710   shlibpath_overrides_runpath=no
13711   # This implies no fast_install, which is unacceptable.
13712   # Some rework will be needed to allow for fast_install
13713   # before this can be enabled.
13714   hardcode_into_libs=yes
13715
13716   # Append ld.so.conf contents to the search path
13717   if test -f /etc/ld.so.conf; then
13718     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' ' '`
13719     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13720   fi
13721
13722   # We used to test for /lib/ld.so.1 and disable shared libraries on
13723   # powerpc, because MkLinux only supported shared libraries with the
13724   # GNU dynamic linker.  Since this was broken with cross compilers,
13725   # most powerpc-linux boxes support dynamic linking these days and
13726   # people can always --disable-shared, the test was removed, and we
13727   # assume the GNU/Linux dynamic linker is in use.
13728   dynamic_linker='GNU/Linux ld.so'
13729   ;;
13730
13731 knetbsd*-gnu)
13732   version_type=linux
13733   need_lib_prefix=no
13734   need_version=no
13735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13736   soname_spec='${libname}${release}${shared_ext}$major'
13737   shlibpath_var=LD_LIBRARY_PATH
13738   shlibpath_overrides_runpath=no
13739   hardcode_into_libs=yes
13740   dynamic_linker='GNU ld.so'
13741   ;;
13742
13743 netbsd*)
13744   version_type=sunos
13745   need_lib_prefix=no
13746   need_version=no
13747   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13748     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13749     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13750     dynamic_linker='NetBSD (a.out) ld.so'
13751   else
13752     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13753     soname_spec='${libname}${release}${shared_ext}$major'
13754     dynamic_linker='NetBSD ld.elf_so'
13755   fi
13756   shlibpath_var=LD_LIBRARY_PATH
13757   shlibpath_overrides_runpath=yes
13758   hardcode_into_libs=yes
13759   ;;
13760
13761 newsos6)
13762   version_type=linux
13763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13764   shlibpath_var=LD_LIBRARY_PATH
13765   shlibpath_overrides_runpath=yes
13766   ;;
13767
13768 nto-qnx*)
13769   version_type=linux
13770   need_lib_prefix=no
13771   need_version=no
13772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773   soname_spec='${libname}${release}${shared_ext}$major'
13774   shlibpath_var=LD_LIBRARY_PATH
13775   shlibpath_overrides_runpath=yes
13776   ;;
13777
13778 openbsd*)
13779   version_type=sunos
13780   sys_lib_dlsearch_path_spec="/usr/lib"
13781   need_lib_prefix=no
13782   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13783   case $host_os in
13784     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13785     *)                         need_version=no  ;;
13786   esac
13787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13788   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13789   shlibpath_var=LD_LIBRARY_PATH
13790   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13791     case $host_os in
13792       openbsd2.[89] | openbsd2.[89].*)
13793         shlibpath_overrides_runpath=no
13794         ;;
13795       *)
13796         shlibpath_overrides_runpath=yes
13797         ;;
13798       esac
13799   else
13800     shlibpath_overrides_runpath=yes
13801   fi
13802   ;;
13803
13804 os2*)
13805   libname_spec='$name'
13806   shrext_cmds=".dll"
13807   need_lib_prefix=no
13808   library_names_spec='$libname${shared_ext} $libname.a'
13809   dynamic_linker='OS/2 ld.exe'
13810   shlibpath_var=LIBPATH
13811   ;;
13812
13813 osf3* | osf4* | osf5*)
13814   version_type=osf
13815   need_lib_prefix=no
13816   need_version=no
13817   soname_spec='${libname}${release}${shared_ext}$major'
13818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13819   shlibpath_var=LD_LIBRARY_PATH
13820   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13821   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13822   ;;
13823
13824 solaris*)
13825   version_type=linux
13826   need_lib_prefix=no
13827   need_version=no
13828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13829   soname_spec='${libname}${release}${shared_ext}$major'
13830   shlibpath_var=LD_LIBRARY_PATH
13831   shlibpath_overrides_runpath=yes
13832   hardcode_into_libs=yes
13833   # ldd complains unless libraries are executable
13834   postinstall_cmds='chmod +x $lib'
13835   ;;
13836
13837 sunos4*)
13838   version_type=sunos
13839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13840   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13841   shlibpath_var=LD_LIBRARY_PATH
13842   shlibpath_overrides_runpath=yes
13843   if test "$with_gnu_ld" = yes; then
13844     need_lib_prefix=no
13845   fi
13846   need_version=yes
13847   ;;
13848
13849 sysv4 | sysv4.3*)
13850   version_type=linux
13851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13852   soname_spec='${libname}${release}${shared_ext}$major'
13853   shlibpath_var=LD_LIBRARY_PATH
13854   case $host_vendor in
13855     sni)
13856       shlibpath_overrides_runpath=no
13857       need_lib_prefix=no
13858       export_dynamic_flag_spec='${wl}-Blargedynsym'
13859       runpath_var=LD_RUN_PATH
13860       ;;
13861     siemens)
13862       need_lib_prefix=no
13863       ;;
13864     motorola)
13865       need_lib_prefix=no
13866       need_version=no
13867       shlibpath_overrides_runpath=no
13868       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13869       ;;
13870   esac
13871   ;;
13872
13873 sysv4*MP*)
13874   if test -d /usr/nec ;then
13875     version_type=linux
13876     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13877     soname_spec='$libname${shared_ext}.$major'
13878     shlibpath_var=LD_LIBRARY_PATH
13879   fi
13880   ;;
13881
13882 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13883   version_type=freebsd-elf
13884   need_lib_prefix=no
13885   need_version=no
13886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13887   soname_spec='${libname}${release}${shared_ext}$major'
13888   shlibpath_var=LD_LIBRARY_PATH
13889   hardcode_into_libs=yes
13890   if test "$with_gnu_ld" = yes; then
13891     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13892     shlibpath_overrides_runpath=no
13893   else
13894     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13895     shlibpath_overrides_runpath=yes
13896     case $host_os in
13897       sco3.2v5*)
13898         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13899         ;;
13900     esac
13901   fi
13902   sys_lib_dlsearch_path_spec='/usr/lib'
13903   ;;
13904
13905 uts4*)
13906   version_type=linux
13907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13908   soname_spec='${libname}${release}${shared_ext}$major'
13909   shlibpath_var=LD_LIBRARY_PATH
13910   ;;
13911
13912 *)
13913   dynamic_linker=no
13914   ;;
13915 esac
13916 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13917 echo "${ECHO_T}$dynamic_linker" >&6; }
13918 test "$dynamic_linker" = no && can_build_shared=no
13919
13920 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13921 if test "$GCC" = yes; then
13922   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13923 fi
13924
13925 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13926 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13927 hardcode_action_CXX=
13928 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13929    test -n "$runpath_var_CXX" || \
13930    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13931
13932   # We can hardcode non-existant directories.
13933   if test "$hardcode_direct_CXX" != no &&
13934      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13935      # have to relink, otherwise we might link with an installed library
13936      # when we should be linking with a yet-to-be-installed one
13937      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13938      test "$hardcode_minus_L_CXX" != no; then
13939     # Linking always hardcodes the temporary library directory.
13940     hardcode_action_CXX=relink
13941   else
13942     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13943     hardcode_action_CXX=immediate
13944   fi
13945 else
13946   # We cannot hardcode anything, or else we can only hardcode existing
13947   # directories.
13948   hardcode_action_CXX=unsupported
13949 fi
13950 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13951 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13952
13953 if test "$hardcode_action_CXX" = relink; then
13954   # Fast installation is not supported
13955   enable_fast_install=no
13956 elif test "$shlibpath_overrides_runpath" = yes ||
13957      test "$enable_shared" = no; then
13958   # Fast installation is not necessary
13959   enable_fast_install=needless
13960 fi
13961
13962
13963 # The else clause should only fire when bootstrapping the
13964 # libtool distribution, otherwise you forgot to ship ltmain.sh
13965 # with your package, and you will get complaints that there are
13966 # no rules to generate ltmain.sh.
13967 if test -f "$ltmain"; then
13968   # See if we are running on zsh, and set the options which allow our commands through
13969   # without removal of \ escapes.
13970   if test -n "${ZSH_VERSION+set}" ; then
13971     setopt NO_GLOB_SUBST
13972   fi
13973   # Now quote all the things that may contain metacharacters while being
13974   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13975   # variables and quote the copies for generation of the libtool script.
13976   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13977     SED SHELL STRIP \
13978     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13979     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13980     deplibs_check_method reload_flag reload_cmds need_locks \
13981     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13982     lt_cv_sys_global_symbol_to_c_name_address \
13983     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13984     old_postinstall_cmds old_postuninstall_cmds \
13985     compiler_CXX \
13986     CC_CXX \
13987     LD_CXX \
13988     lt_prog_compiler_wl_CXX \
13989     lt_prog_compiler_pic_CXX \
13990     lt_prog_compiler_static_CXX \
13991     lt_prog_compiler_no_builtin_flag_CXX \
13992     export_dynamic_flag_spec_CXX \
13993     thread_safe_flag_spec_CXX \
13994     whole_archive_flag_spec_CXX \
13995     enable_shared_with_static_runtimes_CXX \
13996     old_archive_cmds_CXX \
13997     old_archive_from_new_cmds_CXX \
13998     predep_objects_CXX \
13999     postdep_objects_CXX \
14000     predeps_CXX \
14001     postdeps_CXX \
14002     compiler_lib_search_path_CXX \
14003     archive_cmds_CXX \
14004     archive_expsym_cmds_CXX \
14005     postinstall_cmds_CXX \
14006     postuninstall_cmds_CXX \
14007     old_archive_from_expsyms_cmds_CXX \
14008     allow_undefined_flag_CXX \
14009     no_undefined_flag_CXX \
14010     export_symbols_cmds_CXX \
14011     hardcode_libdir_flag_spec_CXX \
14012     hardcode_libdir_flag_spec_ld_CXX \
14013     hardcode_libdir_separator_CXX \
14014     hardcode_automatic_CXX \
14015     module_cmds_CXX \
14016     module_expsym_cmds_CXX \
14017     lt_cv_prog_compiler_c_o_CXX \
14018     exclude_expsyms_CXX \
14019     include_expsyms_CXX; do
14020
14021     case $var in
14022     old_archive_cmds_CXX | \
14023     old_archive_from_new_cmds_CXX | \
14024     archive_cmds_CXX | \
14025     archive_expsym_cmds_CXX | \
14026     module_cmds_CXX | \
14027     module_expsym_cmds_CXX | \
14028     old_archive_from_expsyms_cmds_CXX | \
14029     export_symbols_cmds_CXX | \
14030     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14031     postinstall_cmds | postuninstall_cmds | \
14032     old_postinstall_cmds | old_postuninstall_cmds | \
14033     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14034       # Double-quote double-evaled strings.
14035       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14036       ;;
14037     *)
14038       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14039       ;;
14040     esac
14041   done
14042
14043   case $lt_echo in
14044   *'\$0 --fallback-echo"')
14045     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14046     ;;
14047   esac
14048
14049 cfgfile="$ofile"
14050
14051   cat <<__EOF__ >> "$cfgfile"
14052 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14053
14054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14055
14056 # Shell to use when invoking shell scripts.
14057 SHELL=$lt_SHELL
14058
14059 # Whether or not to build shared libraries.
14060 build_libtool_libs=$enable_shared
14061
14062 # Whether or not to build static libraries.
14063 build_old_libs=$enable_static
14064
14065 # Whether or not to add -lc for building shared libraries.
14066 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14067
14068 # Whether or not to disallow shared libs when runtime libs are static
14069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14070
14071 # Whether or not to optimize for fast installation.
14072 fast_install=$enable_fast_install
14073
14074 # The host system.
14075 host_alias=$host_alias
14076 host=$host
14077 host_os=$host_os
14078
14079 # The build system.
14080 build_alias=$build_alias
14081 build=$build
14082 build_os=$build_os
14083
14084 # An echo program that does not interpret backslashes.
14085 echo=$lt_echo
14086
14087 # The archiver.
14088 AR=$lt_AR
14089 AR_FLAGS=$lt_AR_FLAGS
14090
14091 # A C compiler.
14092 LTCC=$lt_LTCC
14093
14094 # LTCC compiler flags.
14095 LTCFLAGS=$lt_LTCFLAGS
14096
14097 # A language-specific compiler.
14098 CC=$lt_compiler_CXX
14099
14100 # Is the compiler the GNU C compiler?
14101 with_gcc=$GCC_CXX
14102
14103 # An ERE matcher.
14104 EGREP=$lt_EGREP
14105
14106 # The linker used to build libraries.
14107 LD=$lt_LD_CXX
14108
14109 # Whether we need hard or soft links.
14110 LN_S=$lt_LN_S
14111
14112 # A BSD-compatible nm program.
14113 NM=$lt_NM
14114
14115 # A symbol stripping program
14116 STRIP=$lt_STRIP
14117
14118 # Used to examine libraries when file_magic_cmd begins "file"
14119 MAGIC_CMD=$MAGIC_CMD
14120
14121 # Used on cygwin: DLL creation program.
14122 DLLTOOL="$DLLTOOL"
14123
14124 # Used on cygwin: object dumper.
14125 OBJDUMP="$OBJDUMP"
14126
14127 # Used on cygwin: assembler.
14128 AS="$AS"
14129
14130 # The name of the directory that contains temporary libtool files.
14131 objdir=$objdir
14132
14133 # How to create reloadable object files.
14134 reload_flag=$lt_reload_flag
14135 reload_cmds=$lt_reload_cmds
14136
14137 # How to pass a linker flag through the compiler.
14138 wl=$lt_lt_prog_compiler_wl_CXX
14139
14140 # Object file suffix (normally "o").
14141 objext="$ac_objext"
14142
14143 # Old archive suffix (normally "a").
14144 libext="$libext"
14145
14146 # Shared library suffix (normally ".so").
14147 shrext_cmds='$shrext_cmds'
14148
14149 # Executable file suffix (normally "").
14150 exeext="$exeext"
14151
14152 # Additional compiler flags for building library objects.
14153 pic_flag=$lt_lt_prog_compiler_pic_CXX
14154 pic_mode=$pic_mode
14155
14156 # What is the maximum length of a command?
14157 max_cmd_len=$lt_cv_sys_max_cmd_len
14158
14159 # Does compiler simultaneously support -c and -o options?
14160 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14161
14162 # Must we lock files when doing compilation?
14163 need_locks=$lt_need_locks
14164
14165 # Do we need the lib prefix for modules?
14166 need_lib_prefix=$need_lib_prefix
14167
14168 # Do we need a version for libraries?
14169 need_version=$need_version
14170
14171 # Whether dlopen is supported.
14172 dlopen_support=$enable_dlopen
14173
14174 # Whether dlopen of programs is supported.
14175 dlopen_self=$enable_dlopen_self
14176
14177 # Whether dlopen of statically linked programs is supported.
14178 dlopen_self_static=$enable_dlopen_self_static
14179
14180 # Compiler flag to prevent dynamic linking.
14181 link_static_flag=$lt_lt_prog_compiler_static_CXX
14182
14183 # Compiler flag to turn off builtin functions.
14184 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14185
14186 # Compiler flag to allow reflexive dlopens.
14187 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14188
14189 # Compiler flag to generate shared objects directly from archives.
14190 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14191
14192 # Compiler flag to generate thread-safe objects.
14193 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14194
14195 # Library versioning type.
14196 version_type=$version_type
14197
14198 # Format of library name prefix.
14199 libname_spec=$lt_libname_spec
14200
14201 # List of archive names.  First name is the real one, the rest are links.
14202 # The last name is the one that the linker finds with -lNAME.
14203 library_names_spec=$lt_library_names_spec
14204
14205 # The coded name of the library, if different from the real name.
14206 soname_spec=$lt_soname_spec
14207
14208 # Commands used to build and install an old-style archive.
14209 RANLIB=$lt_RANLIB
14210 old_archive_cmds=$lt_old_archive_cmds_CXX
14211 old_postinstall_cmds=$lt_old_postinstall_cmds
14212 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14213
14214 # Create an old-style archive from a shared archive.
14215 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14216
14217 # Create a temporary old-style archive to link instead of a shared archive.
14218 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14219
14220 # Commands used to build and install a shared archive.
14221 archive_cmds=$lt_archive_cmds_CXX
14222 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14223 postinstall_cmds=$lt_postinstall_cmds
14224 postuninstall_cmds=$lt_postuninstall_cmds
14225
14226 # Commands used to build a loadable module (assumed same as above if empty)
14227 module_cmds=$lt_module_cmds_CXX
14228 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14229
14230 # Commands to strip libraries.
14231 old_striplib=$lt_old_striplib
14232 striplib=$lt_striplib
14233
14234 # Dependencies to place before the objects being linked to create a
14235 # shared library.
14236 predep_objects=$lt_predep_objects_CXX
14237
14238 # Dependencies to place after the objects being linked to create a
14239 # shared library.
14240 postdep_objects=$lt_postdep_objects_CXX
14241
14242 # Dependencies to place before the objects being linked to create a
14243 # shared library.
14244 predeps=$lt_predeps_CXX
14245
14246 # Dependencies to place after the objects being linked to create a
14247 # shared library.
14248 postdeps=$lt_postdeps_CXX
14249
14250 # The library search path used internally by the compiler when linking
14251 # a shared library.
14252 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14253
14254 # Method to check whether dependent libraries are shared objects.
14255 deplibs_check_method=$lt_deplibs_check_method
14256
14257 # Command to use when deplibs_check_method == file_magic.
14258 file_magic_cmd=$lt_file_magic_cmd
14259
14260 # Flag that allows shared libraries with undefined symbols to be built.
14261 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14262
14263 # Flag that forces no undefined symbols.
14264 no_undefined_flag=$lt_no_undefined_flag_CXX
14265
14266 # Commands used to finish a libtool library installation in a directory.
14267 finish_cmds=$lt_finish_cmds
14268
14269 # Same as above, but a single script fragment to be evaled but not shown.
14270 finish_eval=$lt_finish_eval
14271
14272 # Take the output of nm and produce a listing of raw symbols and C names.
14273 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14274
14275 # Transform the output of nm in a proper C declaration
14276 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14277
14278 # Transform the output of nm in a C name address pair
14279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14280
14281 # This is the shared library runtime path variable.
14282 runpath_var=$runpath_var
14283
14284 # This is the shared library path variable.
14285 shlibpath_var=$shlibpath_var
14286
14287 # Is shlibpath searched before the hard-coded library search path?
14288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14289
14290 # How to hardcode a shared library path into an executable.
14291 hardcode_action=$hardcode_action_CXX
14292
14293 # Whether we should hardcode library paths into libraries.
14294 hardcode_into_libs=$hardcode_into_libs
14295
14296 # Flag to hardcode \$libdir into a binary during linking.
14297 # This must work even if \$libdir does not exist.
14298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14299
14300 # If ld is used when linking, flag to hardcode \$libdir into
14301 # a binary during linking. This must work even if \$libdir does
14302 # not exist.
14303 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14304
14305 # Whether we need a single -rpath flag with a separated argument.
14306 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14307
14308 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14309 # resulting binary.
14310 hardcode_direct=$hardcode_direct_CXX
14311
14312 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14313 # resulting binary.
14314 hardcode_minus_L=$hardcode_minus_L_CXX
14315
14316 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14317 # the resulting binary.
14318 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14319
14320 # Set to yes if building a shared library automatically hardcodes DIR into the library
14321 # and all subsequent libraries and executables linked against it.
14322 hardcode_automatic=$hardcode_automatic_CXX
14323
14324 # Variables whose values should be saved in libtool wrapper scripts and
14325 # restored at relink time.
14326 variables_saved_for_relink="$variables_saved_for_relink"
14327
14328 # Whether libtool must link a program against all its dependency libraries.
14329 link_all_deplibs=$link_all_deplibs_CXX
14330
14331 # Compile-time system search path for libraries
14332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14333
14334 # Run-time system search path for libraries
14335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14336
14337 # Fix the shell variable \$srcfile for the compiler.
14338 fix_srcfile_path="$fix_srcfile_path_CXX"
14339
14340 # Set to yes if exported symbols are required.
14341 always_export_symbols=$always_export_symbols_CXX
14342
14343 # The commands to list exported symbols.
14344 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14345
14346 # The commands to extract the exported symbol list from a shared archive.
14347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14348
14349 # Symbols that should not be listed in the preloaded symbols.
14350 exclude_expsyms=$lt_exclude_expsyms_CXX
14351
14352 # Symbols that must always be exported.
14353 include_expsyms=$lt_include_expsyms_CXX
14354
14355 # ### END LIBTOOL TAG CONFIG: $tagname
14356
14357 __EOF__
14358
14359
14360 else
14361   # If there is no Makefile yet, we rely on a make rule to execute
14362   # `config.status --recheck' to rerun these tests and create the
14363   # libtool script then.
14364   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14365   if test -f "$ltmain_in"; then
14366     test -f Makefile && make "$ltmain"
14367   fi
14368 fi
14369
14370
14371 ac_ext=c
14372 ac_cpp='$CPP $CPPFLAGS'
14373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14376
14377 CC=$lt_save_CC
14378 LDCXX=$LD
14379 LD=$lt_save_LD
14380 GCC=$lt_save_GCC
14381 with_gnu_ldcxx=$with_gnu_ld
14382 with_gnu_ld=$lt_save_with_gnu_ld
14383 lt_cv_path_LDCXX=$lt_cv_path_LD
14384 lt_cv_path_LD=$lt_save_path_LD
14385 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14386 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14387
14388         else
14389           tagname=""
14390         fi
14391         ;;
14392
14393       F77)
14394         if test -n "$F77" && test "X$F77" != "Xno"; then
14395
14396 ac_ext=f
14397 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14398 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14399 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14400
14401
14402 archive_cmds_need_lc_F77=no
14403 allow_undefined_flag_F77=
14404 always_export_symbols_F77=no
14405 archive_expsym_cmds_F77=
14406 export_dynamic_flag_spec_F77=
14407 hardcode_direct_F77=no
14408 hardcode_libdir_flag_spec_F77=
14409 hardcode_libdir_flag_spec_ld_F77=
14410 hardcode_libdir_separator_F77=
14411 hardcode_minus_L_F77=no
14412 hardcode_automatic_F77=no
14413 module_cmds_F77=
14414 module_expsym_cmds_F77=
14415 link_all_deplibs_F77=unknown
14416 old_archive_cmds_F77=$old_archive_cmds
14417 no_undefined_flag_F77=
14418 whole_archive_flag_spec_F77=
14419 enable_shared_with_static_runtimes_F77=no
14420
14421 # Source file extension for f77 test sources.
14422 ac_ext=f
14423
14424 # Object file extension for compiled f77 test sources.
14425 objext=o
14426 objext_F77=$objext
14427
14428 # Code to be used in simple compile tests
14429 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14430
14431 # Code to be used in simple link tests
14432 lt_simple_link_test_code="      program t\n      end\n"
14433
14434 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14435
14436 # If no C compiler was specified, use CC.
14437 LTCC=${LTCC-"$CC"}
14438
14439 # If no C compiler flags were specified, use CFLAGS.
14440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14441
14442 # Allow CC to be a program name with arguments.
14443 compiler=$CC
14444
14445
14446 # save warnings/boilerplate of simple test code
14447 ac_outfile=conftest.$ac_objext
14448 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14449 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14450 _lt_compiler_boilerplate=`cat conftest.err`
14451 $rm conftest*
14452
14453 ac_outfile=conftest.$ac_objext
14454 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14455 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14456 _lt_linker_boilerplate=`cat conftest.err`
14457 $rm conftest*
14458
14459
14460 # Allow CC to be a program name with arguments.
14461 lt_save_CC="$CC"
14462 CC=${F77-"f77"}
14463 compiler=$CC
14464 compiler_F77=$CC
14465 for cc_temp in $compiler""; do
14466   case $cc_temp in
14467     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14468     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14469     \-*) ;;
14470     *) break;;
14471   esac
14472 done
14473 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14474
14475
14476 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14477 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14478 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14479 echo "${ECHO_T}$can_build_shared" >&6; }
14480
14481 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14482 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14483 test "$can_build_shared" = "no" && enable_shared=no
14484
14485 # On AIX, shared libraries and static libraries use the same namespace, and
14486 # are all built from PIC.
14487 case $host_os in
14488 aix3*)
14489   test "$enable_shared" = yes && enable_static=no
14490   if test -n "$RANLIB"; then
14491     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14492     postinstall_cmds='$RANLIB $lib'
14493   fi
14494   ;;
14495 aix4* | aix5*)
14496   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14497     test "$enable_shared" = yes && enable_static=no
14498   fi
14499   ;;
14500 esac
14501 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14502 echo "${ECHO_T}$enable_shared" >&6; }
14503
14504 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14505 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14506 # Make sure either enable_shared or enable_static is yes.
14507 test "$enable_shared" = yes || enable_static=yes
14508 { echo "$as_me:$LINENO: result: $enable_static" >&5
14509 echo "${ECHO_T}$enable_static" >&6; }
14510
14511 GCC_F77="$G77"
14512 LD_F77="$LD"
14513
14514 lt_prog_compiler_wl_F77=
14515 lt_prog_compiler_pic_F77=
14516 lt_prog_compiler_static_F77=
14517
14518 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14519 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14520
14521   if test "$GCC" = yes; then
14522     lt_prog_compiler_wl_F77='-Wl,'
14523     lt_prog_compiler_static_F77='-static'
14524
14525     case $host_os in
14526       aix*)
14527       # All AIX code is PIC.
14528       if test "$host_cpu" = ia64; then
14529         # AIX 5 now supports IA64 processor
14530         lt_prog_compiler_static_F77='-Bstatic'
14531       fi
14532       ;;
14533
14534     amigaos*)
14535       # FIXME: we need at least 68020 code to build shared libraries, but
14536       # adding the `-m68020' flag to GCC prevents building anything better,
14537       # like `-m68040'.
14538       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14539       ;;
14540
14541     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14542       # PIC is the default for these OSes.
14543       ;;
14544
14545     mingw* | pw32* | os2*)
14546       # This hack is so that the source file can tell whether it is being
14547       # built for inclusion in a dll (and should export symbols for example).
14548       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14549       ;;
14550
14551     darwin* | rhapsody*)
14552       # PIC is the default on this platform
14553       # Common symbols not allowed in MH_DYLIB files
14554       lt_prog_compiler_pic_F77='-fno-common'
14555       ;;
14556
14557     interix3*)
14558       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14559       # Instead, we relocate shared libraries at runtime.
14560       ;;
14561
14562     msdosdjgpp*)
14563       # Just because we use GCC doesn't mean we suddenly get shared libraries
14564       # on systems that don't support them.
14565       lt_prog_compiler_can_build_shared_F77=no
14566       enable_shared=no
14567       ;;
14568
14569     sysv4*MP*)
14570       if test -d /usr/nec; then
14571         lt_prog_compiler_pic_F77=-Kconform_pic
14572       fi
14573       ;;
14574
14575     hpux*)
14576       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14577       # not for PA HP-UX.
14578       case $host_cpu in
14579       hppa*64*|ia64*)
14580         # +Z the default
14581         ;;
14582       *)
14583         lt_prog_compiler_pic_F77='-fPIC'
14584         ;;
14585       esac
14586       ;;
14587
14588     *)
14589       lt_prog_compiler_pic_F77='-fPIC'
14590       ;;
14591     esac
14592   else
14593     # PORTME Check for flag to pass linker flags through the system compiler.
14594     case $host_os in
14595     aix*)
14596       lt_prog_compiler_wl_F77='-Wl,'
14597       if test "$host_cpu" = ia64; then
14598         # AIX 5 now supports IA64 processor
14599         lt_prog_compiler_static_F77='-Bstatic'
14600       else
14601         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14602       fi
14603       ;;
14604       darwin*)
14605         # PIC is the default on this platform
14606         # Common symbols not allowed in MH_DYLIB files
14607        case $cc_basename in
14608          xlc*)
14609          lt_prog_compiler_pic_F77='-qnocommon'
14610          lt_prog_compiler_wl_F77='-Wl,'
14611          ;;
14612        esac
14613        ;;
14614
14615     mingw* | pw32* | os2*)
14616       # This hack is so that the source file can tell whether it is being
14617       # built for inclusion in a dll (and should export symbols for example).
14618       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14619       ;;
14620
14621     hpux9* | hpux10* | hpux11*)
14622       lt_prog_compiler_wl_F77='-Wl,'
14623       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14624       # not for PA HP-UX.
14625       case $host_cpu in
14626       hppa*64*|ia64*)
14627         # +Z the default
14628         ;;
14629       *)
14630         lt_prog_compiler_pic_F77='+Z'
14631         ;;
14632       esac
14633       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14634       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14635       ;;
14636
14637     irix5* | irix6* | nonstopux*)
14638       lt_prog_compiler_wl_F77='-Wl,'
14639       # PIC (with -KPIC) is the default.
14640       lt_prog_compiler_static_F77='-non_shared'
14641       ;;
14642
14643     newsos6)
14644       lt_prog_compiler_pic_F77='-KPIC'
14645       lt_prog_compiler_static_F77='-Bstatic'
14646       ;;
14647
14648     linux*)
14649       case $cc_basename in
14650       icc* | ecc*)
14651         lt_prog_compiler_wl_F77='-Wl,'
14652         lt_prog_compiler_pic_F77='-KPIC'
14653         lt_prog_compiler_static_F77='-static'
14654         ;;
14655       pgcc* | pgf77* | pgf90* | pgf95*)
14656         # Portland Group compilers (*not* the Pentium gcc compiler,
14657         # which looks to be a dead project)
14658         lt_prog_compiler_wl_F77='-Wl,'
14659         lt_prog_compiler_pic_F77='-fpic'
14660         lt_prog_compiler_static_F77='-Bstatic'
14661         ;;
14662       ccc*)
14663         lt_prog_compiler_wl_F77='-Wl,'
14664         # All Alpha code is PIC.
14665         lt_prog_compiler_static_F77='-non_shared'
14666         ;;
14667       esac
14668       ;;
14669
14670     osf3* | osf4* | osf5*)
14671       lt_prog_compiler_wl_F77='-Wl,'
14672       # All OSF/1 code is PIC.
14673       lt_prog_compiler_static_F77='-non_shared'
14674       ;;
14675
14676     solaris*)
14677       lt_prog_compiler_pic_F77='-KPIC'
14678       lt_prog_compiler_static_F77='-Bstatic'
14679       case $cc_basename in
14680       f77* | f90* | f95*)
14681         lt_prog_compiler_wl_F77='-Qoption ld ';;
14682       *)
14683         lt_prog_compiler_wl_F77='-Wl,';;
14684       esac
14685       ;;
14686
14687     sunos4*)
14688       lt_prog_compiler_wl_F77='-Qoption ld '
14689       lt_prog_compiler_pic_F77='-PIC'
14690       lt_prog_compiler_static_F77='-Bstatic'
14691       ;;
14692
14693     sysv4 | sysv4.2uw2* | sysv4.3*)
14694       lt_prog_compiler_wl_F77='-Wl,'
14695       lt_prog_compiler_pic_F77='-KPIC'
14696       lt_prog_compiler_static_F77='-Bstatic'
14697       ;;
14698
14699     sysv4*MP*)
14700       if test -d /usr/nec ;then
14701         lt_prog_compiler_pic_F77='-Kconform_pic'
14702         lt_prog_compiler_static_F77='-Bstatic'
14703       fi
14704       ;;
14705
14706     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14707       lt_prog_compiler_wl_F77='-Wl,'
14708       lt_prog_compiler_pic_F77='-KPIC'
14709       lt_prog_compiler_static_F77='-Bstatic'
14710       ;;
14711
14712     unicos*)
14713       lt_prog_compiler_wl_F77='-Wl,'
14714       lt_prog_compiler_can_build_shared_F77=no
14715       ;;
14716
14717     uts4*)
14718       lt_prog_compiler_pic_F77='-pic'
14719       lt_prog_compiler_static_F77='-Bstatic'
14720       ;;
14721
14722     *)
14723       lt_prog_compiler_can_build_shared_F77=no
14724       ;;
14725     esac
14726   fi
14727
14728 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14729 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14730
14731 #
14732 # Check to make sure the PIC flag actually works.
14733 #
14734 if test -n "$lt_prog_compiler_pic_F77"; then
14735
14736 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14737 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14738 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14739   echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741   lt_prog_compiler_pic_works_F77=no
14742   ac_outfile=conftest.$ac_objext
14743    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14744    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14745    # Insert the option either (1) after the last *FLAGS variable, or
14746    # (2) before a word containing "conftest.", or (3) at the end.
14747    # Note that $ac_compile itself does not contain backslashes and begins
14748    # with a dollar sign (not a hyphen), so the echo should work correctly.
14749    # The option is referenced via a variable to avoid confusing sed.
14750    lt_compile=`echo "$ac_compile" | $SED \
14751    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14753    -e 's:$: $lt_compiler_flag:'`
14754    (eval echo "\"\$as_me:14754: $lt_compile\"" >&5)
14755    (eval "$lt_compile" 2>conftest.err)
14756    ac_status=$?
14757    cat conftest.err >&5
14758    echo "$as_me:14758: \$? = $ac_status" >&5
14759    if (exit $ac_status) && test -s "$ac_outfile"; then
14760      # The compiler can only warn and ignore the option if not recognized
14761      # So say no if there are warnings other than the usual output.
14762      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14763      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14764      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14765        lt_prog_compiler_pic_works_F77=yes
14766      fi
14767    fi
14768    $rm conftest*
14769
14770 fi
14771 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14772 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14773
14774 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14775     case $lt_prog_compiler_pic_F77 in
14776      "" | " "*) ;;
14777      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14778      esac
14779 else
14780     lt_prog_compiler_pic_F77=
14781      lt_prog_compiler_can_build_shared_F77=no
14782 fi
14783
14784 fi
14785 case $host_os in
14786   # For platforms which do not support PIC, -DPIC is meaningless:
14787   *djgpp*)
14788     lt_prog_compiler_pic_F77=
14789     ;;
14790   *)
14791     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14792     ;;
14793 esac
14794
14795 #
14796 # Check to make sure the static flag actually works.
14797 #
14798 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14799 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14800 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14801 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14802   echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804   lt_prog_compiler_static_works_F77=no
14805    save_LDFLAGS="$LDFLAGS"
14806    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14807    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14808    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14809      # The linker can only warn and ignore the option if not recognized
14810      # So say no if there are warnings
14811      if test -s conftest.err; then
14812        # Append any errors to the config.log.
14813        cat conftest.err 1>&5
14814        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14815        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14816        if diff conftest.exp conftest.er2 >/dev/null; then
14817          lt_prog_compiler_static_works_F77=yes
14818        fi
14819      else
14820        lt_prog_compiler_static_works_F77=yes
14821      fi
14822    fi
14823    $rm conftest*
14824    LDFLAGS="$save_LDFLAGS"
14825
14826 fi
14827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14828 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14829
14830 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14831     :
14832 else
14833     lt_prog_compiler_static_F77=
14834 fi
14835
14836
14837 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14839 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14840   echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842   lt_cv_prog_compiler_c_o_F77=no
14843    $rm -r conftest 2>/dev/null
14844    mkdir conftest
14845    cd conftest
14846    mkdir out
14847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14848
14849    lt_compiler_flag="-o out/conftest2.$ac_objext"
14850    # Insert the option either (1) after the last *FLAGS variable, or
14851    # (2) before a word containing "conftest.", or (3) at the end.
14852    # Note that $ac_compile itself does not contain backslashes and begins
14853    # with a dollar sign (not a hyphen), so the echo should work correctly.
14854    lt_compile=`echo "$ac_compile" | $SED \
14855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14857    -e 's:$: $lt_compiler_flag:'`
14858    (eval echo "\"\$as_me:14858: $lt_compile\"" >&5)
14859    (eval "$lt_compile" 2>out/conftest.err)
14860    ac_status=$?
14861    cat out/conftest.err >&5
14862    echo "$as_me:14862: \$? = $ac_status" >&5
14863    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14864    then
14865      # The compiler can only warn and ignore the option if not recognized
14866      # So say no if there are warnings
14867      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14868      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14869      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14870        lt_cv_prog_compiler_c_o_F77=yes
14871      fi
14872    fi
14873    chmod u+w . 2>&5
14874    $rm conftest*
14875    # SGI C++ compiler will create directory out/ii_files/ for
14876    # template instantiation
14877    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14878    $rm out/* && rmdir out
14879    cd ..
14880    rmdir conftest
14881    $rm conftest*
14882
14883 fi
14884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14886
14887
14888 hard_links="nottested"
14889 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14890   # do not overwrite the value of need_locks provided by the user
14891   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14893   hard_links=yes
14894   $rm conftest*
14895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14896   touch conftest.a
14897   ln conftest.a conftest.b 2>&5 || hard_links=no
14898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14899   { echo "$as_me:$LINENO: result: $hard_links" >&5
14900 echo "${ECHO_T}$hard_links" >&6; }
14901   if test "$hard_links" = no; then
14902     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14904     need_locks=warn
14905   fi
14906 else
14907   need_locks=no
14908 fi
14909
14910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14912
14913   runpath_var=
14914   allow_undefined_flag_F77=
14915   enable_shared_with_static_runtimes_F77=no
14916   archive_cmds_F77=
14917   archive_expsym_cmds_F77=
14918   old_archive_From_new_cmds_F77=
14919   old_archive_from_expsyms_cmds_F77=
14920   export_dynamic_flag_spec_F77=
14921   whole_archive_flag_spec_F77=
14922   thread_safe_flag_spec_F77=
14923   hardcode_libdir_flag_spec_F77=
14924   hardcode_libdir_flag_spec_ld_F77=
14925   hardcode_libdir_separator_F77=
14926   hardcode_direct_F77=no
14927   hardcode_minus_L_F77=no
14928   hardcode_shlibpath_var_F77=unsupported
14929   link_all_deplibs_F77=unknown
14930   hardcode_automatic_F77=no
14931   module_cmds_F77=
14932   module_expsym_cmds_F77=
14933   always_export_symbols_F77=no
14934   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14935   # include_expsyms should be a list of space-separated symbols to be *always*
14936   # included in the symbol list
14937   include_expsyms_F77=
14938   # exclude_expsyms can be an extended regexp of symbols to exclude
14939   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14940   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14941   # as well as any symbol that contains `d'.
14942   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14943   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14944   # platforms (ab)use it in PIC code, but their linkers get confused if
14945   # the symbol is explicitly referenced.  Since portable code cannot
14946   # rely on this symbol name, it's probably fine to never include it in
14947   # preloaded symbol tables.
14948   extract_expsyms_cmds=
14949   # Just being paranoid about ensuring that cc_basename is set.
14950   for cc_temp in $compiler""; do
14951   case $cc_temp in
14952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14954     \-*) ;;
14955     *) break;;
14956   esac
14957 done
14958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14959
14960   case $host_os in
14961   cygwin* | mingw* | pw32*)
14962     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14963     # When not using gcc, we currently assume that we are using
14964     # Microsoft Visual C++.
14965     if test "$GCC" != yes; then
14966       with_gnu_ld=no
14967     fi
14968     ;;
14969   interix*)
14970     # we just hope/assume this is gcc and not c89 (= MSVC++)
14971     with_gnu_ld=yes
14972     ;;
14973   openbsd*)
14974     with_gnu_ld=no
14975     ;;
14976   esac
14977
14978   ld_shlibs_F77=yes
14979   if test "$with_gnu_ld" = yes; then
14980     # If archive_cmds runs LD, not CC, wlarc should be empty
14981     wlarc='${wl}'
14982
14983     # Set some defaults for GNU ld with shared library support. These
14984     # are reset later if shared libraries are not supported. Putting them
14985     # here allows them to be overridden if necessary.
14986     runpath_var=LD_RUN_PATH
14987     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14988     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14989     # ancient GNU ld didn't support --whole-archive et. al.
14990     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14991         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14992       else
14993         whole_archive_flag_spec_F77=
14994     fi
14995     supports_anon_versioning=no
14996     case `$LD -v 2>/dev/null` in
14997       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14998       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14999       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15000       *\ 2.11.*) ;; # other 2.11 versions
15001       *) supports_anon_versioning=yes ;;
15002     esac
15003
15004     # See if GNU ld supports shared libraries.
15005     case $host_os in
15006     aix3* | aix4* | aix5*)
15007       # On AIX/PPC, the GNU linker is very broken
15008       if test "$host_cpu" != ia64; then
15009         ld_shlibs_F77=no
15010         cat <<EOF 1>&2
15011
15012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15013 *** to be unable to reliably create shared libraries on AIX.
15014 *** Therefore, libtool is disabling shared libraries support.  If you
15015 *** really care for shared libraries, you may want to modify your PATH
15016 *** so that a non-GNU linker is found, and then restart.
15017
15018 EOF
15019       fi
15020       ;;
15021
15022     amigaos*)
15023       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)'
15024       hardcode_libdir_flag_spec_F77='-L$libdir'
15025       hardcode_minus_L_F77=yes
15026
15027       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15028       # that the semantics of dynamic libraries on AmigaOS, at least up
15029       # to version 4, is to share data among multiple programs linked
15030       # with the same dynamic library.  Since this doesn't match the
15031       # behavior of shared libraries on other platforms, we can't use
15032       # them.
15033       ld_shlibs_F77=no
15034       ;;
15035
15036     beos*)
15037       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15038         allow_undefined_flag_F77=unsupported
15039         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15040         # support --undefined.  This deserves some investigation.  FIXME
15041         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15042       else
15043         ld_shlibs_F77=no
15044       fi
15045       ;;
15046
15047     cygwin* | mingw* | pw32*)
15048       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15049       # as there is no search path for DLLs.
15050       hardcode_libdir_flag_spec_F77='-L$libdir'
15051       allow_undefined_flag_F77=unsupported
15052       always_export_symbols_F77=no
15053       enable_shared_with_static_runtimes_F77=yes
15054       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15055
15056       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15057         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15058         # If the export-symbols file already is a .def file (1st line
15059         # is EXPORTS), use it as is; otherwise, prepend...
15060         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15061           cp $export_symbols $output_objdir/$soname.def;
15062         else
15063           echo EXPORTS > $output_objdir/$soname.def;
15064           cat $export_symbols >> $output_objdir/$soname.def;
15065         fi~
15066         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15067       else
15068         ld_shlibs_F77=no
15069       fi
15070       ;;
15071
15072     interix3*)
15073       hardcode_direct_F77=no
15074       hardcode_shlibpath_var_F77=no
15075       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15076       export_dynamic_flag_spec_F77='${wl}-E'
15077       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15078       # Instead, shared libraries are loaded at an image base (0x10000000 by
15079       # default) and relocated if they conflict, which is a slow very memory
15080       # consuming and fragmenting process.  To avoid this, we pick a random,
15081       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15082       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15083       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'
15084       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'
15085       ;;
15086
15087     linux*)
15088       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15089         tmp_addflag=
15090         case $cc_basename,$host_cpu in
15091         pgcc*)                          # Portland Group C compiler
15092           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'
15093           tmp_addflag=' $pic_flag'
15094           ;;
15095         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15096           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'
15097           tmp_addflag=' $pic_flag -Mnomain' ;;
15098         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15099           tmp_addflag=' -i_dynamic' ;;
15100         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15101           tmp_addflag=' -i_dynamic -nofor_main' ;;
15102         ifc* | ifort*)                  # Intel Fortran compiler
15103           tmp_addflag=' -nofor_main' ;;
15104         esac
15105         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106
15107         if test $supports_anon_versioning = yes; then
15108           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15109   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15110   $echo "local: *; };" >> $output_objdir/$libname.ver~
15111           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15112         fi
15113       else
15114         ld_shlibs_F77=no
15115       fi
15116       ;;
15117
15118     netbsd*)
15119       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15120         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15121         wlarc=
15122       else
15123         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15124         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15125       fi
15126       ;;
15127
15128     solaris*)
15129       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15130         ld_shlibs_F77=no
15131         cat <<EOF 1>&2
15132
15133 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15134 *** create shared libraries on Solaris systems.  Therefore, libtool
15135 *** is disabling shared libraries support.  We urge you to upgrade GNU
15136 *** binutils to release 2.9.1 or newer.  Another option is to modify
15137 *** your PATH or compiler configuration so that the native linker is
15138 *** used, and then restart.
15139
15140 EOF
15141       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15142         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15143         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15144       else
15145         ld_shlibs_F77=no
15146       fi
15147       ;;
15148
15149     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15150       case `$LD -v 2>&1` in
15151         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15152         ld_shlibs_F77=no
15153         cat <<_LT_EOF 1>&2
15154
15155 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15156 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15157 *** is disabling shared libraries support.  We urge you to upgrade GNU
15158 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15159 *** your PATH or compiler configuration so that the native linker is
15160 *** used, and then restart.
15161
15162 _LT_EOF
15163         ;;
15164         *)
15165           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15166             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15167             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15168             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15169           else
15170             ld_shlibs_F77=no
15171           fi
15172         ;;
15173       esac
15174       ;;
15175
15176     sunos4*)
15177       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15178       wlarc=
15179       hardcode_direct_F77=yes
15180       hardcode_shlibpath_var_F77=no
15181       ;;
15182
15183     *)
15184       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15185         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15186         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15187       else
15188         ld_shlibs_F77=no
15189       fi
15190       ;;
15191     esac
15192
15193     if test "$ld_shlibs_F77" = no; then
15194       runpath_var=
15195       hardcode_libdir_flag_spec_F77=
15196       export_dynamic_flag_spec_F77=
15197       whole_archive_flag_spec_F77=
15198     fi
15199   else
15200     # PORTME fill in a description of your system's linker (not GNU ld)
15201     case $host_os in
15202     aix3*)
15203       allow_undefined_flag_F77=unsupported
15204       always_export_symbols_F77=yes
15205       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'
15206       # Note: this linker hardcodes the directories in LIBPATH if there
15207       # are no directories specified by -L.
15208       hardcode_minus_L_F77=yes
15209       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15210         # Neither direct hardcoding nor static linking is supported with a
15211         # broken collect2.
15212         hardcode_direct_F77=unsupported
15213       fi
15214       ;;
15215
15216     aix4* | aix5*)
15217       if test "$host_cpu" = ia64; then
15218         # On IA64, the linker does run time linking by default, so we don't
15219         # have to do anything special.
15220         aix_use_runtimelinking=no
15221         exp_sym_flag='-Bexport'
15222         no_entry_flag=""
15223       else
15224         # If we're using GNU nm, then we don't want the "-C" option.
15225         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15226         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15227           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'
15228         else
15229           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'
15230         fi
15231         aix_use_runtimelinking=no
15232
15233         # Test if we are trying to use run time linking or normal
15234         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15235         # need to do runtime linking.
15236         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15237           for ld_flag in $LDFLAGS; do
15238           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15239             aix_use_runtimelinking=yes
15240             break
15241           fi
15242           done
15243           ;;
15244         esac
15245
15246         exp_sym_flag='-bexport'
15247         no_entry_flag='-bnoentry'
15248       fi
15249
15250       # When large executables or shared objects are built, AIX ld can
15251       # have problems creating the table of contents.  If linking a library
15252       # or program results in "error TOC overflow" add -mminimal-toc to
15253       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15254       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15255
15256       archive_cmds_F77=''
15257       hardcode_direct_F77=yes
15258       hardcode_libdir_separator_F77=':'
15259       link_all_deplibs_F77=yes
15260
15261       if test "$GCC" = yes; then
15262         case $host_os in aix4.[012]|aix4.[012].*)
15263         # We only want to do this on AIX 4.2 and lower, the check
15264         # below for broken collect2 doesn't work under 4.3+
15265           collect2name=`${CC} -print-prog-name=collect2`
15266           if test -f "$collect2name" && \
15267            strings "$collect2name" | grep resolve_lib_name >/dev/null
15268           then
15269           # We have reworked collect2
15270           hardcode_direct_F77=yes
15271           else
15272           # We have old collect2
15273           hardcode_direct_F77=unsupported
15274           # It fails to find uninstalled libraries when the uninstalled
15275           # path is not listed in the libpath.  Setting hardcode_minus_L
15276           # to unsupported forces relinking
15277           hardcode_minus_L_F77=yes
15278           hardcode_libdir_flag_spec_F77='-L$libdir'
15279           hardcode_libdir_separator_F77=
15280           fi
15281           ;;
15282         esac
15283         shared_flag='-shared'
15284         if test "$aix_use_runtimelinking" = yes; then
15285           shared_flag="$shared_flag "'${wl}-G'
15286         fi
15287       else
15288         # not using gcc
15289         if test "$host_cpu" = ia64; then
15290         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15291         # chokes on -Wl,-G. The following line is correct:
15292           shared_flag='-G'
15293         else
15294           if test "$aix_use_runtimelinking" = yes; then
15295             shared_flag='${wl}-G'
15296           else
15297             shared_flag='${wl}-bM:SRE'
15298           fi
15299         fi
15300       fi
15301
15302       # It seems that -bexpall does not export symbols beginning with
15303       # underscore (_), so it is better to generate a list of symbols to export.
15304       always_export_symbols_F77=yes
15305       if test "$aix_use_runtimelinking" = yes; then
15306         # Warning - without using the other runtime loading flags (-brtl),
15307         # -berok will link without error, but may produce a broken library.
15308         allow_undefined_flag_F77='-berok'
15309        # Determine the default libpath from the value encoded in an empty executable.
15310        cat >conftest.$ac_ext <<_ACEOF
15311       program main
15312
15313       end
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_link") 2>conftest.er1
15323   ac_status=$?
15324   grep -v '^ *+' conftest.er1 >conftest.err
15325   rm -f conftest.er1
15326   cat conftest.err >&5
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } &&
15329          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; } &&
15339          { ac_try='test -s conftest$ac_exeext'
15340   { (case "(($ac_try" in
15341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342   *) ac_try_echo=$ac_try;;
15343 esac
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345   (eval "$ac_try") 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349
15350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15351 }'`
15352 # Check for a 64-bit object if we didn't find anything.
15353 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; }
15354 }'`; fi
15355 else
15356   echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15358
15359
15360 fi
15361
15362 rm -f core conftest.err conftest.$ac_objext \
15363       conftest$ac_exeext conftest.$ac_ext
15364 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15365
15366        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15367         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"
15368        else
15369         if test "$host_cpu" = ia64; then
15370           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15371           allow_undefined_flag_F77="-z nodefs"
15372           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"
15373         else
15374          # Determine the default libpath from the value encoded in an empty executable.
15375          cat >conftest.$ac_ext <<_ACEOF
15376       program main
15377
15378       end
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_link") 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } &&
15394          { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15395   { (case "(($ac_try" in
15396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15397   *) ac_try_echo=$ac_try;;
15398 esac
15399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15400   (eval "$ac_try") 2>&5
15401   ac_status=$?
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); }; } &&
15404          { ac_try='test -s conftest$ac_exeext'
15405   { (case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_try") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; }; then
15414
15415 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15416 }'`
15417 # Check for a 64-bit object if we didn't find anything.
15418 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; }
15419 }'`; fi
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15423
15424
15425 fi
15426
15427 rm -f core conftest.err conftest.$ac_objext \
15428       conftest$ac_exeext conftest.$ac_ext
15429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15430
15431          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15432           # Warning - without using the other run time loading flags,
15433           # -berok will link without error, but may produce a broken library.
15434           no_undefined_flag_F77=' ${wl}-bernotok'
15435           allow_undefined_flag_F77=' ${wl}-berok'
15436           # Exported symbols can be pulled into shared objects from archives
15437           whole_archive_flag_spec_F77='$convenience'
15438           archive_cmds_need_lc_F77=yes
15439           # This is similar to how AIX traditionally builds its shared libraries.
15440           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'
15441         fi
15442       fi
15443       ;;
15444
15445     amigaos*)
15446       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)'
15447       hardcode_libdir_flag_spec_F77='-L$libdir'
15448       hardcode_minus_L_F77=yes
15449       # see comment about different semantics on the GNU ld section
15450       ld_shlibs_F77=no
15451       ;;
15452
15453     bsdi[45]*)
15454       export_dynamic_flag_spec_F77=-rdynamic
15455       ;;
15456
15457     cygwin* | mingw* | pw32*)
15458       # When not using gcc, we currently assume that we are using
15459       # Microsoft Visual C++.
15460       # hardcode_libdir_flag_spec is actually meaningless, as there is
15461       # no search path for DLLs.
15462       hardcode_libdir_flag_spec_F77=' '
15463       allow_undefined_flag_F77=unsupported
15464       # Tell ltmain to make .lib files, not .a files.
15465       libext=lib
15466       # Tell ltmain to make .dll files, not .so files.
15467       shrext_cmds=".dll"
15468       # FIXME: Setting linknames here is a bad hack.
15469       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15470       # The linker will automatically build a .lib file if we build a DLL.
15471       old_archive_From_new_cmds_F77='true'
15472       # FIXME: Should let the user specify the lib program.
15473       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15474       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15475       enable_shared_with_static_runtimes_F77=yes
15476       ;;
15477
15478     darwin* | rhapsody*)
15479       case $host_os in
15480         rhapsody* | darwin1.[012])
15481          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15482          ;;
15483        *) # Darwin 1.3 on
15484          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15485            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15486          else
15487            case ${MACOSX_DEPLOYMENT_TARGET} in
15488              10.[012])
15489                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15490                ;;
15491              10.*)
15492                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15493                ;;
15494            esac
15495          fi
15496          ;;
15497       esac
15498       archive_cmds_need_lc_F77=no
15499       hardcode_direct_F77=no
15500       hardcode_automatic_F77=yes
15501       hardcode_shlibpath_var_F77=unsupported
15502       whole_archive_flag_spec_F77=''
15503       link_all_deplibs_F77=yes
15504     if test "$GCC" = yes ; then
15505         output_verbose_link_cmd='echo'
15506         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15507       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15508       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15509       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}'
15510       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}'
15511     else
15512       case $cc_basename in
15513         xlc*)
15514          output_verbose_link_cmd='echo'
15515          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15516          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15517           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15518          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}'
15519           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}'
15520           ;;
15521        *)
15522          ld_shlibs_F77=no
15523           ;;
15524       esac
15525     fi
15526       ;;
15527
15528     dgux*)
15529       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15530       hardcode_libdir_flag_spec_F77='-L$libdir'
15531       hardcode_shlibpath_var_F77=no
15532       ;;
15533
15534     freebsd1*)
15535       ld_shlibs_F77=no
15536       ;;
15537
15538     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15539     # support.  Future versions do this automatically, but an explicit c++rt0.o
15540     # does not break anything, and helps significantly (at the cost of a little
15541     # extra space).
15542     freebsd2.2*)
15543       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15544       hardcode_libdir_flag_spec_F77='-R$libdir'
15545       hardcode_direct_F77=yes
15546       hardcode_shlibpath_var_F77=no
15547       ;;
15548
15549     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15550     freebsd2*)
15551       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15552       hardcode_direct_F77=yes
15553       hardcode_minus_L_F77=yes
15554       hardcode_shlibpath_var_F77=no
15555       ;;
15556
15557     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15558     freebsd* | kfreebsd*-gnu | dragonfly*)
15559       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15560       hardcode_libdir_flag_spec_F77='-R$libdir'
15561       hardcode_direct_F77=yes
15562       hardcode_shlibpath_var_F77=no
15563       ;;
15564
15565     hpux9*)
15566       if test "$GCC" = yes; then
15567         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'
15568       else
15569         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'
15570       fi
15571       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15572       hardcode_libdir_separator_F77=:
15573       hardcode_direct_F77=yes
15574
15575       # hardcode_minus_L: Not really in the search PATH,
15576       # but as the default location of the library.
15577       hardcode_minus_L_F77=yes
15578       export_dynamic_flag_spec_F77='${wl}-E'
15579       ;;
15580
15581     hpux10*)
15582       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15583         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15584       else
15585         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15586       fi
15587       if test "$with_gnu_ld" = no; then
15588         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15589         hardcode_libdir_separator_F77=:
15590
15591         hardcode_direct_F77=yes
15592         export_dynamic_flag_spec_F77='${wl}-E'
15593
15594         # hardcode_minus_L: Not really in the search PATH,
15595         # but as the default location of the library.
15596         hardcode_minus_L_F77=yes
15597       fi
15598       ;;
15599
15600     hpux11*)
15601       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15602         case $host_cpu in
15603         hppa*64*)
15604           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15605           ;;
15606         ia64*)
15607           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15608           ;;
15609         *)
15610           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15611           ;;
15612         esac
15613       else
15614         case $host_cpu in
15615         hppa*64*)
15616           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617           ;;
15618         ia64*)
15619           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15620           ;;
15621         *)
15622           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15623           ;;
15624         esac
15625       fi
15626       if test "$with_gnu_ld" = no; then
15627         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15628         hardcode_libdir_separator_F77=:
15629
15630         case $host_cpu in
15631         hppa*64*|ia64*)
15632           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15633           hardcode_direct_F77=no
15634           hardcode_shlibpath_var_F77=no
15635           ;;
15636         *)
15637           hardcode_direct_F77=yes
15638           export_dynamic_flag_spec_F77='${wl}-E'
15639
15640           # hardcode_minus_L: Not really in the search PATH,
15641           # but as the default location of the library.
15642           hardcode_minus_L_F77=yes
15643           ;;
15644         esac
15645       fi
15646       ;;
15647
15648     irix5* | irix6* | nonstopux*)
15649       if test "$GCC" = yes; then
15650         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'
15651       else
15652         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'
15653         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15654       fi
15655       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15656       hardcode_libdir_separator_F77=:
15657       link_all_deplibs_F77=yes
15658       ;;
15659
15660     netbsd*)
15661       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15662         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15663       else
15664         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15665       fi
15666       hardcode_libdir_flag_spec_F77='-R$libdir'
15667       hardcode_direct_F77=yes
15668       hardcode_shlibpath_var_F77=no
15669       ;;
15670
15671     newsos6)
15672       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673       hardcode_direct_F77=yes
15674       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15675       hardcode_libdir_separator_F77=:
15676       hardcode_shlibpath_var_F77=no
15677       ;;
15678
15679     openbsd*)
15680       hardcode_direct_F77=yes
15681       hardcode_shlibpath_var_F77=no
15682       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15683         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15684         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15685         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15686         export_dynamic_flag_spec_F77='${wl}-E'
15687       else
15688        case $host_os in
15689          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15690            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15691            hardcode_libdir_flag_spec_F77='-R$libdir'
15692            ;;
15693          *)
15694            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15695            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15696            ;;
15697        esac
15698       fi
15699       ;;
15700
15701     os2*)
15702       hardcode_libdir_flag_spec_F77='-L$libdir'
15703       hardcode_minus_L_F77=yes
15704       allow_undefined_flag_F77=unsupported
15705       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'
15706       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15707       ;;
15708
15709     osf3*)
15710       if test "$GCC" = yes; then
15711         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15712         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'
15713       else
15714         allow_undefined_flag_F77=' -expect_unresolved \*'
15715         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'
15716       fi
15717       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15718       hardcode_libdir_separator_F77=:
15719       ;;
15720
15721     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15722       if test "$GCC" = yes; then
15723         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15724         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'
15725         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15726       else
15727         allow_undefined_flag_F77=' -expect_unresolved \*'
15728         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'
15729         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~
15730         $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'
15731
15732         # Both c and cxx compiler support -rpath directly
15733         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15734       fi
15735       hardcode_libdir_separator_F77=:
15736       ;;
15737
15738     solaris*)
15739       no_undefined_flag_F77=' -z text'
15740       if test "$GCC" = yes; then
15741         wlarc='${wl}'
15742         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15743         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15744           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15745       else
15746         wlarc=''
15747         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15748         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15749         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15750       fi
15751       hardcode_libdir_flag_spec_F77='-R$libdir'
15752       hardcode_shlibpath_var_F77=no
15753       case $host_os in
15754       solaris2.[0-5] | solaris2.[0-5].*) ;;
15755       *)
15756         # The compiler driver will combine linker options so we
15757         # cannot just pass the convience library names through
15758         # without $wl, iff we do not link with $LD.
15759         # Luckily, gcc supports the same syntax we need for Sun Studio.
15760         # Supported since Solaris 2.6 (maybe 2.5.1?)
15761         case $wlarc in
15762         '')
15763           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15764         *)
15765           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' ;;
15766         esac ;;
15767       esac
15768       link_all_deplibs_F77=yes
15769       ;;
15770
15771     sunos4*)
15772       if test "x$host_vendor" = xsequent; then
15773         # Use $CC to link under sequent, because it throws in some extra .o
15774         # files that make .init and .fini sections work.
15775         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15776       else
15777         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15778       fi
15779       hardcode_libdir_flag_spec_F77='-L$libdir'
15780       hardcode_direct_F77=yes
15781       hardcode_minus_L_F77=yes
15782       hardcode_shlibpath_var_F77=no
15783       ;;
15784
15785     sysv4)
15786       case $host_vendor in
15787         sni)
15788           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15789           hardcode_direct_F77=yes # is this really true???
15790         ;;
15791         siemens)
15792           ## LD is ld it makes a PLAMLIB
15793           ## CC just makes a GrossModule.
15794           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15795           reload_cmds_F77='$CC -r -o $output$reload_objs'
15796           hardcode_direct_F77=no
15797         ;;
15798         motorola)
15799           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15800           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15801         ;;
15802       esac
15803       runpath_var='LD_RUN_PATH'
15804       hardcode_shlibpath_var_F77=no
15805       ;;
15806
15807     sysv4.3*)
15808       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809       hardcode_shlibpath_var_F77=no
15810       export_dynamic_flag_spec_F77='-Bexport'
15811       ;;
15812
15813     sysv4*MP*)
15814       if test -d /usr/nec; then
15815         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816         hardcode_shlibpath_var_F77=no
15817         runpath_var=LD_RUN_PATH
15818         hardcode_runpath_var=yes
15819         ld_shlibs_F77=yes
15820       fi
15821       ;;
15822
15823     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15824       no_undefined_flag_F77='${wl}-z,text'
15825       archive_cmds_need_lc_F77=no
15826       hardcode_shlibpath_var_F77=no
15827       runpath_var='LD_RUN_PATH'
15828
15829       if test "$GCC" = yes; then
15830         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15831         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15832       else
15833         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15834         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15835       fi
15836       ;;
15837
15838     sysv5* | sco3.2v5* | sco5v6*)
15839       # Note: We can NOT use -z defs as we might desire, because we do not
15840       # link with -lc, and that would cause any symbols used from libc to
15841       # always be unresolved, which means just about no library would
15842       # ever link correctly.  If we're not using GNU ld we use -z text
15843       # though, which does catch some bad symbols but isn't as heavy-handed
15844       # as -z defs.
15845       no_undefined_flag_F77='${wl}-z,text'
15846       allow_undefined_flag_F77='${wl}-z,nodefs'
15847       archive_cmds_need_lc_F77=no
15848       hardcode_shlibpath_var_F77=no
15849       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15850       hardcode_libdir_separator_F77=':'
15851       link_all_deplibs_F77=yes
15852       export_dynamic_flag_spec_F77='${wl}-Bexport'
15853       runpath_var='LD_RUN_PATH'
15854
15855       if test "$GCC" = yes; then
15856         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15857         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15858       else
15859         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15860         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15861       fi
15862       ;;
15863
15864     uts4*)
15865       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15866       hardcode_libdir_flag_spec_F77='-L$libdir'
15867       hardcode_shlibpath_var_F77=no
15868       ;;
15869
15870     *)
15871       ld_shlibs_F77=no
15872       ;;
15873     esac
15874   fi
15875
15876 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15877 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15878 test "$ld_shlibs_F77" = no && can_build_shared=no
15879
15880 #
15881 # Do we need to explicitly link libc?
15882 #
15883 case "x$archive_cmds_need_lc_F77" in
15884 x|xyes)
15885   # Assume -lc should be added
15886   archive_cmds_need_lc_F77=yes
15887
15888   if test "$enable_shared" = yes && test "$GCC" = yes; then
15889     case $archive_cmds_F77 in
15890     *'~'*)
15891       # FIXME: we may have to deal with multi-command sequences.
15892       ;;
15893     '$CC '*)
15894       # Test whether the compiler implicitly links with -lc since on some
15895       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15896       # to ld, don't add -lc before -lgcc.
15897       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15898 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15899       $rm conftest*
15900       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15901
15902       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15903   (eval $ac_compile) 2>&5
15904   ac_status=$?
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); } 2>conftest.err; then
15907         soname=conftest
15908         lib=conftest
15909         libobjs=conftest.$ac_objext
15910         deplibs=
15911         wl=$lt_prog_compiler_wl_F77
15912         pic_flag=$lt_prog_compiler_pic_F77
15913         compiler_flags=-v
15914         linker_flags=-v
15915         verstring=
15916         output_objdir=.
15917         libname=conftest
15918         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15919         allow_undefined_flag_F77=
15920         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15921   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }
15925         then
15926           archive_cmds_need_lc_F77=no
15927         else
15928           archive_cmds_need_lc_F77=yes
15929         fi
15930         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15931       else
15932         cat conftest.err 1>&5
15933       fi
15934       $rm conftest*
15935       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15936 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15937       ;;
15938     esac
15939   fi
15940   ;;
15941 esac
15942
15943 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15944 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15945 library_names_spec=
15946 libname_spec='lib$name'
15947 soname_spec=
15948 shrext_cmds=".so"
15949 postinstall_cmds=
15950 postuninstall_cmds=
15951 finish_cmds=
15952 finish_eval=
15953 shlibpath_var=
15954 shlibpath_overrides_runpath=unknown
15955 version_type=none
15956 dynamic_linker="$host_os ld.so"
15957 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15958 if test "$GCC" = yes; then
15959   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15960   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15961     # if the path contains ";" then we assume it to be the separator
15962     # otherwise default to the standard path separator (i.e. ":") - it is
15963     # assumed that no part of a normal pathname contains ";" but that should
15964     # okay in the real world where ";" in dirpaths is itself problematic.
15965     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15966   else
15967     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15968   fi
15969 else
15970   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15971 fi
15972 need_lib_prefix=unknown
15973 hardcode_into_libs=no
15974
15975 # when you set need_version to no, make sure it does not cause -set_version
15976 # flags to be left without arguments
15977 need_version=unknown
15978
15979 case $host_os in
15980 aix3*)
15981   version_type=linux
15982   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15983   shlibpath_var=LIBPATH
15984
15985   # AIX 3 has no versioning support, so we append a major version to the name.
15986   soname_spec='${libname}${release}${shared_ext}$major'
15987   ;;
15988
15989 aix4* | aix5*)
15990   version_type=linux
15991   need_lib_prefix=no
15992   need_version=no
15993   hardcode_into_libs=yes
15994   if test "$host_cpu" = ia64; then
15995     # AIX 5 supports IA64
15996     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15997     shlibpath_var=LD_LIBRARY_PATH
15998   else
15999     # With GCC up to 2.95.x, collect2 would create an import file
16000     # for dependence libraries.  The import file would start with
16001     # the line `#! .'.  This would cause the generated library to
16002     # depend on `.', always an invalid library.  This was fixed in
16003     # development snapshots of GCC prior to 3.0.
16004     case $host_os in
16005       aix4 | aix4.[01] | aix4.[01].*)
16006       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16007            echo ' yes '
16008            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16009         :
16010       else
16011         can_build_shared=no
16012       fi
16013       ;;
16014     esac
16015     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16016     # soname into executable. Probably we can add versioning support to
16017     # collect2, so additional links can be useful in future.
16018     if test "$aix_use_runtimelinking" = yes; then
16019       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16020       # instead of lib<name>.a to let people know that these are not
16021       # typical AIX shared libraries.
16022       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023     else
16024       # We preserve .a as extension for shared libraries through AIX4.2
16025       # and later when we are not doing run time linking.
16026       library_names_spec='${libname}${release}.a $libname.a'
16027       soname_spec='${libname}${release}${shared_ext}$major'
16028     fi
16029     shlibpath_var=LIBPATH
16030   fi
16031   ;;
16032
16033 amigaos*)
16034   library_names_spec='$libname.ixlibrary $libname.a'
16035   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16036   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'
16037   ;;
16038
16039 beos*)
16040   library_names_spec='${libname}${shared_ext}'
16041   dynamic_linker="$host_os ld.so"
16042   shlibpath_var=LIBRARY_PATH
16043   ;;
16044
16045 bsdi[45]*)
16046   version_type=linux
16047   need_version=no
16048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049   soname_spec='${libname}${release}${shared_ext}$major'
16050   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16051   shlibpath_var=LD_LIBRARY_PATH
16052   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16053   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16054   # the default ld.so.conf also contains /usr/contrib/lib and
16055   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16056   # libtool to hard-code these into programs
16057   ;;
16058
16059 cygwin* | mingw* | pw32*)
16060   version_type=windows
16061   shrext_cmds=".dll"
16062   need_version=no
16063   need_lib_prefix=no
16064
16065   case $GCC,$host_os in
16066   yes,cygwin* | yes,mingw* | yes,pw32*)
16067     library_names_spec='$libname.dll.a'
16068     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16069     postinstall_cmds='base_file=`basename \${file}`~
16070       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16071       dldir=$destdir/`dirname \$dlpath`~
16072       test -d \$dldir || mkdir -p \$dldir~
16073       $install_prog $dir/$dlname \$dldir/$dlname~
16074       chmod a+x \$dldir/$dlname'
16075     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16076       dlpath=$dir/\$dldll~
16077        $rm \$dlpath'
16078     shlibpath_overrides_runpath=yes
16079
16080     case $host_os in
16081     cygwin*)
16082       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16083       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16084       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16085       ;;
16086     mingw*)
16087       # MinGW DLLs use traditional 'lib' prefix
16088       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16089       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16090       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16091         # It is most probably a Windows format PATH printed by
16092         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16093         # path with ; separators, and with drive letters. We can handle the
16094         # drive letters (cygwin fileutils understands them), so leave them,
16095         # especially as we might pass files found there to a mingw objdump,
16096         # which wouldn't understand a cygwinified path. Ahh.
16097         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16098       else
16099         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16100       fi
16101       ;;
16102     pw32*)
16103       # pw32 DLLs use 'pw' prefix rather than 'lib'
16104       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16105       ;;
16106     esac
16107     ;;
16108
16109   *)
16110     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16111     ;;
16112   esac
16113   dynamic_linker='Win32 ld.exe'
16114   # FIXME: first we should search . and the directory the executable is in
16115   shlibpath_var=PATH
16116   ;;
16117
16118 darwin* | rhapsody*)
16119   dynamic_linker="$host_os dyld"
16120   version_type=darwin
16121   need_lib_prefix=no
16122   need_version=no
16123   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16124   soname_spec='${libname}${release}${major}$shared_ext'
16125   shlibpath_overrides_runpath=yes
16126   shlibpath_var=DYLD_LIBRARY_PATH
16127   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16128   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16129   if test "$GCC" = yes; then
16130     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"`
16131   else
16132     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16133   fi
16134   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16135   ;;
16136
16137 dgux*)
16138   version_type=linux
16139   need_lib_prefix=no
16140   need_version=no
16141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16142   soname_spec='${libname}${release}${shared_ext}$major'
16143   shlibpath_var=LD_LIBRARY_PATH
16144   ;;
16145
16146 freebsd1*)
16147   dynamic_linker=no
16148   ;;
16149
16150 kfreebsd*-gnu)
16151   version_type=linux
16152   need_lib_prefix=no
16153   need_version=no
16154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16155   soname_spec='${libname}${release}${shared_ext}$major'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   shlibpath_overrides_runpath=no
16158   hardcode_into_libs=yes
16159   dynamic_linker='GNU ld.so'
16160   ;;
16161
16162 freebsd* | dragonfly*)
16163   # DragonFly does not have aout.  When/if they implement a new
16164   # versioning mechanism, adjust this.
16165   if test -x /usr/bin/objformat; then
16166     objformat=`/usr/bin/objformat`
16167   else
16168     case $host_os in
16169     freebsd[123]*) objformat=aout ;;
16170     *) objformat=elf ;;
16171     esac
16172   fi
16173   version_type=freebsd-$objformat
16174   case $version_type in
16175     freebsd-elf*)
16176       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16177       need_version=no
16178       need_lib_prefix=no
16179       ;;
16180     freebsd-*)
16181       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16182       need_version=yes
16183       ;;
16184   esac
16185   shlibpath_var=LD_LIBRARY_PATH
16186   case $host_os in
16187   freebsd2*)
16188     shlibpath_overrides_runpath=yes
16189     ;;
16190   freebsd3.[01]* | freebsdelf3.[01]*)
16191     shlibpath_overrides_runpath=yes
16192     hardcode_into_libs=yes
16193     ;;
16194   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16195   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16196     shlibpath_overrides_runpath=no
16197     hardcode_into_libs=yes
16198     ;;
16199   freebsd*) # from 4.6 on
16200     shlibpath_overrides_runpath=yes
16201     hardcode_into_libs=yes
16202     ;;
16203   esac
16204   ;;
16205
16206 gnu*)
16207   version_type=linux
16208   need_lib_prefix=no
16209   need_version=no
16210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16211   soname_spec='${libname}${release}${shared_ext}$major'
16212   shlibpath_var=LD_LIBRARY_PATH
16213   hardcode_into_libs=yes
16214   ;;
16215
16216 hpux9* | hpux10* | hpux11*)
16217   # Give a soname corresponding to the major version so that dld.sl refuses to
16218   # link against other versions.
16219   version_type=sunos
16220   need_lib_prefix=no
16221   need_version=no
16222   case $host_cpu in
16223   ia64*)
16224     shrext_cmds='.so'
16225     hardcode_into_libs=yes
16226     dynamic_linker="$host_os dld.so"
16227     shlibpath_var=LD_LIBRARY_PATH
16228     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16230     soname_spec='${libname}${release}${shared_ext}$major'
16231     if test "X$HPUX_IA64_MODE" = X32; then
16232       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16233     else
16234       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16235     fi
16236     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16237     ;;
16238    hppa*64*)
16239      shrext_cmds='.sl'
16240      hardcode_into_libs=yes
16241      dynamic_linker="$host_os dld.sl"
16242      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16243      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16244      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245      soname_spec='${libname}${release}${shared_ext}$major'
16246      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16247      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16248      ;;
16249    *)
16250     shrext_cmds='.sl'
16251     dynamic_linker="$host_os dld.sl"
16252     shlibpath_var=SHLIB_PATH
16253     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16255     soname_spec='${libname}${release}${shared_ext}$major'
16256     ;;
16257   esac
16258   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16259   postinstall_cmds='chmod 555 $lib'
16260   ;;
16261
16262 interix3*)
16263   version_type=linux
16264   need_lib_prefix=no
16265   need_version=no
16266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16267   soname_spec='${libname}${release}${shared_ext}$major'
16268   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16269   shlibpath_var=LD_LIBRARY_PATH
16270   shlibpath_overrides_runpath=no
16271   hardcode_into_libs=yes
16272   ;;
16273
16274 irix5* | irix6* | nonstopux*)
16275   case $host_os in
16276     nonstopux*) version_type=nonstopux ;;
16277     *)
16278         if test "$lt_cv_prog_gnu_ld" = yes; then
16279                 version_type=linux
16280         else
16281                 version_type=irix
16282         fi ;;
16283   esac
16284   need_lib_prefix=no
16285   need_version=no
16286   soname_spec='${libname}${release}${shared_ext}$major'
16287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16288   case $host_os in
16289   irix5* | nonstopux*)
16290     libsuff= shlibsuff=
16291     ;;
16292   *)
16293     case $LD in # libtool.m4 will add one of these switches to LD
16294     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16295       libsuff= shlibsuff= libmagic=32-bit;;
16296     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16297       libsuff=32 shlibsuff=N32 libmagic=N32;;
16298     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16299       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16300     *) libsuff= shlibsuff= libmagic=never-match;;
16301     esac
16302     ;;
16303   esac
16304   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16305   shlibpath_overrides_runpath=no
16306   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16307   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16308   hardcode_into_libs=yes
16309   ;;
16310
16311 # No shared lib support for Linux oldld, aout, or coff.
16312 linux*oldld* | linux*aout* | linux*coff*)
16313   dynamic_linker=no
16314   ;;
16315
16316 # This must be Linux ELF.
16317 linux*)
16318   version_type=linux
16319   need_lib_prefix=no
16320   need_version=no
16321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322   soname_spec='${libname}${release}${shared_ext}$major'
16323   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16324   shlibpath_var=LD_LIBRARY_PATH
16325   shlibpath_overrides_runpath=no
16326   # This implies no fast_install, which is unacceptable.
16327   # Some rework will be needed to allow for fast_install
16328   # before this can be enabled.
16329   hardcode_into_libs=yes
16330
16331   # Append ld.so.conf contents to the search path
16332   if test -f /etc/ld.so.conf; then
16333     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' ' '`
16334     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16335   fi
16336
16337   # We used to test for /lib/ld.so.1 and disable shared libraries on
16338   # powerpc, because MkLinux only supported shared libraries with the
16339   # GNU dynamic linker.  Since this was broken with cross compilers,
16340   # most powerpc-linux boxes support dynamic linking these days and
16341   # people can always --disable-shared, the test was removed, and we
16342   # assume the GNU/Linux dynamic linker is in use.
16343   dynamic_linker='GNU/Linux ld.so'
16344   ;;
16345
16346 knetbsd*-gnu)
16347   version_type=linux
16348   need_lib_prefix=no
16349   need_version=no
16350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16351   soname_spec='${libname}${release}${shared_ext}$major'
16352   shlibpath_var=LD_LIBRARY_PATH
16353   shlibpath_overrides_runpath=no
16354   hardcode_into_libs=yes
16355   dynamic_linker='GNU ld.so'
16356   ;;
16357
16358 netbsd*)
16359   version_type=sunos
16360   need_lib_prefix=no
16361   need_version=no
16362   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16364     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16365     dynamic_linker='NetBSD (a.out) ld.so'
16366   else
16367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16368     soname_spec='${libname}${release}${shared_ext}$major'
16369     dynamic_linker='NetBSD ld.elf_so'
16370   fi
16371   shlibpath_var=LD_LIBRARY_PATH
16372   shlibpath_overrides_runpath=yes
16373   hardcode_into_libs=yes
16374   ;;
16375
16376 newsos6)
16377   version_type=linux
16378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379   shlibpath_var=LD_LIBRARY_PATH
16380   shlibpath_overrides_runpath=yes
16381   ;;
16382
16383 nto-qnx*)
16384   version_type=linux
16385   need_lib_prefix=no
16386   need_version=no
16387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388   soname_spec='${libname}${release}${shared_ext}$major'
16389   shlibpath_var=LD_LIBRARY_PATH
16390   shlibpath_overrides_runpath=yes
16391   ;;
16392
16393 openbsd*)
16394   version_type=sunos
16395   sys_lib_dlsearch_path_spec="/usr/lib"
16396   need_lib_prefix=no
16397   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16398   case $host_os in
16399     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16400     *)                         need_version=no  ;;
16401   esac
16402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16403   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16404   shlibpath_var=LD_LIBRARY_PATH
16405   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16406     case $host_os in
16407       openbsd2.[89] | openbsd2.[89].*)
16408         shlibpath_overrides_runpath=no
16409         ;;
16410       *)
16411         shlibpath_overrides_runpath=yes
16412         ;;
16413       esac
16414   else
16415     shlibpath_overrides_runpath=yes
16416   fi
16417   ;;
16418
16419 os2*)
16420   libname_spec='$name'
16421   shrext_cmds=".dll"
16422   need_lib_prefix=no
16423   library_names_spec='$libname${shared_ext} $libname.a'
16424   dynamic_linker='OS/2 ld.exe'
16425   shlibpath_var=LIBPATH
16426   ;;
16427
16428 osf3* | osf4* | osf5*)
16429   version_type=osf
16430   need_lib_prefix=no
16431   need_version=no
16432   soname_spec='${libname}${release}${shared_ext}$major'
16433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434   shlibpath_var=LD_LIBRARY_PATH
16435   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16436   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16437   ;;
16438
16439 solaris*)
16440   version_type=linux
16441   need_lib_prefix=no
16442   need_version=no
16443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16444   soname_spec='${libname}${release}${shared_ext}$major'
16445   shlibpath_var=LD_LIBRARY_PATH
16446   shlibpath_overrides_runpath=yes
16447   hardcode_into_libs=yes
16448   # ldd complains unless libraries are executable
16449   postinstall_cmds='chmod +x $lib'
16450   ;;
16451
16452 sunos4*)
16453   version_type=sunos
16454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16455   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16456   shlibpath_var=LD_LIBRARY_PATH
16457   shlibpath_overrides_runpath=yes
16458   if test "$with_gnu_ld" = yes; then
16459     need_lib_prefix=no
16460   fi
16461   need_version=yes
16462   ;;
16463
16464 sysv4 | sysv4.3*)
16465   version_type=linux
16466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16467   soname_spec='${libname}${release}${shared_ext}$major'
16468   shlibpath_var=LD_LIBRARY_PATH
16469   case $host_vendor in
16470     sni)
16471       shlibpath_overrides_runpath=no
16472       need_lib_prefix=no
16473       export_dynamic_flag_spec='${wl}-Blargedynsym'
16474       runpath_var=LD_RUN_PATH
16475       ;;
16476     siemens)
16477       need_lib_prefix=no
16478       ;;
16479     motorola)
16480       need_lib_prefix=no
16481       need_version=no
16482       shlibpath_overrides_runpath=no
16483       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16484       ;;
16485   esac
16486   ;;
16487
16488 sysv4*MP*)
16489   if test -d /usr/nec ;then
16490     version_type=linux
16491     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16492     soname_spec='$libname${shared_ext}.$major'
16493     shlibpath_var=LD_LIBRARY_PATH
16494   fi
16495   ;;
16496
16497 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16498   version_type=freebsd-elf
16499   need_lib_prefix=no
16500   need_version=no
16501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16502   soname_spec='${libname}${release}${shared_ext}$major'
16503   shlibpath_var=LD_LIBRARY_PATH
16504   hardcode_into_libs=yes
16505   if test "$with_gnu_ld" = yes; then
16506     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16507     shlibpath_overrides_runpath=no
16508   else
16509     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16510     shlibpath_overrides_runpath=yes
16511     case $host_os in
16512       sco3.2v5*)
16513         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16514         ;;
16515     esac
16516   fi
16517   sys_lib_dlsearch_path_spec='/usr/lib'
16518   ;;
16519
16520 uts4*)
16521   version_type=linux
16522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16523   soname_spec='${libname}${release}${shared_ext}$major'
16524   shlibpath_var=LD_LIBRARY_PATH
16525   ;;
16526
16527 *)
16528   dynamic_linker=no
16529   ;;
16530 esac
16531 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16532 echo "${ECHO_T}$dynamic_linker" >&6; }
16533 test "$dynamic_linker" = no && can_build_shared=no
16534
16535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16536 if test "$GCC" = yes; then
16537   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16538 fi
16539
16540 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16541 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16542 hardcode_action_F77=
16543 if test -n "$hardcode_libdir_flag_spec_F77" || \
16544    test -n "$runpath_var_F77" || \
16545    test "X$hardcode_automatic_F77" = "Xyes" ; then
16546
16547   # We can hardcode non-existant directories.
16548   if test "$hardcode_direct_F77" != no &&
16549      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16550      # have to relink, otherwise we might link with an installed library
16551      # when we should be linking with a yet-to-be-installed one
16552      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16553      test "$hardcode_minus_L_F77" != no; then
16554     # Linking always hardcodes the temporary library directory.
16555     hardcode_action_F77=relink
16556   else
16557     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16558     hardcode_action_F77=immediate
16559   fi
16560 else
16561   # We cannot hardcode anything, or else we can only hardcode existing
16562   # directories.
16563   hardcode_action_F77=unsupported
16564 fi
16565 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16566 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16567
16568 if test "$hardcode_action_F77" = relink; then
16569   # Fast installation is not supported
16570   enable_fast_install=no
16571 elif test "$shlibpath_overrides_runpath" = yes ||
16572      test "$enable_shared" = no; then
16573   # Fast installation is not necessary
16574   enable_fast_install=needless
16575 fi
16576
16577
16578 # The else clause should only fire when bootstrapping the
16579 # libtool distribution, otherwise you forgot to ship ltmain.sh
16580 # with your package, and you will get complaints that there are
16581 # no rules to generate ltmain.sh.
16582 if test -f "$ltmain"; then
16583   # See if we are running on zsh, and set the options which allow our commands through
16584   # without removal of \ escapes.
16585   if test -n "${ZSH_VERSION+set}" ; then
16586     setopt NO_GLOB_SUBST
16587   fi
16588   # Now quote all the things that may contain metacharacters while being
16589   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16590   # variables and quote the copies for generation of the libtool script.
16591   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16592     SED SHELL STRIP \
16593     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16594     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16595     deplibs_check_method reload_flag reload_cmds need_locks \
16596     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16597     lt_cv_sys_global_symbol_to_c_name_address \
16598     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16599     old_postinstall_cmds old_postuninstall_cmds \
16600     compiler_F77 \
16601     CC_F77 \
16602     LD_F77 \
16603     lt_prog_compiler_wl_F77 \
16604     lt_prog_compiler_pic_F77 \
16605     lt_prog_compiler_static_F77 \
16606     lt_prog_compiler_no_builtin_flag_F77 \
16607     export_dynamic_flag_spec_F77 \
16608     thread_safe_flag_spec_F77 \
16609     whole_archive_flag_spec_F77 \
16610     enable_shared_with_static_runtimes_F77 \
16611     old_archive_cmds_F77 \
16612     old_archive_from_new_cmds_F77 \
16613     predep_objects_F77 \
16614     postdep_objects_F77 \
16615     predeps_F77 \
16616     postdeps_F77 \
16617     compiler_lib_search_path_F77 \
16618     archive_cmds_F77 \
16619     archive_expsym_cmds_F77 \
16620     postinstall_cmds_F77 \
16621     postuninstall_cmds_F77 \
16622     old_archive_from_expsyms_cmds_F77 \
16623     allow_undefined_flag_F77 \
16624     no_undefined_flag_F77 \
16625     export_symbols_cmds_F77 \
16626     hardcode_libdir_flag_spec_F77 \
16627     hardcode_libdir_flag_spec_ld_F77 \
16628     hardcode_libdir_separator_F77 \
16629     hardcode_automatic_F77 \
16630     module_cmds_F77 \
16631     module_expsym_cmds_F77 \
16632     lt_cv_prog_compiler_c_o_F77 \
16633     exclude_expsyms_F77 \
16634     include_expsyms_F77; do
16635
16636     case $var in
16637     old_archive_cmds_F77 | \
16638     old_archive_from_new_cmds_F77 | \
16639     archive_cmds_F77 | \
16640     archive_expsym_cmds_F77 | \
16641     module_cmds_F77 | \
16642     module_expsym_cmds_F77 | \
16643     old_archive_from_expsyms_cmds_F77 | \
16644     export_symbols_cmds_F77 | \
16645     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16646     postinstall_cmds | postuninstall_cmds | \
16647     old_postinstall_cmds | old_postuninstall_cmds | \
16648     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16649       # Double-quote double-evaled strings.
16650       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16651       ;;
16652     *)
16653       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16654       ;;
16655     esac
16656   done
16657
16658   case $lt_echo in
16659   *'\$0 --fallback-echo"')
16660     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16661     ;;
16662   esac
16663
16664 cfgfile="$ofile"
16665
16666   cat <<__EOF__ >> "$cfgfile"
16667 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16668
16669 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16670
16671 # Shell to use when invoking shell scripts.
16672 SHELL=$lt_SHELL
16673
16674 # Whether or not to build shared libraries.
16675 build_libtool_libs=$enable_shared
16676
16677 # Whether or not to build static libraries.
16678 build_old_libs=$enable_static
16679
16680 # Whether or not to add -lc for building shared libraries.
16681 build_libtool_need_lc=$archive_cmds_need_lc_F77
16682
16683 # Whether or not to disallow shared libs when runtime libs are static
16684 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16685
16686 # Whether or not to optimize for fast installation.
16687 fast_install=$enable_fast_install
16688
16689 # The host system.
16690 host_alias=$host_alias
16691 host=$host
16692 host_os=$host_os
16693
16694 # The build system.
16695 build_alias=$build_alias
16696 build=$build
16697 build_os=$build_os
16698
16699 # An echo program that does not interpret backslashes.
16700 echo=$lt_echo
16701
16702 # The archiver.
16703 AR=$lt_AR
16704 AR_FLAGS=$lt_AR_FLAGS
16705
16706 # A C compiler.
16707 LTCC=$lt_LTCC
16708
16709 # LTCC compiler flags.
16710 LTCFLAGS=$lt_LTCFLAGS
16711
16712 # A language-specific compiler.
16713 CC=$lt_compiler_F77
16714
16715 # Is the compiler the GNU C compiler?
16716 with_gcc=$GCC_F77
16717
16718 # An ERE matcher.
16719 EGREP=$lt_EGREP
16720
16721 # The linker used to build libraries.
16722 LD=$lt_LD_F77
16723
16724 # Whether we need hard or soft links.
16725 LN_S=$lt_LN_S
16726
16727 # A BSD-compatible nm program.
16728 NM=$lt_NM
16729
16730 # A symbol stripping program
16731 STRIP=$lt_STRIP
16732
16733 # Used to examine libraries when file_magic_cmd begins "file"
16734 MAGIC_CMD=$MAGIC_CMD
16735
16736 # Used on cygwin: DLL creation program.
16737 DLLTOOL="$DLLTOOL"
16738
16739 # Used on cygwin: object dumper.
16740 OBJDUMP="$OBJDUMP"
16741
16742 # Used on cygwin: assembler.
16743 AS="$AS"
16744
16745 # The name of the directory that contains temporary libtool files.
16746 objdir=$objdir
16747
16748 # How to create reloadable object files.
16749 reload_flag=$lt_reload_flag
16750 reload_cmds=$lt_reload_cmds
16751
16752 # How to pass a linker flag through the compiler.
16753 wl=$lt_lt_prog_compiler_wl_F77
16754
16755 # Object file suffix (normally "o").
16756 objext="$ac_objext"
16757
16758 # Old archive suffix (normally "a").
16759 libext="$libext"
16760
16761 # Shared library suffix (normally ".so").
16762 shrext_cmds='$shrext_cmds'
16763
16764 # Executable file suffix (normally "").
16765 exeext="$exeext"
16766
16767 # Additional compiler flags for building library objects.
16768 pic_flag=$lt_lt_prog_compiler_pic_F77
16769 pic_mode=$pic_mode
16770
16771 # What is the maximum length of a command?
16772 max_cmd_len=$lt_cv_sys_max_cmd_len
16773
16774 # Does compiler simultaneously support -c and -o options?
16775 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16776
16777 # Must we lock files when doing compilation?
16778 need_locks=$lt_need_locks
16779
16780 # Do we need the lib prefix for modules?
16781 need_lib_prefix=$need_lib_prefix
16782
16783 # Do we need a version for libraries?
16784 need_version=$need_version
16785
16786 # Whether dlopen is supported.
16787 dlopen_support=$enable_dlopen
16788
16789 # Whether dlopen of programs is supported.
16790 dlopen_self=$enable_dlopen_self
16791
16792 # Whether dlopen of statically linked programs is supported.
16793 dlopen_self_static=$enable_dlopen_self_static
16794
16795 # Compiler flag to prevent dynamic linking.
16796 link_static_flag=$lt_lt_prog_compiler_static_F77
16797
16798 # Compiler flag to turn off builtin functions.
16799 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16800
16801 # Compiler flag to allow reflexive dlopens.
16802 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16803
16804 # Compiler flag to generate shared objects directly from archives.
16805 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16806
16807 # Compiler flag to generate thread-safe objects.
16808 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16809
16810 # Library versioning type.
16811 version_type=$version_type
16812
16813 # Format of library name prefix.
16814 libname_spec=$lt_libname_spec
16815
16816 # List of archive names.  First name is the real one, the rest are links.
16817 # The last name is the one that the linker finds with -lNAME.
16818 library_names_spec=$lt_library_names_spec
16819
16820 # The coded name of the library, if different from the real name.
16821 soname_spec=$lt_soname_spec
16822
16823 # Commands used to build and install an old-style archive.
16824 RANLIB=$lt_RANLIB
16825 old_archive_cmds=$lt_old_archive_cmds_F77
16826 old_postinstall_cmds=$lt_old_postinstall_cmds
16827 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16828
16829 # Create an old-style archive from a shared archive.
16830 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16831
16832 # Create a temporary old-style archive to link instead of a shared archive.
16833 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16834
16835 # Commands used to build and install a shared archive.
16836 archive_cmds=$lt_archive_cmds_F77
16837 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16838 postinstall_cmds=$lt_postinstall_cmds
16839 postuninstall_cmds=$lt_postuninstall_cmds
16840
16841 # Commands used to build a loadable module (assumed same as above if empty)
16842 module_cmds=$lt_module_cmds_F77
16843 module_expsym_cmds=$lt_module_expsym_cmds_F77
16844
16845 # Commands to strip libraries.
16846 old_striplib=$lt_old_striplib
16847 striplib=$lt_striplib
16848
16849 # Dependencies to place before the objects being linked to create a
16850 # shared library.
16851 predep_objects=$lt_predep_objects_F77
16852
16853 # Dependencies to place after the objects being linked to create a
16854 # shared library.
16855 postdep_objects=$lt_postdep_objects_F77
16856
16857 # Dependencies to place before the objects being linked to create a
16858 # shared library.
16859 predeps=$lt_predeps_F77
16860
16861 # Dependencies to place after the objects being linked to create a
16862 # shared library.
16863 postdeps=$lt_postdeps_F77
16864
16865 # The library search path used internally by the compiler when linking
16866 # a shared library.
16867 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16868
16869 # Method to check whether dependent libraries are shared objects.
16870 deplibs_check_method=$lt_deplibs_check_method
16871
16872 # Command to use when deplibs_check_method == file_magic.
16873 file_magic_cmd=$lt_file_magic_cmd
16874
16875 # Flag that allows shared libraries with undefined symbols to be built.
16876 allow_undefined_flag=$lt_allow_undefined_flag_F77
16877
16878 # Flag that forces no undefined symbols.
16879 no_undefined_flag=$lt_no_undefined_flag_F77
16880
16881 # Commands used to finish a libtool library installation in a directory.
16882 finish_cmds=$lt_finish_cmds
16883
16884 # Same as above, but a single script fragment to be evaled but not shown.
16885 finish_eval=$lt_finish_eval
16886
16887 # Take the output of nm and produce a listing of raw symbols and C names.
16888 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16889
16890 # Transform the output of nm in a proper C declaration
16891 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16892
16893 # Transform the output of nm in a C name address pair
16894 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16895
16896 # This is the shared library runtime path variable.
16897 runpath_var=$runpath_var
16898
16899 # This is the shared library path variable.
16900 shlibpath_var=$shlibpath_var
16901
16902 # Is shlibpath searched before the hard-coded library search path?
16903 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16904
16905 # How to hardcode a shared library path into an executable.
16906 hardcode_action=$hardcode_action_F77
16907
16908 # Whether we should hardcode library paths into libraries.
16909 hardcode_into_libs=$hardcode_into_libs
16910
16911 # Flag to hardcode \$libdir into a binary during linking.
16912 # This must work even if \$libdir does not exist.
16913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16914
16915 # If ld is used when linking, flag to hardcode \$libdir into
16916 # a binary during linking. This must work even if \$libdir does
16917 # not exist.
16918 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16919
16920 # Whether we need a single -rpath flag with a separated argument.
16921 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16922
16923 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16924 # resulting binary.
16925 hardcode_direct=$hardcode_direct_F77
16926
16927 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16928 # resulting binary.
16929 hardcode_minus_L=$hardcode_minus_L_F77
16930
16931 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16932 # the resulting binary.
16933 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16934
16935 # Set to yes if building a shared library automatically hardcodes DIR into the library
16936 # and all subsequent libraries and executables linked against it.
16937 hardcode_automatic=$hardcode_automatic_F77
16938
16939 # Variables whose values should be saved in libtool wrapper scripts and
16940 # restored at relink time.
16941 variables_saved_for_relink="$variables_saved_for_relink"
16942
16943 # Whether libtool must link a program against all its dependency libraries.
16944 link_all_deplibs=$link_all_deplibs_F77
16945
16946 # Compile-time system search path for libraries
16947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16948
16949 # Run-time system search path for libraries
16950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16951
16952 # Fix the shell variable \$srcfile for the compiler.
16953 fix_srcfile_path="$fix_srcfile_path_F77"
16954
16955 # Set to yes if exported symbols are required.
16956 always_export_symbols=$always_export_symbols_F77
16957
16958 # The commands to list exported symbols.
16959 export_symbols_cmds=$lt_export_symbols_cmds_F77
16960
16961 # The commands to extract the exported symbol list from a shared archive.
16962 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16963
16964 # Symbols that should not be listed in the preloaded symbols.
16965 exclude_expsyms=$lt_exclude_expsyms_F77
16966
16967 # Symbols that must always be exported.
16968 include_expsyms=$lt_include_expsyms_F77
16969
16970 # ### END LIBTOOL TAG CONFIG: $tagname
16971
16972 __EOF__
16973
16974
16975 else
16976   # If there is no Makefile yet, we rely on a make rule to execute
16977   # `config.status --recheck' to rerun these tests and create the
16978   # libtool script then.
16979   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16980   if test -f "$ltmain_in"; then
16981     test -f Makefile && make "$ltmain"
16982   fi
16983 fi
16984
16985
16986 ac_ext=c
16987 ac_cpp='$CPP $CPPFLAGS'
16988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16991
16992 CC="$lt_save_CC"
16993
16994         else
16995           tagname=""
16996         fi
16997         ;;
16998
16999       GCJ)
17000         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17001
17002
17003 # Source file extension for Java test sources.
17004 ac_ext=java
17005
17006 # Object file extension for compiled Java test sources.
17007 objext=o
17008 objext_GCJ=$objext
17009
17010 # Code to be used in simple compile tests
17011 lt_simple_compile_test_code="class foo {}\n"
17012
17013 # Code to be used in simple link tests
17014 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17015
17016 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17017
17018 # If no C compiler was specified, use CC.
17019 LTCC=${LTCC-"$CC"}
17020
17021 # If no C compiler flags were specified, use CFLAGS.
17022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17023
17024 # Allow CC to be a program name with arguments.
17025 compiler=$CC
17026
17027
17028 # save warnings/boilerplate of simple test code
17029 ac_outfile=conftest.$ac_objext
17030 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17031 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17032 _lt_compiler_boilerplate=`cat conftest.err`
17033 $rm conftest*
17034
17035 ac_outfile=conftest.$ac_objext
17036 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17037 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17038 _lt_linker_boilerplate=`cat conftest.err`
17039 $rm conftest*
17040
17041
17042 # Allow CC to be a program name with arguments.
17043 lt_save_CC="$CC"
17044 CC=${GCJ-"gcj"}
17045 compiler=$CC
17046 compiler_GCJ=$CC
17047 for cc_temp in $compiler""; do
17048   case $cc_temp in
17049     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17050     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17051     \-*) ;;
17052     *) break;;
17053   esac
17054 done
17055 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17056
17057
17058 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17059 archive_cmds_need_lc_GCJ=no
17060
17061 old_archive_cmds_GCJ=$old_archive_cmds
17062
17063 ## CAVEAT EMPTOR:
17064 ## There is no encapsulation within the following macros, do not change
17065 ## the running order or otherwise move them around unless you know exactly
17066 ## what you are doing...
17067
17068 lt_prog_compiler_no_builtin_flag_GCJ=
17069
17070 if test "$GCC" = yes; then
17071   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17072
17073
17074 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17075 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17076 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17077   echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079   lt_cv_prog_compiler_rtti_exceptions=no
17080   ac_outfile=conftest.$ac_objext
17081    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17082    lt_compiler_flag="-fno-rtti -fno-exceptions"
17083    # Insert the option either (1) after the last *FLAGS variable, or
17084    # (2) before a word containing "conftest.", or (3) at the end.
17085    # Note that $ac_compile itself does not contain backslashes and begins
17086    # with a dollar sign (not a hyphen), so the echo should work correctly.
17087    # The option is referenced via a variable to avoid confusing sed.
17088    lt_compile=`echo "$ac_compile" | $SED \
17089    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17090    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17091    -e 's:$: $lt_compiler_flag:'`
17092    (eval echo "\"\$as_me:17092: $lt_compile\"" >&5)
17093    (eval "$lt_compile" 2>conftest.err)
17094    ac_status=$?
17095    cat conftest.err >&5
17096    echo "$as_me:17096: \$? = $ac_status" >&5
17097    if (exit $ac_status) && test -s "$ac_outfile"; then
17098      # The compiler can only warn and ignore the option if not recognized
17099      # So say no if there are warnings other than the usual output.
17100      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17101      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17102      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17103        lt_cv_prog_compiler_rtti_exceptions=yes
17104      fi
17105    fi
17106    $rm conftest*
17107
17108 fi
17109 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17110 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17111
17112 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17113     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17114 else
17115     :
17116 fi
17117
17118 fi
17119
17120 lt_prog_compiler_wl_GCJ=
17121 lt_prog_compiler_pic_GCJ=
17122 lt_prog_compiler_static_GCJ=
17123
17124 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17125 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17126
17127   if test "$GCC" = yes; then
17128     lt_prog_compiler_wl_GCJ='-Wl,'
17129     lt_prog_compiler_static_GCJ='-static'
17130
17131     case $host_os in
17132       aix*)
17133       # All AIX code is PIC.
17134       if test "$host_cpu" = ia64; then
17135         # AIX 5 now supports IA64 processor
17136         lt_prog_compiler_static_GCJ='-Bstatic'
17137       fi
17138       ;;
17139
17140     amigaos*)
17141       # FIXME: we need at least 68020 code to build shared libraries, but
17142       # adding the `-m68020' flag to GCC prevents building anything better,
17143       # like `-m68040'.
17144       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17145       ;;
17146
17147     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17148       # PIC is the default for these OSes.
17149       ;;
17150
17151     mingw* | pw32* | os2*)
17152       # This hack is so that the source file can tell whether it is being
17153       # built for inclusion in a dll (and should export symbols for example).
17154       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17155       ;;
17156
17157     darwin* | rhapsody*)
17158       # PIC is the default on this platform
17159       # Common symbols not allowed in MH_DYLIB files
17160       lt_prog_compiler_pic_GCJ='-fno-common'
17161       ;;
17162
17163     interix3*)
17164       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17165       # Instead, we relocate shared libraries at runtime.
17166       ;;
17167
17168     msdosdjgpp*)
17169       # Just because we use GCC doesn't mean we suddenly get shared libraries
17170       # on systems that don't support them.
17171       lt_prog_compiler_can_build_shared_GCJ=no
17172       enable_shared=no
17173       ;;
17174
17175     sysv4*MP*)
17176       if test -d /usr/nec; then
17177         lt_prog_compiler_pic_GCJ=-Kconform_pic
17178       fi
17179       ;;
17180
17181     hpux*)
17182       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17183       # not for PA HP-UX.
17184       case $host_cpu in
17185       hppa*64*|ia64*)
17186         # +Z the default
17187         ;;
17188       *)
17189         lt_prog_compiler_pic_GCJ='-fPIC'
17190         ;;
17191       esac
17192       ;;
17193
17194     *)
17195       lt_prog_compiler_pic_GCJ='-fPIC'
17196       ;;
17197     esac
17198   else
17199     # PORTME Check for flag to pass linker flags through the system compiler.
17200     case $host_os in
17201     aix*)
17202       lt_prog_compiler_wl_GCJ='-Wl,'
17203       if test "$host_cpu" = ia64; then
17204         # AIX 5 now supports IA64 processor
17205         lt_prog_compiler_static_GCJ='-Bstatic'
17206       else
17207         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17208       fi
17209       ;;
17210       darwin*)
17211         # PIC is the default on this platform
17212         # Common symbols not allowed in MH_DYLIB files
17213        case $cc_basename in
17214          xlc*)
17215          lt_prog_compiler_pic_GCJ='-qnocommon'
17216          lt_prog_compiler_wl_GCJ='-Wl,'
17217          ;;
17218        esac
17219        ;;
17220
17221     mingw* | pw32* | os2*)
17222       # This hack is so that the source file can tell whether it is being
17223       # built for inclusion in a dll (and should export symbols for example).
17224       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17225       ;;
17226
17227     hpux9* | hpux10* | hpux11*)
17228       lt_prog_compiler_wl_GCJ='-Wl,'
17229       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17230       # not for PA HP-UX.
17231       case $host_cpu in
17232       hppa*64*|ia64*)
17233         # +Z the default
17234         ;;
17235       *)
17236         lt_prog_compiler_pic_GCJ='+Z'
17237         ;;
17238       esac
17239       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17240       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17241       ;;
17242
17243     irix5* | irix6* | nonstopux*)
17244       lt_prog_compiler_wl_GCJ='-Wl,'
17245       # PIC (with -KPIC) is the default.
17246       lt_prog_compiler_static_GCJ='-non_shared'
17247       ;;
17248
17249     newsos6)
17250       lt_prog_compiler_pic_GCJ='-KPIC'
17251       lt_prog_compiler_static_GCJ='-Bstatic'
17252       ;;
17253
17254     linux*)
17255       case $cc_basename in
17256       icc* | ecc*)
17257         lt_prog_compiler_wl_GCJ='-Wl,'
17258         lt_prog_compiler_pic_GCJ='-KPIC'
17259         lt_prog_compiler_static_GCJ='-static'
17260         ;;
17261       pgcc* | pgf77* | pgf90* | pgf95*)
17262         # Portland Group compilers (*not* the Pentium gcc compiler,
17263         # which looks to be a dead project)
17264         lt_prog_compiler_wl_GCJ='-Wl,'
17265         lt_prog_compiler_pic_GCJ='-fpic'
17266         lt_prog_compiler_static_GCJ='-Bstatic'
17267         ;;
17268       ccc*)
17269         lt_prog_compiler_wl_GCJ='-Wl,'
17270         # All Alpha code is PIC.
17271         lt_prog_compiler_static_GCJ='-non_shared'
17272         ;;
17273       esac
17274       ;;
17275
17276     osf3* | osf4* | osf5*)
17277       lt_prog_compiler_wl_GCJ='-Wl,'
17278       # All OSF/1 code is PIC.
17279       lt_prog_compiler_static_GCJ='-non_shared'
17280       ;;
17281
17282     solaris*)
17283       lt_prog_compiler_pic_GCJ='-KPIC'
17284       lt_prog_compiler_static_GCJ='-Bstatic'
17285       case $cc_basename in
17286       f77* | f90* | f95*)
17287         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17288       *)
17289         lt_prog_compiler_wl_GCJ='-Wl,';;
17290       esac
17291       ;;
17292
17293     sunos4*)
17294       lt_prog_compiler_wl_GCJ='-Qoption ld '
17295       lt_prog_compiler_pic_GCJ='-PIC'
17296       lt_prog_compiler_static_GCJ='-Bstatic'
17297       ;;
17298
17299     sysv4 | sysv4.2uw2* | sysv4.3*)
17300       lt_prog_compiler_wl_GCJ='-Wl,'
17301       lt_prog_compiler_pic_GCJ='-KPIC'
17302       lt_prog_compiler_static_GCJ='-Bstatic'
17303       ;;
17304
17305     sysv4*MP*)
17306       if test -d /usr/nec ;then
17307         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17308         lt_prog_compiler_static_GCJ='-Bstatic'
17309       fi
17310       ;;
17311
17312     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17313       lt_prog_compiler_wl_GCJ='-Wl,'
17314       lt_prog_compiler_pic_GCJ='-KPIC'
17315       lt_prog_compiler_static_GCJ='-Bstatic'
17316       ;;
17317
17318     unicos*)
17319       lt_prog_compiler_wl_GCJ='-Wl,'
17320       lt_prog_compiler_can_build_shared_GCJ=no
17321       ;;
17322
17323     uts4*)
17324       lt_prog_compiler_pic_GCJ='-pic'
17325       lt_prog_compiler_static_GCJ='-Bstatic'
17326       ;;
17327
17328     *)
17329       lt_prog_compiler_can_build_shared_GCJ=no
17330       ;;
17331     esac
17332   fi
17333
17334 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17335 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17336
17337 #
17338 # Check to make sure the PIC flag actually works.
17339 #
17340 if test -n "$lt_prog_compiler_pic_GCJ"; then
17341
17342 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17343 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17344 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17345   echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347   lt_prog_compiler_pic_works_GCJ=no
17348   ac_outfile=conftest.$ac_objext
17349    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17350    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17351    # Insert the option either (1) after the last *FLAGS variable, or
17352    # (2) before a word containing "conftest.", or (3) at the end.
17353    # Note that $ac_compile itself does not contain backslashes and begins
17354    # with a dollar sign (not a hyphen), so the echo should work correctly.
17355    # The option is referenced via a variable to avoid confusing sed.
17356    lt_compile=`echo "$ac_compile" | $SED \
17357    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17358    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17359    -e 's:$: $lt_compiler_flag:'`
17360    (eval echo "\"\$as_me:17360: $lt_compile\"" >&5)
17361    (eval "$lt_compile" 2>conftest.err)
17362    ac_status=$?
17363    cat conftest.err >&5
17364    echo "$as_me:17364: \$? = $ac_status" >&5
17365    if (exit $ac_status) && test -s "$ac_outfile"; then
17366      # The compiler can only warn and ignore the option if not recognized
17367      # So say no if there are warnings other than the usual output.
17368      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17369      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17370      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17371        lt_prog_compiler_pic_works_GCJ=yes
17372      fi
17373    fi
17374    $rm conftest*
17375
17376 fi
17377 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17378 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17379
17380 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17381     case $lt_prog_compiler_pic_GCJ in
17382      "" | " "*) ;;
17383      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17384      esac
17385 else
17386     lt_prog_compiler_pic_GCJ=
17387      lt_prog_compiler_can_build_shared_GCJ=no
17388 fi
17389
17390 fi
17391 case $host_os in
17392   # For platforms which do not support PIC, -DPIC is meaningless:
17393   *djgpp*)
17394     lt_prog_compiler_pic_GCJ=
17395     ;;
17396   *)
17397     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17398     ;;
17399 esac
17400
17401 #
17402 # Check to make sure the static flag actually works.
17403 #
17404 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17405 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17406 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17407 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17408   echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410   lt_prog_compiler_static_works_GCJ=no
17411    save_LDFLAGS="$LDFLAGS"
17412    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17413    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17414    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17415      # The linker can only warn and ignore the option if not recognized
17416      # So say no if there are warnings
17417      if test -s conftest.err; then
17418        # Append any errors to the config.log.
17419        cat conftest.err 1>&5
17420        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17421        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17422        if diff conftest.exp conftest.er2 >/dev/null; then
17423          lt_prog_compiler_static_works_GCJ=yes
17424        fi
17425      else
17426        lt_prog_compiler_static_works_GCJ=yes
17427      fi
17428    fi
17429    $rm conftest*
17430    LDFLAGS="$save_LDFLAGS"
17431
17432 fi
17433 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17434 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17435
17436 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17437     :
17438 else
17439     lt_prog_compiler_static_GCJ=
17440 fi
17441
17442
17443 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17444 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17445 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17446   echo $ECHO_N "(cached) $ECHO_C" >&6
17447 else
17448   lt_cv_prog_compiler_c_o_GCJ=no
17449    $rm -r conftest 2>/dev/null
17450    mkdir conftest
17451    cd conftest
17452    mkdir out
17453    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17454
17455    lt_compiler_flag="-o out/conftest2.$ac_objext"
17456    # Insert the option either (1) after the last *FLAGS variable, or
17457    # (2) before a word containing "conftest.", or (3) at the end.
17458    # Note that $ac_compile itself does not contain backslashes and begins
17459    # with a dollar sign (not a hyphen), so the echo should work correctly.
17460    lt_compile=`echo "$ac_compile" | $SED \
17461    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17462    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17463    -e 's:$: $lt_compiler_flag:'`
17464    (eval echo "\"\$as_me:17464: $lt_compile\"" >&5)
17465    (eval "$lt_compile" 2>out/conftest.err)
17466    ac_status=$?
17467    cat out/conftest.err >&5
17468    echo "$as_me:17468: \$? = $ac_status" >&5
17469    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17470    then
17471      # The compiler can only warn and ignore the option if not recognized
17472      # So say no if there are warnings
17473      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17474      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17475      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17476        lt_cv_prog_compiler_c_o_GCJ=yes
17477      fi
17478    fi
17479    chmod u+w . 2>&5
17480    $rm conftest*
17481    # SGI C++ compiler will create directory out/ii_files/ for
17482    # template instantiation
17483    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17484    $rm out/* && rmdir out
17485    cd ..
17486    rmdir conftest
17487    $rm conftest*
17488
17489 fi
17490 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17491 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17492
17493
17494 hard_links="nottested"
17495 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17496   # do not overwrite the value of need_locks provided by the user
17497   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17498 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17499   hard_links=yes
17500   $rm conftest*
17501   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17502   touch conftest.a
17503   ln conftest.a conftest.b 2>&5 || hard_links=no
17504   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17505   { echo "$as_me:$LINENO: result: $hard_links" >&5
17506 echo "${ECHO_T}$hard_links" >&6; }
17507   if test "$hard_links" = no; then
17508     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17509 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17510     need_locks=warn
17511   fi
17512 else
17513   need_locks=no
17514 fi
17515
17516 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17517 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17518
17519   runpath_var=
17520   allow_undefined_flag_GCJ=
17521   enable_shared_with_static_runtimes_GCJ=no
17522   archive_cmds_GCJ=
17523   archive_expsym_cmds_GCJ=
17524   old_archive_From_new_cmds_GCJ=
17525   old_archive_from_expsyms_cmds_GCJ=
17526   export_dynamic_flag_spec_GCJ=
17527   whole_archive_flag_spec_GCJ=
17528   thread_safe_flag_spec_GCJ=
17529   hardcode_libdir_flag_spec_GCJ=
17530   hardcode_libdir_flag_spec_ld_GCJ=
17531   hardcode_libdir_separator_GCJ=
17532   hardcode_direct_GCJ=no
17533   hardcode_minus_L_GCJ=no
17534   hardcode_shlibpath_var_GCJ=unsupported
17535   link_all_deplibs_GCJ=unknown
17536   hardcode_automatic_GCJ=no
17537   module_cmds_GCJ=
17538   module_expsym_cmds_GCJ=
17539   always_export_symbols_GCJ=no
17540   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17541   # include_expsyms should be a list of space-separated symbols to be *always*
17542   # included in the symbol list
17543   include_expsyms_GCJ=
17544   # exclude_expsyms can be an extended regexp of symbols to exclude
17545   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17546   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17547   # as well as any symbol that contains `d'.
17548   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17549   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17550   # platforms (ab)use it in PIC code, but their linkers get confused if
17551   # the symbol is explicitly referenced.  Since portable code cannot
17552   # rely on this symbol name, it's probably fine to never include it in
17553   # preloaded symbol tables.
17554   extract_expsyms_cmds=
17555   # Just being paranoid about ensuring that cc_basename is set.
17556   for cc_temp in $compiler""; do
17557   case $cc_temp in
17558     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17559     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17560     \-*) ;;
17561     *) break;;
17562   esac
17563 done
17564 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17565
17566   case $host_os in
17567   cygwin* | mingw* | pw32*)
17568     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17569     # When not using gcc, we currently assume that we are using
17570     # Microsoft Visual C++.
17571     if test "$GCC" != yes; then
17572       with_gnu_ld=no
17573     fi
17574     ;;
17575   interix*)
17576     # we just hope/assume this is gcc and not c89 (= MSVC++)
17577     with_gnu_ld=yes
17578     ;;
17579   openbsd*)
17580     with_gnu_ld=no
17581     ;;
17582   esac
17583
17584   ld_shlibs_GCJ=yes
17585   if test "$with_gnu_ld" = yes; then
17586     # If archive_cmds runs LD, not CC, wlarc should be empty
17587     wlarc='${wl}'
17588
17589     # Set some defaults for GNU ld with shared library support. These
17590     # are reset later if shared libraries are not supported. Putting them
17591     # here allows them to be overridden if necessary.
17592     runpath_var=LD_RUN_PATH
17593     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17594     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17595     # ancient GNU ld didn't support --whole-archive et. al.
17596     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17597         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17598       else
17599         whole_archive_flag_spec_GCJ=
17600     fi
17601     supports_anon_versioning=no
17602     case `$LD -v 2>/dev/null` in
17603       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17604       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17605       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17606       *\ 2.11.*) ;; # other 2.11 versions
17607       *) supports_anon_versioning=yes ;;
17608     esac
17609
17610     # See if GNU ld supports shared libraries.
17611     case $host_os in
17612     aix3* | aix4* | aix5*)
17613       # On AIX/PPC, the GNU linker is very broken
17614       if test "$host_cpu" != ia64; then
17615         ld_shlibs_GCJ=no
17616         cat <<EOF 1>&2
17617
17618 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17619 *** to be unable to reliably create shared libraries on AIX.
17620 *** Therefore, libtool is disabling shared libraries support.  If you
17621 *** really care for shared libraries, you may want to modify your PATH
17622 *** so that a non-GNU linker is found, and then restart.
17623
17624 EOF
17625       fi
17626       ;;
17627
17628     amigaos*)
17629       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)'
17630       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17631       hardcode_minus_L_GCJ=yes
17632
17633       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17634       # that the semantics of dynamic libraries on AmigaOS, at least up
17635       # to version 4, is to share data among multiple programs linked
17636       # with the same dynamic library.  Since this doesn't match the
17637       # behavior of shared libraries on other platforms, we can't use
17638       # them.
17639       ld_shlibs_GCJ=no
17640       ;;
17641
17642     beos*)
17643       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17644         allow_undefined_flag_GCJ=unsupported
17645         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17646         # support --undefined.  This deserves some investigation.  FIXME
17647         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17648       else
17649         ld_shlibs_GCJ=no
17650       fi
17651       ;;
17652
17653     cygwin* | mingw* | pw32*)
17654       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17655       # as there is no search path for DLLs.
17656       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17657       allow_undefined_flag_GCJ=unsupported
17658       always_export_symbols_GCJ=no
17659       enable_shared_with_static_runtimes_GCJ=yes
17660       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17661
17662       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17663         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17664         # If the export-symbols file already is a .def file (1st line
17665         # is EXPORTS), use it as is; otherwise, prepend...
17666         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17667           cp $export_symbols $output_objdir/$soname.def;
17668         else
17669           echo EXPORTS > $output_objdir/$soname.def;
17670           cat $export_symbols >> $output_objdir/$soname.def;
17671         fi~
17672         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17673       else
17674         ld_shlibs_GCJ=no
17675       fi
17676       ;;
17677
17678     interix3*)
17679       hardcode_direct_GCJ=no
17680       hardcode_shlibpath_var_GCJ=no
17681       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17682       export_dynamic_flag_spec_GCJ='${wl}-E'
17683       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17684       # Instead, shared libraries are loaded at an image base (0x10000000 by
17685       # default) and relocated if they conflict, which is a slow very memory
17686       # consuming and fragmenting process.  To avoid this, we pick a random,
17687       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17688       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17689       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'
17690       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'
17691       ;;
17692
17693     linux*)
17694       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17695         tmp_addflag=
17696         case $cc_basename,$host_cpu in
17697         pgcc*)                          # Portland Group C compiler
17698           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'
17699           tmp_addflag=' $pic_flag'
17700           ;;
17701         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17702           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'
17703           tmp_addflag=' $pic_flag -Mnomain' ;;
17704         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17705           tmp_addflag=' -i_dynamic' ;;
17706         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17707           tmp_addflag=' -i_dynamic -nofor_main' ;;
17708         ifc* | ifort*)                  # Intel Fortran compiler
17709           tmp_addflag=' -nofor_main' ;;
17710         esac
17711         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17712
17713         if test $supports_anon_versioning = yes; then
17714           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17715   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17716   $echo "local: *; };" >> $output_objdir/$libname.ver~
17717           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17718         fi
17719       else
17720         ld_shlibs_GCJ=no
17721       fi
17722       ;;
17723
17724     netbsd*)
17725       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17726         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17727         wlarc=
17728       else
17729         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17731       fi
17732       ;;
17733
17734     solaris*)
17735       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17736         ld_shlibs_GCJ=no
17737         cat <<EOF 1>&2
17738
17739 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17740 *** create shared libraries on Solaris systems.  Therefore, libtool
17741 *** is disabling shared libraries support.  We urge you to upgrade GNU
17742 *** binutils to release 2.9.1 or newer.  Another option is to modify
17743 *** your PATH or compiler configuration so that the native linker is
17744 *** used, and then restart.
17745
17746 EOF
17747       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17748         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17749         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17750       else
17751         ld_shlibs_GCJ=no
17752       fi
17753       ;;
17754
17755     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17756       case `$LD -v 2>&1` in
17757         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17758         ld_shlibs_GCJ=no
17759         cat <<_LT_EOF 1>&2
17760
17761 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17762 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17763 *** is disabling shared libraries support.  We urge you to upgrade GNU
17764 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17765 *** your PATH or compiler configuration so that the native linker is
17766 *** used, and then restart.
17767
17768 _LT_EOF
17769         ;;
17770         *)
17771           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17772             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17773             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17774             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17775           else
17776             ld_shlibs_GCJ=no
17777           fi
17778         ;;
17779       esac
17780       ;;
17781
17782     sunos4*)
17783       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17784       wlarc=
17785       hardcode_direct_GCJ=yes
17786       hardcode_shlibpath_var_GCJ=no
17787       ;;
17788
17789     *)
17790       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17791         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17792         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17793       else
17794         ld_shlibs_GCJ=no
17795       fi
17796       ;;
17797     esac
17798
17799     if test "$ld_shlibs_GCJ" = no; then
17800       runpath_var=
17801       hardcode_libdir_flag_spec_GCJ=
17802       export_dynamic_flag_spec_GCJ=
17803       whole_archive_flag_spec_GCJ=
17804     fi
17805   else
17806     # PORTME fill in a description of your system's linker (not GNU ld)
17807     case $host_os in
17808     aix3*)
17809       allow_undefined_flag_GCJ=unsupported
17810       always_export_symbols_GCJ=yes
17811       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'
17812       # Note: this linker hardcodes the directories in LIBPATH if there
17813       # are no directories specified by -L.
17814       hardcode_minus_L_GCJ=yes
17815       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17816         # Neither direct hardcoding nor static linking is supported with a
17817         # broken collect2.
17818         hardcode_direct_GCJ=unsupported
17819       fi
17820       ;;
17821
17822     aix4* | aix5*)
17823       if test "$host_cpu" = ia64; then
17824         # On IA64, the linker does run time linking by default, so we don't
17825         # have to do anything special.
17826         aix_use_runtimelinking=no
17827         exp_sym_flag='-Bexport'
17828         no_entry_flag=""
17829       else
17830         # If we're using GNU nm, then we don't want the "-C" option.
17831         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17832         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17833           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'
17834         else
17835           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'
17836         fi
17837         aix_use_runtimelinking=no
17838
17839         # Test if we are trying to use run time linking or normal
17840         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17841         # need to do runtime linking.
17842         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17843           for ld_flag in $LDFLAGS; do
17844           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17845             aix_use_runtimelinking=yes
17846             break
17847           fi
17848           done
17849           ;;
17850         esac
17851
17852         exp_sym_flag='-bexport'
17853         no_entry_flag='-bnoentry'
17854       fi
17855
17856       # When large executables or shared objects are built, AIX ld can
17857       # have problems creating the table of contents.  If linking a library
17858       # or program results in "error TOC overflow" add -mminimal-toc to
17859       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17860       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17861
17862       archive_cmds_GCJ=''
17863       hardcode_direct_GCJ=yes
17864       hardcode_libdir_separator_GCJ=':'
17865       link_all_deplibs_GCJ=yes
17866
17867       if test "$GCC" = yes; then
17868         case $host_os in aix4.[012]|aix4.[012].*)
17869         # We only want to do this on AIX 4.2 and lower, the check
17870         # below for broken collect2 doesn't work under 4.3+
17871           collect2name=`${CC} -print-prog-name=collect2`
17872           if test -f "$collect2name" && \
17873            strings "$collect2name" | grep resolve_lib_name >/dev/null
17874           then
17875           # We have reworked collect2
17876           hardcode_direct_GCJ=yes
17877           else
17878           # We have old collect2
17879           hardcode_direct_GCJ=unsupported
17880           # It fails to find uninstalled libraries when the uninstalled
17881           # path is not listed in the libpath.  Setting hardcode_minus_L
17882           # to unsupported forces relinking
17883           hardcode_minus_L_GCJ=yes
17884           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17885           hardcode_libdir_separator_GCJ=
17886           fi
17887           ;;
17888         esac
17889         shared_flag='-shared'
17890         if test "$aix_use_runtimelinking" = yes; then
17891           shared_flag="$shared_flag "'${wl}-G'
17892         fi
17893       else
17894         # not using gcc
17895         if test "$host_cpu" = ia64; then
17896         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17897         # chokes on -Wl,-G. The following line is correct:
17898           shared_flag='-G'
17899         else
17900           if test "$aix_use_runtimelinking" = yes; then
17901             shared_flag='${wl}-G'
17902           else
17903             shared_flag='${wl}-bM:SRE'
17904           fi
17905         fi
17906       fi
17907
17908       # It seems that -bexpall does not export symbols beginning with
17909       # underscore (_), so it is better to generate a list of symbols to export.
17910       always_export_symbols_GCJ=yes
17911       if test "$aix_use_runtimelinking" = yes; then
17912         # Warning - without using the other runtime loading flags (-brtl),
17913         # -berok will link without error, but may produce a broken library.
17914         allow_undefined_flag_GCJ='-berok'
17915        # Determine the default libpath from the value encoded in an empty executable.
17916        cat >conftest.$ac_ext <<_ACEOF
17917 /* confdefs.h.  */
17918 _ACEOF
17919 cat confdefs.h >>conftest.$ac_ext
17920 cat >>conftest.$ac_ext <<_ACEOF
17921 /* end confdefs.h.  */
17922
17923 int
17924 main ()
17925 {
17926
17927   ;
17928   return 0;
17929 }
17930 _ACEOF
17931 rm -f conftest.$ac_objext conftest$ac_exeext
17932 if { (ac_try="$ac_link"
17933 case "(($ac_try" in
17934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935   *) ac_try_echo=$ac_try;;
17936 esac
17937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938   (eval "$ac_link") 2>conftest.er1
17939   ac_status=$?
17940   grep -v '^ *+' conftest.er1 >conftest.err
17941   rm -f conftest.er1
17942   cat conftest.err >&5
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); } &&
17945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17946   { (case "(($ac_try" in
17947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17948   *) ac_try_echo=$ac_try;;
17949 esac
17950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17951   (eval "$ac_try") 2>&5
17952   ac_status=$?
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); }; } &&
17955          { ac_try='test -s conftest$ac_exeext'
17956   { (case "(($ac_try" in
17957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17958   *) ac_try_echo=$ac_try;;
17959 esac
17960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17961   (eval "$ac_try") 2>&5
17962   ac_status=$?
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); }; }; then
17965
17966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17967 }'`
17968 # Check for a 64-bit object if we didn't find anything.
17969 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; }
17970 }'`; fi
17971 else
17972   echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17974
17975
17976 fi
17977
17978 rm -f core conftest.err conftest.$ac_objext \
17979       conftest$ac_exeext conftest.$ac_ext
17980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17981
17982        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17983         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"
17984        else
17985         if test "$host_cpu" = ia64; then
17986           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17987           allow_undefined_flag_GCJ="-z nodefs"
17988           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"
17989         else
17990          # Determine the default libpath from the value encoded in an empty executable.
17991          cat >conftest.$ac_ext <<_ACEOF
17992 /* confdefs.h.  */
17993 _ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h.  */
17997
17998 int
17999 main ()
18000 {
18001
18002   ;
18003   return 0;
18004 }
18005 _ACEOF
18006 rm -f conftest.$ac_objext conftest$ac_exeext
18007 if { (ac_try="$ac_link"
18008 case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_link") 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } &&
18020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18021   { (case "(($ac_try" in
18022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023   *) ac_try_echo=$ac_try;;
18024 esac
18025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026   (eval "$ac_try") 2>&5
18027   ac_status=$?
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); }; } &&
18030          { ac_try='test -s conftest$ac_exeext'
18031   { (case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_try") 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; }; then
18040
18041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18042 }'`
18043 # Check for a 64-bit object if we didn't find anything.
18044 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; }
18045 }'`; fi
18046 else
18047   echo "$as_me: failed program was:" >&5
18048 sed 's/^/| /' conftest.$ac_ext >&5
18049
18050
18051 fi
18052
18053 rm -f core conftest.err conftest.$ac_objext \
18054       conftest$ac_exeext conftest.$ac_ext
18055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18056
18057          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18058           # Warning - without using the other run time loading flags,
18059           # -berok will link without error, but may produce a broken library.
18060           no_undefined_flag_GCJ=' ${wl}-bernotok'
18061           allow_undefined_flag_GCJ=' ${wl}-berok'
18062           # Exported symbols can be pulled into shared objects from archives
18063           whole_archive_flag_spec_GCJ='$convenience'
18064           archive_cmds_need_lc_GCJ=yes
18065           # This is similar to how AIX traditionally builds its shared libraries.
18066           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'
18067         fi
18068       fi
18069       ;;
18070
18071     amigaos*)
18072       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)'
18073       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18074       hardcode_minus_L_GCJ=yes
18075       # see comment about different semantics on the GNU ld section
18076       ld_shlibs_GCJ=no
18077       ;;
18078
18079     bsdi[45]*)
18080       export_dynamic_flag_spec_GCJ=-rdynamic
18081       ;;
18082
18083     cygwin* | mingw* | pw32*)
18084       # When not using gcc, we currently assume that we are using
18085       # Microsoft Visual C++.
18086       # hardcode_libdir_flag_spec is actually meaningless, as there is
18087       # no search path for DLLs.
18088       hardcode_libdir_flag_spec_GCJ=' '
18089       allow_undefined_flag_GCJ=unsupported
18090       # Tell ltmain to make .lib files, not .a files.
18091       libext=lib
18092       # Tell ltmain to make .dll files, not .so files.
18093       shrext_cmds=".dll"
18094       # FIXME: Setting linknames here is a bad hack.
18095       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18096       # The linker will automatically build a .lib file if we build a DLL.
18097       old_archive_From_new_cmds_GCJ='true'
18098       # FIXME: Should let the user specify the lib program.
18099       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18100       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18101       enable_shared_with_static_runtimes_GCJ=yes
18102       ;;
18103
18104     darwin* | rhapsody*)
18105       case $host_os in
18106         rhapsody* | darwin1.[012])
18107          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18108          ;;
18109        *) # Darwin 1.3 on
18110          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18111            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18112          else
18113            case ${MACOSX_DEPLOYMENT_TARGET} in
18114              10.[012])
18115                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18116                ;;
18117              10.*)
18118                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18119                ;;
18120            esac
18121          fi
18122          ;;
18123       esac
18124       archive_cmds_need_lc_GCJ=no
18125       hardcode_direct_GCJ=no
18126       hardcode_automatic_GCJ=yes
18127       hardcode_shlibpath_var_GCJ=unsupported
18128       whole_archive_flag_spec_GCJ=''
18129       link_all_deplibs_GCJ=yes
18130     if test "$GCC" = yes ; then
18131         output_verbose_link_cmd='echo'
18132         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18133       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18134       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18135       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}'
18136       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}'
18137     else
18138       case $cc_basename in
18139         xlc*)
18140          output_verbose_link_cmd='echo'
18141          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18142          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18143           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18144          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}'
18145           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}'
18146           ;;
18147        *)
18148          ld_shlibs_GCJ=no
18149           ;;
18150       esac
18151     fi
18152       ;;
18153
18154     dgux*)
18155       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18156       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18157       hardcode_shlibpath_var_GCJ=no
18158       ;;
18159
18160     freebsd1*)
18161       ld_shlibs_GCJ=no
18162       ;;
18163
18164     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18165     # support.  Future versions do this automatically, but an explicit c++rt0.o
18166     # does not break anything, and helps significantly (at the cost of a little
18167     # extra space).
18168     freebsd2.2*)
18169       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18170       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18171       hardcode_direct_GCJ=yes
18172       hardcode_shlibpath_var_GCJ=no
18173       ;;
18174
18175     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18176     freebsd2*)
18177       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18178       hardcode_direct_GCJ=yes
18179       hardcode_minus_L_GCJ=yes
18180       hardcode_shlibpath_var_GCJ=no
18181       ;;
18182
18183     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18184     freebsd* | kfreebsd*-gnu | dragonfly*)
18185       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18186       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18187       hardcode_direct_GCJ=yes
18188       hardcode_shlibpath_var_GCJ=no
18189       ;;
18190
18191     hpux9*)
18192       if test "$GCC" = yes; then
18193         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'
18194       else
18195         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'
18196       fi
18197       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18198       hardcode_libdir_separator_GCJ=:
18199       hardcode_direct_GCJ=yes
18200
18201       # hardcode_minus_L: Not really in the search PATH,
18202       # but as the default location of the library.
18203       hardcode_minus_L_GCJ=yes
18204       export_dynamic_flag_spec_GCJ='${wl}-E'
18205       ;;
18206
18207     hpux10*)
18208       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18209         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18210       else
18211         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18212       fi
18213       if test "$with_gnu_ld" = no; then
18214         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18215         hardcode_libdir_separator_GCJ=:
18216
18217         hardcode_direct_GCJ=yes
18218         export_dynamic_flag_spec_GCJ='${wl}-E'
18219
18220         # hardcode_minus_L: Not really in the search PATH,
18221         # but as the default location of the library.
18222         hardcode_minus_L_GCJ=yes
18223       fi
18224       ;;
18225
18226     hpux11*)
18227       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18228         case $host_cpu in
18229         hppa*64*)
18230           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18231           ;;
18232         ia64*)
18233           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18234           ;;
18235         *)
18236           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18237           ;;
18238         esac
18239       else
18240         case $host_cpu in
18241         hppa*64*)
18242           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18243           ;;
18244         ia64*)
18245           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18246           ;;
18247         *)
18248           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18249           ;;
18250         esac
18251       fi
18252       if test "$with_gnu_ld" = no; then
18253         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18254         hardcode_libdir_separator_GCJ=:
18255
18256         case $host_cpu in
18257         hppa*64*|ia64*)
18258           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18259           hardcode_direct_GCJ=no
18260           hardcode_shlibpath_var_GCJ=no
18261           ;;
18262         *)
18263           hardcode_direct_GCJ=yes
18264           export_dynamic_flag_spec_GCJ='${wl}-E'
18265
18266           # hardcode_minus_L: Not really in the search PATH,
18267           # but as the default location of the library.
18268           hardcode_minus_L_GCJ=yes
18269           ;;
18270         esac
18271       fi
18272       ;;
18273
18274     irix5* | irix6* | nonstopux*)
18275       if test "$GCC" = yes; then
18276         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'
18277       else
18278         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'
18279         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18280       fi
18281       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18282       hardcode_libdir_separator_GCJ=:
18283       link_all_deplibs_GCJ=yes
18284       ;;
18285
18286     netbsd*)
18287       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18288         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18289       else
18290         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18291       fi
18292       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18293       hardcode_direct_GCJ=yes
18294       hardcode_shlibpath_var_GCJ=no
18295       ;;
18296
18297     newsos6)
18298       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18299       hardcode_direct_GCJ=yes
18300       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18301       hardcode_libdir_separator_GCJ=:
18302       hardcode_shlibpath_var_GCJ=no
18303       ;;
18304
18305     openbsd*)
18306       hardcode_direct_GCJ=yes
18307       hardcode_shlibpath_var_GCJ=no
18308       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18309         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18310         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18311         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18312         export_dynamic_flag_spec_GCJ='${wl}-E'
18313       else
18314        case $host_os in
18315          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18316            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18317            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18318            ;;
18319          *)
18320            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18321            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18322            ;;
18323        esac
18324       fi
18325       ;;
18326
18327     os2*)
18328       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18329       hardcode_minus_L_GCJ=yes
18330       allow_undefined_flag_GCJ=unsupported
18331       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'
18332       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18333       ;;
18334
18335     osf3*)
18336       if test "$GCC" = yes; then
18337         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18338         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'
18339       else
18340         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18341         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'
18342       fi
18343       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18344       hardcode_libdir_separator_GCJ=:
18345       ;;
18346
18347     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18348       if test "$GCC" = yes; then
18349         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18350         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'
18351         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18352       else
18353         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18354         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'
18355         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~
18356         $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'
18357
18358         # Both c and cxx compiler support -rpath directly
18359         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18360       fi
18361       hardcode_libdir_separator_GCJ=:
18362       ;;
18363
18364     solaris*)
18365       no_undefined_flag_GCJ=' -z text'
18366       if test "$GCC" = yes; then
18367         wlarc='${wl}'
18368         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18369         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18370           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18371       else
18372         wlarc=''
18373         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18374         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18375         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18376       fi
18377       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18378       hardcode_shlibpath_var_GCJ=no
18379       case $host_os in
18380       solaris2.[0-5] | solaris2.[0-5].*) ;;
18381       *)
18382         # The compiler driver will combine linker options so we
18383         # cannot just pass the convience library names through
18384         # without $wl, iff we do not link with $LD.
18385         # Luckily, gcc supports the same syntax we need for Sun Studio.
18386         # Supported since Solaris 2.6 (maybe 2.5.1?)
18387         case $wlarc in
18388         '')
18389           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18390         *)
18391           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' ;;
18392         esac ;;
18393       esac
18394       link_all_deplibs_GCJ=yes
18395       ;;
18396
18397     sunos4*)
18398       if test "x$host_vendor" = xsequent; then
18399         # Use $CC to link under sequent, because it throws in some extra .o
18400         # files that make .init and .fini sections work.
18401         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18402       else
18403         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18404       fi
18405       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18406       hardcode_direct_GCJ=yes
18407       hardcode_minus_L_GCJ=yes
18408       hardcode_shlibpath_var_GCJ=no
18409       ;;
18410
18411     sysv4)
18412       case $host_vendor in
18413         sni)
18414           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18415           hardcode_direct_GCJ=yes # is this really true???
18416         ;;
18417         siemens)
18418           ## LD is ld it makes a PLAMLIB
18419           ## CC just makes a GrossModule.
18420           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18421           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18422           hardcode_direct_GCJ=no
18423         ;;
18424         motorola)
18425           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18426           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18427         ;;
18428       esac
18429       runpath_var='LD_RUN_PATH'
18430       hardcode_shlibpath_var_GCJ=no
18431       ;;
18432
18433     sysv4.3*)
18434       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18435       hardcode_shlibpath_var_GCJ=no
18436       export_dynamic_flag_spec_GCJ='-Bexport'
18437       ;;
18438
18439     sysv4*MP*)
18440       if test -d /usr/nec; then
18441         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18442         hardcode_shlibpath_var_GCJ=no
18443         runpath_var=LD_RUN_PATH
18444         hardcode_runpath_var=yes
18445         ld_shlibs_GCJ=yes
18446       fi
18447       ;;
18448
18449     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18450       no_undefined_flag_GCJ='${wl}-z,text'
18451       archive_cmds_need_lc_GCJ=no
18452       hardcode_shlibpath_var_GCJ=no
18453       runpath_var='LD_RUN_PATH'
18454
18455       if test "$GCC" = yes; then
18456         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18457         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18458       else
18459         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18460         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18461       fi
18462       ;;
18463
18464     sysv5* | sco3.2v5* | sco5v6*)
18465       # Note: We can NOT use -z defs as we might desire, because we do not
18466       # link with -lc, and that would cause any symbols used from libc to
18467       # always be unresolved, which means just about no library would
18468       # ever link correctly.  If we're not using GNU ld we use -z text
18469       # though, which does catch some bad symbols but isn't as heavy-handed
18470       # as -z defs.
18471       no_undefined_flag_GCJ='${wl}-z,text'
18472       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18473       archive_cmds_need_lc_GCJ=no
18474       hardcode_shlibpath_var_GCJ=no
18475       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18476       hardcode_libdir_separator_GCJ=':'
18477       link_all_deplibs_GCJ=yes
18478       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18479       runpath_var='LD_RUN_PATH'
18480
18481       if test "$GCC" = yes; then
18482         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18483         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18484       else
18485         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18486         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18487       fi
18488       ;;
18489
18490     uts4*)
18491       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18492       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18493       hardcode_shlibpath_var_GCJ=no
18494       ;;
18495
18496     *)
18497       ld_shlibs_GCJ=no
18498       ;;
18499     esac
18500   fi
18501
18502 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18503 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18504 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18505
18506 #
18507 # Do we need to explicitly link libc?
18508 #
18509 case "x$archive_cmds_need_lc_GCJ" in
18510 x|xyes)
18511   # Assume -lc should be added
18512   archive_cmds_need_lc_GCJ=yes
18513
18514   if test "$enable_shared" = yes && test "$GCC" = yes; then
18515     case $archive_cmds_GCJ in
18516     *'~'*)
18517       # FIXME: we may have to deal with multi-command sequences.
18518       ;;
18519     '$CC '*)
18520       # Test whether the compiler implicitly links with -lc since on some
18521       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18522       # to ld, don't add -lc before -lgcc.
18523       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18524 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18525       $rm conftest*
18526       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18527
18528       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18529   (eval $ac_compile) 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); } 2>conftest.err; then
18533         soname=conftest
18534         lib=conftest
18535         libobjs=conftest.$ac_objext
18536         deplibs=
18537         wl=$lt_prog_compiler_wl_GCJ
18538         pic_flag=$lt_prog_compiler_pic_GCJ
18539         compiler_flags=-v
18540         linker_flags=-v
18541         verstring=
18542         output_objdir=.
18543         libname=conftest
18544         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18545         allow_undefined_flag_GCJ=
18546         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18547   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18548   ac_status=$?
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); }
18551         then
18552           archive_cmds_need_lc_GCJ=no
18553         else
18554           archive_cmds_need_lc_GCJ=yes
18555         fi
18556         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18557       else
18558         cat conftest.err 1>&5
18559       fi
18560       $rm conftest*
18561       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18562 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18563       ;;
18564     esac
18565   fi
18566   ;;
18567 esac
18568
18569 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18570 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18571 library_names_spec=
18572 libname_spec='lib$name'
18573 soname_spec=
18574 shrext_cmds=".so"
18575 postinstall_cmds=
18576 postuninstall_cmds=
18577 finish_cmds=
18578 finish_eval=
18579 shlibpath_var=
18580 shlibpath_overrides_runpath=unknown
18581 version_type=none
18582 dynamic_linker="$host_os ld.so"
18583 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18584 if test "$GCC" = yes; then
18585   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18586   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18587     # if the path contains ";" then we assume it to be the separator
18588     # otherwise default to the standard path separator (i.e. ":") - it is
18589     # assumed that no part of a normal pathname contains ";" but that should
18590     # okay in the real world where ";" in dirpaths is itself problematic.
18591     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18592   else
18593     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18594   fi
18595 else
18596   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18597 fi
18598 need_lib_prefix=unknown
18599 hardcode_into_libs=no
18600
18601 # when you set need_version to no, make sure it does not cause -set_version
18602 # flags to be left without arguments
18603 need_version=unknown
18604
18605 case $host_os in
18606 aix3*)
18607   version_type=linux
18608   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18609   shlibpath_var=LIBPATH
18610
18611   # AIX 3 has no versioning support, so we append a major version to the name.
18612   soname_spec='${libname}${release}${shared_ext}$major'
18613   ;;
18614
18615 aix4* | aix5*)
18616   version_type=linux
18617   need_lib_prefix=no
18618   need_version=no
18619   hardcode_into_libs=yes
18620   if test "$host_cpu" = ia64; then
18621     # AIX 5 supports IA64
18622     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18623     shlibpath_var=LD_LIBRARY_PATH
18624   else
18625     # With GCC up to 2.95.x, collect2 would create an import file
18626     # for dependence libraries.  The import file would start with
18627     # the line `#! .'.  This would cause the generated library to
18628     # depend on `.', always an invalid library.  This was fixed in
18629     # development snapshots of GCC prior to 3.0.
18630     case $host_os in
18631       aix4 | aix4.[01] | aix4.[01].*)
18632       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18633            echo ' yes '
18634            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18635         :
18636       else
18637         can_build_shared=no
18638       fi
18639       ;;
18640     esac
18641     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18642     # soname into executable. Probably we can add versioning support to
18643     # collect2, so additional links can be useful in future.
18644     if test "$aix_use_runtimelinking" = yes; then
18645       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18646       # instead of lib<name>.a to let people know that these are not
18647       # typical AIX shared libraries.
18648       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18649     else
18650       # We preserve .a as extension for shared libraries through AIX4.2
18651       # and later when we are not doing run time linking.
18652       library_names_spec='${libname}${release}.a $libname.a'
18653       soname_spec='${libname}${release}${shared_ext}$major'
18654     fi
18655     shlibpath_var=LIBPATH
18656   fi
18657   ;;
18658
18659 amigaos*)
18660   library_names_spec='$libname.ixlibrary $libname.a'
18661   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18662   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'
18663   ;;
18664
18665 beos*)
18666   library_names_spec='${libname}${shared_ext}'
18667   dynamic_linker="$host_os ld.so"
18668   shlibpath_var=LIBRARY_PATH
18669   ;;
18670
18671 bsdi[45]*)
18672   version_type=linux
18673   need_version=no
18674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18675   soname_spec='${libname}${release}${shared_ext}$major'
18676   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18677   shlibpath_var=LD_LIBRARY_PATH
18678   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18679   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18680   # the default ld.so.conf also contains /usr/contrib/lib and
18681   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18682   # libtool to hard-code these into programs
18683   ;;
18684
18685 cygwin* | mingw* | pw32*)
18686   version_type=windows
18687   shrext_cmds=".dll"
18688   need_version=no
18689   need_lib_prefix=no
18690
18691   case $GCC,$host_os in
18692   yes,cygwin* | yes,mingw* | yes,pw32*)
18693     library_names_spec='$libname.dll.a'
18694     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18695     postinstall_cmds='base_file=`basename \${file}`~
18696       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18697       dldir=$destdir/`dirname \$dlpath`~
18698       test -d \$dldir || mkdir -p \$dldir~
18699       $install_prog $dir/$dlname \$dldir/$dlname~
18700       chmod a+x \$dldir/$dlname'
18701     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18702       dlpath=$dir/\$dldll~
18703        $rm \$dlpath'
18704     shlibpath_overrides_runpath=yes
18705
18706     case $host_os in
18707     cygwin*)
18708       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18709       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18710       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18711       ;;
18712     mingw*)
18713       # MinGW DLLs use traditional 'lib' prefix
18714       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18715       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18716       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18717         # It is most probably a Windows format PATH printed by
18718         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18719         # path with ; separators, and with drive letters. We can handle the
18720         # drive letters (cygwin fileutils understands them), so leave them,
18721         # especially as we might pass files found there to a mingw objdump,
18722         # which wouldn't understand a cygwinified path. Ahh.
18723         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18724       else
18725         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18726       fi
18727       ;;
18728     pw32*)
18729       # pw32 DLLs use 'pw' prefix rather than 'lib'
18730       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18731       ;;
18732     esac
18733     ;;
18734
18735   *)
18736     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18737     ;;
18738   esac
18739   dynamic_linker='Win32 ld.exe'
18740   # FIXME: first we should search . and the directory the executable is in
18741   shlibpath_var=PATH
18742   ;;
18743
18744 darwin* | rhapsody*)
18745   dynamic_linker="$host_os dyld"
18746   version_type=darwin
18747   need_lib_prefix=no
18748   need_version=no
18749   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18750   soname_spec='${libname}${release}${major}$shared_ext'
18751   shlibpath_overrides_runpath=yes
18752   shlibpath_var=DYLD_LIBRARY_PATH
18753   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18754   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18755   if test "$GCC" = yes; then
18756     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"`
18757   else
18758     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18759   fi
18760   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18761   ;;
18762
18763 dgux*)
18764   version_type=linux
18765   need_lib_prefix=no
18766   need_version=no
18767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18768   soname_spec='${libname}${release}${shared_ext}$major'
18769   shlibpath_var=LD_LIBRARY_PATH
18770   ;;
18771
18772 freebsd1*)
18773   dynamic_linker=no
18774   ;;
18775
18776 kfreebsd*-gnu)
18777   version_type=linux
18778   need_lib_prefix=no
18779   need_version=no
18780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18781   soname_spec='${libname}${release}${shared_ext}$major'
18782   shlibpath_var=LD_LIBRARY_PATH
18783   shlibpath_overrides_runpath=no
18784   hardcode_into_libs=yes
18785   dynamic_linker='GNU ld.so'
18786   ;;
18787
18788 freebsd* | dragonfly*)
18789   # DragonFly does not have aout.  When/if they implement a new
18790   # versioning mechanism, adjust this.
18791   if test -x /usr/bin/objformat; then
18792     objformat=`/usr/bin/objformat`
18793   else
18794     case $host_os in
18795     freebsd[123]*) objformat=aout ;;
18796     *) objformat=elf ;;
18797     esac
18798   fi
18799   version_type=freebsd-$objformat
18800   case $version_type in
18801     freebsd-elf*)
18802       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18803       need_version=no
18804       need_lib_prefix=no
18805       ;;
18806     freebsd-*)
18807       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18808       need_version=yes
18809       ;;
18810   esac
18811   shlibpath_var=LD_LIBRARY_PATH
18812   case $host_os in
18813   freebsd2*)
18814     shlibpath_overrides_runpath=yes
18815     ;;
18816   freebsd3.[01]* | freebsdelf3.[01]*)
18817     shlibpath_overrides_runpath=yes
18818     hardcode_into_libs=yes
18819     ;;
18820   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18821   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18822     shlibpath_overrides_runpath=no
18823     hardcode_into_libs=yes
18824     ;;
18825   freebsd*) # from 4.6 on
18826     shlibpath_overrides_runpath=yes
18827     hardcode_into_libs=yes
18828     ;;
18829   esac
18830   ;;
18831
18832 gnu*)
18833   version_type=linux
18834   need_lib_prefix=no
18835   need_version=no
18836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18837   soname_spec='${libname}${release}${shared_ext}$major'
18838   shlibpath_var=LD_LIBRARY_PATH
18839   hardcode_into_libs=yes
18840   ;;
18841
18842 hpux9* | hpux10* | hpux11*)
18843   # Give a soname corresponding to the major version so that dld.sl refuses to
18844   # link against other versions.
18845   version_type=sunos
18846   need_lib_prefix=no
18847   need_version=no
18848   case $host_cpu in
18849   ia64*)
18850     shrext_cmds='.so'
18851     hardcode_into_libs=yes
18852     dynamic_linker="$host_os dld.so"
18853     shlibpath_var=LD_LIBRARY_PATH
18854     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18856     soname_spec='${libname}${release}${shared_ext}$major'
18857     if test "X$HPUX_IA64_MODE" = X32; then
18858       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18859     else
18860       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18861     fi
18862     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18863     ;;
18864    hppa*64*)
18865      shrext_cmds='.sl'
18866      hardcode_into_libs=yes
18867      dynamic_linker="$host_os dld.sl"
18868      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18869      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18870      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18871      soname_spec='${libname}${release}${shared_ext}$major'
18872      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18873      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18874      ;;
18875    *)
18876     shrext_cmds='.sl'
18877     dynamic_linker="$host_os dld.sl"
18878     shlibpath_var=SHLIB_PATH
18879     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18881     soname_spec='${libname}${release}${shared_ext}$major'
18882     ;;
18883   esac
18884   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18885   postinstall_cmds='chmod 555 $lib'
18886   ;;
18887
18888 interix3*)
18889   version_type=linux
18890   need_lib_prefix=no
18891   need_version=no
18892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18893   soname_spec='${libname}${release}${shared_ext}$major'
18894   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18895   shlibpath_var=LD_LIBRARY_PATH
18896   shlibpath_overrides_runpath=no
18897   hardcode_into_libs=yes
18898   ;;
18899
18900 irix5* | irix6* | nonstopux*)
18901   case $host_os in
18902     nonstopux*) version_type=nonstopux ;;
18903     *)
18904         if test "$lt_cv_prog_gnu_ld" = yes; then
18905                 version_type=linux
18906         else
18907                 version_type=irix
18908         fi ;;
18909   esac
18910   need_lib_prefix=no
18911   need_version=no
18912   soname_spec='${libname}${release}${shared_ext}$major'
18913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18914   case $host_os in
18915   irix5* | nonstopux*)
18916     libsuff= shlibsuff=
18917     ;;
18918   *)
18919     case $LD in # libtool.m4 will add one of these switches to LD
18920     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18921       libsuff= shlibsuff= libmagic=32-bit;;
18922     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18923       libsuff=32 shlibsuff=N32 libmagic=N32;;
18924     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18925       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18926     *) libsuff= shlibsuff= libmagic=never-match;;
18927     esac
18928     ;;
18929   esac
18930   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18931   shlibpath_overrides_runpath=no
18932   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18933   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18934   hardcode_into_libs=yes
18935   ;;
18936
18937 # No shared lib support for Linux oldld, aout, or coff.
18938 linux*oldld* | linux*aout* | linux*coff*)
18939   dynamic_linker=no
18940   ;;
18941
18942 # This must be Linux ELF.
18943 linux*)
18944   version_type=linux
18945   need_lib_prefix=no
18946   need_version=no
18947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948   soname_spec='${libname}${release}${shared_ext}$major'
18949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18950   shlibpath_var=LD_LIBRARY_PATH
18951   shlibpath_overrides_runpath=no
18952   # This implies no fast_install, which is unacceptable.
18953   # Some rework will be needed to allow for fast_install
18954   # before this can be enabled.
18955   hardcode_into_libs=yes
18956
18957   # Append ld.so.conf contents to the search path
18958   if test -f /etc/ld.so.conf; then
18959     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' ' '`
18960     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18961   fi
18962
18963   # We used to test for /lib/ld.so.1 and disable shared libraries on
18964   # powerpc, because MkLinux only supported shared libraries with the
18965   # GNU dynamic linker.  Since this was broken with cross compilers,
18966   # most powerpc-linux boxes support dynamic linking these days and
18967   # people can always --disable-shared, the test was removed, and we
18968   # assume the GNU/Linux dynamic linker is in use.
18969   dynamic_linker='GNU/Linux ld.so'
18970   ;;
18971
18972 knetbsd*-gnu)
18973   version_type=linux
18974   need_lib_prefix=no
18975   need_version=no
18976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18977   soname_spec='${libname}${release}${shared_ext}$major'
18978   shlibpath_var=LD_LIBRARY_PATH
18979   shlibpath_overrides_runpath=no
18980   hardcode_into_libs=yes
18981   dynamic_linker='GNU ld.so'
18982   ;;
18983
18984 netbsd*)
18985   version_type=sunos
18986   need_lib_prefix=no
18987   need_version=no
18988   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18989     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18990     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18991     dynamic_linker='NetBSD (a.out) ld.so'
18992   else
18993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18994     soname_spec='${libname}${release}${shared_ext}$major'
18995     dynamic_linker='NetBSD ld.elf_so'
18996   fi
18997   shlibpath_var=LD_LIBRARY_PATH
18998   shlibpath_overrides_runpath=yes
18999   hardcode_into_libs=yes
19000   ;;
19001
19002 newsos6)
19003   version_type=linux
19004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19005   shlibpath_var=LD_LIBRARY_PATH
19006   shlibpath_overrides_runpath=yes
19007   ;;
19008
19009 nto-qnx*)
19010   version_type=linux
19011   need_lib_prefix=no
19012   need_version=no
19013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19014   soname_spec='${libname}${release}${shared_ext}$major'
19015   shlibpath_var=LD_LIBRARY_PATH
19016   shlibpath_overrides_runpath=yes
19017   ;;
19018
19019 openbsd*)
19020   version_type=sunos
19021   sys_lib_dlsearch_path_spec="/usr/lib"
19022   need_lib_prefix=no
19023   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19024   case $host_os in
19025     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19026     *)                         need_version=no  ;;
19027   esac
19028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19030   shlibpath_var=LD_LIBRARY_PATH
19031   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19032     case $host_os in
19033       openbsd2.[89] | openbsd2.[89].*)
19034         shlibpath_overrides_runpath=no
19035         ;;
19036       *)
19037         shlibpath_overrides_runpath=yes
19038         ;;
19039       esac
19040   else
19041     shlibpath_overrides_runpath=yes
19042   fi
19043   ;;
19044
19045 os2*)
19046   libname_spec='$name'
19047   shrext_cmds=".dll"
19048   need_lib_prefix=no
19049   library_names_spec='$libname${shared_ext} $libname.a'
19050   dynamic_linker='OS/2 ld.exe'
19051   shlibpath_var=LIBPATH
19052   ;;
19053
19054 osf3* | osf4* | osf5*)
19055   version_type=osf
19056   need_lib_prefix=no
19057   need_version=no
19058   soname_spec='${libname}${release}${shared_ext}$major'
19059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19060   shlibpath_var=LD_LIBRARY_PATH
19061   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19062   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19063   ;;
19064
19065 solaris*)
19066   version_type=linux
19067   need_lib_prefix=no
19068   need_version=no
19069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19070   soname_spec='${libname}${release}${shared_ext}$major'
19071   shlibpath_var=LD_LIBRARY_PATH
19072   shlibpath_overrides_runpath=yes
19073   hardcode_into_libs=yes
19074   # ldd complains unless libraries are executable
19075   postinstall_cmds='chmod +x $lib'
19076   ;;
19077
19078 sunos4*)
19079   version_type=sunos
19080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19081   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19082   shlibpath_var=LD_LIBRARY_PATH
19083   shlibpath_overrides_runpath=yes
19084   if test "$with_gnu_ld" = yes; then
19085     need_lib_prefix=no
19086   fi
19087   need_version=yes
19088   ;;
19089
19090 sysv4 | sysv4.3*)
19091   version_type=linux
19092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19093   soname_spec='${libname}${release}${shared_ext}$major'
19094   shlibpath_var=LD_LIBRARY_PATH
19095   case $host_vendor in
19096     sni)
19097       shlibpath_overrides_runpath=no
19098       need_lib_prefix=no
19099       export_dynamic_flag_spec='${wl}-Blargedynsym'
19100       runpath_var=LD_RUN_PATH
19101       ;;
19102     siemens)
19103       need_lib_prefix=no
19104       ;;
19105     motorola)
19106       need_lib_prefix=no
19107       need_version=no
19108       shlibpath_overrides_runpath=no
19109       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19110       ;;
19111   esac
19112   ;;
19113
19114 sysv4*MP*)
19115   if test -d /usr/nec ;then
19116     version_type=linux
19117     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19118     soname_spec='$libname${shared_ext}.$major'
19119     shlibpath_var=LD_LIBRARY_PATH
19120   fi
19121   ;;
19122
19123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19124   version_type=freebsd-elf
19125   need_lib_prefix=no
19126   need_version=no
19127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19128   soname_spec='${libname}${release}${shared_ext}$major'
19129   shlibpath_var=LD_LIBRARY_PATH
19130   hardcode_into_libs=yes
19131   if test "$with_gnu_ld" = yes; then
19132     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19133     shlibpath_overrides_runpath=no
19134   else
19135     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19136     shlibpath_overrides_runpath=yes
19137     case $host_os in
19138       sco3.2v5*)
19139         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19140         ;;
19141     esac
19142   fi
19143   sys_lib_dlsearch_path_spec='/usr/lib'
19144   ;;
19145
19146 uts4*)
19147   version_type=linux
19148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19149   soname_spec='${libname}${release}${shared_ext}$major'
19150   shlibpath_var=LD_LIBRARY_PATH
19151   ;;
19152
19153 *)
19154   dynamic_linker=no
19155   ;;
19156 esac
19157 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19158 echo "${ECHO_T}$dynamic_linker" >&6; }
19159 test "$dynamic_linker" = no && can_build_shared=no
19160
19161 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19162 if test "$GCC" = yes; then
19163   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19164 fi
19165
19166 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19167 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19168 hardcode_action_GCJ=
19169 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19170    test -n "$runpath_var_GCJ" || \
19171    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19172
19173   # We can hardcode non-existant directories.
19174   if test "$hardcode_direct_GCJ" != no &&
19175      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19176      # have to relink, otherwise we might link with an installed library
19177      # when we should be linking with a yet-to-be-installed one
19178      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19179      test "$hardcode_minus_L_GCJ" != no; then
19180     # Linking always hardcodes the temporary library directory.
19181     hardcode_action_GCJ=relink
19182   else
19183     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19184     hardcode_action_GCJ=immediate
19185   fi
19186 else
19187   # We cannot hardcode anything, or else we can only hardcode existing
19188   # directories.
19189   hardcode_action_GCJ=unsupported
19190 fi
19191 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19192 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19193
19194 if test "$hardcode_action_GCJ" = relink; then
19195   # Fast installation is not supported
19196   enable_fast_install=no
19197 elif test "$shlibpath_overrides_runpath" = yes ||
19198      test "$enable_shared" = no; then
19199   # Fast installation is not necessary
19200   enable_fast_install=needless
19201 fi
19202
19203
19204 # The else clause should only fire when bootstrapping the
19205 # libtool distribution, otherwise you forgot to ship ltmain.sh
19206 # with your package, and you will get complaints that there are
19207 # no rules to generate ltmain.sh.
19208 if test -f "$ltmain"; then
19209   # See if we are running on zsh, and set the options which allow our commands through
19210   # without removal of \ escapes.
19211   if test -n "${ZSH_VERSION+set}" ; then
19212     setopt NO_GLOB_SUBST
19213   fi
19214   # Now quote all the things that may contain metacharacters while being
19215   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19216   # variables and quote the copies for generation of the libtool script.
19217   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19218     SED SHELL STRIP \
19219     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19220     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19221     deplibs_check_method reload_flag reload_cmds need_locks \
19222     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19223     lt_cv_sys_global_symbol_to_c_name_address \
19224     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19225     old_postinstall_cmds old_postuninstall_cmds \
19226     compiler_GCJ \
19227     CC_GCJ \
19228     LD_GCJ \
19229     lt_prog_compiler_wl_GCJ \
19230     lt_prog_compiler_pic_GCJ \
19231     lt_prog_compiler_static_GCJ \
19232     lt_prog_compiler_no_builtin_flag_GCJ \
19233     export_dynamic_flag_spec_GCJ \
19234     thread_safe_flag_spec_GCJ \
19235     whole_archive_flag_spec_GCJ \
19236     enable_shared_with_static_runtimes_GCJ \
19237     old_archive_cmds_GCJ \
19238     old_archive_from_new_cmds_GCJ \
19239     predep_objects_GCJ \
19240     postdep_objects_GCJ \
19241     predeps_GCJ \
19242     postdeps_GCJ \
19243     compiler_lib_search_path_GCJ \
19244     archive_cmds_GCJ \
19245     archive_expsym_cmds_GCJ \
19246     postinstall_cmds_GCJ \
19247     postuninstall_cmds_GCJ \
19248     old_archive_from_expsyms_cmds_GCJ \
19249     allow_undefined_flag_GCJ \
19250     no_undefined_flag_GCJ \
19251     export_symbols_cmds_GCJ \
19252     hardcode_libdir_flag_spec_GCJ \
19253     hardcode_libdir_flag_spec_ld_GCJ \
19254     hardcode_libdir_separator_GCJ \
19255     hardcode_automatic_GCJ \
19256     module_cmds_GCJ \
19257     module_expsym_cmds_GCJ \
19258     lt_cv_prog_compiler_c_o_GCJ \
19259     exclude_expsyms_GCJ \
19260     include_expsyms_GCJ; do
19261
19262     case $var in
19263     old_archive_cmds_GCJ | \
19264     old_archive_from_new_cmds_GCJ | \
19265     archive_cmds_GCJ | \
19266     archive_expsym_cmds_GCJ | \
19267     module_cmds_GCJ | \
19268     module_expsym_cmds_GCJ | \
19269     old_archive_from_expsyms_cmds_GCJ | \
19270     export_symbols_cmds_GCJ | \
19271     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19272     postinstall_cmds | postuninstall_cmds | \
19273     old_postinstall_cmds | old_postuninstall_cmds | \
19274     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19275       # Double-quote double-evaled strings.
19276       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19277       ;;
19278     *)
19279       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19280       ;;
19281     esac
19282   done
19283
19284   case $lt_echo in
19285   *'\$0 --fallback-echo"')
19286     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19287     ;;
19288   esac
19289
19290 cfgfile="$ofile"
19291
19292   cat <<__EOF__ >> "$cfgfile"
19293 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19294
19295 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19296
19297 # Shell to use when invoking shell scripts.
19298 SHELL=$lt_SHELL
19299
19300 # Whether or not to build shared libraries.
19301 build_libtool_libs=$enable_shared
19302
19303 # Whether or not to build static libraries.
19304 build_old_libs=$enable_static
19305
19306 # Whether or not to add -lc for building shared libraries.
19307 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19308
19309 # Whether or not to disallow shared libs when runtime libs are static
19310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19311
19312 # Whether or not to optimize for fast installation.
19313 fast_install=$enable_fast_install
19314
19315 # The host system.
19316 host_alias=$host_alias
19317 host=$host
19318 host_os=$host_os
19319
19320 # The build system.
19321 build_alias=$build_alias
19322 build=$build
19323 build_os=$build_os
19324
19325 # An echo program that does not interpret backslashes.
19326 echo=$lt_echo
19327
19328 # The archiver.
19329 AR=$lt_AR
19330 AR_FLAGS=$lt_AR_FLAGS
19331
19332 # A C compiler.
19333 LTCC=$lt_LTCC
19334
19335 # LTCC compiler flags.
19336 LTCFLAGS=$lt_LTCFLAGS
19337
19338 # A language-specific compiler.
19339 CC=$lt_compiler_GCJ
19340
19341 # Is the compiler the GNU C compiler?
19342 with_gcc=$GCC_GCJ
19343
19344 # An ERE matcher.
19345 EGREP=$lt_EGREP
19346
19347 # The linker used to build libraries.
19348 LD=$lt_LD_GCJ
19349
19350 # Whether we need hard or soft links.
19351 LN_S=$lt_LN_S
19352
19353 # A BSD-compatible nm program.
19354 NM=$lt_NM
19355
19356 # A symbol stripping program
19357 STRIP=$lt_STRIP
19358
19359 # Used to examine libraries when file_magic_cmd begins "file"
19360 MAGIC_CMD=$MAGIC_CMD
19361
19362 # Used on cygwin: DLL creation program.
19363 DLLTOOL="$DLLTOOL"
19364
19365 # Used on cygwin: object dumper.
19366 OBJDUMP="$OBJDUMP"
19367
19368 # Used on cygwin: assembler.
19369 AS="$AS"
19370
19371 # The name of the directory that contains temporary libtool files.
19372 objdir=$objdir
19373
19374 # How to create reloadable object files.
19375 reload_flag=$lt_reload_flag
19376 reload_cmds=$lt_reload_cmds
19377
19378 # How to pass a linker flag through the compiler.
19379 wl=$lt_lt_prog_compiler_wl_GCJ
19380
19381 # Object file suffix (normally "o").
19382 objext="$ac_objext"
19383
19384 # Old archive suffix (normally "a").
19385 libext="$libext"
19386
19387 # Shared library suffix (normally ".so").
19388 shrext_cmds='$shrext_cmds'
19389
19390 # Executable file suffix (normally "").
19391 exeext="$exeext"
19392
19393 # Additional compiler flags for building library objects.
19394 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19395 pic_mode=$pic_mode
19396
19397 # What is the maximum length of a command?
19398 max_cmd_len=$lt_cv_sys_max_cmd_len
19399
19400 # Does compiler simultaneously support -c and -o options?
19401 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19402
19403 # Must we lock files when doing compilation?
19404 need_locks=$lt_need_locks
19405
19406 # Do we need the lib prefix for modules?
19407 need_lib_prefix=$need_lib_prefix
19408
19409 # Do we need a version for libraries?
19410 need_version=$need_version
19411
19412 # Whether dlopen is supported.
19413 dlopen_support=$enable_dlopen
19414
19415 # Whether dlopen of programs is supported.
19416 dlopen_self=$enable_dlopen_self
19417
19418 # Whether dlopen of statically linked programs is supported.
19419 dlopen_self_static=$enable_dlopen_self_static
19420
19421 # Compiler flag to prevent dynamic linking.
19422 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19423
19424 # Compiler flag to turn off builtin functions.
19425 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19426
19427 # Compiler flag to allow reflexive dlopens.
19428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19429
19430 # Compiler flag to generate shared objects directly from archives.
19431 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19432
19433 # Compiler flag to generate thread-safe objects.
19434 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19435
19436 # Library versioning type.
19437 version_type=$version_type
19438
19439 # Format of library name prefix.
19440 libname_spec=$lt_libname_spec
19441
19442 # List of archive names.  First name is the real one, the rest are links.
19443 # The last name is the one that the linker finds with -lNAME.
19444 library_names_spec=$lt_library_names_spec
19445
19446 # The coded name of the library, if different from the real name.
19447 soname_spec=$lt_soname_spec
19448
19449 # Commands used to build and install an old-style archive.
19450 RANLIB=$lt_RANLIB
19451 old_archive_cmds=$lt_old_archive_cmds_GCJ
19452 old_postinstall_cmds=$lt_old_postinstall_cmds
19453 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19454
19455 # Create an old-style archive from a shared archive.
19456 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19457
19458 # Create a temporary old-style archive to link instead of a shared archive.
19459 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19460
19461 # Commands used to build and install a shared archive.
19462 archive_cmds=$lt_archive_cmds_GCJ
19463 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19464 postinstall_cmds=$lt_postinstall_cmds
19465 postuninstall_cmds=$lt_postuninstall_cmds
19466
19467 # Commands used to build a loadable module (assumed same as above if empty)
19468 module_cmds=$lt_module_cmds_GCJ
19469 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19470
19471 # Commands to strip libraries.
19472 old_striplib=$lt_old_striplib
19473 striplib=$lt_striplib
19474
19475 # Dependencies to place before the objects being linked to create a
19476 # shared library.
19477 predep_objects=$lt_predep_objects_GCJ
19478
19479 # Dependencies to place after the objects being linked to create a
19480 # shared library.
19481 postdep_objects=$lt_postdep_objects_GCJ
19482
19483 # Dependencies to place before the objects being linked to create a
19484 # shared library.
19485 predeps=$lt_predeps_GCJ
19486
19487 # Dependencies to place after the objects being linked to create a
19488 # shared library.
19489 postdeps=$lt_postdeps_GCJ
19490
19491 # The library search path used internally by the compiler when linking
19492 # a shared library.
19493 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19494
19495 # Method to check whether dependent libraries are shared objects.
19496 deplibs_check_method=$lt_deplibs_check_method
19497
19498 # Command to use when deplibs_check_method == file_magic.
19499 file_magic_cmd=$lt_file_magic_cmd
19500
19501 # Flag that allows shared libraries with undefined symbols to be built.
19502 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19503
19504 # Flag that forces no undefined symbols.
19505 no_undefined_flag=$lt_no_undefined_flag_GCJ
19506
19507 # Commands used to finish a libtool library installation in a directory.
19508 finish_cmds=$lt_finish_cmds
19509
19510 # Same as above, but a single script fragment to be evaled but not shown.
19511 finish_eval=$lt_finish_eval
19512
19513 # Take the output of nm and produce a listing of raw symbols and C names.
19514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19515
19516 # Transform the output of nm in a proper C declaration
19517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19518
19519 # Transform the output of nm in a C name address pair
19520 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19521
19522 # This is the shared library runtime path variable.
19523 runpath_var=$runpath_var
19524
19525 # This is the shared library path variable.
19526 shlibpath_var=$shlibpath_var
19527
19528 # Is shlibpath searched before the hard-coded library search path?
19529 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19530
19531 # How to hardcode a shared library path into an executable.
19532 hardcode_action=$hardcode_action_GCJ
19533
19534 # Whether we should hardcode library paths into libraries.
19535 hardcode_into_libs=$hardcode_into_libs
19536
19537 # Flag to hardcode \$libdir into a binary during linking.
19538 # This must work even if \$libdir does not exist.
19539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19540
19541 # If ld is used when linking, flag to hardcode \$libdir into
19542 # a binary during linking. This must work even if \$libdir does
19543 # not exist.
19544 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19545
19546 # Whether we need a single -rpath flag with a separated argument.
19547 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19548
19549 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19550 # resulting binary.
19551 hardcode_direct=$hardcode_direct_GCJ
19552
19553 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19554 # resulting binary.
19555 hardcode_minus_L=$hardcode_minus_L_GCJ
19556
19557 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19558 # the resulting binary.
19559 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19560
19561 # Set to yes if building a shared library automatically hardcodes DIR into the library
19562 # and all subsequent libraries and executables linked against it.
19563 hardcode_automatic=$hardcode_automatic_GCJ
19564
19565 # Variables whose values should be saved in libtool wrapper scripts and
19566 # restored at relink time.
19567 variables_saved_for_relink="$variables_saved_for_relink"
19568
19569 # Whether libtool must link a program against all its dependency libraries.
19570 link_all_deplibs=$link_all_deplibs_GCJ
19571
19572 # Compile-time system search path for libraries
19573 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19574
19575 # Run-time system search path for libraries
19576 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19577
19578 # Fix the shell variable \$srcfile for the compiler.
19579 fix_srcfile_path="$fix_srcfile_path_GCJ"
19580
19581 # Set to yes if exported symbols are required.
19582 always_export_symbols=$always_export_symbols_GCJ
19583
19584 # The commands to list exported symbols.
19585 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19586
19587 # The commands to extract the exported symbol list from a shared archive.
19588 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19589
19590 # Symbols that should not be listed in the preloaded symbols.
19591 exclude_expsyms=$lt_exclude_expsyms_GCJ
19592
19593 # Symbols that must always be exported.
19594 include_expsyms=$lt_include_expsyms_GCJ
19595
19596 # ### END LIBTOOL TAG CONFIG: $tagname
19597
19598 __EOF__
19599
19600
19601 else
19602   # If there is no Makefile yet, we rely on a make rule to execute
19603   # `config.status --recheck' to rerun these tests and create the
19604   # libtool script then.
19605   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19606   if test -f "$ltmain_in"; then
19607     test -f Makefile && make "$ltmain"
19608   fi
19609 fi
19610
19611
19612 ac_ext=c
19613 ac_cpp='$CPP $CPPFLAGS'
19614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19617
19618 CC="$lt_save_CC"
19619
19620         else
19621           tagname=""
19622         fi
19623         ;;
19624
19625       RC)
19626
19627
19628 # Source file extension for RC test sources.
19629 ac_ext=rc
19630
19631 # Object file extension for compiled RC test sources.
19632 objext=o
19633 objext_RC=$objext
19634
19635 # Code to be used in simple compile tests
19636 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19637
19638 # Code to be used in simple link tests
19639 lt_simple_link_test_code="$lt_simple_compile_test_code"
19640
19641 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19642
19643 # If no C compiler was specified, use CC.
19644 LTCC=${LTCC-"$CC"}
19645
19646 # If no C compiler flags were specified, use CFLAGS.
19647 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19648
19649 # Allow CC to be a program name with arguments.
19650 compiler=$CC
19651
19652
19653 # save warnings/boilerplate of simple test code
19654 ac_outfile=conftest.$ac_objext
19655 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19656 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19657 _lt_compiler_boilerplate=`cat conftest.err`
19658 $rm conftest*
19659
19660 ac_outfile=conftest.$ac_objext
19661 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19662 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19663 _lt_linker_boilerplate=`cat conftest.err`
19664 $rm conftest*
19665
19666
19667 # Allow CC to be a program name with arguments.
19668 lt_save_CC="$CC"
19669 CC=${RC-"windres"}
19670 compiler=$CC
19671 compiler_RC=$CC
19672 for cc_temp in $compiler""; do
19673   case $cc_temp in
19674     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19675     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19676     \-*) ;;
19677     *) break;;
19678   esac
19679 done
19680 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19681
19682 lt_cv_prog_compiler_c_o_RC=yes
19683
19684 # The else clause should only fire when bootstrapping the
19685 # libtool distribution, otherwise you forgot to ship ltmain.sh
19686 # with your package, and you will get complaints that there are
19687 # no rules to generate ltmain.sh.
19688 if test -f "$ltmain"; then
19689   # See if we are running on zsh, and set the options which allow our commands through
19690   # without removal of \ escapes.
19691   if test -n "${ZSH_VERSION+set}" ; then
19692     setopt NO_GLOB_SUBST
19693   fi
19694   # Now quote all the things that may contain metacharacters while being
19695   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19696   # variables and quote the copies for generation of the libtool script.
19697   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19698     SED SHELL STRIP \
19699     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19700     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19701     deplibs_check_method reload_flag reload_cmds need_locks \
19702     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19703     lt_cv_sys_global_symbol_to_c_name_address \
19704     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19705     old_postinstall_cmds old_postuninstall_cmds \
19706     compiler_RC \
19707     CC_RC \
19708     LD_RC \
19709     lt_prog_compiler_wl_RC \
19710     lt_prog_compiler_pic_RC \
19711     lt_prog_compiler_static_RC \
19712     lt_prog_compiler_no_builtin_flag_RC \
19713     export_dynamic_flag_spec_RC \
19714     thread_safe_flag_spec_RC \
19715     whole_archive_flag_spec_RC \
19716     enable_shared_with_static_runtimes_RC \
19717     old_archive_cmds_RC \
19718     old_archive_from_new_cmds_RC \
19719     predep_objects_RC \
19720     postdep_objects_RC \
19721     predeps_RC \
19722     postdeps_RC \
19723     compiler_lib_search_path_RC \
19724     archive_cmds_RC \
19725     archive_expsym_cmds_RC \
19726     postinstall_cmds_RC \
19727     postuninstall_cmds_RC \
19728     old_archive_from_expsyms_cmds_RC \
19729     allow_undefined_flag_RC \
19730     no_undefined_flag_RC \
19731     export_symbols_cmds_RC \
19732     hardcode_libdir_flag_spec_RC \
19733     hardcode_libdir_flag_spec_ld_RC \
19734     hardcode_libdir_separator_RC \
19735     hardcode_automatic_RC \
19736     module_cmds_RC \
19737     module_expsym_cmds_RC \
19738     lt_cv_prog_compiler_c_o_RC \
19739     exclude_expsyms_RC \
19740     include_expsyms_RC; do
19741
19742     case $var in
19743     old_archive_cmds_RC | \
19744     old_archive_from_new_cmds_RC | \
19745     archive_cmds_RC | \
19746     archive_expsym_cmds_RC | \
19747     module_cmds_RC | \
19748     module_expsym_cmds_RC | \
19749     old_archive_from_expsyms_cmds_RC | \
19750     export_symbols_cmds_RC | \
19751     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19752     postinstall_cmds | postuninstall_cmds | \
19753     old_postinstall_cmds | old_postuninstall_cmds | \
19754     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19755       # Double-quote double-evaled strings.
19756       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19757       ;;
19758     *)
19759       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19760       ;;
19761     esac
19762   done
19763
19764   case $lt_echo in
19765   *'\$0 --fallback-echo"')
19766     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19767     ;;
19768   esac
19769
19770 cfgfile="$ofile"
19771
19772   cat <<__EOF__ >> "$cfgfile"
19773 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19774
19775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19776
19777 # Shell to use when invoking shell scripts.
19778 SHELL=$lt_SHELL
19779
19780 # Whether or not to build shared libraries.
19781 build_libtool_libs=$enable_shared
19782
19783 # Whether or not to build static libraries.
19784 build_old_libs=$enable_static
19785
19786 # Whether or not to add -lc for building shared libraries.
19787 build_libtool_need_lc=$archive_cmds_need_lc_RC
19788
19789 # Whether or not to disallow shared libs when runtime libs are static
19790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19791
19792 # Whether or not to optimize for fast installation.
19793 fast_install=$enable_fast_install
19794
19795 # The host system.
19796 host_alias=$host_alias
19797 host=$host
19798 host_os=$host_os
19799
19800 # The build system.
19801 build_alias=$build_alias
19802 build=$build
19803 build_os=$build_os
19804
19805 # An echo program that does not interpret backslashes.
19806 echo=$lt_echo
19807
19808 # The archiver.
19809 AR=$lt_AR
19810 AR_FLAGS=$lt_AR_FLAGS
19811
19812 # A C compiler.
19813 LTCC=$lt_LTCC
19814
19815 # LTCC compiler flags.
19816 LTCFLAGS=$lt_LTCFLAGS
19817
19818 # A language-specific compiler.
19819 CC=$lt_compiler_RC
19820
19821 # Is the compiler the GNU C compiler?
19822 with_gcc=$GCC_RC
19823
19824 # An ERE matcher.
19825 EGREP=$lt_EGREP
19826
19827 # The linker used to build libraries.
19828 LD=$lt_LD_RC
19829
19830 # Whether we need hard or soft links.
19831 LN_S=$lt_LN_S
19832
19833 # A BSD-compatible nm program.
19834 NM=$lt_NM
19835
19836 # A symbol stripping program
19837 STRIP=$lt_STRIP
19838
19839 # Used to examine libraries when file_magic_cmd begins "file"
19840 MAGIC_CMD=$MAGIC_CMD
19841
19842 # Used on cygwin: DLL creation program.
19843 DLLTOOL="$DLLTOOL"
19844
19845 # Used on cygwin: object dumper.
19846 OBJDUMP="$OBJDUMP"
19847
19848 # Used on cygwin: assembler.
19849 AS="$AS"
19850
19851 # The name of the directory that contains temporary libtool files.
19852 objdir=$objdir
19853
19854 # How to create reloadable object files.
19855 reload_flag=$lt_reload_flag
19856 reload_cmds=$lt_reload_cmds
19857
19858 # How to pass a linker flag through the compiler.
19859 wl=$lt_lt_prog_compiler_wl_RC
19860
19861 # Object file suffix (normally "o").
19862 objext="$ac_objext"
19863
19864 # Old archive suffix (normally "a").
19865 libext="$libext"
19866
19867 # Shared library suffix (normally ".so").
19868 shrext_cmds='$shrext_cmds'
19869
19870 # Executable file suffix (normally "").
19871 exeext="$exeext"
19872
19873 # Additional compiler flags for building library objects.
19874 pic_flag=$lt_lt_prog_compiler_pic_RC
19875 pic_mode=$pic_mode
19876
19877 # What is the maximum length of a command?
19878 max_cmd_len=$lt_cv_sys_max_cmd_len
19879
19880 # Does compiler simultaneously support -c and -o options?
19881 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19882
19883 # Must we lock files when doing compilation?
19884 need_locks=$lt_need_locks
19885
19886 # Do we need the lib prefix for modules?
19887 need_lib_prefix=$need_lib_prefix
19888
19889 # Do we need a version for libraries?
19890 need_version=$need_version
19891
19892 # Whether dlopen is supported.
19893 dlopen_support=$enable_dlopen
19894
19895 # Whether dlopen of programs is supported.
19896 dlopen_self=$enable_dlopen_self
19897
19898 # Whether dlopen of statically linked programs is supported.
19899 dlopen_self_static=$enable_dlopen_self_static
19900
19901 # Compiler flag to prevent dynamic linking.
19902 link_static_flag=$lt_lt_prog_compiler_static_RC
19903
19904 # Compiler flag to turn off builtin functions.
19905 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19906
19907 # Compiler flag to allow reflexive dlopens.
19908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19909
19910 # Compiler flag to generate shared objects directly from archives.
19911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19912
19913 # Compiler flag to generate thread-safe objects.
19914 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19915
19916 # Library versioning type.
19917 version_type=$version_type
19918
19919 # Format of library name prefix.
19920 libname_spec=$lt_libname_spec
19921
19922 # List of archive names.  First name is the real one, the rest are links.
19923 # The last name is the one that the linker finds with -lNAME.
19924 library_names_spec=$lt_library_names_spec
19925
19926 # The coded name of the library, if different from the real name.
19927 soname_spec=$lt_soname_spec
19928
19929 # Commands used to build and install an old-style archive.
19930 RANLIB=$lt_RANLIB
19931 old_archive_cmds=$lt_old_archive_cmds_RC
19932 old_postinstall_cmds=$lt_old_postinstall_cmds
19933 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19934
19935 # Create an old-style archive from a shared archive.
19936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19937
19938 # Create a temporary old-style archive to link instead of a shared archive.
19939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19940
19941 # Commands used to build and install a shared archive.
19942 archive_cmds=$lt_archive_cmds_RC
19943 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19944 postinstall_cmds=$lt_postinstall_cmds
19945 postuninstall_cmds=$lt_postuninstall_cmds
19946
19947 # Commands used to build a loadable module (assumed same as above if empty)
19948 module_cmds=$lt_module_cmds_RC
19949 module_expsym_cmds=$lt_module_expsym_cmds_RC
19950
19951 # Commands to strip libraries.
19952 old_striplib=$lt_old_striplib
19953 striplib=$lt_striplib
19954
19955 # Dependencies to place before the objects being linked to create a
19956 # shared library.
19957 predep_objects=$lt_predep_objects_RC
19958
19959 # Dependencies to place after the objects being linked to create a
19960 # shared library.
19961 postdep_objects=$lt_postdep_objects_RC
19962
19963 # Dependencies to place before the objects being linked to create a
19964 # shared library.
19965 predeps=$lt_predeps_RC
19966
19967 # Dependencies to place after the objects being linked to create a
19968 # shared library.
19969 postdeps=$lt_postdeps_RC
19970
19971 # The library search path used internally by the compiler when linking
19972 # a shared library.
19973 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19974
19975 # Method to check whether dependent libraries are shared objects.
19976 deplibs_check_method=$lt_deplibs_check_method
19977
19978 # Command to use when deplibs_check_method == file_magic.
19979 file_magic_cmd=$lt_file_magic_cmd
19980
19981 # Flag that allows shared libraries with undefined symbols to be built.
19982 allow_undefined_flag=$lt_allow_undefined_flag_RC
19983
19984 # Flag that forces no undefined symbols.
19985 no_undefined_flag=$lt_no_undefined_flag_RC
19986
19987 # Commands used to finish a libtool library installation in a directory.
19988 finish_cmds=$lt_finish_cmds
19989
19990 # Same as above, but a single script fragment to be evaled but not shown.
19991 finish_eval=$lt_finish_eval
19992
19993 # Take the output of nm and produce a listing of raw symbols and C names.
19994 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19995
19996 # Transform the output of nm in a proper C declaration
19997 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19998
19999 # Transform the output of nm in a C name address pair
20000 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20001
20002 # This is the shared library runtime path variable.
20003 runpath_var=$runpath_var
20004
20005 # This is the shared library path variable.
20006 shlibpath_var=$shlibpath_var
20007
20008 # Is shlibpath searched before the hard-coded library search path?
20009 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20010
20011 # How to hardcode a shared library path into an executable.
20012 hardcode_action=$hardcode_action_RC
20013
20014 # Whether we should hardcode library paths into libraries.
20015 hardcode_into_libs=$hardcode_into_libs
20016
20017 # Flag to hardcode \$libdir into a binary during linking.
20018 # This must work even if \$libdir does not exist.
20019 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20020
20021 # If ld is used when linking, flag to hardcode \$libdir into
20022 # a binary during linking. This must work even if \$libdir does
20023 # not exist.
20024 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20025
20026 # Whether we need a single -rpath flag with a separated argument.
20027 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20028
20029 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20030 # resulting binary.
20031 hardcode_direct=$hardcode_direct_RC
20032
20033 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20034 # resulting binary.
20035 hardcode_minus_L=$hardcode_minus_L_RC
20036
20037 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20038 # the resulting binary.
20039 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20040
20041 # Set to yes if building a shared library automatically hardcodes DIR into the library
20042 # and all subsequent libraries and executables linked against it.
20043 hardcode_automatic=$hardcode_automatic_RC
20044
20045 # Variables whose values should be saved in libtool wrapper scripts and
20046 # restored at relink time.
20047 variables_saved_for_relink="$variables_saved_for_relink"
20048
20049 # Whether libtool must link a program against all its dependency libraries.
20050 link_all_deplibs=$link_all_deplibs_RC
20051
20052 # Compile-time system search path for libraries
20053 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20054
20055 # Run-time system search path for libraries
20056 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20057
20058 # Fix the shell variable \$srcfile for the compiler.
20059 fix_srcfile_path="$fix_srcfile_path_RC"
20060
20061 # Set to yes if exported symbols are required.
20062 always_export_symbols=$always_export_symbols_RC
20063
20064 # The commands to list exported symbols.
20065 export_symbols_cmds=$lt_export_symbols_cmds_RC
20066
20067 # The commands to extract the exported symbol list from a shared archive.
20068 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20069
20070 # Symbols that should not be listed in the preloaded symbols.
20071 exclude_expsyms=$lt_exclude_expsyms_RC
20072
20073 # Symbols that must always be exported.
20074 include_expsyms=$lt_include_expsyms_RC
20075
20076 # ### END LIBTOOL TAG CONFIG: $tagname
20077
20078 __EOF__
20079
20080
20081 else
20082   # If there is no Makefile yet, we rely on a make rule to execute
20083   # `config.status --recheck' to rerun these tests and create the
20084   # libtool script then.
20085   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20086   if test -f "$ltmain_in"; then
20087     test -f Makefile && make "$ltmain"
20088   fi
20089 fi
20090
20091
20092 ac_ext=c
20093 ac_cpp='$CPP $CPPFLAGS'
20094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20097
20098 CC="$lt_save_CC"
20099
20100         ;;
20101
20102       *)
20103         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20104 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20105    { (exit 1); exit 1; }; }
20106         ;;
20107       esac
20108
20109       # Append the new tag name to the list of available tags.
20110       if test -n "$tagname" ; then
20111       available_tags="$available_tags $tagname"
20112     fi
20113     fi
20114   done
20115   IFS="$lt_save_ifs"
20116
20117   # Now substitute the updated list of available tags.
20118   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20119     mv "${ofile}T" "$ofile"
20120     chmod +x "$ofile"
20121   else
20122     rm -f "${ofile}T"
20123     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20124 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20125    { (exit 1); exit 1; }; }
20126   fi
20127 fi
20128
20129
20130
20131 # This can be used to rebuild libtool when needed
20132 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20133
20134 # Always use our own libtool.
20135 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20136
20137 # Prevent multiple expansion
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150 # Check whether --with-system-libtool was given.
20151 if test "${with_system_libtool+set}" = set; then
20152   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
20153 set dummy libtool; ac_word=$2
20154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20156 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20157   echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159   case $LIBTOOL in
20160   [\\/]* | ?:[\\/]*)
20161   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20162   ;;
20163   *)
20164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20165 as_dummy="$PATH:/usr/local/bin"
20166 for as_dir in $as_dummy
20167 do
20168   IFS=$as_save_IFS
20169   test -z "$as_dir" && as_dir=.
20170   for ac_exec_ext in '' $ac_executable_extensions; do
20171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20172     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20174     break 2
20175   fi
20176 done
20177 done
20178 IFS=$as_save_IFS
20179
20180   ;;
20181 esac
20182 fi
20183 LIBTOOL=$ac_cv_path_LIBTOOL
20184 if test -n "$LIBTOOL"; then
20185   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20186 echo "${ECHO_T}$LIBTOOL" >&6; }
20187 else
20188   { echo "$as_me:$LINENO: result: no" >&5
20189 echo "${ECHO_T}no" >&6; }
20190 fi
20191
20192
20193 else
20194
20195   LIBTOOL="`pwd`/libtool"
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210 fi
20211
20212
20213
20214
20215 # Check whether --enable-strict-dependencies was given.
20216 if test "${enable_strict_dependencies+set}" = set; then
20217   enableval=$enable_strict_dependencies;
20218 fi
20219
20220
20221 docdir='${datadir}/doc/freeradius'
20222 { echo "$as_me:$LINENO: checking docdir" >&5
20223 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20224
20225 # Check whether --with-docdir was given.
20226 if test "${with_docdir+set}" = set; then
20227   withval=$with_docdir;  case "$withval" in
20228     no)
20229         docdir=no
20230         ;;
20231     yes)
20232         ;;
20233     [\\/$]* | ?:[\\/]* )
20234         docdir="$withval"
20235         ;;
20236     *)
20237         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20238 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20239    { (exit 1); exit 1; }; }
20240         ;;
20241   esac
20242
20243 fi
20244
20245
20246 { echo "$as_me:$LINENO: result: $docdir" >&5
20247 echo "${ECHO_T}$docdir" >&6; }
20248 if test "x$docdir" = xno; then
20249         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20250 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20251 fi
20252
20253 logdir='${localstatedir}/log/radius'
20254 { echo "$as_me:$LINENO: checking logdir" >&5
20255 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20256
20257 # Check whether --with-logdir was given.
20258 if test "${with_logdir+set}" = set; then
20259   withval=$with_logdir;  case "$withval" in
20260     no)
20261         { { echo "$as_me:$LINENO: error: Need logdir" >&5
20262 echo "$as_me: error: Need logdir" >&2;}
20263    { (exit 1); exit 1; }; }
20264         ;;
20265     yes)
20266         ;;
20267     [\\/$]* | ?:[\\/]* )
20268         logdir="$withval"
20269         ;;
20270     *)
20271         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20272 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20273    { (exit 1); exit 1; }; }
20274         ;;
20275   esac
20276
20277 fi
20278
20279
20280 { echo "$as_me:$LINENO: result: $logdir" >&5
20281 echo "${ECHO_T}$logdir" >&6; }
20282
20283 radacctdir='${logdir}/radacct'
20284 { echo "$as_me:$LINENO: checking radacctdir" >&5
20285 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20286
20287 # Check whether --with-radacctdir was given.
20288 if test "${with_radacctdir+set}" = set; then
20289   withval=$with_radacctdir;  case "$withval" in
20290     no)
20291         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20292 echo "$as_me: error: Need radacctdir" >&2;}
20293    { (exit 1); exit 1; }; }
20294         ;;
20295     yes)
20296         ;;
20297     [\\/$]* | ?:[\\/]* )
20298         radacctdir="$withval"
20299         ;;
20300     *)
20301         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20302 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20303    { (exit 1); exit 1; }; }
20304         ;;
20305   esac
20306
20307 fi
20308
20309
20310 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20311 echo "${ECHO_T}$radacctdir" >&6; }
20312
20313 raddbdir='${sysconfdir}/raddb'
20314 { echo "$as_me:$LINENO: checking raddbdir" >&5
20315 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20316
20317 # Check whether --with-raddbdir was given.
20318 if test "${with_raddbdir+set}" = set; then
20319   withval=$with_raddbdir;  case "$withval" in
20320     no)
20321         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20322 echo "$as_me: error: Need raddbdir" >&2;}
20323    { (exit 1); exit 1; }; }
20324         ;;
20325     yes)
20326         ;;
20327     [\\/$]* | ?:[\\/]* )
20328         raddbdir="$withval"
20329         ;;
20330     *)
20331         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20332 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20333    { (exit 1); exit 1; }; }
20334         ;;
20335   esac
20336
20337 fi
20338
20339
20340 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20341 echo "${ECHO_T}$raddbdir" >&6; }
20342
20343 ASCEND_BINARY=yes
20344
20345 # Check whether --with-ascend-binary was given.
20346 if test "${with_ascend_binary+set}" = set; then
20347   withval=$with_ascend_binary;  case "$withval" in
20348     yes)
20349         ;;
20350     *)
20351         ASCEND_BINARY=""
20352   esac
20353
20354 fi
20355
20356 if test "X$ASCEND_BINARY" = "Xyes"; then
20357
20358 cat >>confdefs.h <<\_ACEOF
20359 #define ASCEND_BINARY
20360 _ACEOF
20361
20362 fi
20363
20364 WITH_THREADS=yes
20365
20366 # Check whether --with-threads was given.
20367 if test "${with_threads+set}" = set; then
20368   withval=$with_threads;  case "$withval" in
20369     yes)
20370         ;;
20371     *)
20372         WITH_THREADS=""
20373   esac
20374
20375 fi
20376
20377
20378 WITH_SNMP=yes
20379
20380 # Check whether --with-snmp was given.
20381 if test "${with_snmp+set}" = set; then
20382   withval=$with_snmp;  case "$withval" in
20383     yes)
20384         ;;
20385     *)
20386         WITH_SNMP=no
20387   esac
20388
20389 fi
20390
20391
20392 STATIC_MODULES=
20393
20394 # Check whether --with-static_modules was given.
20395 if test "${with_static_modules+set}" = set; then
20396   withval=$with_static_modules;
20397   for i in $withval; do
20398     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20399   done
20400
20401 fi
20402
20403
20404 MODULES=
20405
20406 # Check whether --with-modules was given.
20407 if test "${with_modules+set}" = set; then
20408   withval=$with_modules;
20409  for i in $withval; do
20410    MODULES="$MODULES $i"
20411  done
20412
20413 fi
20414
20415
20416 # Check whether --enable-developer was given.
20417 if test "${enable_developer+set}" = set; then
20418   enableval=$enable_developer;  case "$enableval" in
20419     no)
20420         developer=no
20421         ;;
20422     *)
20423         developer=yes
20424   esac
20425
20426 fi
20427
20428
20429 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20430     developer="yes"
20431 fi
20432
20433 EXPERIMENTAL=
20434
20435 # Check whether --with-experimental-modules was given.
20436 if test "${with_experimental_modules+set}" = set; then
20437   withval=$with_experimental_modules;  case "$withval" in
20438     yes)
20439         EXPERIMENTAL=yes
20440         ;;
20441     *)
20442   esac
20443
20444 fi
20445
20446
20447 OPENSSL_INCLUDE_DIR=
20448
20449 # Check whether --with-openssl-includes was given.
20450 if test "${with_openssl_includes+set}" = set; then
20451   withval=$with_openssl_includes;  case "$withval" in
20452     *) OPENSSL_INCLUDE_DIR="$withval"
20453         ;;
20454   esac
20455
20456 fi
20457
20458
20459 OPENSSL_LIB_DIR=
20460
20461 # Check whether --with-openssl-libraries was given.
20462 if test "${with_openssl_libraries+set}" = set; then
20463   withval=$with_openssl_libraries;  case "$withval" in
20464     *) OPENSSL_LIB_DIR="$withval"
20465         ;;
20466   esac
20467
20468 fi
20469
20470
20471
20472
20473 # Check whether --with-rlm-FOO-lib-dir was given.
20474 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20475   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
20476     *)
20477         ;;
20478   esac
20479
20480 fi
20481
20482
20483
20484 # Check whether --with-rlm-FOO-include-dir was given.
20485 if test "${with_rlm_FOO_include_dir+set}" = set; then
20486   withval=$with_rlm_FOO_include_dir;  case "$withval" in
20487     *)
20488         ;;
20489   esac
20490
20491 fi
20492
20493
20494
20495 WITH_UDPFROMTO=no
20496
20497 # Check whether --with-udpfromto was given.
20498 if test "${with_udpfromto+set}" = set; then
20499   withval=$with_udpfromto;  case "$withval" in
20500     yes)
20501         WITH_UDPFROMTO=yes
20502         ;;
20503     *)
20504         WITH_UDPFROMTO=no
20505   esac
20506
20507 fi
20508
20509
20510 if test "x$WITH_UDPFROMTO" = "xyes"; then
20511
20512 cat >>confdefs.h <<\_ACEOF
20513 #define WITH_UDPFROMTO
20514 _ACEOF
20515
20516 fi
20517
20518
20519 CHECKRAD=checkrad.pl
20520 # Extract the first word of "perl", so it can be a program name with args.
20521 set dummy perl; ac_word=$2
20522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20524 if test "${ac_cv_path_PERL+set}" = set; then
20525   echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527   case $PERL in
20528   [\\/]* | ?:[\\/]*)
20529   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20530   ;;
20531   *)
20532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20533 for as_dir in $PATH
20534 do
20535   IFS=$as_save_IFS
20536   test -z "$as_dir" && as_dir=.
20537   for ac_exec_ext in '' $ac_executable_extensions; do
20538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20539     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20541     break 2
20542   fi
20543 done
20544 done
20545 IFS=$as_save_IFS
20546
20547   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20548   ;;
20549 esac
20550 fi
20551 PERL=$ac_cv_path_PERL
20552 if test -n "$PERL"; then
20553   { echo "$as_me:$LINENO: result: $PERL" >&5
20554 echo "${ECHO_T}$PERL" >&6; }
20555 else
20556   { echo "$as_me:$LINENO: result: no" >&5
20557 echo "${ECHO_T}no" >&6; }
20558 fi
20559
20560
20561 if test "x$ac_cv_path_PERL" = "x"; then
20562   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20563 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20564 fi
20565 # Extract the first word of "snmpget", so it can be a program name with args.
20566 set dummy snmpget; ac_word=$2
20567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20569 if test "${ac_cv_path_SNMPGET+set}" = set; then
20570   echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572   case $SNMPGET in
20573   [\\/]* | ?:[\\/]*)
20574   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20575   ;;
20576   *)
20577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20578 for as_dir in $PATH
20579 do
20580   IFS=$as_save_IFS
20581   test -z "$as_dir" && as_dir=.
20582   for ac_exec_ext in '' $ac_executable_extensions; do
20583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20584     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20586     break 2
20587   fi
20588 done
20589 done
20590 IFS=$as_save_IFS
20591
20592   ;;
20593 esac
20594 fi
20595 SNMPGET=$ac_cv_path_SNMPGET
20596 if test -n "$SNMPGET"; then
20597   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20598 echo "${ECHO_T}$SNMPGET" >&6; }
20599 else
20600   { echo "$as_me:$LINENO: result: no" >&5
20601 echo "${ECHO_T}no" >&6; }
20602 fi
20603
20604
20605 if test "x$ac_cv_path_SNMPGET" = "x"; then
20606   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20607 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20608 fi
20609
20610 # Extract the first word of "snmpwalk", so it can be a program name with args.
20611 set dummy snmpwalk; ac_word=$2
20612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20614 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20615   echo $ECHO_N "(cached) $ECHO_C" >&6
20616 else
20617   case $SNMPWALK in
20618   [\\/]* | ?:[\\/]*)
20619   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20620   ;;
20621   *)
20622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20623 for as_dir in $PATH
20624 do
20625   IFS=$as_save_IFS
20626   test -z "$as_dir" && as_dir=.
20627   for ac_exec_ext in '' $ac_executable_extensions; do
20628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20629     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20631     break 2
20632   fi
20633 done
20634 done
20635 IFS=$as_save_IFS
20636
20637   ;;
20638 esac
20639 fi
20640 SNMPWALK=$ac_cv_path_SNMPWALK
20641 if test -n "$SNMPWALK"; then
20642   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20643 echo "${ECHO_T}$SNMPWALK" >&6; }
20644 else
20645   { echo "$as_me:$LINENO: result: no" >&5
20646 echo "${ECHO_T}no" >&6; }
20647 fi
20648
20649
20650 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20651   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20652 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20653 fi
20654
20655 # Extract the first word of "rusers", so it can be a program name with args.
20656 set dummy rusers; ac_word=$2
20657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20659 if test "${ac_cv_path_RUSERS+set}" = set; then
20660   echo $ECHO_N "(cached) $ECHO_C" >&6
20661 else
20662   case $RUSERS in
20663   [\\/]* | ?:[\\/]*)
20664   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20665   ;;
20666   *)
20667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20668 for as_dir in $PATH
20669 do
20670   IFS=$as_save_IFS
20671   test -z "$as_dir" && as_dir=.
20672   for ac_exec_ext in '' $ac_executable_extensions; do
20673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20674     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20676     break 2
20677   fi
20678 done
20679 done
20680 IFS=$as_save_IFS
20681
20682   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20683   ;;
20684 esac
20685 fi
20686 RUSERS=$ac_cv_path_RUSERS
20687 if test -n "$RUSERS"; then
20688   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20689 echo "${ECHO_T}$RUSERS" >&6; }
20690 else
20691   { echo "$as_me:$LINENO: result: no" >&5
20692 echo "${ECHO_T}no" >&6; }
20693 fi
20694
20695
20696
20697 missing_dir=`cd $ac_aux_dir && pwd`
20698 # expand $ac_aux_dir to an absolute path
20699 am_aux_dir=`cd $ac_aux_dir && pwd`
20700
20701 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20702 # Use eval to expand $SHELL
20703 if eval "$MISSING --run true"; then
20704   am_missing_run="$MISSING --run "
20705 else
20706   am_missing_run=
20707   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20708 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20709 fi
20710
20711
20712 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20713
20714
20715 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20716
20717
20718 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20719
20720
20721 # Extract the first word of "locate", so it can be a program name with args.
20722 set dummy locate; ac_word=$2
20723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20725 if test "${ac_cv_path_LOCATE+set}" = set; then
20726   echo $ECHO_N "(cached) $ECHO_C" >&6
20727 else
20728   case $LOCATE in
20729   [\\/]* | ?:[\\/]*)
20730   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20731   ;;
20732   *)
20733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20734 for as_dir in $PATH
20735 do
20736   IFS=$as_save_IFS
20737   test -z "$as_dir" && as_dir=.
20738   for ac_exec_ext in '' $ac_executable_extensions; do
20739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20740     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20742     break 2
20743   fi
20744 done
20745 done
20746 IFS=$as_save_IFS
20747
20748   ;;
20749 esac
20750 fi
20751 LOCATE=$ac_cv_path_LOCATE
20752 if test -n "$LOCATE"; then
20753   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20754 echo "${ECHO_T}$LOCATE" >&6; }
20755 else
20756   { echo "$as_me:$LINENO: result: no" >&5
20757 echo "${ECHO_T}no" >&6; }
20758 fi
20759
20760
20761 # Extract the first word of "dirname", so it can be a program name with args.
20762 set dummy dirname; ac_word=$2
20763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20765 if test "${ac_cv_path_DIRNAME+set}" = set; then
20766   echo $ECHO_N "(cached) $ECHO_C" >&6
20767 else
20768   case $DIRNAME in
20769   [\\/]* | ?:[\\/]*)
20770   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20771   ;;
20772   *)
20773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20774 for as_dir in $PATH
20775 do
20776   IFS=$as_save_IFS
20777   test -z "$as_dir" && as_dir=.
20778   for ac_exec_ext in '' $ac_executable_extensions; do
20779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20780     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20782     break 2
20783   fi
20784 done
20785 done
20786 IFS=$as_save_IFS
20787
20788   ;;
20789 esac
20790 fi
20791 DIRNAME=$ac_cv_path_DIRNAME
20792 if test -n "$DIRNAME"; then
20793   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20794 echo "${ECHO_T}$DIRNAME" >&6; }
20795 else
20796   { echo "$as_me:$LINENO: result: no" >&5
20797 echo "${ECHO_T}no" >&6; }
20798 fi
20799
20800
20801 # Extract the first word of "grep", so it can be a program name with args.
20802 set dummy grep; ac_word=$2
20803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20805 if test "${ac_cv_path_GREP+set}" = set; then
20806   echo $ECHO_N "(cached) $ECHO_C" >&6
20807 else
20808   case $GREP in
20809   [\\/]* | ?:[\\/]*)
20810   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20811   ;;
20812   *)
20813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20814 for as_dir in $PATH
20815 do
20816   IFS=$as_save_IFS
20817   test -z "$as_dir" && as_dir=.
20818   for ac_exec_ext in '' $ac_executable_extensions; do
20819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20820     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20822     break 2
20823   fi
20824 done
20825 done
20826 IFS=$as_save_IFS
20827
20828   ;;
20829 esac
20830 fi
20831 GREP=$ac_cv_path_GREP
20832 if test -n "$GREP"; then
20833   { echo "$as_me:$LINENO: result: $GREP" >&5
20834 echo "${ECHO_T}$GREP" >&6; }
20835 else
20836   { echo "$as_me:$LINENO: result: no" >&5
20837 echo "${ECHO_T}no" >&6; }
20838 fi
20839
20840
20841
20842
20843 old_CFLAGS=$CFLAGS
20844 if test "x$WITH_THREADS" = "xyes"; then
20845   if test $ac_cv_prog_suncc = "yes"; then
20846     CFLAGS="$CFLAGS -mt"
20847   fi
20848
20849
20850 for ac_header in pthread.h
20851 do
20852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20854   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20857   echo $ECHO_N "(cached) $ECHO_C" >&6
20858 fi
20859 ac_res=`eval echo '${'$as_ac_Header'}'`
20860                { echo "$as_me:$LINENO: result: $ac_res" >&5
20861 echo "${ECHO_T}$ac_res" >&6; }
20862 else
20863   # Is the header compilable?
20864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20866 cat >conftest.$ac_ext <<_ACEOF
20867 /* confdefs.h.  */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h.  */
20872 $ac_includes_default
20873 #include <$ac_header>
20874 _ACEOF
20875 rm -f conftest.$ac_objext
20876 if { (ac_try="$ac_compile"
20877 case "(($ac_try" in
20878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879   *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882   (eval "$ac_compile") 2>conftest.er1
20883   ac_status=$?
20884   grep -v '^ *+' conftest.er1 >conftest.err
20885   rm -f conftest.er1
20886   cat conftest.err >&5
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); } &&
20889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20890   { (case "(($ac_try" in
20891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892   *) ac_try_echo=$ac_try;;
20893 esac
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895   (eval "$ac_try") 2>&5
20896   ac_status=$?
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); }; } &&
20899          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
20906   ac_status=$?
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); }; }; then
20909   ac_header_compiler=yes
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914         ac_header_compiler=no
20915 fi
20916
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20919 echo "${ECHO_T}$ac_header_compiler" >&6; }
20920
20921 # Is the header present?
20922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20924 cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h.  */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h.  */
20930 #include <$ac_header>
20931 _ACEOF
20932 if { (ac_try="$ac_cpp conftest.$ac_ext"
20933 case "(($ac_try" in
20934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935   *) ac_try_echo=$ac_try;;
20936 esac
20937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20939   ac_status=$?
20940   grep -v '^ *+' conftest.er1 >conftest.err
20941   rm -f conftest.er1
20942   cat conftest.err >&5
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); } >/dev/null; then
20945   if test -s conftest.err; then
20946     ac_cpp_err=$ac_c_preproc_warn_flag
20947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20948   else
20949     ac_cpp_err=
20950   fi
20951 else
20952   ac_cpp_err=yes
20953 fi
20954 if test -z "$ac_cpp_err"; then
20955   ac_header_preproc=yes
20956 else
20957   echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20959
20960   ac_header_preproc=no
20961 fi
20962
20963 rm -f conftest.err conftest.$ac_ext
20964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20965 echo "${ECHO_T}$ac_header_preproc" >&6; }
20966
20967 # So?  What about this header?
20968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20969   yes:no: )
20970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20974     ac_header_preproc=yes
20975     ;;
20976   no:yes:* )
20977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20989
20990     ;;
20991 esac
20992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20995   echo $ECHO_N "(cached) $ECHO_C" >&6
20996 else
20997   eval "$as_ac_Header=\$ac_header_preproc"
20998 fi
20999 ac_res=`eval echo '${'$as_ac_Header'}'`
21000                { echo "$as_me:$LINENO: result: $ac_res" >&5
21001 echo "${ECHO_T}$ac_res" >&6; }
21002
21003 fi
21004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21005   cat >>confdefs.h <<_ACEOF
21006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21007 _ACEOF
21008
21009 else
21010    WITH_THREADS="no"
21011 fi
21012
21013 done
21014
21015
21016   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21017 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
21018 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21019   echo $ECHO_N "(cached) $ECHO_C" >&6
21020 else
21021   ac_check_lib_save_LIBS=$LIBS
21022 LIBS="-lpthread  $LIBS"
21023 cat >conftest.$ac_ext <<_ACEOF
21024 /* confdefs.h.  */
21025 _ACEOF
21026 cat confdefs.h >>conftest.$ac_ext
21027 cat >>conftest.$ac_ext <<_ACEOF
21028 /* end confdefs.h.  */
21029
21030 /* Override any GCC internal prototype to avoid an error.
21031    Use char because int might match the return type of a GCC
21032    builtin and then its argument prototype would still apply.  */
21033 #ifdef __cplusplus
21034 extern "C"
21035 #endif
21036 char pthread_create ();
21037 int
21038 main ()
21039 {
21040 return pthread_create ();
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext conftest$ac_exeext
21046 if { (ac_try="$ac_link"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_link") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } &&
21059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21060   { (case "(($ac_try" in
21061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062   *) ac_try_echo=$ac_try;;
21063 esac
21064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065   (eval "$ac_try") 2>&5
21066   ac_status=$?
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); }; } &&
21069          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; }; then
21079   ac_cv_lib_pthread_pthread_create=yes
21080 else
21081   echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084         ac_cv_lib_pthread_pthread_create=no
21085 fi
21086
21087 rm -f core conftest.err conftest.$ac_objext \
21088       conftest$ac_exeext conftest.$ac_ext
21089 LIBS=$ac_check_lib_save_LIBS
21090 fi
21091 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21092 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
21093 if test $ac_cv_lib_pthread_pthread_create = yes; then
21094    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
21095                   LIBS="$LIBS -lpthread"
21096 else
21097   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21098 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
21099 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21100   echo $ECHO_N "(cached) $ECHO_C" >&6
21101 else
21102   ac_check_lib_save_LIBS=$LIBS
21103 LIBS="-lc_r  $LIBS"
21104 cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h.  */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h.  */
21110
21111 /* Override any GCC internal prototype to avoid an error.
21112    Use char because int might match the return type of a GCC
21113    builtin and then its argument prototype would still apply.  */
21114 #ifdef __cplusplus
21115 extern "C"
21116 #endif
21117 char pthread_create ();
21118 int
21119 main ()
21120 {
21121 return pthread_create ();
21122   ;
21123   return 0;
21124 }
21125 _ACEOF
21126 rm -f conftest.$ac_objext conftest$ac_exeext
21127 if { (ac_try="$ac_link"
21128 case "(($ac_try" in
21129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130   *) ac_try_echo=$ac_try;;
21131 esac
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133   (eval "$ac_link") 2>conftest.er1
21134   ac_status=$?
21135   grep -v '^ *+' conftest.er1 >conftest.err
21136   rm -f conftest.er1
21137   cat conftest.err >&5
21138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139   (exit $ac_status); } &&
21140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21141   { (case "(($ac_try" in
21142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143   *) ac_try_echo=$ac_try;;
21144 esac
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146   (eval "$ac_try") 2>&5
21147   ac_status=$?
21148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149   (exit $ac_status); }; } &&
21150          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21157   ac_status=$?
21158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159   (exit $ac_status); }; }; then
21160   ac_cv_lib_c_r_pthread_create=yes
21161 else
21162   echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165         ac_cv_lib_c_r_pthread_create=no
21166 fi
21167
21168 rm -f core conftest.err conftest.$ac_objext \
21169       conftest$ac_exeext conftest.$ac_ext
21170 LIBS=$ac_check_lib_save_LIBS
21171 fi
21172 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21173 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21174 if test $ac_cv_lib_c_r_pthread_create = yes; then
21175    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21176 else
21177    WITH_THREADS="no"
21178
21179 fi
21180
21181
21182 fi
21183
21184 fi
21185
21186 if test "x$WITH_THREADS" != "xyes"; then
21187   CFLAGS=$old_CFLAGS
21188   ac_cv_header_pthread_h="no"
21189   WITH_THREADS=no
21190 else
21191
21192   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21193 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21194 if test "${ac_cv_search_sem_init+set}" = set; then
21195   echo $ECHO_N "(cached) $ECHO_C" >&6
21196 else
21197   ac_func_search_save_LIBS=$LIBS
21198 cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204
21205 /* Override any GCC internal prototype to avoid an error.
21206    Use char because int might match the return type of a GCC
21207    builtin and then its argument prototype would still apply.  */
21208 #ifdef __cplusplus
21209 extern "C"
21210 #endif
21211 char sem_init ();
21212 int
21213 main ()
21214 {
21215 return sem_init ();
21216   ;
21217   return 0;
21218 }
21219 _ACEOF
21220 for ac_lib in '' pthread sem posix4 rt semaphore; do
21221   if test -z "$ac_lib"; then
21222     ac_res="none required"
21223   else
21224     ac_res=-l$ac_lib
21225     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21226   fi
21227   rm -f conftest.$ac_objext conftest$ac_exeext
21228 if { (ac_try="$ac_link"
21229 case "(($ac_try" in
21230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231   *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234   (eval "$ac_link") 2>conftest.er1
21235   ac_status=$?
21236   grep -v '^ *+' conftest.er1 >conftest.err
21237   rm -f conftest.er1
21238   cat conftest.err >&5
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); } &&
21241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21242   { (case "(($ac_try" in
21243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244   *) ac_try_echo=$ac_try;;
21245 esac
21246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247   (eval "$ac_try") 2>&5
21248   ac_status=$?
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); }; } &&
21251          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); }; }; then
21261   ac_cv_search_sem_init=$ac_res
21262 else
21263   echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266
21267 fi
21268
21269 rm -f core conftest.err conftest.$ac_objext \
21270       conftest$ac_exeext
21271   if test "${ac_cv_search_sem_init+set}" = set; then
21272   break
21273 fi
21274 done
21275 if test "${ac_cv_search_sem_init+set}" = set; then
21276   :
21277 else
21278   ac_cv_search_sem_init=no
21279 fi
21280 rm conftest.$ac_ext
21281 LIBS=$ac_func_search_save_LIBS
21282 fi
21283 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21284 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21285 ac_res=$ac_cv_search_sem_init
21286 if test "$ac_res" != no; then
21287   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21288
21289 else
21290   { { 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
21291 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;}
21292    { (exit 1); exit 1; }; }
21293
21294 fi
21295
21296 fi
21297
21298
21299 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21300 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21301 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21302   echo $ECHO_N "(cached) $ECHO_C" >&6
21303 else
21304   ac_check_lib_save_LIBS=$LIBS
21305 LIBS="-lsocket  $LIBS"
21306 cat >conftest.$ac_ext <<_ACEOF
21307 /* confdefs.h.  */
21308 _ACEOF
21309 cat confdefs.h >>conftest.$ac_ext
21310 cat >>conftest.$ac_ext <<_ACEOF
21311 /* end confdefs.h.  */
21312
21313 /* Override any GCC internal prototype to avoid an error.
21314    Use char because int might match the return type of a GCC
21315    builtin and then its argument prototype would still apply.  */
21316 #ifdef __cplusplus
21317 extern "C"
21318 #endif
21319 char getsockname ();
21320 int
21321 main ()
21322 {
21323 return getsockname ();
21324   ;
21325   return 0;
21326 }
21327 _ACEOF
21328 rm -f conftest.$ac_objext conftest$ac_exeext
21329 if { (ac_try="$ac_link"
21330 case "(($ac_try" in
21331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332   *) ac_try_echo=$ac_try;;
21333 esac
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335   (eval "$ac_link") 2>conftest.er1
21336   ac_status=$?
21337   grep -v '^ *+' conftest.er1 >conftest.err
21338   rm -f conftest.er1
21339   cat conftest.err >&5
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); } &&
21342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21343   { (case "(($ac_try" in
21344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21345   *) ac_try_echo=$ac_try;;
21346 esac
21347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21348   (eval "$ac_try") 2>&5
21349   ac_status=$?
21350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351   (exit $ac_status); }; } &&
21352          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21359   ac_status=$?
21360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361   (exit $ac_status); }; }; then
21362   ac_cv_lib_socket_getsockname=yes
21363 else
21364   echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21366
21367         ac_cv_lib_socket_getsockname=no
21368 fi
21369
21370 rm -f core conftest.err conftest.$ac_objext \
21371       conftest$ac_exeext conftest.$ac_ext
21372 LIBS=$ac_check_lib_save_LIBS
21373 fi
21374 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21375 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21376 if test $ac_cv_lib_socket_getsockname = yes; then
21377   cat >>confdefs.h <<_ACEOF
21378 #define HAVE_LIBSOCKET 1
21379 _ACEOF
21380
21381   LIBS="-lsocket $LIBS"
21382
21383 fi
21384
21385
21386
21387 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21388 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21389 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21390   echo $ECHO_N "(cached) $ECHO_C" >&6
21391 else
21392   ac_check_lib_save_LIBS=$LIBS
21393 LIBS="-lresolv  $LIBS"
21394 cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h.  */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h.  */
21400
21401 /* Override any GCC internal prototype to avoid an error.
21402    Use char because int might match the return type of a GCC
21403    builtin and then its argument prototype would still apply.  */
21404 #ifdef __cplusplus
21405 extern "C"
21406 #endif
21407 char inet_aton ();
21408 int
21409 main ()
21410 {
21411 return inet_aton ();
21412   ;
21413   return 0;
21414 }
21415 _ACEOF
21416 rm -f conftest.$ac_objext conftest$ac_exeext
21417 if { (ac_try="$ac_link"
21418 case "(($ac_try" in
21419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420   *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423   (eval "$ac_link") 2>conftest.er1
21424   ac_status=$?
21425   grep -v '^ *+' conftest.er1 >conftest.err
21426   rm -f conftest.er1
21427   cat conftest.err >&5
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } &&
21430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21431   { (case "(($ac_try" in
21432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433   *) ac_try_echo=$ac_try;;
21434 esac
21435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21436   (eval "$ac_try") 2>&5
21437   ac_status=$?
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); }; } &&
21440          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21447   ac_status=$?
21448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449   (exit $ac_status); }; }; then
21450   ac_cv_lib_resolv_inet_aton=yes
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455         ac_cv_lib_resolv_inet_aton=no
21456 fi
21457
21458 rm -f core conftest.err conftest.$ac_objext \
21459       conftest$ac_exeext conftest.$ac_ext
21460 LIBS=$ac_check_lib_save_LIBS
21461 fi
21462 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21463 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21464 if test $ac_cv_lib_resolv_inet_aton = yes; then
21465   cat >>confdefs.h <<_ACEOF
21466 #define HAVE_LIBRESOLV 1
21467 _ACEOF
21468
21469   LIBS="-lresolv $LIBS"
21470
21471 fi
21472
21473
21474
21475 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21476 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21477 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21478   echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480   ac_check_lib_save_LIBS=$LIBS
21481 LIBS="-lnsl  $LIBS"
21482 cat >conftest.$ac_ext <<_ACEOF
21483 /* confdefs.h.  */
21484 _ACEOF
21485 cat confdefs.h >>conftest.$ac_ext
21486 cat >>conftest.$ac_ext <<_ACEOF
21487 /* end confdefs.h.  */
21488
21489 /* Override any GCC internal prototype to avoid an error.
21490    Use char because int might match the return type of a GCC
21491    builtin and then its argument prototype would still apply.  */
21492 #ifdef __cplusplus
21493 extern "C"
21494 #endif
21495 char inet_ntoa ();
21496 int
21497 main ()
21498 {
21499 return inet_ntoa ();
21500   ;
21501   return 0;
21502 }
21503 _ACEOF
21504 rm -f conftest.$ac_objext conftest$ac_exeext
21505 if { (ac_try="$ac_link"
21506 case "(($ac_try" in
21507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508   *) ac_try_echo=$ac_try;;
21509 esac
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511   (eval "$ac_link") 2>conftest.er1
21512   ac_status=$?
21513   grep -v '^ *+' conftest.er1 >conftest.err
21514   rm -f conftest.er1
21515   cat conftest.err >&5
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); } &&
21518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21519   { (case "(($ac_try" in
21520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521   *) ac_try_echo=$ac_try;;
21522 esac
21523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21524   (eval "$ac_try") 2>&5
21525   ac_status=$?
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); }; } &&
21528          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }; then
21538   ac_cv_lib_nsl_inet_ntoa=yes
21539 else
21540   echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21542
21543         ac_cv_lib_nsl_inet_ntoa=no
21544 fi
21545
21546 rm -f core conftest.err conftest.$ac_objext \
21547       conftest$ac_exeext conftest.$ac_ext
21548 LIBS=$ac_check_lib_save_LIBS
21549 fi
21550 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21551 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21552 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21553   cat >>confdefs.h <<_ACEOF
21554 #define HAVE_LIBNSL 1
21555 _ACEOF
21556
21557   LIBS="-lnsl $LIBS"
21558
21559 fi
21560
21561
21562 OPENSSL_LIBS=
21563 old_LIBS=$LIBS
21564 if test "x$OPENSSL_LIB_DIR" != "x"; then
21565     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21566 fi
21567 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21568 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21569 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21570   echo $ECHO_N "(cached) $ECHO_C" >&6
21571 else
21572   ac_check_lib_save_LIBS=$LIBS
21573 LIBS="-lcrypto  $LIBS"
21574 cat >conftest.$ac_ext <<_ACEOF
21575 /* confdefs.h.  */
21576 _ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h.  */
21580
21581 /* Override any GCC internal prototype to avoid an error.
21582    Use char because int might match the return type of a GCC
21583    builtin and then its argument prototype would still apply.  */
21584 #ifdef __cplusplus
21585 extern "C"
21586 #endif
21587 char DH_new ();
21588 int
21589 main ()
21590 {
21591 return DH_new ();
21592   ;
21593   return 0;
21594 }
21595 _ACEOF
21596 rm -f conftest.$ac_objext conftest$ac_exeext
21597 if { (ac_try="$ac_link"
21598 case "(($ac_try" in
21599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600   *) ac_try_echo=$ac_try;;
21601 esac
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603   (eval "$ac_link") 2>conftest.er1
21604   ac_status=$?
21605   grep -v '^ *+' conftest.er1 >conftest.err
21606   rm -f conftest.er1
21607   cat conftest.err >&5
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); } &&
21610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21611   { (case "(($ac_try" in
21612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21613   *) ac_try_echo=$ac_try;;
21614 esac
21615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21616   (eval "$ac_try") 2>&5
21617   ac_status=$?
21618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619   (exit $ac_status); }; } &&
21620          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21627   ac_status=$?
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); }; }; then
21630   ac_cv_lib_crypto_DH_new=yes
21631 else
21632   echo "$as_me: failed program was:" >&5
21633 sed 's/^/| /' conftest.$ac_ext >&5
21634
21635         ac_cv_lib_crypto_DH_new=no
21636 fi
21637
21638 rm -f core conftest.err conftest.$ac_objext \
21639       conftest$ac_exeext conftest.$ac_ext
21640 LIBS=$ac_check_lib_save_LIBS
21641 fi
21642 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21643 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21644 if test $ac_cv_lib_crypto_DH_new = yes; then
21645
21646
21647 cat >>confdefs.h <<\_ACEOF
21648 #define HAVE_LIBCRYPTO 1
21649 _ACEOF
21650
21651         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21652 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21653 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21654   echo $ECHO_N "(cached) $ECHO_C" >&6
21655 else
21656   ac_check_lib_save_LIBS=$LIBS
21657 LIBS="-lssl  $LIBS"
21658 cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h.  */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h.  */
21664
21665 /* Override any GCC internal prototype to avoid an error.
21666    Use char because int might match the return type of a GCC
21667    builtin and then its argument prototype would still apply.  */
21668 #ifdef __cplusplus
21669 extern "C"
21670 #endif
21671 char SSL_new ();
21672 int
21673 main ()
21674 {
21675 return SSL_new ();
21676   ;
21677   return 0;
21678 }
21679 _ACEOF
21680 rm -f conftest.$ac_objext conftest$ac_exeext
21681 if { (ac_try="$ac_link"
21682 case "(($ac_try" in
21683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684   *) ac_try_echo=$ac_try;;
21685 esac
21686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21687   (eval "$ac_link") 2>conftest.er1
21688   ac_status=$?
21689   grep -v '^ *+' conftest.er1 >conftest.err
21690   rm -f conftest.er1
21691   cat conftest.err >&5
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); } &&
21694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21695   { (case "(($ac_try" in
21696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697   *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700   (eval "$ac_try") 2>&5
21701   ac_status=$?
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); }; } &&
21704          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21711   ac_status=$?
21712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713   (exit $ac_status); }; }; then
21714   ac_cv_lib_ssl_SSL_new=yes
21715 else
21716   echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719         ac_cv_lib_ssl_SSL_new=no
21720 fi
21721
21722 rm -f core conftest.err conftest.$ac_objext \
21723       conftest$ac_exeext conftest.$ac_ext
21724 LIBS=$ac_check_lib_save_LIBS
21725 fi
21726 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21727 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21728 if test $ac_cv_lib_ssl_SSL_new = yes; then
21729
21730
21731 cat >>confdefs.h <<\_ACEOF
21732 #define HAVE_LIBSSL 1
21733 _ACEOF
21734
21735                 if test "x$OPENSSL_LIB_DIR" != "x"; then
21736                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21737                 fi
21738                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21739
21740 fi
21741
21742
21743 fi
21744
21745 LIBS=$old_LIBS
21746
21747
21748 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21749 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21750 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21751   echo $ECHO_N "(cached) $ECHO_C" >&6
21752 else
21753   ac_check_lib_save_LIBS=$LIBS
21754 LIBS="-lws2_32  $LIBS"
21755 cat >conftest.$ac_ext <<_ACEOF
21756 /* confdefs.h.  */
21757 _ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h.  */
21761
21762 /* Override any GCC internal prototype to avoid an error.
21763    Use char because int might match the return type of a GCC
21764    builtin and then its argument prototype would still apply.  */
21765 #ifdef __cplusplus
21766 extern "C"
21767 #endif
21768 char htonl ();
21769 int
21770 main ()
21771 {
21772 return htonl ();
21773   ;
21774   return 0;
21775 }
21776 _ACEOF
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_link") 2>conftest.er1
21785   ac_status=$?
21786   grep -v '^ *+' conftest.er1 >conftest.err
21787   rm -f conftest.er1
21788   cat conftest.err >&5
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } &&
21791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21792   { (case "(($ac_try" in
21793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794   *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797   (eval "$ac_try") 2>&5
21798   ac_status=$?
21799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); }; } &&
21801          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; }; then
21811   ac_cv_lib_ws2_32_htonl=yes
21812 else
21813   echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21815
21816         ac_cv_lib_ws2_32_htonl=no
21817 fi
21818
21819 rm -f core conftest.err conftest.$ac_objext \
21820       conftest$ac_exeext conftest.$ac_ext
21821 LIBS=$ac_check_lib_save_LIBS
21822 fi
21823 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21824 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21825 if test $ac_cv_lib_ws2_32_htonl = yes; then
21826   cat >>confdefs.h <<_ACEOF
21827 #define HAVE_LIBWS2_32 1
21828 _ACEOF
21829
21830   LIBS="-lws2_32 $LIBS"
21831
21832 fi
21833
21834
21835 PCAP_LIBS=
21836 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21837 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21838 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21839   echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841   ac_check_lib_save_LIBS=$LIBS
21842 LIBS="-lpcap  $LIBS"
21843 cat >conftest.$ac_ext <<_ACEOF
21844 /* confdefs.h.  */
21845 _ACEOF
21846 cat confdefs.h >>conftest.$ac_ext
21847 cat >>conftest.$ac_ext <<_ACEOF
21848 /* end confdefs.h.  */
21849
21850 /* Override any GCC internal prototype to avoid an error.
21851    Use char because int might match the return type of a GCC
21852    builtin and then its argument prototype would still apply.  */
21853 #ifdef __cplusplus
21854 extern "C"
21855 #endif
21856 char pcap_open_live ();
21857 int
21858 main ()
21859 {
21860 return pcap_open_live ();
21861   ;
21862   return 0;
21863 }
21864 _ACEOF
21865 rm -f conftest.$ac_objext conftest$ac_exeext
21866 if { (ac_try="$ac_link"
21867 case "(($ac_try" in
21868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869   *) ac_try_echo=$ac_try;;
21870 esac
21871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872   (eval "$ac_link") 2>conftest.er1
21873   ac_status=$?
21874   grep -v '^ *+' conftest.er1 >conftest.err
21875   rm -f conftest.er1
21876   cat conftest.err >&5
21877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878   (exit $ac_status); } &&
21879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21880   { (case "(($ac_try" in
21881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882   *) ac_try_echo=$ac_try;;
21883 esac
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885   (eval "$ac_try") 2>&5
21886   ac_status=$?
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); }; } &&
21889          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
21896   ac_status=$?
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); }; }; then
21899   ac_cv_lib_pcap_pcap_open_live=yes
21900 else
21901   echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904         ac_cv_lib_pcap_pcap_open_live=no
21905 fi
21906
21907 rm -f core conftest.err conftest.$ac_objext \
21908       conftest$ac_exeext conftest.$ac_ext
21909 LIBS=$ac_check_lib_save_LIBS
21910 fi
21911 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21912 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21913 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21914    PCAP_LIBS="-lpcap"
21915
21916 cat >>confdefs.h <<\_ACEOF
21917 #define HAVE_LIBPCAP 1
21918 _ACEOF
21919
21920
21921 else
21922    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21923 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21924 fi
21925
21926
21927
21928 case "$host" in
21929 *-interix*)
21930         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21931         ;;
21932 *-darwin*)
21933         CFLAGS="$CFLAGS -DDARWIN"
21934         ;;
21935 esac
21936
21937
21938
21939
21940
21941
21942 ac_header_dirent=no
21943 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21944   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21945 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21946 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21948   echo $ECHO_N "(cached) $ECHO_C" >&6
21949 else
21950   cat >conftest.$ac_ext <<_ACEOF
21951 /* confdefs.h.  */
21952 _ACEOF
21953 cat confdefs.h >>conftest.$ac_ext
21954 cat >>conftest.$ac_ext <<_ACEOF
21955 /* end confdefs.h.  */
21956 #include <sys/types.h>
21957 #include <$ac_hdr>
21958
21959 int
21960 main ()
21961 {
21962 if ((DIR *) 0)
21963 return 0;
21964   ;
21965   return 0;
21966 }
21967 _ACEOF
21968 rm -f conftest.$ac_objext
21969 if { (ac_try="$ac_compile"
21970 case "(($ac_try" in
21971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972   *) ac_try_echo=$ac_try;;
21973 esac
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975   (eval "$ac_compile") 2>conftest.er1
21976   ac_status=$?
21977   grep -v '^ *+' conftest.er1 >conftest.err
21978   rm -f conftest.er1
21979   cat conftest.err >&5
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); } &&
21982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21983   { (case "(($ac_try" in
21984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21985   *) ac_try_echo=$ac_try;;
21986 esac
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988   (eval "$ac_try") 2>&5
21989   ac_status=$?
21990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991   (exit $ac_status); }; } &&
21992          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
21999   ac_status=$?
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); }; }; then
22002   eval "$as_ac_Header=yes"
22003 else
22004   echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007         eval "$as_ac_Header=no"
22008 fi
22009
22010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22011 fi
22012 ac_res=`eval echo '${'$as_ac_Header'}'`
22013                { echo "$as_me:$LINENO: result: $ac_res" >&5
22014 echo "${ECHO_T}$ac_res" >&6; }
22015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22016   cat >>confdefs.h <<_ACEOF
22017 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22018 _ACEOF
22019
22020 ac_header_dirent=$ac_hdr; break
22021 fi
22022
22023 done
22024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22025 if test $ac_header_dirent = dirent.h; then
22026   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22027 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22028 if test "${ac_cv_search_opendir+set}" = set; then
22029   echo $ECHO_N "(cached) $ECHO_C" >&6
22030 else
22031   ac_func_search_save_LIBS=$LIBS
22032 cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038
22039 /* Override any GCC internal prototype to avoid an error.
22040    Use char because int might match the return type of a GCC
22041    builtin and then its argument prototype would still apply.  */
22042 #ifdef __cplusplus
22043 extern "C"
22044 #endif
22045 char opendir ();
22046 int
22047 main ()
22048 {
22049 return opendir ();
22050   ;
22051   return 0;
22052 }
22053 _ACEOF
22054 for ac_lib in '' dir; do
22055   if test -z "$ac_lib"; then
22056     ac_res="none required"
22057   else
22058     ac_res=-l$ac_lib
22059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22060   fi
22061   rm -f conftest.$ac_objext conftest$ac_exeext
22062 if { (ac_try="$ac_link"
22063 case "(($ac_try" in
22064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065   *) ac_try_echo=$ac_try;;
22066 esac
22067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068   (eval "$ac_link") 2>conftest.er1
22069   ac_status=$?
22070   grep -v '^ *+' conftest.er1 >conftest.err
22071   rm -f conftest.er1
22072   cat conftest.err >&5
22073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074   (exit $ac_status); } &&
22075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22076   { (case "(($ac_try" in
22077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078   *) ac_try_echo=$ac_try;;
22079 esac
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081   (eval "$ac_try") 2>&5
22082   ac_status=$?
22083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084   (exit $ac_status); }; } &&
22085          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
22092   ac_status=$?
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); }; }; then
22095   ac_cv_search_opendir=$ac_res
22096 else
22097   echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22099
22100
22101 fi
22102
22103 rm -f core conftest.err conftest.$ac_objext \
22104       conftest$ac_exeext
22105   if test "${ac_cv_search_opendir+set}" = set; then
22106   break
22107 fi
22108 done
22109 if test "${ac_cv_search_opendir+set}" = set; then
22110   :
22111 else
22112   ac_cv_search_opendir=no
22113 fi
22114 rm conftest.$ac_ext
22115 LIBS=$ac_func_search_save_LIBS
22116 fi
22117 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22118 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22119 ac_res=$ac_cv_search_opendir
22120 if test "$ac_res" != no; then
22121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22122
22123 fi
22124
22125 else
22126   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22128 if test "${ac_cv_search_opendir+set}" = set; then
22129   echo $ECHO_N "(cached) $ECHO_C" >&6
22130 else
22131   ac_func_search_save_LIBS=$LIBS
22132 cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h.  */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h.  */
22138
22139 /* Override any GCC internal prototype to avoid an error.
22140    Use char because int might match the return type of a GCC
22141    builtin and then its argument prototype would still apply.  */
22142 #ifdef __cplusplus
22143 extern "C"
22144 #endif
22145 char opendir ();
22146 int
22147 main ()
22148 {
22149 return opendir ();
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 for ac_lib in '' x; do
22155   if test -z "$ac_lib"; then
22156     ac_res="none required"
22157   else
22158     ac_res=-l$ac_lib
22159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22160   fi
22161   rm -f conftest.$ac_objext conftest$ac_exeext
22162 if { (ac_try="$ac_link"
22163 case "(($ac_try" in
22164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165   *) ac_try_echo=$ac_try;;
22166 esac
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168   (eval "$ac_link") 2>conftest.er1
22169   ac_status=$?
22170   grep -v '^ *+' conftest.er1 >conftest.err
22171   rm -f conftest.er1
22172   cat conftest.err >&5
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); } &&
22175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22176   { (case "(($ac_try" in
22177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178   *) ac_try_echo=$ac_try;;
22179 esac
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181   (eval "$ac_try") 2>&5
22182   ac_status=$?
22183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184   (exit $ac_status); }; } &&
22185          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
22192   ac_status=$?
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); }; }; then
22195   ac_cv_search_opendir=$ac_res
22196 else
22197   echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22199
22200
22201 fi
22202
22203 rm -f core conftest.err conftest.$ac_objext \
22204       conftest$ac_exeext
22205   if test "${ac_cv_search_opendir+set}" = set; then
22206   break
22207 fi
22208 done
22209 if test "${ac_cv_search_opendir+set}" = set; then
22210   :
22211 else
22212   ac_cv_search_opendir=no
22213 fi
22214 rm conftest.$ac_ext
22215 LIBS=$ac_func_search_save_LIBS
22216 fi
22217 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22218 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22219 ac_res=$ac_cv_search_opendir
22220 if test "$ac_res" != no; then
22221   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22222
22223 fi
22224
22225 fi
22226
22227 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22229 if test "${ac_cv_header_stdc+set}" = set; then
22230   echo $ECHO_N "(cached) $ECHO_C" >&6
22231 else
22232   cat >conftest.$ac_ext <<_ACEOF
22233 /* confdefs.h.  */
22234 _ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h.  */
22238 #include <stdlib.h>
22239 #include <stdarg.h>
22240 #include <string.h>
22241 #include <float.h>
22242
22243 int
22244 main ()
22245 {
22246
22247   ;
22248   return 0;
22249 }
22250 _ACEOF
22251 rm -f conftest.$ac_objext
22252 if { (ac_try="$ac_compile"
22253 case "(($ac_try" in
22254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255   *) ac_try_echo=$ac_try;;
22256 esac
22257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22258   (eval "$ac_compile") 2>conftest.er1
22259   ac_status=$?
22260   grep -v '^ *+' conftest.er1 >conftest.err
22261   rm -f conftest.er1
22262   cat conftest.err >&5
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } &&
22265          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22266   { (case "(($ac_try" in
22267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268   *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271   (eval "$ac_try") 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); }; } &&
22275          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22282   ac_status=$?
22283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284   (exit $ac_status); }; }; then
22285   ac_cv_header_stdc=yes
22286 else
22287   echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22289
22290         ac_cv_header_stdc=no
22291 fi
22292
22293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22294
22295 if test $ac_cv_header_stdc = yes; then
22296   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22297   cat >conftest.$ac_ext <<_ACEOF
22298 /* confdefs.h.  */
22299 _ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h.  */
22303 #include <string.h>
22304
22305 _ACEOF
22306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22307   $EGREP "memchr" >/dev/null 2>&1; then
22308   :
22309 else
22310   ac_cv_header_stdc=no
22311 fi
22312 rm -f conftest*
22313
22314 fi
22315
22316 if test $ac_cv_header_stdc = yes; then
22317   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22318   cat >conftest.$ac_ext <<_ACEOF
22319 /* confdefs.h.  */
22320 _ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h.  */
22324 #include <stdlib.h>
22325
22326 _ACEOF
22327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22328   $EGREP "free" >/dev/null 2>&1; then
22329   :
22330 else
22331   ac_cv_header_stdc=no
22332 fi
22333 rm -f conftest*
22334
22335 fi
22336
22337 if test $ac_cv_header_stdc = yes; then
22338   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22339   if test "$cross_compiling" = yes; then
22340   :
22341 else
22342   cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h.  */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h.  */
22348 #include <ctype.h>
22349 #include <stdlib.h>
22350 #if ((' ' & 0x0FF) == 0x020)
22351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22353 #else
22354 # define ISLOWER(c) \
22355                    (('a' <= (c) && (c) <= 'i') \
22356                      || ('j' <= (c) && (c) <= 'r') \
22357                      || ('s' <= (c) && (c) <= 'z'))
22358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22359 #endif
22360
22361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22362 int
22363 main ()
22364 {
22365   int i;
22366   for (i = 0; i < 256; i++)
22367     if (XOR (islower (i), ISLOWER (i))
22368         || toupper (i) != TOUPPER (i))
22369       return 2;
22370   return 0;
22371 }
22372 _ACEOF
22373 rm -f conftest$ac_exeext
22374 if { (ac_try="$ac_link"
22375 case "(($ac_try" in
22376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377   *) ac_try_echo=$ac_try;;
22378 esac
22379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22380   (eval "$ac_link") 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22384   { (case "(($ac_try" in
22385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386   *) ac_try_echo=$ac_try;;
22387 esac
22388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389   (eval "$ac_try") 2>&5
22390   ac_status=$?
22391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392   (exit $ac_status); }; }; then
22393   :
22394 else
22395   echo "$as_me: program exited with status $ac_status" >&5
22396 echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22398
22399 ( exit $ac_status )
22400 ac_cv_header_stdc=no
22401 fi
22402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22403 fi
22404
22405
22406 fi
22407 fi
22408 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22409 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22410 if test $ac_cv_header_stdc = yes; then
22411
22412 cat >>confdefs.h <<\_ACEOF
22413 #define STDC_HEADERS 1
22414 _ACEOF
22415
22416 fi
22417
22418 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22419 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22420 if test "${ac_cv_header_time+set}" = set; then
22421   echo $ECHO_N "(cached) $ECHO_C" >&6
22422 else
22423   cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h.  */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h.  */
22429 #include <sys/types.h>
22430 #include <sys/time.h>
22431 #include <time.h>
22432
22433 int
22434 main ()
22435 {
22436 if ((struct tm *) 0)
22437 return 0;
22438   ;
22439   return 0;
22440 }
22441 _ACEOF
22442 rm -f conftest.$ac_objext
22443 if { (ac_try="$ac_compile"
22444 case "(($ac_try" in
22445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446   *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449   (eval "$ac_compile") 2>conftest.er1
22450   ac_status=$?
22451   grep -v '^ *+' conftest.er1 >conftest.err
22452   rm -f conftest.er1
22453   cat conftest.err >&5
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); } &&
22456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22457   { (case "(($ac_try" in
22458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459   *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462   (eval "$ac_try") 2>&5
22463   ac_status=$?
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); }; } &&
22466          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22473   ac_status=$?
22474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475   (exit $ac_status); }; }; then
22476   ac_cv_header_time=yes
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22480
22481         ac_cv_header_time=no
22482 fi
22483
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 fi
22486 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22487 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22488 if test $ac_cv_header_time = yes; then
22489
22490 cat >>confdefs.h <<\_ACEOF
22491 #define TIME_WITH_SYS_TIME 1
22492 _ACEOF
22493
22494 fi
22495
22496 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22497 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22498 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22499   echo $ECHO_N "(cached) $ECHO_C" >&6
22500 else
22501   cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h.  */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h.  */
22507 #include <sys/types.h>
22508 #include <sys/wait.h>
22509 #ifndef WEXITSTATUS
22510 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22511 #endif
22512 #ifndef WIFEXITED
22513 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22514 #endif
22515
22516 int
22517 main ()
22518 {
22519   int s;
22520   wait (&s);
22521   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 rm -f conftest.$ac_objext
22527 if { (ac_try="$ac_compile"
22528 case "(($ac_try" in
22529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530   *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533   (eval "$ac_compile") 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } &&
22540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22541   { (case "(($ac_try" in
22542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543   *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546   (eval "$ac_try") 2>&5
22547   ac_status=$?
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); }; } &&
22550          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
22557   ac_status=$?
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); }; }; then
22560   ac_cv_header_sys_wait_h=yes
22561 else
22562   echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22564
22565         ac_cv_header_sys_wait_h=no
22566 fi
22567
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569 fi
22570 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22571 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22572 if test $ac_cv_header_sys_wait_h = yes; then
22573
22574 cat >>confdefs.h <<\_ACEOF
22575 #define HAVE_SYS_WAIT_H 1
22576 _ACEOF
22577
22578 fi
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614 for ac_header in \
22615         unistd.h \
22616         crypt.h \
22617         errno.h \
22618         resource.h \
22619         sys/resource.h \
22620         getopt.h \
22621         malloc.h \
22622         utmp.h \
22623         utmpx.h \
22624         signal.h \
22625         sys/select.h \
22626         syslog.h \
22627         inttypes.h \
22628         stdint.h \
22629         stdio.h \
22630         netdb.h \
22631         semaphore.h \
22632         arpa/inet.h \
22633         netinet/in.h \
22634         sys/types.h \
22635         sys/socket.h \
22636         winsock.h \
22637         sys/time.h \
22638         sys/wait.h \
22639         sys/security.h \
22640         fcntl.h \
22641         sys/fcntl.h \
22642         net/if.h \
22643         prot.h \
22644         pwd.h \
22645         grp.h \
22646         sia.h \
22647         siad.h
22648
22649 do
22650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22652   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22655   echo $ECHO_N "(cached) $ECHO_C" >&6
22656 fi
22657 ac_res=`eval echo '${'$as_ac_Header'}'`
22658                { echo "$as_me:$LINENO: result: $ac_res" >&5
22659 echo "${ECHO_T}$ac_res" >&6; }
22660 else
22661   # Is the header compilable?
22662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22664 cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h.  */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h.  */
22670 $ac_includes_default
22671 #include <$ac_header>
22672 _ACEOF
22673 rm -f conftest.$ac_objext
22674 if { (ac_try="$ac_compile"
22675 case "(($ac_try" in
22676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677   *) ac_try_echo=$ac_try;;
22678 esac
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680   (eval "$ac_compile") 2>conftest.er1
22681   ac_status=$?
22682   grep -v '^ *+' conftest.er1 >conftest.err
22683   rm -f conftest.er1
22684   cat conftest.err >&5
22685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686   (exit $ac_status); } &&
22687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22688   { (case "(($ac_try" in
22689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690   *) ac_try_echo=$ac_try;;
22691 esac
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693   (eval "$ac_try") 2>&5
22694   ac_status=$?
22695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696   (exit $ac_status); }; } &&
22697          { ac_try='test -s conftest.$ac_objext'
22698   { (case "(($ac_try" in
22699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700   *) ac_try_echo=$ac_try;;
22701 esac
22702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703   (eval "$ac_try") 2>&5
22704   ac_status=$?
22705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706   (exit $ac_status); }; }; then
22707   ac_header_compiler=yes
22708 else
22709   echo "$as_me: failed program was:" >&5
22710 sed 's/^/| /' conftest.$ac_ext >&5
22711
22712         ac_header_compiler=no
22713 fi
22714
22715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22717 echo "${ECHO_T}$ac_header_compiler" >&6; }
22718
22719 # Is the header present?
22720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22722 cat >conftest.$ac_ext <<_ACEOF
22723 /* confdefs.h.  */
22724 _ACEOF
22725 cat confdefs.h >>conftest.$ac_ext
22726 cat >>conftest.$ac_ext <<_ACEOF
22727 /* end confdefs.h.  */
22728 #include <$ac_header>
22729 _ACEOF
22730 if { (ac_try="$ac_cpp conftest.$ac_ext"
22731 case "(($ac_try" in
22732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733   *) ac_try_echo=$ac_try;;
22734 esac
22735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22737   ac_status=$?
22738   grep -v '^ *+' conftest.er1 >conftest.err
22739   rm -f conftest.er1
22740   cat conftest.err >&5
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); } >/dev/null; then
22743   if test -s conftest.err; then
22744     ac_cpp_err=$ac_c_preproc_warn_flag
22745     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22746   else
22747     ac_cpp_err=
22748   fi
22749 else
22750   ac_cpp_err=yes
22751 fi
22752 if test -z "$ac_cpp_err"; then
22753   ac_header_preproc=yes
22754 else
22755   echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22757
22758   ac_header_preproc=no
22759 fi
22760
22761 rm -f conftest.err conftest.$ac_ext
22762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22763 echo "${ECHO_T}$ac_header_preproc" >&6; }
22764
22765 # So?  What about this header?
22766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22767   yes:no: )
22768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22772     ac_header_preproc=yes
22773     ;;
22774   no:yes:* )
22775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22777     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22778 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22779     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22781     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22782 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22785     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22787
22788     ;;
22789 esac
22790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22793   echo $ECHO_N "(cached) $ECHO_C" >&6
22794 else
22795   eval "$as_ac_Header=\$ac_header_preproc"
22796 fi
22797 ac_res=`eval echo '${'$as_ac_Header'}'`
22798                { echo "$as_me:$LINENO: result: $ac_res" >&5
22799 echo "${ECHO_T}$ac_res" >&6; }
22800
22801 fi
22802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22803   cat >>confdefs.h <<_ACEOF
22804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22805 _ACEOF
22806
22807 fi
22808
22809 done
22810
22811
22812 REGEX=no
22813 if test "${ac_cv_header_regex_h+set}" = set; then
22814   { echo "$as_me:$LINENO: checking for regex.h" >&5
22815 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22816 if test "${ac_cv_header_regex_h+set}" = set; then
22817   echo $ECHO_N "(cached) $ECHO_C" >&6
22818 fi
22819 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22820 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22821 else
22822   # Is the header compilable?
22823 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22824 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22825 cat >conftest.$ac_ext <<_ACEOF
22826 /* confdefs.h.  */
22827 _ACEOF
22828 cat confdefs.h >>conftest.$ac_ext
22829 cat >>conftest.$ac_ext <<_ACEOF
22830 /* end confdefs.h.  */
22831 $ac_includes_default
22832 #include <regex.h>
22833 _ACEOF
22834 rm -f conftest.$ac_objext
22835 if { (ac_try="$ac_compile"
22836 case "(($ac_try" in
22837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838   *) ac_try_echo=$ac_try;;
22839 esac
22840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841   (eval "$ac_compile") 2>conftest.er1
22842   ac_status=$?
22843   grep -v '^ *+' conftest.er1 >conftest.err
22844   rm -f conftest.er1
22845   cat conftest.err >&5
22846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); } &&
22848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22849   { (case "(($ac_try" in
22850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851   *) ac_try_echo=$ac_try;;
22852 esac
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854   (eval "$ac_try") 2>&5
22855   ac_status=$?
22856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857   (exit $ac_status); }; } &&
22858          { ac_try='test -s conftest.$ac_objext'
22859   { (case "(($ac_try" in
22860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861   *) ac_try_echo=$ac_try;;
22862 esac
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864   (eval "$ac_try") 2>&5
22865   ac_status=$?
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); }; }; then
22868   ac_header_compiler=yes
22869 else
22870   echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873         ac_header_compiler=no
22874 fi
22875
22876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22878 echo "${ECHO_T}$ac_header_compiler" >&6; }
22879
22880 # Is the header present?
22881 { echo "$as_me:$LINENO: checking regex.h presence" >&5
22882 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
22883 cat >conftest.$ac_ext <<_ACEOF
22884 /* confdefs.h.  */
22885 _ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h.  */
22889 #include <regex.h>
22890 _ACEOF
22891 if { (ac_try="$ac_cpp conftest.$ac_ext"
22892 case "(($ac_try" in
22893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894   *) ac_try_echo=$ac_try;;
22895 esac
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22898   ac_status=$?
22899   grep -v '^ *+' conftest.er1 >conftest.err
22900   rm -f conftest.er1
22901   cat conftest.err >&5
22902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903   (exit $ac_status); } >/dev/null; then
22904   if test -s conftest.err; then
22905     ac_cpp_err=$ac_c_preproc_warn_flag
22906     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22907   else
22908     ac_cpp_err=
22909   fi
22910 else
22911   ac_cpp_err=yes
22912 fi
22913 if test -z "$ac_cpp_err"; then
22914   ac_header_preproc=yes
22915 else
22916   echo "$as_me: failed program was:" >&5
22917 sed 's/^/| /' conftest.$ac_ext >&5
22918
22919   ac_header_preproc=no
22920 fi
22921
22922 rm -f conftest.err conftest.$ac_ext
22923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22924 echo "${ECHO_T}$ac_header_preproc" >&6; }
22925
22926 # So?  What about this header?
22927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22928   yes:no: )
22929     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22930 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22931     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22932 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22933     ac_header_preproc=yes
22934     ;;
22935   no:yes:* )
22936     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22937 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22938     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22939 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22940     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22941 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22942     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22943 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22944     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22945 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22946     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22947 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22948
22949     ;;
22950 esac
22951 { echo "$as_me:$LINENO: checking for regex.h" >&5
22952 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22953 if test "${ac_cv_header_regex_h+set}" = set; then
22954   echo $ECHO_N "(cached) $ECHO_C" >&6
22955 else
22956   ac_cv_header_regex_h=$ac_header_preproc
22957 fi
22958 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22959 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22960
22961 fi
22962 if test $ac_cv_header_regex_h = yes; then
22963
22964 cat >>confdefs.h <<\_ACEOF
22965 #define HAVE_REGEX_H
22966 _ACEOF
22967
22968 fi
22969
22970
22971 if test "x$ac_cv_header_regex_h" = "xyes"; then
22972   REGEX_EXTENDED=no
22973   REGEX=yes
22974   cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h.  */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h.  */
22980 #include <regex.h>
22981      #ifdef REG_EXTENDED
22982        yes
22983      #endif
22984
22985 _ACEOF
22986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22987   $EGREP "yes" >/dev/null 2>&1; then
22988
22989 cat >>confdefs.h <<\_ACEOF
22990 #define HAVE_REG_EXTENDED
22991 _ACEOF
22992  REGEX_EXTENDED=yes
22993 fi
22994 rm -f conftest*
22995
22996 fi
22997
22998
22999
23000 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23001 then
23002
23003 cat >>confdefs.h <<\_ACEOF
23004 #define OSFC2
23005 _ACEOF
23006
23007 fi
23008
23009 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23010 then
23011
23012 cat >>confdefs.h <<\_ACEOF
23013 #define OSFSIA
23014 _ACEOF
23015
23016 fi
23017
23018 OPENSSL_INCLUDE="-DNO_OPENSSL"
23019 if test "x$OPENSSL_LIBS" = "x"; then
23020     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23021 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23022 else
23023     old_CPPFLAGS=$CPPFLAGS
23024     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23025         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23026     fi
23027         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23028
23029
23030
23031
23032 for ac_header in \
23033         openssl/ssl.h \
23034         openssl/crypto.h \
23035         openssl/err.h \
23036         openssl/engine.h
23037 do
23038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23040   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23043   echo $ECHO_N "(cached) $ECHO_C" >&6
23044 fi
23045 ac_res=`eval echo '${'$as_ac_Header'}'`
23046                { echo "$as_me:$LINENO: result: $ac_res" >&5
23047 echo "${ECHO_T}$ac_res" >&6; }
23048 else
23049   # Is the header compilable?
23050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23052 cat >conftest.$ac_ext <<_ACEOF
23053 /* confdefs.h.  */
23054 _ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h.  */
23058 $ac_includes_default
23059 #include <$ac_header>
23060 _ACEOF
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065   *) ac_try_echo=$ac_try;;
23066 esac
23067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23068   (eval "$ac_compile") 2>conftest.er1
23069   ac_status=$?
23070   grep -v '^ *+' conftest.er1 >conftest.err
23071   rm -f conftest.er1
23072   cat conftest.err >&5
23073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074   (exit $ac_status); } &&
23075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23076   { (case "(($ac_try" in
23077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078   *) ac_try_echo=$ac_try;;
23079 esac
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081   (eval "$ac_try") 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }; } &&
23085          { ac_try='test -s conftest.$ac_objext'
23086   { (case "(($ac_try" in
23087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088   *) ac_try_echo=$ac_try;;
23089 esac
23090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23091   (eval "$ac_try") 2>&5
23092   ac_status=$?
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); }; }; then
23095   ac_header_compiler=yes
23096 else
23097   echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100         ac_header_compiler=no
23101 fi
23102
23103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23105 echo "${ECHO_T}$ac_header_compiler" >&6; }
23106
23107 # Is the header present?
23108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23110 cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 #include <$ac_header>
23117 _ACEOF
23118 if { (ac_try="$ac_cpp conftest.$ac_ext"
23119 case "(($ac_try" in
23120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121   *) ac_try_echo=$ac_try;;
23122 esac
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23125   ac_status=$?
23126   grep -v '^ *+' conftest.er1 >conftest.err
23127   rm -f conftest.er1
23128   cat conftest.err >&5
23129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); } >/dev/null; then
23131   if test -s conftest.err; then
23132     ac_cpp_err=$ac_c_preproc_warn_flag
23133     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23134   else
23135     ac_cpp_err=
23136   fi
23137 else
23138   ac_cpp_err=yes
23139 fi
23140 if test -z "$ac_cpp_err"; then
23141   ac_header_preproc=yes
23142 else
23143   echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23145
23146   ac_header_preproc=no
23147 fi
23148
23149 rm -f conftest.err conftest.$ac_ext
23150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23151 echo "${ECHO_T}$ac_header_preproc" >&6; }
23152
23153 # So?  What about this header?
23154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23155   yes:no: )
23156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23160     ac_header_preproc=yes
23161     ;;
23162   no:yes:* )
23163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23165     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23166 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23167     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23169     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23170 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23173     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23175
23176     ;;
23177 esac
23178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23181   echo $ECHO_N "(cached) $ECHO_C" >&6
23182 else
23183   eval "$as_ac_Header=\$ac_header_preproc"
23184 fi
23185 ac_res=`eval echo '${'$as_ac_Header'}'`
23186                { echo "$as_me:$LINENO: result: $ac_res" >&5
23187 echo "${ECHO_T}$ac_res" >&6; }
23188
23189 fi
23190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23191   cat >>confdefs.h <<_ACEOF
23192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23193 _ACEOF
23194
23195 else
23196   OPENSSL_LIBS=
23197
23198 fi
23199
23200 done
23201
23202     if test "x$OPENSSL_LIBS" != "x"; then
23203         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23204 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23205         cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h.  */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h.  */
23211 #include <openssl/crypto.h>
23212              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23213              yes
23214              #endif
23215
23216 _ACEOF
23217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23218   $EGREP "yes" >/dev/null 2>&1; then
23219   goodssl="yes"
23220 fi
23221 rm -f conftest*
23222
23223         if test "x$goodssl" != "xyes"; then
23224             { echo "$as_me:$LINENO: result: no" >&5
23225 echo "${ECHO_T}no" >&6; }
23226             OPENSSL_LIBS=
23227         else
23228             { echo "$as_me:$LINENO: result: yes" >&5
23229 echo "${ECHO_T}yes" >&6; }
23230             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23231                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23232             else
23233                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23234             fi
23235         fi
23236     fi
23237     CPPFLAGS=$old_CPPFLAGS
23238 fi
23239
23240
23241 export OPENSSL_LIBS
23242
23243 if test "x$PCAP_LIBS" = x; then
23244     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23245 echo "$as_me: skipping test for pcap.h." >&6;}
23246 else
23247     if test "${ac_cv_header_pcap_h+set}" = set; then
23248   { echo "$as_me:$LINENO: checking for pcap.h" >&5
23249 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23250 if test "${ac_cv_header_pcap_h+set}" = set; then
23251   echo $ECHO_N "(cached) $ECHO_C" >&6
23252 fi
23253 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23254 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23255 else
23256   # Is the header compilable?
23257 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23258 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23259 cat >conftest.$ac_ext <<_ACEOF
23260 /* confdefs.h.  */
23261 _ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h.  */
23265 $ac_includes_default
23266 #include <pcap.h>
23267 _ACEOF
23268 rm -f conftest.$ac_objext
23269 if { (ac_try="$ac_compile"
23270 case "(($ac_try" in
23271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272   *) ac_try_echo=$ac_try;;
23273 esac
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275   (eval "$ac_compile") 2>conftest.er1
23276   ac_status=$?
23277   grep -v '^ *+' conftest.er1 >conftest.err
23278   rm -f conftest.er1
23279   cat conftest.err >&5
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); } &&
23282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23283   { (case "(($ac_try" in
23284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285   *) ac_try_echo=$ac_try;;
23286 esac
23287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23288   (eval "$ac_try") 2>&5
23289   ac_status=$?
23290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291   (exit $ac_status); }; } &&
23292          { ac_try='test -s conftest.$ac_objext'
23293   { (case "(($ac_try" in
23294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295   *) ac_try_echo=$ac_try;;
23296 esac
23297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298   (eval "$ac_try") 2>&5
23299   ac_status=$?
23300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301   (exit $ac_status); }; }; then
23302   ac_header_compiler=yes
23303 else
23304   echo "$as_me: failed program was:" >&5
23305 sed 's/^/| /' conftest.$ac_ext >&5
23306
23307         ac_header_compiler=no
23308 fi
23309
23310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23312 echo "${ECHO_T}$ac_header_compiler" >&6; }
23313
23314 # Is the header present?
23315 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23316 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
23317 cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h.  */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h.  */
23323 #include <pcap.h>
23324 _ACEOF
23325 if { (ac_try="$ac_cpp conftest.$ac_ext"
23326 case "(($ac_try" in
23327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328   *) ac_try_echo=$ac_try;;
23329 esac
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23332   ac_status=$?
23333   grep -v '^ *+' conftest.er1 >conftest.err
23334   rm -f conftest.er1
23335   cat conftest.err >&5
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } >/dev/null; then
23338   if test -s conftest.err; then
23339     ac_cpp_err=$ac_c_preproc_warn_flag
23340     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23341   else
23342     ac_cpp_err=
23343   fi
23344 else
23345   ac_cpp_err=yes
23346 fi
23347 if test -z "$ac_cpp_err"; then
23348   ac_header_preproc=yes
23349 else
23350   echo "$as_me: failed program was:" >&5
23351 sed 's/^/| /' conftest.$ac_ext >&5
23352
23353   ac_header_preproc=no
23354 fi
23355
23356 rm -f conftest.err conftest.$ac_ext
23357 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23358 echo "${ECHO_T}$ac_header_preproc" >&6; }
23359
23360 # So?  What about this header?
23361 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23362   yes:no: )
23363     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23364 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23365     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23366 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23367     ac_header_preproc=yes
23368     ;;
23369   no:yes:* )
23370     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23371 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23372     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
23373 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
23374     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23375 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23376     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
23377 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23378     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23379 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23380     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23381 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23382
23383     ;;
23384 esac
23385 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23386 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23387 if test "${ac_cv_header_pcap_h+set}" = set; then
23388   echo $ECHO_N "(cached) $ECHO_C" >&6
23389 else
23390   ac_cv_header_pcap_h=$ac_header_preproc
23391 fi
23392 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23393 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23394
23395 fi
23396 if test $ac_cv_header_pcap_h = yes; then
23397
23398 cat >>confdefs.h <<\_ACEOF
23399 #define HAVE_PCAP_H 1
23400 _ACEOF
23401
23402 else
23403    PCAP_LIBS=
23404         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23405 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23406
23407 fi
23408
23409
23410 fi
23411
23412
23413
23414 { echo "$as_me:$LINENO: checking for off_t" >&5
23415 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23416 if test "${ac_cv_type_off_t+set}" = set; then
23417   echo $ECHO_N "(cached) $ECHO_C" >&6
23418 else
23419   cat >conftest.$ac_ext <<_ACEOF
23420 /* confdefs.h.  */
23421 _ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h.  */
23425 $ac_includes_default
23426 typedef off_t ac__type_new_;
23427 int
23428 main ()
23429 {
23430 if ((ac__type_new_ *) 0)
23431   return 0;
23432 if (sizeof (ac__type_new_))
23433   return 0;
23434   ;
23435   return 0;
23436 }
23437 _ACEOF
23438 rm -f conftest.$ac_objext
23439 if { (ac_try="$ac_compile"
23440 case "(($ac_try" in
23441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23442   *) ac_try_echo=$ac_try;;
23443 esac
23444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23445   (eval "$ac_compile") 2>conftest.er1
23446   ac_status=$?
23447   grep -v '^ *+' conftest.er1 >conftest.err
23448   rm -f conftest.er1
23449   cat conftest.err >&5
23450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451   (exit $ac_status); } &&
23452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23453   { (case "(($ac_try" in
23454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455   *) ac_try_echo=$ac_try;;
23456 esac
23457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458   (eval "$ac_try") 2>&5
23459   ac_status=$?
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); }; } &&
23462          { ac_try='test -s conftest.$ac_objext'
23463   { (case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_try") 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; }; then
23472   ac_cv_type_off_t=yes
23473 else
23474   echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23476
23477         ac_cv_type_off_t=no
23478 fi
23479
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23481 fi
23482 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23483 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23484 if test $ac_cv_type_off_t = yes; then
23485   :
23486 else
23487
23488 cat >>confdefs.h <<_ACEOF
23489 #define off_t long int
23490 _ACEOF
23491
23492 fi
23493
23494 { echo "$as_me:$LINENO: checking for pid_t" >&5
23495 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23496 if test "${ac_cv_type_pid_t+set}" = set; then
23497   echo $ECHO_N "(cached) $ECHO_C" >&6
23498 else
23499   cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h.  */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h.  */
23505 $ac_includes_default
23506 typedef pid_t ac__type_new_;
23507 int
23508 main ()
23509 {
23510 if ((ac__type_new_ *) 0)
23511   return 0;
23512 if (sizeof (ac__type_new_))
23513   return 0;
23514   ;
23515   return 0;
23516 }
23517 _ACEOF
23518 rm -f conftest.$ac_objext
23519 if { (ac_try="$ac_compile"
23520 case "(($ac_try" in
23521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522   *) ac_try_echo=$ac_try;;
23523 esac
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525   (eval "$ac_compile") 2>conftest.er1
23526   ac_status=$?
23527   grep -v '^ *+' conftest.er1 >conftest.err
23528   rm -f conftest.er1
23529   cat conftest.err >&5
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); } &&
23532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23533   { (case "(($ac_try" in
23534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535   *) ac_try_echo=$ac_try;;
23536 esac
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538   (eval "$ac_try") 2>&5
23539   ac_status=$?
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); }; } &&
23542          { ac_try='test -s conftest.$ac_objext'
23543   { (case "(($ac_try" in
23544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545   *) ac_try_echo=$ac_try;;
23546 esac
23547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23548   (eval "$ac_try") 2>&5
23549   ac_status=$?
23550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551   (exit $ac_status); }; }; then
23552   ac_cv_type_pid_t=yes
23553 else
23554   echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23556
23557         ac_cv_type_pid_t=no
23558 fi
23559
23560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23561 fi
23562 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23563 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23564 if test $ac_cv_type_pid_t = yes; then
23565   :
23566 else
23567
23568 cat >>confdefs.h <<_ACEOF
23569 #define pid_t int
23570 _ACEOF
23571
23572 fi
23573
23574 { echo "$as_me:$LINENO: checking for size_t" >&5
23575 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23576 if test "${ac_cv_type_size_t+set}" = set; then
23577   echo $ECHO_N "(cached) $ECHO_C" >&6
23578 else
23579   cat >conftest.$ac_ext <<_ACEOF
23580 /* confdefs.h.  */
23581 _ACEOF
23582 cat confdefs.h >>conftest.$ac_ext
23583 cat >>conftest.$ac_ext <<_ACEOF
23584 /* end confdefs.h.  */
23585 $ac_includes_default
23586 typedef size_t ac__type_new_;
23587 int
23588 main ()
23589 {
23590 if ((ac__type_new_ *) 0)
23591   return 0;
23592 if (sizeof (ac__type_new_))
23593   return 0;
23594   ;
23595   return 0;
23596 }
23597 _ACEOF
23598 rm -f conftest.$ac_objext
23599 if { (ac_try="$ac_compile"
23600 case "(($ac_try" in
23601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23602   *) ac_try_echo=$ac_try;;
23603 esac
23604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23605   (eval "$ac_compile") 2>conftest.er1
23606   ac_status=$?
23607   grep -v '^ *+' conftest.er1 >conftest.err
23608   rm -f conftest.er1
23609   cat conftest.err >&5
23610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611   (exit $ac_status); } &&
23612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23613   { (case "(($ac_try" in
23614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23615   *) ac_try_echo=$ac_try;;
23616 esac
23617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23618   (eval "$ac_try") 2>&5
23619   ac_status=$?
23620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621   (exit $ac_status); }; } &&
23622          { ac_try='test -s conftest.$ac_objext'
23623   { (case "(($ac_try" in
23624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625   *) ac_try_echo=$ac_try;;
23626 esac
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628   (eval "$ac_try") 2>&5
23629   ac_status=$?
23630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631   (exit $ac_status); }; }; then
23632   ac_cv_type_size_t=yes
23633 else
23634   echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23636
23637         ac_cv_type_size_t=no
23638 fi
23639
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23641 fi
23642 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23643 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23644 if test $ac_cv_type_size_t = yes; then
23645   :
23646 else
23647
23648 cat >>confdefs.h <<_ACEOF
23649 #define size_t unsigned int
23650 _ACEOF
23651
23652 fi
23653
23654 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23655 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23656 if test "${ac_cv_type_uid_t+set}" = set; then
23657   echo $ECHO_N "(cached) $ECHO_C" >&6
23658 else
23659   cat >conftest.$ac_ext <<_ACEOF
23660 /* confdefs.h.  */
23661 _ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h.  */
23665 #include <sys/types.h>
23666
23667 _ACEOF
23668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23669   $EGREP "uid_t" >/dev/null 2>&1; then
23670   ac_cv_type_uid_t=yes
23671 else
23672   ac_cv_type_uid_t=no
23673 fi
23674 rm -f conftest*
23675
23676 fi
23677 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23678 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23679 if test $ac_cv_type_uid_t = no; then
23680
23681 cat >>confdefs.h <<\_ACEOF
23682 #define uid_t int
23683 _ACEOF
23684
23685
23686 cat >>confdefs.h <<\_ACEOF
23687 #define gid_t int
23688 _ACEOF
23689
23690 fi
23691
23692
23693
23694   { echo "$as_me:$LINENO: checking for socklen_t" >&5
23695 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23696 if test "${ac_cv_type_socklen_t+set}" = set; then
23697   echo $ECHO_N "(cached) $ECHO_C" >&6
23698 else
23699    ac_cv_type_socklen_t=no
23700       cat >conftest.$ac_ext <<_ACEOF
23701 /* confdefs.h.  */
23702 _ACEOF
23703 cat confdefs.h >>conftest.$ac_ext
23704 cat >>conftest.$ac_ext <<_ACEOF
23705 /* end confdefs.h.  */
23706 #ifdef HAVE_SYS_TYPES_H
23707 #include <sys/types.h>
23708 #endif
23709 #ifdef HAVE_SYS_SOCKET_H
23710 #include <sys/socket.h>
23711 #endif
23712
23713 int
23714 main ()
23715 {
23716 socklen_t foo
23717   ;
23718   return 0;
23719 }
23720 _ACEOF
23721 rm -f conftest.$ac_objext
23722 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23729   ac_status=$?
23730   grep -v '^ *+' conftest.er1 >conftest.err
23731   rm -f conftest.er1
23732   cat conftest.err >&5
23733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734   (exit $ac_status); } &&
23735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23736   { (case "(($ac_try" in
23737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23738   *) ac_try_echo=$ac_try;;
23739 esac
23740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23741   (eval "$ac_try") 2>&5
23742   ac_status=$?
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); }; } &&
23745          { ac_try='test -s conftest.$ac_objext'
23746   { (case "(($ac_try" in
23747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23748   *) ac_try_echo=$ac_try;;
23749 esac
23750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23751   (eval "$ac_try") 2>&5
23752   ac_status=$?
23753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754   (exit $ac_status); }; }; then
23755   ac_cv_type_socklen_t=yes
23756 else
23757   echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23759
23760
23761 fi
23762
23763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23764
23765
23766 fi
23767 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23768 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23769
23770   if test "$ac_cv_type_socklen_t" != "yes"; then
23771
23772 cat >>confdefs.h <<\_ACEOF
23773 #define socklen_t int
23774 _ACEOF
23775
23776   fi
23777
23778
23779
23780   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23781 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23782 if test "${ac_cv_type_uint8_t+set}" = set; then
23783   echo $ECHO_N "(cached) $ECHO_C" >&6
23784 else
23785    ac_cv_type_uint8_t=no
23786       cat >conftest.$ac_ext <<_ACEOF
23787 /* confdefs.h.  */
23788 _ACEOF
23789 cat confdefs.h >>conftest.$ac_ext
23790 cat >>conftest.$ac_ext <<_ACEOF
23791 /* end confdefs.h.  */
23792 #ifdef HAVE_INTTYPES_H
23793 #include <inttypes.h>
23794 #endif
23795 #ifdef HAVE_STDINT_H
23796 #include <stdint.h>
23797 #endif
23798
23799 int
23800 main ()
23801 {
23802 uint8_t foo
23803   ;
23804   return 0;
23805 }
23806 _ACEOF
23807 rm -f conftest.$ac_objext
23808 if { (ac_try="$ac_compile"
23809 case "(($ac_try" in
23810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23811   *) ac_try_echo=$ac_try;;
23812 esac
23813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23814   (eval "$ac_compile") 2>conftest.er1
23815   ac_status=$?
23816   grep -v '^ *+' conftest.er1 >conftest.err
23817   rm -f conftest.er1
23818   cat conftest.err >&5
23819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820   (exit $ac_status); } &&
23821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23822   { (case "(($ac_try" in
23823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824   *) ac_try_echo=$ac_try;;
23825 esac
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827   (eval "$ac_try") 2>&5
23828   ac_status=$?
23829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830   (exit $ac_status); }; } &&
23831          { ac_try='test -s conftest.$ac_objext'
23832   { (case "(($ac_try" in
23833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23834   *) ac_try_echo=$ac_try;;
23835 esac
23836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23837   (eval "$ac_try") 2>&5
23838   ac_status=$?
23839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23840   (exit $ac_status); }; }; then
23841   ac_cv_type_uint8_t=yes
23842 else
23843   echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23845
23846
23847 fi
23848
23849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850
23851
23852 fi
23853 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23854 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23855
23856   if test "$ac_cv_type_uint8_t" != "yes"; then
23857
23858 cat >>confdefs.h <<\_ACEOF
23859 #define uint8_t unsigned char
23860 _ACEOF
23861
23862   fi
23863
23864
23865
23866   { echo "$as_me:$LINENO: checking for uint16_t" >&5
23867 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23868 if test "${ac_cv_type_uint16_t+set}" = set; then
23869   echo $ECHO_N "(cached) $ECHO_C" >&6
23870 else
23871    ac_cv_type_uint16_t=no
23872       cat >conftest.$ac_ext <<_ACEOF
23873 /* confdefs.h.  */
23874 _ACEOF
23875 cat confdefs.h >>conftest.$ac_ext
23876 cat >>conftest.$ac_ext <<_ACEOF
23877 /* end confdefs.h.  */
23878 #ifdef HAVE_INTTYPES_H
23879 #include <inttypes.h>
23880 #endif
23881 #ifdef HAVE_STDINT_H
23882 #include <stdint.h>
23883 #endif
23884
23885 int
23886 main ()
23887 {
23888 uint16_t foo
23889   ;
23890   return 0;
23891 }
23892 _ACEOF
23893 rm -f conftest.$ac_objext
23894 if { (ac_try="$ac_compile"
23895 case "(($ac_try" in
23896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897   *) ac_try_echo=$ac_try;;
23898 esac
23899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23900   (eval "$ac_compile") 2>conftest.er1
23901   ac_status=$?
23902   grep -v '^ *+' conftest.er1 >conftest.err
23903   rm -f conftest.er1
23904   cat conftest.err >&5
23905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906   (exit $ac_status); } &&
23907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23908   { (case "(($ac_try" in
23909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23910   *) ac_try_echo=$ac_try;;
23911 esac
23912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23913   (eval "$ac_try") 2>&5
23914   ac_status=$?
23915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916   (exit $ac_status); }; } &&
23917          { ac_try='test -s conftest.$ac_objext'
23918   { (case "(($ac_try" in
23919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23920   *) ac_try_echo=$ac_try;;
23921 esac
23922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23923   (eval "$ac_try") 2>&5
23924   ac_status=$?
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); }; }; then
23927   ac_cv_type_uint16_t=yes
23928 else
23929   echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23931
23932
23933 fi
23934
23935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23936
23937
23938 fi
23939 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23940 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23941
23942   if test "$ac_cv_type_uint16_t" != "yes"; then
23943
23944 cat >>confdefs.h <<\_ACEOF
23945 #define uint16_t unsigned short
23946 _ACEOF
23947
23948   fi
23949
23950
23951
23952   { echo "$as_me:$LINENO: checking for uint32_t" >&5
23953 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23954 if test "${ac_cv_type_uint32_t+set}" = set; then
23955   echo $ECHO_N "(cached) $ECHO_C" >&6
23956 else
23957    ac_cv_type_uint32_t=no
23958       cat >conftest.$ac_ext <<_ACEOF
23959 /* confdefs.h.  */
23960 _ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h.  */
23964 #ifdef HAVE_INTTYPES_H
23965 #include <inttypes.h>
23966 #endif
23967 #ifdef HAVE_STDINT_H
23968 #include <stdint.h>
23969 #endif
23970
23971 int
23972 main ()
23973 {
23974 uint32_t foo
23975   ;
23976   return 0;
23977 }
23978 _ACEOF
23979 rm -f conftest.$ac_objext
23980 if { (ac_try="$ac_compile"
23981 case "(($ac_try" in
23982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23983   *) ac_try_echo=$ac_try;;
23984 esac
23985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23986   (eval "$ac_compile") 2>conftest.er1
23987   ac_status=$?
23988   grep -v '^ *+' conftest.er1 >conftest.err
23989   rm -f conftest.er1
23990   cat conftest.err >&5
23991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992   (exit $ac_status); } &&
23993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23994   { (case "(($ac_try" in
23995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996   *) ac_try_echo=$ac_try;;
23997 esac
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999   (eval "$ac_try") 2>&5
24000   ac_status=$?
24001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002   (exit $ac_status); }; } &&
24003          { ac_try='test -s conftest.$ac_objext'
24004   { (case "(($ac_try" in
24005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24006   *) ac_try_echo=$ac_try;;
24007 esac
24008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24009   (eval "$ac_try") 2>&5
24010   ac_status=$?
24011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); }; }; then
24013   ac_cv_type_uint32_t=yes
24014 else
24015   echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24017
24018
24019 fi
24020
24021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24022
24023
24024 fi
24025 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24026 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
24027
24028   if test "$ac_cv_type_uint32_t" != "yes"; then
24029
24030 cat >>confdefs.h <<\_ACEOF
24031 #define uint32_t unsigned int
24032 _ACEOF
24033
24034   fi
24035
24036
24037 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
24038 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
24039 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
24040   echo $ECHO_N "(cached) $ECHO_C" >&6
24041 else
24042   cat >conftest.$ac_ext <<_ACEOF
24043 /* confdefs.h.  */
24044 _ACEOF
24045 cat confdefs.h >>conftest.$ac_ext
24046 cat >>conftest.$ac_ext <<_ACEOF
24047 /* end confdefs.h.  */
24048
24049 #ifdef HAVE_NETINET_IN_H
24050 #include <netinet/in.h>
24051 #endif
24052
24053
24054 typedef struct in6_addr ac__type_new_;
24055 int
24056 main ()
24057 {
24058 if ((ac__type_new_ *) 0)
24059   return 0;
24060 if (sizeof (ac__type_new_))
24061   return 0;
24062   ;
24063   return 0;
24064 }
24065 _ACEOF
24066 rm -f conftest.$ac_objext
24067 if { (ac_try="$ac_compile"
24068 case "(($ac_try" in
24069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24070   *) ac_try_echo=$ac_try;;
24071 esac
24072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24073   (eval "$ac_compile") 2>conftest.er1
24074   ac_status=$?
24075   grep -v '^ *+' conftest.er1 >conftest.err
24076   rm -f conftest.er1
24077   cat conftest.err >&5
24078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079   (exit $ac_status); } &&
24080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
24087   ac_status=$?
24088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24089   (exit $ac_status); }; } &&
24090          { ac_try='test -s conftest.$ac_objext'
24091   { (case "(($ac_try" in
24092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24093   *) ac_try_echo=$ac_try;;
24094 esac
24095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24096   (eval "$ac_try") 2>&5
24097   ac_status=$?
24098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099   (exit $ac_status); }; }; then
24100   ac_cv_type_struct_in6_addr=yes
24101 else
24102   echo "$as_me: failed program was:" >&5
24103 sed 's/^/| /' conftest.$ac_ext >&5
24104
24105         ac_cv_type_struct_in6_addr=no
24106 fi
24107
24108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24109 fi
24110 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24111 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24112 if test $ac_cv_type_struct_in6_addr = yes; then
24113
24114 cat >>confdefs.h <<\_ACEOF
24115 #define HAVE_STRUCT_IN6_ADDR 1
24116 _ACEOF
24117
24118 fi
24119
24120
24121 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24122 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24123 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24124   echo $ECHO_N "(cached) $ECHO_C" >&6
24125 else
24126   cat >conftest.$ac_ext <<_ACEOF
24127 /* confdefs.h.  */
24128 _ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h.  */
24132
24133 #ifdef HAVE_NETINET_IN_H
24134 #include <netinet/in.h>
24135 #endif
24136 #ifdef HAVE_SYS_SOCKET_H
24137 #include <sys/socket.h>
24138 #endif
24139
24140
24141 typedef struct sockaddr_storage ac__type_new_;
24142 int
24143 main ()
24144 {
24145 if ((ac__type_new_ *) 0)
24146   return 0;
24147 if (sizeof (ac__type_new_))
24148   return 0;
24149   ;
24150   return 0;
24151 }
24152 _ACEOF
24153 rm -f conftest.$ac_objext
24154 if { (ac_try="$ac_compile"
24155 case "(($ac_try" in
24156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24157   *) ac_try_echo=$ac_try;;
24158 esac
24159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24160   (eval "$ac_compile") 2>conftest.er1
24161   ac_status=$?
24162   grep -v '^ *+' conftest.er1 >conftest.err
24163   rm -f conftest.er1
24164   cat conftest.err >&5
24165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); } &&
24167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
24174   ac_status=$?
24175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176   (exit $ac_status); }; } &&
24177          { ac_try='test -s conftest.$ac_objext'
24178   { (case "(($ac_try" in
24179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180   *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183   (eval "$ac_try") 2>&5
24184   ac_status=$?
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); }; }; then
24187   ac_cv_type_struct_sockaddr_storage=yes
24188 else
24189   echo "$as_me: failed program was:" >&5
24190 sed 's/^/| /' conftest.$ac_ext >&5
24191
24192         ac_cv_type_struct_sockaddr_storage=no
24193 fi
24194
24195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24196 fi
24197 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24198 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24199 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24200
24201 cat >>confdefs.h <<\_ACEOF
24202 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24203 _ACEOF
24204
24205 fi
24206
24207
24208 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24209 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24210 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24211   echo $ECHO_N "(cached) $ECHO_C" >&6
24212 else
24213   cat >conftest.$ac_ext <<_ACEOF
24214 /* confdefs.h.  */
24215 _ACEOF
24216 cat confdefs.h >>conftest.$ac_ext
24217 cat >>conftest.$ac_ext <<_ACEOF
24218 /* end confdefs.h.  */
24219
24220 #ifdef HAVE_NETINET_IN_H
24221 #include <netinet/in.h>
24222 #endif
24223
24224
24225 typedef struct sockaddr_in6 ac__type_new_;
24226 int
24227 main ()
24228 {
24229 if ((ac__type_new_ *) 0)
24230   return 0;
24231 if (sizeof (ac__type_new_))
24232   return 0;
24233   ;
24234   return 0;
24235 }
24236 _ACEOF
24237 rm -f conftest.$ac_objext
24238 if { (ac_try="$ac_compile"
24239 case "(($ac_try" in
24240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24241   *) ac_try_echo=$ac_try;;
24242 esac
24243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24244   (eval "$ac_compile") 2>conftest.er1
24245   ac_status=$?
24246   grep -v '^ *+' conftest.er1 >conftest.err
24247   rm -f conftest.er1
24248   cat conftest.err >&5
24249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250   (exit $ac_status); } &&
24251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24252   { (case "(($ac_try" in
24253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254   *) ac_try_echo=$ac_try;;
24255 esac
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257   (eval "$ac_try") 2>&5
24258   ac_status=$?
24259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260   (exit $ac_status); }; } &&
24261          { ac_try='test -s conftest.$ac_objext'
24262   { (case "(($ac_try" in
24263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24264   *) ac_try_echo=$ac_try;;
24265 esac
24266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24267   (eval "$ac_try") 2>&5
24268   ac_status=$?
24269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24270   (exit $ac_status); }; }; then
24271   ac_cv_type_struct_sockaddr_in6=yes
24272 else
24273   echo "$as_me: failed program was:" >&5
24274 sed 's/^/| /' conftest.$ac_ext >&5
24275
24276         ac_cv_type_struct_sockaddr_in6=no
24277 fi
24278
24279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24280 fi
24281 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24282 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24283 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24284
24285 cat >>confdefs.h <<\_ACEOF
24286 #define HAVE_STRUCT_SOCKADDR_IN6 1
24287 _ACEOF
24288
24289 fi
24290
24291
24292 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24293 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24294 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24295   echo $ECHO_N "(cached) $ECHO_C" >&6
24296 else
24297   cat >conftest.$ac_ext <<_ACEOF
24298 /* confdefs.h.  */
24299 _ACEOF
24300 cat confdefs.h >>conftest.$ac_ext
24301 cat >>conftest.$ac_ext <<_ACEOF
24302 /* end confdefs.h.  */
24303
24304 #ifdef HAVE_SYS_TYPES_H
24305 #include <sys/types.h>
24306 #endif
24307 #ifdef HAVE_SYS_SOCKET_H
24308 #include <sys/socket.h>
24309 #endif
24310 #ifdef HAVE_NETDB_H
24311 #include <netdb.h>
24312 #endif
24313
24314
24315 typedef struct addrinfo ac__type_new_;
24316 int
24317 main ()
24318 {
24319 if ((ac__type_new_ *) 0)
24320   return 0;
24321 if (sizeof (ac__type_new_))
24322   return 0;
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 rm -f conftest.$ac_objext
24328 if { (ac_try="$ac_compile"
24329 case "(($ac_try" in
24330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331   *) ac_try_echo=$ac_try;;
24332 esac
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334   (eval "$ac_compile") 2>conftest.er1
24335   ac_status=$?
24336   grep -v '^ *+' conftest.er1 >conftest.err
24337   rm -f conftest.er1
24338   cat conftest.err >&5
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); } &&
24341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24342   { (case "(($ac_try" in
24343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344   *) ac_try_echo=$ac_try;;
24345 esac
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347   (eval "$ac_try") 2>&5
24348   ac_status=$?
24349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350   (exit $ac_status); }; } &&
24351          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24361   ac_cv_type_struct_addrinfo=yes
24362 else
24363   echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24365
24366         ac_cv_type_struct_addrinfo=no
24367 fi
24368
24369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24370 fi
24371 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24372 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24373 if test $ac_cv_type_struct_addrinfo = yes; then
24374
24375 cat >>confdefs.h <<\_ACEOF
24376 #define HAVE_STRUCT_ADDRINFO 1
24377 _ACEOF
24378
24379 fi
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410 for ac_func in \
24411         getopt_long \
24412         lockf \
24413         strsignal \
24414         sigaction \
24415         sigprocmask \
24416         pthread_sigmask \
24417         snprintf \
24418         vsnprintf \
24419         setsid \
24420         strncasecmp \
24421         strcasecmp \
24422         localtime_r \
24423         ctime_r \
24424         gmtime_r \
24425         strsep \
24426         inet_aton \
24427         inet_pton \
24428         inet_ntop \
24429         setlinebuf \
24430         setvbuf \
24431         getusershell \
24432         initgroups \
24433         getaddrinfo \
24434         getnameinfo \
24435         closefrom \
24436         gettimeofday \
24437         strlcat \
24438         strlcpy
24439
24440 do
24441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24445   echo $ECHO_N "(cached) $ECHO_C" >&6
24446 else
24447   cat >conftest.$ac_ext <<_ACEOF
24448 /* confdefs.h.  */
24449 _ACEOF
24450 cat confdefs.h >>conftest.$ac_ext
24451 cat >>conftest.$ac_ext <<_ACEOF
24452 /* end confdefs.h.  */
24453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24455 #define $ac_func innocuous_$ac_func
24456
24457 /* System header to define __stub macros and hopefully few prototypes,
24458     which can conflict with char $ac_func (); below.
24459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24460     <limits.h> exists even on freestanding compilers.  */
24461
24462 #ifdef __STDC__
24463 # include <limits.h>
24464 #else
24465 # include <assert.h>
24466 #endif
24467
24468 #undef $ac_func
24469
24470 /* Override any GCC internal prototype to avoid an error.
24471    Use char because int might match the return type of a GCC
24472    builtin and then its argument prototype would still apply.  */
24473 #ifdef __cplusplus
24474 extern "C"
24475 #endif
24476 char $ac_func ();
24477 /* The GNU C library defines this for functions which it implements
24478     to always fail with ENOSYS.  Some functions are actually named
24479     something starting with __ and the normal name is an alias.  */
24480 #if defined __stub_$ac_func || defined __stub___$ac_func
24481 choke me
24482 #endif
24483
24484 int
24485 main ()
24486 {
24487 return $ac_func ();
24488   ;
24489   return 0;
24490 }
24491 _ACEOF
24492 rm -f conftest.$ac_objext conftest$ac_exeext
24493 if { (ac_try="$ac_link"
24494 case "(($ac_try" in
24495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496   *) ac_try_echo=$ac_try;;
24497 esac
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499   (eval "$ac_link") 2>conftest.er1
24500   ac_status=$?
24501   grep -v '^ *+' conftest.er1 >conftest.err
24502   rm -f conftest.er1
24503   cat conftest.err >&5
24504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505   (exit $ac_status); } &&
24506          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24507   { (case "(($ac_try" in
24508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24509   *) ac_try_echo=$ac_try;;
24510 esac
24511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24512   (eval "$ac_try") 2>&5
24513   ac_status=$?
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); }; } &&
24516          { ac_try='test -s conftest$ac_exeext'
24517   { (case "(($ac_try" in
24518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519   *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522   (eval "$ac_try") 2>&5
24523   ac_status=$?
24524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); }; }; then
24526   eval "$as_ac_var=yes"
24527 else
24528   echo "$as_me: failed program was:" >&5
24529 sed 's/^/| /' conftest.$ac_ext >&5
24530
24531         eval "$as_ac_var=no"
24532 fi
24533
24534 rm -f core conftest.err conftest.$ac_objext \
24535       conftest$ac_exeext conftest.$ac_ext
24536 fi
24537 ac_res=`eval echo '${'$as_ac_var'}'`
24538                { echo "$as_me:$LINENO: result: $ac_res" >&5
24539 echo "${ECHO_T}$ac_res" >&6; }
24540 if test `eval echo '${'$as_ac_var'}'` = yes; then
24541   cat >>confdefs.h <<_ACEOF
24542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24543 _ACEOF
24544
24545 fi
24546 done
24547
24548 for ac_func in \
24549         crypt \
24550         strncasecmp \
24551         strcasecmp \
24552         inet_aton \
24553         setlinebuf \
24554         getusershell \
24555         endusershell
24556
24557 do
24558 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24559 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24560 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24561   echo $ECHO_N "(cached) $ECHO_C" >&6
24562 else
24563   cat >conftest.$ac_ext <<_ACEOF
24564 /* confdefs.h.  */
24565 _ACEOF
24566 cat confdefs.h >>conftest.$ac_ext
24567 cat >>conftest.$ac_ext <<_ACEOF
24568 /* end confdefs.h.  */
24569
24570 #include <stdio.h>
24571 #include <string.h>
24572 #ifdef HAVE_UNISTD_H
24573 #include <unistd.h>
24574 #endif
24575 #ifdef HAVE_CRYPT_H
24576 #include <crypt.h>
24577 #endif
24578 #ifdef HAVE_ERRNO_H
24579 #include <errno.h>
24580 #endif
24581 #ifdef HAVE_RESOURCE_H
24582 #include <resource.h>
24583 #endif
24584 #ifdef HAVE_GETOPT_H
24585 #include <getopt.h>
24586 #endif
24587 #ifdef HAVE_MALLOC_H
24588 #include <malloc.h>
24589 #endif
24590 #ifdef HAVE_UTMP_H
24591 #include <utmp.h>
24592 #endif
24593 #ifdef HAVE_UTMPX_H
24594 #include <utmpx.h>
24595 #endif
24596 #ifdef HAVE_SYS_SELECT_H
24597 #include <sys/select.h>
24598 #endif
24599 #ifdef HAVE_DLFCN_H
24600 #include <dlfcn.h>
24601 #endif
24602 #ifdef HAVE_REGEX_H
24603 #include <regex.h>
24604 #endif
24605 #ifdef HAVE_SYSLOG_H
24606 #include <syslog.h>
24607 #endif
24608 #ifdef HAVE_INTTYPES_H
24609 #include <inttypes.h>
24610 #endif
24611 #ifdef HAVE_STDINT_H
24612 #include <stdint.h>
24613 #endif
24614 #ifdef HAVE_ARPA_INET_H
24615 #include <arpa/inet.h>
24616 #endif
24617
24618 int
24619 main ()
24620 {
24621 char *(*pfn) = (char *(*)) $ac_func
24622   ;
24623   return 0;
24624 }
24625 _ACEOF
24626 rm -f conftest.$ac_objext
24627 if { (ac_try="$ac_compile"
24628 case "(($ac_try" in
24629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630   *) ac_try_echo=$ac_try;;
24631 esac
24632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24633   (eval "$ac_compile") 2>conftest.er1
24634   ac_status=$?
24635   grep -v '^ *+' conftest.er1 >conftest.err
24636   rm -f conftest.er1
24637   cat conftest.err >&5
24638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639   (exit $ac_status); } &&
24640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24641   { (case "(($ac_try" in
24642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643   *) ac_try_echo=$ac_try;;
24644 esac
24645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646   (eval "$ac_try") 2>&5
24647   ac_status=$?
24648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649   (exit $ac_status); }; } &&
24650          { ac_try='test -s conftest.$ac_objext'
24651   { (case "(($ac_try" in
24652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24653   *) ac_try_echo=$ac_try;;
24654 esac
24655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24656   (eval "$ac_try") 2>&5
24657   ac_status=$?
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); }; }; then
24660   eval "radius_cv_decl_needed_$ac_func=no"
24661 else
24662   echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665         eval "radius_cv_decl_needed_$ac_func=yes"
24666 fi
24667
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 fi
24670
24671 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24672   { echo "$as_me:$LINENO: result: yes" >&5
24673 echo "${ECHO_T}yes" >&6; }
24674   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24675   cat >>confdefs.h <<_ACEOF
24676 #define $radius_tr_decl 1
24677 _ACEOF
24678
24679 else
24680   { echo "$as_me:$LINENO: result: no" >&5
24681 echo "${ECHO_T}no" >&6; }
24682 fi
24683
24684 done
24685
24686
24687 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24688 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24689 if test "${ac_cv_type_signal+set}" = set; then
24690   echo $ECHO_N "(cached) $ECHO_C" >&6
24691 else
24692   cat >conftest.$ac_ext <<_ACEOF
24693 /* confdefs.h.  */
24694 _ACEOF
24695 cat confdefs.h >>conftest.$ac_ext
24696 cat >>conftest.$ac_ext <<_ACEOF
24697 /* end confdefs.h.  */
24698 #include <sys/types.h>
24699 #include <signal.h>
24700
24701 int
24702 main ()
24703 {
24704 return *(signal (0, 0)) (0) == 1;
24705   ;
24706   return 0;
24707 }
24708 _ACEOF
24709 rm -f conftest.$ac_objext
24710 if { (ac_try="$ac_compile"
24711 case "(($ac_try" in
24712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713   *) ac_try_echo=$ac_try;;
24714 esac
24715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24716   (eval "$ac_compile") 2>conftest.er1
24717   ac_status=$?
24718   grep -v '^ *+' conftest.er1 >conftest.err
24719   rm -f conftest.er1
24720   cat conftest.err >&5
24721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722   (exit $ac_status); } &&
24723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24724   { (case "(($ac_try" in
24725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726   *) ac_try_echo=$ac_try;;
24727 esac
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729   (eval "$ac_try") 2>&5
24730   ac_status=$?
24731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732   (exit $ac_status); }; } &&
24733          { ac_try='test -s conftest.$ac_objext'
24734   { (case "(($ac_try" in
24735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24736   *) ac_try_echo=$ac_try;;
24737 esac
24738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24739   (eval "$ac_try") 2>&5
24740   ac_status=$?
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); }; }; then
24743   ac_cv_type_signal=int
24744 else
24745   echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24747
24748         ac_cv_type_signal=void
24749 fi
24750
24751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24752 fi
24753 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24754 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24755
24756 cat >>confdefs.h <<_ACEOF
24757 #define RETSIGTYPE $ac_cv_type_signal
24758 _ACEOF
24759
24760
24761
24762 if test "x$ac_cv_header_utmpx_h" = "xyes"
24763 then
24764
24765   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24766 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24767
24768
24769   cat >conftest.$ac_ext <<_ACEOF
24770 /* confdefs.h.  */
24771 _ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h.  */
24775
24776 #include <utmpx.h>
24777 #ifndef offsetof
24778 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24779 #endif
24780
24781 int
24782 main ()
24783 {
24784  int foo = offsetof(struct utmpx, ut_xtime)
24785   ;
24786   return 0;
24787 }
24788 _ACEOF
24789 rm -f conftest.$ac_objext
24790 if { (ac_try="$ac_compile"
24791 case "(($ac_try" in
24792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793   *) ac_try_echo=$ac_try;;
24794 esac
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796   (eval "$ac_compile") 2>conftest.er1
24797   ac_status=$?
24798   grep -v '^ *+' conftest.er1 >conftest.err
24799   rm -f conftest.er1
24800   cat conftest.err >&5
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); } &&
24803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24804   { (case "(($ac_try" in
24805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806   *) ac_try_echo=$ac_try;;
24807 esac
24808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809   (eval "$ac_try") 2>&5
24810   ac_status=$?
24811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812   (exit $ac_status); }; } &&
24813          { ac_try='test -s conftest.$ac_objext'
24814   { (case "(($ac_try" in
24815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24816   *) ac_try_echo=$ac_try;;
24817 esac
24818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24819   (eval "$ac_try") 2>&5
24820   ac_status=$?
24821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822   (exit $ac_status); }; }; then
24823   has_element=" "
24824 else
24825   echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24827
24828         has_element=
24829 fi
24830
24831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24832
24833   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24834   if test "x$has_element" != "x"; then
24835     { echo "$as_me:$LINENO: result: yes" >&5
24836 echo "${ECHO_T}yes" >&6; }
24837     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24838   else
24839     { echo "$as_me:$LINENO: result: no" >&5
24840 echo "${ECHO_T}no" >&6; }
24841     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24842  fi
24843
24844  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24845  then
24846
24847 cat >>confdefs.h <<\_ACEOF
24848 #define ut_xtime ut_tv.tv_sec
24849 _ACEOF
24850
24851  fi
24852 fi
24853
24854
24855   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24856 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24857
24858
24859   cat >conftest.$ac_ext <<_ACEOF
24860 /* confdefs.h.  */
24861 _ACEOF
24862 cat confdefs.h >>conftest.$ac_ext
24863 cat >>conftest.$ac_ext <<_ACEOF
24864 /* end confdefs.h.  */
24865
24866 #include <netinet/in.h>
24867 #ifndef offsetof
24868 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24869 #endif
24870
24871 int
24872 main ()
24873 {
24874  int foo = offsetof(struct in_pktinfo, ipi_addr)
24875   ;
24876   return 0;
24877 }
24878 _ACEOF
24879 rm -f conftest.$ac_objext
24880 if { (ac_try="$ac_compile"
24881 case "(($ac_try" in
24882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24883   *) ac_try_echo=$ac_try;;
24884 esac
24885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24886   (eval "$ac_compile") 2>conftest.er1
24887   ac_status=$?
24888   grep -v '^ *+' conftest.er1 >conftest.err
24889   rm -f conftest.er1
24890   cat conftest.err >&5
24891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892   (exit $ac_status); } &&
24893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24894   { (case "(($ac_try" in
24895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896   *) ac_try_echo=$ac_try;;
24897 esac
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899   (eval "$ac_try") 2>&5
24900   ac_status=$?
24901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902   (exit $ac_status); }; } &&
24903          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24913   has_element=" "
24914 else
24915   echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24917
24918         has_element=
24919 fi
24920
24921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922
24923   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24924   if test "x$has_element" != "x"; then
24925     { echo "$as_me:$LINENO: result: yes" >&5
24926 echo "${ECHO_T}yes" >&6; }
24927     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24928   else
24929     { echo "$as_me:$LINENO: result: no" >&5
24930 echo "${ECHO_T}no" >&6; }
24931     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24932  fi
24933
24934 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24935 then
24936
24937 cat >>confdefs.h <<\_ACEOF
24938 #define HAVE_IP_PKTINFO
24939 _ACEOF
24940
24941 fi
24942
24943
24944   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24945 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24946
24947
24948   cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h.  */
24950 _ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h.  */
24954
24955 #include <netinet/in.h>
24956 #ifndef offsetof
24957 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24958 #endif
24959
24960 int
24961 main ()
24962 {
24963  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24964   ;
24965   return 0;
24966 }
24967 _ACEOF
24968 rm -f conftest.$ac_objext
24969 if { (ac_try="$ac_compile"
24970 case "(($ac_try" in
24971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972   *) ac_try_echo=$ac_try;;
24973 esac
24974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975   (eval "$ac_compile") 2>conftest.er1
24976   ac_status=$?
24977   grep -v '^ *+' conftest.er1 >conftest.err
24978   rm -f conftest.er1
24979   cat conftest.err >&5
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); } &&
24982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24983   { (case "(($ac_try" in
24984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985   *) ac_try_echo=$ac_try;;
24986 esac
24987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988   (eval "$ac_try") 2>&5
24989   ac_status=$?
24990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); }; } &&
24992          { ac_try='test -s conftest.$ac_objext'
24993   { (case "(($ac_try" in
24994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995   *) ac_try_echo=$ac_try;;
24996 esac
24997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24998   (eval "$ac_try") 2>&5
24999   ac_status=$?
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); }; }; then
25002   has_element=" "
25003 else
25004   echo "$as_me: failed program was:" >&5
25005 sed 's/^/| /' conftest.$ac_ext >&5
25006
25007         has_element=
25008 fi
25009
25010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25011
25012   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
25013   if test "x$has_element" != "x"; then
25014     { echo "$as_me:$LINENO: result: yes" >&5
25015 echo "${ECHO_T}yes" >&6; }
25016     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
25017   else
25018     { echo "$as_me:$LINENO: result: no" >&5
25019 echo "${ECHO_T}no" >&6; }
25020     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
25021  fi
25022
25023 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
25024 then
25025
25026 cat >>confdefs.h <<\_ACEOF
25027 #define HAVE_IN6_PKTINFO
25028 _ACEOF
25029
25030 fi
25031
25032
25033 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25034 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25035 if test "${ac_cv_c_const+set}" = set; then
25036   echo $ECHO_N "(cached) $ECHO_C" >&6
25037 else
25038   cat >conftest.$ac_ext <<_ACEOF
25039 /* confdefs.h.  */
25040 _ACEOF
25041 cat confdefs.h >>conftest.$ac_ext
25042 cat >>conftest.$ac_ext <<_ACEOF
25043 /* end confdefs.h.  */
25044
25045 int
25046 main ()
25047 {
25048 /* FIXME: Include the comments suggested by Paul. */
25049 #ifndef __cplusplus
25050   /* Ultrix mips cc rejects this.  */
25051   typedef int charset[2];
25052   const charset x;
25053   /* SunOS 4.1.1 cc rejects this.  */
25054   char const *const *ccp;
25055   char **p;
25056   /* NEC SVR4.0.2 mips cc rejects this.  */
25057   struct point {int x, y;};
25058   static struct point const zero = {0,0};
25059   /* AIX XL C 1.02.0.0 rejects this.
25060      It does not let you subtract one const X* pointer from another in
25061      an arm of an if-expression whose if-part is not a constant
25062      expression */
25063   const char *g = "string";
25064   ccp = &g + (g ? g-g : 0);
25065   /* HPUX 7.0 cc rejects these. */
25066   ++ccp;
25067   p = (char**) ccp;
25068   ccp = (char const *const *) p;
25069   { /* SCO 3.2v4 cc rejects this.  */
25070     char *t;
25071     char const *s = 0 ? (char *) 0 : (char const *) 0;
25072
25073     *t++ = 0;
25074     if (s) return 0;
25075   }
25076   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25077     int x[] = {25, 17};
25078     const int *foo = &x[0];
25079     ++foo;
25080   }
25081   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25082     typedef const int *iptr;
25083     iptr p = 0;
25084     ++p;
25085   }
25086   { /* AIX XL C 1.02.0.0 rejects this saying
25087        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25088     struct s { int j; const int *ap[3]; };
25089     struct s *b; b->j = 5;
25090   }
25091   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25092     const int foo = 10;
25093     if (!foo) return 0;
25094   }
25095   return !x[0] && !zero.x;
25096 #endif
25097
25098   ;
25099   return 0;
25100 }
25101 _ACEOF
25102 rm -f conftest.$ac_objext
25103 if { (ac_try="$ac_compile"
25104 case "(($ac_try" in
25105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106   *) ac_try_echo=$ac_try;;
25107 esac
25108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25109   (eval "$ac_compile") 2>conftest.er1
25110   ac_status=$?
25111   grep -v '^ *+' conftest.er1 >conftest.err
25112   rm -f conftest.er1
25113   cat conftest.err >&5
25114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115   (exit $ac_status); } &&
25116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25117   { (case "(($ac_try" in
25118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25119   *) ac_try_echo=$ac_try;;
25120 esac
25121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25122   (eval "$ac_try") 2>&5
25123   ac_status=$?
25124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125   (exit $ac_status); }; } &&
25126          { ac_try='test -s conftest.$ac_objext'
25127   { (case "(($ac_try" in
25128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25129   *) ac_try_echo=$ac_try;;
25130 esac
25131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25132   (eval "$ac_try") 2>&5
25133   ac_status=$?
25134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25135   (exit $ac_status); }; }; then
25136   ac_cv_c_const=yes
25137 else
25138   echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25140
25141         ac_cv_c_const=no
25142 fi
25143
25144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25145 fi
25146 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25147 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25148 if test $ac_cv_c_const = no; then
25149
25150 cat >>confdefs.h <<\_ACEOF
25151 #define const
25152 _ACEOF
25153
25154 fi
25155
25156
25157 { echo "$as_me:$LINENO: checking type of OS" >&5
25158 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
25159 OS=`uname -s`
25160 { echo "$as_me:$LINENO: result: $OS" >&5
25161 echo "${ECHO_T}$OS" >&6; }
25162 if test "$OS" = "OS/2"; then
25163         LIBPREFIX=
25164 else
25165         LIBPREFIX=lib
25166 fi
25167
25168
25169 if test "x$GCC" = "xyes"; then
25170     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
25171 fi
25172
25173 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
25174 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
25175 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
25176   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
25177   CFLAGS="$CFLAGS $devflags"
25178   INSTALLSTRIP=""
25179   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
25180 echo "${ECHO_T}yes.  Using $devflags" >&6; }
25181 else
25182   devflags=""
25183   CFLAGS="$CFLAGS -DNDEBUG"
25184   INSTALLSTRIP="-s"
25185   { echo "$as_me:$LINENO: result: no." >&5
25186 echo "${ECHO_T}no." >&6; }
25187 fi
25188
25189
25190 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25191 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25192 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25193   echo $ECHO_N "(cached) $ECHO_C" >&6
25194 else
25195   ac_check_lib_save_LIBS=$LIBS
25196 LIBS="-lcrypt  $LIBS"
25197 cat >conftest.$ac_ext <<_ACEOF
25198 /* confdefs.h.  */
25199 _ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h.  */
25203
25204 /* Override any GCC internal prototype to avoid an error.
25205    Use char because int might match the return type of a GCC
25206    builtin and then its argument prototype would still apply.  */
25207 #ifdef __cplusplus
25208 extern "C"
25209 #endif
25210 char crypt ();
25211 int
25212 main ()
25213 {
25214 return crypt ();
25215   ;
25216   return 0;
25217 }
25218 _ACEOF
25219 rm -f conftest.$ac_objext conftest$ac_exeext
25220 if { (ac_try="$ac_link"
25221 case "(($ac_try" in
25222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25223   *) ac_try_echo=$ac_try;;
25224 esac
25225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25226   (eval "$ac_link") 2>conftest.er1
25227   ac_status=$?
25228   grep -v '^ *+' conftest.er1 >conftest.err
25229   rm -f conftest.er1
25230   cat conftest.err >&5
25231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232   (exit $ac_status); } &&
25233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25234   { (case "(($ac_try" in
25235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236   *) ac_try_echo=$ac_try;;
25237 esac
25238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239   (eval "$ac_try") 2>&5
25240   ac_status=$?
25241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242   (exit $ac_status); }; } &&
25243          { ac_try='test -s conftest$ac_exeext'
25244   { (case "(($ac_try" in
25245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246   *) ac_try_echo=$ac_try;;
25247 esac
25248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25249   (eval "$ac_try") 2>&5
25250   ac_status=$?
25251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252   (exit $ac_status); }; }; then
25253   ac_cv_lib_crypt_crypt=yes
25254 else
25255   echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25257
25258         ac_cv_lib_crypt_crypt=no
25259 fi
25260
25261 rm -f core conftest.err conftest.$ac_objext \
25262       conftest$ac_exeext conftest.$ac_ext
25263 LIBS=$ac_check_lib_save_LIBS
25264 fi
25265 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25266 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25267 if test $ac_cv_lib_crypt_crypt = yes; then
25268   CRYPTLIB="-lcrypt"
25269
25270 fi
25271
25272 if test "$CRYPTLIB" != ""; then
25273
25274 cat >>confdefs.h <<\_ACEOF
25275 #define HAVE_CRYPT
25276 _ACEOF
25277
25278 else
25279   { echo "$as_me:$LINENO: checking for crypt" >&5
25280 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25281 if test "${ac_cv_func_crypt+set}" = set; then
25282   echo $ECHO_N "(cached) $ECHO_C" >&6
25283 else
25284   cat >conftest.$ac_ext <<_ACEOF
25285 /* confdefs.h.  */
25286 _ACEOF
25287 cat confdefs.h >>conftest.$ac_ext
25288 cat >>conftest.$ac_ext <<_ACEOF
25289 /* end confdefs.h.  */
25290 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25292 #define crypt innocuous_crypt
25293
25294 /* System header to define __stub macros and hopefully few prototypes,
25295     which can conflict with char crypt (); below.
25296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25297     <limits.h> exists even on freestanding compilers.  */
25298
25299 #ifdef __STDC__
25300 # include <limits.h>
25301 #else
25302 # include <assert.h>
25303 #endif
25304
25305 #undef crypt
25306
25307 /* Override any GCC internal prototype to avoid an error.
25308    Use char because int might match the return type of a GCC
25309    builtin and then its argument prototype would still apply.  */
25310 #ifdef __cplusplus
25311 extern "C"
25312 #endif
25313 char crypt ();
25314 /* The GNU C library defines this for functions which it implements
25315     to always fail with ENOSYS.  Some functions are actually named
25316     something starting with __ and the normal name is an alias.  */
25317 #if defined __stub_crypt || defined __stub___crypt
25318 choke me
25319 #endif
25320
25321 int
25322 main ()
25323 {
25324 return crypt ();
25325   ;
25326   return 0;
25327 }
25328 _ACEOF
25329 rm -f conftest.$ac_objext conftest$ac_exeext
25330 if { (ac_try="$ac_link"
25331 case "(($ac_try" in
25332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333   *) ac_try_echo=$ac_try;;
25334 esac
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336   (eval "$ac_link") 2>conftest.er1
25337   ac_status=$?
25338   grep -v '^ *+' conftest.er1 >conftest.err
25339   rm -f conftest.er1
25340   cat conftest.err >&5
25341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342   (exit $ac_status); } &&
25343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
25353          { ac_try='test -s conftest$ac_exeext'
25354   { (case "(($ac_try" in
25355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25356   *) ac_try_echo=$ac_try;;
25357 esac
25358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25359   (eval "$ac_try") 2>&5
25360   ac_status=$?
25361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362   (exit $ac_status); }; }; then
25363   ac_cv_func_crypt=yes
25364 else
25365   echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368         ac_cv_func_crypt=no
25369 fi
25370
25371 rm -f core conftest.err conftest.$ac_objext \
25372       conftest$ac_exeext conftest.$ac_ext
25373 fi
25374 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25375 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25376 if test $ac_cv_func_crypt = yes; then
25377
25378 cat >>confdefs.h <<\_ACEOF
25379 #define HAVE_CRYPT
25380 _ACEOF
25381
25382 fi
25383
25384 fi
25385
25386 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25387 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25388 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25389   echo $ECHO_N "(cached) $ECHO_C" >&6
25390 else
25391   ac_check_lib_save_LIBS=$LIBS
25392 LIBS="-lcipher  $LIBS"
25393 cat >conftest.$ac_ext <<_ACEOF
25394 /* confdefs.h.  */
25395 _ACEOF
25396 cat confdefs.h >>conftest.$ac_ext
25397 cat >>conftest.$ac_ext <<_ACEOF
25398 /* end confdefs.h.  */
25399
25400 /* Override any GCC internal prototype to avoid an error.
25401    Use char because int might match the return type of a GCC
25402    builtin and then its argument prototype would still apply.  */
25403 #ifdef __cplusplus
25404 extern "C"
25405 #endif
25406 char setkey ();
25407 int
25408 main ()
25409 {
25410 return setkey ();
25411   ;
25412   return 0;
25413 }
25414 _ACEOF
25415 rm -f conftest.$ac_objext conftest$ac_exeext
25416 if { (ac_try="$ac_link"
25417 case "(($ac_try" in
25418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419   *) ac_try_echo=$ac_try;;
25420 esac
25421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25422   (eval "$ac_link") 2>conftest.er1
25423   ac_status=$?
25424   grep -v '^ *+' conftest.er1 >conftest.err
25425   rm -f conftest.er1
25426   cat conftest.err >&5
25427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428   (exit $ac_status); } &&
25429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25430   { (case "(($ac_try" in
25431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25432   *) ac_try_echo=$ac_try;;
25433 esac
25434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25435   (eval "$ac_try") 2>&5
25436   ac_status=$?
25437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438   (exit $ac_status); }; } &&
25439          { ac_try='test -s conftest$ac_exeext'
25440   { (case "(($ac_try" in
25441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25442   *) ac_try_echo=$ac_try;;
25443 esac
25444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25445   (eval "$ac_try") 2>&5
25446   ac_status=$?
25447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448   (exit $ac_status); }; }; then
25449   ac_cv_lib_cipher_setkey=yes
25450 else
25451   echo "$as_me: failed program was:" >&5
25452 sed 's/^/| /' conftest.$ac_ext >&5
25453
25454         ac_cv_lib_cipher_setkey=no
25455 fi
25456
25457 rm -f core conftest.err conftest.$ac_objext \
25458       conftest$ac_exeext conftest.$ac_ext
25459 LIBS=$ac_check_lib_save_LIBS
25460 fi
25461 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25462 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25463 if test $ac_cv_lib_cipher_setkey = yes; then
25464   CRYPTLIB="${CRYPTLIB} -lcipher"
25465
25466 fi
25467
25468
25469
25470 if test "x$WITH_SNMP" = "xyes"; then
25471
25472
25473
25474
25475 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
25476 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
25477
25478 cat >conftest.$ac_ext <<_ACEOF
25479 /* confdefs.h.  */
25480 _ACEOF
25481 cat confdefs.h >>conftest.$ac_ext
25482 cat >>conftest.$ac_ext <<_ACEOF
25483 /* end confdefs.h.  */
25484
25485 #ifdef HAVE_SYS_TYPES_H
25486 #include <sys/types.h>
25487 #endif
25488 #ifdef HAVE_STDINT_H
25489 #include <stdint.h>
25490 #endif
25491 #ifdef HAVE_STDIO_H
25492 #include <stdio.h>
25493 #endif
25494 #ifdef HAVE_NETDB_H
25495 #include <netdb.h>
25496 #endif
25497 #ifdef HAVE_UNISTD_H
25498 #include <unistd.h>
25499 #endif
25500 #include <ucd-snmp/ucd-snmp-config.h>
25501 #include <ucd-snmp/asn1.h>
25502 #include <ucd-snmp/snmp.h>
25503 #include <ucd-snmp/snmp_impl.h>
25504 int
25505 main ()
25506 {
25507  int a = 1;
25508   ;
25509   return 0;
25510 }
25511 _ACEOF
25512 rm -f conftest.$ac_objext
25513 if { (ac_try="$ac_compile"
25514 case "(($ac_try" in
25515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516   *) ac_try_echo=$ac_try;;
25517 esac
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519   (eval "$ac_compile") 2>conftest.er1
25520   ac_status=$?
25521   grep -v '^ *+' conftest.er1 >conftest.err
25522   rm -f conftest.er1
25523   cat conftest.err >&5
25524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525   (exit $ac_status); } &&
25526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25527   { (case "(($ac_try" in
25528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25529   *) ac_try_echo=$ac_try;;
25530 esac
25531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25532   (eval "$ac_try") 2>&5
25533   ac_status=$?
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); }; } &&
25536          { ac_try='test -s conftest.$ac_objext'
25537   { (case "(($ac_try" in
25538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25539   *) ac_try_echo=$ac_try;;
25540 esac
25541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25542   (eval "$ac_try") 2>&5
25543   ac_status=$?
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); }; }; then
25546   SNMP_INCLUDE="";ucdsnmp=yes
25547 else
25548   echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.$ac_ext >&5
25550
25551         ucdsnmp=
25552 fi
25553
25554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25555
25556 if test "x$ucdsnmp" = "x"; then
25557   old_CFLAGS="$CFLAGS"
25558   for try in /usr/include /usr/local/include $snmp_include_dir; do
25559     CFLAGS="$old_CFLAGS -I$try"
25560     cat >conftest.$ac_ext <<_ACEOF
25561 /* confdefs.h.  */
25562 _ACEOF
25563 cat confdefs.h >>conftest.$ac_ext
25564 cat >>conftest.$ac_ext <<_ACEOF
25565 /* end confdefs.h.  */
25566
25567 #ifdef HAVE_SYS_TYPES_H
25568 #include <sys/types.h>
25569 #endif
25570 #ifdef HAVE_STDINT_H
25571 #include <stdint.h>
25572 #endif
25573 #ifdef HAVE_STDIO_H
25574 #include <stdio.h>
25575 #endif
25576 #ifdef HAVE_NETDB_H
25577 #include <netdb.h>
25578 #endif
25579 #ifdef HAVE_UNISTD_H
25580 #include <unistd.h>
25581 #endif
25582 #include <ucd-snmp/ucd-snmp-config.h>
25583 #include <ucd-snmp/asn1.h>
25584 #include <ucd-snmp/snmp.h>
25585 #include <ucd-snmp/snmp_impl.h>
25586 int
25587 main ()
25588 {
25589  int a = 1;
25590   ;
25591   return 0;
25592 }
25593 _ACEOF
25594 rm -f conftest.$ac_objext
25595 if { (ac_try="$ac_compile"
25596 case "(($ac_try" in
25597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25598   *) ac_try_echo=$ac_try;;
25599 esac
25600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25601   (eval "$ac_compile") 2>conftest.er1
25602   ac_status=$?
25603   grep -v '^ *+' conftest.er1 >conftest.err
25604   rm -f conftest.er1
25605   cat conftest.err >&5
25606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607   (exit $ac_status); } &&
25608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25609   { (case "(($ac_try" in
25610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25611   *) ac_try_echo=$ac_try;;
25612 esac
25613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25614   (eval "$ac_try") 2>&5
25615   ac_status=$?
25616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25617   (exit $ac_status); }; } &&
25618          { ac_try='test -s conftest.$ac_objext'
25619   { (case "(($ac_try" in
25620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621   *) ac_try_echo=$ac_try;;
25622 esac
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624   (eval "$ac_try") 2>&5
25625   ac_status=$?
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); }; }; then
25628   SNMP_INCLUDE="-I$try";ucdsnmp=yes
25629 else
25630   echo "$as_me: failed program was:" >&5
25631 sed 's/^/| /' conftest.$ac_ext >&5
25632
25633         ucdsnmp=
25634 fi
25635
25636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25637     if test "x$ucdsnmp" != "x"; then
25638       break;
25639     fi
25640   done
25641   CFLAGS="$old_CFLAGS"
25642 fi
25643
25644 if test "x$ucdsnmp" = "x"; then
25645   old_CFLAGS="$CFLAGS"
25646   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
25647     CFLAGS="$old_CFLAGS -I$try"
25648 cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654
25655 #ifdef HAVE_SYS_TYPES_H
25656 #include <sys/types.h>
25657 #endif
25658 #ifdef HAVE_STDINT_H
25659 #include <stdint.h>
25660 #endif
25661 #ifdef HAVE_STDIO_H
25662 #include <stdio.h>
25663 #endif
25664 #ifdef HAVE_NETDB_H
25665 #include <netdb.h>
25666 #endif
25667 #ifdef HAVE_UNISTD_H
25668 #include <unistd.h>
25669 #endif
25670 #include <asn1.h>
25671 #include <snmp.h>
25672 #include <snmp_impl.h>
25673 int
25674 main ()
25675 {
25676  int a = 1;
25677   ;
25678   return 0;
25679 }
25680 _ACEOF
25681 rm -f conftest.$ac_objext
25682 if { (ac_try="$ac_compile"
25683 case "(($ac_try" in
25684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685   *) ac_try_echo=$ac_try;;
25686 esac
25687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25688   (eval "$ac_compile") 2>conftest.er1
25689   ac_status=$?
25690   grep -v '^ *+' conftest.er1 >conftest.err
25691   rm -f conftest.er1
25692   cat conftest.err >&5
25693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694   (exit $ac_status); } &&
25695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
25702   ac_status=$?
25703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704   (exit $ac_status); }; } &&
25705          { ac_try='test -s conftest.$ac_objext'
25706   { (case "(($ac_try" in
25707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25708   *) ac_try_echo=$ac_try;;
25709 esac
25710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25711   (eval "$ac_try") 2>&5
25712   ac_status=$?
25713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714   (exit $ac_status); }; }; then
25715   SNMP_INCLUDE="";ucdsnmp=no
25716 else
25717   echo "$as_me: failed program was:" >&5
25718 sed 's/^/| /' conftest.$ac_ext >&5
25719
25720         ucdsnmp=
25721 fi
25722
25723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25724     if test "x$ucdsnmp" != "x"; then
25725       break;
25726     fi
25727   done
25728   CFLAGS="$old_CFLAGS"
25729 fi
25730
25731 if test "x$ucdsnmp" = "x"; then
25732   old_CFLAGS="$CFLAGS"
25733   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
25734     CFLAGS="$old_CFLAGS -I$try"
25735     cat >conftest.$ac_ext <<_ACEOF
25736 /* confdefs.h.  */
25737 _ACEOF
25738 cat confdefs.h >>conftest.$ac_ext
25739 cat >>conftest.$ac_ext <<_ACEOF
25740 /* end confdefs.h.  */
25741
25742 #ifdef HAVE_SYS_TYPES_H
25743 #include <sys/types.h>
25744 #endif
25745 #ifdef HAVE_STDINT_H
25746 #include <stdint.h>
25747 #endif
25748 #ifdef HAVE_STDIO_H
25749 #include <stdio.h>
25750 #endif
25751 #ifdef HAVE_NETDB_H
25752 #include <netdb.h>
25753 #endif
25754 #ifdef HAVE_UNISTD_H
25755 #include <unistd.h>
25756 #endif
25757 #include <asn1.h>
25758 #include <snmp.h>
25759 #include <snmp_impl.h>
25760 int
25761 main ()
25762 {
25763  int a = 1;
25764   ;
25765   return 0;
25766 }
25767 _ACEOF
25768 rm -f conftest.$ac_objext
25769 if { (ac_try="$ac_compile"
25770 case "(($ac_try" in
25771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25772   *) ac_try_echo=$ac_try;;
25773 esac
25774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25775   (eval "$ac_compile") 2>conftest.er1
25776   ac_status=$?
25777   grep -v '^ *+' conftest.er1 >conftest.err
25778   rm -f conftest.er1
25779   cat conftest.err >&5
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); } &&
25782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
25789   ac_status=$?
25790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791   (exit $ac_status); }; } &&
25792          { ac_try='test -s conftest.$ac_objext'
25793   { (case "(($ac_try" in
25794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25795   *) ac_try_echo=$ac_try;;
25796 esac
25797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25798   (eval "$ac_try") 2>&5
25799   ac_status=$?
25800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801   (exit $ac_status); }; }; then
25802   SNMP_INCLUDE="-I$try";ucdsnmp=no
25803 else
25804   echo "$as_me: failed program was:" >&5
25805 sed 's/^/| /' conftest.$ac_ext >&5
25806
25807         ucdsnmp=
25808 fi
25809
25810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25811     if test "x$ucdsnmp" != "x"; then
25812       break;
25813     fi
25814   done
25815   CFLAGS="$old_CFLAGS"
25816 fi
25817
25818 if test "x$ucdsnmp" = "x"; then
25819   { echo "$as_me:$LINENO: result: no" >&5
25820 echo "${ECHO_T}no" >&6; }
25821 else
25822   if test "x$ucdsnmp" = "xyes"; then
25823     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
25824 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
25825
25826 cat >>confdefs.h <<\_ACEOF
25827 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
25828 _ACEOF
25829
25830   else
25831     { echo "$as_me:$LINENO: result: yes" >&5
25832 echo "${ECHO_T}yes" >&6; }
25833
25834 cat >>confdefs.h <<\_ACEOF
25835 #define HAVE_ASN1_SNMP_SNMPIMPL_H
25836 _ACEOF
25837
25838   fi
25839   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
25840 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
25841
25842   old_LIBS="$LIBS"
25843   LIBS="$old_LIBS -lsnmp"
25844   cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h.  */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h.  */
25850 extern char snmp_build_var_op();
25851 int
25852 main ()
25853 {
25854  snmp_build_var_op()
25855   ;
25856   return 0;
25857 }
25858 _ACEOF
25859 rm -f conftest.$ac_objext conftest$ac_exeext
25860 if { (ac_try="$ac_link"
25861 case "(($ac_try" in
25862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863   *) ac_try_echo=$ac_try;;
25864 esac
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866   (eval "$ac_link") 2>conftest.er1
25867   ac_status=$?
25868   grep -v '^ *+' conftest.er1 >conftest.err
25869   rm -f conftest.er1
25870   cat conftest.err >&5
25871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872   (exit $ac_status); } &&
25873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25874   { (case "(($ac_try" in
25875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25876   *) ac_try_echo=$ac_try;;
25877 esac
25878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25879   (eval "$ac_try") 2>&5
25880   ac_status=$?
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); }; } &&
25883          { ac_try='test -s conftest$ac_exeext'
25884   { (case "(($ac_try" in
25885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25886   *) ac_try_echo=$ac_try;;
25887 esac
25888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25889   (eval "$ac_try") 2>&5
25890   ac_status=$?
25891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892   (exit $ac_status); }; }; then
25893   SNMP_LIBS="-lsnmp"
25894 else
25895   echo "$as_me: failed program was:" >&5
25896 sed 's/^/| /' conftest.$ac_ext >&5
25897
25898         SNMP_LIBS=
25899 fi
25900
25901 rm -f core conftest.err conftest.$ac_objext \
25902       conftest$ac_exeext conftest.$ac_ext
25903
25904   if test "x$SNMP_LIBS" = "x"; then
25905     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
25906       LIBS="$old_LIBS -L$try -lsnmp"
25907       cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h.  */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h.  */
25913 extern char snmp_build_var_op();
25914 int
25915 main ()
25916 {
25917  snmp_build_var_op()
25918   ;
25919   return 0;
25920 }
25921 _ACEOF
25922 rm -f conftest.$ac_objext conftest$ac_exeext
25923 if { (ac_try="$ac_link"
25924 case "(($ac_try" in
25925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25926   *) ac_try_echo=$ac_try;;
25927 esac
25928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25929   (eval "$ac_link") 2>conftest.er1
25930   ac_status=$?
25931   grep -v '^ *+' conftest.er1 >conftest.err
25932   rm -f conftest.er1
25933   cat conftest.err >&5
25934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935   (exit $ac_status); } &&
25936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25937   { (case "(($ac_try" in
25938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25939   *) ac_try_echo=$ac_try;;
25940 esac
25941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25942   (eval "$ac_try") 2>&5
25943   ac_status=$?
25944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945   (exit $ac_status); }; } &&
25946          { ac_try='test -s conftest$ac_exeext'
25947   { (case "(($ac_try" in
25948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25949   *) ac_try_echo=$ac_try;;
25950 esac
25951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952   (eval "$ac_try") 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); }; }; then
25956   SNMP_LIBS="-L$try -lsnmp"
25957 else
25958   echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25960
25961         SNMP_LIBS=
25962 fi
25963
25964 rm -f core conftest.err conftest.$ac_objext \
25965       conftest$ac_exeext conftest.$ac_ext
25966       if test "x$SNMP_LIBS" != "x"; then
25967         break;
25968       fi
25969       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
25970       cat >conftest.$ac_ext <<_ACEOF
25971 /* confdefs.h.  */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h.  */
25976 extern char snmp_build_var_op();
25977 int
25978 main ()
25979 {
25980  snmp_build_var_op()
25981   ;
25982   return 0;
25983 }
25984 _ACEOF
25985 rm -f conftest.$ac_objext conftest$ac_exeext
25986 if { (ac_try="$ac_link"
25987 case "(($ac_try" in
25988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989   *) ac_try_echo=$ac_try;;
25990 esac
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992   (eval "$ac_link") 2>conftest.er1
25993   ac_status=$?
25994   grep -v '^ *+' conftest.er1 >conftest.err
25995   rm -f conftest.er1
25996   cat conftest.err >&5
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); } &&
25999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26000   { (case "(($ac_try" in
26001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26002   *) ac_try_echo=$ac_try;;
26003 esac
26004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26005   (eval "$ac_try") 2>&5
26006   ac_status=$?
26007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008   (exit $ac_status); }; } &&
26009          { ac_try='test -s conftest$ac_exeext'
26010   { (case "(($ac_try" in
26011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26012   *) ac_try_echo=$ac_try;;
26013 esac
26014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26015   (eval "$ac_try") 2>&5
26016   ac_status=$?
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); }; }; then
26019   SNMP_LIBS="-L$try -lsnmp -lcrypto"
26020 else
26021   echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024         SNMP_LIBS=
26025 fi
26026
26027 rm -f core conftest.err conftest.$ac_objext \
26028       conftest$ac_exeext conftest.$ac_ext
26029       if test "x$SNMP_LIBS" != "x"; then
26030         break;
26031       fi
26032       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
26033       cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039 extern char snmp_build_var_op();
26040 int
26041 main ()
26042 {
26043  snmp_build_var_op()
26044   ;
26045   return 0;
26046 }
26047 _ACEOF
26048 rm -f conftest.$ac_objext conftest$ac_exeext
26049 if { (ac_try="$ac_link"
26050 case "(($ac_try" in
26051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26052   *) ac_try_echo=$ac_try;;
26053 esac
26054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26055   (eval "$ac_link") 2>conftest.er1
26056   ac_status=$?
26057   grep -v '^ *+' conftest.er1 >conftest.err
26058   rm -f conftest.er1
26059   cat conftest.err >&5
26060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061   (exit $ac_status); } &&
26062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26063   { (case "(($ac_try" in
26064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26065   *) ac_try_echo=$ac_try;;
26066 esac
26067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26068   (eval "$ac_try") 2>&5
26069   ac_status=$?
26070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071   (exit $ac_status); }; } &&
26072          { ac_try='test -s conftest$ac_exeext'
26073   { (case "(($ac_try" in
26074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26075   *) ac_try_echo=$ac_try;;
26076 esac
26077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26078   (eval "$ac_try") 2>&5
26079   ac_status=$?
26080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081   (exit $ac_status); }; }; then
26082   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
26083 else
26084   echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26086
26087         SNMP_LIBS=
26088 fi
26089
26090 rm -f core conftest.err conftest.$ac_objext \
26091       conftest$ac_exeext conftest.$ac_ext
26092       if test "x$SNMP_LIBS" != "x"; then
26093         break;
26094       fi
26095     done
26096   fi
26097   LIBS="$old_LIBS"
26098
26099           CFLAGS="$old_CFLAGS"
26100   if test "x$SNMP_LIBS" = "x"; then
26101     { echo "$as_me:$LINENO: result: no" >&5
26102 echo "${ECHO_T}no" >&6; }
26103     SNMP_INCLUDE=
26104   else
26105     { echo "$as_me:$LINENO: result: yes" >&5
26106 echo "${ECHO_T}yes" >&6; }
26107
26108 cat >>confdefs.h <<\_ACEOF
26109 #define WITH_SNMP
26110 _ACEOF
26111
26112
26113 cat >>confdefs.h <<\_ACEOF
26114 #define HAVE_LIBSNMP
26115 _ACEOF
26116
26117   fi
26118 fi
26119
26120 fi
26121
26122
26123 cat >>confdefs.h <<\_ACEOF
26124 #define GNUSTYLE 1
26125 _ACEOF
26126
26127
26128 cat >>confdefs.h <<\_ACEOF
26129 #define SYSVSTYLE 2
26130 _ACEOF
26131
26132
26133 cat >>confdefs.h <<\_ACEOF
26134 #define BSDSTYLE 3
26135 _ACEOF
26136
26137 gethostbyaddrrstyle=""
26138 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
26139 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
26140 case "$host" in
26141 *-freebsd45.*|*-freebsd6.01)
26142
26143 cat >>confdefs.h <<\_ACEOF
26144 #define GETHOSTBYADDRRSTYLE BSDSTYLE
26145 _ACEOF
26146
26147         gethostbyaddrrstyle=BSD
26148         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
26149 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
26150         ;;
26151 esac
26152 if test "x$gethostbyaddrrstyle" = "x"; then
26153         cat >conftest.$ac_ext <<_ACEOF
26154 /* confdefs.h.  */
26155 _ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
26158 /* end confdefs.h.  */
26159
26160 #include <stdio.h>
26161 #include <netdb.h>
26162
26163 int
26164 main ()
26165 {
26166  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
26167   ;
26168   return 0;
26169 }
26170 _ACEOF
26171 rm -f conftest.$ac_objext conftest$ac_exeext
26172 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
26179   ac_status=$?
26180   grep -v '^ *+' conftest.er1 >conftest.err
26181   rm -f conftest.er1
26182   cat conftest.err >&5
26183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184   (exit $ac_status); } &&
26185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26186   { (case "(($ac_try" in
26187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26188   *) ac_try_echo=$ac_try;;
26189 esac
26190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26191   (eval "$ac_try") 2>&5
26192   ac_status=$?
26193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194   (exit $ac_status); }; } &&
26195          { ac_try='test -s conftest$ac_exeext'
26196   { (case "(($ac_try" in
26197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26198   *) ac_try_echo=$ac_try;;
26199 esac
26200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26201   (eval "$ac_try") 2>&5
26202   ac_status=$?
26203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204   (exit $ac_status); }; }; then
26205
26206
26207 cat >>confdefs.h <<\_ACEOF
26208 #define GETHOSTBYADDRRSTYLE GNUSTYLE
26209 _ACEOF
26210
26211         gethostbyaddrrstyle=GNU
26212
26213 else
26214   echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.$ac_ext >&5
26216
26217
26218 fi
26219
26220 rm -f core conftest.err conftest.$ac_objext \
26221       conftest$ac_exeext conftest.$ac_ext
26222 fi
26223 if test "x$gethostbyaddrrstyle" = "x"; then
26224         cat >conftest.$ac_ext <<_ACEOF
26225 /* confdefs.h.  */
26226 _ACEOF
26227 cat confdefs.h >>conftest.$ac_ext
26228 cat >>conftest.$ac_ext <<_ACEOF
26229 /* end confdefs.h.  */
26230
26231 #include <stdio.h>
26232 #include <netdb.h>
26233
26234 int
26235 main ()
26236 {
26237  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
26238   ;
26239   return 0;
26240 }
26241 _ACEOF
26242 rm -f conftest.$ac_objext conftest$ac_exeext
26243 if { (ac_try="$ac_link"
26244 case "(($ac_try" in
26245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26246   *) ac_try_echo=$ac_try;;
26247 esac
26248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26249   (eval "$ac_link") 2>conftest.er1
26250   ac_status=$?
26251   grep -v '^ *+' conftest.er1 >conftest.err
26252   rm -f conftest.er1
26253   cat conftest.err >&5
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); } &&
26256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26257   { (case "(($ac_try" in
26258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259   *) ac_try_echo=$ac_try;;
26260 esac
26261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262   (eval "$ac_try") 2>&5
26263   ac_status=$?
26264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265   (exit $ac_status); }; } &&
26266          { ac_try='test -s conftest$ac_exeext'
26267   { (case "(($ac_try" in
26268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26269   *) ac_try_echo=$ac_try;;
26270 esac
26271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26272   (eval "$ac_try") 2>&5
26273   ac_status=$?
26274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275   (exit $ac_status); }; }; then
26276
26277
26278 cat >>confdefs.h <<\_ACEOF
26279 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
26280 _ACEOF
26281
26282                 gethostbyaddrrstyle=SYSV
26283
26284 else
26285   echo "$as_me: failed program was:" >&5
26286 sed 's/^/| /' conftest.$ac_ext >&5
26287
26288
26289 fi
26290
26291 rm -f core conftest.err conftest.$ac_objext \
26292       conftest$ac_exeext conftest.$ac_ext
26293 fi
26294 if test "x$gethostbyaddrrstyle" = "x"; then
26295         cat >conftest.$ac_ext <<_ACEOF
26296 /* confdefs.h.  */
26297 _ACEOF
26298 cat confdefs.h >>conftest.$ac_ext
26299 cat >>conftest.$ac_ext <<_ACEOF
26300 /* end confdefs.h.  */
26301
26302 #include <stdio.h>
26303 #include <netdb.h>
26304
26305 int
26306 main ()
26307 {
26308  gethostbyaddr(NULL, 0, 0)
26309   ;
26310   return 0;
26311 }
26312 _ACEOF
26313 rm -f conftest.$ac_objext conftest$ac_exeext
26314 if { (ac_try="$ac_link"
26315 case "(($ac_try" in
26316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317   *) ac_try_echo=$ac_try;;
26318 esac
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320   (eval "$ac_link") 2>conftest.er1
26321   ac_status=$?
26322   grep -v '^ *+' conftest.er1 >conftest.err
26323   rm -f conftest.er1
26324   cat conftest.err >&5
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); } &&
26327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26328   { (case "(($ac_try" in
26329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330   *) ac_try_echo=$ac_try;;
26331 esac
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333   (eval "$ac_try") 2>&5
26334   ac_status=$?
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); }; } &&
26337          { ac_try='test -s conftest$ac_exeext'
26338   { (case "(($ac_try" in
26339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26340   *) ac_try_echo=$ac_try;;
26341 esac
26342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26343   (eval "$ac_try") 2>&5
26344   ac_status=$?
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); }; }; then
26347
26348
26349 cat >>confdefs.h <<\_ACEOF
26350 #define GETHOSTBYADDRRSTYLE BSDSTYLE
26351 _ACEOF
26352
26353                 gethostbyaddrrstyle=BSD
26354
26355 else
26356   echo "$as_me: failed program was:" >&5
26357 sed 's/^/| /' conftest.$ac_ext >&5
26358
26359
26360 fi
26361
26362 rm -f core conftest.err conftest.$ac_objext \
26363       conftest$ac_exeext conftest.$ac_ext
26364 fi
26365
26366 if test "x$gethostbyaddrrstyle" = "x"; then
26367         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26368 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26369 else
26370         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
26371 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
26372 fi
26373
26374 if test "x$gethostbyaddrrstyle" = "xBSD"; then
26375         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
26376 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
26377 fi
26378
26379 gethostbynamerstyle=""
26380 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
26381 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
26382 cat >conftest.$ac_ext <<_ACEOF
26383 /* confdefs.h.  */
26384 _ACEOF
26385 cat confdefs.h >>conftest.$ac_ext
26386 cat >>conftest.$ac_ext <<_ACEOF
26387 /* end confdefs.h.  */
26388
26389 #include <stdio.h>
26390 #include <netdb.h>
26391
26392 int
26393 main ()
26394 {
26395  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
26396   ;
26397   return 0;
26398 }
26399 _ACEOF
26400 rm -f conftest.$ac_objext conftest$ac_exeext
26401 if { (ac_try="$ac_link"
26402 case "(($ac_try" in
26403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26404   *) ac_try_echo=$ac_try;;
26405 esac
26406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26407   (eval "$ac_link") 2>conftest.er1
26408   ac_status=$?
26409   grep -v '^ *+' conftest.er1 >conftest.err
26410   rm -f conftest.er1
26411   cat conftest.err >&5
26412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413   (exit $ac_status); } &&
26414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26415   { (case "(($ac_try" in
26416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26417   *) ac_try_echo=$ac_try;;
26418 esac
26419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26420   (eval "$ac_try") 2>&5
26421   ac_status=$?
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); }; } &&
26424          { ac_try='test -s conftest$ac_exeext'
26425   { (case "(($ac_try" in
26426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26427   *) ac_try_echo=$ac_try;;
26428 esac
26429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26430   (eval "$ac_try") 2>&5
26431   ac_status=$?
26432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433   (exit $ac_status); }; }; then
26434
26435
26436 cat >>confdefs.h <<\_ACEOF
26437 #define GETHOSTBYNAMERSTYLE GNUSTYLE
26438 _ACEOF
26439
26440         gethostbynamerstyle=GNU
26441
26442 else
26443   echo "$as_me: failed program was:" >&5
26444 sed 's/^/| /' conftest.$ac_ext >&5
26445
26446
26447 fi
26448
26449 rm -f core conftest.err conftest.$ac_objext \
26450       conftest$ac_exeext conftest.$ac_ext
26451 if test "x$gethostbynamerstyle" = "x"; then
26452         cat >conftest.$ac_ext <<_ACEOF
26453 /* confdefs.h.  */
26454 _ACEOF
26455 cat confdefs.h >>conftest.$ac_ext
26456 cat >>conftest.$ac_ext <<_ACEOF
26457 /* end confdefs.h.  */
26458
26459 #include <stdio.h>
26460 #include <netdb.h>
26461
26462 int
26463 main ()
26464 {
26465  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
26466   ;
26467   return 0;
26468 }
26469 _ACEOF
26470 rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (ac_try="$ac_link"
26472 case "(($ac_try" in
26473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474   *) ac_try_echo=$ac_try;;
26475 esac
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477   (eval "$ac_link") 2>conftest.er1
26478   ac_status=$?
26479   grep -v '^ *+' conftest.er1 >conftest.err
26480   rm -f conftest.er1
26481   cat conftest.err >&5
26482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26483   (exit $ac_status); } &&
26484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26485   { (case "(($ac_try" in
26486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26487   *) ac_try_echo=$ac_try;;
26488 esac
26489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26490   (eval "$ac_try") 2>&5
26491   ac_status=$?
26492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493   (exit $ac_status); }; } &&
26494          { ac_try='test -s conftest$ac_exeext'
26495   { (case "(($ac_try" in
26496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26497   *) ac_try_echo=$ac_try;;
26498 esac
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500   (eval "$ac_try") 2>&5
26501   ac_status=$?
26502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503   (exit $ac_status); }; }; then
26504
26505
26506 cat >>confdefs.h <<\_ACEOF
26507 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
26508 _ACEOF
26509
26510                 gethostbynamerstyle=SYSV
26511
26512 else
26513   echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26515
26516
26517 fi
26518
26519 rm -f core conftest.err conftest.$ac_objext \
26520       conftest$ac_exeext conftest.$ac_ext
26521 fi
26522 if test "x$gethostbynamerstyle" = "x"; then
26523         cat >conftest.$ac_ext <<_ACEOF
26524 /* confdefs.h.  */
26525 _ACEOF
26526 cat confdefs.h >>conftest.$ac_ext
26527 cat >>conftest.$ac_ext <<_ACEOF
26528 /* end confdefs.h.  */
26529
26530 #include <stdio.h>
26531 #include <netdb.h>
26532
26533 int
26534 main ()
26535 {
26536  gethostbyname(NULL)
26537   ;
26538   return 0;
26539 }
26540 _ACEOF
26541 rm -f conftest.$ac_objext conftest$ac_exeext
26542 if { (ac_try="$ac_link"
26543 case "(($ac_try" in
26544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26545   *) ac_try_echo=$ac_try;;
26546 esac
26547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26548   (eval "$ac_link") 2>conftest.er1
26549   ac_status=$?
26550   grep -v '^ *+' conftest.er1 >conftest.err
26551   rm -f conftest.er1
26552   cat conftest.err >&5
26553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554   (exit $ac_status); } &&
26555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26556   { (case "(($ac_try" in
26557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26558   *) ac_try_echo=$ac_try;;
26559 esac
26560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26561   (eval "$ac_try") 2>&5
26562   ac_status=$?
26563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564   (exit $ac_status); }; } &&
26565          { ac_try='test -s conftest$ac_exeext'
26566   { (case "(($ac_try" in
26567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568   *) ac_try_echo=$ac_try;;
26569 esac
26570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26571   (eval "$ac_try") 2>&5
26572   ac_status=$?
26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); }; }; then
26575
26576
26577 cat >>confdefs.h <<\_ACEOF
26578 #define GETHOSTBYNAMERSTYLE BSDSTYLE
26579 _ACEOF
26580
26581                 gethostbynamerstyle=BSD
26582
26583 else
26584   echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26586
26587
26588 fi
26589
26590 rm -f core conftest.err conftest.$ac_objext \
26591       conftest$ac_exeext conftest.$ac_ext
26592 fi
26593
26594 if test "x$gethostbynamerstyle" = "x"; then
26595         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26596 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26597 else
26598         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
26599 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
26600 fi
26601
26602 if test "x$gethostbynamerstyle" = "xBSD"; then
26603         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
26604 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
26605 fi
26606
26607
26608 cat >>confdefs.h <<\_ACEOF
26609 #define POSIXSTYLE 1
26610 _ACEOF
26611
26612
26613 cat >>confdefs.h <<\_ACEOF
26614 #define SOLARISSTYLE 2
26615 _ACEOF
26616
26617 ctimerstyle=""
26618 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
26619 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
26620 cat >conftest.$ac_ext <<_ACEOF
26621 /* confdefs.h.  */
26622 _ACEOF
26623 cat confdefs.h >>conftest.$ac_ext
26624 cat >>conftest.$ac_ext <<_ACEOF
26625 /* end confdefs.h.  */
26626
26627 #include <time.h>
26628
26629 int
26630 main ()
26631 {
26632  ctime_r(NULL, NULL, 0)
26633   ;
26634   return 0;
26635 }
26636 _ACEOF
26637 rm -f conftest.$ac_objext conftest$ac_exeext
26638 if { (ac_try="$ac_link"
26639 case "(($ac_try" in
26640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26641   *) ac_try_echo=$ac_try;;
26642 esac
26643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26644   (eval "$ac_link") 2>conftest.er1
26645   ac_status=$?
26646   grep -v '^ *+' conftest.er1 >conftest.err
26647   rm -f conftest.er1
26648   cat conftest.err >&5
26649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650   (exit $ac_status); } &&
26651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26652   { (case "(($ac_try" in
26653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654   *) ac_try_echo=$ac_try;;
26655 esac
26656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26657   (eval "$ac_try") 2>&5
26658   ac_status=$?
26659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660   (exit $ac_status); }; } &&
26661          { ac_try='test -s conftest$ac_exeext'
26662   { (case "(($ac_try" in
26663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26664   *) ac_try_echo=$ac_try;;
26665 esac
26666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26667   (eval "$ac_try") 2>&5
26668   ac_status=$?
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); }; }; then
26671
26672
26673 cat >>confdefs.h <<\_ACEOF
26674 #define CTIMERSTYLE SOLARISSTYLE
26675 _ACEOF
26676
26677         ctimerstyle="SOLARIS"
26678
26679 else
26680   echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26682
26683
26684 fi
26685
26686 rm -f core conftest.err conftest.$ac_objext \
26687       conftest$ac_exeext conftest.$ac_ext
26688 if test "x$ctimerstyle" = "x"; then
26689         cat >conftest.$ac_ext <<_ACEOF
26690 /* confdefs.h.  */
26691 _ACEOF
26692 cat confdefs.h >>conftest.$ac_ext
26693 cat >>conftest.$ac_ext <<_ACEOF
26694 /* end confdefs.h.  */
26695
26696 #include <time.h>
26697
26698 int
26699 main ()
26700 {
26701  ctime_r(NULL, NULL)
26702   ;
26703   return 0;
26704 }
26705 _ACEOF
26706 rm -f conftest.$ac_objext conftest$ac_exeext
26707 if { (ac_try="$ac_link"
26708 case "(($ac_try" in
26709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26710   *) ac_try_echo=$ac_try;;
26711 esac
26712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26713   (eval "$ac_link") 2>conftest.er1
26714   ac_status=$?
26715   grep -v '^ *+' conftest.er1 >conftest.err
26716   rm -f conftest.er1
26717   cat conftest.err >&5
26718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26719   (exit $ac_status); } &&
26720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26721   { (case "(($ac_try" in
26722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723   *) ac_try_echo=$ac_try;;
26724 esac
26725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26726   (eval "$ac_try") 2>&5
26727   ac_status=$?
26728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729   (exit $ac_status); }; } &&
26730          { ac_try='test -s conftest$ac_exeext'
26731   { (case "(($ac_try" in
26732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733   *) ac_try_echo=$ac_try;;
26734 esac
26735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736   (eval "$ac_try") 2>&5
26737   ac_status=$?
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); }; }; then
26740
26741
26742 cat >>confdefs.h <<\_ACEOF
26743 #define CTIMERSTYLE POSIXSTYLE
26744 _ACEOF
26745
26746                 ctimerstyle="POSIX"
26747
26748 else
26749   echo "$as_me: failed program was:" >&5
26750 sed 's/^/| /' conftest.$ac_ext >&5
26751
26752
26753 fi
26754
26755 rm -f core conftest.err conftest.$ac_objext \
26756       conftest$ac_exeext conftest.$ac_ext
26757 fi
26758
26759 if test "x$ctimerstyle" = "x"; then
26760         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
26761 echo "${ECHO_T}none!  It must not exist, here." >&6; }
26762 else
26763         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
26764 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
26765 fi
26766
26767 HOSTINFO=$host
26768
26769
26770
26771 top_builddir=`pwd`
26772 export top_builddir
26773 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
26774 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
26775
26776
26777
26778
26779
26780 mysubdirs="$LIBLTDLPATH"
26781 if test "x$EXPERIMENTAL" = "xyes"; then
26782   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
26783     mysubdirs=`echo $mysubdirs $bar`
26784 else
26785         for bar in `cat "${srcdir}"/src/modules/stable`; do
26786     if test -f "${srcdir}"/src/modules/$bar/configure; then
26787       mysubdirs="$mysubdirs src/modules/$bar"
26788     fi
26789   done
26790 fi
26791
26792 if test "x$EXPERIMENTAL" = "xyes"; then
26793   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
26794     MODULES="$MODULES $foo"
26795   done
26796 else
26797             for foo in `cat "${srcdir}"/src/modules/stable`; do
26798     MODULES="$MODULES $foo"
26799    done
26800 fi
26801
26802 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
26803
26804
26805
26806
26807 ac_config_commands="$ac_config_commands stamp-h"
26808
26809 ac_config_commands="$ac_config_commands build-radpaths-h"
26810
26811 ac_config_commands="$ac_config_commands main-chmod"
26812
26813 ac_config_commands="$ac_config_commands scripts-chmod"
26814
26815
26816
26817
26818
26819 USE_SHARED_LIBS=$enable_shared
26820
26821 USE_STATIC_LIBS=$enable_static
26822
26823
26824
26825
26826
26827
26828 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/radrelay.conf"
26829
26830 cat >confcache <<\_ACEOF
26831 # This file is a shell script that caches the results of configure
26832 # tests run on this system so they can be shared between configure
26833 # scripts and configure runs, see configure's option --config-cache.
26834 # It is not useful on other systems.  If it contains results you don't
26835 # want to keep, you may remove or edit it.
26836 #
26837 # config.status only pays attention to the cache file if you give it
26838 # the --recheck option to rerun configure.
26839 #
26840 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26841 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26842 # following values.
26843
26844 _ACEOF
26845
26846 # The following way of writing the cache mishandles newlines in values,
26847 # but we know of no workaround that is simple, portable, and efficient.
26848 # So, we kill variables containing newlines.
26849 # Ultrix sh set writes to stderr and can't be redirected directly,
26850 # and sets the high bit in the cache file unless we assign to the vars.
26851 (
26852   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26853     eval ac_val=\$$ac_var
26854     case $ac_val in #(
26855     *${as_nl}*)
26856       case $ac_var in #(
26857       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26858 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26859       esac
26860       case $ac_var in #(
26861       _ | IFS | as_nl) ;; #(
26862       *) $as_unset $ac_var ;;
26863       esac ;;
26864     esac
26865   done
26866
26867   (set) 2>&1 |
26868     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26869     *${as_nl}ac_space=\ *)
26870       # `set' does not quote correctly, so add quotes (double-quote
26871       # substitution turns \\\\ into \\, and sed turns \\ into \).
26872       sed -n \
26873         "s/'/'\\\\''/g;
26874           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26875       ;; #(
26876     *)
26877       # `set' quotes correctly as required by POSIX, so do not add quotes.
26878       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26879       ;;
26880     esac |
26881     sort
26882 ) |
26883   sed '
26884      /^ac_cv_env_/b end
26885      t clear
26886      :clear
26887      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26888      t end
26889      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26890      :end' >>confcache
26891 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26892   if test -w "$cache_file"; then
26893     test "x$cache_file" != "x/dev/null" &&
26894       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26895 echo "$as_me: updating cache $cache_file" >&6;}
26896     cat confcache >$cache_file
26897   else
26898     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26899 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26900   fi
26901 fi
26902 rm -f confcache
26903
26904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26905 # Let make expand exec_prefix.
26906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26907
26908 DEFS=-DHAVE_CONFIG_H
26909
26910 ac_libobjs=
26911 ac_ltlibobjs=
26912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26913   # 1. Remove the extension, and $U if already installed.
26914   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26915   ac_i=`echo "$ac_i" | sed "$ac_script"`
26916   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26917   #    will be set to the directory where LIBOBJS objects are built.
26918   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26919   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26920 done
26921 LIBOBJS=$ac_libobjs
26922
26923 LTLIBOBJS=$ac_ltlibobjs
26924
26925
26926
26927 : ${CONFIG_STATUS=./config.status}
26928 ac_clean_files_save=$ac_clean_files
26929 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26930 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26931 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26932 cat >$CONFIG_STATUS <<_ACEOF
26933 #! $SHELL
26934 # Generated by $as_me.
26935 # Run this file to recreate the current configuration.
26936 # Compiler output produced by configure, useful for debugging
26937 # configure, is in config.log if it exists.
26938
26939 debug=false
26940 ac_cs_recheck=false
26941 ac_cs_silent=false
26942 SHELL=\${CONFIG_SHELL-$SHELL}
26943 _ACEOF
26944
26945 cat >>$CONFIG_STATUS <<\_ACEOF
26946 ## --------------------- ##
26947 ## M4sh Initialization.  ##
26948 ## --------------------- ##
26949
26950 # Be Bourne compatible
26951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26952   emulate sh
26953   NULLCMD=:
26954   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26955   # is contrary to our usage.  Disable this feature.
26956   alias -g '${1+"$@"}'='"$@"'
26957   setopt NO_GLOB_SUBST
26958 else
26959   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26960 fi
26961 BIN_SH=xpg4; export BIN_SH # for Tru64
26962 DUALCASE=1; export DUALCASE # for MKS sh
26963
26964
26965 # PATH needs CR
26966 # Avoid depending upon Character Ranges.
26967 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26968 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26969 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26970 as_cr_digits='0123456789'
26971 as_cr_alnum=$as_cr_Letters$as_cr_digits
26972
26973 # The user is always right.
26974 if test "${PATH_SEPARATOR+set}" != set; then
26975   echo "#! /bin/sh" >conf$$.sh
26976   echo  "exit 0"   >>conf$$.sh
26977   chmod +x conf$$.sh
26978   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26979     PATH_SEPARATOR=';'
26980   else
26981     PATH_SEPARATOR=:
26982   fi
26983   rm -f conf$$.sh
26984 fi
26985
26986 # Support unset when possible.
26987 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26988   as_unset=unset
26989 else
26990   as_unset=false
26991 fi
26992
26993
26994 # IFS
26995 # We need space, tab and new line, in precisely that order.  Quoting is
26996 # there to prevent editors from complaining about space-tab.
26997 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26998 # splitting by setting IFS to empty value.)
26999 as_nl='
27000 '
27001 IFS=" ""        $as_nl"
27002
27003 # Find who we are.  Look in the path if we contain no directory separator.
27004 case $0 in
27005   *[\\/]* ) as_myself=$0 ;;
27006   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27007 for as_dir in $PATH
27008 do
27009   IFS=$as_save_IFS
27010   test -z "$as_dir" && as_dir=.
27011   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27012 done
27013 IFS=$as_save_IFS
27014
27015      ;;
27016 esac
27017 # We did not find ourselves, most probably we were run as `sh COMMAND'
27018 # in which case we are not to be found in the path.
27019 if test "x$as_myself" = x; then
27020   as_myself=$0
27021 fi
27022 if test ! -f "$as_myself"; then
27023   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27024   { (exit 1); exit 1; }
27025 fi
27026
27027 # Work around bugs in pre-3.0 UWIN ksh.
27028 for as_var in ENV MAIL MAILPATH
27029 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27030 done
27031 PS1='$ '
27032 PS2='> '
27033 PS4='+ '
27034
27035 # NLS nuisances.
27036 for as_var in \
27037   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27038   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27039   LC_TELEPHONE LC_TIME
27040 do
27041   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27042     eval $as_var=C; export $as_var
27043   else
27044     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27045   fi
27046 done
27047
27048 # Required to use basename.
27049 if expr a : '\(a\)' >/dev/null 2>&1 &&
27050    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27051   as_expr=expr
27052 else
27053   as_expr=false
27054 fi
27055
27056 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27057   as_basename=basename
27058 else
27059   as_basename=false
27060 fi
27061
27062
27063 # Name of the executable.
27064 as_me=`$as_basename -- "$0" ||
27065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27066          X"$0" : 'X\(//\)$' \| \
27067          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27068 echo X/"$0" |
27069     sed '/^.*\/\([^/][^/]*\)\/*$/{
27070             s//\1/
27071             q
27072           }
27073           /^X\/\(\/\/\)$/{
27074             s//\1/
27075             q
27076           }
27077           /^X\/\(\/\).*/{
27078             s//\1/
27079             q
27080           }
27081           s/.*/./; q'`
27082
27083 # CDPATH.
27084 $as_unset CDPATH
27085
27086
27087
27088   as_lineno_1=$LINENO
27089   as_lineno_2=$LINENO
27090   test "x$as_lineno_1" != "x$as_lineno_2" &&
27091   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27092
27093   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27094   # uniformly replaced by the line number.  The first 'sed' inserts a
27095   # line-number line after each line using $LINENO; the second 'sed'
27096   # does the real work.  The second script uses 'N' to pair each
27097   # line-number line with the line containing $LINENO, and appends
27098   # trailing '-' during substitution so that $LINENO is not a special
27099   # case at line end.
27100   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27101   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27102   # E. McMahon (1931-1989) for sed's syntax.  :-)
27103   sed -n '
27104     p
27105     /[$]LINENO/=
27106   ' <$as_myself |
27107     sed '
27108       s/[$]LINENO.*/&-/
27109       t lineno
27110       b
27111       :lineno
27112       N
27113       :loop
27114       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27115       t loop
27116       s/-\n.*//
27117     ' >$as_me.lineno &&
27118   chmod +x "$as_me.lineno" ||
27119     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27120    { (exit 1); exit 1; }; }
27121
27122   # Don't try to exec as it changes $[0], causing all sort of problems
27123   # (the dirname of $[0] is not the place where we might find the
27124   # original and so on.  Autoconf is especially sensitive to this).
27125   . "./$as_me.lineno"
27126   # Exit status is that of the last command.
27127   exit
27128 }
27129
27130
27131 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27132   as_dirname=dirname
27133 else
27134   as_dirname=false
27135 fi
27136
27137 ECHO_C= ECHO_N= ECHO_T=
27138 case `echo -n x` in
27139 -n*)
27140   case `echo 'x\c'` in
27141   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27142   *)   ECHO_C='\c';;
27143   esac;;
27144 *)
27145   ECHO_N='-n';;
27146 esac
27147
27148 if expr a : '\(a\)' >/dev/null 2>&1 &&
27149    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27150   as_expr=expr
27151 else
27152   as_expr=false
27153 fi
27154
27155 rm -f conf$$ conf$$.exe conf$$.file
27156 if test -d conf$$.dir; then
27157   rm -f conf$$.dir/conf$$.file
27158 else
27159   rm -f conf$$.dir
27160   mkdir conf$$.dir
27161 fi
27162 echo >conf$$.file
27163 if ln -s conf$$.file conf$$ 2>/dev/null; then
27164   as_ln_s='ln -s'
27165   # ... but there are two gotchas:
27166   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27167   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27168   # In both cases, we have to default to `cp -p'.
27169   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27170     as_ln_s='cp -p'
27171 elif ln conf$$.file conf$$ 2>/dev/null; then
27172   as_ln_s=ln
27173 else
27174   as_ln_s='cp -p'
27175 fi
27176 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27177 rmdir conf$$.dir 2>/dev/null
27178
27179 if mkdir -p . 2>/dev/null; then
27180   as_mkdir_p=:
27181 else
27182   test -d ./-p && rmdir ./-p
27183   as_mkdir_p=false
27184 fi
27185
27186 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
27187 # systems may use methods other than mode bits to determine executability.
27188 cat >conf$$.file <<_ASEOF
27189 #! /bin/sh
27190 exit 0
27191 _ASEOF
27192 chmod +x conf$$.file
27193 if test -x conf$$.file >/dev/null 2>&1; then
27194   as_executable_p="test -x"
27195 else
27196   as_executable_p=:
27197 fi
27198 rm -f conf$$.file
27199
27200 # Sed expression to map a string onto a valid CPP name.
27201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27202
27203 # Sed expression to map a string onto a valid variable name.
27204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27205
27206
27207 exec 6>&1
27208
27209 # Save the log message, to keep $[0] and so on meaningful, and to
27210 # report actual input values of CONFIG_FILES etc. instead of their
27211 # values after options handling.
27212 ac_log="
27213 This file was extended by $as_me, which was
27214 generated by GNU Autoconf 2.60.  Invocation command line was
27215
27216   CONFIG_FILES    = $CONFIG_FILES
27217   CONFIG_HEADERS  = $CONFIG_HEADERS
27218   CONFIG_LINKS    = $CONFIG_LINKS
27219   CONFIG_COMMANDS = $CONFIG_COMMANDS
27220   $ $0 $@
27221
27222 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27223 "
27224
27225 _ACEOF
27226
27227 cat >>$CONFIG_STATUS <<_ACEOF
27228 # Files that config.status was made for.
27229 config_files="$ac_config_files"
27230 config_headers="$ac_config_headers"
27231 config_commands="$ac_config_commands"
27232
27233 _ACEOF
27234
27235 cat >>$CONFIG_STATUS <<\_ACEOF
27236 ac_cs_usage="\
27237 \`$as_me' instantiates files from templates according to the
27238 current configuration.
27239
27240 Usage: $0 [OPTIONS] [FILE]...
27241
27242   -h, --help       print this help, then exit
27243   -V, --version    print version number, then exit
27244   -q, --quiet      do not print progress messages
27245   -d, --debug      don't remove temporary files
27246       --recheck    update $as_me by reconfiguring in the same conditions
27247   --file=FILE[:TEMPLATE]
27248                    instantiate the configuration file FILE
27249   --header=FILE[:TEMPLATE]
27250                    instantiate the configuration header FILE
27251
27252 Configuration files:
27253 $config_files
27254
27255 Configuration headers:
27256 $config_headers
27257
27258 Configuration commands:
27259 $config_commands
27260
27261 Report bugs to <bug-autoconf@gnu.org>."
27262
27263 _ACEOF
27264 cat >>$CONFIG_STATUS <<_ACEOF
27265 ac_cs_version="\\
27266 config.status
27267 configured by $0, generated by GNU Autoconf 2.60,
27268   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27269
27270 Copyright (C) 2006 Free Software Foundation, Inc.
27271 This config.status script is free software; the Free Software Foundation
27272 gives unlimited permission to copy, distribute and modify it."
27273
27274 ac_pwd='$ac_pwd'
27275 srcdir='$srcdir'
27276 _ACEOF
27277
27278 cat >>$CONFIG_STATUS <<\_ACEOF
27279 # If no file are specified by the user, then we need to provide default
27280 # value.  By we need to know if files were specified by the user.
27281 ac_need_defaults=:
27282 while test $# != 0
27283 do
27284   case $1 in
27285   --*=*)
27286     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27287     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27288     ac_shift=:
27289     ;;
27290   *)
27291     ac_option=$1
27292     ac_optarg=$2
27293     ac_shift=shift
27294     ;;
27295   esac
27296
27297   case $ac_option in
27298   # Handling of the options.
27299   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27300     ac_cs_recheck=: ;;
27301   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27302     echo "$ac_cs_version"; exit ;;
27303   --debug | --debu | --deb | --de | --d | -d )
27304     debug=: ;;
27305   --file | --fil | --fi | --f )
27306     $ac_shift
27307     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27308     ac_need_defaults=false;;
27309   --header | --heade | --head | --hea )
27310     $ac_shift
27311     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27312     ac_need_defaults=false;;
27313   --he | --h)
27314     # Conflict between --help and --header
27315     { echo "$as_me: error: ambiguous option: $1
27316 Try \`$0 --help' for more information." >&2
27317    { (exit 1); exit 1; }; };;
27318   --help | --hel | -h )
27319     echo "$ac_cs_usage"; exit ;;
27320   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27321   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27322     ac_cs_silent=: ;;
27323
27324   # This is an error.
27325   -*) { echo "$as_me: error: unrecognized option: $1
27326 Try \`$0 --help' for more information." >&2
27327    { (exit 1); exit 1; }; } ;;
27328
27329   *) ac_config_targets="$ac_config_targets $1"
27330      ac_need_defaults=false ;;
27331
27332   esac
27333   shift
27334 done
27335
27336 ac_configure_extra_args=
27337
27338 if $ac_cs_silent; then
27339   exec 6>/dev/null
27340   ac_configure_extra_args="$ac_configure_extra_args --silent"
27341 fi
27342
27343 _ACEOF
27344 cat >>$CONFIG_STATUS <<_ACEOF
27345 if \$ac_cs_recheck; then
27346   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27347   CONFIG_SHELL=$SHELL
27348   export CONFIG_SHELL
27349   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27350 fi
27351
27352 _ACEOF
27353 cat >>$CONFIG_STATUS <<\_ACEOF
27354 exec 5>>config.log
27355 {
27356   echo
27357   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27358 ## Running $as_me. ##
27359 _ASBOX
27360   echo "$ac_log"
27361 } >&5
27362
27363 _ACEOF
27364 cat >>$CONFIG_STATUS <<_ACEOF
27365 _ACEOF
27366
27367 cat >>$CONFIG_STATUS <<\_ACEOF
27368
27369 # Handling of arguments.
27370 for ac_config_target in $ac_config_targets
27371 do
27372   case $ac_config_target in
27373     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
27374     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
27375     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
27376     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
27377     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
27378     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
27379     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
27380     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
27381     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
27382     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
27383     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
27384     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
27385     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
27386     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
27387     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
27388     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
27389     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
27390     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
27391     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
27392     "./raddb/radrelay.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radrelay.conf" ;;
27393
27394   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27395 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27396    { (exit 1); exit 1; }; };;
27397   esac
27398 done
27399
27400
27401 # If the user did not use the arguments to specify the items to instantiate,
27402 # then the envvar interface is used.  Set only those that are not.
27403 # We use the long form for the default assignment because of an extremely
27404 # bizarre bug on SunOS 4.1.3.
27405 if $ac_need_defaults; then
27406   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27407   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27408   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27409 fi
27410
27411 # Have a temporary directory for convenience.  Make it in the build tree
27412 # simply because there is no reason against having it here, and in addition,
27413 # creating and moving files from /tmp can sometimes cause problems.
27414 # Hook for its removal unless debugging.
27415 # Note that there is a small window in which the directory will not be cleaned:
27416 # after its creation but before its name has been assigned to `$tmp'.
27417 $debug ||
27418 {
27419   tmp=
27420   trap 'exit_status=$?
27421   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27422 ' 0
27423   trap '{ (exit 1); exit 1; }' 1 2 13 15
27424 }
27425 # Create a (secure) tmp directory for tmp files.
27426
27427 {
27428   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27429   test -n "$tmp" && test -d "$tmp"
27430 }  ||
27431 {
27432   tmp=./conf$$-$RANDOM
27433   (umask 077 && mkdir "$tmp")
27434 } ||
27435 {
27436    echo "$me: cannot create a temporary directory in ." >&2
27437    { (exit 1); exit 1; }
27438 }
27439
27440 #
27441 # Set up the sed scripts for CONFIG_FILES section.
27442 #
27443
27444 # No need to generate the scripts if there are no CONFIG_FILES.
27445 # This happens for instance when ./config.status config.h
27446 if test -n "$CONFIG_FILES"; then
27447
27448 _ACEOF
27449
27450
27451
27452 ac_delim='%!_!# '
27453 for ac_last_try in false false false false false :; do
27454   cat >conf$$subs.sed <<_ACEOF
27455 SHELL!$SHELL$ac_delim
27456 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27457 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27458 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27459 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27460 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27461 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27462 exec_prefix!$exec_prefix$ac_delim
27463 prefix!$prefix$ac_delim
27464 program_transform_name!$program_transform_name$ac_delim
27465 bindir!$bindir$ac_delim
27466 sbindir!$sbindir$ac_delim
27467 libexecdir!$libexecdir$ac_delim
27468 datarootdir!$datarootdir$ac_delim
27469 datadir!$datadir$ac_delim
27470 sysconfdir!$sysconfdir$ac_delim
27471 sharedstatedir!$sharedstatedir$ac_delim
27472 localstatedir!$localstatedir$ac_delim
27473 includedir!$includedir$ac_delim
27474 oldincludedir!$oldincludedir$ac_delim
27475 docdir!$docdir$ac_delim
27476 infodir!$infodir$ac_delim
27477 htmldir!$htmldir$ac_delim
27478 dvidir!$dvidir$ac_delim
27479 pdfdir!$pdfdir$ac_delim
27480 psdir!$psdir$ac_delim
27481 libdir!$libdir$ac_delim
27482 localedir!$localedir$ac_delim
27483 mandir!$mandir$ac_delim
27484 DEFS!$DEFS$ac_delim
27485 ECHO_C!$ECHO_C$ac_delim
27486 ECHO_N!$ECHO_N$ac_delim
27487 ECHO_T!$ECHO_T$ac_delim
27488 LIBS!$LIBS$ac_delim
27489 build_alias!$build_alias$ac_delim
27490 host_alias!$host_alias$ac_delim
27491 target_alias!$target_alias$ac_delim
27492 CC!$CC$ac_delim
27493 CFLAGS!$CFLAGS$ac_delim
27494 LDFLAGS!$LDFLAGS$ac_delim
27495 CPPFLAGS!$CPPFLAGS$ac_delim
27496 ac_ct_CC!$ac_ct_CC$ac_delim
27497 EXEEXT!$EXEEXT$ac_delim
27498 OBJEXT!$OBJEXT$ac_delim
27499 CXX!$CXX$ac_delim
27500 CXXFLAGS!$CXXFLAGS$ac_delim
27501 ac_ct_CXX!$ac_ct_CXX$ac_delim
27502 CPP!$CPP$ac_delim
27503 GREP!$GREP$ac_delim
27504 EGREP!$EGREP$ac_delim
27505 RANLIB!$RANLIB$ac_delim
27506 GMAKE!$GMAKE$ac_delim
27507 MAKE!$MAKE$ac_delim
27508 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
27509 LIBTOOL!$LIBTOOL$ac_delim
27510 build!$build$ac_delim
27511 build_cpu!$build_cpu$ac_delim
27512 build_vendor!$build_vendor$ac_delim
27513 build_os!$build_os$ac_delim
27514 host!$host$ac_delim
27515 host_cpu!$host_cpu$ac_delim
27516 host_vendor!$host_vendor$ac_delim
27517 host_os!$host_os$ac_delim
27518 LN_S!$LN_S$ac_delim
27519 ECHO!$ECHO$ac_delim
27520 AR!$AR$ac_delim
27521 STRIP!$STRIP$ac_delim
27522 CXXCPP!$CXXCPP$ac_delim
27523 F77!$F77$ac_delim
27524 FFLAGS!$FFLAGS$ac_delim
27525 ac_ct_F77!$ac_ct_F77$ac_delim
27526 logdir!$logdir$ac_delim
27527 radacctdir!$radacctdir$ac_delim
27528 raddbdir!$raddbdir$ac_delim
27529 PERL!$PERL$ac_delim
27530 SNMPGET!$SNMPGET$ac_delim
27531 SNMPWALK!$SNMPWALK$ac_delim
27532 RUSERS!$RUSERS$ac_delim
27533 ACLOCAL!$ACLOCAL$ac_delim
27534 AUTOCONF!$AUTOCONF$ac_delim
27535 AUTOHEADER!$AUTOHEADER$ac_delim
27536 LOCATE!$LOCATE$ac_delim
27537 DIRNAME!$DIRNAME$ac_delim
27538 REGEX!$REGEX$ac_delim
27539 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
27540 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
27541 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
27542 PCAP_LIBS!$PCAP_LIBS$ac_delim
27543 LIBPREFIX!$LIBPREFIX$ac_delim
27544 CRYPTLIB!$CRYPTLIB$ac_delim
27545 SNMP_LIBS!$SNMP_LIBS$ac_delim
27546 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
27547 HOSTINFO!$HOSTINFO$ac_delim
27548 LIBLTDL!$LIBLTDL$ac_delim
27549 INCLTDL!$INCLTDL$ac_delim
27550 subdirs!$subdirs$ac_delim
27551 MODULES!$MODULES$ac_delim
27552 _ACEOF
27553
27554   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27555     break
27556   elif $ac_last_try; then
27557     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27558 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27559    { (exit 1); exit 1; }; }
27560   else
27561     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27562   fi
27563 done
27564
27565 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27566 if test -n "$ac_eof"; then
27567   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27568   ac_eof=`expr $ac_eof + 1`
27569 fi
27570
27571 cat >>$CONFIG_STATUS <<_ACEOF
27572 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27574 _ACEOF
27575 sed '
27576 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27577 s/^/s,@/; s/!/@,|#_!!_#|/
27578 :n
27579 t n
27580 s/'"$ac_delim"'$/,g/; t
27581 s/$/\\/; p
27582 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27583 ' >>$CONFIG_STATUS <conf$$subs.sed
27584 rm -f conf$$subs.sed
27585 cat >>$CONFIG_STATUS <<_ACEOF
27586 CEOF$ac_eof
27587 _ACEOF
27588
27589
27590 ac_delim='%!_!# '
27591 for ac_last_try in false false false false false :; do
27592   cat >conf$$subs.sed <<_ACEOF
27593 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
27594 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
27595 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
27596 STATIC_MODULES!$STATIC_MODULES$ac_delim
27597 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
27598 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
27599 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
27600 LIBOBJS!$LIBOBJS$ac_delim
27601 LTLIBOBJS!$LTLIBOBJS$ac_delim
27602 _ACEOF
27603
27604   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
27605     break
27606   elif $ac_last_try; then
27607     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27608 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27609    { (exit 1); exit 1; }; }
27610   else
27611     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27612   fi
27613 done
27614
27615 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27616 if test -n "$ac_eof"; then
27617   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27618   ac_eof=`expr $ac_eof + 1`
27619 fi
27620
27621 cat >>$CONFIG_STATUS <<_ACEOF
27622 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27624 _ACEOF
27625 sed '
27626 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27627 s/^/s,@/; s/!/@,|#_!!_#|/
27628 :n
27629 t n
27630 s/'"$ac_delim"'$/,g/; t
27631 s/$/\\/; p
27632 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27633 ' >>$CONFIG_STATUS <conf$$subs.sed
27634 rm -f conf$$subs.sed
27635 cat >>$CONFIG_STATUS <<_ACEOF
27636 :end
27637 s/|#_!!_#|//g
27638 CEOF$ac_eof
27639 _ACEOF
27640
27641
27642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27644 # trailing colons and then remove the whole line if VPATH becomes empty
27645 # (actually we leave an empty line to preserve line numbers).
27646 if test "x$srcdir" = x.; then
27647   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27648 s/:*\$(srcdir):*/:/
27649 s/:*\${srcdir}:*/:/
27650 s/:*@srcdir@:*/:/
27651 s/^\([^=]*=[     ]*\):*/\1/
27652 s/:*$//
27653 s/^[^=]*=[       ]*$//
27654 }'
27655 fi
27656
27657 cat >>$CONFIG_STATUS <<\_ACEOF
27658 fi # test -n "$CONFIG_FILES"
27659
27660
27661 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27662 do
27663   case $ac_tag in
27664   :[FHLC]) ac_mode=$ac_tag; continue;;
27665   esac
27666   case $ac_mode$ac_tag in
27667   :[FHL]*:*);;
27668   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27669 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27670    { (exit 1); exit 1; }; };;
27671   :[FH]-) ac_tag=-:-;;
27672   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27673   esac
27674   ac_save_IFS=$IFS
27675   IFS=:
27676   set x $ac_tag
27677   IFS=$ac_save_IFS
27678   shift
27679   ac_file=$1
27680   shift
27681
27682   case $ac_mode in
27683   :L) ac_source=$1;;
27684   :[FH])
27685     ac_file_inputs=
27686     for ac_f
27687     do
27688       case $ac_f in
27689       -) ac_f="$tmp/stdin";;
27690       *) # Look for the file first in the build tree, then in the source tree
27691          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27692          # because $ac_f cannot contain `:'.
27693          test -f "$ac_f" ||
27694            case $ac_f in
27695            [\\/$]*) false;;
27696            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27697            esac ||
27698            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27699 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27700    { (exit 1); exit 1; }; };;
27701       esac
27702       ac_file_inputs="$ac_file_inputs $ac_f"
27703     done
27704
27705     # Let's still pretend it is `configure' which instantiates (i.e., don't
27706     # use $as_me), people would be surprised to read:
27707     #    /* config.h.  Generated by config.status.  */
27708     configure_input="Generated from "`IFS=:
27709           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27710     if test x"$ac_file" != x-; then
27711       configure_input="$ac_file.  $configure_input"
27712       { echo "$as_me:$LINENO: creating $ac_file" >&5
27713 echo "$as_me: creating $ac_file" >&6;}
27714     fi
27715
27716     case $ac_tag in
27717     *:-:* | *:-) cat >"$tmp/stdin";;
27718     esac
27719     ;;
27720   esac
27721
27722   ac_dir=`$as_dirname -- "$ac_file" ||
27723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27724          X"$ac_file" : 'X\(//\)[^/]' \| \
27725          X"$ac_file" : 'X\(//\)$' \| \
27726          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27727 echo X"$ac_file" |
27728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27729             s//\1/
27730             q
27731           }
27732           /^X\(\/\/\)[^/].*/{
27733             s//\1/
27734             q
27735           }
27736           /^X\(\/\/\)$/{
27737             s//\1/
27738             q
27739           }
27740           /^X\(\/\).*/{
27741             s//\1/
27742             q
27743           }
27744           s/.*/./; q'`
27745   { as_dir="$ac_dir"
27746   case $as_dir in #(
27747   -*) as_dir=./$as_dir;;
27748   esac
27749   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27750     as_dirs=
27751     while :; do
27752       case $as_dir in #(
27753       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27754       *) as_qdir=$as_dir;;
27755       esac
27756       as_dirs="'$as_qdir' $as_dirs"
27757       as_dir=`$as_dirname -- "$as_dir" ||
27758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27759          X"$as_dir" : 'X\(//\)[^/]' \| \
27760          X"$as_dir" : 'X\(//\)$' \| \
27761          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27762 echo X"$as_dir" |
27763     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27764             s//\1/
27765             q
27766           }
27767           /^X\(\/\/\)[^/].*/{
27768             s//\1/
27769             q
27770           }
27771           /^X\(\/\/\)$/{
27772             s//\1/
27773             q
27774           }
27775           /^X\(\/\).*/{
27776             s//\1/
27777             q
27778           }
27779           s/.*/./; q'`
27780       test -d "$as_dir" && break
27781     done
27782     test -z "$as_dirs" || eval "mkdir $as_dirs"
27783   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27784 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27785    { (exit 1); exit 1; }; }; }
27786   ac_builddir=.
27787
27788 case "$ac_dir" in
27789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27790 *)
27791   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27792   # A ".." for each directory in $ac_dir_suffix.
27793   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27794   case $ac_top_builddir_sub in
27795   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27796   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27797   esac ;;
27798 esac
27799 ac_abs_top_builddir=$ac_pwd
27800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27801 # for backward compatibility:
27802 ac_top_builddir=$ac_top_build_prefix
27803
27804 case $srcdir in
27805   .)  # We are building in place.
27806     ac_srcdir=.
27807     ac_top_srcdir=$ac_top_builddir_sub
27808     ac_abs_top_srcdir=$ac_pwd ;;
27809   [\\/]* | ?:[\\/]* )  # Absolute name.
27810     ac_srcdir=$srcdir$ac_dir_suffix;
27811     ac_top_srcdir=$srcdir
27812     ac_abs_top_srcdir=$srcdir ;;
27813   *) # Relative name.
27814     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27815     ac_top_srcdir=$ac_top_build_prefix$srcdir
27816     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27817 esac
27818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27819
27820
27821   case $ac_mode in
27822   :F)
27823   #
27824   # CONFIG_FILE
27825   #
27826
27827 _ACEOF
27828
27829 cat >>$CONFIG_STATUS <<\_ACEOF
27830 # If the template does not know about datarootdir, expand it.
27831 # FIXME: This hack should be removed a few years after 2.60.
27832 ac_datarootdir_hack=; ac_datarootdir_seen=
27833
27834 case `sed -n '/datarootdir/ {
27835   p
27836   q
27837 }
27838 /@datadir@/p
27839 /@docdir@/p
27840 /@infodir@/p
27841 /@localedir@/p
27842 /@mandir@/p
27843 ' $ac_file_inputs` in
27844 *datarootdir*) ac_datarootdir_seen=yes;;
27845 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27846   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27847 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27848 _ACEOF
27849 cat >>$CONFIG_STATUS <<_ACEOF
27850   ac_datarootdir_hack='
27851   s&@datadir@&$datadir&g
27852   s&@docdir@&$docdir&g
27853   s&@infodir@&$infodir&g
27854   s&@localedir@&$localedir&g
27855   s&@mandir@&$mandir&g
27856     s&\\\${datarootdir}&$datarootdir&g' ;;
27857 esac
27858 _ACEOF
27859
27860 # Neutralize VPATH when `$srcdir' = `.'.
27861 # Shell code in configure.ac might set extrasub.
27862 # FIXME: do we really want to maintain this feature?
27863 cat >>$CONFIG_STATUS <<_ACEOF
27864   sed "$ac_vpsub
27865 $extrasub
27866 _ACEOF
27867 cat >>$CONFIG_STATUS <<\_ACEOF
27868 :t
27869 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27870 s&@configure_input@&$configure_input&;t t
27871 s&@top_builddir@&$ac_top_builddir_sub&;t t
27872 s&@srcdir@&$ac_srcdir&;t t
27873 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27874 s&@top_srcdir@&$ac_top_srcdir&;t t
27875 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27876 s&@builddir@&$ac_builddir&;t t
27877 s&@abs_builddir@&$ac_abs_builddir&;t t
27878 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27879 $ac_datarootdir_hack
27880 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27881
27882 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27883   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27884   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27885   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27886 which seems to be undefined.  Please make sure it is defined." >&5
27887 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27888 which seems to be undefined.  Please make sure it is defined." >&2;}
27889
27890   rm -f "$tmp/stdin"
27891   case $ac_file in
27892   -) cat "$tmp/out"; rm -f "$tmp/out";;
27893   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27894   esac
27895  ;;
27896   :H)
27897   #
27898   # CONFIG_HEADER
27899   #
27900 _ACEOF
27901
27902 # Transform confdefs.h into a sed script `conftest.defines', that
27903 # substitutes the proper values into config.h.in to produce config.h.
27904 rm -f conftest.defines conftest.tail
27905 # First, append a space to every undef/define line, to ease matching.
27906 echo 's/$/ /' >conftest.defines
27907 # Then, protect against being on the right side of a sed subst, or in
27908 # an unquoted here document, in config.status.  If some macros were
27909 # called several times there might be several #defines for the same
27910 # symbol, which is useless.  But do not sort them, since the last
27911 # AC_DEFINE must be honored.
27912 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27913 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27914 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27915 # PARAMS is the parameter list in the macro definition--in most cases, it's
27916 # just an empty string.
27917 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27918 ac_dB='\\)[      (].*,\\1define\\2'
27919 ac_dC=' '
27920 ac_dD=' ,'
27921
27922 uniq confdefs.h |
27923   sed -n '
27924         t rset
27925         :rset
27926         s/^[     ]*#[    ]*define[       ][      ]*//
27927         t ok
27928         d
27929         :ok
27930         s/[\\&,]/\\&/g
27931         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27932         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27933   ' >>conftest.defines
27934
27935 # Remove the space that was appended to ease matching.
27936 # Then replace #undef with comments.  This is necessary, for
27937 # example, in the case of _POSIX_SOURCE, which is predefined and required
27938 # on some systems where configure will not decide to define it.
27939 # (The regexp can be short, since the line contains either #define or #undef.)
27940 echo 's/ $//
27941 s,^[     #]*u.*,/* & */,' >>conftest.defines
27942
27943 # Break up conftest.defines:
27944 ac_max_sed_lines=50
27945
27946 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27947 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27948 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27949 # et cetera.
27950 ac_in='$ac_file_inputs'
27951 ac_out='"$tmp/out1"'
27952 ac_nxt='"$tmp/out2"'
27953
27954 while :
27955 do
27956   # Write a here document:
27957     cat >>$CONFIG_STATUS <<_ACEOF
27958     # First, check the format of the line:
27959     cat >"\$tmp/defines.sed" <<\\CEOF
27960 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27961 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27962 b
27963 :def
27964 _ACEOF
27965   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27966   echo 'CEOF
27967     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27968   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27969   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27970   grep . conftest.tail >/dev/null || break
27971   rm -f conftest.defines
27972   mv conftest.tail conftest.defines
27973 done
27974 rm -f conftest.defines conftest.tail
27975
27976 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27977 cat >>$CONFIG_STATUS <<\_ACEOF
27978   if test x"$ac_file" != x-; then
27979     echo "/* $configure_input  */" >"$tmp/config.h"
27980     cat "$ac_result" >>"$tmp/config.h"
27981     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27982       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27983 echo "$as_me: $ac_file is unchanged" >&6;}
27984     else
27985       rm -f $ac_file
27986       mv "$tmp/config.h" $ac_file
27987     fi
27988   else
27989     echo "/* $configure_input  */"
27990     cat "$ac_result"
27991   fi
27992   rm -f "$tmp/out12"
27993  ;;
27994
27995   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27996 echo "$as_me: executing $ac_file commands" >&6;}
27997  ;;
27998   esac
27999
28000
28001   case $ac_file$ac_mode in
28002     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
28003     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
28004     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
28005     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
28006
28007   esac
28008 done # for ac_tag
28009
28010
28011 { (exit 0); exit 0; }
28012 _ACEOF
28013 chmod +x $CONFIG_STATUS
28014 ac_clean_files=$ac_clean_files_save
28015
28016
28017 # configure is writing to config.log, and then calls config.status.
28018 # config.status does its own redirection, appending to config.log.
28019 # Unfortunately, on DOS this fails, as config.log is still kept open
28020 # by configure, so config.status won't be able to write to it; its
28021 # output is simply discarded.  So we exec the FD to /dev/null,
28022 # effectively closing config.log, so it can be properly (re)opened and
28023 # appended to by config.status.  When coming back to configure, we
28024 # need to make the FD available again.
28025 if test "$no_create" != yes; then
28026   ac_cs_success=:
28027   ac_config_status_args=
28028   test "$silent" = yes &&
28029     ac_config_status_args="$ac_config_status_args --quiet"
28030   exec 5>/dev/null
28031   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28032   exec 5>>config.log
28033   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28034   # would make configure fail if this is the last instruction.
28035   $ac_cs_success || { (exit 1); exit 1; }
28036 fi
28037
28038 #
28039 # CONFIG_SUBDIRS section.
28040 #
28041 if test "$no_recursion" != yes; then
28042
28043   # Remove --cache-file and --srcdir arguments so they do not pile up.
28044   ac_sub_configure_args=
28045   ac_prev=
28046   eval "set x $ac_configure_args"
28047   shift
28048   for ac_arg
28049   do
28050     if test -n "$ac_prev"; then
28051       ac_prev=
28052       continue
28053     fi
28054     case $ac_arg in
28055     -cache-file | --cache-file | --cache-fil | --cache-fi \
28056     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28057       ac_prev=cache_file ;;
28058     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28059     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28060     | --c=*)
28061       ;;
28062     --config-cache | -C)
28063       ;;
28064     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28065       ac_prev=srcdir ;;
28066     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28067       ;;
28068     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28069       ac_prev=prefix ;;
28070     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28071       ;;
28072     *)
28073       case $ac_arg in
28074       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28075       esac
28076       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
28077     esac
28078   done
28079
28080   # Always prepend --prefix to ensure using the same prefix
28081   # in subdir configurations.
28082   ac_arg="--prefix=$prefix"
28083   case $ac_arg in
28084   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28085   esac
28086   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
28087
28088   ac_popdir=`pwd`
28089   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28090
28091     # Do not complain, so a configure script can configure whichever
28092     # parts of a large source tree are present.
28093     test -d "$srcdir/$ac_dir" || continue
28094
28095     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28096     echo "$as_me:$LINENO: $ac_msg" >&5
28097     echo "$ac_msg" >&6
28098     { as_dir="$ac_dir"
28099   case $as_dir in #(
28100   -*) as_dir=./$as_dir;;
28101   esac
28102   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28103     as_dirs=
28104     while :; do
28105       case $as_dir in #(
28106       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28107       *) as_qdir=$as_dir;;
28108       esac
28109       as_dirs="'$as_qdir' $as_dirs"
28110       as_dir=`$as_dirname -- "$as_dir" ||
28111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28112          X"$as_dir" : 'X\(//\)[^/]' \| \
28113          X"$as_dir" : 'X\(//\)$' \| \
28114          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28115 echo X"$as_dir" |
28116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28117             s//\1/
28118             q
28119           }
28120           /^X\(\/\/\)[^/].*/{
28121             s//\1/
28122             q
28123           }
28124           /^X\(\/\/\)$/{
28125             s//\1/
28126             q
28127           }
28128           /^X\(\/\).*/{
28129             s//\1/
28130             q
28131           }
28132           s/.*/./; q'`
28133       test -d "$as_dir" && break
28134     done
28135     test -z "$as_dirs" || eval "mkdir $as_dirs"
28136   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28137 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28138    { (exit 1); exit 1; }; }; }
28139     ac_builddir=.
28140
28141 case "$ac_dir" in
28142 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28143 *)
28144   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28145   # A ".." for each directory in $ac_dir_suffix.
28146   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28147   case $ac_top_builddir_sub in
28148   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28149   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28150   esac ;;
28151 esac
28152 ac_abs_top_builddir=$ac_pwd
28153 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28154 # for backward compatibility:
28155 ac_top_builddir=$ac_top_build_prefix
28156
28157 case $srcdir in
28158   .)  # We are building in place.
28159     ac_srcdir=.
28160     ac_top_srcdir=$ac_top_builddir_sub
28161     ac_abs_top_srcdir=$ac_pwd ;;
28162   [\\/]* | ?:[\\/]* )  # Absolute name.
28163     ac_srcdir=$srcdir$ac_dir_suffix;
28164     ac_top_srcdir=$srcdir
28165     ac_abs_top_srcdir=$srcdir ;;
28166   *) # Relative name.
28167     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28168     ac_top_srcdir=$ac_top_build_prefix$srcdir
28169     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28170 esac
28171 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28172
28173
28174     cd "$ac_dir"
28175
28176     # Check for guested configure; otherwise get Cygnus style configure.
28177     if test -f "$ac_srcdir/configure.gnu"; then
28178       ac_sub_configure=$ac_srcdir/configure.gnu
28179     elif test -f "$ac_srcdir/configure"; then
28180       ac_sub_configure=$ac_srcdir/configure
28181     elif test -f "$ac_srcdir/configure.in"; then
28182       # This should be Cygnus configure.
28183       ac_sub_configure=$ac_aux_dir/configure
28184     else
28185       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
28186 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28187       ac_sub_configure=
28188     fi
28189
28190     # The recursion is here.
28191     if test -n "$ac_sub_configure"; then
28192       # Make the cache file name correct relative to the subdirectory.
28193       case $cache_file in
28194       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28195       *) # Relative name.
28196         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28197       esac
28198
28199       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
28200 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28201       # The eval makes quoting arguments work.
28202       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28203            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28204         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
28205 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
28206    { (exit 1); exit 1; }; }
28207     fi
28208
28209     cd "$ac_popdir"
28210   done
28211 fi
28212