Updated version number
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.198.2.15.2.10 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553
554 # Check that we are running under the correct shell.
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 case X$ECHO in
558 X*--fallback-echo)
559   # Remove one level of quotation (which was required for Make).
560   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
561   ;;
562 esac
563
564 echo=${ECHO-echo}
565 if test "X$1" = X--no-reexec; then
566   # Discard the --no-reexec flag, and continue.
567   shift
568 elif test "X$1" = X--fallback-echo; then
569   # Avoid inline document here, it may be left over
570   :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572   # Yippee, $echo works!
573   :
574 else
575   # Restart under the correct shell.
576   exec $SHELL "$0" --no-reexec ${1+"$@"}
577 fi
578
579 if test "X$1" = X--fallback-echo; then
580   # used as fallback echo
581   shift
582   cat <<EOF
583 $*
584 EOF
585   exit 0
586 fi
587
588 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 # if CDPATH is set.
590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598        echo_test_string=`eval $cmd` &&
599        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600     then
601       break
602     fi
603   done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608    test "X$echo_testing_string" = "X$echo_test_string"; then
609   :
610 else
611   # The Solaris, AIX, and Digital Unix default echo programs unquote
612   # backslashes.  This makes it impossible to quote backslashes using
613   #   echo "$something" | sed 's/\\/\\\\/g'
614   #
615   # So, first we look for a working echo in the user's PATH.
616
617   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618   for dir in $PATH /usr/ucb; do
619     IFS="$lt_save_ifs"
620     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623        test "X$echo_testing_string" = "X$echo_test_string"; then
624       echo="$dir/echo"
625       break
626     fi
627   done
628   IFS="$lt_save_ifs"
629
630   if test "X$echo" = Xecho; then
631     # We didn't find a better echo, so look for alternatives.
632     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634        test "X$echo_testing_string" = "X$echo_test_string"; then
635       # This shell has a builtin print -r that does the trick.
636       echo='print -r'
637     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638          test "X$CONFIG_SHELL" != X/bin/ksh; then
639       # If we have ksh, try running configure again with it.
640       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641       export ORIGINAL_CONFIG_SHELL
642       CONFIG_SHELL=/bin/ksh
643       export CONFIG_SHELL
644       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645     else
646       # Try using printf.
647       echo='printf %s\n'
648       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650          test "X$echo_testing_string" = "X$echo_test_string"; then
651         # Cool, printf works
652         :
653       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654            test "X$echo_testing_string" = 'X\t' &&
655            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656            test "X$echo_testing_string" = "X$echo_test_string"; then
657         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658         export CONFIG_SHELL
659         SHELL="$CONFIG_SHELL"
660         export SHELL
661         echo="$CONFIG_SHELL $0 --fallback-echo"
662       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663            test "X$echo_testing_string" = 'X\t' &&
664            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665            test "X$echo_testing_string" = "X$echo_test_string"; then
666         echo="$CONFIG_SHELL $0 --fallback-echo"
667       else
668         # maybe with a smaller string...
669         prev=:
670
671         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673           then
674             break
675           fi
676           prev="$cmd"
677         done
678
679         if test "$prev" != 'sed 50q "$0"'; then
680           echo_test_string=`eval $prev`
681           export echo_test_string
682           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683         else
684           # Oops.  We lost completely, so just stick with echo.
685           echo=echo
686         fi
687       fi
688     fi
689   fi
690 fi
691 fi
692
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 tagnames=${tagnames+${tagnames},}CXX
704
705 tagnames=${tagnames+${tagnames},}F77
706
707 exec 7<&0 </dev/null 6>&1
708
709 # Name of the host.
710 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
714 #
715 # Initializations.
716 #
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
725 SHELL=${CONFIG_SHELL-/bin/sh}
726
727 # Identity of this package.
728 PACKAGE_NAME=
729 PACKAGE_TARNAME=
730 PACKAGE_VERSION=
731 PACKAGE_STRING=
732 PACKAGE_BUGREPORT=
733
734 ac_unique_file="src/main/radiusd.c"
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 ac_subst_vars='SHELL
772 PATH_SEPARATOR
773 PACKAGE_NAME
774 PACKAGE_TARNAME
775 PACKAGE_VERSION
776 PACKAGE_STRING
777 PACKAGE_BUGREPORT
778 exec_prefix
779 prefix
780 program_transform_name
781 bindir
782 sbindir
783 libexecdir
784 datarootdir
785 datadir
786 sysconfdir
787 sharedstatedir
788 localstatedir
789 includedir
790 oldincludedir
791 docdir
792 infodir
793 htmldir
794 dvidir
795 pdfdir
796 psdir
797 libdir
798 localedir
799 mandir
800 DEFS
801 ECHO_C
802 ECHO_N
803 ECHO_T
804 LIBS
805 build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 CPPFLAGS
812 ac_ct_CC
813 EXEEXT
814 OBJEXT
815 CPP
816 GREP
817 EGREP
818 RANLIB
819 abs_top_builddir
820 GMAKE
821 MAKE
822 LTDL_SUBDIRS
823 LIBTOOL
824 build
825 build_cpu
826 build_vendor
827 build_os
828 host
829 host_cpu
830 host_vendor
831 host_os
832 LN_S
833 ECHO
834 AR
835 STRIP
836 CXX
837 CXXFLAGS
838 ac_ct_CXX
839 CXXCPP
840 F77
841 FFLAGS
842 ac_ct_F77
843 logdir
844 radacctdir
845 raddbdir
846 PERL
847 SNMPGET
848 SNMPWALK
849 RUSERS
850 ACLOCAL
851 AUTOCONF
852 AUTOHEADER
853 LOCATE
854 DIRNAME
855 REGEX
856 REGEX_EXTENDED
857 OPENSSL_INCLUDE
858 OPENSSL_LIBS
859 LIBPREFIX
860 CRYPTLIB
861 SNMP_LIBS
862 SNMP_INCLUDE
863 GETCONF
864 LFS_CFLAGS
865 LFS_LDFLAGS
866 LFS_LIBS
867 HOSTINFO
868 LIBLTDL
869 INCLTDL
870 subdirs
871 MODULES
872 INSTALLSTRIP
873 USE_SHARED_LIBS
874 USE_STATIC_LIBS
875 STATIC_MODULES
876 RADIUSD_MAJOR_VERSION
877 RADIUSD_MINOR_VERSION
878 RADIUSD_VERSION
879 LIBOBJS
880 LTLIBOBJS'
881 ac_subst_files=''
882       ac_precious_vars='build_alias
883 host_alias
884 target_alias
885 CC
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
890 CPP
891 CXX
892 CXXFLAGS
893 CCC
894 CXXCPP
895 F77
896 FFLAGS'
897 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
904 cache_file=/dev/null
905 exec_prefix=NONE
906 no_create=
907 no_recursion=
908 prefix=NONE
909 program_prefix=NONE
910 program_suffix=NONE
911 program_transform_name=s,x,x,
912 silent=
913 site=
914 srcdir=
915 verbose=
916 x_includes=NONE
917 x_libraries=NONE
918
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
937 htmldir='${docdir}'
938 dvidir='${docdir}'
939 pdfdir='${docdir}'
940 psdir='${docdir}'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
944
945 ac_prev=
946 ac_dashdash=
947 for ac_option
948 do
949   # If the previous option needs an argument, assign it.
950   if test -n "$ac_prev"; then
951     eval $ac_prev=\$ac_option
952     ac_prev=
953     continue
954   fi
955
956   case $ac_option in
957   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958   *)    ac_optarg=yes ;;
959   esac
960
961   # Accept the important Cygnus configure options, so we can diagnose typos.
962
963   case $ac_dashdash$ac_option in
964   --)
965     ac_dashdash=yes ;;
966
967   -bindir | --bindir | --bindi | --bind | --bin | --bi)
968     ac_prev=bindir ;;
969   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970     bindir=$ac_optarg ;;
971
972   -build | --build | --buil | --bui | --bu)
973     ac_prev=build_alias ;;
974   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975     build_alias=$ac_optarg ;;
976
977   -cache-file | --cache-file | --cache-fil | --cache-fi \
978   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979     ac_prev=cache_file ;;
980   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982     cache_file=$ac_optarg ;;
983
984   --config-cache | -C)
985     cache_file=config.cache ;;
986
987   -datadir | --datadir | --datadi | --datad)
988     ac_prev=datadir ;;
989   -datadir=* | --datadir=* | --datadi=* | --datad=*)
990     datadir=$ac_optarg ;;
991
992   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993   | --dataroo | --dataro | --datar)
994     ac_prev=datarootdir ;;
995   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997     datarootdir=$ac_optarg ;;
998
999   -disable-* | --disable-*)
1000     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004    { (exit 1); exit 1; }; }
1005     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006     eval enable_$ac_feature=no ;;
1007
1008   -docdir | --docdir | --docdi | --doc | --do)
1009     ac_prev=docdir ;;
1010   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011     docdir=$ac_optarg ;;
1012
1013   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014     ac_prev=dvidir ;;
1015   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016     dvidir=$ac_optarg ;;
1017
1018   -enable-* | --enable-*)
1019     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020     # Reject names that are not valid shell variable names.
1021     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023    { (exit 1); exit 1; }; }
1024     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025     eval enable_$ac_feature=\$ac_optarg ;;
1026
1027   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029   | --exec | --exe | --ex)
1030     ac_prev=exec_prefix ;;
1031   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033   | --exec=* | --exe=* | --ex=*)
1034     exec_prefix=$ac_optarg ;;
1035
1036   -gas | --gas | --ga | --g)
1037     # Obsolete; use --with-gas.
1038     with_gas=yes ;;
1039
1040   -help | --help | --hel | --he | -h)
1041     ac_init_help=long ;;
1042   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043     ac_init_help=recursive ;;
1044   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045     ac_init_help=short ;;
1046
1047   -host | --host | --hos | --ho)
1048     ac_prev=host_alias ;;
1049   -host=* | --host=* | --hos=* | --ho=*)
1050     host_alias=$ac_optarg ;;
1051
1052   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053     ac_prev=htmldir ;;
1054   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055   | --ht=*)
1056     htmldir=$ac_optarg ;;
1057
1058   -includedir | --includedir | --includedi | --included | --include \
1059   | --includ | --inclu | --incl | --inc)
1060     ac_prev=includedir ;;
1061   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062   | --includ=* | --inclu=* | --incl=* | --inc=*)
1063     includedir=$ac_optarg ;;
1064
1065   -infodir | --infodir | --infodi | --infod | --info | --inf)
1066     ac_prev=infodir ;;
1067   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068     infodir=$ac_optarg ;;
1069
1070   -libdir | --libdir | --libdi | --libd)
1071     ac_prev=libdir ;;
1072   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073     libdir=$ac_optarg ;;
1074
1075   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076   | --libexe | --libex | --libe)
1077     ac_prev=libexecdir ;;
1078   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079   | --libexe=* | --libex=* | --libe=*)
1080     libexecdir=$ac_optarg ;;
1081
1082   -localedir | --localedir | --localedi | --localed | --locale)
1083     ac_prev=localedir ;;
1084   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085     localedir=$ac_optarg ;;
1086
1087   -localstatedir | --localstatedir | --localstatedi | --localstated \
1088   | --localstate | --localstat | --localsta | --localst | --locals)
1089     ac_prev=localstatedir ;;
1090   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092     localstatedir=$ac_optarg ;;
1093
1094   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095     ac_prev=mandir ;;
1096   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097     mandir=$ac_optarg ;;
1098
1099   -nfp | --nfp | --nf)
1100     # Obsolete; use --without-fp.
1101     with_fp=no ;;
1102
1103   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104   | --no-cr | --no-c | -n)
1105     no_create=yes ;;
1106
1107   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109     no_recursion=yes ;;
1110
1111   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113   | --oldin | --oldi | --old | --ol | --o)
1114     ac_prev=oldincludedir ;;
1115   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118     oldincludedir=$ac_optarg ;;
1119
1120   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121     ac_prev=prefix ;;
1122   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123     prefix=$ac_optarg ;;
1124
1125   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126   | --program-pre | --program-pr | --program-p)
1127     ac_prev=program_prefix ;;
1128   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130     program_prefix=$ac_optarg ;;
1131
1132   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133   | --program-suf | --program-su | --program-s)
1134     ac_prev=program_suffix ;;
1135   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137     program_suffix=$ac_optarg ;;
1138
1139   -program-transform-name | --program-transform-name \
1140   | --program-transform-nam | --program-transform-na \
1141   | --program-transform-n | --program-transform- \
1142   | --program-transform | --program-transfor \
1143   | --program-transfo | --program-transf \
1144   | --program-trans | --program-tran \
1145   | --progr-tra | --program-tr | --program-t)
1146     ac_prev=program_transform_name ;;
1147   -program-transform-name=* | --program-transform-name=* \
1148   | --program-transform-nam=* | --program-transform-na=* \
1149   | --program-transform-n=* | --program-transform-=* \
1150   | --program-transform=* | --program-transfor=* \
1151   | --program-transfo=* | --program-transf=* \
1152   | --program-trans=* | --program-tran=* \
1153   | --progr-tra=* | --program-tr=* | --program-t=*)
1154     program_transform_name=$ac_optarg ;;
1155
1156   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157     ac_prev=pdfdir ;;
1158   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159     pdfdir=$ac_optarg ;;
1160
1161   -psdir | --psdir | --psdi | --psd | --ps)
1162     ac_prev=psdir ;;
1163   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164     psdir=$ac_optarg ;;
1165
1166   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167   | -silent | --silent | --silen | --sile | --sil)
1168     silent=yes ;;
1169
1170   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171     ac_prev=sbindir ;;
1172   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173   | --sbi=* | --sb=*)
1174     sbindir=$ac_optarg ;;
1175
1176   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178   | --sharedst | --shareds | --shared | --share | --shar \
1179   | --sha | --sh)
1180     ac_prev=sharedstatedir ;;
1181   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184   | --sha=* | --sh=*)
1185     sharedstatedir=$ac_optarg ;;
1186
1187   -site | --site | --sit)
1188     ac_prev=site ;;
1189   -site=* | --site=* | --sit=*)
1190     site=$ac_optarg ;;
1191
1192   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193     ac_prev=srcdir ;;
1194   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195     srcdir=$ac_optarg ;;
1196
1197   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198   | --syscon | --sysco | --sysc | --sys | --sy)
1199     ac_prev=sysconfdir ;;
1200   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202     sysconfdir=$ac_optarg ;;
1203
1204   -target | --target | --targe | --targ | --tar | --ta | --t)
1205     ac_prev=target_alias ;;
1206   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207     target_alias=$ac_optarg ;;
1208
1209   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210     verbose=yes ;;
1211
1212   -version | --version | --versio | --versi | --vers | -V)
1213     ac_init_version=: ;;
1214
1215   -with-* | --with-*)
1216     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219       { echo "$as_me: error: invalid package name: $ac_package" >&2
1220    { (exit 1); exit 1; }; }
1221     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222     eval with_$ac_package=\$ac_optarg ;;
1223
1224   -without-* | --without-*)
1225     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226     # Reject names that are not valid shell variable names.
1227     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228       { echo "$as_me: error: invalid package name: $ac_package" >&2
1229    { (exit 1); exit 1; }; }
1230     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231     eval with_$ac_package=no ;;
1232
1233   --x)
1234     # Obsolete; use --with-x.
1235     with_x=yes ;;
1236
1237   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238   | --x-incl | --x-inc | --x-in | --x-i)
1239     ac_prev=x_includes ;;
1240   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242     x_includes=$ac_optarg ;;
1243
1244   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246     ac_prev=x_libraries ;;
1247   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249     x_libraries=$ac_optarg ;;
1250
1251   -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253    { (exit 1); exit 1; }; }
1254     ;;
1255
1256   *=*)
1257     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261    { (exit 1); exit 1; }; }
1262     eval $ac_envvar=\$ac_optarg
1263     export $ac_envvar ;;
1264
1265   *)
1266     # FIXME: should be removed in autoconf 3.0.
1267     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271     ;;
1272
1273   esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278   { echo "$as_me: error: missing argument to $ac_option" >&2
1279    { (exit 1); exit 1; }; }
1280 fi
1281
1282 # Be sure to have absolute directory names.
1283 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284                 datadir sysconfdir sharedstatedir localstatedir includedir \
1285                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286                 libdir localedir mandir
1287 do
1288   eval ac_val=\$$ac_var
1289   case $ac_val in
1290     [\\/$]* | ?:[\\/]* )  continue;;
1291     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292   esac
1293   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294    { (exit 1); exit 1; }; }
1295 done
1296
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1303
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306   if test "x$build_alias" = x; then
1307     cross_compiling=maybe
1308     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309     If a cross compiler is detected then cross compile mode will be used." >&2
1310   elif test "x$build_alias" != "x$host_alias"; then
1311     cross_compiling=yes
1312   fi
1313 fi
1314
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318 test "$silent" = yes && exec 6>/dev/null
1319
1320
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324   { echo "$as_me: error: Working directory cannot be determined" >&2
1325    { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327   { echo "$as_me: error: pwd does not report name of working directory" >&2
1328    { (exit 1); exit 1; }; }
1329
1330
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333   ac_srcdir_defaulted=yes
1334   # Try the directory containing this script, then the parent directory.
1335   ac_confdir=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337          X"$0" : 'X\(//\)[^/]' \| \
1338          X"$0" : 'X\(//\)$' \| \
1339          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1340 echo X"$0" |
1341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342             s//\1/
1343             q
1344           }
1345           /^X\(\/\/\)[^/].*/{
1346             s//\1/
1347             q
1348           }
1349           /^X\(\/\/\)$/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\).*/{
1354             s//\1/
1355             q
1356           }
1357           s/.*/./; q'`
1358   srcdir=$ac_confdir
1359   if test ! -r "$srcdir/$ac_unique_file"; then
1360     srcdir=..
1361   fi
1362 else
1363   ac_srcdir_defaulted=no
1364 fi
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368    { (exit 1); exit 1; }; }
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373    { (exit 1); exit 1; }; }
1374         pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377   srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_env_${ac_var}_value=\$${ac_var}
1388   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396   # Omit some internal or obsolete options to make the list less imposing.
1397   # This message is too long to be a string in the A/UX 3.1 sh.
1398   cat <<_ACEOF
1399 \`configure' configures this package to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE.  See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409   -h, --help              display this help and exit
1410       --help=short        display options specific to this package
1411       --help=recursive    display the short help of all the included packages
1412   -V, --version           display version information and exit
1413   -q, --quiet, --silent   do not print \`checking...' messages
1414       --cache-file=FILE   cache test results in FILE [disabled]
1415   -C, --config-cache      alias for \`--cache-file=config.cache'
1416   -n, --no-create         do not create output files
1417       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420   --prefix=PREFIX         install architecture-independent files in PREFIX
1421                           [$ac_default_prefix]
1422   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1423                           [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433   --bindir=DIR           user executables [EPREFIX/bin]
1434   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1435   --libexecdir=DIR       program executables [EPREFIX/libexec]
1436   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1437   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1438   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1439   --libdir=DIR           object code libraries [EPREFIX/lib]
1440   --includedir=DIR       C header files [PREFIX/include]
1441   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1442   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1443   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1444   --infodir=DIR          info documentation [DATAROOTDIR/info]
1445   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1446   --mandir=DIR           man documentation [DATAROOTDIR/man]
1447   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1448   --htmldir=DIR          html documentation [DOCDIR]
1449   --dvidir=DIR           dvi documentation [DOCDIR]
1450   --pdfdir=DIR           pdf documentation [DOCDIR]
1451   --psdir=DIR            ps documentation [DOCDIR]
1452 _ACEOF
1453
1454   cat <<\_ACEOF
1455
1456 System types:
1457   --build=BUILD     configure for building on BUILD [guessed]
1458   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1460 fi
1461
1462 if test -n "$ac_init_help"; then
1463
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1468   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1469   --enable-shared[=PKGS]  build shared libraries [default=yes]
1470   --enable-static[=PKGS]  build static libraries [default=yes]
1471   --enable-fast-install[=PKGS]
1472                           optimize for fast installation [default=yes]
1473   --disable-libtool-lock  avoid locking (might break parallel builds)
1474   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1475   --enable-developer               Enables features of interest to developers.
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-system-libtool              try to use libtool installed in your system default=use our own
1481   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482   --with-pic              try to use only PIC/non-PIC objects [default=use
1483                           both]
1484   --with-tags[=TAGS]      include additional configurations [automatic]
1485   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1486   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1487   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1488   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1489   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1490   --with-threads          Use threads, if available.  (default=yes)
1491   --with-snmp             Compile in SNMP support. (default=yes)
1492   --with-large-files      Compile in large (2G+) file support. (default=no)
1493   --with-static-modules=QUOTED-MODULE-LIST
1494  --with-modules=QUOTED-MODULE-LIST
1495   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1496   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1497   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1498   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1499   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1500   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1501   --with-edir             Enable Novell eDirectory integration.  (default=no)
1502
1503 Some influential environment variables:
1504   CC          C compiler command
1505   CFLAGS      C compiler flags
1506   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507               nonstandard directory <lib dir>
1508   LIBS        libraries to pass to the linker, e.g. -l<library>
1509   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510               you have headers in a nonstandard directory <include dir>
1511   CPP         C preprocessor
1512   CXX         C++ compiler command
1513   CXXFLAGS    C++ compiler flags
1514   CXXCPP      C++ preprocessor
1515   F77         Fortran 77 compiler command
1516   FFLAGS      Fortran 77 compiler flags
1517
1518 Use these variables to override the choices made by `configure' or to help
1519 it to find libraries and programs with nonstandard names/locations.
1520
1521 _ACEOF
1522 ac_status=$?
1523 fi
1524
1525 if test "$ac_init_help" = "recursive"; then
1526   # If there are subdirs, report their specific --help.
1527   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528     test -d "$ac_dir" || continue
1529     ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1535   # A ".." for each directory in $ac_dir_suffix.
1536   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537   case $ac_top_builddir_sub in
1538   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540   esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548   .)  # We are building in place.
1549     ac_srcdir=.
1550     ac_top_srcdir=$ac_top_builddir_sub
1551     ac_abs_top_srcdir=$ac_pwd ;;
1552   [\\/]* | ?:[\\/]* )  # Absolute name.
1553     ac_srcdir=$srcdir$ac_dir_suffix;
1554     ac_top_srcdir=$srcdir
1555     ac_abs_top_srcdir=$srcdir ;;
1556   *) # Relative name.
1557     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558     ac_top_srcdir=$ac_top_build_prefix$srcdir
1559     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563     cd "$ac_dir" || { ac_status=$?; continue; }
1564     # Check for guested configure.
1565     if test -f "$ac_srcdir/configure.gnu"; then
1566       echo &&
1567       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568     elif test -f "$ac_srcdir/configure"; then
1569       echo &&
1570       $SHELL "$ac_srcdir/configure" --help=recursive
1571     else
1572       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573     fi || ac_status=$?
1574     cd "$ac_pwd" || { ac_status=$?; break; }
1575   done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580   cat <<\_ACEOF
1581 configure
1582 generated by GNU Autoconf 2.61
1583
1584 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1585 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1586 This configure script is free software; the Free Software Foundation
1587 gives unlimited permission to copy, distribute and modify it.
1588 _ACEOF
1589   exit
1590 fi
1591 cat >config.log <<_ACEOF
1592 This file contains any messages produced by compilers while
1593 running configure, to aid debugging if configure makes a mistake.
1594
1595 It was created by $as_me, which was
1596 generated by GNU Autoconf 2.61.  Invocation command line was
1597
1598   $ $0 $@
1599
1600 _ACEOF
1601 exec 5>>config.log
1602 {
1603 cat <<_ASUNAME
1604 ## --------- ##
1605 ## Platform. ##
1606 ## --------- ##
1607
1608 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613
1614 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1616
1617 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1618 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1619 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1620 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1621 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1622 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1623 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1624
1625 _ASUNAME
1626
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630   IFS=$as_save_IFS
1631   test -z "$as_dir" && as_dir=.
1632   echo "PATH: $as_dir"
1633 done
1634 IFS=$as_save_IFS
1635
1636 } >&5
1637
1638 cat >&5 <<_ACEOF
1639
1640
1641 ## ----------- ##
1642 ## Core tests. ##
1643 ## ----------- ##
1644
1645 _ACEOF
1646
1647
1648 # Keep a trace of the command line.
1649 # Strip out --no-create and --no-recursion so they do not pile up.
1650 # Strip out --silent because we don't want to record it for future runs.
1651 # Also quote any args containing shell meta-characters.
1652 # Make two passes to allow for proper duplicate-argument suppression.
1653 ac_configure_args=
1654 ac_configure_args0=
1655 ac_configure_args1=
1656 ac_must_keep_next=false
1657 for ac_pass in 1 2
1658 do
1659   for ac_arg
1660   do
1661     case $ac_arg in
1662     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664     | -silent | --silent | --silen | --sile | --sil)
1665       continue ;;
1666     *\'*)
1667       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668     esac
1669     case $ac_pass in
1670     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671     2)
1672       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673       if test $ac_must_keep_next = true; then
1674         ac_must_keep_next=false # Got value, back to normal.
1675       else
1676         case $ac_arg in
1677           *=* | --config-cache | -C | -disable-* | --disable-* \
1678           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680           | -with-* | --with-* | -without-* | --without-* | --x)
1681             case "$ac_configure_args0 " in
1682               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683             esac
1684             ;;
1685           -* ) ac_must_keep_next=true ;;
1686         esac
1687       fi
1688       ac_configure_args="$ac_configure_args '$ac_arg'"
1689       ;;
1690     esac
1691   done
1692 done
1693 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695
1696 # When interrupted or exit'd, cleanup temporary files, and complete
1697 # config.log.  We remove comments because anyway the quotes in there
1698 # would cause problems or look ugly.
1699 # WARNING: Use '\'' to represent an apostrophe within the trap.
1700 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1701 trap 'exit_status=$?
1702   # Save into config.log some information that might help in debugging.
1703   {
1704     echo
1705
1706     cat <<\_ASBOX
1707 ## ---------------- ##
1708 ## Cache variables. ##
1709 ## ---------------- ##
1710 _ASBOX
1711     echo
1712     # The following way of writing the cache mishandles newlines in values,
1713 (
1714   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715     eval ac_val=\$$ac_var
1716     case $ac_val in #(
1717     *${as_nl}*)
1718       case $ac_var in #(
1719       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721       esac
1722       case $ac_var in #(
1723       _ | IFS | as_nl) ;; #(
1724       *) $as_unset $ac_var ;;
1725       esac ;;
1726     esac
1727   done
1728   (set) 2>&1 |
1729     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730     *${as_nl}ac_space=\ *)
1731       sed -n \
1732         "s/'\''/'\''\\\\'\'''\''/g;
1733           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734       ;; #(
1735     *)
1736       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737       ;;
1738     esac |
1739     sort
1740 )
1741     echo
1742
1743     cat <<\_ASBOX
1744 ## ----------------- ##
1745 ## Output variables. ##
1746 ## ----------------- ##
1747 _ASBOX
1748     echo
1749     for ac_var in $ac_subst_vars
1750     do
1751       eval ac_val=\$$ac_var
1752       case $ac_val in
1753       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754       esac
1755       echo "$ac_var='\''$ac_val'\''"
1756     done | sort
1757     echo
1758
1759     if test -n "$ac_subst_files"; then
1760       cat <<\_ASBOX
1761 ## ------------------- ##
1762 ## File substitutions. ##
1763 ## ------------------- ##
1764 _ASBOX
1765       echo
1766       for ac_var in $ac_subst_files
1767       do
1768         eval ac_val=\$$ac_var
1769         case $ac_val in
1770         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771         esac
1772         echo "$ac_var='\''$ac_val'\''"
1773       done | sort
1774       echo
1775     fi
1776
1777     if test -s confdefs.h; then
1778       cat <<\_ASBOX
1779 ## ----------- ##
1780 ## confdefs.h. ##
1781 ## ----------- ##
1782 _ASBOX
1783       echo
1784       cat confdefs.h
1785       echo
1786     fi
1787     test "$ac_signal" != 0 &&
1788       echo "$as_me: caught signal $ac_signal"
1789     echo "$as_me: exit $exit_status"
1790   } >&5
1791   rm -f core *.core core.conftest.* &&
1792     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1793     exit $exit_status
1794 ' 0
1795 for ac_signal in 1 2 13 15; do
1796   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797 done
1798 ac_signal=0
1799
1800 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1801 rm -f -r conftest* confdefs.h
1802
1803 # Predefined preprocessor variables.
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_NAME "$PACKAGE_NAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_STRING "$PACKAGE_STRING"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827 _ACEOF
1828
1829
1830 # Let the site file select an alternate cache file if it wants to.
1831 # Prefer explicitly selected file to automatically selected ones.
1832 if test -n "$CONFIG_SITE"; then
1833   set x "$CONFIG_SITE"
1834 elif test "x$prefix" != xNONE; then
1835   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836 else
1837   set x "$ac_default_prefix/share/config.site" \
1838         "$ac_default_prefix/etc/config.site"
1839 fi
1840 shift
1841 for ac_site_file
1842 do
1843   if test -r "$ac_site_file"; then
1844     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845 echo "$as_me: loading site script $ac_site_file" >&6;}
1846     sed 's/^/| /' "$ac_site_file" >&5
1847     . "$ac_site_file"
1848   fi
1849 done
1850
1851 if test -r "$cache_file"; then
1852   # Some versions of bash will fail to source /dev/null (special
1853   # files actually), so we avoid doing that.
1854   if test -f "$cache_file"; then
1855     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856 echo "$as_me: loading cache $cache_file" >&6;}
1857     case $cache_file in
1858       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859       *)                      . "./$cache_file";;
1860     esac
1861   fi
1862 else
1863   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864 echo "$as_me: creating cache $cache_file" >&6;}
1865   >$cache_file
1866 fi
1867
1868 # Check that the precious variables saved in the cache have kept the same
1869 # value.
1870 ac_cache_corrupted=false
1871 for ac_var in $ac_precious_vars; do
1872   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873   eval ac_new_set=\$ac_env_${ac_var}_set
1874   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875   eval ac_new_val=\$ac_env_${ac_var}_value
1876   case $ac_old_set,$ac_new_set in
1877     set,)
1878       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880       ac_cache_corrupted=: ;;
1881     ,set)
1882       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884       ac_cache_corrupted=: ;;
1885     ,);;
1886     *)
1887       if test "x$ac_old_val" != "x$ac_new_val"; then
1888         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1891 echo "$as_me:   former value:  $ac_old_val" >&2;}
1892         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1893 echo "$as_me:   current value: $ac_new_val" >&2;}
1894         ac_cache_corrupted=:
1895       fi;;
1896   esac
1897   # Pass precious variables to config.status.
1898   if test "$ac_new_set" = set; then
1899     case $ac_new_val in
1900     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1901     *) ac_arg=$ac_var=$ac_new_val ;;
1902     esac
1903     case " $ac_configure_args " in
1904       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1905       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906     esac
1907   fi
1908 done
1909 if $ac_cache_corrupted; then
1910   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914    { (exit 1); exit 1; }; }
1915 fi
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933 ac_ext=c
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938
1939
1940 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1941
1942
1943
1944 RADIUSD_MAJOR_VERSION=1
1945 RADIUSD_MINOR_VERSION=1.4
1946 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1947
1948
1949 ac_ext=c
1950 ac_cpp='$CPP $CPPFLAGS'
1951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 if test -n "$ac_tool_prefix"; then
1955   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960   echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962   if test -n "$CC"; then
1963   ac_cv_prog_CC="$CC" # Let the user override the test.
1964 else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968   IFS=$as_save_IFS
1969   test -z "$as_dir" && as_dir=.
1970   for ac_exec_ext in '' $ac_executable_extensions; do
1971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974     break 2
1975   fi
1976 done
1977 done
1978 IFS=$as_save_IFS
1979
1980 fi
1981 fi
1982 CC=$ac_cv_prog_CC
1983 if test -n "$CC"; then
1984   { echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6; }
1986 else
1987   { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1989 fi
1990
1991
1992 fi
1993 if test -z "$ac_cv_prog_CC"; then
1994   ac_ct_CC=$CC
1995   # Extract the first word of "gcc", so it can be a program name with args.
1996 set dummy gcc; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   if test -n "$ac_ct_CC"; then
2003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2004 else
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 for as_dir in $PATH
2007 do
2008   IFS=$as_save_IFS
2009   test -z "$as_dir" && as_dir=.
2010   for ac_exec_ext in '' $ac_executable_extensions; do
2011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2012     ac_cv_prog_ac_ct_CC="gcc"
2013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014     break 2
2015   fi
2016 done
2017 done
2018 IFS=$as_save_IFS
2019
2020 fi
2021 fi
2022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023 if test -n "$ac_ct_CC"; then
2024   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025 echo "${ECHO_T}$ac_ct_CC" >&6; }
2026 else
2027   { echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6; }
2029 fi
2030
2031   if test "x$ac_ct_CC" = x; then
2032     CC=""
2033   else
2034     case $cross_compiling:$ac_tool_warned in
2035 yes:)
2036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2037 whose name does not start with the host triplet.  If you think this
2038 configuration is useful to you, please write to autoconf@gnu.org." >&5
2039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2040 whose name does not start with the host triplet.  If you think this
2041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2042 ac_tool_warned=yes ;;
2043 esac
2044     CC=$ac_ct_CC
2045   fi
2046 else
2047   CC="$ac_cv_prog_CC"
2048 fi
2049
2050 if test -z "$CC"; then
2051           if test -n "$ac_tool_prefix"; then
2052     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2053 set dummy ${ac_tool_prefix}cc; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$CC"; then
2060   ac_cv_prog_CC="$CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069     ac_cv_prog_CC="${ac_tool_prefix}cc"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075 IFS=$as_save_IFS
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2083 else
2084   { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2086 fi
2087
2088
2089   fi
2090 fi
2091 if test -z "$CC"; then
2092   # Extract the first word of "cc", so it can be a program name with args.
2093 set dummy cc; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097   echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099   if test -n "$CC"; then
2100   ac_cv_prog_CC="$CC" # Let the user override the test.
2101 else
2102   ac_prog_rejected=no
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2105 do
2106   IFS=$as_save_IFS
2107   test -z "$as_dir" && as_dir=.
2108   for ac_exec_ext in '' $ac_executable_extensions; do
2109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2111        ac_prog_rejected=yes
2112        continue
2113      fi
2114     ac_cv_prog_CC="cc"
2115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116     break 2
2117   fi
2118 done
2119 done
2120 IFS=$as_save_IFS
2121
2122 if test $ac_prog_rejected = yes; then
2123   # We found a bogon in the path, so make sure we never use it.
2124   set dummy $ac_cv_prog_CC
2125   shift
2126   if test $# != 0; then
2127     # We chose a different compiler from the bogus one.
2128     # However, it has the same basename, so the bogon will be chosen
2129     # first if we set CC to just the basename; use the full file name.
2130     shift
2131     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2132   fi
2133 fi
2134 fi
2135 fi
2136 CC=$ac_cv_prog_CC
2137 if test -n "$CC"; then
2138   { echo "$as_me:$LINENO: result: $CC" >&5
2139 echo "${ECHO_T}$CC" >&6; }
2140 else
2141   { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2143 fi
2144
2145
2146 fi
2147 if test -z "$CC"; then
2148   if test -n "$ac_tool_prefix"; then
2149   for ac_prog in cl.exe
2150   do
2151     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2168     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 CC=$ac_cv_prog_CC
2179 if test -n "$CC"; then
2180   { echo "$as_me:$LINENO: result: $CC" >&5
2181 echo "${ECHO_T}$CC" >&6; }
2182 else
2183   { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187
2188     test -n "$CC" && break
2189   done
2190 fi
2191 if test -z "$CC"; then
2192   ac_ct_CC=$CC
2193   for ac_prog in cl.exe
2194 do
2195   # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200   echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202   if test -n "$ac_ct_CC"; then
2203   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2207 do
2208   IFS=$as_save_IFS
2209   test -z "$as_dir" && as_dir=.
2210   for ac_exec_ext in '' $ac_executable_extensions; do
2211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2212     ac_cv_prog_ac_ct_CC="$ac_prog"
2213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214     break 2
2215   fi
2216 done
2217 done
2218 IFS=$as_save_IFS
2219
2220 fi
2221 fi
2222 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2223 if test -n "$ac_ct_CC"; then
2224   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2225 echo "${ECHO_T}$ac_ct_CC" >&6; }
2226 else
2227   { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2229 fi
2230
2231
2232   test -n "$ac_ct_CC" && break
2233 done
2234
2235   if test "x$ac_ct_CC" = x; then
2236     CC=""
2237   else
2238     case $cross_compiling:$ac_tool_warned in
2239 yes:)
2240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet.  If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&5
2243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2244 whose name does not start with the host triplet.  If you think this
2245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2246 ac_tool_warned=yes ;;
2247 esac
2248     CC=$ac_ct_CC
2249   fi
2250 fi
2251
2252 fi
2253
2254
2255 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: no acceptable C compiler found in \$PATH
2258 See \`config.log' for more details." >&2;}
2259    { (exit 1); exit 1; }; }
2260
2261 # Provide some information about the compiler.
2262 echo "$as_me:$LINENO: checking for C compiler version" >&5
2263 ac_compiler=`set X $ac_compile; echo $2`
2264 { (ac_try="$ac_compiler --version >&5"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2270   (eval "$ac_compiler --version >&5") 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }
2274 { (ac_try="$ac_compiler -v >&5"
2275 case "(($ac_try" in
2276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277   *) ac_try_echo=$ac_try;;
2278 esac
2279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280   (eval "$ac_compiler -v >&5") 2>&5
2281   ac_status=$?
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); }
2284 { (ac_try="$ac_compiler -V >&5"
2285 case "(($ac_try" in
2286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2287   *) ac_try_echo=$ac_try;;
2288 esac
2289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2290   (eval "$ac_compiler -V >&5") 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }
2294
2295 cat >conftest.$ac_ext <<_ACEOF
2296 /* confdefs.h.  */
2297 _ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h.  */
2301
2302 int
2303 main ()
2304 {
2305
2306   ;
2307   return 0;
2308 }
2309 _ACEOF
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2314 # of exeext.
2315 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2317 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2318 #
2319 # List of possible output files, starting from the most likely.
2320 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2321 # only as a last resort.  b.out is created by i960 compilers.
2322 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2323 #
2324 # The IRIX 6 linker writes into existing files which may not be
2325 # executable, retaining their permissions.  Remove them first so a
2326 # subsequent execution test works.
2327 ac_rmfiles=
2328 for ac_file in $ac_files
2329 do
2330   case $ac_file in
2331     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2332     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2333   esac
2334 done
2335 rm -f $ac_rmfiles
2336
2337 if { (ac_try="$ac_link_default"
2338 case "(($ac_try" in
2339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340   *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343   (eval "$ac_link_default") 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; then
2347   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2348 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2349 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2350 # so that the user can short-circuit this test for compilers unknown to
2351 # Autoconf.
2352 for ac_file in $ac_files ''
2353 do
2354   test -f "$ac_file" || continue
2355   case $ac_file in
2356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2357         ;;
2358     [ab].out )
2359         # We found the default executable, but exeext='' is most
2360         # certainly right.
2361         break;;
2362     *.* )
2363         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2364         then :; else
2365            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366         fi
2367         # We set ac_cv_exeext here because the later test for it is not
2368         # safe: cross compilers may not add the suffix if given an `-o'
2369         # argument, so we may need to know it at that point already.
2370         # Even if this section looks crufty: it has the advantage of
2371         # actually working.
2372         break;;
2373     * )
2374         break;;
2375   esac
2376 done
2377 test "$ac_cv_exeext" = no && ac_cv_exeext=
2378
2379 else
2380   ac_file=''
2381 fi
2382
2383 { echo "$as_me:$LINENO: result: $ac_file" >&5
2384 echo "${ECHO_T}$ac_file" >&6; }
2385 if test -z "$ac_file"; then
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: C compiler cannot create executables
2392 See \`config.log' for more details." >&2;}
2393    { (exit 77); exit 77; }; }
2394 fi
2395
2396 ac_exeext=$ac_cv_exeext
2397
2398 # Check that the compiler produces executables we can run.  If not, either
2399 # the compiler is broken, or we cross compile.
2400 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2401 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2402 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2403 # If not cross compiling, check that we can run a simple program.
2404 if test "$cross_compiling" != yes; then
2405   if { ac_try='./$ac_file'
2406   { (case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2411   (eval "$ac_try") 2>&5
2412   ac_status=$?
2413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414   (exit $ac_status); }; }; then
2415     cross_compiling=no
2416   else
2417     if test "$cross_compiling" = maybe; then
2418         cross_compiling=yes
2419     else
2420         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2421 If you meant to cross compile, use \`--host'.
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: cannot run C compiled programs.
2424 If you meant to cross compile, use \`--host'.
2425 See \`config.log' for more details." >&2;}
2426    { (exit 1); exit 1; }; }
2427     fi
2428   fi
2429 fi
2430 { echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6; }
2432
2433 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2434 ac_clean_files=$ac_clean_files_save
2435 # Check that the compiler produces executables we can run.  If not, either
2436 # the compiler is broken, or we cross compile.
2437 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2438 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2439 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2440 echo "${ECHO_T}$cross_compiling" >&6; }
2441
2442 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2443 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2444 if { (ac_try="$ac_link"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450   (eval "$ac_link") 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }; then
2454   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2455 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2456 # work properly (i.e., refer to `conftest.exe'), while it won't with
2457 # `rm'.
2458 for ac_file in conftest.exe conftest conftest.*; do
2459   test -f "$ac_file" || continue
2460   case $ac_file in
2461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2462     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2463           break;;
2464     * ) break;;
2465   esac
2466 done
2467 else
2468   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2471 See \`config.log' for more details." >&2;}
2472    { (exit 1); exit 1; }; }
2473 fi
2474
2475 rm -f conftest$ac_cv_exeext
2476 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2477 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2478
2479 rm -f conftest.$ac_ext
2480 EXEEXT=$ac_cv_exeext
2481 ac_exeext=$EXEEXT
2482 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2483 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2484 if test "${ac_cv_objext+set}" = set; then
2485   echo $ECHO_N "(cached) $ECHO_C" >&6
2486 else
2487   cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.o conftest.obj
2503 if { (ac_try="$ac_compile"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_compile") 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; then
2513   for ac_file in conftest.o conftest.obj conftest.*; do
2514   test -f "$ac_file" || continue;
2515   case $ac_file in
2516     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2517     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2518        break;;
2519   esac
2520 done
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2528 See \`config.log' for more details." >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2531
2532 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2533 fi
2534 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2535 echo "${ECHO_T}$ac_cv_objext" >&6; }
2536 OBJEXT=$ac_cv_objext
2537 ac_objext=$OBJEXT
2538 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2539 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2540 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2541   echo $ECHO_N "(cached) $ECHO_C" >&6
2542 else
2543   cat >conftest.$ac_ext <<_ACEOF
2544 /* confdefs.h.  */
2545 _ACEOF
2546 cat confdefs.h >>conftest.$ac_ext
2547 cat >>conftest.$ac_ext <<_ACEOF
2548 /* end confdefs.h.  */
2549
2550 int
2551 main ()
2552 {
2553 #ifndef __GNUC__
2554        choke me
2555 #endif
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.$ac_objext
2562 if { (ac_try="$ac_compile"
2563 case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_compile") 2>conftest.er1
2569   ac_status=$?
2570   grep -v '^ *+' conftest.er1 >conftest.err
2571   rm -f conftest.er1
2572   cat conftest.err >&5
2573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574   (exit $ac_status); } && {
2575          test -z "$ac_c_werror_flag" ||
2576          test ! -s conftest.err
2577        } && test -s conftest.$ac_objext; then
2578   ac_compiler_gnu=yes
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583         ac_compiler_gnu=no
2584 fi
2585
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2587 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2588
2589 fi
2590 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2591 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2592 GCC=`test $ac_compiler_gnu = yes && echo yes`
2593 ac_test_CFLAGS=${CFLAGS+set}
2594 ac_save_CFLAGS=$CFLAGS
2595 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2596 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_cc_g+set}" = set; then
2598   echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600   ac_save_c_werror_flag=$ac_c_werror_flag
2601    ac_c_werror_flag=yes
2602    ac_cv_prog_cc_g=no
2603    CFLAGS="-g"
2604    cat >conftest.$ac_ext <<_ACEOF
2605 /* confdefs.h.  */
2606 _ACEOF
2607 cat confdefs.h >>conftest.$ac_ext
2608 cat >>conftest.$ac_ext <<_ACEOF
2609 /* end confdefs.h.  */
2610
2611 int
2612 main ()
2613 {
2614
2615   ;
2616   return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (ac_try="$ac_compile"
2621 case "(($ac_try" in
2622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623   *) ac_try_echo=$ac_try;;
2624 esac
2625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2626   (eval "$ac_compile") 2>conftest.er1
2627   ac_status=$?
2628   grep -v '^ *+' conftest.er1 >conftest.err
2629   rm -f conftest.er1
2630   cat conftest.err >&5
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } && {
2633          test -z "$ac_c_werror_flag" ||
2634          test ! -s conftest.err
2635        } && test -s conftest.$ac_objext; then
2636   ac_cv_prog_cc_g=yes
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641         CFLAGS=""
2642       cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compile") 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } && {
2671          test -z "$ac_c_werror_flag" ||
2672          test ! -s conftest.err
2673        } && test -s conftest.$ac_objext; then
2674   :
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679         ac_c_werror_flag=$ac_save_c_werror_flag
2680          CFLAGS="-g"
2681          cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687
2688 int
2689 main ()
2690 {
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (ac_try="$ac_compile"
2698 case "(($ac_try" in
2699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700   *) ac_try_echo=$ac_try;;
2701 esac
2702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703   (eval "$ac_compile") 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } && {
2710          test -z "$ac_c_werror_flag" ||
2711          test ! -s conftest.err
2712        } && test -s conftest.$ac_objext; then
2713   ac_cv_prog_cc_g=yes
2714 else
2715   echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718
2719 fi
2720
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 fi
2723
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725 fi
2726
2727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2728    ac_c_werror_flag=$ac_save_c_werror_flag
2729 fi
2730 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2731 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2732 if test "$ac_test_CFLAGS" = set; then
2733   CFLAGS=$ac_save_CFLAGS
2734 elif test $ac_cv_prog_cc_g = yes; then
2735   if test "$GCC" = yes; then
2736     CFLAGS="-g -O2"
2737   else
2738     CFLAGS="-g"
2739   fi
2740 else
2741   if test "$GCC" = yes; then
2742     CFLAGS="-O2"
2743   else
2744     CFLAGS=
2745   fi
2746 fi
2747 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2748 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_c89+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   ac_cv_prog_cc_c89=no
2753 ac_save_CC=$CC
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760 #include <stdarg.h>
2761 #include <stdio.h>
2762 #include <sys/types.h>
2763 #include <sys/stat.h>
2764 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2765 struct buf { int x; };
2766 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2767 static char *e (p, i)
2768      char **p;
2769      int i;
2770 {
2771   return p[i];
2772 }
2773 static char *f (char * (*g) (char **, int), char **p, ...)
2774 {
2775   char *s;
2776   va_list v;
2777   va_start (v,p);
2778   s = g (p, va_arg (v,int));
2779   va_end (v);
2780   return s;
2781 }
2782
2783 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2784    function prototypes and stuff, but not '\xHH' hex character constants.
2785    These don't provoke an error unfortunately, instead are silently treated
2786    as 'x'.  The following induces an error, until -std is added to get
2787    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2788    array size at least.  It's necessary to write '\x00'==0 to get something
2789    that's true only with -std.  */
2790 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2791
2792 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2793    inside strings and character constants.  */
2794 #define FOO(x) 'x'
2795 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2796
2797 int test (int i, double x);
2798 struct s1 {int (*f) (int a);};
2799 struct s2 {int (*f) (double a);};
2800 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2801 int argc;
2802 char **argv;
2803 int
2804 main ()
2805 {
2806 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2807   ;
2808   return 0;
2809 }
2810 _ACEOF
2811 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2812         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2813 do
2814   CC="$ac_save_CC $ac_arg"
2815   rm -f conftest.$ac_objext
2816 if { (ac_try="$ac_compile"
2817 case "(($ac_try" in
2818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819   *) ac_try_echo=$ac_try;;
2820 esac
2821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2822   (eval "$ac_compile") 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } && {
2829          test -z "$ac_c_werror_flag" ||
2830          test ! -s conftest.err
2831        } && test -s conftest.$ac_objext; then
2832   ac_cv_prog_cc_c89=$ac_arg
2833 else
2834   echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837
2838 fi
2839
2840 rm -f core conftest.err conftest.$ac_objext
2841   test "x$ac_cv_prog_cc_c89" != "xno" && break
2842 done
2843 rm -f conftest.$ac_ext
2844 CC=$ac_save_CC
2845
2846 fi
2847 # AC_CACHE_VAL
2848 case "x$ac_cv_prog_cc_c89" in
2849   x)
2850     { echo "$as_me:$LINENO: result: none needed" >&5
2851 echo "${ECHO_T}none needed" >&6; } ;;
2852   xno)
2853     { echo "$as_me:$LINENO: result: unsupported" >&5
2854 echo "${ECHO_T}unsupported" >&6; } ;;
2855   *)
2856     CC="$CC $ac_cv_prog_cc_c89"
2857     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2858 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2859 esac
2860
2861
2862 ac_ext=c
2863 ac_cpp='$CPP $CPPFLAGS'
2864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867
2868
2869
2870 ac_ext=c
2871 ac_cpp='$CPP $CPPFLAGS'
2872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2876 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2877 # On Suns, sometimes $CPP names a directory.
2878 if test -n "$CPP" && test -d "$CPP"; then
2879   CPP=
2880 fi
2881 if test -z "$CPP"; then
2882   if test "${ac_cv_prog_CPP+set}" = set; then
2883   echo $ECHO_N "(cached) $ECHO_C" >&6
2884 else
2885       # Double quotes because CPP needs to be expanded
2886     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2887     do
2888       ac_preproc_ok=false
2889 for ac_c_preproc_warn_flag in '' yes
2890 do
2891   # Use a header file that comes with gcc, so configuring glibc
2892   # with a fresh cross-compiler works.
2893   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2894   # <limits.h> exists even on freestanding compilers.
2895   # On the NeXT, cc -E runs the code through the compiler's parser,
2896   # not just through cpp. "Syntax error" is here to catch this case.
2897   cat >conftest.$ac_ext <<_ACEOF
2898 /* confdefs.h.  */
2899 _ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h.  */
2903 #ifdef __STDC__
2904 # include <limits.h>
2905 #else
2906 # include <assert.h>
2907 #endif
2908                      Syntax error
2909 _ACEOF
2910 if { (ac_try="$ac_cpp conftest.$ac_ext"
2911 case "(($ac_try" in
2912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913   *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2917   ac_status=$?
2918   grep -v '^ *+' conftest.er1 >conftest.err
2919   rm -f conftest.er1
2920   cat conftest.err >&5
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); } >/dev/null && {
2923          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2924          test ! -s conftest.err
2925        }; then
2926   :
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931   # Broken: fails on valid input.
2932 continue
2933 fi
2934
2935 rm -f conftest.err conftest.$ac_ext
2936
2937   # OK, works on sane cases.  Now check whether nonexistent headers
2938   # can be detected and how.
2939   cat >conftest.$ac_ext <<_ACEOF
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945 #include <ac_nonexistent.h>
2946 _ACEOF
2947 if { (ac_try="$ac_cpp conftest.$ac_ext"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2954   ac_status=$?
2955   grep -v '^ *+' conftest.er1 >conftest.err
2956   rm -f conftest.er1
2957   cat conftest.err >&5
2958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959   (exit $ac_status); } >/dev/null && {
2960          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2961          test ! -s conftest.err
2962        }; then
2963   # Broken: success on invalid input.
2964 continue
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969   # Passes both tests.
2970 ac_preproc_ok=:
2971 break
2972 fi
2973
2974 rm -f conftest.err conftest.$ac_ext
2975
2976 done
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2980   break
2981 fi
2982
2983     done
2984     ac_cv_prog_CPP=$CPP
2985
2986 fi
2987   CPP=$ac_cv_prog_CPP
2988 else
2989   ac_cv_prog_CPP=$CPP
2990 fi
2991 { echo "$as_me:$LINENO: result: $CPP" >&5
2992 echo "${ECHO_T}$CPP" >&6; }
2993 ac_preproc_ok=false
2994 for ac_c_preproc_warn_flag in '' yes
2995 do
2996   # Use a header file that comes with gcc, so configuring glibc
2997   # with a fresh cross-compiler works.
2998   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2999   # <limits.h> exists even on freestanding compilers.
3000   # On the NeXT, cc -E runs the code through the compiler's parser,
3001   # not just through cpp. "Syntax error" is here to catch this case.
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008 #ifdef __STDC__
3009 # include <limits.h>
3010 #else
3011 # include <assert.h>
3012 #endif
3013                      Syntax error
3014 _ACEOF
3015 if { (ac_try="$ac_cpp conftest.$ac_ext"
3016 case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3022   ac_status=$?
3023   grep -v '^ *+' conftest.er1 >conftest.err
3024   rm -f conftest.er1
3025   cat conftest.err >&5
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); } >/dev/null && {
3028          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3029          test ! -s conftest.err
3030        }; then
3031   :
3032 else
3033   echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036   # Broken: fails on valid input.
3037 continue
3038 fi
3039
3040 rm -f conftest.err conftest.$ac_ext
3041
3042   # OK, works on sane cases.  Now check whether nonexistent headers
3043   # can be detected and how.
3044   cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050 #include <ac_nonexistent.h>
3051 _ACEOF
3052 if { (ac_try="$ac_cpp conftest.$ac_ext"
3053 case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } >/dev/null && {
3065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3066          test ! -s conftest.err
3067        }; then
3068   # Broken: success on invalid input.
3069 continue
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074   # Passes both tests.
3075 ac_preproc_ok=:
3076 break
3077 fi
3078
3079 rm -f conftest.err conftest.$ac_ext
3080
3081 done
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then
3085   :
3086 else
3087   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3088 See \`config.log' for more details." >&5
3089 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." >&2;}
3091    { (exit 1); exit 1; }; }
3092 fi
3093
3094 ac_ext=c
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
3100
3101 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3102 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3103 if test "${ac_cv_path_GREP+set}" = set; then
3104   echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106   # Extract the first word of "grep ggrep" to use in msg output
3107 if test -z "$GREP"; then
3108 set dummy grep ggrep; ac_prog_name=$2
3109 if test "${ac_cv_path_GREP+set}" = set; then
3110   echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112   ac_path_GREP_found=false
3113 # Loop through the user's path and test for each of PROGNAME-LIST
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119   for ac_prog in grep ggrep; do
3120   for ac_exec_ext in '' $ac_executable_extensions; do
3121     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3122     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3123     # Check for GNU ac_path_GREP and select it if it is found.
3124   # Check for GNU $ac_path_GREP
3125 case `"$ac_path_GREP" --version 2>&1` in
3126 *GNU*)
3127   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3128 *)
3129   ac_count=0
3130   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3131   while :
3132   do
3133     cat "conftest.in" "conftest.in" >"conftest.tmp"
3134     mv "conftest.tmp" "conftest.in"
3135     cp "conftest.in" "conftest.nl"
3136     echo 'GREP' >> "conftest.nl"
3137     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3138     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3139     ac_count=`expr $ac_count + 1`
3140     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3141       # Best one so far, save it but keep looking for a better one
3142       ac_cv_path_GREP="$ac_path_GREP"
3143       ac_path_GREP_max=$ac_count
3144     fi
3145     # 10*(2^10) chars as input seems more than enough
3146     test $ac_count -gt 10 && break
3147   done
3148   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3149 esac
3150
3151
3152     $ac_path_GREP_found && break 3
3153   done
3154 done
3155
3156 done
3157 IFS=$as_save_IFS
3158
3159
3160 fi
3161
3162 GREP="$ac_cv_path_GREP"
3163 if test -z "$GREP"; then
3164   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3165 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3166    { (exit 1); exit 1; }; }
3167 fi
3168
3169 else
3170   ac_cv_path_GREP=$GREP
3171 fi
3172
3173
3174 fi
3175 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3176 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3177  GREP="$ac_cv_path_GREP"
3178
3179
3180 { echo "$as_me:$LINENO: checking for egrep" >&5
3181 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3182 if test "${ac_cv_path_EGREP+set}" = set; then
3183   echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3186    then ac_cv_path_EGREP="$GREP -E"
3187    else
3188      # Extract the first word of "egrep" to use in msg output
3189 if test -z "$EGREP"; then
3190 set dummy egrep; ac_prog_name=$2
3191 if test "${ac_cv_path_EGREP+set}" = set; then
3192   echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194   ac_path_EGREP_found=false
3195 # Loop through the user's path and test for each of PROGNAME-LIST
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201   for ac_prog in egrep; do
3202   for ac_exec_ext in '' $ac_executable_extensions; do
3203     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3204     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3205     # Check for GNU ac_path_EGREP and select it if it is found.
3206   # Check for GNU $ac_path_EGREP
3207 case `"$ac_path_EGREP" --version 2>&1` in
3208 *GNU*)
3209   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3210 *)
3211   ac_count=0
3212   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3213   while :
3214   do
3215     cat "conftest.in" "conftest.in" >"conftest.tmp"
3216     mv "conftest.tmp" "conftest.in"
3217     cp "conftest.in" "conftest.nl"
3218     echo 'EGREP' >> "conftest.nl"
3219     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3220     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3221     ac_count=`expr $ac_count + 1`
3222     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3223       # Best one so far, save it but keep looking for a better one
3224       ac_cv_path_EGREP="$ac_path_EGREP"
3225       ac_path_EGREP_max=$ac_count
3226     fi
3227     # 10*(2^10) chars as input seems more than enough
3228     test $ac_count -gt 10 && break
3229   done
3230   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3231 esac
3232
3233
3234     $ac_path_EGREP_found && break 3
3235   done
3236 done
3237
3238 done
3239 IFS=$as_save_IFS
3240
3241
3242 fi
3243
3244 EGREP="$ac_cv_path_EGREP"
3245 if test -z "$EGREP"; then
3246   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3247 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3248    { (exit 1); exit 1; }; }
3249 fi
3250
3251 else
3252   ac_cv_path_EGREP=$EGREP
3253 fi
3254
3255
3256    fi
3257 fi
3258 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3259 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3260  EGREP="$ac_cv_path_EGREP"
3261
3262
3263
3264 { echo "$as_me:$LINENO: checking for AIX" >&5
3265 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3266 cat >conftest.$ac_ext <<_ACEOF
3267 /* confdefs.h.  */
3268 _ACEOF
3269 cat confdefs.h >>conftest.$ac_ext
3270 cat >>conftest.$ac_ext <<_ACEOF
3271 /* end confdefs.h.  */
3272 #ifdef _AIX
3273   yes
3274 #endif
3275
3276 _ACEOF
3277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278   $EGREP "yes" >/dev/null 2>&1; then
3279   { echo "$as_me:$LINENO: result: yes" >&5
3280 echo "${ECHO_T}yes" >&6; }
3281 cat >>confdefs.h <<\_ACEOF
3282 #define _ALL_SOURCE 1
3283 _ACEOF
3284
3285 else
3286   { echo "$as_me:$LINENO: result: no" >&5
3287 echo "${ECHO_T}no" >&6; }
3288 fi
3289 rm -f conftest*
3290
3291
3292
3293 if test $ac_cv_c_compiler_gnu = yes; then
3294     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3295 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3296 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299     ac_pattern="Autoconf.*'x'"
3300   cat >conftest.$ac_ext <<_ACEOF
3301 /* confdefs.h.  */
3302 _ACEOF
3303 cat confdefs.h >>conftest.$ac_ext
3304 cat >>conftest.$ac_ext <<_ACEOF
3305 /* end confdefs.h.  */
3306 #include <sgtty.h>
3307 Autoconf TIOCGETP
3308 _ACEOF
3309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3310   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3311   ac_cv_prog_gcc_traditional=yes
3312 else
3313   ac_cv_prog_gcc_traditional=no
3314 fi
3315 rm -f conftest*
3316
3317
3318   if test $ac_cv_prog_gcc_traditional = no; then
3319     cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h.  */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h.  */
3325 #include <termio.h>
3326 Autoconf TCGETA
3327 _ACEOF
3328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3330   ac_cv_prog_gcc_traditional=yes
3331 fi
3332 rm -f conftest*
3333
3334   fi
3335 fi
3336 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3337 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3338   if test $ac_cv_prog_gcc_traditional = yes; then
3339     CC="$CC -traditional"
3340   fi
3341 fi
3342
3343 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3344 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_suncc+set}" = set; then
3346   echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348   cat > conftest.c <<EOF
3349 #ifdef __SUNPRO_C
3350   yes;
3351 #endif
3352 EOF
3353 if { ac_try='${CC-cc} -E conftest.c'
3354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355   (eval $ac_try) 2>&5
3356   ac_status=$?
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3359   ac_cv_prog_suncc=yes
3360 else
3361   ac_cv_prog_suncc=no
3362 fi
3363 fi
3364 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3365 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3366 if test -n "$ac_tool_prefix"; then
3367   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3371 if test "${ac_cv_prog_RANLIB+set}" = set; then
3372   echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374   if test -n "$RANLIB"; then
3375   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380   IFS=$as_save_IFS
3381   test -z "$as_dir" && as_dir=.
3382   for ac_exec_ext in '' $ac_executable_extensions; do
3383   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3385     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3386     break 2
3387   fi
3388 done
3389 done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 RANLIB=$ac_cv_prog_RANLIB
3395 if test -n "$RANLIB"; then
3396   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3397 echo "${ECHO_T}$RANLIB" >&6; }
3398 else
3399   { echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6; }
3401 fi
3402
3403
3404 fi
3405 if test -z "$ac_cv_prog_RANLIB"; then
3406   ac_ct_RANLIB=$RANLIB
3407   # Extract the first word of "ranlib", so it can be a program name with args.
3408 set dummy ranlib; ac_word=$2
3409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   if test -n "$ac_ct_RANLIB"; then
3415   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3416 else
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418 for as_dir in $PATH
3419 do
3420   IFS=$as_save_IFS
3421   test -z "$as_dir" && as_dir=.
3422   for ac_exec_ext in '' $ac_executable_extensions; do
3423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3424     ac_cv_prog_ac_ct_RANLIB="ranlib"
3425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426     break 2
3427   fi
3428 done
3429 done
3430 IFS=$as_save_IFS
3431
3432 fi
3433 fi
3434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3435 if test -n "$ac_ct_RANLIB"; then
3436   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3437 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3438 else
3439   { echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6; }
3441 fi
3442
3443   if test "x$ac_ct_RANLIB" = x; then
3444     RANLIB=":"
3445   else
3446     case $cross_compiling:$ac_tool_warned in
3447 yes:)
3448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3449 whose name does not start with the host triplet.  If you think this
3450 configuration is useful to you, please write to autoconf@gnu.org." >&5
3451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3452 whose name does not start with the host triplet.  If you think this
3453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3454 ac_tool_warned=yes ;;
3455 esac
3456     RANLIB=$ac_ct_RANLIB
3457   fi
3458 else
3459   RANLIB="$ac_cv_prog_RANLIB"
3460 fi
3461
3462
3463 abs_top_builddir=`pwd`
3464
3465
3466
3467 PACKAGE=freeradius
3468
3469 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3470 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3471 if test "${ac_cv_header_stdc+set}" = set; then
3472   echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474   cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h.  */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h.  */
3480 #include <stdlib.h>
3481 #include <stdarg.h>
3482 #include <string.h>
3483 #include <float.h>
3484
3485 int
3486 main ()
3487 {
3488
3489   ;
3490   return 0;
3491 }
3492 _ACEOF
3493 rm -f conftest.$ac_objext
3494 if { (ac_try="$ac_compile"
3495 case "(($ac_try" in
3496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497   *) ac_try_echo=$ac_try;;
3498 esac
3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500   (eval "$ac_compile") 2>conftest.er1
3501   ac_status=$?
3502   grep -v '^ *+' conftest.er1 >conftest.err
3503   rm -f conftest.er1
3504   cat conftest.err >&5
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); } && {
3507          test -z "$ac_c_werror_flag" ||
3508          test ! -s conftest.err
3509        } && test -s conftest.$ac_objext; then
3510   ac_cv_header_stdc=yes
3511 else
3512   echo "$as_me: failed program was:" >&5
3513 sed 's/^/| /' conftest.$ac_ext >&5
3514
3515         ac_cv_header_stdc=no
3516 fi
3517
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519
3520 if test $ac_cv_header_stdc = yes; then
3521   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3522   cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528 #include <string.h>
3529
3530 _ACEOF
3531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3532   $EGREP "memchr" >/dev/null 2>&1; then
3533   :
3534 else
3535   ac_cv_header_stdc=no
3536 fi
3537 rm -f conftest*
3538
3539 fi
3540
3541 if test $ac_cv_header_stdc = yes; then
3542   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3543   cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h.  */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h.  */
3549 #include <stdlib.h>
3550
3551 _ACEOF
3552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553   $EGREP "free" >/dev/null 2>&1; then
3554   :
3555 else
3556   ac_cv_header_stdc=no
3557 fi
3558 rm -f conftest*
3559
3560 fi
3561
3562 if test $ac_cv_header_stdc = yes; then
3563   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3564   if test "$cross_compiling" = yes; then
3565   :
3566 else
3567   cat >conftest.$ac_ext <<_ACEOF
3568 /* confdefs.h.  */
3569 _ACEOF
3570 cat confdefs.h >>conftest.$ac_ext
3571 cat >>conftest.$ac_ext <<_ACEOF
3572 /* end confdefs.h.  */
3573 #include <ctype.h>
3574 #include <stdlib.h>
3575 #if ((' ' & 0x0FF) == 0x020)
3576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3578 #else
3579 # define ISLOWER(c) \
3580                    (('a' <= (c) && (c) <= 'i') \
3581                      || ('j' <= (c) && (c) <= 'r') \
3582                      || ('s' <= (c) && (c) <= 'z'))
3583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3584 #endif
3585
3586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3587 int
3588 main ()
3589 {
3590   int i;
3591   for (i = 0; i < 256; i++)
3592     if (XOR (islower (i), ISLOWER (i))
3593         || toupper (i) != TOUPPER (i))
3594       return 2;
3595   return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest$ac_exeext
3599 if { (ac_try="$ac_link"
3600 case "(($ac_try" in
3601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602   *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605   (eval "$ac_link") 2>&5
3606   ac_status=$?
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3609   { (case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614   (eval "$ac_try") 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); }; }; then
3618   :
3619 else
3620   echo "$as_me: program exited with status $ac_status" >&5
3621 echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 ( exit $ac_status )
3625 ac_cv_header_stdc=no
3626 fi
3627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3628 fi
3629
3630
3631 fi
3632 fi
3633 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3634 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3635 if test $ac_cv_header_stdc = yes; then
3636
3637 cat >>confdefs.h <<\_ACEOF
3638 #define STDC_HEADERS 1
3639 _ACEOF
3640
3641 fi
3642
3643 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3654                   inttypes.h stdint.h unistd.h
3655 do
3656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 $ac_includes_default
3669
3670 #include <$ac_header>
3671 _ACEOF
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3674 case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_compile") 2>conftest.er1
3680   ac_status=$?
3681   grep -v '^ *+' conftest.er1 >conftest.err
3682   rm -f conftest.er1
3683   cat conftest.err >&5
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); } && {
3686          test -z "$ac_c_werror_flag" ||
3687          test ! -s conftest.err
3688        } && test -s conftest.$ac_objext; then
3689   eval "$as_ac_Header=yes"
3690 else
3691   echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694         eval "$as_ac_Header=no"
3695 fi
3696
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 fi
3699 ac_res=`eval echo '${'$as_ac_Header'}'`
3700                { echo "$as_me:$LINENO: result: $ac_res" >&5
3701 echo "${ECHO_T}$ac_res" >&6; }
3702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3703   cat >>confdefs.h <<_ACEOF
3704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3705 _ACEOF
3706
3707 fi
3708
3709 done
3710
3711
3712 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3713 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3714 if test "${ac_cv_c_bigendian+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   # See if sys/param.h defines the BYTE_ORDER macro.
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h.  */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h.  */
3724 #include <sys/types.h>
3725 #include <sys/param.h>
3726
3727 int
3728 main ()
3729 {
3730 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3731         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3732  bogus endian macros
3733 #endif
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 rm -f conftest.$ac_objext
3740 if { (ac_try="$ac_compile"
3741 case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746   (eval "$ac_compile") 2>conftest.er1
3747   ac_status=$?
3748   grep -v '^ *+' conftest.er1 >conftest.err
3749   rm -f conftest.er1
3750   cat conftest.err >&5
3751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752   (exit $ac_status); } && {
3753          test -z "$ac_c_werror_flag" ||
3754          test ! -s conftest.err
3755        } && test -s conftest.$ac_objext; then
3756   # It does; now see whether it defined to BIG_ENDIAN or not.
3757 cat >conftest.$ac_ext <<_ACEOF
3758 /* confdefs.h.  */
3759 _ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h.  */
3763 #include <sys/types.h>
3764 #include <sys/param.h>
3765
3766 int
3767 main ()
3768 {
3769 #if BYTE_ORDER != BIG_ENDIAN
3770  not big endian
3771 #endif
3772
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 rm -f conftest.$ac_objext
3778 if { (ac_try="$ac_compile"
3779 case "(($ac_try" in
3780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781   *) ac_try_echo=$ac_try;;
3782 esac
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784   (eval "$ac_compile") 2>conftest.er1
3785   ac_status=$?
3786   grep -v '^ *+' conftest.er1 >conftest.err
3787   rm -f conftest.er1
3788   cat conftest.err >&5
3789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790   (exit $ac_status); } && {
3791          test -z "$ac_c_werror_flag" ||
3792          test ! -s conftest.err
3793        } && test -s conftest.$ac_objext; then
3794   ac_cv_c_bigendian=yes
3795 else
3796   echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3798
3799         ac_cv_c_bigendian=no
3800 fi
3801
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 else
3804   echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807         # It does not; compile a test program.
3808 if test "$cross_compiling" = yes; then
3809   # try to guess the endianness by grepping values into an object file
3810   ac_cv_c_bigendian=unknown
3811   cat >conftest.$ac_ext <<_ACEOF
3812 /* confdefs.h.  */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h.  */
3817 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3818 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3819 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3820 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3821 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3822 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3823 int
3824 main ()
3825 {
3826  _ascii (); _ebcdic ();
3827   ;
3828   return 0;
3829 }
3830 _ACEOF
3831 rm -f conftest.$ac_objext
3832 if { (ac_try="$ac_compile"
3833 case "(($ac_try" in
3834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835   *) ac_try_echo=$ac_try;;
3836 esac
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838   (eval "$ac_compile") 2>conftest.er1
3839   ac_status=$?
3840   grep -v '^ *+' conftest.er1 >conftest.err
3841   rm -f conftest.er1
3842   cat conftest.err >&5
3843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844   (exit $ac_status); } && {
3845          test -z "$ac_c_werror_flag" ||
3846          test ! -s conftest.err
3847        } && test -s conftest.$ac_objext; then
3848   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3849   ac_cv_c_bigendian=yes
3850 fi
3851 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3852   if test "$ac_cv_c_bigendian" = unknown; then
3853     ac_cv_c_bigendian=no
3854   else
3855     # finding both strings is unlikely to happen, but who knows?
3856     ac_cv_c_bigendian=unknown
3857   fi
3858 fi
3859 else
3860   echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863
3864 fi
3865
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 else
3868   cat >conftest.$ac_ext <<_ACEOF
3869 /* confdefs.h.  */
3870 _ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h.  */
3874 $ac_includes_default
3875 int
3876 main ()
3877 {
3878
3879   /* Are we little or big endian?  From Harbison&Steele.  */
3880   union
3881   {
3882     long int l;
3883     char c[sizeof (long int)];
3884   } u;
3885   u.l = 1;
3886   return u.c[sizeof (long int) - 1] == 1;
3887
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest$ac_exeext
3893 if { (ac_try="$ac_link"
3894 case "(($ac_try" in
3895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896   *) ac_try_echo=$ac_try;;
3897 esac
3898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3899   (eval "$ac_link") 2>&5
3900   ac_status=$?
3901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3903   { (case "(($ac_try" in
3904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905   *) ac_try_echo=$ac_try;;
3906 esac
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908   (eval "$ac_try") 2>&5
3909   ac_status=$?
3910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911   (exit $ac_status); }; }; then
3912   ac_cv_c_bigendian=no
3913 else
3914   echo "$as_me: program exited with status $ac_status" >&5
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3917
3918 ( exit $ac_status )
3919 ac_cv_c_bigendian=yes
3920 fi
3921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3922 fi
3923
3924
3925 fi
3926
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 fi
3929 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3930 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3931 case $ac_cv_c_bigendian in
3932   yes)
3933
3934 cat >>confdefs.h <<\_ACEOF
3935 #define WORDS_BIGENDIAN 1
3936 _ACEOF
3937  ;;
3938   no)
3939      ;;
3940   *)
3941     { { echo "$as_me:$LINENO: error: unknown endianness
3942 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3943 echo "$as_me: error: unknown endianness
3944 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3945    { (exit 1); exit 1; }; } ;;
3946 esac
3947
3948
3949 # Extract the first word of "gmake", so it can be a program name with args.
3950 set dummy gmake; ac_word=$2
3951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3953 if test "${ac_cv_prog_GMAKE+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   if test -n "$GMAKE"; then
3957   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962   IFS=$as_save_IFS
3963   test -z "$as_dir" && as_dir=.
3964   for ac_exec_ext in '' $ac_executable_extensions; do
3965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966     ac_cv_prog_GMAKE="yes"
3967     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968     break 2
3969   fi
3970 done
3971 done
3972 IFS=$as_save_IFS
3973
3974   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3975 fi
3976 fi
3977 GMAKE=$ac_cv_prog_GMAKE
3978 if test -n "$GMAKE"; then
3979   { echo "$as_me:$LINENO: result: $GMAKE" >&5
3980 echo "${ECHO_T}$GMAKE" >&6; }
3981 else
3982   { echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6; }
3984 fi
3985
3986
3987 if test $GMAKE = no; then
3988   # Extract the first word of "make", so it can be a program name with args.
3989 set dummy make; ac_word=$2
3990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3992 if test "${ac_cv_path_MAKE+set}" = set; then
3993   echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995   case $MAKE in
3996   [\\/]* | ?:[\\/]*)
3997   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3998   ;;
3999   *)
4000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003   IFS=$as_save_IFS
4004   test -z "$as_dir" && as_dir=.
4005   for ac_exec_ext in '' $ac_executable_extensions; do
4006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009     break 2
4010   fi
4011 done
4012 done
4013 IFS=$as_save_IFS
4014
4015   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4016   ;;
4017 esac
4018 fi
4019 MAKE=$ac_cv_path_MAKE
4020 if test -n "$MAKE"; then
4021   { echo "$as_me:$LINENO: result: $MAKE" >&5
4022 echo "${ECHO_T}$MAKE" >&6; }
4023 else
4024   { echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6; }
4026 fi
4027
4028
4029 else
4030   # Extract the first word of "gmake", so it can be a program name with args.
4031 set dummy gmake; ac_word=$2
4032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4034 if test "${ac_cv_path_MAKE+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   case $MAKE in
4038   [\\/]* | ?:[\\/]*)
4039   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4040   ;;
4041   *)
4042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054 done
4055 IFS=$as_save_IFS
4056
4057   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4058   ;;
4059 esac
4060 fi
4061 MAKE=$ac_cv_path_MAKE
4062 if test -n "$MAKE"; then
4063   { echo "$as_me:$LINENO: result: $MAKE" >&5
4064 echo "${ECHO_T}$MAKE" >&6; }
4065 else
4066   { echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6; }
4068 fi
4069
4070
4071 fi
4072 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4073 if test -z "$makever"; then
4074   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4075                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4076 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4077                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4078    { (exit 1); exit 1; }; }
4079 fi
4080
4081   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4082 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4083 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4084   echo $ECHO_N "(cached) $ECHO_C" >&6
4085 else
4086   ac_check_lib_save_LIBS=$LIBS
4087 LIBS="-lltdl  $LIBS"
4088 cat >conftest.$ac_ext <<_ACEOF
4089 /* confdefs.h.  */
4090 _ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h.  */
4094
4095 /* Override any GCC internal prototype to avoid an error.
4096    Use char because int might match the return type of a GCC
4097    builtin and then its argument prototype would still apply.  */
4098 #ifdef __cplusplus
4099 extern "C"
4100 #endif
4101 char lt_dlinit ();
4102 int
4103 main ()
4104 {
4105 return lt_dlinit ();
4106   ;
4107   return 0;
4108 }
4109 _ACEOF
4110 rm -f conftest.$ac_objext conftest$ac_exeext
4111 if { (ac_try="$ac_link"
4112 case "(($ac_try" in
4113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114   *) ac_try_echo=$ac_try;;
4115 esac
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117   (eval "$ac_link") 2>conftest.er1
4118   ac_status=$?
4119   grep -v '^ *+' conftest.er1 >conftest.err
4120   rm -f conftest.er1
4121   cat conftest.err >&5
4122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123   (exit $ac_status); } && {
4124          test -z "$ac_c_werror_flag" ||
4125          test ! -s conftest.err
4126        } && test -s conftest$ac_exeext &&
4127        $as_test_x conftest$ac_exeext; then
4128   ac_cv_lib_ltdl_lt_dlinit=yes
4129 else
4130   echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4132
4133         ac_cv_lib_ltdl_lt_dlinit=no
4134 fi
4135
4136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4137       conftest$ac_exeext conftest.$ac_ext
4138 LIBS=$ac_check_lib_save_LIBS
4139 fi
4140 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4141 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4142 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4143   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4144 else
4145   if test x"$enable_ltdl_install" = xno; then
4146      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4147 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4148    else
4149      enable_ltdl_install=yes
4150    fi
4151
4152 fi
4153
4154   if test x"$enable_ltdl_install" = x"yes"; then
4155     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4156     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4157     LTDLINCL='-I${top_srcdir}/''libltdl'
4158   else
4159     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4160     LIBLTDL="-lltdl"
4161     LTDLINCL=
4162   fi
4163   # For backwards non-gettext consistent compatibility...
4164   INCLTDL="$LTDLINCL"
4165
4166
4167 if test x"$enable_ltdl_install" = x"yes"; then
4168   LTDL_SUBDIRS=libltdl
4169 fi
4170
4171
4172 # Check whether --enable-shared was given.
4173 if test "${enable_shared+set}" = set; then
4174   enableval=$enable_shared; p=${PACKAGE-default}
4175     case $enableval in
4176     yes) enable_shared=yes ;;
4177     no) enable_shared=no ;;
4178     *)
4179       enable_shared=no
4180       # Look at the argument we got.  We use all the common list separators.
4181       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4182       for pkg in $enableval; do
4183         IFS="$lt_save_ifs"
4184         if test "X$pkg" = "X$p"; then
4185           enable_shared=yes
4186         fi
4187       done
4188       IFS="$lt_save_ifs"
4189       ;;
4190     esac
4191 else
4192   enable_shared=yes
4193 fi
4194
4195
4196 # Check whether --enable-static was given.
4197 if test "${enable_static+set}" = set; then
4198   enableval=$enable_static; p=${PACKAGE-default}
4199     case $enableval in
4200     yes) enable_static=yes ;;
4201     no) enable_static=no ;;
4202     *)
4203      enable_static=no
4204       # Look at the argument we got.  We use all the common list separators.
4205       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4206       for pkg in $enableval; do
4207         IFS="$lt_save_ifs"
4208         if test "X$pkg" = "X$p"; then
4209           enable_static=yes
4210         fi
4211       done
4212       IFS="$lt_save_ifs"
4213       ;;
4214     esac
4215 else
4216   enable_static=yes
4217 fi
4218
4219
4220 # Check whether --enable-fast-install was given.
4221 if test "${enable_fast_install+set}" = set; then
4222   enableval=$enable_fast_install; p=${PACKAGE-default}
4223     case $enableval in
4224     yes) enable_fast_install=yes ;;
4225     no) enable_fast_install=no ;;
4226     *)
4227       enable_fast_install=no
4228       # Look at the argument we got.  We use all the common list separators.
4229       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4230       for pkg in $enableval; do
4231         IFS="$lt_save_ifs"
4232         if test "X$pkg" = "X$p"; then
4233           enable_fast_install=yes
4234         fi
4235       done
4236       IFS="$lt_save_ifs"
4237       ;;
4238     esac
4239 else
4240   enable_fast_install=yes
4241 fi
4242
4243
4244 ac_aux_dir=
4245 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4246   if test -f "$ac_dir/install-sh"; then
4247     ac_aux_dir=$ac_dir
4248     ac_install_sh="$ac_aux_dir/install-sh -c"
4249     break
4250   elif test -f "$ac_dir/install.sh"; then
4251     ac_aux_dir=$ac_dir
4252     ac_install_sh="$ac_aux_dir/install.sh -c"
4253     break
4254   elif test -f "$ac_dir/shtool"; then
4255     ac_aux_dir=$ac_dir
4256     ac_install_sh="$ac_aux_dir/shtool install -c"
4257     break
4258   fi
4259 done
4260 if test -z "$ac_aux_dir"; then
4261   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4262 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4263    { (exit 1); exit 1; }; }
4264 fi
4265
4266 # These three variables are undocumented and unsupported,
4267 # and are intended to be withdrawn in a future Autoconf release.
4268 # They can cause serious problems if a builder's source tree is in a directory
4269 # whose full name contains unusual characters.
4270 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4271 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4272 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4273
4274
4275 # Make sure we can run config.sub.
4276 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4277   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4278 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4279    { (exit 1); exit 1; }; }
4280
4281 { echo "$as_me:$LINENO: checking build system type" >&5
4282 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4283 if test "${ac_cv_build+set}" = set; then
4284   echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286   ac_build_alias=$build_alias
4287 test "x$ac_build_alias" = x &&
4288   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4289 test "x$ac_build_alias" = x &&
4290   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4291 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4292    { (exit 1); exit 1; }; }
4293 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4294   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4295 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4296    { (exit 1); exit 1; }; }
4297
4298 fi
4299 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4300 echo "${ECHO_T}$ac_cv_build" >&6; }
4301 case $ac_cv_build in
4302 *-*-*) ;;
4303 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4304 echo "$as_me: error: invalid value of canonical build" >&2;}
4305    { (exit 1); exit 1; }; };;
4306 esac
4307 build=$ac_cv_build
4308 ac_save_IFS=$IFS; IFS='-'
4309 set x $ac_cv_build
4310 shift
4311 build_cpu=$1
4312 build_vendor=$2
4313 shift; shift
4314 # Remember, the first character of IFS is used to create $*,
4315 # except with old shells:
4316 build_os=$*
4317 IFS=$ac_save_IFS
4318 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4319
4320
4321 { echo "$as_me:$LINENO: checking host system type" >&5
4322 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4323 if test "${ac_cv_host+set}" = set; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   if test "x$host_alias" = x; then
4327   ac_cv_host=$ac_cv_build
4328 else
4329   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4330     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4331 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4332    { (exit 1); exit 1; }; }
4333 fi
4334
4335 fi
4336 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4337 echo "${ECHO_T}$ac_cv_host" >&6; }
4338 case $ac_cv_host in
4339 *-*-*) ;;
4340 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4341 echo "$as_me: error: invalid value of canonical host" >&2;}
4342    { (exit 1); exit 1; }; };;
4343 esac
4344 host=$ac_cv_host
4345 ac_save_IFS=$IFS; IFS='-'
4346 set x $ac_cv_host
4347 shift
4348 host_cpu=$1
4349 host_vendor=$2
4350 shift; shift
4351 # Remember, the first character of IFS is used to create $*,
4352 # except with old shells:
4353 host_os=$*
4354 IFS=$ac_save_IFS
4355 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4356
4357
4358 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4359 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4360 if test "${lt_cv_path_SED+set}" = set; then
4361   echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363   # Loop through the user's path and test for sed and gsed.
4364 # Then use that list of sed's as ones to test for truncation.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370   for lt_ac_prog in sed gsed; do
4371     for ac_exec_ext in '' $ac_executable_extensions; do
4372       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4373         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4374       fi
4375     done
4376   done
4377 done
4378 lt_ac_max=0
4379 lt_ac_count=0
4380 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4381 # along with /bin/sed that truncates output.
4382 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4383   test ! -f $lt_ac_sed && continue
4384   cat /dev/null > conftest.in
4385   lt_ac_count=0
4386   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4387   # Check for GNU sed and select it if it is found.
4388   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4389     lt_cv_path_SED=$lt_ac_sed
4390     break
4391   fi
4392   while true; do
4393     cat conftest.in conftest.in >conftest.tmp
4394     mv conftest.tmp conftest.in
4395     cp conftest.in conftest.nl
4396     echo >>conftest.nl
4397     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4398     cmp -s conftest.out conftest.nl || break
4399     # 10000 chars as input seems more than enough
4400     test $lt_ac_count -gt 10 && break
4401     lt_ac_count=`expr $lt_ac_count + 1`
4402     if test $lt_ac_count -gt $lt_ac_max; then
4403       lt_ac_max=$lt_ac_count
4404       lt_cv_path_SED=$lt_ac_sed
4405     fi
4406   done
4407 done
4408
4409 fi
4410
4411 SED=$lt_cv_path_SED
4412 { echo "$as_me:$LINENO: result: $SED" >&5
4413 echo "${ECHO_T}$SED" >&6; }
4414
4415
4416 # Check whether --with-gnu-ld was given.
4417 if test "${with_gnu_ld+set}" = set; then
4418   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4419 else
4420   with_gnu_ld=no
4421 fi
4422
4423 ac_prog=ld
4424 if test "$GCC" = yes; then
4425   # Check if gcc -print-prog-name=ld gives a path.
4426   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4427 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4428   case $host in
4429   *-*-mingw*)
4430     # gcc leaves a trailing carriage return which upsets mingw
4431     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4432   *)
4433     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4434   esac
4435   case $ac_prog in
4436     # Accept absolute paths.
4437     [\\/]* | ?:[\\/]*)
4438       re_direlt='/[^/][^/]*/\.\./'
4439       # Canonicalize the pathname of ld
4440       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4441       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4442         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4443       done
4444       test -z "$LD" && LD="$ac_prog"
4445       ;;
4446   "")
4447     # If it fails, then pretend we aren't using GCC.
4448     ac_prog=ld
4449     ;;
4450   *)
4451     # If it is relative, then search for the first ld in PATH.
4452     with_gnu_ld=unknown
4453     ;;
4454   esac
4455 elif test "$with_gnu_ld" = yes; then
4456   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4457 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4458 else
4459   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4460 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4461 fi
4462 if test "${lt_cv_path_LD+set}" = set; then
4463   echo $ECHO_N "(cached) $ECHO_C" >&6
4464 else
4465   if test -z "$LD"; then
4466   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4467   for ac_dir in $PATH; do
4468     IFS="$lt_save_ifs"
4469     test -z "$ac_dir" && ac_dir=.
4470     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4471       lt_cv_path_LD="$ac_dir/$ac_prog"
4472       # Check to see if the program is GNU ld.  I'd rather use --version,
4473       # but apparently some variants of GNU ld only accept -v.
4474       # Break only if it was the GNU/non-GNU ld that we prefer.
4475       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4476       *GNU* | *'with BFD'*)
4477         test "$with_gnu_ld" != no && break
4478         ;;
4479       *)
4480         test "$with_gnu_ld" != yes && break
4481         ;;
4482       esac
4483     fi
4484   done
4485   IFS="$lt_save_ifs"
4486 else
4487   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4488 fi
4489 fi
4490
4491 LD="$lt_cv_path_LD"
4492 if test -n "$LD"; then
4493   { echo "$as_me:$LINENO: result: $LD" >&5
4494 echo "${ECHO_T}$LD" >&6; }
4495 else
4496   { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }
4498 fi
4499 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4500 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4501    { (exit 1); exit 1; }; }
4502 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4503 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4504 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4508 case `$LD -v 2>&1 </dev/null` in
4509 *GNU* | *'with BFD'*)
4510   lt_cv_prog_gnu_ld=yes
4511   ;;
4512 *)
4513   lt_cv_prog_gnu_ld=no
4514   ;;
4515 esac
4516 fi
4517 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4518 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4519 with_gnu_ld=$lt_cv_prog_gnu_ld
4520
4521
4522 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4523 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4524 if test "${lt_cv_ld_reload_flag+set}" = set; then
4525   echo $ECHO_N "(cached) $ECHO_C" >&6
4526 else
4527   lt_cv_ld_reload_flag='-r'
4528 fi
4529 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4530 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4531 reload_flag=$lt_cv_ld_reload_flag
4532 case $reload_flag in
4533 "" | " "*) ;;
4534 *) reload_flag=" $reload_flag" ;;
4535 esac
4536 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4537 case $host_os in
4538   darwin*)
4539     if test "$GCC" = yes; then
4540       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4541     else
4542       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4543     fi
4544     ;;
4545 esac
4546
4547 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4548 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4549 if test "${lt_cv_path_NM+set}" = set; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552   if test -n "$NM"; then
4553   # Let the user override the test.
4554   lt_cv_path_NM="$NM"
4555 else
4556   lt_nm_to_check="${ac_tool_prefix}nm"
4557   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4558     lt_nm_to_check="$lt_nm_to_check nm"
4559   fi
4560   for lt_tmp_nm in $lt_nm_to_check; do
4561     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4562     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4563       IFS="$lt_save_ifs"
4564       test -z "$ac_dir" && ac_dir=.
4565       tmp_nm="$ac_dir/$lt_tmp_nm"
4566       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4567         # Check to see if the nm accepts a BSD-compat flag.
4568         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4569         #   nm: unknown option "B" ignored
4570         # Tru64's nm complains that /dev/null is an invalid object file
4571         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4572         */dev/null* | *'Invalid file or object type'*)
4573           lt_cv_path_NM="$tmp_nm -B"
4574           break
4575           ;;
4576         *)
4577           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4578           */dev/null*)
4579             lt_cv_path_NM="$tmp_nm -p"
4580             break
4581             ;;
4582           *)
4583             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4584             continue # so that we can try to find one that supports BSD flags
4585             ;;
4586           esac
4587           ;;
4588         esac
4589       fi
4590     done
4591     IFS="$lt_save_ifs"
4592   done
4593   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4594 fi
4595 fi
4596 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4597 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4598 NM="$lt_cv_path_NM"
4599
4600 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4601 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4602 LN_S=$as_ln_s
4603 if test "$LN_S" = "ln -s"; then
4604   { echo "$as_me:$LINENO: result: yes" >&5
4605 echo "${ECHO_T}yes" >&6; }
4606 else
4607   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4608 echo "${ECHO_T}no, using $LN_S" >&6; }
4609 fi
4610
4611 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4612 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4613 if test "${lt_cv_deplibs_check_method+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   lt_cv_file_magic_cmd='$MAGIC_CMD'
4617 lt_cv_file_magic_test_file=
4618 lt_cv_deplibs_check_method='unknown'
4619 # Need to set the preceding variable on all platforms that support
4620 # interlibrary dependencies.
4621 # 'none' -- dependencies not supported.
4622 # `unknown' -- same as none, but documents that we really don't know.
4623 # 'pass_all' -- all dependencies passed with no checks.
4624 # 'test_compile' -- check by making test program.
4625 # 'file_magic [[regex]]' -- check by looking for files in library path
4626 # which responds to the $file_magic_cmd with a given extended regex.
4627 # If you have `file' or equivalent on your system and you're not sure
4628 # whether `pass_all' will *always* work, you probably want this one.
4629
4630 case $host_os in
4631 aix4* | aix5*)
4632   lt_cv_deplibs_check_method=pass_all
4633   ;;
4634
4635 beos*)
4636   lt_cv_deplibs_check_method=pass_all
4637   ;;
4638
4639 bsdi[45]*)
4640   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4641   lt_cv_file_magic_cmd='/usr/bin/file -L'
4642   lt_cv_file_magic_test_file=/shlib/libc.so
4643   ;;
4644
4645 cygwin*)
4646   # func_win32_libid is a shell function defined in ltmain.sh
4647   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4648   lt_cv_file_magic_cmd='func_win32_libid'
4649   ;;
4650
4651 mingw* | pw32*)
4652   # Base MSYS/MinGW do not provide the 'file' command needed by
4653   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4654   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4655   lt_cv_file_magic_cmd='$OBJDUMP -f'
4656   ;;
4657
4658 darwin* | rhapsody*)
4659   lt_cv_deplibs_check_method=pass_all
4660   ;;
4661
4662 freebsd* | kfreebsd*-gnu | dragonfly*)
4663   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4664     case $host_cpu in
4665     i*86 )
4666       # Not sure whether the presence of OpenBSD here was a mistake.
4667       # Let's accept both of them until this is cleared up.
4668       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4669       lt_cv_file_magic_cmd=/usr/bin/file
4670       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4671       ;;
4672     esac
4673   else
4674     lt_cv_deplibs_check_method=pass_all
4675   fi
4676   ;;
4677
4678 gnu*)
4679   lt_cv_deplibs_check_method=pass_all
4680   ;;
4681
4682 hpux10.20* | hpux11*)
4683   lt_cv_file_magic_cmd=/usr/bin/file
4684   case $host_cpu in
4685   ia64*)
4686     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4687     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4688     ;;
4689   hppa*64*)
4690     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]'
4691     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4692     ;;
4693   *)
4694     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4695     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4696     ;;
4697   esac
4698   ;;
4699
4700 interix3*)
4701   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4702   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4703   ;;
4704
4705 irix5* | irix6* | nonstopux*)
4706   case $LD in
4707   *-32|*"-32 ") libmagic=32-bit;;
4708   *-n32|*"-n32 ") libmagic=N32;;
4709   *-64|*"-64 ") libmagic=64-bit;;
4710   *) libmagic=never-match;;
4711   esac
4712   lt_cv_deplibs_check_method=pass_all
4713   ;;
4714
4715 # This must be Linux ELF.
4716 linux*)
4717   lt_cv_deplibs_check_method=pass_all
4718   ;;
4719
4720 netbsd*)
4721   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4722     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4723   else
4724     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4725   fi
4726   ;;
4727
4728 newos6*)
4729   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4730   lt_cv_file_magic_cmd=/usr/bin/file
4731   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4732   ;;
4733
4734 nto-qnx*)
4735   lt_cv_deplibs_check_method=unknown
4736   ;;
4737
4738 openbsd*)
4739   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4740     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4741   else
4742     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4743   fi
4744   ;;
4745
4746 osf3* | osf4* | osf5*)
4747   lt_cv_deplibs_check_method=pass_all
4748   ;;
4749
4750 solaris*)
4751   lt_cv_deplibs_check_method=pass_all
4752   ;;
4753
4754 sysv4 | sysv4.3*)
4755   case $host_vendor in
4756   motorola)
4757     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]'
4758     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4759     ;;
4760   ncr)
4761     lt_cv_deplibs_check_method=pass_all
4762     ;;
4763   sequent)
4764     lt_cv_file_magic_cmd='/bin/file'
4765     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4766     ;;
4767   sni)
4768     lt_cv_file_magic_cmd='/bin/file'
4769     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4770     lt_cv_file_magic_test_file=/lib/libc.so
4771     ;;
4772   siemens)
4773     lt_cv_deplibs_check_method=pass_all
4774     ;;
4775   pc)
4776     lt_cv_deplibs_check_method=pass_all
4777     ;;
4778   esac
4779   ;;
4780
4781 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4782   lt_cv_deplibs_check_method=pass_all
4783   ;;
4784 esac
4785
4786 fi
4787 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4788 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4789 file_magic_cmd=$lt_cv_file_magic_cmd
4790 deplibs_check_method=$lt_cv_deplibs_check_method
4791 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4792
4793
4794
4795
4796 # If no C compiler was specified, use CC.
4797 LTCC=${LTCC-"$CC"}
4798
4799 # If no C compiler flags were specified, use CFLAGS.
4800 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4801
4802 # Allow CC to be a program name with arguments.
4803 compiler=$CC
4804
4805 # Check whether --enable-libtool-lock was given.
4806 if test "${enable_libtool_lock+set}" = set; then
4807   enableval=$enable_libtool_lock;
4808 fi
4809
4810 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4811
4812 # Some flags need to be propagated to the compiler or linker for good
4813 # libtool support.
4814 case $host in
4815 ia64-*-hpux*)
4816   # Find out which ABI we are using.
4817   echo 'int i;' > conftest.$ac_ext
4818   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4819   (eval $ac_compile) 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; then
4823     case `/usr/bin/file conftest.$ac_objext` in
4824     *ELF-32*)
4825       HPUX_IA64_MODE="32"
4826       ;;
4827     *ELF-64*)
4828       HPUX_IA64_MODE="64"
4829       ;;
4830     esac
4831   fi
4832   rm -rf conftest*
4833   ;;
4834 *-*-irix6*)
4835   # Find out which ABI we are using.
4836   echo '#line 4836 "configure"' > conftest.$ac_ext
4837   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4838   (eval $ac_compile) 2>&5
4839   ac_status=$?
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); }; then
4842    if test "$lt_cv_prog_gnu_ld" = yes; then
4843     case `/usr/bin/file conftest.$ac_objext` in
4844     *32-bit*)
4845       LD="${LD-ld} -melf32bsmip"
4846       ;;
4847     *N32*)
4848       LD="${LD-ld} -melf32bmipn32"
4849       ;;
4850     *64-bit*)
4851       LD="${LD-ld} -melf64bmip"
4852       ;;
4853     esac
4854    else
4855     case `/usr/bin/file conftest.$ac_objext` in
4856     *32-bit*)
4857       LD="${LD-ld} -32"
4858       ;;
4859     *N32*)
4860       LD="${LD-ld} -n32"
4861       ;;
4862     *64-bit*)
4863       LD="${LD-ld} -64"
4864       ;;
4865     esac
4866    fi
4867   fi
4868   rm -rf conftest*
4869   ;;
4870
4871 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4872   # Find out which ABI we are using.
4873   echo 'int i;' > conftest.$ac_ext
4874   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875   (eval $ac_compile) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); }; then
4879     case `/usr/bin/file conftest.o` in
4880     *32-bit*)
4881       case $host in
4882         x86_64-*linux*)
4883           LD="${LD-ld} -m elf_i386"
4884           ;;
4885         ppc64-*linux*|powerpc64-*linux*)
4886           LD="${LD-ld} -m elf32ppclinux"
4887           ;;
4888         s390x-*linux*)
4889           LD="${LD-ld} -m elf_s390"
4890           ;;
4891         sparc64-*linux*)
4892           LD="${LD-ld} -m elf32_sparc"
4893           ;;
4894       esac
4895       ;;
4896     *64-bit*)
4897       case $host in
4898         x86_64-*linux*)
4899           LD="${LD-ld} -m elf_x86_64"
4900           ;;
4901         ppc*-*linux*|powerpc*-*linux*)
4902           LD="${LD-ld} -m elf64ppc"
4903           ;;
4904         s390*-*linux*)
4905           LD="${LD-ld} -m elf64_s390"
4906           ;;
4907         sparc*-*linux*)
4908           LD="${LD-ld} -m elf64_sparc"
4909           ;;
4910       esac
4911       ;;
4912     esac
4913   fi
4914   rm -rf conftest*
4915   ;;
4916
4917 *-*-sco3.2v5*)
4918   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4919   SAVE_CFLAGS="$CFLAGS"
4920   CFLAGS="$CFLAGS -belf"
4921   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4922 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4923 if test "${lt_cv_cc_needs_belf+set}" = set; then
4924   echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926   ac_ext=c
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931
4932      cat >conftest.$ac_ext <<_ACEOF
4933 /* confdefs.h.  */
4934 _ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h.  */
4938
4939 int
4940 main ()
4941 {
4942
4943   ;
4944   return 0;
4945 }
4946 _ACEOF
4947 rm -f conftest.$ac_objext conftest$ac_exeext
4948 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
4955   ac_status=$?
4956   grep -v '^ *+' conftest.er1 >conftest.err
4957   rm -f conftest.er1
4958   cat conftest.err >&5
4959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4960   (exit $ac_status); } && {
4961          test -z "$ac_c_werror_flag" ||
4962          test ! -s conftest.err
4963        } && test -s conftest$ac_exeext &&
4964        $as_test_x conftest$ac_exeext; then
4965   lt_cv_cc_needs_belf=yes
4966 else
4967   echo "$as_me: failed program was:" >&5
4968 sed 's/^/| /' conftest.$ac_ext >&5
4969
4970         lt_cv_cc_needs_belf=no
4971 fi
4972
4973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4974       conftest$ac_exeext conftest.$ac_ext
4975      ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980
4981 fi
4982 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4983 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4984   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4985     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4986     CFLAGS="$SAVE_CFLAGS"
4987   fi
4988   ;;
4989 sparc*-*solaris*)
4990   # Find out which ABI we are using.
4991   echo 'int i;' > conftest.$ac_ext
4992   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4993   (eval $ac_compile) 2>&5
4994   ac_status=$?
4995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996   (exit $ac_status); }; then
4997     case `/usr/bin/file conftest.o` in
4998     *64-bit*)
4999       case $lt_cv_prog_gnu_ld in
5000       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5001       *)    LD="${LD-ld} -64" ;;
5002       esac
5003       ;;
5004     esac
5005   fi
5006   rm -rf conftest*
5007   ;;
5008
5009
5010 esac
5011
5012 need_locks="$enable_libtool_lock"
5013
5014
5015
5016 for ac_header in dlfcn.h
5017 do
5018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5020   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 fi
5025 ac_res=`eval echo '${'$as_ac_Header'}'`
5026                { echo "$as_me:$LINENO: result: $ac_res" >&5
5027 echo "${ECHO_T}$ac_res" >&6; }
5028 else
5029   # Is the header compilable?
5030 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5032 cat >conftest.$ac_ext <<_ACEOF
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038 $ac_includes_default
5039 #include <$ac_header>
5040 _ACEOF
5041 rm -f conftest.$ac_objext
5042 if { (ac_try="$ac_compile"
5043 case "(($ac_try" in
5044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045   *) ac_try_echo=$ac_try;;
5046 esac
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048   (eval "$ac_compile") 2>conftest.er1
5049   ac_status=$?
5050   grep -v '^ *+' conftest.er1 >conftest.err
5051   rm -f conftest.er1
5052   cat conftest.err >&5
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); } && {
5055          test -z "$ac_c_werror_flag" ||
5056          test ! -s conftest.err
5057        } && test -s conftest.$ac_objext; then
5058   ac_header_compiler=yes
5059 else
5060   echo "$as_me: failed program was:" >&5
5061 sed 's/^/| /' conftest.$ac_ext >&5
5062
5063         ac_header_compiler=no
5064 fi
5065
5066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5068 echo "${ECHO_T}$ac_header_compiler" >&6; }
5069
5070 # Is the header present?
5071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079 #include <$ac_header>
5080 _ACEOF
5081 if { (ac_try="$ac_cpp conftest.$ac_ext"
5082 case "(($ac_try" in
5083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084   *) ac_try_echo=$ac_try;;
5085 esac
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5088   ac_status=$?
5089   grep -v '^ *+' conftest.er1 >conftest.err
5090   rm -f conftest.er1
5091   cat conftest.err >&5
5092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093   (exit $ac_status); } >/dev/null && {
5094          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5095          test ! -s conftest.err
5096        }; then
5097   ac_header_preproc=yes
5098 else
5099   echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5101
5102   ac_header_preproc=no
5103 fi
5104
5105 rm -f conftest.err conftest.$ac_ext
5106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5107 echo "${ECHO_T}$ac_header_preproc" >&6; }
5108
5109 # So?  What about this header?
5110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5111   yes:no: )
5112     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5113 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5114     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5115 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5116     ac_header_preproc=yes
5117     ;;
5118   no:yes:* )
5119     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5120 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5121     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5122 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5123     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5124 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5125     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5126 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5129     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5130 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5131
5132     ;;
5133 esac
5134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5137   echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139   eval "$as_ac_Header=\$ac_header_preproc"
5140 fi
5141 ac_res=`eval echo '${'$as_ac_Header'}'`
5142                { echo "$as_me:$LINENO: result: $ac_res" >&5
5143 echo "${ECHO_T}$ac_res" >&6; }
5144
5145 fi
5146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147   cat >>confdefs.h <<_ACEOF
5148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5149 _ACEOF
5150
5151 fi
5152
5153 done
5154
5155 ac_ext=cpp
5156 ac_cpp='$CXXCPP $CPPFLAGS'
5157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160 if test -z "$CXX"; then
5161   if test -n "$CCC"; then
5162     CXX=$CCC
5163   else
5164     if test -n "$ac_tool_prefix"; then
5165   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5166   do
5167     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5171 if test "${ac_cv_prog_CXX+set}" = set; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   if test -n "$CXX"; then
5175   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182   for ac_exec_ext in '' $ac_executable_extensions; do
5183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186     break 2
5187   fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192 fi
5193 fi
5194 CXX=$ac_cv_prog_CXX
5195 if test -n "$CXX"; then
5196   { echo "$as_me:$LINENO: result: $CXX" >&5
5197 echo "${ECHO_T}$CXX" >&6; }
5198 else
5199   { echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6; }
5201 fi
5202
5203
5204     test -n "$CXX" && break
5205   done
5206 fi
5207 if test -z "$CXX"; then
5208   ac_ct_CXX=$CXX
5209   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5210 do
5211   # Extract the first word of "$ac_prog", so it can be a program name with args.
5212 set dummy $ac_prog; ac_word=$2
5213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5215 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   if test -n "$ac_ct_CXX"; then
5219   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226   for ac_exec_ext in '' $ac_executable_extensions; do
5227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228     ac_cv_prog_ac_ct_CXX="$ac_prog"
5229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233 done
5234 IFS=$as_save_IFS
5235
5236 fi
5237 fi
5238 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5239 if test -n "$ac_ct_CXX"; then
5240   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5241 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5242 else
5243   { echo "$as_me:$LINENO: result: no" >&5
5244 echo "${ECHO_T}no" >&6; }
5245 fi
5246
5247
5248   test -n "$ac_ct_CXX" && break
5249 done
5250
5251   if test "x$ac_ct_CXX" = x; then
5252     CXX="g++"
5253   else
5254     case $cross_compiling:$ac_tool_warned in
5255 yes:)
5256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5257 whose name does not start with the host triplet.  If you think this
5258 configuration is useful to you, please write to autoconf@gnu.org." >&5
5259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5260 whose name does not start with the host triplet.  If you think this
5261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5262 ac_tool_warned=yes ;;
5263 esac
5264     CXX=$ac_ct_CXX
5265   fi
5266 fi
5267
5268   fi
5269 fi
5270 # Provide some information about the compiler.
5271 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5272 ac_compiler=`set X $ac_compile; echo $2`
5273 { (ac_try="$ac_compiler --version >&5"
5274 case "(($ac_try" in
5275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276   *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279   (eval "$ac_compiler --version >&5") 2>&5
5280   ac_status=$?
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); }
5283 { (ac_try="$ac_compiler -v >&5"
5284 case "(($ac_try" in
5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286   *) ac_try_echo=$ac_try;;
5287 esac
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289   (eval "$ac_compiler -v >&5") 2>&5
5290   ac_status=$?
5291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292   (exit $ac_status); }
5293 { (ac_try="$ac_compiler -V >&5"
5294 case "(($ac_try" in
5295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296   *) ac_try_echo=$ac_try;;
5297 esac
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299   (eval "$ac_compiler -V >&5") 2>&5
5300   ac_status=$?
5301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302   (exit $ac_status); }
5303
5304 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5305 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5306 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5307   echo $ECHO_N "(cached) $ECHO_C" >&6
5308 else
5309   cat >conftest.$ac_ext <<_ACEOF
5310 /* confdefs.h.  */
5311 _ACEOF
5312 cat confdefs.h >>conftest.$ac_ext
5313 cat >>conftest.$ac_ext <<_ACEOF
5314 /* end confdefs.h.  */
5315
5316 int
5317 main ()
5318 {
5319 #ifndef __GNUC__
5320        choke me
5321 #endif
5322
5323   ;
5324   return 0;
5325 }
5326 _ACEOF
5327 rm -f conftest.$ac_objext
5328 if { (ac_try="$ac_compile"
5329 case "(($ac_try" in
5330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331   *) ac_try_echo=$ac_try;;
5332 esac
5333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334   (eval "$ac_compile") 2>conftest.er1
5335   ac_status=$?
5336   grep -v '^ *+' conftest.er1 >conftest.err
5337   rm -f conftest.er1
5338   cat conftest.err >&5
5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340   (exit $ac_status); } && {
5341          test -z "$ac_cxx_werror_flag" ||
5342          test ! -s conftest.err
5343        } && test -s conftest.$ac_objext; then
5344   ac_compiler_gnu=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349         ac_compiler_gnu=no
5350 fi
5351
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5354
5355 fi
5356 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5357 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5358 GXX=`test $ac_compiler_gnu = yes && echo yes`
5359 ac_test_CXXFLAGS=${CXXFLAGS+set}
5360 ac_save_CXXFLAGS=$CXXFLAGS
5361 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5362 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5363 if test "${ac_cv_prog_cxx_g+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5367    ac_cxx_werror_flag=yes
5368    ac_cv_prog_cxx_g=no
5369    CXXFLAGS="-g"
5370    cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376
5377 int
5378 main ()
5379 {
5380
5381   ;
5382   return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.$ac_objext
5386 if { (ac_try="$ac_compile"
5387 case "(($ac_try" in
5388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389   *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392   (eval "$ac_compile") 2>conftest.er1
5393   ac_status=$?
5394   grep -v '^ *+' conftest.er1 >conftest.err
5395   rm -f conftest.er1
5396   cat conftest.err >&5
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } && {
5399          test -z "$ac_cxx_werror_flag" ||
5400          test ! -s conftest.err
5401        } && test -s conftest.$ac_objext; then
5402   ac_cv_prog_cxx_g=yes
5403 else
5404   echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407         CXXFLAGS=""
5408       cat >conftest.$ac_ext <<_ACEOF
5409 /* confdefs.h.  */
5410 _ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h.  */
5414
5415 int
5416 main ()
5417 {
5418
5419   ;
5420   return 0;
5421 }
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5425 case "(($ac_try" in
5426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427   *) ac_try_echo=$ac_try;;
5428 esac
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430   (eval "$ac_compile") 2>conftest.er1
5431   ac_status=$?
5432   grep -v '^ *+' conftest.er1 >conftest.err
5433   rm -f conftest.er1
5434   cat conftest.err >&5
5435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436   (exit $ac_status); } && {
5437          test -z "$ac_cxx_werror_flag" ||
5438          test ! -s conftest.err
5439        } && test -s conftest.$ac_objext; then
5440   :
5441 else
5442   echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5446          CXXFLAGS="-g"
5447          cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h.  */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h.  */
5453
5454 int
5455 main ()
5456 {
5457
5458   ;
5459   return 0;
5460 }
5461 _ACEOF
5462 rm -f conftest.$ac_objext
5463 if { (ac_try="$ac_compile"
5464 case "(($ac_try" in
5465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466   *) ac_try_echo=$ac_try;;
5467 esac
5468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469   (eval "$ac_compile") 2>conftest.er1
5470   ac_status=$?
5471   grep -v '^ *+' conftest.er1 >conftest.err
5472   rm -f conftest.er1
5473   cat conftest.err >&5
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); } && {
5476          test -z "$ac_cxx_werror_flag" ||
5477          test ! -s conftest.err
5478        } && test -s conftest.$ac_objext; then
5479   ac_cv_prog_cxx_g=yes
5480 else
5481   echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5483
5484
5485 fi
5486
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 fi
5492
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5495 fi
5496 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5497 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5498 if test "$ac_test_CXXFLAGS" = set; then
5499   CXXFLAGS=$ac_save_CXXFLAGS
5500 elif test $ac_cv_prog_cxx_g = yes; then
5501   if test "$GXX" = yes; then
5502     CXXFLAGS="-g -O2"
5503   else
5504     CXXFLAGS="-g"
5505   fi
5506 else
5507   if test "$GXX" = yes; then
5508     CXXFLAGS="-O2"
5509   else
5510     CXXFLAGS=
5511   fi
5512 fi
5513 ac_ext=cpp
5514 ac_cpp='$CXXCPP $CPPFLAGS'
5515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5518
5519
5520
5521 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5522     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5523     (test "X$CXX" != "Xg++"))) ; then
5524   ac_ext=cpp
5525 ac_cpp='$CXXCPP $CPPFLAGS'
5526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5529 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5530 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5531 if test -z "$CXXCPP"; then
5532   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5533   echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535       # Double quotes because CXXCPP needs to be expanded
5536     for CXXCPP in "$CXX -E" "/lib/cpp"
5537     do
5538       ac_preproc_ok=false
5539 for ac_cxx_preproc_warn_flag in '' yes
5540 do
5541   # Use a header file that comes with gcc, so configuring glibc
5542   # with a fresh cross-compiler works.
5543   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5544   # <limits.h> exists even on freestanding compilers.
5545   # On the NeXT, cc -E runs the code through the compiler's parser,
5546   # not just through cpp. "Syntax error" is here to catch this case.
5547   cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553 #ifdef __STDC__
5554 # include <limits.h>
5555 #else
5556 # include <assert.h>
5557 #endif
5558                      Syntax error
5559 _ACEOF
5560 if { (ac_try="$ac_cpp conftest.$ac_ext"
5561 case "(($ac_try" in
5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563   *) ac_try_echo=$ac_try;;
5564 esac
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5567   ac_status=$?
5568   grep -v '^ *+' conftest.er1 >conftest.err
5569   rm -f conftest.er1
5570   cat conftest.err >&5
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); } >/dev/null && {
5573          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5574          test ! -s conftest.err
5575        }; then
5576   :
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581   # Broken: fails on valid input.
5582 continue
5583 fi
5584
5585 rm -f conftest.err conftest.$ac_ext
5586
5587   # OK, works on sane cases.  Now check whether nonexistent headers
5588   # can be detected and how.
5589   cat >conftest.$ac_ext <<_ACEOF
5590 /* confdefs.h.  */
5591 _ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h.  */
5595 #include <ac_nonexistent.h>
5596 _ACEOF
5597 if { (ac_try="$ac_cpp conftest.$ac_ext"
5598 case "(($ac_try" in
5599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5600   *) ac_try_echo=$ac_try;;
5601 esac
5602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5604   ac_status=$?
5605   grep -v '^ *+' conftest.er1 >conftest.err
5606   rm -f conftest.er1
5607   cat conftest.err >&5
5608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609   (exit $ac_status); } >/dev/null && {
5610          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5611          test ! -s conftest.err
5612        }; then
5613   # Broken: success on invalid input.
5614 continue
5615 else
5616   echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619   # Passes both tests.
5620 ac_preproc_ok=:
5621 break
5622 fi
5623
5624 rm -f conftest.err conftest.$ac_ext
5625
5626 done
5627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5628 rm -f conftest.err conftest.$ac_ext
5629 if $ac_preproc_ok; then
5630   break
5631 fi
5632
5633     done
5634     ac_cv_prog_CXXCPP=$CXXCPP
5635
5636 fi
5637   CXXCPP=$ac_cv_prog_CXXCPP
5638 else
5639   ac_cv_prog_CXXCPP=$CXXCPP
5640 fi
5641 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5642 echo "${ECHO_T}$CXXCPP" >&6; }
5643 ac_preproc_ok=false
5644 for ac_cxx_preproc_warn_flag in '' yes
5645 do
5646   # Use a header file that comes with gcc, so configuring glibc
5647   # with a fresh cross-compiler works.
5648   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649   # <limits.h> exists even on freestanding compilers.
5650   # On the NeXT, cc -E runs the code through the compiler's parser,
5651   # not just through cpp. "Syntax error" is here to catch this case.
5652   cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h.  */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h.  */
5658 #ifdef __STDC__
5659 # include <limits.h>
5660 #else
5661 # include <assert.h>
5662 #endif
5663                      Syntax error
5664 _ACEOF
5665 if { (ac_try="$ac_cpp conftest.$ac_ext"
5666 case "(($ac_try" in
5667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668   *) ac_try_echo=$ac_try;;
5669 esac
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5672   ac_status=$?
5673   grep -v '^ *+' conftest.er1 >conftest.err
5674   rm -f conftest.er1
5675   cat conftest.err >&5
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } >/dev/null && {
5678          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5679          test ! -s conftest.err
5680        }; then
5681   :
5682 else
5683   echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686   # Broken: fails on valid input.
5687 continue
5688 fi
5689
5690 rm -f conftest.err conftest.$ac_ext
5691
5692   # OK, works on sane cases.  Now check whether nonexistent headers
5693   # can be detected and how.
5694   cat >conftest.$ac_ext <<_ACEOF
5695 /* confdefs.h.  */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h.  */
5700 #include <ac_nonexistent.h>
5701 _ACEOF
5702 if { (ac_try="$ac_cpp conftest.$ac_ext"
5703 case "(($ac_try" in
5704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705   *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5709   ac_status=$?
5710   grep -v '^ *+' conftest.er1 >conftest.err
5711   rm -f conftest.er1
5712   cat conftest.err >&5
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); } >/dev/null && {
5715          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5716          test ! -s conftest.err
5717        }; then
5718   # Broken: success on invalid input.
5719 continue
5720 else
5721   echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724   # Passes both tests.
5725 ac_preproc_ok=:
5726 break
5727 fi
5728
5729 rm -f conftest.err conftest.$ac_ext
5730
5731 done
5732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5733 rm -f conftest.err conftest.$ac_ext
5734 if $ac_preproc_ok; then
5735   :
5736 else
5737   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5738 See \`config.log' for more details." >&5
5739 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5740 See \`config.log' for more details." >&2;}
5741    { (exit 1); exit 1; }; }
5742 fi
5743
5744 ac_ext=cpp
5745 ac_cpp='$CXXCPP $CPPFLAGS'
5746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5749
5750 fi
5751
5752
5753 ac_ext=f
5754 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5755 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5756 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5757 if test -n "$ac_tool_prefix"; then
5758   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5759   do
5760     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5764 if test "${ac_cv_prog_F77+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   if test -n "$F77"; then
5768   ac_cv_prog_F77="$F77" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775   for ac_exec_ext in '' $ac_executable_extensions; do
5776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782 done
5783 IFS=$as_save_IFS
5784
5785 fi
5786 fi
5787 F77=$ac_cv_prog_F77
5788 if test -n "$F77"; then
5789   { echo "$as_me:$LINENO: result: $F77" >&5
5790 echo "${ECHO_T}$F77" >&6; }
5791 else
5792   { echo "$as_me:$LINENO: result: no" >&5
5793 echo "${ECHO_T}no" >&6; }
5794 fi
5795
5796
5797     test -n "$F77" && break
5798   done
5799 fi
5800 if test -z "$F77"; then
5801   ac_ct_F77=$F77
5802   for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5803 do
5804   # Extract the first word of "$ac_prog", so it can be a program name with args.
5805 set dummy $ac_prog; ac_word=$2
5806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5808 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5809   echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811   if test -n "$ac_ct_F77"; then
5812   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819   for ac_exec_ext in '' $ac_executable_extensions; do
5820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821     ac_cv_prog_ac_ct_F77="$ac_prog"
5822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826 done
5827 IFS=$as_save_IFS
5828
5829 fi
5830 fi
5831 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5832 if test -n "$ac_ct_F77"; then
5833   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5834 echo "${ECHO_T}$ac_ct_F77" >&6; }
5835 else
5836   { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5838 fi
5839
5840
5841   test -n "$ac_ct_F77" && break
5842 done
5843
5844   if test "x$ac_ct_F77" = x; then
5845     F77=""
5846   else
5847     case $cross_compiling:$ac_tool_warned in
5848 yes:)
5849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5850 whose name does not start with the host triplet.  If you think this
5851 configuration is useful to you, please write to autoconf@gnu.org." >&5
5852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5853 whose name does not start with the host triplet.  If you think this
5854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5855 ac_tool_warned=yes ;;
5856 esac
5857     F77=$ac_ct_F77
5858   fi
5859 fi
5860
5861
5862 # Provide some information about the compiler.
5863 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5864 ac_compiler=`set X $ac_compile; echo $2`
5865 { (ac_try="$ac_compiler --version >&5"
5866 case "(($ac_try" in
5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868   *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871   (eval "$ac_compiler --version >&5") 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }
5875 { (ac_try="$ac_compiler -v >&5"
5876 case "(($ac_try" in
5877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878   *) ac_try_echo=$ac_try;;
5879 esac
5880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881   (eval "$ac_compiler -v >&5") 2>&5
5882   ac_status=$?
5883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884   (exit $ac_status); }
5885 { (ac_try="$ac_compiler -V >&5"
5886 case "(($ac_try" in
5887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888   *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891   (eval "$ac_compiler -V >&5") 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }
5895 rm -f a.out
5896
5897 # If we don't use `.F' as extension, the preprocessor is not run on the
5898 # input file.  (Note that this only needs to work for GNU compilers.)
5899 ac_save_ext=$ac_ext
5900 ac_ext=F
5901 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5902 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5903 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   cat >conftest.$ac_ext <<_ACEOF
5907       program main
5908 #ifndef __GNUC__
5909        choke me
5910 #endif
5911
5912       end
5913 _ACEOF
5914 rm -f conftest.$ac_objext
5915 if { (ac_try="$ac_compile"
5916 case "(($ac_try" in
5917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918   *) ac_try_echo=$ac_try;;
5919 esac
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921   (eval "$ac_compile") 2>conftest.er1
5922   ac_status=$?
5923   grep -v '^ *+' conftest.er1 >conftest.err
5924   rm -f conftest.er1
5925   cat conftest.err >&5
5926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927   (exit $ac_status); } && {
5928          test -z "$ac_f77_werror_flag" ||
5929          test ! -s conftest.err
5930        } && test -s conftest.$ac_objext; then
5931   ac_compiler_gnu=yes
5932 else
5933   echo "$as_me: failed program was:" >&5
5934 sed 's/^/| /' conftest.$ac_ext >&5
5935
5936         ac_compiler_gnu=no
5937 fi
5938
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5941
5942 fi
5943 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5944 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5945 ac_ext=$ac_save_ext
5946 ac_test_FFLAGS=${FFLAGS+set}
5947 ac_save_FFLAGS=$FFLAGS
5948 FFLAGS=
5949 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5950 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5951 if test "${ac_cv_prog_f77_g+set}" = set; then
5952   echo $ECHO_N "(cached) $ECHO_C" >&6
5953 else
5954   FFLAGS=-g
5955 cat >conftest.$ac_ext <<_ACEOF
5956       program main
5957
5958       end
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5962 case "(($ac_try" in
5963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964   *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967   (eval "$ac_compile") 2>conftest.er1
5968   ac_status=$?
5969   grep -v '^ *+' conftest.er1 >conftest.err
5970   rm -f conftest.er1
5971   cat conftest.err >&5
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); } && {
5974          test -z "$ac_f77_werror_flag" ||
5975          test ! -s conftest.err
5976        } && test -s conftest.$ac_objext; then
5977   ac_cv_prog_f77_g=yes
5978 else
5979   echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5981
5982         ac_cv_prog_f77_g=no
5983 fi
5984
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986
5987 fi
5988 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5989 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
5990 if test "$ac_test_FFLAGS" = set; then
5991   FFLAGS=$ac_save_FFLAGS
5992 elif test $ac_cv_prog_f77_g = yes; then
5993   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5994     FFLAGS="-g -O2"
5995   else
5996     FFLAGS="-g"
5997   fi
5998 else
5999   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6000     FFLAGS="-O2"
6001   else
6002     FFLAGS=
6003   fi
6004 fi
6005
6006 G77=`test $ac_compiler_gnu = yes && echo yes`
6007 ac_ext=c
6008 ac_cpp='$CPP $CPPFLAGS'
6009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012
6013
6014
6015 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6016
6017 # find the maximum length of command line arguments
6018 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6019 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6020 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6021   echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023     i=0
6024   teststring="ABCD"
6025
6026   case $build_os in
6027   msdosdjgpp*)
6028     # On DJGPP, this test can blow up pretty badly due to problems in libc
6029     # (any single argument exceeding 2000 bytes causes a buffer overrun
6030     # during glob expansion).  Even if it were fixed, the result of this
6031     # check would be larger than it should be.
6032     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6033     ;;
6034
6035   gnu*)
6036     # Under GNU Hurd, this test is not required because there is
6037     # no limit to the length of command line arguments.
6038     # Libtool will interpret -1 as no limit whatsoever
6039     lt_cv_sys_max_cmd_len=-1;
6040     ;;
6041
6042   cygwin* | mingw*)
6043     # On Win9x/ME, this test blows up -- it succeeds, but takes
6044     # about 5 minutes as the teststring grows exponentially.
6045     # Worse, since 9x/ME are not pre-emptively multitasking,
6046     # you end up with a "frozen" computer, even though with patience
6047     # the test eventually succeeds (with a max line length of 256k).
6048     # Instead, let's just punt: use the minimum linelength reported by
6049     # all of the supported platforms: 8192 (on NT/2K/XP).
6050     lt_cv_sys_max_cmd_len=8192;
6051     ;;
6052
6053   amigaos*)
6054     # On AmigaOS with pdksh, this test takes hours, literally.
6055     # So we just punt and use a minimum line length of 8192.
6056     lt_cv_sys_max_cmd_len=8192;
6057     ;;
6058
6059   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6060     # This has been around since 386BSD, at least.  Likely further.
6061     if test -x /sbin/sysctl; then
6062       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6063     elif test -x /usr/sbin/sysctl; then
6064       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6065     else
6066       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6067     fi
6068     # And add a safety zone
6069     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6071     ;;
6072
6073   interix*)
6074     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6075     lt_cv_sys_max_cmd_len=196608
6076     ;;
6077
6078   osf*)
6079     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6080     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6081     # nice to cause kernel panics so lets avoid the loop below.
6082     # First set a reasonable default.
6083     lt_cv_sys_max_cmd_len=16384
6084     #
6085     if test -x /sbin/sysconfig; then
6086       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6087         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6088       esac
6089     fi
6090     ;;
6091   sco3.2v5*)
6092     lt_cv_sys_max_cmd_len=102400
6093     ;;
6094   sysv5* | sco5v6* | sysv4.2uw2*)
6095     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6096     if test -n "$kargmax"; then
6097       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6098     else
6099       lt_cv_sys_max_cmd_len=32768
6100     fi
6101     ;;
6102   *)
6103     # If test is not a shell built-in, we'll probably end up computing a
6104     # maximum length that is only half of the actual maximum length, but
6105     # we can't tell.
6106     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6107     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6108                = "XX$teststring") >/dev/null 2>&1 &&
6109             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6110             lt_cv_sys_max_cmd_len=$new_result &&
6111             test $i != 17 # 1/2 MB should be enough
6112     do
6113       i=`expr $i + 1`
6114       teststring=$teststring$teststring
6115     done
6116     teststring=
6117     # Add a significant safety factor because C++ compilers can tack on massive
6118     # amounts of additional arguments before passing them to the linker.
6119     # It appears as though 1/2 is a usable value.
6120     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6121     ;;
6122   esac
6123
6124 fi
6125
6126 if test -n $lt_cv_sys_max_cmd_len ; then
6127   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6128 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6129 else
6130   { echo "$as_me:$LINENO: result: none" >&5
6131 echo "${ECHO_T}none" >&6; }
6132 fi
6133
6134
6135
6136
6137 # Check for command to grab the raw symbol name followed by C symbol from nm.
6138 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6139 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6140 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143
6144 # These are sane defaults that work on at least a few old systems.
6145 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6146
6147 # Character class describing NM global symbol codes.
6148 symcode='[BCDEGRST]'
6149
6150 # Regexp to match symbols that can be accessed directly from C.
6151 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6152
6153 # Transform an extracted symbol line into a proper C declaration
6154 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6155
6156 # Transform an extracted symbol line into symbol name and symbol address
6157 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'"
6158
6159 # Define system-specific variables.
6160 case $host_os in
6161 aix*)
6162   symcode='[BCDT]'
6163   ;;
6164 cygwin* | mingw* | pw32*)
6165   symcode='[ABCDGISTW]'
6166   ;;
6167 hpux*) # Its linker distinguishes data from code symbols
6168   if test "$host_cpu" = ia64; then
6169     symcode='[ABCDEGRST]'
6170   fi
6171   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6172   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'"
6173   ;;
6174 linux*)
6175   if test "$host_cpu" = ia64; then
6176     symcode='[ABCDGIRSTW]'
6177     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6178     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'"
6179   fi
6180   ;;
6181 irix* | nonstopux*)
6182   symcode='[BCDEGRST]'
6183   ;;
6184 osf*)
6185   symcode='[BCDEGQRST]'
6186   ;;
6187 solaris*)
6188   symcode='[BDRT]'
6189   ;;
6190 sco3.2v5*)
6191   symcode='[DT]'
6192   ;;
6193 sysv4.2uw2*)
6194   symcode='[DT]'
6195   ;;
6196 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6197   symcode='[ABDT]'
6198   ;;
6199 sysv4)
6200   symcode='[DFNSTU]'
6201   ;;
6202 esac
6203
6204 # Handle CRLF in mingw tool chain
6205 opt_cr=
6206 case $build_os in
6207 mingw*)
6208   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6209   ;;
6210 esac
6211
6212 # If we're using GNU nm, then use its standard symbol codes.
6213 case `$NM -V 2>&1` in
6214 *GNU* | *'with BFD'*)
6215   symcode='[ABCDGIRSTW]' ;;
6216 esac
6217
6218 # Try without a prefix undercore, then with it.
6219 for ac_symprfx in "" "_"; do
6220
6221   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6222   symxfrm="\\1 $ac_symprfx\\2 \\2"
6223
6224   # Write the raw and C identifiers.
6225   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6226
6227   # Check to see that the pipe works correctly.
6228   pipe_works=no
6229
6230   rm -f conftest*
6231   cat > conftest.$ac_ext <<EOF
6232 #ifdef __cplusplus
6233 extern "C" {
6234 #endif
6235 char nm_test_var;
6236 void nm_test_func(){}
6237 #ifdef __cplusplus
6238 }
6239 #endif
6240 int main(){nm_test_var='a';nm_test_func();return(0);}
6241 EOF
6242
6243   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6244   (eval $ac_compile) 2>&5
6245   ac_status=$?
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); }; then
6248     # Now try to grab the symbols.
6249     nlist=conftest.nm
6250     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6251   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6252   ac_status=$?
6253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); } && test -s "$nlist"; then
6255       # Try sorting and uniquifying the output.
6256       if sort "$nlist" | uniq > "$nlist"T; then
6257         mv -f "$nlist"T "$nlist"
6258       else
6259         rm -f "$nlist"T
6260       fi
6261
6262       # Make sure that we snagged all the symbols we need.
6263       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6264         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6265           cat <<EOF > conftest.$ac_ext
6266 #ifdef __cplusplus
6267 extern "C" {
6268 #endif
6269
6270 EOF
6271           # Now generate the symbol file.
6272           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6273
6274           cat <<EOF >> conftest.$ac_ext
6275 #if defined (__STDC__) && __STDC__
6276 # define lt_ptr_t void *
6277 #else
6278 # define lt_ptr_t char *
6279 # define const
6280 #endif
6281
6282 /* The mapping between symbol names and symbols. */
6283 const struct {
6284   const char *name;
6285   lt_ptr_t address;
6286 }
6287 lt_preloaded_symbols[] =
6288 {
6289 EOF
6290           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6291           cat <<\EOF >> conftest.$ac_ext
6292   {0, (lt_ptr_t) 0}
6293 };
6294
6295 #ifdef __cplusplus
6296 }
6297 #endif
6298 EOF
6299           # Now try linking the two files.
6300           mv conftest.$ac_objext conftstm.$ac_objext
6301           lt_save_LIBS="$LIBS"
6302           lt_save_CFLAGS="$CFLAGS"
6303           LIBS="conftstm.$ac_objext"
6304           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6305           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306   (eval $ac_link) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6310             pipe_works=yes
6311           fi
6312           LIBS="$lt_save_LIBS"
6313           CFLAGS="$lt_save_CFLAGS"
6314         else
6315           echo "cannot find nm_test_func in $nlist" >&5
6316         fi
6317       else
6318         echo "cannot find nm_test_var in $nlist" >&5
6319       fi
6320     else
6321       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6322     fi
6323   else
6324     echo "$progname: failed program was:" >&5
6325     cat conftest.$ac_ext >&5
6326   fi
6327   rm -f conftest* conftst*
6328
6329   # Do not use the global_symbol_pipe unless it works.
6330   if test "$pipe_works" = yes; then
6331     break
6332   else
6333     lt_cv_sys_global_symbol_pipe=
6334   fi
6335 done
6336
6337 fi
6338
6339 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6340   lt_cv_sys_global_symbol_to_cdecl=
6341 fi
6342 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6343   { echo "$as_me:$LINENO: result: failed" >&5
6344 echo "${ECHO_T}failed" >&6; }
6345 else
6346   { echo "$as_me:$LINENO: result: ok" >&5
6347 echo "${ECHO_T}ok" >&6; }
6348 fi
6349
6350 { echo "$as_me:$LINENO: checking for objdir" >&5
6351 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6352 if test "${lt_cv_objdir+set}" = set; then
6353   echo $ECHO_N "(cached) $ECHO_C" >&6
6354 else
6355   rm -f .libs 2>/dev/null
6356 mkdir .libs 2>/dev/null
6357 if test -d .libs; then
6358   lt_cv_objdir=.libs
6359 else
6360   # MS-DOS does not allow filenames that begin with a dot.
6361   lt_cv_objdir=_libs
6362 fi
6363 rmdir .libs 2>/dev/null
6364 fi
6365 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6366 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6367 objdir=$lt_cv_objdir
6368
6369
6370
6371
6372
6373 case $host_os in
6374 aix3*)
6375   # AIX sometimes has problems with the GCC collect2 program.  For some
6376   # reason, if we set the COLLECT_NAMES environment variable, the problems
6377   # vanish in a puff of smoke.
6378   if test "X${COLLECT_NAMES+set}" != Xset; then
6379     COLLECT_NAMES=
6380     export COLLECT_NAMES
6381   fi
6382   ;;
6383 esac
6384
6385 # Sed substitution that helps us do robust quoting.  It backslashifies
6386 # metacharacters that are still active within double-quoted strings.
6387 Xsed='sed -e 1s/^X//'
6388 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6389
6390 # Same as above, but do not quote variable references.
6391 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6392
6393 # Sed substitution to delay expansion of an escaped shell variable in a
6394 # double_quote_subst'ed string.
6395 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6396
6397 # Sed substitution to avoid accidental globbing in evaled expressions
6398 no_glob_subst='s/\*/\\\*/g'
6399
6400 # Constants:
6401 rm="rm -f"
6402
6403 # Global variables:
6404 default_ofile=libtool
6405 can_build_shared=yes
6406
6407 # All known linkers require a `.a' archive for static linking (except MSVC,
6408 # which needs '.lib').
6409 libext=a
6410 ltmain="$ac_aux_dir/ltmain.sh"
6411 ofile="$default_ofile"
6412 with_gnu_ld="$lt_cv_prog_gnu_ld"
6413
6414 if test -n "$ac_tool_prefix"; then
6415   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}ar; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_AR+set}" = set; then
6420   echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422   if test -n "$AR"; then
6423   ac_cv_prog_AR="$AR" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428   IFS=$as_save_IFS
6429   test -z "$as_dir" && as_dir=.
6430   for ac_exec_ext in '' $ac_executable_extensions; do
6431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6432     ac_cv_prog_AR="${ac_tool_prefix}ar"
6433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6434     break 2
6435   fi
6436 done
6437 done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 AR=$ac_cv_prog_AR
6443 if test -n "$AR"; then
6444   { echo "$as_me:$LINENO: result: $AR" >&5
6445 echo "${ECHO_T}$AR" >&6; }
6446 else
6447   { echo "$as_me:$LINENO: result: no" >&5
6448 echo "${ECHO_T}no" >&6; }
6449 fi
6450
6451
6452 fi
6453 if test -z "$ac_cv_prog_AR"; then
6454   ac_ct_AR=$AR
6455   # Extract the first word of "ar", so it can be a program name with args.
6456 set dummy ar; ac_word=$2
6457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6459 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   if test -n "$ac_ct_AR"; then
6463   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468   IFS=$as_save_IFS
6469   test -z "$as_dir" && as_dir=.
6470   for ac_exec_ext in '' $ac_executable_extensions; do
6471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6472     ac_cv_prog_ac_ct_AR="ar"
6473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6474     break 2
6475   fi
6476 done
6477 done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
6482 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6483 if test -n "$ac_ct_AR"; then
6484   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6485 echo "${ECHO_T}$ac_ct_AR" >&6; }
6486 else
6487   { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6489 fi
6490
6491   if test "x$ac_ct_AR" = x; then
6492     AR="false"
6493   else
6494     case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6497 whose name does not start with the host triplet.  If you think this
6498 configuration is useful to you, please write to autoconf@gnu.org." >&5
6499 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6500 whose name does not start with the host triplet.  If you think this
6501 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504     AR=$ac_ct_AR
6505   fi
6506 else
6507   AR="$ac_cv_prog_AR"
6508 fi
6509
6510 if test -n "$ac_tool_prefix"; then
6511   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6515 if test "${ac_cv_prog_RANLIB+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   if test -n "$RANLIB"; then
6519   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526   for ac_exec_ext in '' $ac_executable_extensions; do
6527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533 done
6534 IFS=$as_save_IFS
6535
6536 fi
6537 fi
6538 RANLIB=$ac_cv_prog_RANLIB
6539 if test -n "$RANLIB"; then
6540   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6541 echo "${ECHO_T}$RANLIB" >&6; }
6542 else
6543   { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6545 fi
6546
6547
6548 fi
6549 if test -z "$ac_cv_prog_RANLIB"; then
6550   ac_ct_RANLIB=$RANLIB
6551   # Extract the first word of "ranlib", so it can be a program name with args.
6552 set dummy ranlib; ac_word=$2
6553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6555 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6556   echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558   if test -n "$ac_ct_RANLIB"; then
6559   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564   IFS=$as_save_IFS
6565   test -z "$as_dir" && as_dir=.
6566   for ac_exec_ext in '' $ac_executable_extensions; do
6567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568     ac_cv_prog_ac_ct_RANLIB="ranlib"
6569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570     break 2
6571   fi
6572 done
6573 done
6574 IFS=$as_save_IFS
6575
6576 fi
6577 fi
6578 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6579 if test -n "$ac_ct_RANLIB"; then
6580   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6581 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6582 else
6583   { echo "$as_me:$LINENO: result: no" >&5
6584 echo "${ECHO_T}no" >&6; }
6585 fi
6586
6587   if test "x$ac_ct_RANLIB" = x; then
6588     RANLIB=":"
6589   else
6590     case $cross_compiling:$ac_tool_warned in
6591 yes:)
6592 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6593 whose name does not start with the host triplet.  If you think this
6594 configuration is useful to you, please write to autoconf@gnu.org." >&5
6595 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6596 whose name does not start with the host triplet.  If you think this
6597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600     RANLIB=$ac_ct_RANLIB
6601   fi
6602 else
6603   RANLIB="$ac_cv_prog_RANLIB"
6604 fi
6605
6606 if test -n "$ac_tool_prefix"; then
6607   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}strip; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_prog_STRIP+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   if test -n "$STRIP"; then
6615   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622   for ac_exec_ext in '' $ac_executable_extensions; do
6623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629 done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 STRIP=$ac_cv_prog_STRIP
6635 if test -n "$STRIP"; then
6636   { echo "$as_me:$LINENO: result: $STRIP" >&5
6637 echo "${ECHO_T}$STRIP" >&6; }
6638 else
6639   { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6641 fi
6642
6643
6644 fi
6645 if test -z "$ac_cv_prog_STRIP"; then
6646   ac_ct_STRIP=$STRIP
6647   # Extract the first word of "strip", so it can be a program name with args.
6648 set dummy strip; ac_word=$2
6649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6651 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6652   echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654   if test -n "$ac_ct_STRIP"; then
6655   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662   for ac_exec_ext in '' $ac_executable_extensions; do
6663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664     ac_cv_prog_ac_ct_STRIP="strip"
6665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669 done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6675 if test -n "$ac_ct_STRIP"; then
6676   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6677 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6678 else
6679   { echo "$as_me:$LINENO: result: no" >&5
6680 echo "${ECHO_T}no" >&6; }
6681 fi
6682
6683   if test "x$ac_ct_STRIP" = x; then
6684     STRIP=":"
6685   else
6686     case $cross_compiling:$ac_tool_warned in
6687 yes:)
6688 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6689 whose name does not start with the host triplet.  If you think this
6690 configuration is useful to you, please write to autoconf@gnu.org." >&5
6691 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6692 whose name does not start with the host triplet.  If you think this
6693 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6694 ac_tool_warned=yes ;;
6695 esac
6696     STRIP=$ac_ct_STRIP
6697   fi
6698 else
6699   STRIP="$ac_cv_prog_STRIP"
6700 fi
6701
6702
6703 old_CC="$CC"
6704 old_CFLAGS="$CFLAGS"
6705
6706 # Set sane defaults for various variables
6707 test -z "$AR" && AR=ar
6708 test -z "$AR_FLAGS" && AR_FLAGS=cru
6709 test -z "$AS" && AS=as
6710 test -z "$CC" && CC=cc
6711 test -z "$LTCC" && LTCC=$CC
6712 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6713 test -z "$DLLTOOL" && DLLTOOL=dlltool
6714 test -z "$LD" && LD=ld
6715 test -z "$LN_S" && LN_S="ln -s"
6716 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6717 test -z "$NM" && NM=nm
6718 test -z "$SED" && SED=sed
6719 test -z "$OBJDUMP" && OBJDUMP=objdump
6720 test -z "$RANLIB" && RANLIB=:
6721 test -z "$STRIP" && STRIP=:
6722 test -z "$ac_objext" && ac_objext=o
6723
6724 # Determine commands to create old-style static archives.
6725 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6726 old_postinstall_cmds='chmod 644 $oldlib'
6727 old_postuninstall_cmds=
6728
6729 if test -n "$RANLIB"; then
6730   case $host_os in
6731   openbsd*)
6732     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6733     ;;
6734   *)
6735     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6736     ;;
6737   esac
6738   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6739 fi
6740
6741 for cc_temp in $compiler""; do
6742   case $cc_temp in
6743     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6744     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6745     \-*) ;;
6746     *) break;;
6747   esac
6748 done
6749 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6750
6751
6752 # Only perform the check for file, if the check method requires it
6753 case $deplibs_check_method in
6754 file_magic*)
6755   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6756     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6757 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6758 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   case $MAGIC_CMD in
6762 [\\/*] |  ?:[\\/]*)
6763   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6764   ;;
6765 *)
6766   lt_save_MAGIC_CMD="$MAGIC_CMD"
6767   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6768   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6769   for ac_dir in $ac_dummy; do
6770     IFS="$lt_save_ifs"
6771     test -z "$ac_dir" && ac_dir=.
6772     if test -f $ac_dir/${ac_tool_prefix}file; then
6773       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6774       if test -n "$file_magic_test_file"; then
6775         case $deplibs_check_method in
6776         "file_magic "*)
6777           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6778           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6779           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6780             $EGREP "$file_magic_regex" > /dev/null; then
6781             :
6782           else
6783             cat <<EOF 1>&2
6784
6785 *** Warning: the command libtool uses to detect shared libraries,
6786 *** $file_magic_cmd, produces output that libtool cannot recognize.
6787 *** The result is that libtool may fail to recognize shared libraries
6788 *** as such.  This will affect the creation of libtool libraries that
6789 *** depend on shared libraries, but programs linked with such libtool
6790 *** libraries will work regardless of this problem.  Nevertheless, you
6791 *** may want to report the problem to your system manager and/or to
6792 *** bug-libtool@gnu.org
6793
6794 EOF
6795           fi ;;
6796         esac
6797       fi
6798       break
6799     fi
6800   done
6801   IFS="$lt_save_ifs"
6802   MAGIC_CMD="$lt_save_MAGIC_CMD"
6803   ;;
6804 esac
6805 fi
6806
6807 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6808 if test -n "$MAGIC_CMD"; then
6809   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6810 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6811 else
6812   { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6814 fi
6815
6816 if test -z "$lt_cv_path_MAGIC_CMD"; then
6817   if test -n "$ac_tool_prefix"; then
6818     { echo "$as_me:$LINENO: checking for file" >&5
6819 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6820 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   case $MAGIC_CMD in
6824 [\\/*] |  ?:[\\/]*)
6825   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6826   ;;
6827 *)
6828   lt_save_MAGIC_CMD="$MAGIC_CMD"
6829   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6830   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6831   for ac_dir in $ac_dummy; do
6832     IFS="$lt_save_ifs"
6833     test -z "$ac_dir" && ac_dir=.
6834     if test -f $ac_dir/file; then
6835       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6836       if test -n "$file_magic_test_file"; then
6837         case $deplibs_check_method in
6838         "file_magic "*)
6839           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6840           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6841           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6842             $EGREP "$file_magic_regex" > /dev/null; then
6843             :
6844           else
6845             cat <<EOF 1>&2
6846
6847 *** Warning: the command libtool uses to detect shared libraries,
6848 *** $file_magic_cmd, produces output that libtool cannot recognize.
6849 *** The result is that libtool may fail to recognize shared libraries
6850 *** as such.  This will affect the creation of libtool libraries that
6851 *** depend on shared libraries, but programs linked with such libtool
6852 *** libraries will work regardless of this problem.  Nevertheless, you
6853 *** may want to report the problem to your system manager and/or to
6854 *** bug-libtool@gnu.org
6855
6856 EOF
6857           fi ;;
6858         esac
6859       fi
6860       break
6861     fi
6862   done
6863   IFS="$lt_save_ifs"
6864   MAGIC_CMD="$lt_save_MAGIC_CMD"
6865   ;;
6866 esac
6867 fi
6868
6869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6870 if test -n "$MAGIC_CMD"; then
6871   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6872 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6873 else
6874   { echo "$as_me:$LINENO: result: no" >&5
6875 echo "${ECHO_T}no" >&6; }
6876 fi
6877
6878   else
6879     MAGIC_CMD=:
6880   fi
6881 fi
6882
6883   fi
6884   ;;
6885 esac
6886
6887 enable_dlopen=yes
6888 enable_win32_dll=no
6889
6890 # Check whether --enable-libtool-lock was given.
6891 if test "${enable_libtool_lock+set}" = set; then
6892   enableval=$enable_libtool_lock;
6893 fi
6894
6895 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6896
6897
6898 # Check whether --with-pic was given.
6899 if test "${with_pic+set}" = set; then
6900   withval=$with_pic; pic_mode="$withval"
6901 else
6902   pic_mode=default
6903 fi
6904
6905 test -z "$pic_mode" && pic_mode=default
6906
6907 # Use C for the default configuration in the libtool script
6908 tagname=
6909 lt_save_CC="$CC"
6910 ac_ext=c
6911 ac_cpp='$CPP $CPPFLAGS'
6912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6915
6916
6917 # Source file extension for C test sources.
6918 ac_ext=c
6919
6920 # Object file extension for compiled C test sources.
6921 objext=o
6922 objext=$objext
6923
6924 # Code to be used in simple compile tests
6925 lt_simple_compile_test_code="int some_variable = 0;\n"
6926
6927 # Code to be used in simple link tests
6928 lt_simple_link_test_code='int main(){return(0);}\n'
6929
6930
6931 # If no C compiler was specified, use CC.
6932 LTCC=${LTCC-"$CC"}
6933
6934 # If no C compiler flags were specified, use CFLAGS.
6935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6936
6937 # Allow CC to be a program name with arguments.
6938 compiler=$CC
6939
6940
6941 # save warnings/boilerplate of simple test code
6942 ac_outfile=conftest.$ac_objext
6943 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6945 _lt_compiler_boilerplate=`cat conftest.err`
6946 $rm conftest*
6947
6948 ac_outfile=conftest.$ac_objext
6949 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6951 _lt_linker_boilerplate=`cat conftest.err`
6952 $rm conftest*
6953
6954
6955 ## CAVEAT EMPTOR:
6956 ## There is no encapsulation within the following macros, do not change
6957 ## the running order or otherwise move them around unless you know exactly
6958 ## what you are doing...
6959
6960 lt_prog_compiler_no_builtin_flag=
6961
6962 if test "$GCC" = yes; then
6963   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6964
6965
6966 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6967 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6968 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6969   echo $ECHO_N "(cached) $ECHO_C" >&6
6970 else
6971   lt_cv_prog_compiler_rtti_exceptions=no
6972   ac_outfile=conftest.$ac_objext
6973    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6974    lt_compiler_flag="-fno-rtti -fno-exceptions"
6975    # Insert the option either (1) after the last *FLAGS variable, or
6976    # (2) before a word containing "conftest.", or (3) at the end.
6977    # Note that $ac_compile itself does not contain backslashes and begins
6978    # with a dollar sign (not a hyphen), so the echo should work correctly.
6979    # The option is referenced via a variable to avoid confusing sed.
6980    lt_compile=`echo "$ac_compile" | $SED \
6981    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6982    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6983    -e 's:$: $lt_compiler_flag:'`
6984    (eval echo "\"\$as_me:6984: $lt_compile\"" >&5)
6985    (eval "$lt_compile" 2>conftest.err)
6986    ac_status=$?
6987    cat conftest.err >&5
6988    echo "$as_me:6988: \$? = $ac_status" >&5
6989    if (exit $ac_status) && test -s "$ac_outfile"; then
6990      # The compiler can only warn and ignore the option if not recognized
6991      # So say no if there are warnings other than the usual output.
6992      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6993      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6994      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6995        lt_cv_prog_compiler_rtti_exceptions=yes
6996      fi
6997    fi
6998    $rm conftest*
6999
7000 fi
7001 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7002 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7003
7004 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7005     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7006 else
7007     :
7008 fi
7009
7010 fi
7011
7012 lt_prog_compiler_wl=
7013 lt_prog_compiler_pic=
7014 lt_prog_compiler_static=
7015
7016 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7017 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7018
7019   if test "$GCC" = yes; then
7020     lt_prog_compiler_wl='-Wl,'
7021     lt_prog_compiler_static='-static'
7022
7023     case $host_os in
7024       aix*)
7025       # All AIX code is PIC.
7026       if test "$host_cpu" = ia64; then
7027         # AIX 5 now supports IA64 processor
7028         lt_prog_compiler_static='-Bstatic'
7029       fi
7030       ;;
7031
7032     amigaos*)
7033       # FIXME: we need at least 68020 code to build shared libraries, but
7034       # adding the `-m68020' flag to GCC prevents building anything better,
7035       # like `-m68040'.
7036       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7037       ;;
7038
7039     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7040       # PIC is the default for these OSes.
7041       ;;
7042
7043     mingw* | pw32* | os2*)
7044       # This hack is so that the source file can tell whether it is being
7045       # built for inclusion in a dll (and should export symbols for example).
7046       lt_prog_compiler_pic='-DDLL_EXPORT'
7047       ;;
7048
7049     darwin* | rhapsody*)
7050       # PIC is the default on this platform
7051       # Common symbols not allowed in MH_DYLIB files
7052       lt_prog_compiler_pic='-fno-common'
7053       ;;
7054
7055     interix3*)
7056       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7057       # Instead, we relocate shared libraries at runtime.
7058       ;;
7059
7060     msdosdjgpp*)
7061       # Just because we use GCC doesn't mean we suddenly get shared libraries
7062       # on systems that don't support them.
7063       lt_prog_compiler_can_build_shared=no
7064       enable_shared=no
7065       ;;
7066
7067     sysv4*MP*)
7068       if test -d /usr/nec; then
7069         lt_prog_compiler_pic=-Kconform_pic
7070       fi
7071       ;;
7072
7073     hpux*)
7074       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7075       # not for PA HP-UX.
7076       case $host_cpu in
7077       hppa*64*|ia64*)
7078         # +Z the default
7079         ;;
7080       *)
7081         lt_prog_compiler_pic='-fPIC'
7082         ;;
7083       esac
7084       ;;
7085
7086     *)
7087       lt_prog_compiler_pic='-fPIC'
7088       ;;
7089     esac
7090   else
7091     # PORTME Check for flag to pass linker flags through the system compiler.
7092     case $host_os in
7093     aix*)
7094       lt_prog_compiler_wl='-Wl,'
7095       if test "$host_cpu" = ia64; then
7096         # AIX 5 now supports IA64 processor
7097         lt_prog_compiler_static='-Bstatic'
7098       else
7099         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7100       fi
7101       ;;
7102       darwin*)
7103         # PIC is the default on this platform
7104         # Common symbols not allowed in MH_DYLIB files
7105        case $cc_basename in
7106          xlc*)
7107          lt_prog_compiler_pic='-qnocommon'
7108          lt_prog_compiler_wl='-Wl,'
7109          ;;
7110        esac
7111        ;;
7112
7113     mingw* | pw32* | os2*)
7114       # This hack is so that the source file can tell whether it is being
7115       # built for inclusion in a dll (and should export symbols for example).
7116       lt_prog_compiler_pic='-DDLL_EXPORT'
7117       ;;
7118
7119     hpux9* | hpux10* | hpux11*)
7120       lt_prog_compiler_wl='-Wl,'
7121       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7122       # not for PA HP-UX.
7123       case $host_cpu in
7124       hppa*64*|ia64*)
7125         # +Z the default
7126         ;;
7127       *)
7128         lt_prog_compiler_pic='+Z'
7129         ;;
7130       esac
7131       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7132       lt_prog_compiler_static='${wl}-a ${wl}archive'
7133       ;;
7134
7135     irix5* | irix6* | nonstopux*)
7136       lt_prog_compiler_wl='-Wl,'
7137       # PIC (with -KPIC) is the default.
7138       lt_prog_compiler_static='-non_shared'
7139       ;;
7140
7141     newsos6)
7142       lt_prog_compiler_pic='-KPIC'
7143       lt_prog_compiler_static='-Bstatic'
7144       ;;
7145
7146     linux*)
7147       case $cc_basename in
7148       icc* | ecc*)
7149         lt_prog_compiler_wl='-Wl,'
7150         lt_prog_compiler_pic='-KPIC'
7151         lt_prog_compiler_static='-static'
7152         ;;
7153       pgcc* | pgf77* | pgf90* | pgf95*)
7154         # Portland Group compilers (*not* the Pentium gcc compiler,
7155         # which looks to be a dead project)
7156         lt_prog_compiler_wl='-Wl,'
7157         lt_prog_compiler_pic='-fpic'
7158         lt_prog_compiler_static='-Bstatic'
7159         ;;
7160       ccc*)
7161         lt_prog_compiler_wl='-Wl,'
7162         # All Alpha code is PIC.
7163         lt_prog_compiler_static='-non_shared'
7164         ;;
7165       esac
7166       ;;
7167
7168     osf3* | osf4* | osf5*)
7169       lt_prog_compiler_wl='-Wl,'
7170       # All OSF/1 code is PIC.
7171       lt_prog_compiler_static='-non_shared'
7172       ;;
7173
7174     solaris*)
7175       lt_prog_compiler_pic='-KPIC'
7176       lt_prog_compiler_static='-Bstatic'
7177       case $cc_basename in
7178       f77* | f90* | f95*)
7179         lt_prog_compiler_wl='-Qoption ld ';;
7180       *)
7181         lt_prog_compiler_wl='-Wl,';;
7182       esac
7183       ;;
7184
7185     sunos4*)
7186       lt_prog_compiler_wl='-Qoption ld '
7187       lt_prog_compiler_pic='-PIC'
7188       lt_prog_compiler_static='-Bstatic'
7189       ;;
7190
7191     sysv4 | sysv4.2uw2* | sysv4.3*)
7192       lt_prog_compiler_wl='-Wl,'
7193       lt_prog_compiler_pic='-KPIC'
7194       lt_prog_compiler_static='-Bstatic'
7195       ;;
7196
7197     sysv4*MP*)
7198       if test -d /usr/nec ;then
7199         lt_prog_compiler_pic='-Kconform_pic'
7200         lt_prog_compiler_static='-Bstatic'
7201       fi
7202       ;;
7203
7204     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7205       lt_prog_compiler_wl='-Wl,'
7206       lt_prog_compiler_pic='-KPIC'
7207       lt_prog_compiler_static='-Bstatic'
7208       ;;
7209
7210     unicos*)
7211       lt_prog_compiler_wl='-Wl,'
7212       lt_prog_compiler_can_build_shared=no
7213       ;;
7214
7215     uts4*)
7216       lt_prog_compiler_pic='-pic'
7217       lt_prog_compiler_static='-Bstatic'
7218       ;;
7219
7220     *)
7221       lt_prog_compiler_can_build_shared=no
7222       ;;
7223     esac
7224   fi
7225
7226 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7227 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7228
7229 #
7230 # Check to make sure the PIC flag actually works.
7231 #
7232 if test -n "$lt_prog_compiler_pic"; then
7233
7234 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7235 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7236 if test "${lt_prog_compiler_pic_works+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   lt_prog_compiler_pic_works=no
7240   ac_outfile=conftest.$ac_objext
7241    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7242    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7243    # Insert the option either (1) after the last *FLAGS variable, or
7244    # (2) before a word containing "conftest.", or (3) at the end.
7245    # Note that $ac_compile itself does not contain backslashes and begins
7246    # with a dollar sign (not a hyphen), so the echo should work correctly.
7247    # The option is referenced via a variable to avoid confusing sed.
7248    lt_compile=`echo "$ac_compile" | $SED \
7249    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7250    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7251    -e 's:$: $lt_compiler_flag:'`
7252    (eval echo "\"\$as_me:7252: $lt_compile\"" >&5)
7253    (eval "$lt_compile" 2>conftest.err)
7254    ac_status=$?
7255    cat conftest.err >&5
7256    echo "$as_me:7256: \$? = $ac_status" >&5
7257    if (exit $ac_status) && test -s "$ac_outfile"; then
7258      # The compiler can only warn and ignore the option if not recognized
7259      # So say no if there are warnings other than the usual output.
7260      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7261      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7262      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7263        lt_prog_compiler_pic_works=yes
7264      fi
7265    fi
7266    $rm conftest*
7267
7268 fi
7269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7270 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7271
7272 if test x"$lt_prog_compiler_pic_works" = xyes; then
7273     case $lt_prog_compiler_pic in
7274      "" | " "*) ;;
7275      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7276      esac
7277 else
7278     lt_prog_compiler_pic=
7279      lt_prog_compiler_can_build_shared=no
7280 fi
7281
7282 fi
7283 case $host_os in
7284   # For platforms which do not support PIC, -DPIC is meaningless:
7285   *djgpp*)
7286     lt_prog_compiler_pic=
7287     ;;
7288   *)
7289     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7290     ;;
7291 esac
7292
7293 #
7294 # Check to make sure the static flag actually works.
7295 #
7296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7297 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7298 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7299 if test "${lt_prog_compiler_static_works+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   lt_prog_compiler_static_works=no
7303    save_LDFLAGS="$LDFLAGS"
7304    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7305    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7306    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7307      # The linker can only warn and ignore the option if not recognized
7308      # So say no if there are warnings
7309      if test -s conftest.err; then
7310        # Append any errors to the config.log.
7311        cat conftest.err 1>&5
7312        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7313        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7314        if diff conftest.exp conftest.er2 >/dev/null; then
7315          lt_prog_compiler_static_works=yes
7316        fi
7317      else
7318        lt_prog_compiler_static_works=yes
7319      fi
7320    fi
7321    $rm conftest*
7322    LDFLAGS="$save_LDFLAGS"
7323
7324 fi
7325 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7326 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7327
7328 if test x"$lt_prog_compiler_static_works" = xyes; then
7329     :
7330 else
7331     lt_prog_compiler_static=
7332 fi
7333
7334
7335 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7336 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7337 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   lt_cv_prog_compiler_c_o=no
7341    $rm -r conftest 2>/dev/null
7342    mkdir conftest
7343    cd conftest
7344    mkdir out
7345    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7346
7347    lt_compiler_flag="-o out/conftest2.$ac_objext"
7348    # Insert the option either (1) after the last *FLAGS variable, or
7349    # (2) before a word containing "conftest.", or (3) at the end.
7350    # Note that $ac_compile itself does not contain backslashes and begins
7351    # with a dollar sign (not a hyphen), so the echo should work correctly.
7352    lt_compile=`echo "$ac_compile" | $SED \
7353    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7354    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7355    -e 's:$: $lt_compiler_flag:'`
7356    (eval echo "\"\$as_me:7356: $lt_compile\"" >&5)
7357    (eval "$lt_compile" 2>out/conftest.err)
7358    ac_status=$?
7359    cat out/conftest.err >&5
7360    echo "$as_me:7360: \$? = $ac_status" >&5
7361    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7362    then
7363      # The compiler can only warn and ignore the option if not recognized
7364      # So say no if there are warnings
7365      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7366      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7367      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7368        lt_cv_prog_compiler_c_o=yes
7369      fi
7370    fi
7371    chmod u+w . 2>&5
7372    $rm conftest*
7373    # SGI C++ compiler will create directory out/ii_files/ for
7374    # template instantiation
7375    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7376    $rm out/* && rmdir out
7377    cd ..
7378    rmdir conftest
7379    $rm conftest*
7380
7381 fi
7382 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7383 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7384
7385
7386 hard_links="nottested"
7387 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7388   # do not overwrite the value of need_locks provided by the user
7389   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7390 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7391   hard_links=yes
7392   $rm conftest*
7393   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7394   touch conftest.a
7395   ln conftest.a conftest.b 2>&5 || hard_links=no
7396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7397   { echo "$as_me:$LINENO: result: $hard_links" >&5
7398 echo "${ECHO_T}$hard_links" >&6; }
7399   if test "$hard_links" = no; then
7400     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7401 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7402     need_locks=warn
7403   fi
7404 else
7405   need_locks=no
7406 fi
7407
7408 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7409 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7410
7411   runpath_var=
7412   allow_undefined_flag=
7413   enable_shared_with_static_runtimes=no
7414   archive_cmds=
7415   archive_expsym_cmds=
7416   old_archive_From_new_cmds=
7417   old_archive_from_expsyms_cmds=
7418   export_dynamic_flag_spec=
7419   whole_archive_flag_spec=
7420   thread_safe_flag_spec=
7421   hardcode_libdir_flag_spec=
7422   hardcode_libdir_flag_spec_ld=
7423   hardcode_libdir_separator=
7424   hardcode_direct=no
7425   hardcode_minus_L=no
7426   hardcode_shlibpath_var=unsupported
7427   link_all_deplibs=unknown
7428   hardcode_automatic=no
7429   module_cmds=
7430   module_expsym_cmds=
7431   always_export_symbols=no
7432   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7433   # include_expsyms should be a list of space-separated symbols to be *always*
7434   # included in the symbol list
7435   include_expsyms=
7436   # exclude_expsyms can be an extended regexp of symbols to exclude
7437   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7438   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7439   # as well as any symbol that contains `d'.
7440   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7441   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7442   # platforms (ab)use it in PIC code, but their linkers get confused if
7443   # the symbol is explicitly referenced.  Since portable code cannot
7444   # rely on this symbol name, it's probably fine to never include it in
7445   # preloaded symbol tables.
7446   extract_expsyms_cmds=
7447   # Just being paranoid about ensuring that cc_basename is set.
7448   for cc_temp in $compiler""; do
7449   case $cc_temp in
7450     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7451     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7452     \-*) ;;
7453     *) break;;
7454   esac
7455 done
7456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7457
7458   case $host_os in
7459   cygwin* | mingw* | pw32*)
7460     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7461     # When not using gcc, we currently assume that we are using
7462     # Microsoft Visual C++.
7463     if test "$GCC" != yes; then
7464       with_gnu_ld=no
7465     fi
7466     ;;
7467   interix*)
7468     # we just hope/assume this is gcc and not c89 (= MSVC++)
7469     with_gnu_ld=yes
7470     ;;
7471   openbsd*)
7472     with_gnu_ld=no
7473     ;;
7474   esac
7475
7476   ld_shlibs=yes
7477   if test "$with_gnu_ld" = yes; then
7478     # If archive_cmds runs LD, not CC, wlarc should be empty
7479     wlarc='${wl}'
7480
7481     # Set some defaults for GNU ld with shared library support. These
7482     # are reset later if shared libraries are not supported. Putting them
7483     # here allows them to be overridden if necessary.
7484     runpath_var=LD_RUN_PATH
7485     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7486     export_dynamic_flag_spec='${wl}--export-dynamic'
7487     # ancient GNU ld didn't support --whole-archive et. al.
7488     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7489         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7490       else
7491         whole_archive_flag_spec=
7492     fi
7493     supports_anon_versioning=no
7494     case `$LD -v 2>/dev/null` in
7495       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7496       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7497       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7498       *\ 2.11.*) ;; # other 2.11 versions
7499       *) supports_anon_versioning=yes ;;
7500     esac
7501
7502     # See if GNU ld supports shared libraries.
7503     case $host_os in
7504     aix3* | aix4* | aix5*)
7505       # On AIX/PPC, the GNU linker is very broken
7506       if test "$host_cpu" != ia64; then
7507         ld_shlibs=no
7508         cat <<EOF 1>&2
7509
7510 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7511 *** to be unable to reliably create shared libraries on AIX.
7512 *** Therefore, libtool is disabling shared libraries support.  If you
7513 *** really care for shared libraries, you may want to modify your PATH
7514 *** so that a non-GNU linker is found, and then restart.
7515
7516 EOF
7517       fi
7518       ;;
7519
7520     amigaos*)
7521       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)'
7522       hardcode_libdir_flag_spec='-L$libdir'
7523       hardcode_minus_L=yes
7524
7525       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7526       # that the semantics of dynamic libraries on AmigaOS, at least up
7527       # to version 4, is to share data among multiple programs linked
7528       # with the same dynamic library.  Since this doesn't match the
7529       # behavior of shared libraries on other platforms, we can't use
7530       # them.
7531       ld_shlibs=no
7532       ;;
7533
7534     beos*)
7535       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7536         allow_undefined_flag=unsupported
7537         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7538         # support --undefined.  This deserves some investigation.  FIXME
7539         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7540       else
7541         ld_shlibs=no
7542       fi
7543       ;;
7544
7545     cygwin* | mingw* | pw32*)
7546       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7547       # as there is no search path for DLLs.
7548       hardcode_libdir_flag_spec='-L$libdir'
7549       allow_undefined_flag=unsupported
7550       always_export_symbols=no
7551       enable_shared_with_static_runtimes=yes
7552       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7553
7554       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7555         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7556         # If the export-symbols file already is a .def file (1st line
7557         # is EXPORTS), use it as is; otherwise, prepend...
7558         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7559           cp $export_symbols $output_objdir/$soname.def;
7560         else
7561           echo EXPORTS > $output_objdir/$soname.def;
7562           cat $export_symbols >> $output_objdir/$soname.def;
7563         fi~
7564         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7565       else
7566         ld_shlibs=no
7567       fi
7568       ;;
7569
7570     interix3*)
7571       hardcode_direct=no
7572       hardcode_shlibpath_var=no
7573       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7574       export_dynamic_flag_spec='${wl}-E'
7575       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7576       # Instead, shared libraries are loaded at an image base (0x10000000 by
7577       # default) and relocated if they conflict, which is a slow very memory
7578       # consuming and fragmenting process.  To avoid this, we pick a random,
7579       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7580       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7581       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7582       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'
7583       ;;
7584
7585     linux*)
7586       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7587         tmp_addflag=
7588         case $cc_basename,$host_cpu in
7589         pgcc*)                          # Portland Group C compiler
7590           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'
7591           tmp_addflag=' $pic_flag'
7592           ;;
7593         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7594           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'
7595           tmp_addflag=' $pic_flag -Mnomain' ;;
7596         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7597           tmp_addflag=' -i_dynamic' ;;
7598         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7599           tmp_addflag=' -i_dynamic -nofor_main' ;;
7600         ifc* | ifort*)                  # Intel Fortran compiler
7601           tmp_addflag=' -nofor_main' ;;
7602         esac
7603         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7604
7605         if test $supports_anon_versioning = yes; then
7606           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7607   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7608   $echo "local: *; };" >> $output_objdir/$libname.ver~
7609           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7610         fi
7611       else
7612         ld_shlibs=no
7613       fi
7614       ;;
7615
7616     netbsd*)
7617       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7618         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7619         wlarc=
7620       else
7621         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7622         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7623       fi
7624       ;;
7625
7626     solaris*)
7627       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7628         ld_shlibs=no
7629         cat <<EOF 1>&2
7630
7631 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7632 *** create shared libraries on Solaris systems.  Therefore, libtool
7633 *** is disabling shared libraries support.  We urge you to upgrade GNU
7634 *** binutils to release 2.9.1 or newer.  Another option is to modify
7635 *** your PATH or compiler configuration so that the native linker is
7636 *** used, and then restart.
7637
7638 EOF
7639       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7640         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7641         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7642       else
7643         ld_shlibs=no
7644       fi
7645       ;;
7646
7647     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7648       case `$LD -v 2>&1` in
7649         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7650         ld_shlibs=no
7651         cat <<_LT_EOF 1>&2
7652
7653 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7654 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7655 *** is disabling shared libraries support.  We urge you to upgrade GNU
7656 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7657 *** your PATH or compiler configuration so that the native linker is
7658 *** used, and then restart.
7659
7660 _LT_EOF
7661         ;;
7662         *)
7663           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7664             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7665             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7666             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7667           else
7668             ld_shlibs=no
7669           fi
7670         ;;
7671       esac
7672       ;;
7673
7674     sunos4*)
7675       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7676       wlarc=
7677       hardcode_direct=yes
7678       hardcode_shlibpath_var=no
7679       ;;
7680
7681     *)
7682       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7683         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7684         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7685       else
7686         ld_shlibs=no
7687       fi
7688       ;;
7689     esac
7690
7691     if test "$ld_shlibs" = no; then
7692       runpath_var=
7693       hardcode_libdir_flag_spec=
7694       export_dynamic_flag_spec=
7695       whole_archive_flag_spec=
7696     fi
7697   else
7698     # PORTME fill in a description of your system's linker (not GNU ld)
7699     case $host_os in
7700     aix3*)
7701       allow_undefined_flag=unsupported
7702       always_export_symbols=yes
7703       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'
7704       # Note: this linker hardcodes the directories in LIBPATH if there
7705       # are no directories specified by -L.
7706       hardcode_minus_L=yes
7707       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7708         # Neither direct hardcoding nor static linking is supported with a
7709         # broken collect2.
7710         hardcode_direct=unsupported
7711       fi
7712       ;;
7713
7714     aix4* | aix5*)
7715       if test "$host_cpu" = ia64; then
7716         # On IA64, the linker does run time linking by default, so we don't
7717         # have to do anything special.
7718         aix_use_runtimelinking=no
7719         exp_sym_flag='-Bexport'
7720         no_entry_flag=""
7721       else
7722         # If we're using GNU nm, then we don't want the "-C" option.
7723         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7724         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7725           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'
7726         else
7727           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'
7728         fi
7729         aix_use_runtimelinking=no
7730
7731         # Test if we are trying to use run time linking or normal
7732         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7733         # need to do runtime linking.
7734         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7735           for ld_flag in $LDFLAGS; do
7736           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7737             aix_use_runtimelinking=yes
7738             break
7739           fi
7740           done
7741           ;;
7742         esac
7743
7744         exp_sym_flag='-bexport'
7745         no_entry_flag='-bnoentry'
7746       fi
7747
7748       # When large executables or shared objects are built, AIX ld can
7749       # have problems creating the table of contents.  If linking a library
7750       # or program results in "error TOC overflow" add -mminimal-toc to
7751       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7752       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7753
7754       archive_cmds=''
7755       hardcode_direct=yes
7756       hardcode_libdir_separator=':'
7757       link_all_deplibs=yes
7758
7759       if test "$GCC" = yes; then
7760         case $host_os in aix4.[012]|aix4.[012].*)
7761         # We only want to do this on AIX 4.2 and lower, the check
7762         # below for broken collect2 doesn't work under 4.3+
7763           collect2name=`${CC} -print-prog-name=collect2`
7764           if test -f "$collect2name" && \
7765            strings "$collect2name" | grep resolve_lib_name >/dev/null
7766           then
7767           # We have reworked collect2
7768           hardcode_direct=yes
7769           else
7770           # We have old collect2
7771           hardcode_direct=unsupported
7772           # It fails to find uninstalled libraries when the uninstalled
7773           # path is not listed in the libpath.  Setting hardcode_minus_L
7774           # to unsupported forces relinking
7775           hardcode_minus_L=yes
7776           hardcode_libdir_flag_spec='-L$libdir'
7777           hardcode_libdir_separator=
7778           fi
7779           ;;
7780         esac
7781         shared_flag='-shared'
7782         if test "$aix_use_runtimelinking" = yes; then
7783           shared_flag="$shared_flag "'${wl}-G'
7784         fi
7785       else
7786         # not using gcc
7787         if test "$host_cpu" = ia64; then
7788         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7789         # chokes on -Wl,-G. The following line is correct:
7790           shared_flag='-G'
7791         else
7792           if test "$aix_use_runtimelinking" = yes; then
7793             shared_flag='${wl}-G'
7794           else
7795             shared_flag='${wl}-bM:SRE'
7796           fi
7797         fi
7798       fi
7799
7800       # It seems that -bexpall does not export symbols beginning with
7801       # underscore (_), so it is better to generate a list of symbols to export.
7802       always_export_symbols=yes
7803       if test "$aix_use_runtimelinking" = yes; then
7804         # Warning - without using the other runtime loading flags (-brtl),
7805         # -berok will link without error, but may produce a broken library.
7806         allow_undefined_flag='-berok'
7807        # Determine the default libpath from the value encoded in an empty executable.
7808        cat >conftest.$ac_ext <<_ACEOF
7809 /* confdefs.h.  */
7810 _ACEOF
7811 cat confdefs.h >>conftest.$ac_ext
7812 cat >>conftest.$ac_ext <<_ACEOF
7813 /* end confdefs.h.  */
7814
7815 int
7816 main ()
7817 {
7818
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext conftest$ac_exeext
7824 if { (ac_try="$ac_link"
7825 case "(($ac_try" in
7826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7827   *) ac_try_echo=$ac_try;;
7828 esac
7829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7830   (eval "$ac_link") 2>conftest.er1
7831   ac_status=$?
7832   grep -v '^ *+' conftest.er1 >conftest.err
7833   rm -f conftest.er1
7834   cat conftest.err >&5
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); } && {
7837          test -z "$ac_c_werror_flag" ||
7838          test ! -s conftest.err
7839        } && test -s conftest$ac_exeext &&
7840        $as_test_x conftest$ac_exeext; then
7841
7842 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7843 }'`
7844 # Check for a 64-bit object if we didn't find anything.
7845 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; }
7846 }'`; fi
7847 else
7848   echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851
7852 fi
7853
7854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7855       conftest$ac_exeext conftest.$ac_ext
7856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7857
7858        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7859         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"
7860        else
7861         if test "$host_cpu" = ia64; then
7862           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7863           allow_undefined_flag="-z nodefs"
7864           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"
7865         else
7866          # Determine the default libpath from the value encoded in an empty executable.
7867          cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873
7874 int
7875 main ()
7876 {
7877
7878   ;
7879   return 0;
7880 }
7881 _ACEOF
7882 rm -f conftest.$ac_objext conftest$ac_exeext
7883 if { (ac_try="$ac_link"
7884 case "(($ac_try" in
7885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886   *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889   (eval "$ac_link") 2>conftest.er1
7890   ac_status=$?
7891   grep -v '^ *+' conftest.er1 >conftest.err
7892   rm -f conftest.er1
7893   cat conftest.err >&5
7894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895   (exit $ac_status); } && {
7896          test -z "$ac_c_werror_flag" ||
7897          test ! -s conftest.err
7898        } && test -s conftest$ac_exeext &&
7899        $as_test_x conftest$ac_exeext; then
7900
7901 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7902 }'`
7903 # Check for a 64-bit object if we didn't find anything.
7904 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; }
7905 }'`; fi
7906 else
7907   echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910
7911 fi
7912
7913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7914       conftest$ac_exeext conftest.$ac_ext
7915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7916
7917          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7918           # Warning - without using the other run time loading flags,
7919           # -berok will link without error, but may produce a broken library.
7920           no_undefined_flag=' ${wl}-bernotok'
7921           allow_undefined_flag=' ${wl}-berok'
7922           # Exported symbols can be pulled into shared objects from archives
7923           whole_archive_flag_spec='$convenience'
7924           archive_cmds_need_lc=yes
7925           # This is similar to how AIX traditionally builds its shared libraries.
7926           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'
7927         fi
7928       fi
7929       ;;
7930
7931     amigaos*)
7932       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)'
7933       hardcode_libdir_flag_spec='-L$libdir'
7934       hardcode_minus_L=yes
7935       # see comment about different semantics on the GNU ld section
7936       ld_shlibs=no
7937       ;;
7938
7939     bsdi[45]*)
7940       export_dynamic_flag_spec=-rdynamic
7941       ;;
7942
7943     cygwin* | mingw* | pw32*)
7944       # When not using gcc, we currently assume that we are using
7945       # Microsoft Visual C++.
7946       # hardcode_libdir_flag_spec is actually meaningless, as there is
7947       # no search path for DLLs.
7948       hardcode_libdir_flag_spec=' '
7949       allow_undefined_flag=unsupported
7950       # Tell ltmain to make .lib files, not .a files.
7951       libext=lib
7952       # Tell ltmain to make .dll files, not .so files.
7953       shrext_cmds=".dll"
7954       # FIXME: Setting linknames here is a bad hack.
7955       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7956       # The linker will automatically build a .lib file if we build a DLL.
7957       old_archive_From_new_cmds='true'
7958       # FIXME: Should let the user specify the lib program.
7959       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7960       fix_srcfile_path='`cygpath -w "$srcfile"`'
7961       enable_shared_with_static_runtimes=yes
7962       ;;
7963
7964     darwin* | rhapsody*)
7965       case $host_os in
7966         rhapsody* | darwin1.[012])
7967          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7968          ;;
7969        *) # Darwin 1.3 on
7970          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7971            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7972          else
7973            case ${MACOSX_DEPLOYMENT_TARGET} in
7974              10.[012])
7975                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7976                ;;
7977              10.*)
7978                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7979                ;;
7980            esac
7981          fi
7982          ;;
7983       esac
7984       archive_cmds_need_lc=no
7985       hardcode_direct=no
7986       hardcode_automatic=yes
7987       hardcode_shlibpath_var=unsupported
7988       whole_archive_flag_spec=''
7989       link_all_deplibs=yes
7990     if test "$GCC" = yes ; then
7991         output_verbose_link_cmd='echo'
7992         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7993       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7994       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7995       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}'
7996       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}'
7997     else
7998       case $cc_basename in
7999         xlc*)
8000          output_verbose_link_cmd='echo'
8001          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8002          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8003           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8004          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}'
8005           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}'
8006           ;;
8007        *)
8008          ld_shlibs=no
8009           ;;
8010       esac
8011     fi
8012       ;;
8013
8014     dgux*)
8015       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8016       hardcode_libdir_flag_spec='-L$libdir'
8017       hardcode_shlibpath_var=no
8018       ;;
8019
8020     freebsd1*)
8021       ld_shlibs=no
8022       ;;
8023
8024     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8025     # support.  Future versions do this automatically, but an explicit c++rt0.o
8026     # does not break anything, and helps significantly (at the cost of a little
8027     # extra space).
8028     freebsd2.2*)
8029       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8030       hardcode_libdir_flag_spec='-R$libdir'
8031       hardcode_direct=yes
8032       hardcode_shlibpath_var=no
8033       ;;
8034
8035     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8036     freebsd2*)
8037       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8038       hardcode_direct=yes
8039       hardcode_minus_L=yes
8040       hardcode_shlibpath_var=no
8041       ;;
8042
8043     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8044     freebsd* | kfreebsd*-gnu | dragonfly*)
8045       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8046       hardcode_libdir_flag_spec='-R$libdir'
8047       hardcode_direct=yes
8048       hardcode_shlibpath_var=no
8049       ;;
8050
8051     hpux9*)
8052       if test "$GCC" = yes; then
8053         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'
8054       else
8055         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'
8056       fi
8057       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8058       hardcode_libdir_separator=:
8059       hardcode_direct=yes
8060
8061       # hardcode_minus_L: Not really in the search PATH,
8062       # but as the default location of the library.
8063       hardcode_minus_L=yes
8064       export_dynamic_flag_spec='${wl}-E'
8065       ;;
8066
8067     hpux10*)
8068       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8069         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8070       else
8071         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8072       fi
8073       if test "$with_gnu_ld" = no; then
8074         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8075         hardcode_libdir_separator=:
8076
8077         hardcode_direct=yes
8078         export_dynamic_flag_spec='${wl}-E'
8079
8080         # hardcode_minus_L: Not really in the search PATH,
8081         # but as the default location of the library.
8082         hardcode_minus_L=yes
8083       fi
8084       ;;
8085
8086     hpux11*)
8087       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8088         case $host_cpu in
8089         hppa*64*)
8090           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8091           ;;
8092         ia64*)
8093           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8094           ;;
8095         *)
8096           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8097           ;;
8098         esac
8099       else
8100         case $host_cpu in
8101         hppa*64*)
8102           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8103           ;;
8104         ia64*)
8105           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8106           ;;
8107         *)
8108           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8109           ;;
8110         esac
8111       fi
8112       if test "$with_gnu_ld" = no; then
8113         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8114         hardcode_libdir_separator=:
8115
8116         case $host_cpu in
8117         hppa*64*|ia64*)
8118           hardcode_libdir_flag_spec_ld='+b $libdir'
8119           hardcode_direct=no
8120           hardcode_shlibpath_var=no
8121           ;;
8122         *)
8123           hardcode_direct=yes
8124           export_dynamic_flag_spec='${wl}-E'
8125
8126           # hardcode_minus_L: Not really in the search PATH,
8127           # but as the default location of the library.
8128           hardcode_minus_L=yes
8129           ;;
8130         esac
8131       fi
8132       ;;
8133
8134     irix5* | irix6* | nonstopux*)
8135       if test "$GCC" = yes; then
8136         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'
8137       else
8138         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'
8139         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8140       fi
8141       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8142       hardcode_libdir_separator=:
8143       link_all_deplibs=yes
8144       ;;
8145
8146     netbsd*)
8147       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8148         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8149       else
8150         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8151       fi
8152       hardcode_libdir_flag_spec='-R$libdir'
8153       hardcode_direct=yes
8154       hardcode_shlibpath_var=no
8155       ;;
8156
8157     newsos6)
8158       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8159       hardcode_direct=yes
8160       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8161       hardcode_libdir_separator=:
8162       hardcode_shlibpath_var=no
8163       ;;
8164
8165     openbsd*)
8166       hardcode_direct=yes
8167       hardcode_shlibpath_var=no
8168       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8169         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8170         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8171         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8172         export_dynamic_flag_spec='${wl}-E'
8173       else
8174        case $host_os in
8175          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8176            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8177            hardcode_libdir_flag_spec='-R$libdir'
8178            ;;
8179          *)
8180            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8181            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8182            ;;
8183        esac
8184       fi
8185       ;;
8186
8187     os2*)
8188       hardcode_libdir_flag_spec='-L$libdir'
8189       hardcode_minus_L=yes
8190       allow_undefined_flag=unsupported
8191       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'
8192       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8193       ;;
8194
8195     osf3*)
8196       if test "$GCC" = yes; then
8197         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8198         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'
8199       else
8200         allow_undefined_flag=' -expect_unresolved \*'
8201         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'
8202       fi
8203       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8204       hardcode_libdir_separator=:
8205       ;;
8206
8207     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8208       if test "$GCC" = yes; then
8209         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8210         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'
8211         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8212       else
8213         allow_undefined_flag=' -expect_unresolved \*'
8214         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'
8215         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8216         $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'
8217
8218         # Both c and cxx compiler support -rpath directly
8219         hardcode_libdir_flag_spec='-rpath $libdir'
8220       fi
8221       hardcode_libdir_separator=:
8222       ;;
8223
8224     solaris*)
8225       no_undefined_flag=' -z text'
8226       if test "$GCC" = yes; then
8227         wlarc='${wl}'
8228         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8229         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8230           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8231       else
8232         wlarc=''
8233         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8234         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8235         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8236       fi
8237       hardcode_libdir_flag_spec='-R$libdir'
8238       hardcode_shlibpath_var=no
8239       case $host_os in
8240       solaris2.[0-5] | solaris2.[0-5].*) ;;
8241       *)
8242         # The compiler driver will combine linker options so we
8243         # cannot just pass the convience library names through
8244         # without $wl, iff we do not link with $LD.
8245         # Luckily, gcc supports the same syntax we need for Sun Studio.
8246         # Supported since Solaris 2.6 (maybe 2.5.1?)
8247         case $wlarc in
8248         '')
8249           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8250         *)
8251           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' ;;
8252         esac ;;
8253       esac
8254       link_all_deplibs=yes
8255       ;;
8256
8257     sunos4*)
8258       if test "x$host_vendor" = xsequent; then
8259         # Use $CC to link under sequent, because it throws in some extra .o
8260         # files that make .init and .fini sections work.
8261         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8262       else
8263         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8264       fi
8265       hardcode_libdir_flag_spec='-L$libdir'
8266       hardcode_direct=yes
8267       hardcode_minus_L=yes
8268       hardcode_shlibpath_var=no
8269       ;;
8270
8271     sysv4)
8272       case $host_vendor in
8273         sni)
8274           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8275           hardcode_direct=yes # is this really true???
8276         ;;
8277         siemens)
8278           ## LD is ld it makes a PLAMLIB
8279           ## CC just makes a GrossModule.
8280           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8281           reload_cmds='$CC -r -o $output$reload_objs'
8282           hardcode_direct=no
8283         ;;
8284         motorola)
8285           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8286           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8287         ;;
8288       esac
8289       runpath_var='LD_RUN_PATH'
8290       hardcode_shlibpath_var=no
8291       ;;
8292
8293     sysv4.3*)
8294       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8295       hardcode_shlibpath_var=no
8296       export_dynamic_flag_spec='-Bexport'
8297       ;;
8298
8299     sysv4*MP*)
8300       if test -d /usr/nec; then
8301         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8302         hardcode_shlibpath_var=no
8303         runpath_var=LD_RUN_PATH
8304         hardcode_runpath_var=yes
8305         ld_shlibs=yes
8306       fi
8307       ;;
8308
8309     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8310       no_undefined_flag='${wl}-z,text'
8311       archive_cmds_need_lc=no
8312       hardcode_shlibpath_var=no
8313       runpath_var='LD_RUN_PATH'
8314
8315       if test "$GCC" = yes; then
8316         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8317         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8318       else
8319         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8320         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8321       fi
8322       ;;
8323
8324     sysv5* | sco3.2v5* | sco5v6*)
8325       # Note: We can NOT use -z defs as we might desire, because we do not
8326       # link with -lc, and that would cause any symbols used from libc to
8327       # always be unresolved, which means just about no library would
8328       # ever link correctly.  If we're not using GNU ld we use -z text
8329       # though, which does catch some bad symbols but isn't as heavy-handed
8330       # as -z defs.
8331       no_undefined_flag='${wl}-z,text'
8332       allow_undefined_flag='${wl}-z,nodefs'
8333       archive_cmds_need_lc=no
8334       hardcode_shlibpath_var=no
8335       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8336       hardcode_libdir_separator=':'
8337       link_all_deplibs=yes
8338       export_dynamic_flag_spec='${wl}-Bexport'
8339       runpath_var='LD_RUN_PATH'
8340
8341       if test "$GCC" = yes; then
8342         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8343         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8344       else
8345         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8346         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8347       fi
8348       ;;
8349
8350     uts4*)
8351       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8352       hardcode_libdir_flag_spec='-L$libdir'
8353       hardcode_shlibpath_var=no
8354       ;;
8355
8356     *)
8357       ld_shlibs=no
8358       ;;
8359     esac
8360   fi
8361
8362 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8363 echo "${ECHO_T}$ld_shlibs" >&6; }
8364 test "$ld_shlibs" = no && can_build_shared=no
8365
8366 #
8367 # Do we need to explicitly link libc?
8368 #
8369 case "x$archive_cmds_need_lc" in
8370 x|xyes)
8371   # Assume -lc should be added
8372   archive_cmds_need_lc=yes
8373
8374   if test "$enable_shared" = yes && test "$GCC" = yes; then
8375     case $archive_cmds in
8376     *'~'*)
8377       # FIXME: we may have to deal with multi-command sequences.
8378       ;;
8379     '$CC '*)
8380       # Test whether the compiler implicitly links with -lc since on some
8381       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8382       # to ld, don't add -lc before -lgcc.
8383       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8384 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8385       $rm conftest*
8386       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8387
8388       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8389   (eval $ac_compile) 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } 2>conftest.err; then
8393         soname=conftest
8394         lib=conftest
8395         libobjs=conftest.$ac_objext
8396         deplibs=
8397         wl=$lt_prog_compiler_wl
8398         pic_flag=$lt_prog_compiler_pic
8399         compiler_flags=-v
8400         linker_flags=-v
8401         verstring=
8402         output_objdir=.
8403         libname=conftest
8404         lt_save_allow_undefined_flag=$allow_undefined_flag
8405         allow_undefined_flag=
8406         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8407   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }
8411         then
8412           archive_cmds_need_lc=no
8413         else
8414           archive_cmds_need_lc=yes
8415         fi
8416         allow_undefined_flag=$lt_save_allow_undefined_flag
8417       else
8418         cat conftest.err 1>&5
8419       fi
8420       $rm conftest*
8421       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8422 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8423       ;;
8424     esac
8425   fi
8426   ;;
8427 esac
8428
8429 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8430 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8431 library_names_spec=
8432 libname_spec='lib$name'
8433 soname_spec=
8434 shrext_cmds=".so"
8435 postinstall_cmds=
8436 postuninstall_cmds=
8437 finish_cmds=
8438 finish_eval=
8439 shlibpath_var=
8440 shlibpath_overrides_runpath=unknown
8441 version_type=none
8442 dynamic_linker="$host_os ld.so"
8443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8444 if test "$GCC" = yes; then
8445   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8446   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8447     # if the path contains ";" then we assume it to be the separator
8448     # otherwise default to the standard path separator (i.e. ":") - it is
8449     # assumed that no part of a normal pathname contains ";" but that should
8450     # okay in the real world where ";" in dirpaths is itself problematic.
8451     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8452   else
8453     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8454   fi
8455 else
8456   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8457 fi
8458 need_lib_prefix=unknown
8459 hardcode_into_libs=no
8460
8461 # when you set need_version to no, make sure it does not cause -set_version
8462 # flags to be left without arguments
8463 need_version=unknown
8464
8465 case $host_os in
8466 aix3*)
8467   version_type=linux
8468   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8469   shlibpath_var=LIBPATH
8470
8471   # AIX 3 has no versioning support, so we append a major version to the name.
8472   soname_spec='${libname}${release}${shared_ext}$major'
8473   ;;
8474
8475 aix4* | aix5*)
8476   version_type=linux
8477   need_lib_prefix=no
8478   need_version=no
8479   hardcode_into_libs=yes
8480   if test "$host_cpu" = ia64; then
8481     # AIX 5 supports IA64
8482     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8483     shlibpath_var=LD_LIBRARY_PATH
8484   else
8485     # With GCC up to 2.95.x, collect2 would create an import file
8486     # for dependence libraries.  The import file would start with
8487     # the line `#! .'.  This would cause the generated library to
8488     # depend on `.', always an invalid library.  This was fixed in
8489     # development snapshots of GCC prior to 3.0.
8490     case $host_os in
8491       aix4 | aix4.[01] | aix4.[01].*)
8492       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8493            echo ' yes '
8494            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8495         :
8496       else
8497         can_build_shared=no
8498       fi
8499       ;;
8500     esac
8501     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8502     # soname into executable. Probably we can add versioning support to
8503     # collect2, so additional links can be useful in future.
8504     if test "$aix_use_runtimelinking" = yes; then
8505       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8506       # instead of lib<name>.a to let people know that these are not
8507       # typical AIX shared libraries.
8508       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8509     else
8510       # We preserve .a as extension for shared libraries through AIX4.2
8511       # and later when we are not doing run time linking.
8512       library_names_spec='${libname}${release}.a $libname.a'
8513       soname_spec='${libname}${release}${shared_ext}$major'
8514     fi
8515     shlibpath_var=LIBPATH
8516   fi
8517   ;;
8518
8519 amigaos*)
8520   library_names_spec='$libname.ixlibrary $libname.a'
8521   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8522   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'
8523   ;;
8524
8525 beos*)
8526   library_names_spec='${libname}${shared_ext}'
8527   dynamic_linker="$host_os ld.so"
8528   shlibpath_var=LIBRARY_PATH
8529   ;;
8530
8531 bsdi[45]*)
8532   version_type=linux
8533   need_version=no
8534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8535   soname_spec='${libname}${release}${shared_ext}$major'
8536   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8537   shlibpath_var=LD_LIBRARY_PATH
8538   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8539   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8540   # the default ld.so.conf also contains /usr/contrib/lib and
8541   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8542   # libtool to hard-code these into programs
8543   ;;
8544
8545 cygwin* | mingw* | pw32*)
8546   version_type=windows
8547   shrext_cmds=".dll"
8548   need_version=no
8549   need_lib_prefix=no
8550
8551   case $GCC,$host_os in
8552   yes,cygwin* | yes,mingw* | yes,pw32*)
8553     library_names_spec='$libname.dll.a'
8554     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8555     postinstall_cmds='base_file=`basename \${file}`~
8556       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8557       dldir=$destdir/`dirname \$dlpath`~
8558       test -d \$dldir || mkdir -p \$dldir~
8559       $install_prog $dir/$dlname \$dldir/$dlname~
8560       chmod a+x \$dldir/$dlname'
8561     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8562       dlpath=$dir/\$dldll~
8563        $rm \$dlpath'
8564     shlibpath_overrides_runpath=yes
8565
8566     case $host_os in
8567     cygwin*)
8568       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8569       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8570       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8571       ;;
8572     mingw*)
8573       # MinGW DLLs use traditional 'lib' prefix
8574       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8575       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8576       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8577         # It is most probably a Windows format PATH printed by
8578         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8579         # path with ; separators, and with drive letters. We can handle the
8580         # drive letters (cygwin fileutils understands them), so leave them,
8581         # especially as we might pass files found there to a mingw objdump,
8582         # which wouldn't understand a cygwinified path. Ahh.
8583         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8584       else
8585         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8586       fi
8587       ;;
8588     pw32*)
8589       # pw32 DLLs use 'pw' prefix rather than 'lib'
8590       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8591       ;;
8592     esac
8593     ;;
8594
8595   *)
8596     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8597     ;;
8598   esac
8599   dynamic_linker='Win32 ld.exe'
8600   # FIXME: first we should search . and the directory the executable is in
8601   shlibpath_var=PATH
8602   ;;
8603
8604 darwin* | rhapsody*)
8605   dynamic_linker="$host_os dyld"
8606   version_type=darwin
8607   need_lib_prefix=no
8608   need_version=no
8609   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8610   soname_spec='${libname}${release}${major}$shared_ext'
8611   shlibpath_overrides_runpath=yes
8612   shlibpath_var=DYLD_LIBRARY_PATH
8613   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8614   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8615   if test "$GCC" = yes; then
8616     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"`
8617   else
8618     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8619   fi
8620   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8621   ;;
8622
8623 dgux*)
8624   version_type=linux
8625   need_lib_prefix=no
8626   need_version=no
8627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8628   soname_spec='${libname}${release}${shared_ext}$major'
8629   shlibpath_var=LD_LIBRARY_PATH
8630   ;;
8631
8632 freebsd1*)
8633   dynamic_linker=no
8634   ;;
8635
8636 kfreebsd*-gnu)
8637   version_type=linux
8638   need_lib_prefix=no
8639   need_version=no
8640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8641   soname_spec='${libname}${release}${shared_ext}$major'
8642   shlibpath_var=LD_LIBRARY_PATH
8643   shlibpath_overrides_runpath=no
8644   hardcode_into_libs=yes
8645   dynamic_linker='GNU ld.so'
8646   ;;
8647
8648 freebsd* | dragonfly*)
8649   # DragonFly does not have aout.  When/if they implement a new
8650   # versioning mechanism, adjust this.
8651   if test -x /usr/bin/objformat; then
8652     objformat=`/usr/bin/objformat`
8653   else
8654     case $host_os in
8655     freebsd[123]*) objformat=aout ;;
8656     *) objformat=elf ;;
8657     esac
8658   fi
8659   version_type=freebsd-$objformat
8660   case $version_type in
8661     freebsd-elf*)
8662       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8663       need_version=no
8664       need_lib_prefix=no
8665       ;;
8666     freebsd-*)
8667       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8668       need_version=yes
8669       ;;
8670   esac
8671   shlibpath_var=LD_LIBRARY_PATH
8672   case $host_os in
8673   freebsd2*)
8674     shlibpath_overrides_runpath=yes
8675     ;;
8676   freebsd3.[01]* | freebsdelf3.[01]*)
8677     shlibpath_overrides_runpath=yes
8678     hardcode_into_libs=yes
8679     ;;
8680   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8681   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8682     shlibpath_overrides_runpath=no
8683     hardcode_into_libs=yes
8684     ;;
8685   freebsd*) # from 4.6 on
8686     shlibpath_overrides_runpath=yes
8687     hardcode_into_libs=yes
8688     ;;
8689   esac
8690   ;;
8691
8692 gnu*)
8693   version_type=linux
8694   need_lib_prefix=no
8695   need_version=no
8696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8697   soname_spec='${libname}${release}${shared_ext}$major'
8698   shlibpath_var=LD_LIBRARY_PATH
8699   hardcode_into_libs=yes
8700   ;;
8701
8702 hpux9* | hpux10* | hpux11*)
8703   # Give a soname corresponding to the major version so that dld.sl refuses to
8704   # link against other versions.
8705   version_type=sunos
8706   need_lib_prefix=no
8707   need_version=no
8708   case $host_cpu in
8709   ia64*)
8710     shrext_cmds='.so'
8711     hardcode_into_libs=yes
8712     dynamic_linker="$host_os dld.so"
8713     shlibpath_var=LD_LIBRARY_PATH
8714     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8716     soname_spec='${libname}${release}${shared_ext}$major'
8717     if test "X$HPUX_IA64_MODE" = X32; then
8718       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8719     else
8720       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8721     fi
8722     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8723     ;;
8724    hppa*64*)
8725      shrext_cmds='.sl'
8726      hardcode_into_libs=yes
8727      dynamic_linker="$host_os dld.sl"
8728      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8729      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8730      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731      soname_spec='${libname}${release}${shared_ext}$major'
8732      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8733      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8734      ;;
8735    *)
8736     shrext_cmds='.sl'
8737     dynamic_linker="$host_os dld.sl"
8738     shlibpath_var=SHLIB_PATH
8739     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8740     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8741     soname_spec='${libname}${release}${shared_ext}$major'
8742     ;;
8743   esac
8744   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8745   postinstall_cmds='chmod 555 $lib'
8746   ;;
8747
8748 interix3*)
8749   version_type=linux
8750   need_lib_prefix=no
8751   need_version=no
8752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8753   soname_spec='${libname}${release}${shared_ext}$major'
8754   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8755   shlibpath_var=LD_LIBRARY_PATH
8756   shlibpath_overrides_runpath=no
8757   hardcode_into_libs=yes
8758   ;;
8759
8760 irix5* | irix6* | nonstopux*)
8761   case $host_os in
8762     nonstopux*) version_type=nonstopux ;;
8763     *)
8764         if test "$lt_cv_prog_gnu_ld" = yes; then
8765                 version_type=linux
8766         else
8767                 version_type=irix
8768         fi ;;
8769   esac
8770   need_lib_prefix=no
8771   need_version=no
8772   soname_spec='${libname}${release}${shared_ext}$major'
8773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8774   case $host_os in
8775   irix5* | nonstopux*)
8776     libsuff= shlibsuff=
8777     ;;
8778   *)
8779     case $LD in # libtool.m4 will add one of these switches to LD
8780     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8781       libsuff= shlibsuff= libmagic=32-bit;;
8782     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8783       libsuff=32 shlibsuff=N32 libmagic=N32;;
8784     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8785       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8786     *) libsuff= shlibsuff= libmagic=never-match;;
8787     esac
8788     ;;
8789   esac
8790   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8791   shlibpath_overrides_runpath=no
8792   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8793   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8794   hardcode_into_libs=yes
8795   ;;
8796
8797 # No shared lib support for Linux oldld, aout, or coff.
8798 linux*oldld* | linux*aout* | linux*coff*)
8799   dynamic_linker=no
8800   ;;
8801
8802 # This must be Linux ELF.
8803 linux*)
8804   version_type=linux
8805   need_lib_prefix=no
8806   need_version=no
8807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808   soname_spec='${libname}${release}${shared_ext}$major'
8809   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8810   shlibpath_var=LD_LIBRARY_PATH
8811   shlibpath_overrides_runpath=no
8812   # This implies no fast_install, which is unacceptable.
8813   # Some rework will be needed to allow for fast_install
8814   # before this can be enabled.
8815   hardcode_into_libs=yes
8816
8817   # Append ld.so.conf contents to the search path
8818   if test -f /etc/ld.so.conf; then
8819     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' ' '`
8820     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8821   fi
8822
8823   # We used to test for /lib/ld.so.1 and disable shared libraries on
8824   # powerpc, because MkLinux only supported shared libraries with the
8825   # GNU dynamic linker.  Since this was broken with cross compilers,
8826   # most powerpc-linux boxes support dynamic linking these days and
8827   # people can always --disable-shared, the test was removed, and we
8828   # assume the GNU/Linux dynamic linker is in use.
8829   dynamic_linker='GNU/Linux ld.so'
8830   ;;
8831
8832 knetbsd*-gnu)
8833   version_type=linux
8834   need_lib_prefix=no
8835   need_version=no
8836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8837   soname_spec='${libname}${release}${shared_ext}$major'
8838   shlibpath_var=LD_LIBRARY_PATH
8839   shlibpath_overrides_runpath=no
8840   hardcode_into_libs=yes
8841   dynamic_linker='GNU ld.so'
8842   ;;
8843
8844 netbsd*)
8845   version_type=sunos
8846   need_lib_prefix=no
8847   need_version=no
8848   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8849     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8850     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8851     dynamic_linker='NetBSD (a.out) ld.so'
8852   else
8853     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8854     soname_spec='${libname}${release}${shared_ext}$major'
8855     dynamic_linker='NetBSD ld.elf_so'
8856   fi
8857   shlibpath_var=LD_LIBRARY_PATH
8858   shlibpath_overrides_runpath=yes
8859   hardcode_into_libs=yes
8860   ;;
8861
8862 newsos6)
8863   version_type=linux
8864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8865   shlibpath_var=LD_LIBRARY_PATH
8866   shlibpath_overrides_runpath=yes
8867   ;;
8868
8869 nto-qnx*)
8870   version_type=linux
8871   need_lib_prefix=no
8872   need_version=no
8873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8874   soname_spec='${libname}${release}${shared_ext}$major'
8875   shlibpath_var=LD_LIBRARY_PATH
8876   shlibpath_overrides_runpath=yes
8877   ;;
8878
8879 openbsd*)
8880   version_type=sunos
8881   sys_lib_dlsearch_path_spec="/usr/lib"
8882   need_lib_prefix=no
8883   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8884   case $host_os in
8885     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8886     *)                         need_version=no  ;;
8887   esac
8888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8889   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8890   shlibpath_var=LD_LIBRARY_PATH
8891   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8892     case $host_os in
8893       openbsd2.[89] | openbsd2.[89].*)
8894         shlibpath_overrides_runpath=no
8895         ;;
8896       *)
8897         shlibpath_overrides_runpath=yes
8898         ;;
8899       esac
8900   else
8901     shlibpath_overrides_runpath=yes
8902   fi
8903   ;;
8904
8905 os2*)
8906   libname_spec='$name'
8907   shrext_cmds=".dll"
8908   need_lib_prefix=no
8909   library_names_spec='$libname${shared_ext} $libname.a'
8910   dynamic_linker='OS/2 ld.exe'
8911   shlibpath_var=LIBPATH
8912   ;;
8913
8914 osf3* | osf4* | osf5*)
8915   version_type=osf
8916   need_lib_prefix=no
8917   need_version=no
8918   soname_spec='${libname}${release}${shared_ext}$major'
8919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8920   shlibpath_var=LD_LIBRARY_PATH
8921   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8922   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8923   ;;
8924
8925 solaris*)
8926   version_type=linux
8927   need_lib_prefix=no
8928   need_version=no
8929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8930   soname_spec='${libname}${release}${shared_ext}$major'
8931   shlibpath_var=LD_LIBRARY_PATH
8932   shlibpath_overrides_runpath=yes
8933   hardcode_into_libs=yes
8934   # ldd complains unless libraries are executable
8935   postinstall_cmds='chmod +x $lib'
8936   ;;
8937
8938 sunos4*)
8939   version_type=sunos
8940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8941   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8942   shlibpath_var=LD_LIBRARY_PATH
8943   shlibpath_overrides_runpath=yes
8944   if test "$with_gnu_ld" = yes; then
8945     need_lib_prefix=no
8946   fi
8947   need_version=yes
8948   ;;
8949
8950 sysv4 | sysv4.3*)
8951   version_type=linux
8952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953   soname_spec='${libname}${release}${shared_ext}$major'
8954   shlibpath_var=LD_LIBRARY_PATH
8955   case $host_vendor in
8956     sni)
8957       shlibpath_overrides_runpath=no
8958       need_lib_prefix=no
8959       export_dynamic_flag_spec='${wl}-Blargedynsym'
8960       runpath_var=LD_RUN_PATH
8961       ;;
8962     siemens)
8963       need_lib_prefix=no
8964       ;;
8965     motorola)
8966       need_lib_prefix=no
8967       need_version=no
8968       shlibpath_overrides_runpath=no
8969       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8970       ;;
8971   esac
8972   ;;
8973
8974 sysv4*MP*)
8975   if test -d /usr/nec ;then
8976     version_type=linux
8977     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8978     soname_spec='$libname${shared_ext}.$major'
8979     shlibpath_var=LD_LIBRARY_PATH
8980   fi
8981   ;;
8982
8983 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8984   version_type=freebsd-elf
8985   need_lib_prefix=no
8986   need_version=no
8987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8988   soname_spec='${libname}${release}${shared_ext}$major'
8989   shlibpath_var=LD_LIBRARY_PATH
8990   hardcode_into_libs=yes
8991   if test "$with_gnu_ld" = yes; then
8992     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8993     shlibpath_overrides_runpath=no
8994   else
8995     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8996     shlibpath_overrides_runpath=yes
8997     case $host_os in
8998       sco3.2v5*)
8999         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9000         ;;
9001     esac
9002   fi
9003   sys_lib_dlsearch_path_spec='/usr/lib'
9004   ;;
9005
9006 uts4*)
9007   version_type=linux
9008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9009   soname_spec='${libname}${release}${shared_ext}$major'
9010   shlibpath_var=LD_LIBRARY_PATH
9011   ;;
9012
9013 *)
9014   dynamic_linker=no
9015   ;;
9016 esac
9017 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9018 echo "${ECHO_T}$dynamic_linker" >&6; }
9019 test "$dynamic_linker" = no && can_build_shared=no
9020
9021 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9022 if test "$GCC" = yes; then
9023   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9024 fi
9025
9026 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9027 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9028 hardcode_action=
9029 if test -n "$hardcode_libdir_flag_spec" || \
9030    test -n "$runpath_var" || \
9031    test "X$hardcode_automatic" = "Xyes" ; then
9032
9033   # We can hardcode non-existant directories.
9034   if test "$hardcode_direct" != no &&
9035      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9036      # have to relink, otherwise we might link with an installed library
9037      # when we should be linking with a yet-to-be-installed one
9038      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9039      test "$hardcode_minus_L" != no; then
9040     # Linking always hardcodes the temporary library directory.
9041     hardcode_action=relink
9042   else
9043     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9044     hardcode_action=immediate
9045   fi
9046 else
9047   # We cannot hardcode anything, or else we can only hardcode existing
9048   # directories.
9049   hardcode_action=unsupported
9050 fi
9051 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9052 echo "${ECHO_T}$hardcode_action" >&6; }
9053
9054 if test "$hardcode_action" = relink; then
9055   # Fast installation is not supported
9056   enable_fast_install=no
9057 elif test "$shlibpath_overrides_runpath" = yes ||
9058      test "$enable_shared" = no; then
9059   # Fast installation is not necessary
9060   enable_fast_install=needless
9061 fi
9062
9063 striplib=
9064 old_striplib=
9065 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9066 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9067 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9068   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9069   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9070   { echo "$as_me:$LINENO: result: yes" >&5
9071 echo "${ECHO_T}yes" >&6; }
9072 else
9073 # FIXME - insert some real tests, host_os isn't really good enough
9074   case $host_os in
9075    darwin*)
9076        if test -n "$STRIP" ; then
9077          striplib="$STRIP -x"
9078          { echo "$as_me:$LINENO: result: yes" >&5
9079 echo "${ECHO_T}yes" >&6; }
9080        else
9081   { echo "$as_me:$LINENO: result: no" >&5
9082 echo "${ECHO_T}no" >&6; }
9083 fi
9084        ;;
9085    *)
9086   { echo "$as_me:$LINENO: result: no" >&5
9087 echo "${ECHO_T}no" >&6; }
9088     ;;
9089   esac
9090 fi
9091
9092 if test "x$enable_dlopen" != xyes; then
9093   enable_dlopen=unknown
9094   enable_dlopen_self=unknown
9095   enable_dlopen_self_static=unknown
9096 else
9097   lt_cv_dlopen=no
9098   lt_cv_dlopen_libs=
9099
9100   case $host_os in
9101   beos*)
9102     lt_cv_dlopen="load_add_on"
9103     lt_cv_dlopen_libs=
9104     lt_cv_dlopen_self=yes
9105     ;;
9106
9107   mingw* | pw32*)
9108     lt_cv_dlopen="LoadLibrary"
9109     lt_cv_dlopen_libs=
9110    ;;
9111
9112   cygwin*)
9113     lt_cv_dlopen="dlopen"
9114     lt_cv_dlopen_libs=
9115    ;;
9116
9117   darwin*)
9118   # if libdl is installed we need to link against it
9119     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9122   echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124   ac_check_lib_save_LIBS=$LIBS
9125 LIBS="-ldl  $LIBS"
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h.  */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h.  */
9132
9133 /* Override any GCC internal prototype to avoid an error.
9134    Use char because int might match the return type of a GCC
9135    builtin and then its argument prototype would still apply.  */
9136 #ifdef __cplusplus
9137 extern "C"
9138 #endif
9139 char dlopen ();
9140 int
9141 main ()
9142 {
9143 return dlopen ();
9144   ;
9145   return 0;
9146 }
9147 _ACEOF
9148 rm -f conftest.$ac_objext conftest$ac_exeext
9149 if { (ac_try="$ac_link"
9150 case "(($ac_try" in
9151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9152   *) ac_try_echo=$ac_try;;
9153 esac
9154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9155   (eval "$ac_link") 2>conftest.er1
9156   ac_status=$?
9157   grep -v '^ *+' conftest.er1 >conftest.err
9158   rm -f conftest.er1
9159   cat conftest.err >&5
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); } && {
9162          test -z "$ac_c_werror_flag" ||
9163          test ! -s conftest.err
9164        } && test -s conftest$ac_exeext &&
9165        $as_test_x conftest$ac_exeext; then
9166   ac_cv_lib_dl_dlopen=yes
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171         ac_cv_lib_dl_dlopen=no
9172 fi
9173
9174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9175       conftest$ac_exeext conftest.$ac_ext
9176 LIBS=$ac_check_lib_save_LIBS
9177 fi
9178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9180 if test $ac_cv_lib_dl_dlopen = yes; then
9181   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9182 else
9183
9184     lt_cv_dlopen="dyld"
9185     lt_cv_dlopen_libs=
9186     lt_cv_dlopen_self=yes
9187
9188 fi
9189
9190    ;;
9191
9192   *)
9193     { echo "$as_me:$LINENO: checking for shl_load" >&5
9194 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9195 if test "${ac_cv_func_shl_load+set}" = set; then
9196   echo $ECHO_N "(cached) $ECHO_C" >&6
9197 else
9198   cat >conftest.$ac_ext <<_ACEOF
9199 /* confdefs.h.  */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h.  */
9204 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9205    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9206 #define shl_load innocuous_shl_load
9207
9208 /* System header to define __stub macros and hopefully few prototypes,
9209     which can conflict with char shl_load (); below.
9210     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9211     <limits.h> exists even on freestanding compilers.  */
9212
9213 #ifdef __STDC__
9214 # include <limits.h>
9215 #else
9216 # include <assert.h>
9217 #endif
9218
9219 #undef shl_load
9220
9221 /* Override any GCC internal prototype to avoid an error.
9222    Use char because int might match the return type of a GCC
9223    builtin and then its argument prototype would still apply.  */
9224 #ifdef __cplusplus
9225 extern "C"
9226 #endif
9227 char shl_load ();
9228 /* The GNU C library defines this for functions which it implements
9229     to always fail with ENOSYS.  Some functions are actually named
9230     something starting with __ and the normal name is an alias.  */
9231 #if defined __stub_shl_load || defined __stub___shl_load
9232 choke me
9233 #endif
9234
9235 int
9236 main ()
9237 {
9238 return shl_load ();
9239   ;
9240   return 0;
9241 }
9242 _ACEOF
9243 rm -f conftest.$ac_objext conftest$ac_exeext
9244 if { (ac_try="$ac_link"
9245 case "(($ac_try" in
9246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9247   *) ac_try_echo=$ac_try;;
9248 esac
9249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9250   (eval "$ac_link") 2>conftest.er1
9251   ac_status=$?
9252   grep -v '^ *+' conftest.er1 >conftest.err
9253   rm -f conftest.er1
9254   cat conftest.err >&5
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); } && {
9257          test -z "$ac_c_werror_flag" ||
9258          test ! -s conftest.err
9259        } && test -s conftest$ac_exeext &&
9260        $as_test_x conftest$ac_exeext; then
9261   ac_cv_func_shl_load=yes
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266         ac_cv_func_shl_load=no
9267 fi
9268
9269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9270       conftest$ac_exeext conftest.$ac_ext
9271 fi
9272 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9273 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9274 if test $ac_cv_func_shl_load = yes; then
9275   lt_cv_dlopen="shl_load"
9276 else
9277   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9278 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9279 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9280   echo $ECHO_N "(cached) $ECHO_C" >&6
9281 else
9282   ac_check_lib_save_LIBS=$LIBS
9283 LIBS="-ldld  $LIBS"
9284 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h.  */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h.  */
9290
9291 /* Override any GCC internal prototype to avoid an error.
9292    Use char because int might match the return type of a GCC
9293    builtin and then its argument prototype would still apply.  */
9294 #ifdef __cplusplus
9295 extern "C"
9296 #endif
9297 char shl_load ();
9298 int
9299 main ()
9300 {
9301 return shl_load ();
9302   ;
9303   return 0;
9304 }
9305 _ACEOF
9306 rm -f conftest.$ac_objext conftest$ac_exeext
9307 if { (ac_try="$ac_link"
9308 case "(($ac_try" in
9309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9310   *) ac_try_echo=$ac_try;;
9311 esac
9312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9313   (eval "$ac_link") 2>conftest.er1
9314   ac_status=$?
9315   grep -v '^ *+' conftest.er1 >conftest.err
9316   rm -f conftest.er1
9317   cat conftest.err >&5
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } && {
9320          test -z "$ac_c_werror_flag" ||
9321          test ! -s conftest.err
9322        } && test -s conftest$ac_exeext &&
9323        $as_test_x conftest$ac_exeext; then
9324   ac_cv_lib_dld_shl_load=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329         ac_cv_lib_dld_shl_load=no
9330 fi
9331
9332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9333       conftest$ac_exeext conftest.$ac_ext
9334 LIBS=$ac_check_lib_save_LIBS
9335 fi
9336 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9337 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9338 if test $ac_cv_lib_dld_shl_load = yes; then
9339   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9340 else
9341   { echo "$as_me:$LINENO: checking for dlopen" >&5
9342 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9343 if test "${ac_cv_func_dlopen+set}" = set; then
9344   echo $ECHO_N "(cached) $ECHO_C" >&6
9345 else
9346   cat >conftest.$ac_ext <<_ACEOF
9347 /* confdefs.h.  */
9348 _ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h.  */
9352 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9354 #define dlopen innocuous_dlopen
9355
9356 /* System header to define __stub macros and hopefully few prototypes,
9357     which can conflict with char dlopen (); below.
9358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359     <limits.h> exists even on freestanding compilers.  */
9360
9361 #ifdef __STDC__
9362 # include <limits.h>
9363 #else
9364 # include <assert.h>
9365 #endif
9366
9367 #undef dlopen
9368
9369 /* Override any GCC internal prototype to avoid an error.
9370    Use char because int might match the return type of a GCC
9371    builtin and then its argument prototype would still apply.  */
9372 #ifdef __cplusplus
9373 extern "C"
9374 #endif
9375 char dlopen ();
9376 /* The GNU C library defines this for functions which it implements
9377     to always fail with ENOSYS.  Some functions are actually named
9378     something starting with __ and the normal name is an alias.  */
9379 #if defined __stub_dlopen || defined __stub___dlopen
9380 choke me
9381 #endif
9382
9383 int
9384 main ()
9385 {
9386 return dlopen ();
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9393 case "(($ac_try" in
9394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395   *) ac_try_echo=$ac_try;;
9396 esac
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398   (eval "$ac_link") 2>conftest.er1
9399   ac_status=$?
9400   grep -v '^ *+' conftest.er1 >conftest.err
9401   rm -f conftest.er1
9402   cat conftest.err >&5
9403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404   (exit $ac_status); } && {
9405          test -z "$ac_c_werror_flag" ||
9406          test ! -s conftest.err
9407        } && test -s conftest$ac_exeext &&
9408        $as_test_x conftest$ac_exeext; then
9409   ac_cv_func_dlopen=yes
9410 else
9411   echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9413
9414         ac_cv_func_dlopen=no
9415 fi
9416
9417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9418       conftest$ac_exeext conftest.$ac_ext
9419 fi
9420 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9421 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9422 if test $ac_cv_func_dlopen = yes; then
9423   lt_cv_dlopen="dlopen"
9424 else
9425   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9426 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9427 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9428   echo $ECHO_N "(cached) $ECHO_C" >&6
9429 else
9430   ac_check_lib_save_LIBS=$LIBS
9431 LIBS="-ldl  $LIBS"
9432 cat >conftest.$ac_ext <<_ACEOF
9433 /* confdefs.h.  */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h.  */
9438
9439 /* Override any GCC internal prototype to avoid an error.
9440    Use char because int might match the return type of a GCC
9441    builtin and then its argument prototype would still apply.  */
9442 #ifdef __cplusplus
9443 extern "C"
9444 #endif
9445 char dlopen ();
9446 int
9447 main ()
9448 {
9449 return dlopen ();
9450   ;
9451   return 0;
9452 }
9453 _ACEOF
9454 rm -f conftest.$ac_objext conftest$ac_exeext
9455 if { (ac_try="$ac_link"
9456 case "(($ac_try" in
9457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458   *) ac_try_echo=$ac_try;;
9459 esac
9460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9461   (eval "$ac_link") 2>conftest.er1
9462   ac_status=$?
9463   grep -v '^ *+' conftest.er1 >conftest.err
9464   rm -f conftest.er1
9465   cat conftest.err >&5
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); } && {
9468          test -z "$ac_c_werror_flag" ||
9469          test ! -s conftest.err
9470        } && test -s conftest$ac_exeext &&
9471        $as_test_x conftest$ac_exeext; then
9472   ac_cv_lib_dl_dlopen=yes
9473 else
9474   echo "$as_me: failed program was:" >&5
9475 sed 's/^/| /' conftest.$ac_ext >&5
9476
9477         ac_cv_lib_dl_dlopen=no
9478 fi
9479
9480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9481       conftest$ac_exeext conftest.$ac_ext
9482 LIBS=$ac_check_lib_save_LIBS
9483 fi
9484 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9485 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9486 if test $ac_cv_lib_dl_dlopen = yes; then
9487   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9488 else
9489   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9490 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9491 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9492   echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494   ac_check_lib_save_LIBS=$LIBS
9495 LIBS="-lsvld  $LIBS"
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h.  */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h.  */
9502
9503 /* Override any GCC internal prototype to avoid an error.
9504    Use char because int might match the return type of a GCC
9505    builtin and then its argument prototype would still apply.  */
9506 #ifdef __cplusplus
9507 extern "C"
9508 #endif
9509 char dlopen ();
9510 int
9511 main ()
9512 {
9513 return dlopen ();
9514   ;
9515   return 0;
9516 }
9517 _ACEOF
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (ac_try="$ac_link"
9520 case "(($ac_try" in
9521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522   *) ac_try_echo=$ac_try;;
9523 esac
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525   (eval "$ac_link") 2>conftest.er1
9526   ac_status=$?
9527   grep -v '^ *+' conftest.er1 >conftest.err
9528   rm -f conftest.er1
9529   cat conftest.err >&5
9530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531   (exit $ac_status); } && {
9532          test -z "$ac_c_werror_flag" ||
9533          test ! -s conftest.err
9534        } && test -s conftest$ac_exeext &&
9535        $as_test_x conftest$ac_exeext; then
9536   ac_cv_lib_svld_dlopen=yes
9537 else
9538   echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9540
9541         ac_cv_lib_svld_dlopen=no
9542 fi
9543
9544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545       conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9547 fi
9548 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9549 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9550 if test $ac_cv_lib_svld_dlopen = yes; then
9551   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9552 else
9553   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9554 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9555 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9556   echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558   ac_check_lib_save_LIBS=$LIBS
9559 LIBS="-ldld  $LIBS"
9560 cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h.  */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h.  */
9566
9567 /* Override any GCC internal prototype to avoid an error.
9568    Use char because int might match the return type of a GCC
9569    builtin and then its argument prototype would still apply.  */
9570 #ifdef __cplusplus
9571 extern "C"
9572 #endif
9573 char dld_link ();
9574 int
9575 main ()
9576 {
9577 return dld_link ();
9578   ;
9579   return 0;
9580 }
9581 _ACEOF
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (ac_try="$ac_link"
9584 case "(($ac_try" in
9585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586   *) ac_try_echo=$ac_try;;
9587 esac
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589   (eval "$ac_link") 2>conftest.er1
9590   ac_status=$?
9591   grep -v '^ *+' conftest.er1 >conftest.err
9592   rm -f conftest.er1
9593   cat conftest.err >&5
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); } && {
9596          test -z "$ac_c_werror_flag" ||
9597          test ! -s conftest.err
9598        } && test -s conftest$ac_exeext &&
9599        $as_test_x conftest$ac_exeext; then
9600   ac_cv_lib_dld_dld_link=yes
9601 else
9602   echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9604
9605         ac_cv_lib_dld_dld_link=no
9606 fi
9607
9608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9609       conftest$ac_exeext conftest.$ac_ext
9610 LIBS=$ac_check_lib_save_LIBS
9611 fi
9612 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9613 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9614 if test $ac_cv_lib_dld_dld_link = yes; then
9615   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9616 fi
9617
9618
9619 fi
9620
9621
9622 fi
9623
9624
9625 fi
9626
9627
9628 fi
9629
9630
9631 fi
9632
9633     ;;
9634   esac
9635
9636   if test "x$lt_cv_dlopen" != xno; then
9637     enable_dlopen=yes
9638   else
9639     enable_dlopen=no
9640   fi
9641
9642   case $lt_cv_dlopen in
9643   dlopen)
9644     save_CPPFLAGS="$CPPFLAGS"
9645     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9646
9647     save_LDFLAGS="$LDFLAGS"
9648     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9649
9650     save_LIBS="$LIBS"
9651     LIBS="$lt_cv_dlopen_libs $LIBS"
9652
9653     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9654 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9655 if test "${lt_cv_dlopen_self+set}" = set; then
9656   echo $ECHO_N "(cached) $ECHO_C" >&6
9657 else
9658           if test "$cross_compiling" = yes; then :
9659   lt_cv_dlopen_self=cross
9660 else
9661   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9662   lt_status=$lt_dlunknown
9663   cat > conftest.$ac_ext <<EOF
9664 #line 9664 "configure"
9665 #include "confdefs.h"
9666
9667 #if HAVE_DLFCN_H
9668 #include <dlfcn.h>
9669 #endif
9670
9671 #include <stdio.h>
9672
9673 #ifdef RTLD_GLOBAL
9674 #  define LT_DLGLOBAL           RTLD_GLOBAL
9675 #else
9676 #  ifdef DL_GLOBAL
9677 #    define LT_DLGLOBAL         DL_GLOBAL
9678 #  else
9679 #    define LT_DLGLOBAL         0
9680 #  endif
9681 #endif
9682
9683 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9684    find out it does not work in some platform. */
9685 #ifndef LT_DLLAZY_OR_NOW
9686 #  ifdef RTLD_LAZY
9687 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9688 #  else
9689 #    ifdef DL_LAZY
9690 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9691 #    else
9692 #      ifdef RTLD_NOW
9693 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9694 #      else
9695 #        ifdef DL_NOW
9696 #          define LT_DLLAZY_OR_NOW      DL_NOW
9697 #        else
9698 #          define LT_DLLAZY_OR_NOW      0
9699 #        endif
9700 #      endif
9701 #    endif
9702 #  endif
9703 #endif
9704
9705 #ifdef __cplusplus
9706 extern "C" void exit (int);
9707 #endif
9708
9709 void fnord() { int i=42;}
9710 int main ()
9711 {
9712   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9713   int status = $lt_dlunknown;
9714
9715   if (self)
9716     {
9717       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9718       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9719       /* dlclose (self); */
9720     }
9721   else
9722     puts (dlerror ());
9723
9724     exit (status);
9725 }
9726 EOF
9727   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728   (eval $ac_link) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9732     (./conftest; exit; ) >&5 2>/dev/null
9733     lt_status=$?
9734     case x$lt_status in
9735       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9736       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9737       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9738     esac
9739   else :
9740     # compilation failed
9741     lt_cv_dlopen_self=no
9742   fi
9743 fi
9744 rm -fr conftest*
9745
9746
9747 fi
9748 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9749 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9750
9751     if test "x$lt_cv_dlopen_self" = xyes; then
9752       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9753       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9754 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9755 if test "${lt_cv_dlopen_self_static+set}" = set; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758           if test "$cross_compiling" = yes; then :
9759   lt_cv_dlopen_self_static=cross
9760 else
9761   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9762   lt_status=$lt_dlunknown
9763   cat > conftest.$ac_ext <<EOF
9764 #line 9764 "configure"
9765 #include "confdefs.h"
9766
9767 #if HAVE_DLFCN_H
9768 #include <dlfcn.h>
9769 #endif
9770
9771 #include <stdio.h>
9772
9773 #ifdef RTLD_GLOBAL
9774 #  define LT_DLGLOBAL           RTLD_GLOBAL
9775 #else
9776 #  ifdef DL_GLOBAL
9777 #    define LT_DLGLOBAL         DL_GLOBAL
9778 #  else
9779 #    define LT_DLGLOBAL         0
9780 #  endif
9781 #endif
9782
9783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9784    find out it does not work in some platform. */
9785 #ifndef LT_DLLAZY_OR_NOW
9786 #  ifdef RTLD_LAZY
9787 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9788 #  else
9789 #    ifdef DL_LAZY
9790 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9791 #    else
9792 #      ifdef RTLD_NOW
9793 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9794 #      else
9795 #        ifdef DL_NOW
9796 #          define LT_DLLAZY_OR_NOW      DL_NOW
9797 #        else
9798 #          define LT_DLLAZY_OR_NOW      0
9799 #        endif
9800 #      endif
9801 #    endif
9802 #  endif
9803 #endif
9804
9805 #ifdef __cplusplus
9806 extern "C" void exit (int);
9807 #endif
9808
9809 void fnord() { int i=42;}
9810 int main ()
9811 {
9812   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9813   int status = $lt_dlunknown;
9814
9815   if (self)
9816     {
9817       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9818       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9819       /* dlclose (self); */
9820     }
9821   else
9822     puts (dlerror ());
9823
9824     exit (status);
9825 }
9826 EOF
9827   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828   (eval $ac_link) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9832     (./conftest; exit; ) >&5 2>/dev/null
9833     lt_status=$?
9834     case x$lt_status in
9835       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9836       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9837       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9838     esac
9839   else :
9840     # compilation failed
9841     lt_cv_dlopen_self_static=no
9842   fi
9843 fi
9844 rm -fr conftest*
9845
9846
9847 fi
9848 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9849 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9850     fi
9851
9852     CPPFLAGS="$save_CPPFLAGS"
9853     LDFLAGS="$save_LDFLAGS"
9854     LIBS="$save_LIBS"
9855     ;;
9856   esac
9857
9858   case $lt_cv_dlopen_self in
9859   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9860   *) enable_dlopen_self=unknown ;;
9861   esac
9862
9863   case $lt_cv_dlopen_self_static in
9864   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9865   *) enable_dlopen_self_static=unknown ;;
9866   esac
9867 fi
9868
9869
9870 # Report which library types will actually be built
9871 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9872 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9873 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9874 echo "${ECHO_T}$can_build_shared" >&6; }
9875
9876 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9877 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9878 test "$can_build_shared" = "no" && enable_shared=no
9879
9880 # On AIX, shared libraries and static libraries use the same namespace, and
9881 # are all built from PIC.
9882 case $host_os in
9883 aix3*)
9884   test "$enable_shared" = yes && enable_static=no
9885   if test -n "$RANLIB"; then
9886     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9887     postinstall_cmds='$RANLIB $lib'
9888   fi
9889   ;;
9890
9891 aix4* | aix5*)
9892   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9893     test "$enable_shared" = yes && enable_static=no
9894   fi
9895     ;;
9896 esac
9897 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9898 echo "${ECHO_T}$enable_shared" >&6; }
9899
9900 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9901 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9902 # Make sure either enable_shared or enable_static is yes.
9903 test "$enable_shared" = yes || enable_static=yes
9904 { echo "$as_me:$LINENO: result: $enable_static" >&5
9905 echo "${ECHO_T}$enable_static" >&6; }
9906
9907 # The else clause should only fire when bootstrapping the
9908 # libtool distribution, otherwise you forgot to ship ltmain.sh
9909 # with your package, and you will get complaints that there are
9910 # no rules to generate ltmain.sh.
9911 if test -f "$ltmain"; then
9912   # See if we are running on zsh, and set the options which allow our commands through
9913   # without removal of \ escapes.
9914   if test -n "${ZSH_VERSION+set}" ; then
9915     setopt NO_GLOB_SUBST
9916   fi
9917   # Now quote all the things that may contain metacharacters while being
9918   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9919   # variables and quote the copies for generation of the libtool script.
9920   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9921     SED SHELL STRIP \
9922     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9923     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9924     deplibs_check_method reload_flag reload_cmds need_locks \
9925     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9926     lt_cv_sys_global_symbol_to_c_name_address \
9927     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9928     old_postinstall_cmds old_postuninstall_cmds \
9929     compiler \
9930     CC \
9931     LD \
9932     lt_prog_compiler_wl \
9933     lt_prog_compiler_pic \
9934     lt_prog_compiler_static \
9935     lt_prog_compiler_no_builtin_flag \
9936     export_dynamic_flag_spec \
9937     thread_safe_flag_spec \
9938     whole_archive_flag_spec \
9939     enable_shared_with_static_runtimes \
9940     old_archive_cmds \
9941     old_archive_from_new_cmds \
9942     predep_objects \
9943     postdep_objects \
9944     predeps \
9945     postdeps \
9946     compiler_lib_search_path \
9947     archive_cmds \
9948     archive_expsym_cmds \
9949     postinstall_cmds \
9950     postuninstall_cmds \
9951     old_archive_from_expsyms_cmds \
9952     allow_undefined_flag \
9953     no_undefined_flag \
9954     export_symbols_cmds \
9955     hardcode_libdir_flag_spec \
9956     hardcode_libdir_flag_spec_ld \
9957     hardcode_libdir_separator \
9958     hardcode_automatic \
9959     module_cmds \
9960     module_expsym_cmds \
9961     lt_cv_prog_compiler_c_o \
9962     exclude_expsyms \
9963     include_expsyms; do
9964
9965     case $var in
9966     old_archive_cmds | \
9967     old_archive_from_new_cmds | \
9968     archive_cmds | \
9969     archive_expsym_cmds | \
9970     module_cmds | \
9971     module_expsym_cmds | \
9972     old_archive_from_expsyms_cmds | \
9973     export_symbols_cmds | \
9974     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9975     postinstall_cmds | postuninstall_cmds | \
9976     old_postinstall_cmds | old_postuninstall_cmds | \
9977     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9978       # Double-quote double-evaled strings.
9979       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9980       ;;
9981     *)
9982       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9983       ;;
9984     esac
9985   done
9986
9987   case $lt_echo in
9988   *'\$0 --fallback-echo"')
9989     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9990     ;;
9991   esac
9992
9993 cfgfile="${ofile}T"
9994   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9995   $rm -f "$cfgfile"
9996   { echo "$as_me:$LINENO: creating $ofile" >&5
9997 echo "$as_me: creating $ofile" >&6;}
9998
9999   cat <<__EOF__ >> "$cfgfile"
10000 #! $SHELL
10001
10002 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10003 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10004 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10005 #
10006 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10007 # Free Software Foundation, Inc.
10008 #
10009 # This file is part of GNU Libtool:
10010 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10011 #
10012 # This program is free software; you can redistribute it and/or modify
10013 # it under the terms of the GNU General Public License as published by
10014 # the Free Software Foundation; either version 2 of the License, or
10015 # (at your option) any later version.
10016 #
10017 # This program is distributed in the hope that it will be useful, but
10018 # WITHOUT ANY WARRANTY; without even the implied warranty of
10019 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10020 # General Public License for more details.
10021 #
10022 # You should have received a copy of the GNU General Public License
10023 # along with this program; if not, write to the Free Software
10024 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10025 #
10026 # As a special exception to the GNU General Public License, if you
10027 # distribute this file as part of a program that contains a
10028 # configuration script generated by Autoconf, you may include it under
10029 # the same distribution terms that you use for the rest of that program.
10030
10031 # A sed program that does not truncate output.
10032 SED=$lt_SED
10033
10034 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10035 Xsed="$SED -e 1s/^X//"
10036
10037 # The HP-UX ksh and POSIX shell print the target directory to stdout
10038 # if CDPATH is set.
10039 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10040
10041 # The names of the tagged configurations supported by this script.
10042 available_tags=
10043
10044 # ### BEGIN LIBTOOL CONFIG
10045
10046 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10047
10048 # Shell to use when invoking shell scripts.
10049 SHELL=$lt_SHELL
10050
10051 # Whether or not to build shared libraries.
10052 build_libtool_libs=$enable_shared
10053
10054 # Whether or not to build static libraries.
10055 build_old_libs=$enable_static
10056
10057 # Whether or not to add -lc for building shared libraries.
10058 build_libtool_need_lc=$archive_cmds_need_lc
10059
10060 # Whether or not to disallow shared libs when runtime libs are static
10061 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10062
10063 # Whether or not to optimize for fast installation.
10064 fast_install=$enable_fast_install
10065
10066 # The host system.
10067 host_alias=$host_alias
10068 host=$host
10069 host_os=$host_os
10070
10071 # The build system.
10072 build_alias=$build_alias
10073 build=$build
10074 build_os=$build_os
10075
10076 # An echo program that does not interpret backslashes.
10077 echo=$lt_echo
10078
10079 # The archiver.
10080 AR=$lt_AR
10081 AR_FLAGS=$lt_AR_FLAGS
10082
10083 # A C compiler.
10084 LTCC=$lt_LTCC
10085
10086 # LTCC compiler flags.
10087 LTCFLAGS=$lt_LTCFLAGS
10088
10089 # A language-specific compiler.
10090 CC=$lt_compiler
10091
10092 # Is the compiler the GNU C compiler?
10093 with_gcc=$GCC
10094
10095 # An ERE matcher.
10096 EGREP=$lt_EGREP
10097
10098 # The linker used to build libraries.
10099 LD=$lt_LD
10100
10101 # Whether we need hard or soft links.
10102 LN_S=$lt_LN_S
10103
10104 # A BSD-compatible nm program.
10105 NM=$lt_NM
10106
10107 # A symbol stripping program
10108 STRIP=$lt_STRIP
10109
10110 # Used to examine libraries when file_magic_cmd begins "file"
10111 MAGIC_CMD=$MAGIC_CMD
10112
10113 # Used on cygwin: DLL creation program.
10114 DLLTOOL="$DLLTOOL"
10115
10116 # Used on cygwin: object dumper.
10117 OBJDUMP="$OBJDUMP"
10118
10119 # Used on cygwin: assembler.
10120 AS="$AS"
10121
10122 # The name of the directory that contains temporary libtool files.
10123 objdir=$objdir
10124
10125 # How to create reloadable object files.
10126 reload_flag=$lt_reload_flag
10127 reload_cmds=$lt_reload_cmds
10128
10129 # How to pass a linker flag through the compiler.
10130 wl=$lt_lt_prog_compiler_wl
10131
10132 # Object file suffix (normally "o").
10133 objext="$ac_objext"
10134
10135 # Old archive suffix (normally "a").
10136 libext="$libext"
10137
10138 # Shared library suffix (normally ".so").
10139 shrext_cmds='$shrext_cmds'
10140
10141 # Executable file suffix (normally "").
10142 exeext="$exeext"
10143
10144 # Additional compiler flags for building library objects.
10145 pic_flag=$lt_lt_prog_compiler_pic
10146 pic_mode=$pic_mode
10147
10148 # What is the maximum length of a command?
10149 max_cmd_len=$lt_cv_sys_max_cmd_len
10150
10151 # Does compiler simultaneously support -c and -o options?
10152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10153
10154 # Must we lock files when doing compilation?
10155 need_locks=$lt_need_locks
10156
10157 # Do we need the lib prefix for modules?
10158 need_lib_prefix=$need_lib_prefix
10159
10160 # Do we need a version for libraries?
10161 need_version=$need_version
10162
10163 # Whether dlopen is supported.
10164 dlopen_support=$enable_dlopen
10165
10166 # Whether dlopen of programs is supported.
10167 dlopen_self=$enable_dlopen_self
10168
10169 # Whether dlopen of statically linked programs is supported.
10170 dlopen_self_static=$enable_dlopen_self_static
10171
10172 # Compiler flag to prevent dynamic linking.
10173 link_static_flag=$lt_lt_prog_compiler_static
10174
10175 # Compiler flag to turn off builtin functions.
10176 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10177
10178 # Compiler flag to allow reflexive dlopens.
10179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10180
10181 # Compiler flag to generate shared objects directly from archives.
10182 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10183
10184 # Compiler flag to generate thread-safe objects.
10185 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10186
10187 # Library versioning type.
10188 version_type=$version_type
10189
10190 # Format of library name prefix.
10191 libname_spec=$lt_libname_spec
10192
10193 # List of archive names.  First name is the real one, the rest are links.
10194 # The last name is the one that the linker finds with -lNAME.
10195 library_names_spec=$lt_library_names_spec
10196
10197 # The coded name of the library, if different from the real name.
10198 soname_spec=$lt_soname_spec
10199
10200 # Commands used to build and install an old-style archive.
10201 RANLIB=$lt_RANLIB
10202 old_archive_cmds=$lt_old_archive_cmds
10203 old_postinstall_cmds=$lt_old_postinstall_cmds
10204 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10205
10206 # Create an old-style archive from a shared archive.
10207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10208
10209 # Create a temporary old-style archive to link instead of a shared archive.
10210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10211
10212 # Commands used to build and install a shared archive.
10213 archive_cmds=$lt_archive_cmds
10214 archive_expsym_cmds=$lt_archive_expsym_cmds
10215 postinstall_cmds=$lt_postinstall_cmds
10216 postuninstall_cmds=$lt_postuninstall_cmds
10217
10218 # Commands used to build a loadable module (assumed same as above if empty)
10219 module_cmds=$lt_module_cmds
10220 module_expsym_cmds=$lt_module_expsym_cmds
10221
10222 # Commands to strip libraries.
10223 old_striplib=$lt_old_striplib
10224 striplib=$lt_striplib
10225
10226 # Dependencies to place before the objects being linked to create a
10227 # shared library.
10228 predep_objects=$lt_predep_objects
10229
10230 # Dependencies to place after the objects being linked to create a
10231 # shared library.
10232 postdep_objects=$lt_postdep_objects
10233
10234 # Dependencies to place before the objects being linked to create a
10235 # shared library.
10236 predeps=$lt_predeps
10237
10238 # Dependencies to place after the objects being linked to create a
10239 # shared library.
10240 postdeps=$lt_postdeps
10241
10242 # The library search path used internally by the compiler when linking
10243 # a shared library.
10244 compiler_lib_search_path=$lt_compiler_lib_search_path
10245
10246 # Method to check whether dependent libraries are shared objects.
10247 deplibs_check_method=$lt_deplibs_check_method
10248
10249 # Command to use when deplibs_check_method == file_magic.
10250 file_magic_cmd=$lt_file_magic_cmd
10251
10252 # Flag that allows shared libraries with undefined symbols to be built.
10253 allow_undefined_flag=$lt_allow_undefined_flag
10254
10255 # Flag that forces no undefined symbols.
10256 no_undefined_flag=$lt_no_undefined_flag
10257
10258 # Commands used to finish a libtool library installation in a directory.
10259 finish_cmds=$lt_finish_cmds
10260
10261 # Same as above, but a single script fragment to be evaled but not shown.
10262 finish_eval=$lt_finish_eval
10263
10264 # Take the output of nm and produce a listing of raw symbols and C names.
10265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10266
10267 # Transform the output of nm in a proper C declaration
10268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10269
10270 # Transform the output of nm in a C name address pair
10271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10272
10273 # This is the shared library runtime path variable.
10274 runpath_var=$runpath_var
10275
10276 # This is the shared library path variable.
10277 shlibpath_var=$shlibpath_var
10278
10279 # Is shlibpath searched before the hard-coded library search path?
10280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10281
10282 # How to hardcode a shared library path into an executable.
10283 hardcode_action=$hardcode_action
10284
10285 # Whether we should hardcode library paths into libraries.
10286 hardcode_into_libs=$hardcode_into_libs
10287
10288 # Flag to hardcode \$libdir into a binary during linking.
10289 # This must work even if \$libdir does not exist.
10290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10291
10292 # If ld is used when linking, flag to hardcode \$libdir into
10293 # a binary during linking. This must work even if \$libdir does
10294 # not exist.
10295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10296
10297 # Whether we need a single -rpath flag with a separated argument.
10298 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10299
10300 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10301 # resulting binary.
10302 hardcode_direct=$hardcode_direct
10303
10304 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10305 # resulting binary.
10306 hardcode_minus_L=$hardcode_minus_L
10307
10308 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10309 # the resulting binary.
10310 hardcode_shlibpath_var=$hardcode_shlibpath_var
10311
10312 # Set to yes if building a shared library automatically hardcodes DIR into the library
10313 # and all subsequent libraries and executables linked against it.
10314 hardcode_automatic=$hardcode_automatic
10315
10316 # Variables whose values should be saved in libtool wrapper scripts and
10317 # restored at relink time.
10318 variables_saved_for_relink="$variables_saved_for_relink"
10319
10320 # Whether libtool must link a program against all its dependency libraries.
10321 link_all_deplibs=$link_all_deplibs
10322
10323 # Compile-time system search path for libraries
10324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10325
10326 # Run-time system search path for libraries
10327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10328
10329 # Fix the shell variable \$srcfile for the compiler.
10330 fix_srcfile_path="$fix_srcfile_path"
10331
10332 # Set to yes if exported symbols are required.
10333 always_export_symbols=$always_export_symbols
10334
10335 # The commands to list exported symbols.
10336 export_symbols_cmds=$lt_export_symbols_cmds
10337
10338 # The commands to extract the exported symbol list from a shared archive.
10339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10340
10341 # Symbols that should not be listed in the preloaded symbols.
10342 exclude_expsyms=$lt_exclude_expsyms
10343
10344 # Symbols that must always be exported.
10345 include_expsyms=$lt_include_expsyms
10346
10347 # ### END LIBTOOL CONFIG
10348
10349 __EOF__
10350
10351
10352   case $host_os in
10353   aix3*)
10354     cat <<\EOF >> "$cfgfile"
10355
10356 # AIX sometimes has problems with the GCC collect2 program.  For some
10357 # reason, if we set the COLLECT_NAMES environment variable, the problems
10358 # vanish in a puff of smoke.
10359 if test "X${COLLECT_NAMES+set}" != Xset; then
10360   COLLECT_NAMES=
10361   export COLLECT_NAMES
10362 fi
10363 EOF
10364     ;;
10365   esac
10366
10367   # We use sed instead of cat because bash on DJGPP gets confused if
10368   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10369   # text mode, it properly converts lines to CR/LF.  This bash problem
10370   # is reportedly fixed, but why not run on old versions too?
10371   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10372
10373   mv -f "$cfgfile" "$ofile" || \
10374     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10375   chmod +x "$ofile"
10376
10377 else
10378   # If there is no Makefile yet, we rely on a make rule to execute
10379   # `config.status --recheck' to rerun these tests and create the
10380   # libtool script then.
10381   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10382   if test -f "$ltmain_in"; then
10383     test -f Makefile && make "$ltmain"
10384   fi
10385 fi
10386
10387
10388 ac_ext=c
10389 ac_cpp='$CPP $CPPFLAGS'
10390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10393
10394 CC="$lt_save_CC"
10395
10396
10397 # Check whether --with-tags was given.
10398 if test "${with_tags+set}" = set; then
10399   withval=$with_tags; tagnames="$withval"
10400 fi
10401
10402
10403 if test -f "$ltmain" && test -n "$tagnames"; then
10404   if test ! -f "${ofile}"; then
10405     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10406 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10407   fi
10408
10409   if test -z "$LTCC"; then
10410     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10411     if test -z "$LTCC"; then
10412       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10413 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10414     else
10415       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10416 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10417     fi
10418   fi
10419   if test -z "$LTCFLAGS"; then
10420     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10421   fi
10422
10423   # Extract list of available tagged configurations in $ofile.
10424   # Note that this assumes the entire list is on one line.
10425   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10426
10427   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10428   for tagname in $tagnames; do
10429     IFS="$lt_save_ifs"
10430     # Check whether tagname contains only valid characters
10431     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10432     "") ;;
10433     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10434 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10435    { (exit 1); exit 1; }; }
10436         ;;
10437     esac
10438
10439     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10440     then
10441       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10442 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10443    { (exit 1); exit 1; }; }
10444     fi
10445
10446     # Update the list of available tags.
10447     if test -n "$tagname"; then
10448       echo appending configuration tag \"$tagname\" to $ofile
10449
10450       case $tagname in
10451       CXX)
10452         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10453             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10454             (test "X$CXX" != "Xg++"))) ; then
10455           ac_ext=cpp
10456 ac_cpp='$CXXCPP $CPPFLAGS'
10457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10460
10461
10462
10463
10464 archive_cmds_need_lc_CXX=no
10465 allow_undefined_flag_CXX=
10466 always_export_symbols_CXX=no
10467 archive_expsym_cmds_CXX=
10468 export_dynamic_flag_spec_CXX=
10469 hardcode_direct_CXX=no
10470 hardcode_libdir_flag_spec_CXX=
10471 hardcode_libdir_flag_spec_ld_CXX=
10472 hardcode_libdir_separator_CXX=
10473 hardcode_minus_L_CXX=no
10474 hardcode_shlibpath_var_CXX=unsupported
10475 hardcode_automatic_CXX=no
10476 module_cmds_CXX=
10477 module_expsym_cmds_CXX=
10478 link_all_deplibs_CXX=unknown
10479 old_archive_cmds_CXX=$old_archive_cmds
10480 no_undefined_flag_CXX=
10481 whole_archive_flag_spec_CXX=
10482 enable_shared_with_static_runtimes_CXX=no
10483
10484 # Dependencies to place before and after the object being linked:
10485 predep_objects_CXX=
10486 postdep_objects_CXX=
10487 predeps_CXX=
10488 postdeps_CXX=
10489 compiler_lib_search_path_CXX=
10490
10491 # Source file extension for C++ test sources.
10492 ac_ext=cpp
10493
10494 # Object file extension for compiled C++ test sources.
10495 objext=o
10496 objext_CXX=$objext
10497
10498 # Code to be used in simple compile tests
10499 lt_simple_compile_test_code="int some_variable = 0;\n"
10500
10501 # Code to be used in simple link tests
10502 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10503
10504 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10505
10506 # If no C compiler was specified, use CC.
10507 LTCC=${LTCC-"$CC"}
10508
10509 # If no C compiler flags were specified, use CFLAGS.
10510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10511
10512 # Allow CC to be a program name with arguments.
10513 compiler=$CC
10514
10515
10516 # save warnings/boilerplate of simple test code
10517 ac_outfile=conftest.$ac_objext
10518 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10520 _lt_compiler_boilerplate=`cat conftest.err`
10521 $rm conftest*
10522
10523 ac_outfile=conftest.$ac_objext
10524 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10526 _lt_linker_boilerplate=`cat conftest.err`
10527 $rm conftest*
10528
10529
10530 # Allow CC to be a program name with arguments.
10531 lt_save_CC=$CC
10532 lt_save_LD=$LD
10533 lt_save_GCC=$GCC
10534 GCC=$GXX
10535 lt_save_with_gnu_ld=$with_gnu_ld
10536 lt_save_path_LD=$lt_cv_path_LD
10537 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10538   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10539 else
10540   $as_unset lt_cv_prog_gnu_ld
10541 fi
10542 if test -n "${lt_cv_path_LDCXX+set}"; then
10543   lt_cv_path_LD=$lt_cv_path_LDCXX
10544 else
10545   $as_unset lt_cv_path_LD
10546 fi
10547 test -z "${LDCXX+set}" || LD=$LDCXX
10548 CC=${CXX-"c++"}
10549 compiler=$CC
10550 compiler_CXX=$CC
10551 for cc_temp in $compiler""; do
10552   case $cc_temp in
10553     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10554     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10555     \-*) ;;
10556     *) break;;
10557   esac
10558 done
10559 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10560
10561
10562 # We don't want -fno-exception wen compiling C++ code, so set the
10563 # no_builtin_flag separately
10564 if test "$GXX" = yes; then
10565   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10566 else
10567   lt_prog_compiler_no_builtin_flag_CXX=
10568 fi
10569
10570 if test "$GXX" = yes; then
10571   # Set up default GNU C++ configuration
10572
10573
10574 # Check whether --with-gnu-ld was given.
10575 if test "${with_gnu_ld+set}" = set; then
10576   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10577 else
10578   with_gnu_ld=no
10579 fi
10580
10581 ac_prog=ld
10582 if test "$GCC" = yes; then
10583   # Check if gcc -print-prog-name=ld gives a path.
10584   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10585 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10586   case $host in
10587   *-*-mingw*)
10588     # gcc leaves a trailing carriage return which upsets mingw
10589     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10590   *)
10591     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10592   esac
10593   case $ac_prog in
10594     # Accept absolute paths.
10595     [\\/]* | ?:[\\/]*)
10596       re_direlt='/[^/][^/]*/\.\./'
10597       # Canonicalize the pathname of ld
10598       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10599       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10600         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10601       done
10602       test -z "$LD" && LD="$ac_prog"
10603       ;;
10604   "")
10605     # If it fails, then pretend we aren't using GCC.
10606     ac_prog=ld
10607     ;;
10608   *)
10609     # If it is relative, then search for the first ld in PATH.
10610     with_gnu_ld=unknown
10611     ;;
10612   esac
10613 elif test "$with_gnu_ld" = yes; then
10614   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10615 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10616 else
10617   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10618 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10619 fi
10620 if test "${lt_cv_path_LD+set}" = set; then
10621   echo $ECHO_N "(cached) $ECHO_C" >&6
10622 else
10623   if test -z "$LD"; then
10624   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10625   for ac_dir in $PATH; do
10626     IFS="$lt_save_ifs"
10627     test -z "$ac_dir" && ac_dir=.
10628     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10629       lt_cv_path_LD="$ac_dir/$ac_prog"
10630       # Check to see if the program is GNU ld.  I'd rather use --version,
10631       # but apparently some variants of GNU ld only accept -v.
10632       # Break only if it was the GNU/non-GNU ld that we prefer.
10633       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10634       *GNU* | *'with BFD'*)
10635         test "$with_gnu_ld" != no && break
10636         ;;
10637       *)
10638         test "$with_gnu_ld" != yes && break
10639         ;;
10640       esac
10641     fi
10642   done
10643   IFS="$lt_save_ifs"
10644 else
10645   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10646 fi
10647 fi
10648
10649 LD="$lt_cv_path_LD"
10650 if test -n "$LD"; then
10651   { echo "$as_me:$LINENO: result: $LD" >&5
10652 echo "${ECHO_T}$LD" >&6; }
10653 else
10654   { echo "$as_me:$LINENO: result: no" >&5
10655 echo "${ECHO_T}no" >&6; }
10656 fi
10657 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10658 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10659    { (exit 1); exit 1; }; }
10660 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10661 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10662 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10663   echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10666 case `$LD -v 2>&1 </dev/null` in
10667 *GNU* | *'with BFD'*)
10668   lt_cv_prog_gnu_ld=yes
10669   ;;
10670 *)
10671   lt_cv_prog_gnu_ld=no
10672   ;;
10673 esac
10674 fi
10675 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10676 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10677 with_gnu_ld=$lt_cv_prog_gnu_ld
10678
10679
10680
10681   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10682   # archiving commands below assume that GNU ld is being used.
10683   if test "$with_gnu_ld" = yes; then
10684     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10685     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'
10686
10687     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10688     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10689
10690     # If archive_cmds runs LD, not CC, wlarc should be empty
10691     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10692     #     investigate it a little bit more. (MM)
10693     wlarc='${wl}'
10694
10695     # ancient GNU ld didn't support --whole-archive et. al.
10696     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10697         grep 'no-whole-archive' > /dev/null; then
10698       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10699     else
10700       whole_archive_flag_spec_CXX=
10701     fi
10702   else
10703     with_gnu_ld=no
10704     wlarc=
10705
10706     # A generic and very simple default shared library creation
10707     # command for GNU C++ for the case where it uses the native
10708     # linker, instead of GNU ld.  If possible, this setting should
10709     # overridden to take advantage of the native linker features on
10710     # the platform it is being used on.
10711     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10712   fi
10713
10714   # Commands to make compiler produce verbose output that lists
10715   # what "hidden" libraries, object files and flags are used when
10716   # linking a shared library.
10717   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10718
10719 else
10720   GXX=no
10721   with_gnu_ld=no
10722   wlarc=
10723 fi
10724
10725 # PORTME: fill in a description of your system's C++ link characteristics
10726 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10727 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10728 ld_shlibs_CXX=yes
10729 case $host_os in
10730   aix3*)
10731     # FIXME: insert proper C++ library support
10732     ld_shlibs_CXX=no
10733     ;;
10734   aix4* | aix5*)
10735     if test "$host_cpu" = ia64; then
10736       # On IA64, the linker does run time linking by default, so we don't
10737       # have to do anything special.
10738       aix_use_runtimelinking=no
10739       exp_sym_flag='-Bexport'
10740       no_entry_flag=""
10741     else
10742       aix_use_runtimelinking=no
10743
10744       # Test if we are trying to use run time linking or normal
10745       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10746       # need to do runtime linking.
10747       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10748         for ld_flag in $LDFLAGS; do
10749           case $ld_flag in
10750           *-brtl*)
10751             aix_use_runtimelinking=yes
10752             break
10753             ;;
10754           esac
10755         done
10756         ;;
10757       esac
10758
10759       exp_sym_flag='-bexport'
10760       no_entry_flag='-bnoentry'
10761     fi
10762
10763     # When large executables or shared objects are built, AIX ld can
10764     # have problems creating the table of contents.  If linking a library
10765     # or program results in "error TOC overflow" add -mminimal-toc to
10766     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10767     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10768
10769     archive_cmds_CXX=''
10770     hardcode_direct_CXX=yes
10771     hardcode_libdir_separator_CXX=':'
10772     link_all_deplibs_CXX=yes
10773
10774     if test "$GXX" = yes; then
10775       case $host_os in aix4.[012]|aix4.[012].*)
10776       # We only want to do this on AIX 4.2 and lower, the check
10777       # below for broken collect2 doesn't work under 4.3+
10778         collect2name=`${CC} -print-prog-name=collect2`
10779         if test -f "$collect2name" && \
10780            strings "$collect2name" | grep resolve_lib_name >/dev/null
10781         then
10782           # We have reworked collect2
10783           hardcode_direct_CXX=yes
10784         else
10785           # We have old collect2
10786           hardcode_direct_CXX=unsupported
10787           # It fails to find uninstalled libraries when the uninstalled
10788           # path is not listed in the libpath.  Setting hardcode_minus_L
10789           # to unsupported forces relinking
10790           hardcode_minus_L_CXX=yes
10791           hardcode_libdir_flag_spec_CXX='-L$libdir'
10792           hardcode_libdir_separator_CXX=
10793         fi
10794         ;;
10795       esac
10796       shared_flag='-shared'
10797       if test "$aix_use_runtimelinking" = yes; then
10798         shared_flag="$shared_flag "'${wl}-G'
10799       fi
10800     else
10801       # not using gcc
10802       if test "$host_cpu" = ia64; then
10803         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10804         # chokes on -Wl,-G. The following line is correct:
10805         shared_flag='-G'
10806       else
10807         if test "$aix_use_runtimelinking" = yes; then
10808           shared_flag='${wl}-G'
10809         else
10810           shared_flag='${wl}-bM:SRE'
10811         fi
10812       fi
10813     fi
10814
10815     # It seems that -bexpall does not export symbols beginning with
10816     # underscore (_), so it is better to generate a list of symbols to export.
10817     always_export_symbols_CXX=yes
10818     if test "$aix_use_runtimelinking" = yes; then
10819       # Warning - without using the other runtime loading flags (-brtl),
10820       # -berok will link without error, but may produce a broken library.
10821       allow_undefined_flag_CXX='-berok'
10822       # Determine the default libpath from the value encoded in an empty executable.
10823       cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829
10830 int
10831 main ()
10832 {
10833
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 rm -f conftest.$ac_objext conftest$ac_exeext
10839 if { (ac_try="$ac_link"
10840 case "(($ac_try" in
10841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842   *) ac_try_echo=$ac_try;;
10843 esac
10844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10845   (eval "$ac_link") 2>conftest.er1
10846   ac_status=$?
10847   grep -v '^ *+' conftest.er1 >conftest.err
10848   rm -f conftest.er1
10849   cat conftest.err >&5
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); } && {
10852          test -z "$ac_cxx_werror_flag" ||
10853          test ! -s conftest.err
10854        } && test -s conftest$ac_exeext &&
10855        $as_test_x conftest$ac_exeext; then
10856
10857 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10858 }'`
10859 # Check for a 64-bit object if we didn't find anything.
10860 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; }
10861 }'`; fi
10862 else
10863   echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866
10867 fi
10868
10869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10870       conftest$ac_exeext conftest.$ac_ext
10871 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10872
10873       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10874
10875       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"
10876      else
10877       if test "$host_cpu" = ia64; then
10878         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10879         allow_undefined_flag_CXX="-z nodefs"
10880         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"
10881       else
10882         # Determine the default libpath from the value encoded in an empty executable.
10883         cat >conftest.$ac_ext <<_ACEOF
10884 /* confdefs.h.  */
10885 _ACEOF
10886 cat confdefs.h >>conftest.$ac_ext
10887 cat >>conftest.$ac_ext <<_ACEOF
10888 /* end confdefs.h.  */
10889
10890 int
10891 main ()
10892 {
10893
10894   ;
10895   return 0;
10896 }
10897 _ACEOF
10898 rm -f conftest.$ac_objext conftest$ac_exeext
10899 if { (ac_try="$ac_link"
10900 case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905   (eval "$ac_link") 2>conftest.er1
10906   ac_status=$?
10907   grep -v '^ *+' conftest.er1 >conftest.err
10908   rm -f conftest.er1
10909   cat conftest.err >&5
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); } && {
10912          test -z "$ac_cxx_werror_flag" ||
10913          test ! -s conftest.err
10914        } && test -s conftest$ac_exeext &&
10915        $as_test_x conftest$ac_exeext; then
10916
10917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10918 }'`
10919 # Check for a 64-bit object if we didn't find anything.
10920 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; }
10921 }'`; fi
10922 else
10923   echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10925
10926
10927 fi
10928
10929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10930       conftest$ac_exeext conftest.$ac_ext
10931 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10932
10933         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10934         # Warning - without using the other run time loading flags,
10935         # -berok will link without error, but may produce a broken library.
10936         no_undefined_flag_CXX=' ${wl}-bernotok'
10937         allow_undefined_flag_CXX=' ${wl}-berok'
10938         # Exported symbols can be pulled into shared objects from archives
10939         whole_archive_flag_spec_CXX='$convenience'
10940         archive_cmds_need_lc_CXX=yes
10941         # This is similar to how AIX traditionally builds its shared libraries.
10942         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'
10943       fi
10944     fi
10945     ;;
10946
10947   beos*)
10948     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10949       allow_undefined_flag_CXX=unsupported
10950       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10951       # support --undefined.  This deserves some investigation.  FIXME
10952       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10953     else
10954       ld_shlibs_CXX=no
10955     fi
10956     ;;
10957
10958   chorus*)
10959     case $cc_basename in
10960       *)
10961         # FIXME: insert proper C++ library support
10962         ld_shlibs_CXX=no
10963         ;;
10964     esac
10965     ;;
10966
10967   cygwin* | mingw* | pw32*)
10968     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10969     # as there is no search path for DLLs.
10970     hardcode_libdir_flag_spec_CXX='-L$libdir'
10971     allow_undefined_flag_CXX=unsupported
10972     always_export_symbols_CXX=no
10973     enable_shared_with_static_runtimes_CXX=yes
10974
10975     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10976       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'
10977       # If the export-symbols file already is a .def file (1st line
10978       # is EXPORTS), use it as is; otherwise, prepend...
10979       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10980         cp $export_symbols $output_objdir/$soname.def;
10981       else
10982         echo EXPORTS > $output_objdir/$soname.def;
10983         cat $export_symbols >> $output_objdir/$soname.def;
10984       fi~
10985       $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'
10986     else
10987       ld_shlibs_CXX=no
10988     fi
10989   ;;
10990       darwin* | rhapsody*)
10991         case $host_os in
10992         rhapsody* | darwin1.[012])
10993          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10994          ;;
10995        *) # Darwin 1.3 on
10996          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10997            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10998          else
10999            case ${MACOSX_DEPLOYMENT_TARGET} in
11000              10.[012])
11001                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11002                ;;
11003              10.*)
11004                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11005                ;;
11006            esac
11007          fi
11008          ;;
11009         esac
11010       archive_cmds_need_lc_CXX=no
11011       hardcode_direct_CXX=no
11012       hardcode_automatic_CXX=yes
11013       hardcode_shlibpath_var_CXX=unsupported
11014       whole_archive_flag_spec_CXX=''
11015       link_all_deplibs_CXX=yes
11016
11017     if test "$GXX" = yes ; then
11018       lt_int_apple_cc_single_mod=no
11019       output_verbose_link_cmd='echo'
11020       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11021        lt_int_apple_cc_single_mod=yes
11022       fi
11023       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11024        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11025       else
11026           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'
11027         fi
11028         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11029         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11030           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11031             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}'
11032           else
11033             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}'
11034           fi
11035             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}'
11036       else
11037       case $cc_basename in
11038         xlc*)
11039          output_verbose_link_cmd='echo'
11040           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'
11041           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11042           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11043           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}'
11044           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}'
11045           ;;
11046        *)
11047          ld_shlibs_CXX=no
11048           ;;
11049       esac
11050       fi
11051         ;;
11052
11053   dgux*)
11054     case $cc_basename in
11055       ec++*)
11056         # FIXME: insert proper C++ library support
11057         ld_shlibs_CXX=no
11058         ;;
11059       ghcx*)
11060         # Green Hills C++ Compiler
11061         # FIXME: insert proper C++ library support
11062         ld_shlibs_CXX=no
11063         ;;
11064       *)
11065         # FIXME: insert proper C++ library support
11066         ld_shlibs_CXX=no
11067         ;;
11068     esac
11069     ;;
11070   freebsd[12]*)
11071     # C++ shared libraries reported to be fairly broken before switch to ELF
11072     ld_shlibs_CXX=no
11073     ;;
11074   freebsd-elf*)
11075     archive_cmds_need_lc_CXX=no
11076     ;;
11077   freebsd* | kfreebsd*-gnu | dragonfly*)
11078     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11079     # conventions
11080     ld_shlibs_CXX=yes
11081     ;;
11082   gnu*)
11083     ;;
11084   hpux9*)
11085     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11086     hardcode_libdir_separator_CXX=:
11087     export_dynamic_flag_spec_CXX='${wl}-E'
11088     hardcode_direct_CXX=yes
11089     hardcode_minus_L_CXX=yes # Not in the search PATH,
11090                                 # but as the default
11091                                 # location of the library.
11092
11093     case $cc_basename in
11094     CC*)
11095       # FIXME: insert proper C++ library support
11096       ld_shlibs_CXX=no
11097       ;;
11098     aCC*)
11099       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'
11100       # Commands to make compiler produce verbose output that lists
11101       # what "hidden" libraries, object files and flags are used when
11102       # linking a shared library.
11103       #
11104       # There doesn't appear to be a way to prevent this compiler from
11105       # explicitly linking system object files so we need to strip them
11106       # from the output so that they don't get included in the library
11107       # dependencies.
11108       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'
11109       ;;
11110     *)
11111       if test "$GXX" = yes; then
11112         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'
11113       else
11114         # FIXME: insert proper C++ library support
11115         ld_shlibs_CXX=no
11116       fi
11117       ;;
11118     esac
11119     ;;
11120   hpux10*|hpux11*)
11121     if test $with_gnu_ld = no; then
11122       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11123       hardcode_libdir_separator_CXX=:
11124
11125       case $host_cpu in
11126       hppa*64*|ia64*)
11127         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11128         ;;
11129       *)
11130         export_dynamic_flag_spec_CXX='${wl}-E'
11131         ;;
11132       esac
11133     fi
11134     case $host_cpu in
11135     hppa*64*|ia64*)
11136       hardcode_direct_CXX=no
11137       hardcode_shlibpath_var_CXX=no
11138       ;;
11139     *)
11140       hardcode_direct_CXX=yes
11141       hardcode_minus_L_CXX=yes # Not in the search PATH,
11142                                               # but as the default
11143                                               # location of the library.
11144       ;;
11145     esac
11146
11147     case $cc_basename in
11148       CC*)
11149         # FIXME: insert proper C++ library support
11150         ld_shlibs_CXX=no
11151         ;;
11152       aCC*)
11153         case $host_cpu in
11154         hppa*64*)
11155           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11156           ;;
11157         ia64*)
11158           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11159           ;;
11160         *)
11161           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11162           ;;
11163         esac
11164         # Commands to make compiler produce verbose output that lists
11165         # what "hidden" libraries, object files and flags are used when
11166         # linking a shared library.
11167         #
11168         # There doesn't appear to be a way to prevent this compiler from
11169         # explicitly linking system object files so we need to strip them
11170         # from the output so that they don't get included in the library
11171         # dependencies.
11172         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'
11173         ;;
11174       *)
11175         if test "$GXX" = yes; then
11176           if test $with_gnu_ld = no; then
11177             case $host_cpu in
11178             hppa*64*)
11179               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11180               ;;
11181             ia64*)
11182               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11183               ;;
11184             *)
11185               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'
11186               ;;
11187             esac
11188           fi
11189         else
11190           # FIXME: insert proper C++ library support
11191           ld_shlibs_CXX=no
11192         fi
11193         ;;
11194     esac
11195     ;;
11196   interix3*)
11197     hardcode_direct_CXX=no
11198     hardcode_shlibpath_var_CXX=no
11199     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11200     export_dynamic_flag_spec_CXX='${wl}-E'
11201     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11202     # Instead, shared libraries are loaded at an image base (0x10000000 by
11203     # default) and relocated if they conflict, which is a slow very memory
11204     # consuming and fragmenting process.  To avoid this, we pick a random,
11205     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11206     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11207     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'
11208     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'
11209     ;;
11210   irix5* | irix6*)
11211     case $cc_basename in
11212       CC*)
11213         # SGI C++
11214         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'
11215
11216         # Archives containing C++ object files must be created using
11217         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11218         # necessary to make sure instantiated templates are included
11219         # in the archive.
11220         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11221         ;;
11222       *)
11223         if test "$GXX" = yes; then
11224           if test "$with_gnu_ld" = no; then
11225             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'
11226           else
11227             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'
11228           fi
11229         fi
11230         link_all_deplibs_CXX=yes
11231         ;;
11232     esac
11233     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11234     hardcode_libdir_separator_CXX=:
11235     ;;
11236   linux*)
11237     case $cc_basename in
11238       KCC*)
11239         # Kuck and Associates, Inc. (KAI) C++ Compiler
11240
11241         # KCC will only create a shared library if the output file
11242         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11243         # to its proper name (with version) after linking.
11244         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'
11245         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'
11246         # Commands to make compiler produce verbose output that lists
11247         # what "hidden" libraries, object files and flags are used when
11248         # linking a shared library.
11249         #
11250         # There doesn't appear to be a way to prevent this compiler from
11251         # explicitly linking system object files so we need to strip them
11252         # from the output so that they don't get included in the library
11253         # dependencies.
11254         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'
11255
11256         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11257         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11258
11259         # Archives containing C++ object files must be created using
11260         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11261         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11262         ;;
11263       icpc*)
11264         # Intel C++
11265         with_gnu_ld=yes
11266         # version 8.0 and above of icpc choke on multiply defined symbols
11267         # if we add $predep_objects and $postdep_objects, however 7.1 and
11268         # earlier do not add the objects themselves.
11269         case `$CC -V 2>&1` in
11270         *"Version 7."*)
11271           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11272           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'
11273           ;;
11274         *)  # Version 8.0 or newer
11275           tmp_idyn=
11276           case $host_cpu in
11277             ia64*) tmp_idyn=' -i_dynamic';;
11278           esac
11279           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11280           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'
11281           ;;
11282         esac
11283         archive_cmds_need_lc_CXX=no
11284         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11285         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11286         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11287         ;;
11288       pgCC*)
11289         # Portland Group C++ compiler
11290         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11291         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'
11292
11293         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11294         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11295         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'
11296         ;;
11297       cxx*)
11298         # Compaq C++
11299         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11300         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'
11301
11302         runpath_var=LD_RUN_PATH
11303         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11304         hardcode_libdir_separator_CXX=:
11305
11306         # Commands to make compiler produce verbose output that lists
11307         # what "hidden" libraries, object files and flags are used when
11308         # linking a shared library.
11309         #
11310         # There doesn't appear to be a way to prevent this compiler from
11311         # explicitly linking system object files so we need to strip them
11312         # from the output so that they don't get included in the library
11313         # dependencies.
11314         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'
11315         ;;
11316     esac
11317     ;;
11318   lynxos*)
11319     # FIXME: insert proper C++ library support
11320     ld_shlibs_CXX=no
11321     ;;
11322   m88k*)
11323     # FIXME: insert proper C++ library support
11324     ld_shlibs_CXX=no
11325     ;;
11326   mvs*)
11327     case $cc_basename in
11328       cxx*)
11329         # FIXME: insert proper C++ library support
11330         ld_shlibs_CXX=no
11331         ;;
11332       *)
11333         # FIXME: insert proper C++ library support
11334         ld_shlibs_CXX=no
11335         ;;
11336     esac
11337     ;;
11338   netbsd*)
11339     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11340       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11341       wlarc=
11342       hardcode_libdir_flag_spec_CXX='-R$libdir'
11343       hardcode_direct_CXX=yes
11344       hardcode_shlibpath_var_CXX=no
11345     fi
11346     # Workaround some broken pre-1.5 toolchains
11347     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11348     ;;
11349   openbsd2*)
11350     # C++ shared libraries are fairly broken
11351     ld_shlibs_CXX=no
11352     ;;
11353   openbsd*)
11354     hardcode_direct_CXX=yes
11355     hardcode_shlibpath_var_CXX=no
11356     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11357     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11358     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11359       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11360       export_dynamic_flag_spec_CXX='${wl}-E'
11361       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11362     fi
11363     output_verbose_link_cmd='echo'
11364     ;;
11365   osf3*)
11366     case $cc_basename in
11367       KCC*)
11368         # Kuck and Associates, Inc. (KAI) C++ Compiler
11369
11370         # KCC will only create a shared library if the output file
11371         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11372         # to its proper name (with version) after linking.
11373         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'
11374
11375         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11376         hardcode_libdir_separator_CXX=:
11377
11378         # Archives containing C++ object files must be created using
11379         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11380         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11381
11382         ;;
11383       RCC*)
11384         # Rational C++ 2.4.1
11385         # FIXME: insert proper C++ library support
11386         ld_shlibs_CXX=no
11387         ;;
11388       cxx*)
11389         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11390         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'
11391
11392         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11393         hardcode_libdir_separator_CXX=:
11394
11395         # Commands to make compiler produce verbose output that lists
11396         # what "hidden" libraries, object files and flags are used when
11397         # linking a shared library.
11398         #
11399         # There doesn't appear to be a way to prevent this compiler from
11400         # explicitly linking system object files so we need to strip them
11401         # from the output so that they don't get included in the library
11402         # dependencies.
11403         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'
11404         ;;
11405       *)
11406         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11407           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11408           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'
11409
11410           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11411           hardcode_libdir_separator_CXX=:
11412
11413           # Commands to make compiler produce verbose output that lists
11414           # what "hidden" libraries, object files and flags are used when
11415           # linking a shared library.
11416           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11417
11418         else
11419           # FIXME: insert proper C++ library support
11420           ld_shlibs_CXX=no
11421         fi
11422         ;;
11423     esac
11424     ;;
11425   osf4* | osf5*)
11426     case $cc_basename in
11427       KCC*)
11428         # Kuck and Associates, Inc. (KAI) C++ Compiler
11429
11430         # KCC will only create a shared library if the output file
11431         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11432         # to its proper name (with version) after linking.
11433         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'
11434
11435         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11436         hardcode_libdir_separator_CXX=:
11437
11438         # Archives containing C++ object files must be created using
11439         # the KAI C++ compiler.
11440         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11441         ;;
11442       RCC*)
11443         # Rational C++ 2.4.1
11444         # FIXME: insert proper C++ library support
11445         ld_shlibs_CXX=no
11446         ;;
11447       cxx*)
11448         allow_undefined_flag_CXX=' -expect_unresolved \*'
11449         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'
11450         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11451           echo "-hidden">> $lib.exp~
11452           $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~
11453           $rm $lib.exp'
11454
11455         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11456         hardcode_libdir_separator_CXX=:
11457
11458         # Commands to make compiler produce verbose output that lists
11459         # what "hidden" libraries, object files and flags are used when
11460         # linking a shared library.
11461         #
11462         # There doesn't appear to be a way to prevent this compiler from
11463         # explicitly linking system object files so we need to strip them
11464         # from the output so that they don't get included in the library
11465         # dependencies.
11466         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'
11467         ;;
11468       *)
11469         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11470           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11471          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'
11472
11473           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11474           hardcode_libdir_separator_CXX=:
11475
11476           # Commands to make compiler produce verbose output that lists
11477           # what "hidden" libraries, object files and flags are used when
11478           # linking a shared library.
11479           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11480
11481         else
11482           # FIXME: insert proper C++ library support
11483           ld_shlibs_CXX=no
11484         fi
11485         ;;
11486     esac
11487     ;;
11488   psos*)
11489     # FIXME: insert proper C++ library support
11490     ld_shlibs_CXX=no
11491     ;;
11492   sunos4*)
11493     case $cc_basename in
11494       CC*)
11495         # Sun C++ 4.x
11496         # FIXME: insert proper C++ library support
11497         ld_shlibs_CXX=no
11498         ;;
11499       lcc*)
11500         # Lucid
11501         # FIXME: insert proper C++ library support
11502         ld_shlibs_CXX=no
11503         ;;
11504       *)
11505         # FIXME: insert proper C++ library support
11506         ld_shlibs_CXX=no
11507         ;;
11508     esac
11509     ;;
11510   solaris*)
11511     case $cc_basename in
11512       CC*)
11513         # Sun C++ 4.2, 5.x and Centerline C++
11514         archive_cmds_need_lc_CXX=yes
11515         no_undefined_flag_CXX=' -zdefs'
11516         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11517         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11518         $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'
11519
11520         hardcode_libdir_flag_spec_CXX='-R$libdir'
11521         hardcode_shlibpath_var_CXX=no
11522         case $host_os in
11523           solaris2.[0-5] | solaris2.[0-5].*) ;;
11524           *)
11525             # The C++ compiler is used as linker so we must use $wl
11526             # flag to pass the commands to the underlying system
11527             # linker. We must also pass each convience library through
11528             # to the system linker between allextract/defaultextract.
11529             # The C++ compiler will combine linker options so we
11530             # cannot just pass the convience library names through
11531             # without $wl.
11532             # Supported since Solaris 2.6 (maybe 2.5.1?)
11533             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'
11534             ;;
11535         esac
11536         link_all_deplibs_CXX=yes
11537
11538         output_verbose_link_cmd='echo'
11539
11540         # Archives containing C++ object files must be created using
11541         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11542         # necessary to make sure instantiated templates are included
11543         # in the archive.
11544         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11545         ;;
11546       gcx*)
11547         # Green Hills C++ Compiler
11548         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11549
11550         # The C++ compiler must be used to create the archive.
11551         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11552         ;;
11553       *)
11554         # GNU C++ compiler with Solaris linker
11555         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11556           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11557           if $CC --version | grep -v '^2\.7' > /dev/null; then
11558             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11559             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11560                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11561
11562             # Commands to make compiler produce verbose output that lists
11563             # what "hidden" libraries, object files and flags are used when
11564             # linking a shared library.
11565             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11566           else
11567             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11568             # platform.
11569             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11570             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11571                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11572
11573             # Commands to make compiler produce verbose output that lists
11574             # what "hidden" libraries, object files and flags are used when
11575             # linking a shared library.
11576             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11577           fi
11578
11579           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11580         fi
11581         ;;
11582     esac
11583     ;;
11584   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11585     no_undefined_flag_CXX='${wl}-z,text'
11586     archive_cmds_need_lc_CXX=no
11587     hardcode_shlibpath_var_CXX=no
11588     runpath_var='LD_RUN_PATH'
11589
11590     case $cc_basename in
11591       CC*)
11592         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11593         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11594         ;;
11595       *)
11596         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11597         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11598         ;;
11599     esac
11600     ;;
11601   sysv5* | sco3.2v5* | sco5v6*)
11602     # Note: We can NOT use -z defs as we might desire, because we do not
11603     # link with -lc, and that would cause any symbols used from libc to
11604     # always be unresolved, which means just about no library would
11605     # ever link correctly.  If we're not using GNU ld we use -z text
11606     # though, which does catch some bad symbols but isn't as heavy-handed
11607     # as -z defs.
11608     # For security reasons, it is highly recommended that you always
11609     # use absolute paths for naming shared libraries, and exclude the
11610     # DT_RUNPATH tag from executables and libraries.  But doing so
11611     # requires that you compile everything twice, which is a pain.
11612     # So that behaviour is only enabled if SCOABSPATH is set to a
11613     # non-empty value in the environment.  Most likely only useful for
11614     # creating official distributions of packages.
11615     # This is a hack until libtool officially supports absolute path
11616     # names for shared libraries.
11617     no_undefined_flag_CXX='${wl}-z,text'
11618     allow_undefined_flag_CXX='${wl}-z,nodefs'
11619     archive_cmds_need_lc_CXX=no
11620     hardcode_shlibpath_var_CXX=no
11621     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11622     hardcode_libdir_separator_CXX=':'
11623     link_all_deplibs_CXX=yes
11624     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11625     runpath_var='LD_RUN_PATH'
11626
11627     case $cc_basename in
11628       CC*)
11629         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11630         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11631         ;;
11632       *)
11633         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11634         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635         ;;
11636     esac
11637     ;;
11638   tandem*)
11639     case $cc_basename in
11640       NCC*)
11641         # NonStop-UX NCC 3.20
11642         # FIXME: insert proper C++ library support
11643         ld_shlibs_CXX=no
11644         ;;
11645       *)
11646         # FIXME: insert proper C++ library support
11647         ld_shlibs_CXX=no
11648         ;;
11649     esac
11650     ;;
11651   vxworks*)
11652     # FIXME: insert proper C++ library support
11653     ld_shlibs_CXX=no
11654     ;;
11655   *)
11656     # FIXME: insert proper C++ library support
11657     ld_shlibs_CXX=no
11658     ;;
11659 esac
11660 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11661 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11662 test "$ld_shlibs_CXX" = no && can_build_shared=no
11663
11664 GCC_CXX="$GXX"
11665 LD_CXX="$LD"
11666
11667 ## CAVEAT EMPTOR:
11668 ## There is no encapsulation within the following macros, do not change
11669 ## the running order or otherwise move them around unless you know exactly
11670 ## what you are doing...
11671
11672 cat > conftest.$ac_ext <<EOF
11673 class Foo
11674 {
11675 public:
11676   Foo (void) { a = 0; }
11677 private:
11678   int a;
11679 };
11680 EOF
11681
11682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11683   (eval $ac_compile) 2>&5
11684   ac_status=$?
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); }; then
11687   # Parse the compiler output and extract the necessary
11688   # objects, libraries and library flags.
11689
11690   # Sentinel used to keep track of whether or not we are before
11691   # the conftest object file.
11692   pre_test_object_deps_done=no
11693
11694   # The `*' in the case matches for architectures that use `case' in
11695   # $output_verbose_cmd can trigger glob expansion during the loop
11696   # eval without this substitution.
11697   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11698
11699   for p in `eval $output_verbose_link_cmd`; do
11700     case $p in
11701
11702     -L* | -R* | -l*)
11703        # Some compilers place space between "-{L,R}" and the path.
11704        # Remove the space.
11705        if test $p = "-L" \
11706           || test $p = "-R"; then
11707          prev=$p
11708          continue
11709        else
11710          prev=
11711        fi
11712
11713        if test "$pre_test_object_deps_done" = no; then
11714          case $p in
11715          -L* | -R*)
11716            # Internal compiler library paths should come after those
11717            # provided the user.  The postdeps already come after the
11718            # user supplied libs so there is no need to process them.
11719            if test -z "$compiler_lib_search_path_CXX"; then
11720              compiler_lib_search_path_CXX="${prev}${p}"
11721            else
11722              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11723            fi
11724            ;;
11725          # The "-l" case would never come before the object being
11726          # linked, so don't bother handling this case.
11727          esac
11728        else
11729          if test -z "$postdeps_CXX"; then
11730            postdeps_CXX="${prev}${p}"
11731          else
11732            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11733          fi
11734        fi
11735        ;;
11736
11737     *.$objext)
11738        # This assumes that the test object file only shows up
11739        # once in the compiler output.
11740        if test "$p" = "conftest.$objext"; then
11741          pre_test_object_deps_done=yes
11742          continue
11743        fi
11744
11745        if test "$pre_test_object_deps_done" = no; then
11746          if test -z "$predep_objects_CXX"; then
11747            predep_objects_CXX="$p"
11748          else
11749            predep_objects_CXX="$predep_objects_CXX $p"
11750          fi
11751        else
11752          if test -z "$postdep_objects_CXX"; then
11753            postdep_objects_CXX="$p"
11754          else
11755            postdep_objects_CXX="$postdep_objects_CXX $p"
11756          fi
11757        fi
11758        ;;
11759
11760     *) ;; # Ignore the rest.
11761
11762     esac
11763   done
11764
11765   # Clean up.
11766   rm -f a.out a.exe
11767 else
11768   echo "libtool.m4: error: problem compiling CXX test program"
11769 fi
11770
11771 $rm -f confest.$objext
11772
11773 # PORTME: override above test on systems where it is broken
11774 case $host_os in
11775 interix3*)
11776   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11777   # hack all around it, let's just trust "g++" to DTRT.
11778   predep_objects_CXX=
11779   postdep_objects_CXX=
11780   postdeps_CXX=
11781   ;;
11782
11783 solaris*)
11784   case $cc_basename in
11785   CC*)
11786     # Adding this requires a known-good setup of shared libraries for
11787     # Sun compiler versions before 5.6, else PIC objects from an old
11788     # archive will be linked into the output, leading to subtle bugs.
11789     postdeps_CXX='-lCstd -lCrun'
11790     ;;
11791   esac
11792   ;;
11793 esac
11794
11795
11796 case " $postdeps_CXX " in
11797 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11798 esac
11799
11800 lt_prog_compiler_wl_CXX=
11801 lt_prog_compiler_pic_CXX=
11802 lt_prog_compiler_static_CXX=
11803
11804 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11805 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11806
11807   # C++ specific cases for pic, static, wl, etc.
11808   if test "$GXX" = yes; then
11809     lt_prog_compiler_wl_CXX='-Wl,'
11810     lt_prog_compiler_static_CXX='-static'
11811
11812     case $host_os in
11813     aix*)
11814       # All AIX code is PIC.
11815       if test "$host_cpu" = ia64; then
11816         # AIX 5 now supports IA64 processor
11817         lt_prog_compiler_static_CXX='-Bstatic'
11818       fi
11819       ;;
11820     amigaos*)
11821       # FIXME: we need at least 68020 code to build shared libraries, but
11822       # adding the `-m68020' flag to GCC prevents building anything better,
11823       # like `-m68040'.
11824       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11825       ;;
11826     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11827       # PIC is the default for these OSes.
11828       ;;
11829     mingw* | os2* | pw32*)
11830       # This hack is so that the source file can tell whether it is being
11831       # built for inclusion in a dll (and should export symbols for example).
11832       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11833       ;;
11834     darwin* | rhapsody*)
11835       # PIC is the default on this platform
11836       # Common symbols not allowed in MH_DYLIB files
11837       lt_prog_compiler_pic_CXX='-fno-common'
11838       ;;
11839     *djgpp*)
11840       # DJGPP does not support shared libraries at all
11841       lt_prog_compiler_pic_CXX=
11842       ;;
11843     interix3*)
11844       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11845       # Instead, we relocate shared libraries at runtime.
11846       ;;
11847     sysv4*MP*)
11848       if test -d /usr/nec; then
11849         lt_prog_compiler_pic_CXX=-Kconform_pic
11850       fi
11851       ;;
11852     hpux*)
11853       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11854       # not for PA HP-UX.
11855       case $host_cpu in
11856       hppa*64*|ia64*)
11857         ;;
11858       *)
11859         lt_prog_compiler_pic_CXX='-fPIC'
11860         ;;
11861       esac
11862       ;;
11863     *)
11864       lt_prog_compiler_pic_CXX='-fPIC'
11865       ;;
11866     esac
11867   else
11868     case $host_os in
11869       aix4* | aix5*)
11870         # All AIX code is PIC.
11871         if test "$host_cpu" = ia64; then
11872           # AIX 5 now supports IA64 processor
11873           lt_prog_compiler_static_CXX='-Bstatic'
11874         else
11875           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11876         fi
11877         ;;
11878       chorus*)
11879         case $cc_basename in
11880         cxch68*)
11881           # Green Hills C++ Compiler
11882           # _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"
11883           ;;
11884         esac
11885         ;;
11886        darwin*)
11887          # PIC is the default on this platform
11888          # Common symbols not allowed in MH_DYLIB files
11889          case $cc_basename in
11890            xlc*)
11891            lt_prog_compiler_pic_CXX='-qnocommon'
11892            lt_prog_compiler_wl_CXX='-Wl,'
11893            ;;
11894          esac
11895        ;;
11896       dgux*)
11897         case $cc_basename in
11898           ec++*)
11899             lt_prog_compiler_pic_CXX='-KPIC'
11900             ;;
11901           ghcx*)
11902             # Green Hills C++ Compiler
11903             lt_prog_compiler_pic_CXX='-pic'
11904             ;;
11905           *)
11906             ;;
11907         esac
11908         ;;
11909       freebsd* | kfreebsd*-gnu | dragonfly*)
11910         # FreeBSD uses GNU C++
11911         ;;
11912       hpux9* | hpux10* | hpux11*)
11913         case $cc_basename in
11914           CC*)
11915             lt_prog_compiler_wl_CXX='-Wl,'
11916             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11917             if test "$host_cpu" != ia64; then
11918               lt_prog_compiler_pic_CXX='+Z'
11919             fi
11920             ;;
11921           aCC*)
11922             lt_prog_compiler_wl_CXX='-Wl,'
11923             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11924             case $host_cpu in
11925             hppa*64*|ia64*)
11926               # +Z the default
11927               ;;
11928             *)
11929               lt_prog_compiler_pic_CXX='+Z'
11930               ;;
11931             esac
11932             ;;
11933           *)
11934             ;;
11935         esac
11936         ;;
11937       interix*)
11938         # This is c89, which is MS Visual C++ (no shared libs)
11939         # Anyone wants to do a port?
11940         ;;
11941       irix5* | irix6* | nonstopux*)
11942         case $cc_basename in
11943           CC*)
11944             lt_prog_compiler_wl_CXX='-Wl,'
11945             lt_prog_compiler_static_CXX='-non_shared'
11946             # CC pic flag -KPIC is the default.
11947             ;;
11948           *)
11949             ;;
11950         esac
11951         ;;
11952       linux*)
11953         case $cc_basename in
11954           KCC*)
11955             # KAI C++ Compiler
11956             lt_prog_compiler_wl_CXX='--backend -Wl,'
11957             lt_prog_compiler_pic_CXX='-fPIC'
11958             ;;
11959           icpc* | ecpc*)
11960             # Intel C++
11961             lt_prog_compiler_wl_CXX='-Wl,'
11962             lt_prog_compiler_pic_CXX='-KPIC'
11963             lt_prog_compiler_static_CXX='-static'
11964             ;;
11965           pgCC*)
11966             # Portland Group C++ compiler.
11967             lt_prog_compiler_wl_CXX='-Wl,'
11968             lt_prog_compiler_pic_CXX='-fpic'
11969             lt_prog_compiler_static_CXX='-Bstatic'
11970             ;;
11971           cxx*)
11972             # Compaq C++
11973             # Make sure the PIC flag is empty.  It appears that all Alpha
11974             # Linux and Compaq Tru64 Unix objects are PIC.
11975             lt_prog_compiler_pic_CXX=
11976             lt_prog_compiler_static_CXX='-non_shared'
11977             ;;
11978           *)
11979             ;;
11980         esac
11981         ;;
11982       lynxos*)
11983         ;;
11984       m88k*)
11985         ;;
11986       mvs*)
11987         case $cc_basename in
11988           cxx*)
11989             lt_prog_compiler_pic_CXX='-W c,exportall'
11990             ;;
11991           *)
11992             ;;
11993         esac
11994         ;;
11995       netbsd*)
11996         ;;
11997       osf3* | osf4* | osf5*)
11998         case $cc_basename in
11999           KCC*)
12000             lt_prog_compiler_wl_CXX='--backend -Wl,'
12001             ;;
12002           RCC*)
12003             # Rational C++ 2.4.1
12004             lt_prog_compiler_pic_CXX='-pic'
12005             ;;
12006           cxx*)
12007             # Digital/Compaq C++
12008             lt_prog_compiler_wl_CXX='-Wl,'
12009             # Make sure the PIC flag is empty.  It appears that all Alpha
12010             # Linux and Compaq Tru64 Unix objects are PIC.
12011             lt_prog_compiler_pic_CXX=
12012             lt_prog_compiler_static_CXX='-non_shared'
12013             ;;
12014           *)
12015             ;;
12016         esac
12017         ;;
12018       psos*)
12019         ;;
12020       solaris*)
12021         case $cc_basename in
12022           CC*)
12023             # Sun C++ 4.2, 5.x and Centerline C++
12024             lt_prog_compiler_pic_CXX='-KPIC'
12025             lt_prog_compiler_static_CXX='-Bstatic'
12026             lt_prog_compiler_wl_CXX='-Qoption ld '
12027             ;;
12028           gcx*)
12029             # Green Hills C++ Compiler
12030             lt_prog_compiler_pic_CXX='-PIC'
12031             ;;
12032           *)
12033             ;;
12034         esac
12035         ;;
12036       sunos4*)
12037         case $cc_basename in
12038           CC*)
12039             # Sun C++ 4.x
12040             lt_prog_compiler_pic_CXX='-pic'
12041             lt_prog_compiler_static_CXX='-Bstatic'
12042             ;;
12043           lcc*)
12044             # Lucid
12045             lt_prog_compiler_pic_CXX='-pic'
12046             ;;
12047           *)
12048             ;;
12049         esac
12050         ;;
12051       tandem*)
12052         case $cc_basename in
12053           NCC*)
12054             # NonStop-UX NCC 3.20
12055             lt_prog_compiler_pic_CXX='-KPIC'
12056             ;;
12057           *)
12058             ;;
12059         esac
12060         ;;
12061       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12062         case $cc_basename in
12063           CC*)
12064             lt_prog_compiler_wl_CXX='-Wl,'
12065             lt_prog_compiler_pic_CXX='-KPIC'
12066             lt_prog_compiler_static_CXX='-Bstatic'
12067             ;;
12068         esac
12069         ;;
12070       vxworks*)
12071         ;;
12072       *)
12073         lt_prog_compiler_can_build_shared_CXX=no
12074         ;;
12075     esac
12076   fi
12077
12078 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12079 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12080
12081 #
12082 # Check to make sure the PIC flag actually works.
12083 #
12084 if test -n "$lt_prog_compiler_pic_CXX"; then
12085
12086 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12087 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12088 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12089   echo $ECHO_N "(cached) $ECHO_C" >&6
12090 else
12091   lt_prog_compiler_pic_works_CXX=no
12092   ac_outfile=conftest.$ac_objext
12093    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12094    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12095    # Insert the option either (1) after the last *FLAGS variable, or
12096    # (2) before a word containing "conftest.", or (3) at the end.
12097    # Note that $ac_compile itself does not contain backslashes and begins
12098    # with a dollar sign (not a hyphen), so the echo should work correctly.
12099    # The option is referenced via a variable to avoid confusing sed.
12100    lt_compile=`echo "$ac_compile" | $SED \
12101    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12102    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12103    -e 's:$: $lt_compiler_flag:'`
12104    (eval echo "\"\$as_me:12104: $lt_compile\"" >&5)
12105    (eval "$lt_compile" 2>conftest.err)
12106    ac_status=$?
12107    cat conftest.err >&5
12108    echo "$as_me:12108: \$? = $ac_status" >&5
12109    if (exit $ac_status) && test -s "$ac_outfile"; then
12110      # The compiler can only warn and ignore the option if not recognized
12111      # So say no if there are warnings other than the usual output.
12112      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12113      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12114      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12115        lt_prog_compiler_pic_works_CXX=yes
12116      fi
12117    fi
12118    $rm conftest*
12119
12120 fi
12121 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12122 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12123
12124 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12125     case $lt_prog_compiler_pic_CXX in
12126      "" | " "*) ;;
12127      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12128      esac
12129 else
12130     lt_prog_compiler_pic_CXX=
12131      lt_prog_compiler_can_build_shared_CXX=no
12132 fi
12133
12134 fi
12135 case $host_os in
12136   # For platforms which do not support PIC, -DPIC is meaningless:
12137   *djgpp*)
12138     lt_prog_compiler_pic_CXX=
12139     ;;
12140   *)
12141     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12142     ;;
12143 esac
12144
12145 #
12146 # Check to make sure the static flag actually works.
12147 #
12148 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12149 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12150 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12151 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   lt_prog_compiler_static_works_CXX=no
12155    save_LDFLAGS="$LDFLAGS"
12156    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12157    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12158    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12159      # The linker can only warn and ignore the option if not recognized
12160      # So say no if there are warnings
12161      if test -s conftest.err; then
12162        # Append any errors to the config.log.
12163        cat conftest.err 1>&5
12164        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12165        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12166        if diff conftest.exp conftest.er2 >/dev/null; then
12167          lt_prog_compiler_static_works_CXX=yes
12168        fi
12169      else
12170        lt_prog_compiler_static_works_CXX=yes
12171      fi
12172    fi
12173    $rm conftest*
12174    LDFLAGS="$save_LDFLAGS"
12175
12176 fi
12177 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12178 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12179
12180 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12181     :
12182 else
12183     lt_prog_compiler_static_CXX=
12184 fi
12185
12186
12187 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12188 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12189 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   lt_cv_prog_compiler_c_o_CXX=no
12193    $rm -r conftest 2>/dev/null
12194    mkdir conftest
12195    cd conftest
12196    mkdir out
12197    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12198
12199    lt_compiler_flag="-o out/conftest2.$ac_objext"
12200    # Insert the option either (1) after the last *FLAGS variable, or
12201    # (2) before a word containing "conftest.", or (3) at the end.
12202    # Note that $ac_compile itself does not contain backslashes and begins
12203    # with a dollar sign (not a hyphen), so the echo should work correctly.
12204    lt_compile=`echo "$ac_compile" | $SED \
12205    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12206    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12207    -e 's:$: $lt_compiler_flag:'`
12208    (eval echo "\"\$as_me:12208: $lt_compile\"" >&5)
12209    (eval "$lt_compile" 2>out/conftest.err)
12210    ac_status=$?
12211    cat out/conftest.err >&5
12212    echo "$as_me:12212: \$? = $ac_status" >&5
12213    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12214    then
12215      # The compiler can only warn and ignore the option if not recognized
12216      # So say no if there are warnings
12217      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12218      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12219      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12220        lt_cv_prog_compiler_c_o_CXX=yes
12221      fi
12222    fi
12223    chmod u+w . 2>&5
12224    $rm conftest*
12225    # SGI C++ compiler will create directory out/ii_files/ for
12226    # template instantiation
12227    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12228    $rm out/* && rmdir out
12229    cd ..
12230    rmdir conftest
12231    $rm conftest*
12232
12233 fi
12234 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12235 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12236
12237
12238 hard_links="nottested"
12239 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12240   # do not overwrite the value of need_locks provided by the user
12241   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12242 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12243   hard_links=yes
12244   $rm conftest*
12245   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12246   touch conftest.a
12247   ln conftest.a conftest.b 2>&5 || hard_links=no
12248   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12249   { echo "$as_me:$LINENO: result: $hard_links" >&5
12250 echo "${ECHO_T}$hard_links" >&6; }
12251   if test "$hard_links" = no; then
12252     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12253 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12254     need_locks=warn
12255   fi
12256 else
12257   need_locks=no
12258 fi
12259
12260 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12261 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12262
12263   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12264   case $host_os in
12265   aix4* | aix5*)
12266     # If we're using GNU nm, then we don't want the "-C" option.
12267     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12268     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12269       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'
12270     else
12271       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'
12272     fi
12273     ;;
12274   pw32*)
12275     export_symbols_cmds_CXX="$ltdll_cmds"
12276   ;;
12277   cygwin* | mingw*)
12278     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'
12279   ;;
12280   *)
12281     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12282   ;;
12283   esac
12284
12285 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12286 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12287 test "$ld_shlibs_CXX" = no && can_build_shared=no
12288
12289 #
12290 # Do we need to explicitly link libc?
12291 #
12292 case "x$archive_cmds_need_lc_CXX" in
12293 x|xyes)
12294   # Assume -lc should be added
12295   archive_cmds_need_lc_CXX=yes
12296
12297   if test "$enable_shared" = yes && test "$GCC" = yes; then
12298     case $archive_cmds_CXX in
12299     *'~'*)
12300       # FIXME: we may have to deal with multi-command sequences.
12301       ;;
12302     '$CC '*)
12303       # Test whether the compiler implicitly links with -lc since on some
12304       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12305       # to ld, don't add -lc before -lgcc.
12306       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12307 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12308       $rm conftest*
12309       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12310
12311       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312   (eval $ac_compile) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); } 2>conftest.err; then
12316         soname=conftest
12317         lib=conftest
12318         libobjs=conftest.$ac_objext
12319         deplibs=
12320         wl=$lt_prog_compiler_wl_CXX
12321         pic_flag=$lt_prog_compiler_pic_CXX
12322         compiler_flags=-v
12323         linker_flags=-v
12324         verstring=
12325         output_objdir=.
12326         libname=conftest
12327         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12328         allow_undefined_flag_CXX=
12329         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12330   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12331   ac_status=$?
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); }
12334         then
12335           archive_cmds_need_lc_CXX=no
12336         else
12337           archive_cmds_need_lc_CXX=yes
12338         fi
12339         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12340       else
12341         cat conftest.err 1>&5
12342       fi
12343       $rm conftest*
12344       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12345 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12346       ;;
12347     esac
12348   fi
12349   ;;
12350 esac
12351
12352 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12353 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12354 library_names_spec=
12355 libname_spec='lib$name'
12356 soname_spec=
12357 shrext_cmds=".so"
12358 postinstall_cmds=
12359 postuninstall_cmds=
12360 finish_cmds=
12361 finish_eval=
12362 shlibpath_var=
12363 shlibpath_overrides_runpath=unknown
12364 version_type=none
12365 dynamic_linker="$host_os ld.so"
12366 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12367 if test "$GCC" = yes; then
12368   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12369   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12370     # if the path contains ";" then we assume it to be the separator
12371     # otherwise default to the standard path separator (i.e. ":") - it is
12372     # assumed that no part of a normal pathname contains ";" but that should
12373     # okay in the real world where ";" in dirpaths is itself problematic.
12374     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12375   else
12376     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12377   fi
12378 else
12379   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12380 fi
12381 need_lib_prefix=unknown
12382 hardcode_into_libs=no
12383
12384 # when you set need_version to no, make sure it does not cause -set_version
12385 # flags to be left without arguments
12386 need_version=unknown
12387
12388 case $host_os in
12389 aix3*)
12390   version_type=linux
12391   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12392   shlibpath_var=LIBPATH
12393
12394   # AIX 3 has no versioning support, so we append a major version to the name.
12395   soname_spec='${libname}${release}${shared_ext}$major'
12396   ;;
12397
12398 aix4* | aix5*)
12399   version_type=linux
12400   need_lib_prefix=no
12401   need_version=no
12402   hardcode_into_libs=yes
12403   if test "$host_cpu" = ia64; then
12404     # AIX 5 supports IA64
12405     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12406     shlibpath_var=LD_LIBRARY_PATH
12407   else
12408     # With GCC up to 2.95.x, collect2 would create an import file
12409     # for dependence libraries.  The import file would start with
12410     # the line `#! .'.  This would cause the generated library to
12411     # depend on `.', always an invalid library.  This was fixed in
12412     # development snapshots of GCC prior to 3.0.
12413     case $host_os in
12414       aix4 | aix4.[01] | aix4.[01].*)
12415       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12416            echo ' yes '
12417            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12418         :
12419       else
12420         can_build_shared=no
12421       fi
12422       ;;
12423     esac
12424     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12425     # soname into executable. Probably we can add versioning support to
12426     # collect2, so additional links can be useful in future.
12427     if test "$aix_use_runtimelinking" = yes; then
12428       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12429       # instead of lib<name>.a to let people know that these are not
12430       # typical AIX shared libraries.
12431       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12432     else
12433       # We preserve .a as extension for shared libraries through AIX4.2
12434       # and later when we are not doing run time linking.
12435       library_names_spec='${libname}${release}.a $libname.a'
12436       soname_spec='${libname}${release}${shared_ext}$major'
12437     fi
12438     shlibpath_var=LIBPATH
12439   fi
12440   ;;
12441
12442 amigaos*)
12443   library_names_spec='$libname.ixlibrary $libname.a'
12444   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12445   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'
12446   ;;
12447
12448 beos*)
12449   library_names_spec='${libname}${shared_ext}'
12450   dynamic_linker="$host_os ld.so"
12451   shlibpath_var=LIBRARY_PATH
12452   ;;
12453
12454 bsdi[45]*)
12455   version_type=linux
12456   need_version=no
12457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12458   soname_spec='${libname}${release}${shared_ext}$major'
12459   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12460   shlibpath_var=LD_LIBRARY_PATH
12461   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12462   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12463   # the default ld.so.conf also contains /usr/contrib/lib and
12464   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12465   # libtool to hard-code these into programs
12466   ;;
12467
12468 cygwin* | mingw* | pw32*)
12469   version_type=windows
12470   shrext_cmds=".dll"
12471   need_version=no
12472   need_lib_prefix=no
12473
12474   case $GCC,$host_os in
12475   yes,cygwin* | yes,mingw* | yes,pw32*)
12476     library_names_spec='$libname.dll.a'
12477     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12478     postinstall_cmds='base_file=`basename \${file}`~
12479       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12480       dldir=$destdir/`dirname \$dlpath`~
12481       test -d \$dldir || mkdir -p \$dldir~
12482       $install_prog $dir/$dlname \$dldir/$dlname~
12483       chmod a+x \$dldir/$dlname'
12484     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12485       dlpath=$dir/\$dldll~
12486        $rm \$dlpath'
12487     shlibpath_overrides_runpath=yes
12488
12489     case $host_os in
12490     cygwin*)
12491       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12492       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12493       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12494       ;;
12495     mingw*)
12496       # MinGW DLLs use traditional 'lib' prefix
12497       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12498       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12499       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12500         # It is most probably a Windows format PATH printed by
12501         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12502         # path with ; separators, and with drive letters. We can handle the
12503         # drive letters (cygwin fileutils understands them), so leave them,
12504         # especially as we might pass files found there to a mingw objdump,
12505         # which wouldn't understand a cygwinified path. Ahh.
12506         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12507       else
12508         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12509       fi
12510       ;;
12511     pw32*)
12512       # pw32 DLLs use 'pw' prefix rather than 'lib'
12513       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12514       ;;
12515     esac
12516     ;;
12517
12518   *)
12519     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12520     ;;
12521   esac
12522   dynamic_linker='Win32 ld.exe'
12523   # FIXME: first we should search . and the directory the executable is in
12524   shlibpath_var=PATH
12525   ;;
12526
12527 darwin* | rhapsody*)
12528   dynamic_linker="$host_os dyld"
12529   version_type=darwin
12530   need_lib_prefix=no
12531   need_version=no
12532   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12533   soname_spec='${libname}${release}${major}$shared_ext'
12534   shlibpath_overrides_runpath=yes
12535   shlibpath_var=DYLD_LIBRARY_PATH
12536   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12537   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12538   if test "$GCC" = yes; then
12539     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"`
12540   else
12541     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12542   fi
12543   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12544   ;;
12545
12546 dgux*)
12547   version_type=linux
12548   need_lib_prefix=no
12549   need_version=no
12550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12551   soname_spec='${libname}${release}${shared_ext}$major'
12552   shlibpath_var=LD_LIBRARY_PATH
12553   ;;
12554
12555 freebsd1*)
12556   dynamic_linker=no
12557   ;;
12558
12559 kfreebsd*-gnu)
12560   version_type=linux
12561   need_lib_prefix=no
12562   need_version=no
12563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12564   soname_spec='${libname}${release}${shared_ext}$major'
12565   shlibpath_var=LD_LIBRARY_PATH
12566   shlibpath_overrides_runpath=no
12567   hardcode_into_libs=yes
12568   dynamic_linker='GNU ld.so'
12569   ;;
12570
12571 freebsd* | dragonfly*)
12572   # DragonFly does not have aout.  When/if they implement a new
12573   # versioning mechanism, adjust this.
12574   if test -x /usr/bin/objformat; then
12575     objformat=`/usr/bin/objformat`
12576   else
12577     case $host_os in
12578     freebsd[123]*) objformat=aout ;;
12579     *) objformat=elf ;;
12580     esac
12581   fi
12582   version_type=freebsd-$objformat
12583   case $version_type in
12584     freebsd-elf*)
12585       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12586       need_version=no
12587       need_lib_prefix=no
12588       ;;
12589     freebsd-*)
12590       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12591       need_version=yes
12592       ;;
12593   esac
12594   shlibpath_var=LD_LIBRARY_PATH
12595   case $host_os in
12596   freebsd2*)
12597     shlibpath_overrides_runpath=yes
12598     ;;
12599   freebsd3.[01]* | freebsdelf3.[01]*)
12600     shlibpath_overrides_runpath=yes
12601     hardcode_into_libs=yes
12602     ;;
12603   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12604   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12605     shlibpath_overrides_runpath=no
12606     hardcode_into_libs=yes
12607     ;;
12608   freebsd*) # from 4.6 on
12609     shlibpath_overrides_runpath=yes
12610     hardcode_into_libs=yes
12611     ;;
12612   esac
12613   ;;
12614
12615 gnu*)
12616   version_type=linux
12617   need_lib_prefix=no
12618   need_version=no
12619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12620   soname_spec='${libname}${release}${shared_ext}$major'
12621   shlibpath_var=LD_LIBRARY_PATH
12622   hardcode_into_libs=yes
12623   ;;
12624
12625 hpux9* | hpux10* | hpux11*)
12626   # Give a soname corresponding to the major version so that dld.sl refuses to
12627   # link against other versions.
12628   version_type=sunos
12629   need_lib_prefix=no
12630   need_version=no
12631   case $host_cpu in
12632   ia64*)
12633     shrext_cmds='.so'
12634     hardcode_into_libs=yes
12635     dynamic_linker="$host_os dld.so"
12636     shlibpath_var=LD_LIBRARY_PATH
12637     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12638     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639     soname_spec='${libname}${release}${shared_ext}$major'
12640     if test "X$HPUX_IA64_MODE" = X32; then
12641       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12642     else
12643       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12644     fi
12645     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12646     ;;
12647    hppa*64*)
12648      shrext_cmds='.sl'
12649      hardcode_into_libs=yes
12650      dynamic_linker="$host_os dld.sl"
12651      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12652      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12653      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12654      soname_spec='${libname}${release}${shared_ext}$major'
12655      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12656      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12657      ;;
12658    *)
12659     shrext_cmds='.sl'
12660     dynamic_linker="$host_os dld.sl"
12661     shlibpath_var=SHLIB_PATH
12662     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12664     soname_spec='${libname}${release}${shared_ext}$major'
12665     ;;
12666   esac
12667   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12668   postinstall_cmds='chmod 555 $lib'
12669   ;;
12670
12671 interix3*)
12672   version_type=linux
12673   need_lib_prefix=no
12674   need_version=no
12675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12676   soname_spec='${libname}${release}${shared_ext}$major'
12677   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12678   shlibpath_var=LD_LIBRARY_PATH
12679   shlibpath_overrides_runpath=no
12680   hardcode_into_libs=yes
12681   ;;
12682
12683 irix5* | irix6* | nonstopux*)
12684   case $host_os in
12685     nonstopux*) version_type=nonstopux ;;
12686     *)
12687         if test "$lt_cv_prog_gnu_ld" = yes; then
12688                 version_type=linux
12689         else
12690                 version_type=irix
12691         fi ;;
12692   esac
12693   need_lib_prefix=no
12694   need_version=no
12695   soname_spec='${libname}${release}${shared_ext}$major'
12696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12697   case $host_os in
12698   irix5* | nonstopux*)
12699     libsuff= shlibsuff=
12700     ;;
12701   *)
12702     case $LD in # libtool.m4 will add one of these switches to LD
12703     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12704       libsuff= shlibsuff= libmagic=32-bit;;
12705     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12706       libsuff=32 shlibsuff=N32 libmagic=N32;;
12707     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12708       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12709     *) libsuff= shlibsuff= libmagic=never-match;;
12710     esac
12711     ;;
12712   esac
12713   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12714   shlibpath_overrides_runpath=no
12715   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12716   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12717   hardcode_into_libs=yes
12718   ;;
12719
12720 # No shared lib support for Linux oldld, aout, or coff.
12721 linux*oldld* | linux*aout* | linux*coff*)
12722   dynamic_linker=no
12723   ;;
12724
12725 # This must be Linux ELF.
12726 linux*)
12727   version_type=linux
12728   need_lib_prefix=no
12729   need_version=no
12730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12731   soname_spec='${libname}${release}${shared_ext}$major'
12732   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12733   shlibpath_var=LD_LIBRARY_PATH
12734   shlibpath_overrides_runpath=no
12735   # This implies no fast_install, which is unacceptable.
12736   # Some rework will be needed to allow for fast_install
12737   # before this can be enabled.
12738   hardcode_into_libs=yes
12739
12740   # Append ld.so.conf contents to the search path
12741   if test -f /etc/ld.so.conf; then
12742     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' ' '`
12743     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12744   fi
12745
12746   # We used to test for /lib/ld.so.1 and disable shared libraries on
12747   # powerpc, because MkLinux only supported shared libraries with the
12748   # GNU dynamic linker.  Since this was broken with cross compilers,
12749   # most powerpc-linux boxes support dynamic linking these days and
12750   # people can always --disable-shared, the test was removed, and we
12751   # assume the GNU/Linux dynamic linker is in use.
12752   dynamic_linker='GNU/Linux ld.so'
12753   ;;
12754
12755 knetbsd*-gnu)
12756   version_type=linux
12757   need_lib_prefix=no
12758   need_version=no
12759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12760   soname_spec='${libname}${release}${shared_ext}$major'
12761   shlibpath_var=LD_LIBRARY_PATH
12762   shlibpath_overrides_runpath=no
12763   hardcode_into_libs=yes
12764   dynamic_linker='GNU ld.so'
12765   ;;
12766
12767 netbsd*)
12768   version_type=sunos
12769   need_lib_prefix=no
12770   need_version=no
12771   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12773     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12774     dynamic_linker='NetBSD (a.out) ld.so'
12775   else
12776     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12777     soname_spec='${libname}${release}${shared_ext}$major'
12778     dynamic_linker='NetBSD ld.elf_so'
12779   fi
12780   shlibpath_var=LD_LIBRARY_PATH
12781   shlibpath_overrides_runpath=yes
12782   hardcode_into_libs=yes
12783   ;;
12784
12785 newsos6)
12786   version_type=linux
12787   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12788   shlibpath_var=LD_LIBRARY_PATH
12789   shlibpath_overrides_runpath=yes
12790   ;;
12791
12792 nto-qnx*)
12793   version_type=linux
12794   need_lib_prefix=no
12795   need_version=no
12796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12797   soname_spec='${libname}${release}${shared_ext}$major'
12798   shlibpath_var=LD_LIBRARY_PATH
12799   shlibpath_overrides_runpath=yes
12800   ;;
12801
12802 openbsd*)
12803   version_type=sunos
12804   sys_lib_dlsearch_path_spec="/usr/lib"
12805   need_lib_prefix=no
12806   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12807   case $host_os in
12808     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12809     *)                         need_version=no  ;;
12810   esac
12811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12812   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12813   shlibpath_var=LD_LIBRARY_PATH
12814   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12815     case $host_os in
12816       openbsd2.[89] | openbsd2.[89].*)
12817         shlibpath_overrides_runpath=no
12818         ;;
12819       *)
12820         shlibpath_overrides_runpath=yes
12821         ;;
12822       esac
12823   else
12824     shlibpath_overrides_runpath=yes
12825   fi
12826   ;;
12827
12828 os2*)
12829   libname_spec='$name'
12830   shrext_cmds=".dll"
12831   need_lib_prefix=no
12832   library_names_spec='$libname${shared_ext} $libname.a'
12833   dynamic_linker='OS/2 ld.exe'
12834   shlibpath_var=LIBPATH
12835   ;;
12836
12837 osf3* | osf4* | osf5*)
12838   version_type=osf
12839   need_lib_prefix=no
12840   need_version=no
12841   soname_spec='${libname}${release}${shared_ext}$major'
12842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12843   shlibpath_var=LD_LIBRARY_PATH
12844   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12845   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12846   ;;
12847
12848 solaris*)
12849   version_type=linux
12850   need_lib_prefix=no
12851   need_version=no
12852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853   soname_spec='${libname}${release}${shared_ext}$major'
12854   shlibpath_var=LD_LIBRARY_PATH
12855   shlibpath_overrides_runpath=yes
12856   hardcode_into_libs=yes
12857   # ldd complains unless libraries are executable
12858   postinstall_cmds='chmod +x $lib'
12859   ;;
12860
12861 sunos4*)
12862   version_type=sunos
12863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12864   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12865   shlibpath_var=LD_LIBRARY_PATH
12866   shlibpath_overrides_runpath=yes
12867   if test "$with_gnu_ld" = yes; then
12868     need_lib_prefix=no
12869   fi
12870   need_version=yes
12871   ;;
12872
12873 sysv4 | sysv4.3*)
12874   version_type=linux
12875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12876   soname_spec='${libname}${release}${shared_ext}$major'
12877   shlibpath_var=LD_LIBRARY_PATH
12878   case $host_vendor in
12879     sni)
12880       shlibpath_overrides_runpath=no
12881       need_lib_prefix=no
12882       export_dynamic_flag_spec='${wl}-Blargedynsym'
12883       runpath_var=LD_RUN_PATH
12884       ;;
12885     siemens)
12886       need_lib_prefix=no
12887       ;;
12888     motorola)
12889       need_lib_prefix=no
12890       need_version=no
12891       shlibpath_overrides_runpath=no
12892       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12893       ;;
12894   esac
12895   ;;
12896
12897 sysv4*MP*)
12898   if test -d /usr/nec ;then
12899     version_type=linux
12900     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12901     soname_spec='$libname${shared_ext}.$major'
12902     shlibpath_var=LD_LIBRARY_PATH
12903   fi
12904   ;;
12905
12906 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12907   version_type=freebsd-elf
12908   need_lib_prefix=no
12909   need_version=no
12910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12911   soname_spec='${libname}${release}${shared_ext}$major'
12912   shlibpath_var=LD_LIBRARY_PATH
12913   hardcode_into_libs=yes
12914   if test "$with_gnu_ld" = yes; then
12915     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12916     shlibpath_overrides_runpath=no
12917   else
12918     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12919     shlibpath_overrides_runpath=yes
12920     case $host_os in
12921       sco3.2v5*)
12922         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12923         ;;
12924     esac
12925   fi
12926   sys_lib_dlsearch_path_spec='/usr/lib'
12927   ;;
12928
12929 uts4*)
12930   version_type=linux
12931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932   soname_spec='${libname}${release}${shared_ext}$major'
12933   shlibpath_var=LD_LIBRARY_PATH
12934   ;;
12935
12936 *)
12937   dynamic_linker=no
12938   ;;
12939 esac
12940 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12941 echo "${ECHO_T}$dynamic_linker" >&6; }
12942 test "$dynamic_linker" = no && can_build_shared=no
12943
12944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12945 if test "$GCC" = yes; then
12946   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12947 fi
12948
12949 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12950 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12951 hardcode_action_CXX=
12952 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12953    test -n "$runpath_var_CXX" || \
12954    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12955
12956   # We can hardcode non-existant directories.
12957   if test "$hardcode_direct_CXX" != no &&
12958      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12959      # have to relink, otherwise we might link with an installed library
12960      # when we should be linking with a yet-to-be-installed one
12961      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12962      test "$hardcode_minus_L_CXX" != no; then
12963     # Linking always hardcodes the temporary library directory.
12964     hardcode_action_CXX=relink
12965   else
12966     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12967     hardcode_action_CXX=immediate
12968   fi
12969 else
12970   # We cannot hardcode anything, or else we can only hardcode existing
12971   # directories.
12972   hardcode_action_CXX=unsupported
12973 fi
12974 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12975 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12976
12977 if test "$hardcode_action_CXX" = relink; then
12978   # Fast installation is not supported
12979   enable_fast_install=no
12980 elif test "$shlibpath_overrides_runpath" = yes ||
12981      test "$enable_shared" = no; then
12982   # Fast installation is not necessary
12983   enable_fast_install=needless
12984 fi
12985
12986
12987 # The else clause should only fire when bootstrapping the
12988 # libtool distribution, otherwise you forgot to ship ltmain.sh
12989 # with your package, and you will get complaints that there are
12990 # no rules to generate ltmain.sh.
12991 if test -f "$ltmain"; then
12992   # See if we are running on zsh, and set the options which allow our commands through
12993   # without removal of \ escapes.
12994   if test -n "${ZSH_VERSION+set}" ; then
12995     setopt NO_GLOB_SUBST
12996   fi
12997   # Now quote all the things that may contain metacharacters while being
12998   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12999   # variables and quote the copies for generation of the libtool script.
13000   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13001     SED SHELL STRIP \
13002     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13003     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13004     deplibs_check_method reload_flag reload_cmds need_locks \
13005     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13006     lt_cv_sys_global_symbol_to_c_name_address \
13007     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13008     old_postinstall_cmds old_postuninstall_cmds \
13009     compiler_CXX \
13010     CC_CXX \
13011     LD_CXX \
13012     lt_prog_compiler_wl_CXX \
13013     lt_prog_compiler_pic_CXX \
13014     lt_prog_compiler_static_CXX \
13015     lt_prog_compiler_no_builtin_flag_CXX \
13016     export_dynamic_flag_spec_CXX \
13017     thread_safe_flag_spec_CXX \
13018     whole_archive_flag_spec_CXX \
13019     enable_shared_with_static_runtimes_CXX \
13020     old_archive_cmds_CXX \
13021     old_archive_from_new_cmds_CXX \
13022     predep_objects_CXX \
13023     postdep_objects_CXX \
13024     predeps_CXX \
13025     postdeps_CXX \
13026     compiler_lib_search_path_CXX \
13027     archive_cmds_CXX \
13028     archive_expsym_cmds_CXX \
13029     postinstall_cmds_CXX \
13030     postuninstall_cmds_CXX \
13031     old_archive_from_expsyms_cmds_CXX \
13032     allow_undefined_flag_CXX \
13033     no_undefined_flag_CXX \
13034     export_symbols_cmds_CXX \
13035     hardcode_libdir_flag_spec_CXX \
13036     hardcode_libdir_flag_spec_ld_CXX \
13037     hardcode_libdir_separator_CXX \
13038     hardcode_automatic_CXX \
13039     module_cmds_CXX \
13040     module_expsym_cmds_CXX \
13041     lt_cv_prog_compiler_c_o_CXX \
13042     exclude_expsyms_CXX \
13043     include_expsyms_CXX; do
13044
13045     case $var in
13046     old_archive_cmds_CXX | \
13047     old_archive_from_new_cmds_CXX | \
13048     archive_cmds_CXX | \
13049     archive_expsym_cmds_CXX | \
13050     module_cmds_CXX | \
13051     module_expsym_cmds_CXX | \
13052     old_archive_from_expsyms_cmds_CXX | \
13053     export_symbols_cmds_CXX | \
13054     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13055     postinstall_cmds | postuninstall_cmds | \
13056     old_postinstall_cmds | old_postuninstall_cmds | \
13057     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13058       # Double-quote double-evaled strings.
13059       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13060       ;;
13061     *)
13062       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13063       ;;
13064     esac
13065   done
13066
13067   case $lt_echo in
13068   *'\$0 --fallback-echo"')
13069     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13070     ;;
13071   esac
13072
13073 cfgfile="$ofile"
13074
13075   cat <<__EOF__ >> "$cfgfile"
13076 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13077
13078 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13079
13080 # Shell to use when invoking shell scripts.
13081 SHELL=$lt_SHELL
13082
13083 # Whether or not to build shared libraries.
13084 build_libtool_libs=$enable_shared
13085
13086 # Whether or not to build static libraries.
13087 build_old_libs=$enable_static
13088
13089 # Whether or not to add -lc for building shared libraries.
13090 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13091
13092 # Whether or not to disallow shared libs when runtime libs are static
13093 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13094
13095 # Whether or not to optimize for fast installation.
13096 fast_install=$enable_fast_install
13097
13098 # The host system.
13099 host_alias=$host_alias
13100 host=$host
13101 host_os=$host_os
13102
13103 # The build system.
13104 build_alias=$build_alias
13105 build=$build
13106 build_os=$build_os
13107
13108 # An echo program that does not interpret backslashes.
13109 echo=$lt_echo
13110
13111 # The archiver.
13112 AR=$lt_AR
13113 AR_FLAGS=$lt_AR_FLAGS
13114
13115 # A C compiler.
13116 LTCC=$lt_LTCC
13117
13118 # LTCC compiler flags.
13119 LTCFLAGS=$lt_LTCFLAGS
13120
13121 # A language-specific compiler.
13122 CC=$lt_compiler_CXX
13123
13124 # Is the compiler the GNU C compiler?
13125 with_gcc=$GCC_CXX
13126
13127 # An ERE matcher.
13128 EGREP=$lt_EGREP
13129
13130 # The linker used to build libraries.
13131 LD=$lt_LD_CXX
13132
13133 # Whether we need hard or soft links.
13134 LN_S=$lt_LN_S
13135
13136 # A BSD-compatible nm program.
13137 NM=$lt_NM
13138
13139 # A symbol stripping program
13140 STRIP=$lt_STRIP
13141
13142 # Used to examine libraries when file_magic_cmd begins "file"
13143 MAGIC_CMD=$MAGIC_CMD
13144
13145 # Used on cygwin: DLL creation program.
13146 DLLTOOL="$DLLTOOL"
13147
13148 # Used on cygwin: object dumper.
13149 OBJDUMP="$OBJDUMP"
13150
13151 # Used on cygwin: assembler.
13152 AS="$AS"
13153
13154 # The name of the directory that contains temporary libtool files.
13155 objdir=$objdir
13156
13157 # How to create reloadable object files.
13158 reload_flag=$lt_reload_flag
13159 reload_cmds=$lt_reload_cmds
13160
13161 # How to pass a linker flag through the compiler.
13162 wl=$lt_lt_prog_compiler_wl_CXX
13163
13164 # Object file suffix (normally "o").
13165 objext="$ac_objext"
13166
13167 # Old archive suffix (normally "a").
13168 libext="$libext"
13169
13170 # Shared library suffix (normally ".so").
13171 shrext_cmds='$shrext_cmds'
13172
13173 # Executable file suffix (normally "").
13174 exeext="$exeext"
13175
13176 # Additional compiler flags for building library objects.
13177 pic_flag=$lt_lt_prog_compiler_pic_CXX
13178 pic_mode=$pic_mode
13179
13180 # What is the maximum length of a command?
13181 max_cmd_len=$lt_cv_sys_max_cmd_len
13182
13183 # Does compiler simultaneously support -c and -o options?
13184 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13185
13186 # Must we lock files when doing compilation?
13187 need_locks=$lt_need_locks
13188
13189 # Do we need the lib prefix for modules?
13190 need_lib_prefix=$need_lib_prefix
13191
13192 # Do we need a version for libraries?
13193 need_version=$need_version
13194
13195 # Whether dlopen is supported.
13196 dlopen_support=$enable_dlopen
13197
13198 # Whether dlopen of programs is supported.
13199 dlopen_self=$enable_dlopen_self
13200
13201 # Whether dlopen of statically linked programs is supported.
13202 dlopen_self_static=$enable_dlopen_self_static
13203
13204 # Compiler flag to prevent dynamic linking.
13205 link_static_flag=$lt_lt_prog_compiler_static_CXX
13206
13207 # Compiler flag to turn off builtin functions.
13208 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13209
13210 # Compiler flag to allow reflexive dlopens.
13211 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13212
13213 # Compiler flag to generate shared objects directly from archives.
13214 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13215
13216 # Compiler flag to generate thread-safe objects.
13217 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13218
13219 # Library versioning type.
13220 version_type=$version_type
13221
13222 # Format of library name prefix.
13223 libname_spec=$lt_libname_spec
13224
13225 # List of archive names.  First name is the real one, the rest are links.
13226 # The last name is the one that the linker finds with -lNAME.
13227 library_names_spec=$lt_library_names_spec
13228
13229 # The coded name of the library, if different from the real name.
13230 soname_spec=$lt_soname_spec
13231
13232 # Commands used to build and install an old-style archive.
13233 RANLIB=$lt_RANLIB
13234 old_archive_cmds=$lt_old_archive_cmds_CXX
13235 old_postinstall_cmds=$lt_old_postinstall_cmds
13236 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13237
13238 # Create an old-style archive from a shared archive.
13239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13240
13241 # Create a temporary old-style archive to link instead of a shared archive.
13242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13243
13244 # Commands used to build and install a shared archive.
13245 archive_cmds=$lt_archive_cmds_CXX
13246 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13247 postinstall_cmds=$lt_postinstall_cmds
13248 postuninstall_cmds=$lt_postuninstall_cmds
13249
13250 # Commands used to build a loadable module (assumed same as above if empty)
13251 module_cmds=$lt_module_cmds_CXX
13252 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13253
13254 # Commands to strip libraries.
13255 old_striplib=$lt_old_striplib
13256 striplib=$lt_striplib
13257
13258 # Dependencies to place before the objects being linked to create a
13259 # shared library.
13260 predep_objects=$lt_predep_objects_CXX
13261
13262 # Dependencies to place after the objects being linked to create a
13263 # shared library.
13264 postdep_objects=$lt_postdep_objects_CXX
13265
13266 # Dependencies to place before the objects being linked to create a
13267 # shared library.
13268 predeps=$lt_predeps_CXX
13269
13270 # Dependencies to place after the objects being linked to create a
13271 # shared library.
13272 postdeps=$lt_postdeps_CXX
13273
13274 # The library search path used internally by the compiler when linking
13275 # a shared library.
13276 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13277
13278 # Method to check whether dependent libraries are shared objects.
13279 deplibs_check_method=$lt_deplibs_check_method
13280
13281 # Command to use when deplibs_check_method == file_magic.
13282 file_magic_cmd=$lt_file_magic_cmd
13283
13284 # Flag that allows shared libraries with undefined symbols to be built.
13285 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13286
13287 # Flag that forces no undefined symbols.
13288 no_undefined_flag=$lt_no_undefined_flag_CXX
13289
13290 # Commands used to finish a libtool library installation in a directory.
13291 finish_cmds=$lt_finish_cmds
13292
13293 # Same as above, but a single script fragment to be evaled but not shown.
13294 finish_eval=$lt_finish_eval
13295
13296 # Take the output of nm and produce a listing of raw symbols and C names.
13297 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13298
13299 # Transform the output of nm in a proper C declaration
13300 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13301
13302 # Transform the output of nm in a C name address pair
13303 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13304
13305 # This is the shared library runtime path variable.
13306 runpath_var=$runpath_var
13307
13308 # This is the shared library path variable.
13309 shlibpath_var=$shlibpath_var
13310
13311 # Is shlibpath searched before the hard-coded library search path?
13312 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13313
13314 # How to hardcode a shared library path into an executable.
13315 hardcode_action=$hardcode_action_CXX
13316
13317 # Whether we should hardcode library paths into libraries.
13318 hardcode_into_libs=$hardcode_into_libs
13319
13320 # Flag to hardcode \$libdir into a binary during linking.
13321 # This must work even if \$libdir does not exist.
13322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13323
13324 # If ld is used when linking, flag to hardcode \$libdir into
13325 # a binary during linking. This must work even if \$libdir does
13326 # not exist.
13327 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13328
13329 # Whether we need a single -rpath flag with a separated argument.
13330 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13331
13332 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13333 # resulting binary.
13334 hardcode_direct=$hardcode_direct_CXX
13335
13336 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13337 # resulting binary.
13338 hardcode_minus_L=$hardcode_minus_L_CXX
13339
13340 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13341 # the resulting binary.
13342 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13343
13344 # Set to yes if building a shared library automatically hardcodes DIR into the library
13345 # and all subsequent libraries and executables linked against it.
13346 hardcode_automatic=$hardcode_automatic_CXX
13347
13348 # Variables whose values should be saved in libtool wrapper scripts and
13349 # restored at relink time.
13350 variables_saved_for_relink="$variables_saved_for_relink"
13351
13352 # Whether libtool must link a program against all its dependency libraries.
13353 link_all_deplibs=$link_all_deplibs_CXX
13354
13355 # Compile-time system search path for libraries
13356 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13357
13358 # Run-time system search path for libraries
13359 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13360
13361 # Fix the shell variable \$srcfile for the compiler.
13362 fix_srcfile_path="$fix_srcfile_path_CXX"
13363
13364 # Set to yes if exported symbols are required.
13365 always_export_symbols=$always_export_symbols_CXX
13366
13367 # The commands to list exported symbols.
13368 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13369
13370 # The commands to extract the exported symbol list from a shared archive.
13371 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13372
13373 # Symbols that should not be listed in the preloaded symbols.
13374 exclude_expsyms=$lt_exclude_expsyms_CXX
13375
13376 # Symbols that must always be exported.
13377 include_expsyms=$lt_include_expsyms_CXX
13378
13379 # ### END LIBTOOL TAG CONFIG: $tagname
13380
13381 __EOF__
13382
13383
13384 else
13385   # If there is no Makefile yet, we rely on a make rule to execute
13386   # `config.status --recheck' to rerun these tests and create the
13387   # libtool script then.
13388   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13389   if test -f "$ltmain_in"; then
13390     test -f Makefile && make "$ltmain"
13391   fi
13392 fi
13393
13394
13395 ac_ext=c
13396 ac_cpp='$CPP $CPPFLAGS'
13397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13400
13401 CC=$lt_save_CC
13402 LDCXX=$LD
13403 LD=$lt_save_LD
13404 GCC=$lt_save_GCC
13405 with_gnu_ldcxx=$with_gnu_ld
13406 with_gnu_ld=$lt_save_with_gnu_ld
13407 lt_cv_path_LDCXX=$lt_cv_path_LD
13408 lt_cv_path_LD=$lt_save_path_LD
13409 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13410 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13411
13412         else
13413           tagname=""
13414         fi
13415         ;;
13416
13417       F77)
13418         if test -n "$F77" && test "X$F77" != "Xno"; then
13419
13420 ac_ext=f
13421 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13422 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13423 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13424
13425
13426 archive_cmds_need_lc_F77=no
13427 allow_undefined_flag_F77=
13428 always_export_symbols_F77=no
13429 archive_expsym_cmds_F77=
13430 export_dynamic_flag_spec_F77=
13431 hardcode_direct_F77=no
13432 hardcode_libdir_flag_spec_F77=
13433 hardcode_libdir_flag_spec_ld_F77=
13434 hardcode_libdir_separator_F77=
13435 hardcode_minus_L_F77=no
13436 hardcode_automatic_F77=no
13437 module_cmds_F77=
13438 module_expsym_cmds_F77=
13439 link_all_deplibs_F77=unknown
13440 old_archive_cmds_F77=$old_archive_cmds
13441 no_undefined_flag_F77=
13442 whole_archive_flag_spec_F77=
13443 enable_shared_with_static_runtimes_F77=no
13444
13445 # Source file extension for f77 test sources.
13446 ac_ext=f
13447
13448 # Object file extension for compiled f77 test sources.
13449 objext=o
13450 objext_F77=$objext
13451
13452 # Code to be used in simple compile tests
13453 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13454
13455 # Code to be used in simple link tests
13456 lt_simple_link_test_code="      program t\n      end\n"
13457
13458 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13459
13460 # If no C compiler was specified, use CC.
13461 LTCC=${LTCC-"$CC"}
13462
13463 # If no C compiler flags were specified, use CFLAGS.
13464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13465
13466 # Allow CC to be a program name with arguments.
13467 compiler=$CC
13468
13469
13470 # save warnings/boilerplate of simple test code
13471 ac_outfile=conftest.$ac_objext
13472 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13473 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13474 _lt_compiler_boilerplate=`cat conftest.err`
13475 $rm conftest*
13476
13477 ac_outfile=conftest.$ac_objext
13478 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13479 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13480 _lt_linker_boilerplate=`cat conftest.err`
13481 $rm conftest*
13482
13483
13484 # Allow CC to be a program name with arguments.
13485 lt_save_CC="$CC"
13486 CC=${F77-"f77"}
13487 compiler=$CC
13488 compiler_F77=$CC
13489 for cc_temp in $compiler""; do
13490   case $cc_temp in
13491     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13492     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13493     \-*) ;;
13494     *) break;;
13495   esac
13496 done
13497 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13498
13499
13500 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13501 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13502 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13503 echo "${ECHO_T}$can_build_shared" >&6; }
13504
13505 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13506 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13507 test "$can_build_shared" = "no" && enable_shared=no
13508
13509 # On AIX, shared libraries and static libraries use the same namespace, and
13510 # are all built from PIC.
13511 case $host_os in
13512 aix3*)
13513   test "$enable_shared" = yes && enable_static=no
13514   if test -n "$RANLIB"; then
13515     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13516     postinstall_cmds='$RANLIB $lib'
13517   fi
13518   ;;
13519 aix4* | aix5*)
13520   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13521     test "$enable_shared" = yes && enable_static=no
13522   fi
13523   ;;
13524 esac
13525 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13526 echo "${ECHO_T}$enable_shared" >&6; }
13527
13528 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13529 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13530 # Make sure either enable_shared or enable_static is yes.
13531 test "$enable_shared" = yes || enable_static=yes
13532 { echo "$as_me:$LINENO: result: $enable_static" >&5
13533 echo "${ECHO_T}$enable_static" >&6; }
13534
13535 GCC_F77="$G77"
13536 LD_F77="$LD"
13537
13538 lt_prog_compiler_wl_F77=
13539 lt_prog_compiler_pic_F77=
13540 lt_prog_compiler_static_F77=
13541
13542 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13543 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13544
13545   if test "$GCC" = yes; then
13546     lt_prog_compiler_wl_F77='-Wl,'
13547     lt_prog_compiler_static_F77='-static'
13548
13549     case $host_os in
13550       aix*)
13551       # All AIX code is PIC.
13552       if test "$host_cpu" = ia64; then
13553         # AIX 5 now supports IA64 processor
13554         lt_prog_compiler_static_F77='-Bstatic'
13555       fi
13556       ;;
13557
13558     amigaos*)
13559       # FIXME: we need at least 68020 code to build shared libraries, but
13560       # adding the `-m68020' flag to GCC prevents building anything better,
13561       # like `-m68040'.
13562       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13563       ;;
13564
13565     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13566       # PIC is the default for these OSes.
13567       ;;
13568
13569     mingw* | pw32* | os2*)
13570       # This hack is so that the source file can tell whether it is being
13571       # built for inclusion in a dll (and should export symbols for example).
13572       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13573       ;;
13574
13575     darwin* | rhapsody*)
13576       # PIC is the default on this platform
13577       # Common symbols not allowed in MH_DYLIB files
13578       lt_prog_compiler_pic_F77='-fno-common'
13579       ;;
13580
13581     interix3*)
13582       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13583       # Instead, we relocate shared libraries at runtime.
13584       ;;
13585
13586     msdosdjgpp*)
13587       # Just because we use GCC doesn't mean we suddenly get shared libraries
13588       # on systems that don't support them.
13589       lt_prog_compiler_can_build_shared_F77=no
13590       enable_shared=no
13591       ;;
13592
13593     sysv4*MP*)
13594       if test -d /usr/nec; then
13595         lt_prog_compiler_pic_F77=-Kconform_pic
13596       fi
13597       ;;
13598
13599     hpux*)
13600       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13601       # not for PA HP-UX.
13602       case $host_cpu in
13603       hppa*64*|ia64*)
13604         # +Z the default
13605         ;;
13606       *)
13607         lt_prog_compiler_pic_F77='-fPIC'
13608         ;;
13609       esac
13610       ;;
13611
13612     *)
13613       lt_prog_compiler_pic_F77='-fPIC'
13614       ;;
13615     esac
13616   else
13617     # PORTME Check for flag to pass linker flags through the system compiler.
13618     case $host_os in
13619     aix*)
13620       lt_prog_compiler_wl_F77='-Wl,'
13621       if test "$host_cpu" = ia64; then
13622         # AIX 5 now supports IA64 processor
13623         lt_prog_compiler_static_F77='-Bstatic'
13624       else
13625         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13626       fi
13627       ;;
13628       darwin*)
13629         # PIC is the default on this platform
13630         # Common symbols not allowed in MH_DYLIB files
13631        case $cc_basename in
13632          xlc*)
13633          lt_prog_compiler_pic_F77='-qnocommon'
13634          lt_prog_compiler_wl_F77='-Wl,'
13635          ;;
13636        esac
13637        ;;
13638
13639     mingw* | pw32* | os2*)
13640       # This hack is so that the source file can tell whether it is being
13641       # built for inclusion in a dll (and should export symbols for example).
13642       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13643       ;;
13644
13645     hpux9* | hpux10* | hpux11*)
13646       lt_prog_compiler_wl_F77='-Wl,'
13647       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13648       # not for PA HP-UX.
13649       case $host_cpu in
13650       hppa*64*|ia64*)
13651         # +Z the default
13652         ;;
13653       *)
13654         lt_prog_compiler_pic_F77='+Z'
13655         ;;
13656       esac
13657       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13658       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13659       ;;
13660
13661     irix5* | irix6* | nonstopux*)
13662       lt_prog_compiler_wl_F77='-Wl,'
13663       # PIC (with -KPIC) is the default.
13664       lt_prog_compiler_static_F77='-non_shared'
13665       ;;
13666
13667     newsos6)
13668       lt_prog_compiler_pic_F77='-KPIC'
13669       lt_prog_compiler_static_F77='-Bstatic'
13670       ;;
13671
13672     linux*)
13673       case $cc_basename in
13674       icc* | ecc*)
13675         lt_prog_compiler_wl_F77='-Wl,'
13676         lt_prog_compiler_pic_F77='-KPIC'
13677         lt_prog_compiler_static_F77='-static'
13678         ;;
13679       pgcc* | pgf77* | pgf90* | pgf95*)
13680         # Portland Group compilers (*not* the Pentium gcc compiler,
13681         # which looks to be a dead project)
13682         lt_prog_compiler_wl_F77='-Wl,'
13683         lt_prog_compiler_pic_F77='-fpic'
13684         lt_prog_compiler_static_F77='-Bstatic'
13685         ;;
13686       ccc*)
13687         lt_prog_compiler_wl_F77='-Wl,'
13688         # All Alpha code is PIC.
13689         lt_prog_compiler_static_F77='-non_shared'
13690         ;;
13691       esac
13692       ;;
13693
13694     osf3* | osf4* | osf5*)
13695       lt_prog_compiler_wl_F77='-Wl,'
13696       # All OSF/1 code is PIC.
13697       lt_prog_compiler_static_F77='-non_shared'
13698       ;;
13699
13700     solaris*)
13701       lt_prog_compiler_pic_F77='-KPIC'
13702       lt_prog_compiler_static_F77='-Bstatic'
13703       case $cc_basename in
13704       f77* | f90* | f95*)
13705         lt_prog_compiler_wl_F77='-Qoption ld ';;
13706       *)
13707         lt_prog_compiler_wl_F77='-Wl,';;
13708       esac
13709       ;;
13710
13711     sunos4*)
13712       lt_prog_compiler_wl_F77='-Qoption ld '
13713       lt_prog_compiler_pic_F77='-PIC'
13714       lt_prog_compiler_static_F77='-Bstatic'
13715       ;;
13716
13717     sysv4 | sysv4.2uw2* | sysv4.3*)
13718       lt_prog_compiler_wl_F77='-Wl,'
13719       lt_prog_compiler_pic_F77='-KPIC'
13720       lt_prog_compiler_static_F77='-Bstatic'
13721       ;;
13722
13723     sysv4*MP*)
13724       if test -d /usr/nec ;then
13725         lt_prog_compiler_pic_F77='-Kconform_pic'
13726         lt_prog_compiler_static_F77='-Bstatic'
13727       fi
13728       ;;
13729
13730     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13731       lt_prog_compiler_wl_F77='-Wl,'
13732       lt_prog_compiler_pic_F77='-KPIC'
13733       lt_prog_compiler_static_F77='-Bstatic'
13734       ;;
13735
13736     unicos*)
13737       lt_prog_compiler_wl_F77='-Wl,'
13738       lt_prog_compiler_can_build_shared_F77=no
13739       ;;
13740
13741     uts4*)
13742       lt_prog_compiler_pic_F77='-pic'
13743       lt_prog_compiler_static_F77='-Bstatic'
13744       ;;
13745
13746     *)
13747       lt_prog_compiler_can_build_shared_F77=no
13748       ;;
13749     esac
13750   fi
13751
13752 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13753 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13754
13755 #
13756 # Check to make sure the PIC flag actually works.
13757 #
13758 if test -n "$lt_prog_compiler_pic_F77"; then
13759
13760 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13761 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13762 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   lt_prog_compiler_pic_works_F77=no
13766   ac_outfile=conftest.$ac_objext
13767    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13768    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13769    # Insert the option either (1) after the last *FLAGS variable, or
13770    # (2) before a word containing "conftest.", or (3) at the end.
13771    # Note that $ac_compile itself does not contain backslashes and begins
13772    # with a dollar sign (not a hyphen), so the echo should work correctly.
13773    # The option is referenced via a variable to avoid confusing sed.
13774    lt_compile=`echo "$ac_compile" | $SED \
13775    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13777    -e 's:$: $lt_compiler_flag:'`
13778    (eval echo "\"\$as_me:13778: $lt_compile\"" >&5)
13779    (eval "$lt_compile" 2>conftest.err)
13780    ac_status=$?
13781    cat conftest.err >&5
13782    echo "$as_me:13782: \$? = $ac_status" >&5
13783    if (exit $ac_status) && test -s "$ac_outfile"; then
13784      # The compiler can only warn and ignore the option if not recognized
13785      # So say no if there are warnings other than the usual output.
13786      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13787      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13788      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13789        lt_prog_compiler_pic_works_F77=yes
13790      fi
13791    fi
13792    $rm conftest*
13793
13794 fi
13795 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13796 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13797
13798 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13799     case $lt_prog_compiler_pic_F77 in
13800      "" | " "*) ;;
13801      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13802      esac
13803 else
13804     lt_prog_compiler_pic_F77=
13805      lt_prog_compiler_can_build_shared_F77=no
13806 fi
13807
13808 fi
13809 case $host_os in
13810   # For platforms which do not support PIC, -DPIC is meaningless:
13811   *djgpp*)
13812     lt_prog_compiler_pic_F77=
13813     ;;
13814   *)
13815     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13816     ;;
13817 esac
13818
13819 #
13820 # Check to make sure the static flag actually works.
13821 #
13822 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13823 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13824 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13825 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13826   echo $ECHO_N "(cached) $ECHO_C" >&6
13827 else
13828   lt_prog_compiler_static_works_F77=no
13829    save_LDFLAGS="$LDFLAGS"
13830    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13831    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13832    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13833      # The linker can only warn and ignore the option if not recognized
13834      # So say no if there are warnings
13835      if test -s conftest.err; then
13836        # Append any errors to the config.log.
13837        cat conftest.err 1>&5
13838        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13839        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13840        if diff conftest.exp conftest.er2 >/dev/null; then
13841          lt_prog_compiler_static_works_F77=yes
13842        fi
13843      else
13844        lt_prog_compiler_static_works_F77=yes
13845      fi
13846    fi
13847    $rm conftest*
13848    LDFLAGS="$save_LDFLAGS"
13849
13850 fi
13851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13852 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13853
13854 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13855     :
13856 else
13857     lt_prog_compiler_static_F77=
13858 fi
13859
13860
13861 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13862 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13863 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13864   echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866   lt_cv_prog_compiler_c_o_F77=no
13867    $rm -r conftest 2>/dev/null
13868    mkdir conftest
13869    cd conftest
13870    mkdir out
13871    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13872
13873    lt_compiler_flag="-o out/conftest2.$ac_objext"
13874    # Insert the option either (1) after the last *FLAGS variable, or
13875    # (2) before a word containing "conftest.", or (3) at the end.
13876    # Note that $ac_compile itself does not contain backslashes and begins
13877    # with a dollar sign (not a hyphen), so the echo should work correctly.
13878    lt_compile=`echo "$ac_compile" | $SED \
13879    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13880    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13881    -e 's:$: $lt_compiler_flag:'`
13882    (eval echo "\"\$as_me:13882: $lt_compile\"" >&5)
13883    (eval "$lt_compile" 2>out/conftest.err)
13884    ac_status=$?
13885    cat out/conftest.err >&5
13886    echo "$as_me:13886: \$? = $ac_status" >&5
13887    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13888    then
13889      # The compiler can only warn and ignore the option if not recognized
13890      # So say no if there are warnings
13891      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13892      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13893      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13894        lt_cv_prog_compiler_c_o_F77=yes
13895      fi
13896    fi
13897    chmod u+w . 2>&5
13898    $rm conftest*
13899    # SGI C++ compiler will create directory out/ii_files/ for
13900    # template instantiation
13901    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13902    $rm out/* && rmdir out
13903    cd ..
13904    rmdir conftest
13905    $rm conftest*
13906
13907 fi
13908 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13909 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13910
13911
13912 hard_links="nottested"
13913 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13914   # do not overwrite the value of need_locks provided by the user
13915   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13916 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13917   hard_links=yes
13918   $rm conftest*
13919   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13920   touch conftest.a
13921   ln conftest.a conftest.b 2>&5 || hard_links=no
13922   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13923   { echo "$as_me:$LINENO: result: $hard_links" >&5
13924 echo "${ECHO_T}$hard_links" >&6; }
13925   if test "$hard_links" = no; then
13926     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13927 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13928     need_locks=warn
13929   fi
13930 else
13931   need_locks=no
13932 fi
13933
13934 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13935 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13936
13937   runpath_var=
13938   allow_undefined_flag_F77=
13939   enable_shared_with_static_runtimes_F77=no
13940   archive_cmds_F77=
13941   archive_expsym_cmds_F77=
13942   old_archive_From_new_cmds_F77=
13943   old_archive_from_expsyms_cmds_F77=
13944   export_dynamic_flag_spec_F77=
13945   whole_archive_flag_spec_F77=
13946   thread_safe_flag_spec_F77=
13947   hardcode_libdir_flag_spec_F77=
13948   hardcode_libdir_flag_spec_ld_F77=
13949   hardcode_libdir_separator_F77=
13950   hardcode_direct_F77=no
13951   hardcode_minus_L_F77=no
13952   hardcode_shlibpath_var_F77=unsupported
13953   link_all_deplibs_F77=unknown
13954   hardcode_automatic_F77=no
13955   module_cmds_F77=
13956   module_expsym_cmds_F77=
13957   always_export_symbols_F77=no
13958   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13959   # include_expsyms should be a list of space-separated symbols to be *always*
13960   # included in the symbol list
13961   include_expsyms_F77=
13962   # exclude_expsyms can be an extended regexp of symbols to exclude
13963   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13964   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13965   # as well as any symbol that contains `d'.
13966   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13967   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13968   # platforms (ab)use it in PIC code, but their linkers get confused if
13969   # the symbol is explicitly referenced.  Since portable code cannot
13970   # rely on this symbol name, it's probably fine to never include it in
13971   # preloaded symbol tables.
13972   extract_expsyms_cmds=
13973   # Just being paranoid about ensuring that cc_basename is set.
13974   for cc_temp in $compiler""; do
13975   case $cc_temp in
13976     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13977     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13978     \-*) ;;
13979     *) break;;
13980   esac
13981 done
13982 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13983
13984   case $host_os in
13985   cygwin* | mingw* | pw32*)
13986     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13987     # When not using gcc, we currently assume that we are using
13988     # Microsoft Visual C++.
13989     if test "$GCC" != yes; then
13990       with_gnu_ld=no
13991     fi
13992     ;;
13993   interix*)
13994     # we just hope/assume this is gcc and not c89 (= MSVC++)
13995     with_gnu_ld=yes
13996     ;;
13997   openbsd*)
13998     with_gnu_ld=no
13999     ;;
14000   esac
14001
14002   ld_shlibs_F77=yes
14003   if test "$with_gnu_ld" = yes; then
14004     # If archive_cmds runs LD, not CC, wlarc should be empty
14005     wlarc='${wl}'
14006
14007     # Set some defaults for GNU ld with shared library support. These
14008     # are reset later if shared libraries are not supported. Putting them
14009     # here allows them to be overridden if necessary.
14010     runpath_var=LD_RUN_PATH
14011     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14012     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14013     # ancient GNU ld didn't support --whole-archive et. al.
14014     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14015         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14016       else
14017         whole_archive_flag_spec_F77=
14018     fi
14019     supports_anon_versioning=no
14020     case `$LD -v 2>/dev/null` in
14021       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14022       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14023       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14024       *\ 2.11.*) ;; # other 2.11 versions
14025       *) supports_anon_versioning=yes ;;
14026     esac
14027
14028     # See if GNU ld supports shared libraries.
14029     case $host_os in
14030     aix3* | aix4* | aix5*)
14031       # On AIX/PPC, the GNU linker is very broken
14032       if test "$host_cpu" != ia64; then
14033         ld_shlibs_F77=no
14034         cat <<EOF 1>&2
14035
14036 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14037 *** to be unable to reliably create shared libraries on AIX.
14038 *** Therefore, libtool is disabling shared libraries support.  If you
14039 *** really care for shared libraries, you may want to modify your PATH
14040 *** so that a non-GNU linker is found, and then restart.
14041
14042 EOF
14043       fi
14044       ;;
14045
14046     amigaos*)
14047       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)'
14048       hardcode_libdir_flag_spec_F77='-L$libdir'
14049       hardcode_minus_L_F77=yes
14050
14051       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14052       # that the semantics of dynamic libraries on AmigaOS, at least up
14053       # to version 4, is to share data among multiple programs linked
14054       # with the same dynamic library.  Since this doesn't match the
14055       # behavior of shared libraries on other platforms, we can't use
14056       # them.
14057       ld_shlibs_F77=no
14058       ;;
14059
14060     beos*)
14061       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14062         allow_undefined_flag_F77=unsupported
14063         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14064         # support --undefined.  This deserves some investigation.  FIXME
14065         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14066       else
14067         ld_shlibs_F77=no
14068       fi
14069       ;;
14070
14071     cygwin* | mingw* | pw32*)
14072       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14073       # as there is no search path for DLLs.
14074       hardcode_libdir_flag_spec_F77='-L$libdir'
14075       allow_undefined_flag_F77=unsupported
14076       always_export_symbols_F77=no
14077       enable_shared_with_static_runtimes_F77=yes
14078       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14079
14080       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14081         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14082         # If the export-symbols file already is a .def file (1st line
14083         # is EXPORTS), use it as is; otherwise, prepend...
14084         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14085           cp $export_symbols $output_objdir/$soname.def;
14086         else
14087           echo EXPORTS > $output_objdir/$soname.def;
14088           cat $export_symbols >> $output_objdir/$soname.def;
14089         fi~
14090         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14091       else
14092         ld_shlibs_F77=no
14093       fi
14094       ;;
14095
14096     interix3*)
14097       hardcode_direct_F77=no
14098       hardcode_shlibpath_var_F77=no
14099       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14100       export_dynamic_flag_spec_F77='${wl}-E'
14101       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14102       # Instead, shared libraries are loaded at an image base (0x10000000 by
14103       # default) and relocated if they conflict, which is a slow very memory
14104       # consuming and fragmenting process.  To avoid this, we pick a random,
14105       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14106       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14107       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'
14108       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'
14109       ;;
14110
14111     linux*)
14112       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14113         tmp_addflag=
14114         case $cc_basename,$host_cpu in
14115         pgcc*)                          # Portland Group C compiler
14116           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'
14117           tmp_addflag=' $pic_flag'
14118           ;;
14119         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14120           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'
14121           tmp_addflag=' $pic_flag -Mnomain' ;;
14122         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14123           tmp_addflag=' -i_dynamic' ;;
14124         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14125           tmp_addflag=' -i_dynamic -nofor_main' ;;
14126         ifc* | ifort*)                  # Intel Fortran compiler
14127           tmp_addflag=' -nofor_main' ;;
14128         esac
14129         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14130
14131         if test $supports_anon_versioning = yes; then
14132           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14133   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14134   $echo "local: *; };" >> $output_objdir/$libname.ver~
14135           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14136         fi
14137       else
14138         ld_shlibs_F77=no
14139       fi
14140       ;;
14141
14142     netbsd*)
14143       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14144         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14145         wlarc=
14146       else
14147         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14148         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14149       fi
14150       ;;
14151
14152     solaris*)
14153       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14154         ld_shlibs_F77=no
14155         cat <<EOF 1>&2
14156
14157 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14158 *** create shared libraries on Solaris systems.  Therefore, libtool
14159 *** is disabling shared libraries support.  We urge you to upgrade GNU
14160 *** binutils to release 2.9.1 or newer.  Another option is to modify
14161 *** your PATH or compiler configuration so that the native linker is
14162 *** used, and then restart.
14163
14164 EOF
14165       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14166         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14167         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14168       else
14169         ld_shlibs_F77=no
14170       fi
14171       ;;
14172
14173     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14174       case `$LD -v 2>&1` in
14175         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14176         ld_shlibs_F77=no
14177         cat <<_LT_EOF 1>&2
14178
14179 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14180 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14181 *** is disabling shared libraries support.  We urge you to upgrade GNU
14182 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14183 *** your PATH or compiler configuration so that the native linker is
14184 *** used, and then restart.
14185
14186 _LT_EOF
14187         ;;
14188         *)
14189           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14190             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14191             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14192             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14193           else
14194             ld_shlibs_F77=no
14195           fi
14196         ;;
14197       esac
14198       ;;
14199
14200     sunos4*)
14201       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14202       wlarc=
14203       hardcode_direct_F77=yes
14204       hardcode_shlibpath_var_F77=no
14205       ;;
14206
14207     *)
14208       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14209         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14210         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14211       else
14212         ld_shlibs_F77=no
14213       fi
14214       ;;
14215     esac
14216
14217     if test "$ld_shlibs_F77" = no; then
14218       runpath_var=
14219       hardcode_libdir_flag_spec_F77=
14220       export_dynamic_flag_spec_F77=
14221       whole_archive_flag_spec_F77=
14222     fi
14223   else
14224     # PORTME fill in a description of your system's linker (not GNU ld)
14225     case $host_os in
14226     aix3*)
14227       allow_undefined_flag_F77=unsupported
14228       always_export_symbols_F77=yes
14229       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'
14230       # Note: this linker hardcodes the directories in LIBPATH if there
14231       # are no directories specified by -L.
14232       hardcode_minus_L_F77=yes
14233       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14234         # Neither direct hardcoding nor static linking is supported with a
14235         # broken collect2.
14236         hardcode_direct_F77=unsupported
14237       fi
14238       ;;
14239
14240     aix4* | aix5*)
14241       if test "$host_cpu" = ia64; then
14242         # On IA64, the linker does run time linking by default, so we don't
14243         # have to do anything special.
14244         aix_use_runtimelinking=no
14245         exp_sym_flag='-Bexport'
14246         no_entry_flag=""
14247       else
14248         # If we're using GNU nm, then we don't want the "-C" option.
14249         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14250         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14251           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'
14252         else
14253           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'
14254         fi
14255         aix_use_runtimelinking=no
14256
14257         # Test if we are trying to use run time linking or normal
14258         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14259         # need to do runtime linking.
14260         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14261           for ld_flag in $LDFLAGS; do
14262           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14263             aix_use_runtimelinking=yes
14264             break
14265           fi
14266           done
14267           ;;
14268         esac
14269
14270         exp_sym_flag='-bexport'
14271         no_entry_flag='-bnoentry'
14272       fi
14273
14274       # When large executables or shared objects are built, AIX ld can
14275       # have problems creating the table of contents.  If linking a library
14276       # or program results in "error TOC overflow" add -mminimal-toc to
14277       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14278       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14279
14280       archive_cmds_F77=''
14281       hardcode_direct_F77=yes
14282       hardcode_libdir_separator_F77=':'
14283       link_all_deplibs_F77=yes
14284
14285       if test "$GCC" = yes; then
14286         case $host_os in aix4.[012]|aix4.[012].*)
14287         # We only want to do this on AIX 4.2 and lower, the check
14288         # below for broken collect2 doesn't work under 4.3+
14289           collect2name=`${CC} -print-prog-name=collect2`
14290           if test -f "$collect2name" && \
14291            strings "$collect2name" | grep resolve_lib_name >/dev/null
14292           then
14293           # We have reworked collect2
14294           hardcode_direct_F77=yes
14295           else
14296           # We have old collect2
14297           hardcode_direct_F77=unsupported
14298           # It fails to find uninstalled libraries when the uninstalled
14299           # path is not listed in the libpath.  Setting hardcode_minus_L
14300           # to unsupported forces relinking
14301           hardcode_minus_L_F77=yes
14302           hardcode_libdir_flag_spec_F77='-L$libdir'
14303           hardcode_libdir_separator_F77=
14304           fi
14305           ;;
14306         esac
14307         shared_flag='-shared'
14308         if test "$aix_use_runtimelinking" = yes; then
14309           shared_flag="$shared_flag "'${wl}-G'
14310         fi
14311       else
14312         # not using gcc
14313         if test "$host_cpu" = ia64; then
14314         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14315         # chokes on -Wl,-G. The following line is correct:
14316           shared_flag='-G'
14317         else
14318           if test "$aix_use_runtimelinking" = yes; then
14319             shared_flag='${wl}-G'
14320           else
14321             shared_flag='${wl}-bM:SRE'
14322           fi
14323         fi
14324       fi
14325
14326       # It seems that -bexpall does not export symbols beginning with
14327       # underscore (_), so it is better to generate a list of symbols to export.
14328       always_export_symbols_F77=yes
14329       if test "$aix_use_runtimelinking" = yes; then
14330         # Warning - without using the other runtime loading flags (-brtl),
14331         # -berok will link without error, but may produce a broken library.
14332         allow_undefined_flag_F77='-berok'
14333        # Determine the default libpath from the value encoded in an empty executable.
14334        cat >conftest.$ac_ext <<_ACEOF
14335       program main
14336
14337       end
14338 _ACEOF
14339 rm -f conftest.$ac_objext conftest$ac_exeext
14340 if { (ac_try="$ac_link"
14341 case "(($ac_try" in
14342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343   *) ac_try_echo=$ac_try;;
14344 esac
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346   (eval "$ac_link") 2>conftest.er1
14347   ac_status=$?
14348   grep -v '^ *+' conftest.er1 >conftest.err
14349   rm -f conftest.er1
14350   cat conftest.err >&5
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); } && {
14353          test -z "$ac_f77_werror_flag" ||
14354          test ! -s conftest.err
14355        } && test -s conftest$ac_exeext &&
14356        $as_test_x conftest$ac_exeext; then
14357
14358 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14359 }'`
14360 # Check for a 64-bit object if we didn't find anything.
14361 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; }
14362 }'`; fi
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367
14368 fi
14369
14370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14371       conftest$ac_exeext conftest.$ac_ext
14372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14373
14374        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14375         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"
14376        else
14377         if test "$host_cpu" = ia64; then
14378           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14379           allow_undefined_flag_F77="-z nodefs"
14380           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"
14381         else
14382          # Determine the default libpath from the value encoded in an empty executable.
14383          cat >conftest.$ac_ext <<_ACEOF
14384       program main
14385
14386       end
14387 _ACEOF
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392   *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395   (eval "$ac_link") 2>conftest.er1
14396   ac_status=$?
14397   grep -v '^ *+' conftest.er1 >conftest.err
14398   rm -f conftest.er1
14399   cat conftest.err >&5
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } && {
14402          test -z "$ac_f77_werror_flag" ||
14403          test ! -s conftest.err
14404        } && test -s conftest$ac_exeext &&
14405        $as_test_x conftest$ac_exeext; then
14406
14407 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14408 }'`
14409 # Check for a 64-bit object if we didn't find anything.
14410 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; }
14411 }'`; fi
14412 else
14413   echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14415
14416
14417 fi
14418
14419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14420       conftest$ac_exeext conftest.$ac_ext
14421 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14422
14423          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14424           # Warning - without using the other run time loading flags,
14425           # -berok will link without error, but may produce a broken library.
14426           no_undefined_flag_F77=' ${wl}-bernotok'
14427           allow_undefined_flag_F77=' ${wl}-berok'
14428           # Exported symbols can be pulled into shared objects from archives
14429           whole_archive_flag_spec_F77='$convenience'
14430           archive_cmds_need_lc_F77=yes
14431           # This is similar to how AIX traditionally builds its shared libraries.
14432           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'
14433         fi
14434       fi
14435       ;;
14436
14437     amigaos*)
14438       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)'
14439       hardcode_libdir_flag_spec_F77='-L$libdir'
14440       hardcode_minus_L_F77=yes
14441       # see comment about different semantics on the GNU ld section
14442       ld_shlibs_F77=no
14443       ;;
14444
14445     bsdi[45]*)
14446       export_dynamic_flag_spec_F77=-rdynamic
14447       ;;
14448
14449     cygwin* | mingw* | pw32*)
14450       # When not using gcc, we currently assume that we are using
14451       # Microsoft Visual C++.
14452       # hardcode_libdir_flag_spec is actually meaningless, as there is
14453       # no search path for DLLs.
14454       hardcode_libdir_flag_spec_F77=' '
14455       allow_undefined_flag_F77=unsupported
14456       # Tell ltmain to make .lib files, not .a files.
14457       libext=lib
14458       # Tell ltmain to make .dll files, not .so files.
14459       shrext_cmds=".dll"
14460       # FIXME: Setting linknames here is a bad hack.
14461       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14462       # The linker will automatically build a .lib file if we build a DLL.
14463       old_archive_From_new_cmds_F77='true'
14464       # FIXME: Should let the user specify the lib program.
14465       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14466       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14467       enable_shared_with_static_runtimes_F77=yes
14468       ;;
14469
14470     darwin* | rhapsody*)
14471       case $host_os in
14472         rhapsody* | darwin1.[012])
14473          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14474          ;;
14475        *) # Darwin 1.3 on
14476          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14477            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14478          else
14479            case ${MACOSX_DEPLOYMENT_TARGET} in
14480              10.[012])
14481                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14482                ;;
14483              10.*)
14484                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14485                ;;
14486            esac
14487          fi
14488          ;;
14489       esac
14490       archive_cmds_need_lc_F77=no
14491       hardcode_direct_F77=no
14492       hardcode_automatic_F77=yes
14493       hardcode_shlibpath_var_F77=unsupported
14494       whole_archive_flag_spec_F77=''
14495       link_all_deplibs_F77=yes
14496     if test "$GCC" = yes ; then
14497         output_verbose_link_cmd='echo'
14498         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14499       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14500       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14501       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}'
14502       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}'
14503     else
14504       case $cc_basename in
14505         xlc*)
14506          output_verbose_link_cmd='echo'
14507          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14508          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14509           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14510          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}'
14511           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}'
14512           ;;
14513        *)
14514          ld_shlibs_F77=no
14515           ;;
14516       esac
14517     fi
14518       ;;
14519
14520     dgux*)
14521       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14522       hardcode_libdir_flag_spec_F77='-L$libdir'
14523       hardcode_shlibpath_var_F77=no
14524       ;;
14525
14526     freebsd1*)
14527       ld_shlibs_F77=no
14528       ;;
14529
14530     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14531     # support.  Future versions do this automatically, but an explicit c++rt0.o
14532     # does not break anything, and helps significantly (at the cost of a little
14533     # extra space).
14534     freebsd2.2*)
14535       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14536       hardcode_libdir_flag_spec_F77='-R$libdir'
14537       hardcode_direct_F77=yes
14538       hardcode_shlibpath_var_F77=no
14539       ;;
14540
14541     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14542     freebsd2*)
14543       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14544       hardcode_direct_F77=yes
14545       hardcode_minus_L_F77=yes
14546       hardcode_shlibpath_var_F77=no
14547       ;;
14548
14549     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14550     freebsd* | kfreebsd*-gnu | dragonfly*)
14551       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14552       hardcode_libdir_flag_spec_F77='-R$libdir'
14553       hardcode_direct_F77=yes
14554       hardcode_shlibpath_var_F77=no
14555       ;;
14556
14557     hpux9*)
14558       if test "$GCC" = yes; then
14559         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'
14560       else
14561         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'
14562       fi
14563       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14564       hardcode_libdir_separator_F77=:
14565       hardcode_direct_F77=yes
14566
14567       # hardcode_minus_L: Not really in the search PATH,
14568       # but as the default location of the library.
14569       hardcode_minus_L_F77=yes
14570       export_dynamic_flag_spec_F77='${wl}-E'
14571       ;;
14572
14573     hpux10*)
14574       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14575         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14576       else
14577         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14578       fi
14579       if test "$with_gnu_ld" = no; then
14580         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14581         hardcode_libdir_separator_F77=:
14582
14583         hardcode_direct_F77=yes
14584         export_dynamic_flag_spec_F77='${wl}-E'
14585
14586         # hardcode_minus_L: Not really in the search PATH,
14587         # but as the default location of the library.
14588         hardcode_minus_L_F77=yes
14589       fi
14590       ;;
14591
14592     hpux11*)
14593       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14594         case $host_cpu in
14595         hppa*64*)
14596           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14597           ;;
14598         ia64*)
14599           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14600           ;;
14601         *)
14602           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14603           ;;
14604         esac
14605       else
14606         case $host_cpu in
14607         hppa*64*)
14608           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14609           ;;
14610         ia64*)
14611           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14612           ;;
14613         *)
14614           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14615           ;;
14616         esac
14617       fi
14618       if test "$with_gnu_ld" = no; then
14619         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14620         hardcode_libdir_separator_F77=:
14621
14622         case $host_cpu in
14623         hppa*64*|ia64*)
14624           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14625           hardcode_direct_F77=no
14626           hardcode_shlibpath_var_F77=no
14627           ;;
14628         *)
14629           hardcode_direct_F77=yes
14630           export_dynamic_flag_spec_F77='${wl}-E'
14631
14632           # hardcode_minus_L: Not really in the search PATH,
14633           # but as the default location of the library.
14634           hardcode_minus_L_F77=yes
14635           ;;
14636         esac
14637       fi
14638       ;;
14639
14640     irix5* | irix6* | nonstopux*)
14641       if test "$GCC" = yes; then
14642         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'
14643       else
14644         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'
14645         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14646       fi
14647       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14648       hardcode_libdir_separator_F77=:
14649       link_all_deplibs_F77=yes
14650       ;;
14651
14652     netbsd*)
14653       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14654         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14655       else
14656         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14657       fi
14658       hardcode_libdir_flag_spec_F77='-R$libdir'
14659       hardcode_direct_F77=yes
14660       hardcode_shlibpath_var_F77=no
14661       ;;
14662
14663     newsos6)
14664       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14665       hardcode_direct_F77=yes
14666       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14667       hardcode_libdir_separator_F77=:
14668       hardcode_shlibpath_var_F77=no
14669       ;;
14670
14671     openbsd*)
14672       hardcode_direct_F77=yes
14673       hardcode_shlibpath_var_F77=no
14674       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14675         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14676         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14677         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14678         export_dynamic_flag_spec_F77='${wl}-E'
14679       else
14680        case $host_os in
14681          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14682            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14683            hardcode_libdir_flag_spec_F77='-R$libdir'
14684            ;;
14685          *)
14686            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14687            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14688            ;;
14689        esac
14690       fi
14691       ;;
14692
14693     os2*)
14694       hardcode_libdir_flag_spec_F77='-L$libdir'
14695       hardcode_minus_L_F77=yes
14696       allow_undefined_flag_F77=unsupported
14697       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'
14698       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14699       ;;
14700
14701     osf3*)
14702       if test "$GCC" = yes; then
14703         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14704         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'
14705       else
14706         allow_undefined_flag_F77=' -expect_unresolved \*'
14707         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'
14708       fi
14709       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14710       hardcode_libdir_separator_F77=:
14711       ;;
14712
14713     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14714       if test "$GCC" = yes; then
14715         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14716         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'
14717         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14718       else
14719         allow_undefined_flag_F77=' -expect_unresolved \*'
14720         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'
14721         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~
14722         $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'
14723
14724         # Both c and cxx compiler support -rpath directly
14725         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14726       fi
14727       hardcode_libdir_separator_F77=:
14728       ;;
14729
14730     solaris*)
14731       no_undefined_flag_F77=' -z text'
14732       if test "$GCC" = yes; then
14733         wlarc='${wl}'
14734         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14735         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14736           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14737       else
14738         wlarc=''
14739         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14740         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14741         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14742       fi
14743       hardcode_libdir_flag_spec_F77='-R$libdir'
14744       hardcode_shlibpath_var_F77=no
14745       case $host_os in
14746       solaris2.[0-5] | solaris2.[0-5].*) ;;
14747       *)
14748         # The compiler driver will combine linker options so we
14749         # cannot just pass the convience library names through
14750         # without $wl, iff we do not link with $LD.
14751         # Luckily, gcc supports the same syntax we need for Sun Studio.
14752         # Supported since Solaris 2.6 (maybe 2.5.1?)
14753         case $wlarc in
14754         '')
14755           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14756         *)
14757           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' ;;
14758         esac ;;
14759       esac
14760       link_all_deplibs_F77=yes
14761       ;;
14762
14763     sunos4*)
14764       if test "x$host_vendor" = xsequent; then
14765         # Use $CC to link under sequent, because it throws in some extra .o
14766         # files that make .init and .fini sections work.
14767         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14768       else
14769         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14770       fi
14771       hardcode_libdir_flag_spec_F77='-L$libdir'
14772       hardcode_direct_F77=yes
14773       hardcode_minus_L_F77=yes
14774       hardcode_shlibpath_var_F77=no
14775       ;;
14776
14777     sysv4)
14778       case $host_vendor in
14779         sni)
14780           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14781           hardcode_direct_F77=yes # is this really true???
14782         ;;
14783         siemens)
14784           ## LD is ld it makes a PLAMLIB
14785           ## CC just makes a GrossModule.
14786           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14787           reload_cmds_F77='$CC -r -o $output$reload_objs'
14788           hardcode_direct_F77=no
14789         ;;
14790         motorola)
14791           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14792           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14793         ;;
14794       esac
14795       runpath_var='LD_RUN_PATH'
14796       hardcode_shlibpath_var_F77=no
14797       ;;
14798
14799     sysv4.3*)
14800       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14801       hardcode_shlibpath_var_F77=no
14802       export_dynamic_flag_spec_F77='-Bexport'
14803       ;;
14804
14805     sysv4*MP*)
14806       if test -d /usr/nec; then
14807         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14808         hardcode_shlibpath_var_F77=no
14809         runpath_var=LD_RUN_PATH
14810         hardcode_runpath_var=yes
14811         ld_shlibs_F77=yes
14812       fi
14813       ;;
14814
14815     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14816       no_undefined_flag_F77='${wl}-z,text'
14817       archive_cmds_need_lc_F77=no
14818       hardcode_shlibpath_var_F77=no
14819       runpath_var='LD_RUN_PATH'
14820
14821       if test "$GCC" = yes; then
14822         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14823         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14824       else
14825         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14826         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14827       fi
14828       ;;
14829
14830     sysv5* | sco3.2v5* | sco5v6*)
14831       # Note: We can NOT use -z defs as we might desire, because we do not
14832       # link with -lc, and that would cause any symbols used from libc to
14833       # always be unresolved, which means just about no library would
14834       # ever link correctly.  If we're not using GNU ld we use -z text
14835       # though, which does catch some bad symbols but isn't as heavy-handed
14836       # as -z defs.
14837       no_undefined_flag_F77='${wl}-z,text'
14838       allow_undefined_flag_F77='${wl}-z,nodefs'
14839       archive_cmds_need_lc_F77=no
14840       hardcode_shlibpath_var_F77=no
14841       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14842       hardcode_libdir_separator_F77=':'
14843       link_all_deplibs_F77=yes
14844       export_dynamic_flag_spec_F77='${wl}-Bexport'
14845       runpath_var='LD_RUN_PATH'
14846
14847       if test "$GCC" = yes; then
14848         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14849         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14850       else
14851         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14852         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14853       fi
14854       ;;
14855
14856     uts4*)
14857       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14858       hardcode_libdir_flag_spec_F77='-L$libdir'
14859       hardcode_shlibpath_var_F77=no
14860       ;;
14861
14862     *)
14863       ld_shlibs_F77=no
14864       ;;
14865     esac
14866   fi
14867
14868 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14869 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14870 test "$ld_shlibs_F77" = no && can_build_shared=no
14871
14872 #
14873 # Do we need to explicitly link libc?
14874 #
14875 case "x$archive_cmds_need_lc_F77" in
14876 x|xyes)
14877   # Assume -lc should be added
14878   archive_cmds_need_lc_F77=yes
14879
14880   if test "$enable_shared" = yes && test "$GCC" = yes; then
14881     case $archive_cmds_F77 in
14882     *'~'*)
14883       # FIXME: we may have to deal with multi-command sequences.
14884       ;;
14885     '$CC '*)
14886       # Test whether the compiler implicitly links with -lc since on some
14887       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14888       # to ld, don't add -lc before -lgcc.
14889       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14890 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14891       $rm conftest*
14892       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14893
14894       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14895   (eval $ac_compile) 2>&5
14896   ac_status=$?
14897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898   (exit $ac_status); } 2>conftest.err; then
14899         soname=conftest
14900         lib=conftest
14901         libobjs=conftest.$ac_objext
14902         deplibs=
14903         wl=$lt_prog_compiler_wl_F77
14904         pic_flag=$lt_prog_compiler_pic_F77
14905         compiler_flags=-v
14906         linker_flags=-v
14907         verstring=
14908         output_objdir=.
14909         libname=conftest
14910         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14911         allow_undefined_flag_F77=
14912         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14913   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14914   ac_status=$?
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); }
14917         then
14918           archive_cmds_need_lc_F77=no
14919         else
14920           archive_cmds_need_lc_F77=yes
14921         fi
14922         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14923       else
14924         cat conftest.err 1>&5
14925       fi
14926       $rm conftest*
14927       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14928 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14929       ;;
14930     esac
14931   fi
14932   ;;
14933 esac
14934
14935 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14936 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14937 library_names_spec=
14938 libname_spec='lib$name'
14939 soname_spec=
14940 shrext_cmds=".so"
14941 postinstall_cmds=
14942 postuninstall_cmds=
14943 finish_cmds=
14944 finish_eval=
14945 shlibpath_var=
14946 shlibpath_overrides_runpath=unknown
14947 version_type=none
14948 dynamic_linker="$host_os ld.so"
14949 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14950 if test "$GCC" = yes; then
14951   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14952   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14953     # if the path contains ";" then we assume it to be the separator
14954     # otherwise default to the standard path separator (i.e. ":") - it is
14955     # assumed that no part of a normal pathname contains ";" but that should
14956     # okay in the real world where ";" in dirpaths is itself problematic.
14957     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14958   else
14959     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14960   fi
14961 else
14962   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14963 fi
14964 need_lib_prefix=unknown
14965 hardcode_into_libs=no
14966
14967 # when you set need_version to no, make sure it does not cause -set_version
14968 # flags to be left without arguments
14969 need_version=unknown
14970
14971 case $host_os in
14972 aix3*)
14973   version_type=linux
14974   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14975   shlibpath_var=LIBPATH
14976
14977   # AIX 3 has no versioning support, so we append a major version to the name.
14978   soname_spec='${libname}${release}${shared_ext}$major'
14979   ;;
14980
14981 aix4* | aix5*)
14982   version_type=linux
14983   need_lib_prefix=no
14984   need_version=no
14985   hardcode_into_libs=yes
14986   if test "$host_cpu" = ia64; then
14987     # AIX 5 supports IA64
14988     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14989     shlibpath_var=LD_LIBRARY_PATH
14990   else
14991     # With GCC up to 2.95.x, collect2 would create an import file
14992     # for dependence libraries.  The import file would start with
14993     # the line `#! .'.  This would cause the generated library to
14994     # depend on `.', always an invalid library.  This was fixed in
14995     # development snapshots of GCC prior to 3.0.
14996     case $host_os in
14997       aix4 | aix4.[01] | aix4.[01].*)
14998       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14999            echo ' yes '
15000            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15001         :
15002       else
15003         can_build_shared=no
15004       fi
15005       ;;
15006     esac
15007     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15008     # soname into executable. Probably we can add versioning support to
15009     # collect2, so additional links can be useful in future.
15010     if test "$aix_use_runtimelinking" = yes; then
15011       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15012       # instead of lib<name>.a to let people know that these are not
15013       # typical AIX shared libraries.
15014       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015     else
15016       # We preserve .a as extension for shared libraries through AIX4.2
15017       # and later when we are not doing run time linking.
15018       library_names_spec='${libname}${release}.a $libname.a'
15019       soname_spec='${libname}${release}${shared_ext}$major'
15020     fi
15021     shlibpath_var=LIBPATH
15022   fi
15023   ;;
15024
15025 amigaos*)
15026   library_names_spec='$libname.ixlibrary $libname.a'
15027   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15028   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'
15029   ;;
15030
15031 beos*)
15032   library_names_spec='${libname}${shared_ext}'
15033   dynamic_linker="$host_os ld.so"
15034   shlibpath_var=LIBRARY_PATH
15035   ;;
15036
15037 bsdi[45]*)
15038   version_type=linux
15039   need_version=no
15040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041   soname_spec='${libname}${release}${shared_ext}$major'
15042   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15043   shlibpath_var=LD_LIBRARY_PATH
15044   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15045   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15046   # the default ld.so.conf also contains /usr/contrib/lib and
15047   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15048   # libtool to hard-code these into programs
15049   ;;
15050
15051 cygwin* | mingw* | pw32*)
15052   version_type=windows
15053   shrext_cmds=".dll"
15054   need_version=no
15055   need_lib_prefix=no
15056
15057   case $GCC,$host_os in
15058   yes,cygwin* | yes,mingw* | yes,pw32*)
15059     library_names_spec='$libname.dll.a'
15060     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15061     postinstall_cmds='base_file=`basename \${file}`~
15062       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15063       dldir=$destdir/`dirname \$dlpath`~
15064       test -d \$dldir || mkdir -p \$dldir~
15065       $install_prog $dir/$dlname \$dldir/$dlname~
15066       chmod a+x \$dldir/$dlname'
15067     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15068       dlpath=$dir/\$dldll~
15069        $rm \$dlpath'
15070     shlibpath_overrides_runpath=yes
15071
15072     case $host_os in
15073     cygwin*)
15074       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15075       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15076       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15077       ;;
15078     mingw*)
15079       # MinGW DLLs use traditional 'lib' prefix
15080       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15081       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15082       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15083         # It is most probably a Windows format PATH printed by
15084         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15085         # path with ; separators, and with drive letters. We can handle the
15086         # drive letters (cygwin fileutils understands them), so leave them,
15087         # especially as we might pass files found there to a mingw objdump,
15088         # which wouldn't understand a cygwinified path. Ahh.
15089         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15090       else
15091         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15092       fi
15093       ;;
15094     pw32*)
15095       # pw32 DLLs use 'pw' prefix rather than 'lib'
15096       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15097       ;;
15098     esac
15099     ;;
15100
15101   *)
15102     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15103     ;;
15104   esac
15105   dynamic_linker='Win32 ld.exe'
15106   # FIXME: first we should search . and the directory the executable is in
15107   shlibpath_var=PATH
15108   ;;
15109
15110 darwin* | rhapsody*)
15111   dynamic_linker="$host_os dyld"
15112   version_type=darwin
15113   need_lib_prefix=no
15114   need_version=no
15115   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15116   soname_spec='${libname}${release}${major}$shared_ext'
15117   shlibpath_overrides_runpath=yes
15118   shlibpath_var=DYLD_LIBRARY_PATH
15119   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15120   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15121   if test "$GCC" = yes; then
15122     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"`
15123   else
15124     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15125   fi
15126   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15127   ;;
15128
15129 dgux*)
15130   version_type=linux
15131   need_lib_prefix=no
15132   need_version=no
15133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15134   soname_spec='${libname}${release}${shared_ext}$major'
15135   shlibpath_var=LD_LIBRARY_PATH
15136   ;;
15137
15138 freebsd1*)
15139   dynamic_linker=no
15140   ;;
15141
15142 kfreebsd*-gnu)
15143   version_type=linux
15144   need_lib_prefix=no
15145   need_version=no
15146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15147   soname_spec='${libname}${release}${shared_ext}$major'
15148   shlibpath_var=LD_LIBRARY_PATH
15149   shlibpath_overrides_runpath=no
15150   hardcode_into_libs=yes
15151   dynamic_linker='GNU ld.so'
15152   ;;
15153
15154 freebsd* | dragonfly*)
15155   # DragonFly does not have aout.  When/if they implement a new
15156   # versioning mechanism, adjust this.
15157   if test -x /usr/bin/objformat; then
15158     objformat=`/usr/bin/objformat`
15159   else
15160     case $host_os in
15161     freebsd[123]*) objformat=aout ;;
15162     *) objformat=elf ;;
15163     esac
15164   fi
15165   version_type=freebsd-$objformat
15166   case $version_type in
15167     freebsd-elf*)
15168       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15169       need_version=no
15170       need_lib_prefix=no
15171       ;;
15172     freebsd-*)
15173       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15174       need_version=yes
15175       ;;
15176   esac
15177   shlibpath_var=LD_LIBRARY_PATH
15178   case $host_os in
15179   freebsd2*)
15180     shlibpath_overrides_runpath=yes
15181     ;;
15182   freebsd3.[01]* | freebsdelf3.[01]*)
15183     shlibpath_overrides_runpath=yes
15184     hardcode_into_libs=yes
15185     ;;
15186   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15187   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15188     shlibpath_overrides_runpath=no
15189     hardcode_into_libs=yes
15190     ;;
15191   freebsd*) # from 4.6 on
15192     shlibpath_overrides_runpath=yes
15193     hardcode_into_libs=yes
15194     ;;
15195   esac
15196   ;;
15197
15198 gnu*)
15199   version_type=linux
15200   need_lib_prefix=no
15201   need_version=no
15202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15203   soname_spec='${libname}${release}${shared_ext}$major'
15204   shlibpath_var=LD_LIBRARY_PATH
15205   hardcode_into_libs=yes
15206   ;;
15207
15208 hpux9* | hpux10* | hpux11*)
15209   # Give a soname corresponding to the major version so that dld.sl refuses to
15210   # link against other versions.
15211   version_type=sunos
15212   need_lib_prefix=no
15213   need_version=no
15214   case $host_cpu in
15215   ia64*)
15216     shrext_cmds='.so'
15217     hardcode_into_libs=yes
15218     dynamic_linker="$host_os dld.so"
15219     shlibpath_var=LD_LIBRARY_PATH
15220     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15221     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15222     soname_spec='${libname}${release}${shared_ext}$major'
15223     if test "X$HPUX_IA64_MODE" = X32; then
15224       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15225     else
15226       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15227     fi
15228     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15229     ;;
15230    hppa*64*)
15231      shrext_cmds='.sl'
15232      hardcode_into_libs=yes
15233      dynamic_linker="$host_os dld.sl"
15234      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15235      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15236      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237      soname_spec='${libname}${release}${shared_ext}$major'
15238      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15239      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15240      ;;
15241    *)
15242     shrext_cmds='.sl'
15243     dynamic_linker="$host_os dld.sl"
15244     shlibpath_var=SHLIB_PATH
15245     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15247     soname_spec='${libname}${release}${shared_ext}$major'
15248     ;;
15249   esac
15250   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15251   postinstall_cmds='chmod 555 $lib'
15252   ;;
15253
15254 interix3*)
15255   version_type=linux
15256   need_lib_prefix=no
15257   need_version=no
15258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15259   soname_spec='${libname}${release}${shared_ext}$major'
15260   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15261   shlibpath_var=LD_LIBRARY_PATH
15262   shlibpath_overrides_runpath=no
15263   hardcode_into_libs=yes
15264   ;;
15265
15266 irix5* | irix6* | nonstopux*)
15267   case $host_os in
15268     nonstopux*) version_type=nonstopux ;;
15269     *)
15270         if test "$lt_cv_prog_gnu_ld" = yes; then
15271                 version_type=linux
15272         else
15273                 version_type=irix
15274         fi ;;
15275   esac
15276   need_lib_prefix=no
15277   need_version=no
15278   soname_spec='${libname}${release}${shared_ext}$major'
15279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15280   case $host_os in
15281   irix5* | nonstopux*)
15282     libsuff= shlibsuff=
15283     ;;
15284   *)
15285     case $LD in # libtool.m4 will add one of these switches to LD
15286     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15287       libsuff= shlibsuff= libmagic=32-bit;;
15288     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15289       libsuff=32 shlibsuff=N32 libmagic=N32;;
15290     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15291       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15292     *) libsuff= shlibsuff= libmagic=never-match;;
15293     esac
15294     ;;
15295   esac
15296   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15297   shlibpath_overrides_runpath=no
15298   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15299   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15300   hardcode_into_libs=yes
15301   ;;
15302
15303 # No shared lib support for Linux oldld, aout, or coff.
15304 linux*oldld* | linux*aout* | linux*coff*)
15305   dynamic_linker=no
15306   ;;
15307
15308 # This must be Linux ELF.
15309 linux*)
15310   version_type=linux
15311   need_lib_prefix=no
15312   need_version=no
15313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15314   soname_spec='${libname}${release}${shared_ext}$major'
15315   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15316   shlibpath_var=LD_LIBRARY_PATH
15317   shlibpath_overrides_runpath=no
15318   # This implies no fast_install, which is unacceptable.
15319   # Some rework will be needed to allow for fast_install
15320   # before this can be enabled.
15321   hardcode_into_libs=yes
15322
15323   # Append ld.so.conf contents to the search path
15324   if test -f /etc/ld.so.conf; then
15325     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' ' '`
15326     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15327   fi
15328
15329   # We used to test for /lib/ld.so.1 and disable shared libraries on
15330   # powerpc, because MkLinux only supported shared libraries with the
15331   # GNU dynamic linker.  Since this was broken with cross compilers,
15332   # most powerpc-linux boxes support dynamic linking these days and
15333   # people can always --disable-shared, the test was removed, and we
15334   # assume the GNU/Linux dynamic linker is in use.
15335   dynamic_linker='GNU/Linux ld.so'
15336   ;;
15337
15338 knetbsd*-gnu)
15339   version_type=linux
15340   need_lib_prefix=no
15341   need_version=no
15342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15343   soname_spec='${libname}${release}${shared_ext}$major'
15344   shlibpath_var=LD_LIBRARY_PATH
15345   shlibpath_overrides_runpath=no
15346   hardcode_into_libs=yes
15347   dynamic_linker='GNU ld.so'
15348   ;;
15349
15350 netbsd*)
15351   version_type=sunos
15352   need_lib_prefix=no
15353   need_version=no
15354   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15355     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15356     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15357     dynamic_linker='NetBSD (a.out) ld.so'
15358   else
15359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15360     soname_spec='${libname}${release}${shared_ext}$major'
15361     dynamic_linker='NetBSD ld.elf_so'
15362   fi
15363   shlibpath_var=LD_LIBRARY_PATH
15364   shlibpath_overrides_runpath=yes
15365   hardcode_into_libs=yes
15366   ;;
15367
15368 newsos6)
15369   version_type=linux
15370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371   shlibpath_var=LD_LIBRARY_PATH
15372   shlibpath_overrides_runpath=yes
15373   ;;
15374
15375 nto-qnx*)
15376   version_type=linux
15377   need_lib_prefix=no
15378   need_version=no
15379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380   soname_spec='${libname}${release}${shared_ext}$major'
15381   shlibpath_var=LD_LIBRARY_PATH
15382   shlibpath_overrides_runpath=yes
15383   ;;
15384
15385 openbsd*)
15386   version_type=sunos
15387   sys_lib_dlsearch_path_spec="/usr/lib"
15388   need_lib_prefix=no
15389   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15390   case $host_os in
15391     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15392     *)                         need_version=no  ;;
15393   esac
15394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15395   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15396   shlibpath_var=LD_LIBRARY_PATH
15397   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15398     case $host_os in
15399       openbsd2.[89] | openbsd2.[89].*)
15400         shlibpath_overrides_runpath=no
15401         ;;
15402       *)
15403         shlibpath_overrides_runpath=yes
15404         ;;
15405       esac
15406   else
15407     shlibpath_overrides_runpath=yes
15408   fi
15409   ;;
15410
15411 os2*)
15412   libname_spec='$name'
15413   shrext_cmds=".dll"
15414   need_lib_prefix=no
15415   library_names_spec='$libname${shared_ext} $libname.a'
15416   dynamic_linker='OS/2 ld.exe'
15417   shlibpath_var=LIBPATH
15418   ;;
15419
15420 osf3* | osf4* | osf5*)
15421   version_type=osf
15422   need_lib_prefix=no
15423   need_version=no
15424   soname_spec='${libname}${release}${shared_ext}$major'
15425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426   shlibpath_var=LD_LIBRARY_PATH
15427   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15428   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15429   ;;
15430
15431 solaris*)
15432   version_type=linux
15433   need_lib_prefix=no
15434   need_version=no
15435   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15436   soname_spec='${libname}${release}${shared_ext}$major'
15437   shlibpath_var=LD_LIBRARY_PATH
15438   shlibpath_overrides_runpath=yes
15439   hardcode_into_libs=yes
15440   # ldd complains unless libraries are executable
15441   postinstall_cmds='chmod +x $lib'
15442   ;;
15443
15444 sunos4*)
15445   version_type=sunos
15446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15447   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15448   shlibpath_var=LD_LIBRARY_PATH
15449   shlibpath_overrides_runpath=yes
15450   if test "$with_gnu_ld" = yes; then
15451     need_lib_prefix=no
15452   fi
15453   need_version=yes
15454   ;;
15455
15456 sysv4 | sysv4.3*)
15457   version_type=linux
15458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459   soname_spec='${libname}${release}${shared_ext}$major'
15460   shlibpath_var=LD_LIBRARY_PATH
15461   case $host_vendor in
15462     sni)
15463       shlibpath_overrides_runpath=no
15464       need_lib_prefix=no
15465       export_dynamic_flag_spec='${wl}-Blargedynsym'
15466       runpath_var=LD_RUN_PATH
15467       ;;
15468     siemens)
15469       need_lib_prefix=no
15470       ;;
15471     motorola)
15472       need_lib_prefix=no
15473       need_version=no
15474       shlibpath_overrides_runpath=no
15475       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15476       ;;
15477   esac
15478   ;;
15479
15480 sysv4*MP*)
15481   if test -d /usr/nec ;then
15482     version_type=linux
15483     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15484     soname_spec='$libname${shared_ext}.$major'
15485     shlibpath_var=LD_LIBRARY_PATH
15486   fi
15487   ;;
15488
15489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15490   version_type=freebsd-elf
15491   need_lib_prefix=no
15492   need_version=no
15493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15494   soname_spec='${libname}${release}${shared_ext}$major'
15495   shlibpath_var=LD_LIBRARY_PATH
15496   hardcode_into_libs=yes
15497   if test "$with_gnu_ld" = yes; then
15498     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15499     shlibpath_overrides_runpath=no
15500   else
15501     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15502     shlibpath_overrides_runpath=yes
15503     case $host_os in
15504       sco3.2v5*)
15505         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15506         ;;
15507     esac
15508   fi
15509   sys_lib_dlsearch_path_spec='/usr/lib'
15510   ;;
15511
15512 uts4*)
15513   version_type=linux
15514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515   soname_spec='${libname}${release}${shared_ext}$major'
15516   shlibpath_var=LD_LIBRARY_PATH
15517   ;;
15518
15519 *)
15520   dynamic_linker=no
15521   ;;
15522 esac
15523 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15524 echo "${ECHO_T}$dynamic_linker" >&6; }
15525 test "$dynamic_linker" = no && can_build_shared=no
15526
15527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15528 if test "$GCC" = yes; then
15529   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15530 fi
15531
15532 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15533 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15534 hardcode_action_F77=
15535 if test -n "$hardcode_libdir_flag_spec_F77" || \
15536    test -n "$runpath_var_F77" || \
15537    test "X$hardcode_automatic_F77" = "Xyes" ; then
15538
15539   # We can hardcode non-existant directories.
15540   if test "$hardcode_direct_F77" != no &&
15541      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15542      # have to relink, otherwise we might link with an installed library
15543      # when we should be linking with a yet-to-be-installed one
15544      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15545      test "$hardcode_minus_L_F77" != no; then
15546     # Linking always hardcodes the temporary library directory.
15547     hardcode_action_F77=relink
15548   else
15549     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15550     hardcode_action_F77=immediate
15551   fi
15552 else
15553   # We cannot hardcode anything, or else we can only hardcode existing
15554   # directories.
15555   hardcode_action_F77=unsupported
15556 fi
15557 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15558 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15559
15560 if test "$hardcode_action_F77" = relink; then
15561   # Fast installation is not supported
15562   enable_fast_install=no
15563 elif test "$shlibpath_overrides_runpath" = yes ||
15564      test "$enable_shared" = no; then
15565   # Fast installation is not necessary
15566   enable_fast_install=needless
15567 fi
15568
15569
15570 # The else clause should only fire when bootstrapping the
15571 # libtool distribution, otherwise you forgot to ship ltmain.sh
15572 # with your package, and you will get complaints that there are
15573 # no rules to generate ltmain.sh.
15574 if test -f "$ltmain"; then
15575   # See if we are running on zsh, and set the options which allow our commands through
15576   # without removal of \ escapes.
15577   if test -n "${ZSH_VERSION+set}" ; then
15578     setopt NO_GLOB_SUBST
15579   fi
15580   # Now quote all the things that may contain metacharacters while being
15581   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15582   # variables and quote the copies for generation of the libtool script.
15583   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15584     SED SHELL STRIP \
15585     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15586     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15587     deplibs_check_method reload_flag reload_cmds need_locks \
15588     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15589     lt_cv_sys_global_symbol_to_c_name_address \
15590     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15591     old_postinstall_cmds old_postuninstall_cmds \
15592     compiler_F77 \
15593     CC_F77 \
15594     LD_F77 \
15595     lt_prog_compiler_wl_F77 \
15596     lt_prog_compiler_pic_F77 \
15597     lt_prog_compiler_static_F77 \
15598     lt_prog_compiler_no_builtin_flag_F77 \
15599     export_dynamic_flag_spec_F77 \
15600     thread_safe_flag_spec_F77 \
15601     whole_archive_flag_spec_F77 \
15602     enable_shared_with_static_runtimes_F77 \
15603     old_archive_cmds_F77 \
15604     old_archive_from_new_cmds_F77 \
15605     predep_objects_F77 \
15606     postdep_objects_F77 \
15607     predeps_F77 \
15608     postdeps_F77 \
15609     compiler_lib_search_path_F77 \
15610     archive_cmds_F77 \
15611     archive_expsym_cmds_F77 \
15612     postinstall_cmds_F77 \
15613     postuninstall_cmds_F77 \
15614     old_archive_from_expsyms_cmds_F77 \
15615     allow_undefined_flag_F77 \
15616     no_undefined_flag_F77 \
15617     export_symbols_cmds_F77 \
15618     hardcode_libdir_flag_spec_F77 \
15619     hardcode_libdir_flag_spec_ld_F77 \
15620     hardcode_libdir_separator_F77 \
15621     hardcode_automatic_F77 \
15622     module_cmds_F77 \
15623     module_expsym_cmds_F77 \
15624     lt_cv_prog_compiler_c_o_F77 \
15625     exclude_expsyms_F77 \
15626     include_expsyms_F77; do
15627
15628     case $var in
15629     old_archive_cmds_F77 | \
15630     old_archive_from_new_cmds_F77 | \
15631     archive_cmds_F77 | \
15632     archive_expsym_cmds_F77 | \
15633     module_cmds_F77 | \
15634     module_expsym_cmds_F77 | \
15635     old_archive_from_expsyms_cmds_F77 | \
15636     export_symbols_cmds_F77 | \
15637     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15638     postinstall_cmds | postuninstall_cmds | \
15639     old_postinstall_cmds | old_postuninstall_cmds | \
15640     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15641       # Double-quote double-evaled strings.
15642       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15643       ;;
15644     *)
15645       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15646       ;;
15647     esac
15648   done
15649
15650   case $lt_echo in
15651   *'\$0 --fallback-echo"')
15652     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15653     ;;
15654   esac
15655
15656 cfgfile="$ofile"
15657
15658   cat <<__EOF__ >> "$cfgfile"
15659 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15660
15661 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15662
15663 # Shell to use when invoking shell scripts.
15664 SHELL=$lt_SHELL
15665
15666 # Whether or not to build shared libraries.
15667 build_libtool_libs=$enable_shared
15668
15669 # Whether or not to build static libraries.
15670 build_old_libs=$enable_static
15671
15672 # Whether or not to add -lc for building shared libraries.
15673 build_libtool_need_lc=$archive_cmds_need_lc_F77
15674
15675 # Whether or not to disallow shared libs when runtime libs are static
15676 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15677
15678 # Whether or not to optimize for fast installation.
15679 fast_install=$enable_fast_install
15680
15681 # The host system.
15682 host_alias=$host_alias
15683 host=$host
15684 host_os=$host_os
15685
15686 # The build system.
15687 build_alias=$build_alias
15688 build=$build
15689 build_os=$build_os
15690
15691 # An echo program that does not interpret backslashes.
15692 echo=$lt_echo
15693
15694 # The archiver.
15695 AR=$lt_AR
15696 AR_FLAGS=$lt_AR_FLAGS
15697
15698 # A C compiler.
15699 LTCC=$lt_LTCC
15700
15701 # LTCC compiler flags.
15702 LTCFLAGS=$lt_LTCFLAGS
15703
15704 # A language-specific compiler.
15705 CC=$lt_compiler_F77
15706
15707 # Is the compiler the GNU C compiler?
15708 with_gcc=$GCC_F77
15709
15710 # An ERE matcher.
15711 EGREP=$lt_EGREP
15712
15713 # The linker used to build libraries.
15714 LD=$lt_LD_F77
15715
15716 # Whether we need hard or soft links.
15717 LN_S=$lt_LN_S
15718
15719 # A BSD-compatible nm program.
15720 NM=$lt_NM
15721
15722 # A symbol stripping program
15723 STRIP=$lt_STRIP
15724
15725 # Used to examine libraries when file_magic_cmd begins "file"
15726 MAGIC_CMD=$MAGIC_CMD
15727
15728 # Used on cygwin: DLL creation program.
15729 DLLTOOL="$DLLTOOL"
15730
15731 # Used on cygwin: object dumper.
15732 OBJDUMP="$OBJDUMP"
15733
15734 # Used on cygwin: assembler.
15735 AS="$AS"
15736
15737 # The name of the directory that contains temporary libtool files.
15738 objdir=$objdir
15739
15740 # How to create reloadable object files.
15741 reload_flag=$lt_reload_flag
15742 reload_cmds=$lt_reload_cmds
15743
15744 # How to pass a linker flag through the compiler.
15745 wl=$lt_lt_prog_compiler_wl_F77
15746
15747 # Object file suffix (normally "o").
15748 objext="$ac_objext"
15749
15750 # Old archive suffix (normally "a").
15751 libext="$libext"
15752
15753 # Shared library suffix (normally ".so").
15754 shrext_cmds='$shrext_cmds'
15755
15756 # Executable file suffix (normally "").
15757 exeext="$exeext"
15758
15759 # Additional compiler flags for building library objects.
15760 pic_flag=$lt_lt_prog_compiler_pic_F77
15761 pic_mode=$pic_mode
15762
15763 # What is the maximum length of a command?
15764 max_cmd_len=$lt_cv_sys_max_cmd_len
15765
15766 # Does compiler simultaneously support -c and -o options?
15767 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15768
15769 # Must we lock files when doing compilation?
15770 need_locks=$lt_need_locks
15771
15772 # Do we need the lib prefix for modules?
15773 need_lib_prefix=$need_lib_prefix
15774
15775 # Do we need a version for libraries?
15776 need_version=$need_version
15777
15778 # Whether dlopen is supported.
15779 dlopen_support=$enable_dlopen
15780
15781 # Whether dlopen of programs is supported.
15782 dlopen_self=$enable_dlopen_self
15783
15784 # Whether dlopen of statically linked programs is supported.
15785 dlopen_self_static=$enable_dlopen_self_static
15786
15787 # Compiler flag to prevent dynamic linking.
15788 link_static_flag=$lt_lt_prog_compiler_static_F77
15789
15790 # Compiler flag to turn off builtin functions.
15791 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15792
15793 # Compiler flag to allow reflexive dlopens.
15794 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15795
15796 # Compiler flag to generate shared objects directly from archives.
15797 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15798
15799 # Compiler flag to generate thread-safe objects.
15800 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15801
15802 # Library versioning type.
15803 version_type=$version_type
15804
15805 # Format of library name prefix.
15806 libname_spec=$lt_libname_spec
15807
15808 # List of archive names.  First name is the real one, the rest are links.
15809 # The last name is the one that the linker finds with -lNAME.
15810 library_names_spec=$lt_library_names_spec
15811
15812 # The coded name of the library, if different from the real name.
15813 soname_spec=$lt_soname_spec
15814
15815 # Commands used to build and install an old-style archive.
15816 RANLIB=$lt_RANLIB
15817 old_archive_cmds=$lt_old_archive_cmds_F77
15818 old_postinstall_cmds=$lt_old_postinstall_cmds
15819 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15820
15821 # Create an old-style archive from a shared archive.
15822 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15823
15824 # Create a temporary old-style archive to link instead of a shared archive.
15825 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15826
15827 # Commands used to build and install a shared archive.
15828 archive_cmds=$lt_archive_cmds_F77
15829 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15830 postinstall_cmds=$lt_postinstall_cmds
15831 postuninstall_cmds=$lt_postuninstall_cmds
15832
15833 # Commands used to build a loadable module (assumed same as above if empty)
15834 module_cmds=$lt_module_cmds_F77
15835 module_expsym_cmds=$lt_module_expsym_cmds_F77
15836
15837 # Commands to strip libraries.
15838 old_striplib=$lt_old_striplib
15839 striplib=$lt_striplib
15840
15841 # Dependencies to place before the objects being linked to create a
15842 # shared library.
15843 predep_objects=$lt_predep_objects_F77
15844
15845 # Dependencies to place after the objects being linked to create a
15846 # shared library.
15847 postdep_objects=$lt_postdep_objects_F77
15848
15849 # Dependencies to place before the objects being linked to create a
15850 # shared library.
15851 predeps=$lt_predeps_F77
15852
15853 # Dependencies to place after the objects being linked to create a
15854 # shared library.
15855 postdeps=$lt_postdeps_F77
15856
15857 # The library search path used internally by the compiler when linking
15858 # a shared library.
15859 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15860
15861 # Method to check whether dependent libraries are shared objects.
15862 deplibs_check_method=$lt_deplibs_check_method
15863
15864 # Command to use when deplibs_check_method == file_magic.
15865 file_magic_cmd=$lt_file_magic_cmd
15866
15867 # Flag that allows shared libraries with undefined symbols to be built.
15868 allow_undefined_flag=$lt_allow_undefined_flag_F77
15869
15870 # Flag that forces no undefined symbols.
15871 no_undefined_flag=$lt_no_undefined_flag_F77
15872
15873 # Commands used to finish a libtool library installation in a directory.
15874 finish_cmds=$lt_finish_cmds
15875
15876 # Same as above, but a single script fragment to be evaled but not shown.
15877 finish_eval=$lt_finish_eval
15878
15879 # Take the output of nm and produce a listing of raw symbols and C names.
15880 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15881
15882 # Transform the output of nm in a proper C declaration
15883 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15884
15885 # Transform the output of nm in a C name address pair
15886 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15887
15888 # This is the shared library runtime path variable.
15889 runpath_var=$runpath_var
15890
15891 # This is the shared library path variable.
15892 shlibpath_var=$shlibpath_var
15893
15894 # Is shlibpath searched before the hard-coded library search path?
15895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15896
15897 # How to hardcode a shared library path into an executable.
15898 hardcode_action=$hardcode_action_F77
15899
15900 # Whether we should hardcode library paths into libraries.
15901 hardcode_into_libs=$hardcode_into_libs
15902
15903 # Flag to hardcode \$libdir into a binary during linking.
15904 # This must work even if \$libdir does not exist.
15905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15906
15907 # If ld is used when linking, flag to hardcode \$libdir into
15908 # a binary during linking. This must work even if \$libdir does
15909 # not exist.
15910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15911
15912 # Whether we need a single -rpath flag with a separated argument.
15913 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15914
15915 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15916 # resulting binary.
15917 hardcode_direct=$hardcode_direct_F77
15918
15919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15920 # resulting binary.
15921 hardcode_minus_L=$hardcode_minus_L_F77
15922
15923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15924 # the resulting binary.
15925 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15926
15927 # Set to yes if building a shared library automatically hardcodes DIR into the library
15928 # and all subsequent libraries and executables linked against it.
15929 hardcode_automatic=$hardcode_automatic_F77
15930
15931 # Variables whose values should be saved in libtool wrapper scripts and
15932 # restored at relink time.
15933 variables_saved_for_relink="$variables_saved_for_relink"
15934
15935 # Whether libtool must link a program against all its dependency libraries.
15936 link_all_deplibs=$link_all_deplibs_F77
15937
15938 # Compile-time system search path for libraries
15939 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15940
15941 # Run-time system search path for libraries
15942 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15943
15944 # Fix the shell variable \$srcfile for the compiler.
15945 fix_srcfile_path="$fix_srcfile_path_F77"
15946
15947 # Set to yes if exported symbols are required.
15948 always_export_symbols=$always_export_symbols_F77
15949
15950 # The commands to list exported symbols.
15951 export_symbols_cmds=$lt_export_symbols_cmds_F77
15952
15953 # The commands to extract the exported symbol list from a shared archive.
15954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15955
15956 # Symbols that should not be listed in the preloaded symbols.
15957 exclude_expsyms=$lt_exclude_expsyms_F77
15958
15959 # Symbols that must always be exported.
15960 include_expsyms=$lt_include_expsyms_F77
15961
15962 # ### END LIBTOOL TAG CONFIG: $tagname
15963
15964 __EOF__
15965
15966
15967 else
15968   # If there is no Makefile yet, we rely on a make rule to execute
15969   # `config.status --recheck' to rerun these tests and create the
15970   # libtool script then.
15971   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15972   if test -f "$ltmain_in"; then
15973     test -f Makefile && make "$ltmain"
15974   fi
15975 fi
15976
15977
15978 ac_ext=c
15979 ac_cpp='$CPP $CPPFLAGS'
15980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15983
15984 CC="$lt_save_CC"
15985
15986         else
15987           tagname=""
15988         fi
15989         ;;
15990
15991       GCJ)
15992         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15993
15994
15995 # Source file extension for Java test sources.
15996 ac_ext=java
15997
15998 # Object file extension for compiled Java test sources.
15999 objext=o
16000 objext_GCJ=$objext
16001
16002 # Code to be used in simple compile tests
16003 lt_simple_compile_test_code="class foo {}\n"
16004
16005 # Code to be used in simple link tests
16006 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16007
16008 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16009
16010 # If no C compiler was specified, use CC.
16011 LTCC=${LTCC-"$CC"}
16012
16013 # If no C compiler flags were specified, use CFLAGS.
16014 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16015
16016 # Allow CC to be a program name with arguments.
16017 compiler=$CC
16018
16019
16020 # save warnings/boilerplate of simple test code
16021 ac_outfile=conftest.$ac_objext
16022 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16023 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16024 _lt_compiler_boilerplate=`cat conftest.err`
16025 $rm conftest*
16026
16027 ac_outfile=conftest.$ac_objext
16028 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16029 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16030 _lt_linker_boilerplate=`cat conftest.err`
16031 $rm conftest*
16032
16033
16034 # Allow CC to be a program name with arguments.
16035 lt_save_CC="$CC"
16036 CC=${GCJ-"gcj"}
16037 compiler=$CC
16038 compiler_GCJ=$CC
16039 for cc_temp in $compiler""; do
16040   case $cc_temp in
16041     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16042     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16043     \-*) ;;
16044     *) break;;
16045   esac
16046 done
16047 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16048
16049
16050 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16051 archive_cmds_need_lc_GCJ=no
16052
16053 old_archive_cmds_GCJ=$old_archive_cmds
16054
16055 ## CAVEAT EMPTOR:
16056 ## There is no encapsulation within the following macros, do not change
16057 ## the running order or otherwise move them around unless you know exactly
16058 ## what you are doing...
16059
16060 lt_prog_compiler_no_builtin_flag_GCJ=
16061
16062 if test "$GCC" = yes; then
16063   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16064
16065
16066 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16067 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16068 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16069   echo $ECHO_N "(cached) $ECHO_C" >&6
16070 else
16071   lt_cv_prog_compiler_rtti_exceptions=no
16072   ac_outfile=conftest.$ac_objext
16073    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16074    lt_compiler_flag="-fno-rtti -fno-exceptions"
16075    # Insert the option either (1) after the last *FLAGS variable, or
16076    # (2) before a word containing "conftest.", or (3) at the end.
16077    # Note that $ac_compile itself does not contain backslashes and begins
16078    # with a dollar sign (not a hyphen), so the echo should work correctly.
16079    # The option is referenced via a variable to avoid confusing sed.
16080    lt_compile=`echo "$ac_compile" | $SED \
16081    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16082    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16083    -e 's:$: $lt_compiler_flag:'`
16084    (eval echo "\"\$as_me:16084: $lt_compile\"" >&5)
16085    (eval "$lt_compile" 2>conftest.err)
16086    ac_status=$?
16087    cat conftest.err >&5
16088    echo "$as_me:16088: \$? = $ac_status" >&5
16089    if (exit $ac_status) && test -s "$ac_outfile"; then
16090      # The compiler can only warn and ignore the option if not recognized
16091      # So say no if there are warnings other than the usual output.
16092      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16093      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16094      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16095        lt_cv_prog_compiler_rtti_exceptions=yes
16096      fi
16097    fi
16098    $rm conftest*
16099
16100 fi
16101 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16102 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16103
16104 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16105     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16106 else
16107     :
16108 fi
16109
16110 fi
16111
16112 lt_prog_compiler_wl_GCJ=
16113 lt_prog_compiler_pic_GCJ=
16114 lt_prog_compiler_static_GCJ=
16115
16116 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16117 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16118
16119   if test "$GCC" = yes; then
16120     lt_prog_compiler_wl_GCJ='-Wl,'
16121     lt_prog_compiler_static_GCJ='-static'
16122
16123     case $host_os in
16124       aix*)
16125       # All AIX code is PIC.
16126       if test "$host_cpu" = ia64; then
16127         # AIX 5 now supports IA64 processor
16128         lt_prog_compiler_static_GCJ='-Bstatic'
16129       fi
16130       ;;
16131
16132     amigaos*)
16133       # FIXME: we need at least 68020 code to build shared libraries, but
16134       # adding the `-m68020' flag to GCC prevents building anything better,
16135       # like `-m68040'.
16136       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16137       ;;
16138
16139     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16140       # PIC is the default for these OSes.
16141       ;;
16142
16143     mingw* | pw32* | os2*)
16144       # This hack is so that the source file can tell whether it is being
16145       # built for inclusion in a dll (and should export symbols for example).
16146       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16147       ;;
16148
16149     darwin* | rhapsody*)
16150       # PIC is the default on this platform
16151       # Common symbols not allowed in MH_DYLIB files
16152       lt_prog_compiler_pic_GCJ='-fno-common'
16153       ;;
16154
16155     interix3*)
16156       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16157       # Instead, we relocate shared libraries at runtime.
16158       ;;
16159
16160     msdosdjgpp*)
16161       # Just because we use GCC doesn't mean we suddenly get shared libraries
16162       # on systems that don't support them.
16163       lt_prog_compiler_can_build_shared_GCJ=no
16164       enable_shared=no
16165       ;;
16166
16167     sysv4*MP*)
16168       if test -d /usr/nec; then
16169         lt_prog_compiler_pic_GCJ=-Kconform_pic
16170       fi
16171       ;;
16172
16173     hpux*)
16174       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16175       # not for PA HP-UX.
16176       case $host_cpu in
16177       hppa*64*|ia64*)
16178         # +Z the default
16179         ;;
16180       *)
16181         lt_prog_compiler_pic_GCJ='-fPIC'
16182         ;;
16183       esac
16184       ;;
16185
16186     *)
16187       lt_prog_compiler_pic_GCJ='-fPIC'
16188       ;;
16189     esac
16190   else
16191     # PORTME Check for flag to pass linker flags through the system compiler.
16192     case $host_os in
16193     aix*)
16194       lt_prog_compiler_wl_GCJ='-Wl,'
16195       if test "$host_cpu" = ia64; then
16196         # AIX 5 now supports IA64 processor
16197         lt_prog_compiler_static_GCJ='-Bstatic'
16198       else
16199         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16200       fi
16201       ;;
16202       darwin*)
16203         # PIC is the default on this platform
16204         # Common symbols not allowed in MH_DYLIB files
16205        case $cc_basename in
16206          xlc*)
16207          lt_prog_compiler_pic_GCJ='-qnocommon'
16208          lt_prog_compiler_wl_GCJ='-Wl,'
16209          ;;
16210        esac
16211        ;;
16212
16213     mingw* | pw32* | os2*)
16214       # This hack is so that the source file can tell whether it is being
16215       # built for inclusion in a dll (and should export symbols for example).
16216       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16217       ;;
16218
16219     hpux9* | hpux10* | hpux11*)
16220       lt_prog_compiler_wl_GCJ='-Wl,'
16221       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16222       # not for PA HP-UX.
16223       case $host_cpu in
16224       hppa*64*|ia64*)
16225         # +Z the default
16226         ;;
16227       *)
16228         lt_prog_compiler_pic_GCJ='+Z'
16229         ;;
16230       esac
16231       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16232       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16233       ;;
16234
16235     irix5* | irix6* | nonstopux*)
16236       lt_prog_compiler_wl_GCJ='-Wl,'
16237       # PIC (with -KPIC) is the default.
16238       lt_prog_compiler_static_GCJ='-non_shared'
16239       ;;
16240
16241     newsos6)
16242       lt_prog_compiler_pic_GCJ='-KPIC'
16243       lt_prog_compiler_static_GCJ='-Bstatic'
16244       ;;
16245
16246     linux*)
16247       case $cc_basename in
16248       icc* | ecc*)
16249         lt_prog_compiler_wl_GCJ='-Wl,'
16250         lt_prog_compiler_pic_GCJ='-KPIC'
16251         lt_prog_compiler_static_GCJ='-static'
16252         ;;
16253       pgcc* | pgf77* | pgf90* | pgf95*)
16254         # Portland Group compilers (*not* the Pentium gcc compiler,
16255         # which looks to be a dead project)
16256         lt_prog_compiler_wl_GCJ='-Wl,'
16257         lt_prog_compiler_pic_GCJ='-fpic'
16258         lt_prog_compiler_static_GCJ='-Bstatic'
16259         ;;
16260       ccc*)
16261         lt_prog_compiler_wl_GCJ='-Wl,'
16262         # All Alpha code is PIC.
16263         lt_prog_compiler_static_GCJ='-non_shared'
16264         ;;
16265       esac
16266       ;;
16267
16268     osf3* | osf4* | osf5*)
16269       lt_prog_compiler_wl_GCJ='-Wl,'
16270       # All OSF/1 code is PIC.
16271       lt_prog_compiler_static_GCJ='-non_shared'
16272       ;;
16273
16274     solaris*)
16275       lt_prog_compiler_pic_GCJ='-KPIC'
16276       lt_prog_compiler_static_GCJ='-Bstatic'
16277       case $cc_basename in
16278       f77* | f90* | f95*)
16279         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16280       *)
16281         lt_prog_compiler_wl_GCJ='-Wl,';;
16282       esac
16283       ;;
16284
16285     sunos4*)
16286       lt_prog_compiler_wl_GCJ='-Qoption ld '
16287       lt_prog_compiler_pic_GCJ='-PIC'
16288       lt_prog_compiler_static_GCJ='-Bstatic'
16289       ;;
16290
16291     sysv4 | sysv4.2uw2* | sysv4.3*)
16292       lt_prog_compiler_wl_GCJ='-Wl,'
16293       lt_prog_compiler_pic_GCJ='-KPIC'
16294       lt_prog_compiler_static_GCJ='-Bstatic'
16295       ;;
16296
16297     sysv4*MP*)
16298       if test -d /usr/nec ;then
16299         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16300         lt_prog_compiler_static_GCJ='-Bstatic'
16301       fi
16302       ;;
16303
16304     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16305       lt_prog_compiler_wl_GCJ='-Wl,'
16306       lt_prog_compiler_pic_GCJ='-KPIC'
16307       lt_prog_compiler_static_GCJ='-Bstatic'
16308       ;;
16309
16310     unicos*)
16311       lt_prog_compiler_wl_GCJ='-Wl,'
16312       lt_prog_compiler_can_build_shared_GCJ=no
16313       ;;
16314
16315     uts4*)
16316       lt_prog_compiler_pic_GCJ='-pic'
16317       lt_prog_compiler_static_GCJ='-Bstatic'
16318       ;;
16319
16320     *)
16321       lt_prog_compiler_can_build_shared_GCJ=no
16322       ;;
16323     esac
16324   fi
16325
16326 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16327 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16328
16329 #
16330 # Check to make sure the PIC flag actually works.
16331 #
16332 if test -n "$lt_prog_compiler_pic_GCJ"; then
16333
16334 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16335 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16336 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16337   echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339   lt_prog_compiler_pic_works_GCJ=no
16340   ac_outfile=conftest.$ac_objext
16341    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16342    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16343    # Insert the option either (1) after the last *FLAGS variable, or
16344    # (2) before a word containing "conftest.", or (3) at the end.
16345    # Note that $ac_compile itself does not contain backslashes and begins
16346    # with a dollar sign (not a hyphen), so the echo should work correctly.
16347    # The option is referenced via a variable to avoid confusing sed.
16348    lt_compile=`echo "$ac_compile" | $SED \
16349    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16350    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16351    -e 's:$: $lt_compiler_flag:'`
16352    (eval echo "\"\$as_me:16352: $lt_compile\"" >&5)
16353    (eval "$lt_compile" 2>conftest.err)
16354    ac_status=$?
16355    cat conftest.err >&5
16356    echo "$as_me:16356: \$? = $ac_status" >&5
16357    if (exit $ac_status) && test -s "$ac_outfile"; then
16358      # The compiler can only warn and ignore the option if not recognized
16359      # So say no if there are warnings other than the usual output.
16360      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16361      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16362      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16363        lt_prog_compiler_pic_works_GCJ=yes
16364      fi
16365    fi
16366    $rm conftest*
16367
16368 fi
16369 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16370 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16371
16372 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16373     case $lt_prog_compiler_pic_GCJ in
16374      "" | " "*) ;;
16375      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16376      esac
16377 else
16378     lt_prog_compiler_pic_GCJ=
16379      lt_prog_compiler_can_build_shared_GCJ=no
16380 fi
16381
16382 fi
16383 case $host_os in
16384   # For platforms which do not support PIC, -DPIC is meaningless:
16385   *djgpp*)
16386     lt_prog_compiler_pic_GCJ=
16387     ;;
16388   *)
16389     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16390     ;;
16391 esac
16392
16393 #
16394 # Check to make sure the static flag actually works.
16395 #
16396 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16397 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16398 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16399 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16400   echo $ECHO_N "(cached) $ECHO_C" >&6
16401 else
16402   lt_prog_compiler_static_works_GCJ=no
16403    save_LDFLAGS="$LDFLAGS"
16404    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16405    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16406    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16407      # The linker can only warn and ignore the option if not recognized
16408      # So say no if there are warnings
16409      if test -s conftest.err; then
16410        # Append any errors to the config.log.
16411        cat conftest.err 1>&5
16412        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16413        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16414        if diff conftest.exp conftest.er2 >/dev/null; then
16415          lt_prog_compiler_static_works_GCJ=yes
16416        fi
16417      else
16418        lt_prog_compiler_static_works_GCJ=yes
16419      fi
16420    fi
16421    $rm conftest*
16422    LDFLAGS="$save_LDFLAGS"
16423
16424 fi
16425 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16426 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16427
16428 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16429     :
16430 else
16431     lt_prog_compiler_static_GCJ=
16432 fi
16433
16434
16435 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16436 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16437 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16438   echo $ECHO_N "(cached) $ECHO_C" >&6
16439 else
16440   lt_cv_prog_compiler_c_o_GCJ=no
16441    $rm -r conftest 2>/dev/null
16442    mkdir conftest
16443    cd conftest
16444    mkdir out
16445    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16446
16447    lt_compiler_flag="-o out/conftest2.$ac_objext"
16448    # Insert the option either (1) after the last *FLAGS variable, or
16449    # (2) before a word containing "conftest.", or (3) at the end.
16450    # Note that $ac_compile itself does not contain backslashes and begins
16451    # with a dollar sign (not a hyphen), so the echo should work correctly.
16452    lt_compile=`echo "$ac_compile" | $SED \
16453    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16454    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16455    -e 's:$: $lt_compiler_flag:'`
16456    (eval echo "\"\$as_me:16456: $lt_compile\"" >&5)
16457    (eval "$lt_compile" 2>out/conftest.err)
16458    ac_status=$?
16459    cat out/conftest.err >&5
16460    echo "$as_me:16460: \$? = $ac_status" >&5
16461    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16462    then
16463      # The compiler can only warn and ignore the option if not recognized
16464      # So say no if there are warnings
16465      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16466      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16467      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16468        lt_cv_prog_compiler_c_o_GCJ=yes
16469      fi
16470    fi
16471    chmod u+w . 2>&5
16472    $rm conftest*
16473    # SGI C++ compiler will create directory out/ii_files/ for
16474    # template instantiation
16475    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16476    $rm out/* && rmdir out
16477    cd ..
16478    rmdir conftest
16479    $rm conftest*
16480
16481 fi
16482 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16483 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16484
16485
16486 hard_links="nottested"
16487 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16488   # do not overwrite the value of need_locks provided by the user
16489   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16490 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16491   hard_links=yes
16492   $rm conftest*
16493   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16494   touch conftest.a
16495   ln conftest.a conftest.b 2>&5 || hard_links=no
16496   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16497   { echo "$as_me:$LINENO: result: $hard_links" >&5
16498 echo "${ECHO_T}$hard_links" >&6; }
16499   if test "$hard_links" = no; then
16500     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16501 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16502     need_locks=warn
16503   fi
16504 else
16505   need_locks=no
16506 fi
16507
16508 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16509 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16510
16511   runpath_var=
16512   allow_undefined_flag_GCJ=
16513   enable_shared_with_static_runtimes_GCJ=no
16514   archive_cmds_GCJ=
16515   archive_expsym_cmds_GCJ=
16516   old_archive_From_new_cmds_GCJ=
16517   old_archive_from_expsyms_cmds_GCJ=
16518   export_dynamic_flag_spec_GCJ=
16519   whole_archive_flag_spec_GCJ=
16520   thread_safe_flag_spec_GCJ=
16521   hardcode_libdir_flag_spec_GCJ=
16522   hardcode_libdir_flag_spec_ld_GCJ=
16523   hardcode_libdir_separator_GCJ=
16524   hardcode_direct_GCJ=no
16525   hardcode_minus_L_GCJ=no
16526   hardcode_shlibpath_var_GCJ=unsupported
16527   link_all_deplibs_GCJ=unknown
16528   hardcode_automatic_GCJ=no
16529   module_cmds_GCJ=
16530   module_expsym_cmds_GCJ=
16531   always_export_symbols_GCJ=no
16532   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16533   # include_expsyms should be a list of space-separated symbols to be *always*
16534   # included in the symbol list
16535   include_expsyms_GCJ=
16536   # exclude_expsyms can be an extended regexp of symbols to exclude
16537   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16538   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16539   # as well as any symbol that contains `d'.
16540   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16541   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16542   # platforms (ab)use it in PIC code, but their linkers get confused if
16543   # the symbol is explicitly referenced.  Since portable code cannot
16544   # rely on this symbol name, it's probably fine to never include it in
16545   # preloaded symbol tables.
16546   extract_expsyms_cmds=
16547   # Just being paranoid about ensuring that cc_basename is set.
16548   for cc_temp in $compiler""; do
16549   case $cc_temp in
16550     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16551     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16552     \-*) ;;
16553     *) break;;
16554   esac
16555 done
16556 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16557
16558   case $host_os in
16559   cygwin* | mingw* | pw32*)
16560     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16561     # When not using gcc, we currently assume that we are using
16562     # Microsoft Visual C++.
16563     if test "$GCC" != yes; then
16564       with_gnu_ld=no
16565     fi
16566     ;;
16567   interix*)
16568     # we just hope/assume this is gcc and not c89 (= MSVC++)
16569     with_gnu_ld=yes
16570     ;;
16571   openbsd*)
16572     with_gnu_ld=no
16573     ;;
16574   esac
16575
16576   ld_shlibs_GCJ=yes
16577   if test "$with_gnu_ld" = yes; then
16578     # If archive_cmds runs LD, not CC, wlarc should be empty
16579     wlarc='${wl}'
16580
16581     # Set some defaults for GNU ld with shared library support. These
16582     # are reset later if shared libraries are not supported. Putting them
16583     # here allows them to be overridden if necessary.
16584     runpath_var=LD_RUN_PATH
16585     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16586     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16587     # ancient GNU ld didn't support --whole-archive et. al.
16588     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16589         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16590       else
16591         whole_archive_flag_spec_GCJ=
16592     fi
16593     supports_anon_versioning=no
16594     case `$LD -v 2>/dev/null` in
16595       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16596       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16597       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16598       *\ 2.11.*) ;; # other 2.11 versions
16599       *) supports_anon_versioning=yes ;;
16600     esac
16601
16602     # See if GNU ld supports shared libraries.
16603     case $host_os in
16604     aix3* | aix4* | aix5*)
16605       # On AIX/PPC, the GNU linker is very broken
16606       if test "$host_cpu" != ia64; then
16607         ld_shlibs_GCJ=no
16608         cat <<EOF 1>&2
16609
16610 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16611 *** to be unable to reliably create shared libraries on AIX.
16612 *** Therefore, libtool is disabling shared libraries support.  If you
16613 *** really care for shared libraries, you may want to modify your PATH
16614 *** so that a non-GNU linker is found, and then restart.
16615
16616 EOF
16617       fi
16618       ;;
16619
16620     amigaos*)
16621       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)'
16622       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16623       hardcode_minus_L_GCJ=yes
16624
16625       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16626       # that the semantics of dynamic libraries on AmigaOS, at least up
16627       # to version 4, is to share data among multiple programs linked
16628       # with the same dynamic library.  Since this doesn't match the
16629       # behavior of shared libraries on other platforms, we can't use
16630       # them.
16631       ld_shlibs_GCJ=no
16632       ;;
16633
16634     beos*)
16635       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16636         allow_undefined_flag_GCJ=unsupported
16637         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16638         # support --undefined.  This deserves some investigation.  FIXME
16639         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16640       else
16641         ld_shlibs_GCJ=no
16642       fi
16643       ;;
16644
16645     cygwin* | mingw* | pw32*)
16646       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16647       # as there is no search path for DLLs.
16648       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16649       allow_undefined_flag_GCJ=unsupported
16650       always_export_symbols_GCJ=no
16651       enable_shared_with_static_runtimes_GCJ=yes
16652       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16653
16654       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16655         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16656         # If the export-symbols file already is a .def file (1st line
16657         # is EXPORTS), use it as is; otherwise, prepend...
16658         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16659           cp $export_symbols $output_objdir/$soname.def;
16660         else
16661           echo EXPORTS > $output_objdir/$soname.def;
16662           cat $export_symbols >> $output_objdir/$soname.def;
16663         fi~
16664         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16665       else
16666         ld_shlibs_GCJ=no
16667       fi
16668       ;;
16669
16670     interix3*)
16671       hardcode_direct_GCJ=no
16672       hardcode_shlibpath_var_GCJ=no
16673       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16674       export_dynamic_flag_spec_GCJ='${wl}-E'
16675       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16676       # Instead, shared libraries are loaded at an image base (0x10000000 by
16677       # default) and relocated if they conflict, which is a slow very memory
16678       # consuming and fragmenting process.  To avoid this, we pick a random,
16679       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16680       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16681       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'
16682       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'
16683       ;;
16684
16685     linux*)
16686       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16687         tmp_addflag=
16688         case $cc_basename,$host_cpu in
16689         pgcc*)                          # Portland Group C compiler
16690           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'
16691           tmp_addflag=' $pic_flag'
16692           ;;
16693         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16694           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'
16695           tmp_addflag=' $pic_flag -Mnomain' ;;
16696         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16697           tmp_addflag=' -i_dynamic' ;;
16698         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16699           tmp_addflag=' -i_dynamic -nofor_main' ;;
16700         ifc* | ifort*)                  # Intel Fortran compiler
16701           tmp_addflag=' -nofor_main' ;;
16702         esac
16703         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16704
16705         if test $supports_anon_versioning = yes; then
16706           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16707   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16708   $echo "local: *; };" >> $output_objdir/$libname.ver~
16709           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16710         fi
16711       else
16712         ld_shlibs_GCJ=no
16713       fi
16714       ;;
16715
16716     netbsd*)
16717       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16718         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16719         wlarc=
16720       else
16721         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16722         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16723       fi
16724       ;;
16725
16726     solaris*)
16727       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16728         ld_shlibs_GCJ=no
16729         cat <<EOF 1>&2
16730
16731 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16732 *** create shared libraries on Solaris systems.  Therefore, libtool
16733 *** is disabling shared libraries support.  We urge you to upgrade GNU
16734 *** binutils to release 2.9.1 or newer.  Another option is to modify
16735 *** your PATH or compiler configuration so that the native linker is
16736 *** used, and then restart.
16737
16738 EOF
16739       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16740         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16741         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16742       else
16743         ld_shlibs_GCJ=no
16744       fi
16745       ;;
16746
16747     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16748       case `$LD -v 2>&1` in
16749         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16750         ld_shlibs_GCJ=no
16751         cat <<_LT_EOF 1>&2
16752
16753 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16754 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16755 *** is disabling shared libraries support.  We urge you to upgrade GNU
16756 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16757 *** your PATH or compiler configuration so that the native linker is
16758 *** used, and then restart.
16759
16760 _LT_EOF
16761         ;;
16762         *)
16763           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16764             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16765             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16766             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16767           else
16768             ld_shlibs_GCJ=no
16769           fi
16770         ;;
16771       esac
16772       ;;
16773
16774     sunos4*)
16775       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16776       wlarc=
16777       hardcode_direct_GCJ=yes
16778       hardcode_shlibpath_var_GCJ=no
16779       ;;
16780
16781     *)
16782       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16783         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16784         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16785       else
16786         ld_shlibs_GCJ=no
16787       fi
16788       ;;
16789     esac
16790
16791     if test "$ld_shlibs_GCJ" = no; then
16792       runpath_var=
16793       hardcode_libdir_flag_spec_GCJ=
16794       export_dynamic_flag_spec_GCJ=
16795       whole_archive_flag_spec_GCJ=
16796     fi
16797   else
16798     # PORTME fill in a description of your system's linker (not GNU ld)
16799     case $host_os in
16800     aix3*)
16801       allow_undefined_flag_GCJ=unsupported
16802       always_export_symbols_GCJ=yes
16803       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'
16804       # Note: this linker hardcodes the directories in LIBPATH if there
16805       # are no directories specified by -L.
16806       hardcode_minus_L_GCJ=yes
16807       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16808         # Neither direct hardcoding nor static linking is supported with a
16809         # broken collect2.
16810         hardcode_direct_GCJ=unsupported
16811       fi
16812       ;;
16813
16814     aix4* | aix5*)
16815       if test "$host_cpu" = ia64; then
16816         # On IA64, the linker does run time linking by default, so we don't
16817         # have to do anything special.
16818         aix_use_runtimelinking=no
16819         exp_sym_flag='-Bexport'
16820         no_entry_flag=""
16821       else
16822         # If we're using GNU nm, then we don't want the "-C" option.
16823         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16824         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16825           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'
16826         else
16827           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'
16828         fi
16829         aix_use_runtimelinking=no
16830
16831         # Test if we are trying to use run time linking or normal
16832         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16833         # need to do runtime linking.
16834         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16835           for ld_flag in $LDFLAGS; do
16836           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16837             aix_use_runtimelinking=yes
16838             break
16839           fi
16840           done
16841           ;;
16842         esac
16843
16844         exp_sym_flag='-bexport'
16845         no_entry_flag='-bnoentry'
16846       fi
16847
16848       # When large executables or shared objects are built, AIX ld can
16849       # have problems creating the table of contents.  If linking a library
16850       # or program results in "error TOC overflow" add -mminimal-toc to
16851       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16852       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16853
16854       archive_cmds_GCJ=''
16855       hardcode_direct_GCJ=yes
16856       hardcode_libdir_separator_GCJ=':'
16857       link_all_deplibs_GCJ=yes
16858
16859       if test "$GCC" = yes; then
16860         case $host_os in aix4.[012]|aix4.[012].*)
16861         # We only want to do this on AIX 4.2 and lower, the check
16862         # below for broken collect2 doesn't work under 4.3+
16863           collect2name=`${CC} -print-prog-name=collect2`
16864           if test -f "$collect2name" && \
16865            strings "$collect2name" | grep resolve_lib_name >/dev/null
16866           then
16867           # We have reworked collect2
16868           hardcode_direct_GCJ=yes
16869           else
16870           # We have old collect2
16871           hardcode_direct_GCJ=unsupported
16872           # It fails to find uninstalled libraries when the uninstalled
16873           # path is not listed in the libpath.  Setting hardcode_minus_L
16874           # to unsupported forces relinking
16875           hardcode_minus_L_GCJ=yes
16876           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16877           hardcode_libdir_separator_GCJ=
16878           fi
16879           ;;
16880         esac
16881         shared_flag='-shared'
16882         if test "$aix_use_runtimelinking" = yes; then
16883           shared_flag="$shared_flag "'${wl}-G'
16884         fi
16885       else
16886         # not using gcc
16887         if test "$host_cpu" = ia64; then
16888         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16889         # chokes on -Wl,-G. The following line is correct:
16890           shared_flag='-G'
16891         else
16892           if test "$aix_use_runtimelinking" = yes; then
16893             shared_flag='${wl}-G'
16894           else
16895             shared_flag='${wl}-bM:SRE'
16896           fi
16897         fi
16898       fi
16899
16900       # It seems that -bexpall does not export symbols beginning with
16901       # underscore (_), so it is better to generate a list of symbols to export.
16902       always_export_symbols_GCJ=yes
16903       if test "$aix_use_runtimelinking" = yes; then
16904         # Warning - without using the other runtime loading flags (-brtl),
16905         # -berok will link without error, but may produce a broken library.
16906         allow_undefined_flag_GCJ='-berok'
16907        # Determine the default libpath from the value encoded in an empty executable.
16908        cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914
16915 int
16916 main ()
16917 {
16918
16919   ;
16920   return 0;
16921 }
16922 _ACEOF
16923 rm -f conftest.$ac_objext conftest$ac_exeext
16924 if { (ac_try="$ac_link"
16925 case "(($ac_try" in
16926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927   *) ac_try_echo=$ac_try;;
16928 esac
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930   (eval "$ac_link") 2>conftest.er1
16931   ac_status=$?
16932   grep -v '^ *+' conftest.er1 >conftest.err
16933   rm -f conftest.er1
16934   cat conftest.err >&5
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); } && {
16937          test -z "$ac_c_werror_flag" ||
16938          test ! -s conftest.err
16939        } && test -s conftest$ac_exeext &&
16940        $as_test_x conftest$ac_exeext; then
16941
16942 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16943 }'`
16944 # Check for a 64-bit object if we didn't find anything.
16945 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; }
16946 }'`; fi
16947 else
16948   echo "$as_me: failed program was:" >&5
16949 sed 's/^/| /' conftest.$ac_ext >&5
16950
16951
16952 fi
16953
16954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16955       conftest$ac_exeext conftest.$ac_ext
16956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16957
16958        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16959         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"
16960        else
16961         if test "$host_cpu" = ia64; then
16962           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16963           allow_undefined_flag_GCJ="-z nodefs"
16964           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"
16965         else
16966          # Determine the default libpath from the value encoded in an empty executable.
16967          cat >conftest.$ac_ext <<_ACEOF
16968 /* confdefs.h.  */
16969 _ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h.  */
16973
16974 int
16975 main ()
16976 {
16977
16978   ;
16979   return 0;
16980 }
16981 _ACEOF
16982 rm -f conftest.$ac_objext conftest$ac_exeext
16983 if { (ac_try="$ac_link"
16984 case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989   (eval "$ac_link") 2>conftest.er1
16990   ac_status=$?
16991   grep -v '^ *+' conftest.er1 >conftest.err
16992   rm -f conftest.er1
16993   cat conftest.err >&5
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } && {
16996          test -z "$ac_c_werror_flag" ||
16997          test ! -s conftest.err
16998        } && test -s conftest$ac_exeext &&
16999        $as_test_x conftest$ac_exeext; then
17000
17001 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17002 }'`
17003 # Check for a 64-bit object if we didn't find anything.
17004 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; }
17005 }'`; fi
17006 else
17007   echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17009
17010
17011 fi
17012
17013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17014       conftest$ac_exeext conftest.$ac_ext
17015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17016
17017          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17018           # Warning - without using the other run time loading flags,
17019           # -berok will link without error, but may produce a broken library.
17020           no_undefined_flag_GCJ=' ${wl}-bernotok'
17021           allow_undefined_flag_GCJ=' ${wl}-berok'
17022           # Exported symbols can be pulled into shared objects from archives
17023           whole_archive_flag_spec_GCJ='$convenience'
17024           archive_cmds_need_lc_GCJ=yes
17025           # This is similar to how AIX traditionally builds its shared libraries.
17026           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'
17027         fi
17028       fi
17029       ;;
17030
17031     amigaos*)
17032       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)'
17033       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17034       hardcode_minus_L_GCJ=yes
17035       # see comment about different semantics on the GNU ld section
17036       ld_shlibs_GCJ=no
17037       ;;
17038
17039     bsdi[45]*)
17040       export_dynamic_flag_spec_GCJ=-rdynamic
17041       ;;
17042
17043     cygwin* | mingw* | pw32*)
17044       # When not using gcc, we currently assume that we are using
17045       # Microsoft Visual C++.
17046       # hardcode_libdir_flag_spec is actually meaningless, as there is
17047       # no search path for DLLs.
17048       hardcode_libdir_flag_spec_GCJ=' '
17049       allow_undefined_flag_GCJ=unsupported
17050       # Tell ltmain to make .lib files, not .a files.
17051       libext=lib
17052       # Tell ltmain to make .dll files, not .so files.
17053       shrext_cmds=".dll"
17054       # FIXME: Setting linknames here is a bad hack.
17055       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17056       # The linker will automatically build a .lib file if we build a DLL.
17057       old_archive_From_new_cmds_GCJ='true'
17058       # FIXME: Should let the user specify the lib program.
17059       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17060       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17061       enable_shared_with_static_runtimes_GCJ=yes
17062       ;;
17063
17064     darwin* | rhapsody*)
17065       case $host_os in
17066         rhapsody* | darwin1.[012])
17067          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17068          ;;
17069        *) # Darwin 1.3 on
17070          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17071            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17072          else
17073            case ${MACOSX_DEPLOYMENT_TARGET} in
17074              10.[012])
17075                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17076                ;;
17077              10.*)
17078                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17079                ;;
17080            esac
17081          fi
17082          ;;
17083       esac
17084       archive_cmds_need_lc_GCJ=no
17085       hardcode_direct_GCJ=no
17086       hardcode_automatic_GCJ=yes
17087       hardcode_shlibpath_var_GCJ=unsupported
17088       whole_archive_flag_spec_GCJ=''
17089       link_all_deplibs_GCJ=yes
17090     if test "$GCC" = yes ; then
17091         output_verbose_link_cmd='echo'
17092         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17093       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17094       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17095       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}'
17096       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}'
17097     else
17098       case $cc_basename in
17099         xlc*)
17100          output_verbose_link_cmd='echo'
17101          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17102          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17103           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17104          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}'
17105           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}'
17106           ;;
17107        *)
17108          ld_shlibs_GCJ=no
17109           ;;
17110       esac
17111     fi
17112       ;;
17113
17114     dgux*)
17115       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17116       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17117       hardcode_shlibpath_var_GCJ=no
17118       ;;
17119
17120     freebsd1*)
17121       ld_shlibs_GCJ=no
17122       ;;
17123
17124     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17125     # support.  Future versions do this automatically, but an explicit c++rt0.o
17126     # does not break anything, and helps significantly (at the cost of a little
17127     # extra space).
17128     freebsd2.2*)
17129       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17130       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17131       hardcode_direct_GCJ=yes
17132       hardcode_shlibpath_var_GCJ=no
17133       ;;
17134
17135     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17136     freebsd2*)
17137       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17138       hardcode_direct_GCJ=yes
17139       hardcode_minus_L_GCJ=yes
17140       hardcode_shlibpath_var_GCJ=no
17141       ;;
17142
17143     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17144     freebsd* | kfreebsd*-gnu | dragonfly*)
17145       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17146       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17147       hardcode_direct_GCJ=yes
17148       hardcode_shlibpath_var_GCJ=no
17149       ;;
17150
17151     hpux9*)
17152       if test "$GCC" = yes; then
17153         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'
17154       else
17155         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'
17156       fi
17157       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17158       hardcode_libdir_separator_GCJ=:
17159       hardcode_direct_GCJ=yes
17160
17161       # hardcode_minus_L: Not really in the search PATH,
17162       # but as the default location of the library.
17163       hardcode_minus_L_GCJ=yes
17164       export_dynamic_flag_spec_GCJ='${wl}-E'
17165       ;;
17166
17167     hpux10*)
17168       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17169         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17170       else
17171         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17172       fi
17173       if test "$with_gnu_ld" = no; then
17174         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17175         hardcode_libdir_separator_GCJ=:
17176
17177         hardcode_direct_GCJ=yes
17178         export_dynamic_flag_spec_GCJ='${wl}-E'
17179
17180         # hardcode_minus_L: Not really in the search PATH,
17181         # but as the default location of the library.
17182         hardcode_minus_L_GCJ=yes
17183       fi
17184       ;;
17185
17186     hpux11*)
17187       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17188         case $host_cpu in
17189         hppa*64*)
17190           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17191           ;;
17192         ia64*)
17193           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17194           ;;
17195         *)
17196           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17197           ;;
17198         esac
17199       else
17200         case $host_cpu in
17201         hppa*64*)
17202           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17203           ;;
17204         ia64*)
17205           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17206           ;;
17207         *)
17208           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17209           ;;
17210         esac
17211       fi
17212       if test "$with_gnu_ld" = no; then
17213         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17214         hardcode_libdir_separator_GCJ=:
17215
17216         case $host_cpu in
17217         hppa*64*|ia64*)
17218           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17219           hardcode_direct_GCJ=no
17220           hardcode_shlibpath_var_GCJ=no
17221           ;;
17222         *)
17223           hardcode_direct_GCJ=yes
17224           export_dynamic_flag_spec_GCJ='${wl}-E'
17225
17226           # hardcode_minus_L: Not really in the search PATH,
17227           # but as the default location of the library.
17228           hardcode_minus_L_GCJ=yes
17229           ;;
17230         esac
17231       fi
17232       ;;
17233
17234     irix5* | irix6* | nonstopux*)
17235       if test "$GCC" = yes; then
17236         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'
17237       else
17238         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'
17239         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17240       fi
17241       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17242       hardcode_libdir_separator_GCJ=:
17243       link_all_deplibs_GCJ=yes
17244       ;;
17245
17246     netbsd*)
17247       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17248         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17249       else
17250         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17251       fi
17252       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17253       hardcode_direct_GCJ=yes
17254       hardcode_shlibpath_var_GCJ=no
17255       ;;
17256
17257     newsos6)
17258       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17259       hardcode_direct_GCJ=yes
17260       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17261       hardcode_libdir_separator_GCJ=:
17262       hardcode_shlibpath_var_GCJ=no
17263       ;;
17264
17265     openbsd*)
17266       hardcode_direct_GCJ=yes
17267       hardcode_shlibpath_var_GCJ=no
17268       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17269         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17270         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17271         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17272         export_dynamic_flag_spec_GCJ='${wl}-E'
17273       else
17274        case $host_os in
17275          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17276            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17277            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17278            ;;
17279          *)
17280            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17281            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17282            ;;
17283        esac
17284       fi
17285       ;;
17286
17287     os2*)
17288       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17289       hardcode_minus_L_GCJ=yes
17290       allow_undefined_flag_GCJ=unsupported
17291       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'
17292       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17293       ;;
17294
17295     osf3*)
17296       if test "$GCC" = yes; then
17297         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17298         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'
17299       else
17300         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17301         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'
17302       fi
17303       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17304       hardcode_libdir_separator_GCJ=:
17305       ;;
17306
17307     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17308       if test "$GCC" = yes; then
17309         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17310         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'
17311         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17312       else
17313         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17314         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'
17315         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~
17316         $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'
17317
17318         # Both c and cxx compiler support -rpath directly
17319         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17320       fi
17321       hardcode_libdir_separator_GCJ=:
17322       ;;
17323
17324     solaris*)
17325       no_undefined_flag_GCJ=' -z text'
17326       if test "$GCC" = yes; then
17327         wlarc='${wl}'
17328         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17329         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17330           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17331       else
17332         wlarc=''
17333         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17334         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17335         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17336       fi
17337       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17338       hardcode_shlibpath_var_GCJ=no
17339       case $host_os in
17340       solaris2.[0-5] | solaris2.[0-5].*) ;;
17341       *)
17342         # The compiler driver will combine linker options so we
17343         # cannot just pass the convience library names through
17344         # without $wl, iff we do not link with $LD.
17345         # Luckily, gcc supports the same syntax we need for Sun Studio.
17346         # Supported since Solaris 2.6 (maybe 2.5.1?)
17347         case $wlarc in
17348         '')
17349           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17350         *)
17351           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' ;;
17352         esac ;;
17353       esac
17354       link_all_deplibs_GCJ=yes
17355       ;;
17356
17357     sunos4*)
17358       if test "x$host_vendor" = xsequent; then
17359         # Use $CC to link under sequent, because it throws in some extra .o
17360         # files that make .init and .fini sections work.
17361         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17362       else
17363         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17364       fi
17365       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17366       hardcode_direct_GCJ=yes
17367       hardcode_minus_L_GCJ=yes
17368       hardcode_shlibpath_var_GCJ=no
17369       ;;
17370
17371     sysv4)
17372       case $host_vendor in
17373         sni)
17374           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17375           hardcode_direct_GCJ=yes # is this really true???
17376         ;;
17377         siemens)
17378           ## LD is ld it makes a PLAMLIB
17379           ## CC just makes a GrossModule.
17380           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17381           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17382           hardcode_direct_GCJ=no
17383         ;;
17384         motorola)
17385           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17386           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17387         ;;
17388       esac
17389       runpath_var='LD_RUN_PATH'
17390       hardcode_shlibpath_var_GCJ=no
17391       ;;
17392
17393     sysv4.3*)
17394       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17395       hardcode_shlibpath_var_GCJ=no
17396       export_dynamic_flag_spec_GCJ='-Bexport'
17397       ;;
17398
17399     sysv4*MP*)
17400       if test -d /usr/nec; then
17401         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17402         hardcode_shlibpath_var_GCJ=no
17403         runpath_var=LD_RUN_PATH
17404         hardcode_runpath_var=yes
17405         ld_shlibs_GCJ=yes
17406       fi
17407       ;;
17408
17409     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17410       no_undefined_flag_GCJ='${wl}-z,text'
17411       archive_cmds_need_lc_GCJ=no
17412       hardcode_shlibpath_var_GCJ=no
17413       runpath_var='LD_RUN_PATH'
17414
17415       if test "$GCC" = yes; then
17416         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17417         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17418       else
17419         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17420         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17421       fi
17422       ;;
17423
17424     sysv5* | sco3.2v5* | sco5v6*)
17425       # Note: We can NOT use -z defs as we might desire, because we do not
17426       # link with -lc, and that would cause any symbols used from libc to
17427       # always be unresolved, which means just about no library would
17428       # ever link correctly.  If we're not using GNU ld we use -z text
17429       # though, which does catch some bad symbols but isn't as heavy-handed
17430       # as -z defs.
17431       no_undefined_flag_GCJ='${wl}-z,text'
17432       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17433       archive_cmds_need_lc_GCJ=no
17434       hardcode_shlibpath_var_GCJ=no
17435       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17436       hardcode_libdir_separator_GCJ=':'
17437       link_all_deplibs_GCJ=yes
17438       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17439       runpath_var='LD_RUN_PATH'
17440
17441       if test "$GCC" = yes; then
17442         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17443         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17444       else
17445         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17446         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17447       fi
17448       ;;
17449
17450     uts4*)
17451       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17452       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17453       hardcode_shlibpath_var_GCJ=no
17454       ;;
17455
17456     *)
17457       ld_shlibs_GCJ=no
17458       ;;
17459     esac
17460   fi
17461
17462 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17463 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17464 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17465
17466 #
17467 # Do we need to explicitly link libc?
17468 #
17469 case "x$archive_cmds_need_lc_GCJ" in
17470 x|xyes)
17471   # Assume -lc should be added
17472   archive_cmds_need_lc_GCJ=yes
17473
17474   if test "$enable_shared" = yes && test "$GCC" = yes; then
17475     case $archive_cmds_GCJ in
17476     *'~'*)
17477       # FIXME: we may have to deal with multi-command sequences.
17478       ;;
17479     '$CC '*)
17480       # Test whether the compiler implicitly links with -lc since on some
17481       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17482       # to ld, don't add -lc before -lgcc.
17483       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17484 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17485       $rm conftest*
17486       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17487
17488       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17489   (eval $ac_compile) 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); } 2>conftest.err; then
17493         soname=conftest
17494         lib=conftest
17495         libobjs=conftest.$ac_objext
17496         deplibs=
17497         wl=$lt_prog_compiler_wl_GCJ
17498         pic_flag=$lt_prog_compiler_pic_GCJ
17499         compiler_flags=-v
17500         linker_flags=-v
17501         verstring=
17502         output_objdir=.
17503         libname=conftest
17504         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17505         allow_undefined_flag_GCJ=
17506         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17507   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }
17511         then
17512           archive_cmds_need_lc_GCJ=no
17513         else
17514           archive_cmds_need_lc_GCJ=yes
17515         fi
17516         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17517       else
17518         cat conftest.err 1>&5
17519       fi
17520       $rm conftest*
17521       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17522 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17523       ;;
17524     esac
17525   fi
17526   ;;
17527 esac
17528
17529 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17530 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17531 library_names_spec=
17532 libname_spec='lib$name'
17533 soname_spec=
17534 shrext_cmds=".so"
17535 postinstall_cmds=
17536 postuninstall_cmds=
17537 finish_cmds=
17538 finish_eval=
17539 shlibpath_var=
17540 shlibpath_overrides_runpath=unknown
17541 version_type=none
17542 dynamic_linker="$host_os ld.so"
17543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17544 if test "$GCC" = yes; then
17545   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17546   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17547     # if the path contains ";" then we assume it to be the separator
17548     # otherwise default to the standard path separator (i.e. ":") - it is
17549     # assumed that no part of a normal pathname contains ";" but that should
17550     # okay in the real world where ";" in dirpaths is itself problematic.
17551     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17552   else
17553     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17554   fi
17555 else
17556   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17557 fi
17558 need_lib_prefix=unknown
17559 hardcode_into_libs=no
17560
17561 # when you set need_version to no, make sure it does not cause -set_version
17562 # flags to be left without arguments
17563 need_version=unknown
17564
17565 case $host_os in
17566 aix3*)
17567   version_type=linux
17568   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17569   shlibpath_var=LIBPATH
17570
17571   # AIX 3 has no versioning support, so we append a major version to the name.
17572   soname_spec='${libname}${release}${shared_ext}$major'
17573   ;;
17574
17575 aix4* | aix5*)
17576   version_type=linux
17577   need_lib_prefix=no
17578   need_version=no
17579   hardcode_into_libs=yes
17580   if test "$host_cpu" = ia64; then
17581     # AIX 5 supports IA64
17582     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17583     shlibpath_var=LD_LIBRARY_PATH
17584   else
17585     # With GCC up to 2.95.x, collect2 would create an import file
17586     # for dependence libraries.  The import file would start with
17587     # the line `#! .'.  This would cause the generated library to
17588     # depend on `.', always an invalid library.  This was fixed in
17589     # development snapshots of GCC prior to 3.0.
17590     case $host_os in
17591       aix4 | aix4.[01] | aix4.[01].*)
17592       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17593            echo ' yes '
17594            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17595         :
17596       else
17597         can_build_shared=no
17598       fi
17599       ;;
17600     esac
17601     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17602     # soname into executable. Probably we can add versioning support to
17603     # collect2, so additional links can be useful in future.
17604     if test "$aix_use_runtimelinking" = yes; then
17605       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17606       # instead of lib<name>.a to let people know that these are not
17607       # typical AIX shared libraries.
17608       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17609     else
17610       # We preserve .a as extension for shared libraries through AIX4.2
17611       # and later when we are not doing run time linking.
17612       library_names_spec='${libname}${release}.a $libname.a'
17613       soname_spec='${libname}${release}${shared_ext}$major'
17614     fi
17615     shlibpath_var=LIBPATH
17616   fi
17617   ;;
17618
17619 amigaos*)
17620   library_names_spec='$libname.ixlibrary $libname.a'
17621   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17622   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'
17623   ;;
17624
17625 beos*)
17626   library_names_spec='${libname}${shared_ext}'
17627   dynamic_linker="$host_os ld.so"
17628   shlibpath_var=LIBRARY_PATH
17629   ;;
17630
17631 bsdi[45]*)
17632   version_type=linux
17633   need_version=no
17634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17635   soname_spec='${libname}${release}${shared_ext}$major'
17636   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17637   shlibpath_var=LD_LIBRARY_PATH
17638   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17639   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17640   # the default ld.so.conf also contains /usr/contrib/lib and
17641   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17642   # libtool to hard-code these into programs
17643   ;;
17644
17645 cygwin* | mingw* | pw32*)
17646   version_type=windows
17647   shrext_cmds=".dll"
17648   need_version=no
17649   need_lib_prefix=no
17650
17651   case $GCC,$host_os in
17652   yes,cygwin* | yes,mingw* | yes,pw32*)
17653     library_names_spec='$libname.dll.a'
17654     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17655     postinstall_cmds='base_file=`basename \${file}`~
17656       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17657       dldir=$destdir/`dirname \$dlpath`~
17658       test -d \$dldir || mkdir -p \$dldir~
17659       $install_prog $dir/$dlname \$dldir/$dlname~
17660       chmod a+x \$dldir/$dlname'
17661     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17662       dlpath=$dir/\$dldll~
17663        $rm \$dlpath'
17664     shlibpath_overrides_runpath=yes
17665
17666     case $host_os in
17667     cygwin*)
17668       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17669       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17670       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17671       ;;
17672     mingw*)
17673       # MinGW DLLs use traditional 'lib' prefix
17674       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17675       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17676       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17677         # It is most probably a Windows format PATH printed by
17678         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17679         # path with ; separators, and with drive letters. We can handle the
17680         # drive letters (cygwin fileutils understands them), so leave them,
17681         # especially as we might pass files found there to a mingw objdump,
17682         # which wouldn't understand a cygwinified path. Ahh.
17683         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17684       else
17685         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17686       fi
17687       ;;
17688     pw32*)
17689       # pw32 DLLs use 'pw' prefix rather than 'lib'
17690       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17691       ;;
17692     esac
17693     ;;
17694
17695   *)
17696     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17697     ;;
17698   esac
17699   dynamic_linker='Win32 ld.exe'
17700   # FIXME: first we should search . and the directory the executable is in
17701   shlibpath_var=PATH
17702   ;;
17703
17704 darwin* | rhapsody*)
17705   dynamic_linker="$host_os dyld"
17706   version_type=darwin
17707   need_lib_prefix=no
17708   need_version=no
17709   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17710   soname_spec='${libname}${release}${major}$shared_ext'
17711   shlibpath_overrides_runpath=yes
17712   shlibpath_var=DYLD_LIBRARY_PATH
17713   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17714   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17715   if test "$GCC" = yes; then
17716     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"`
17717   else
17718     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17719   fi
17720   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17721   ;;
17722
17723 dgux*)
17724   version_type=linux
17725   need_lib_prefix=no
17726   need_version=no
17727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17728   soname_spec='${libname}${release}${shared_ext}$major'
17729   shlibpath_var=LD_LIBRARY_PATH
17730   ;;
17731
17732 freebsd1*)
17733   dynamic_linker=no
17734   ;;
17735
17736 kfreebsd*-gnu)
17737   version_type=linux
17738   need_lib_prefix=no
17739   need_version=no
17740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17741   soname_spec='${libname}${release}${shared_ext}$major'
17742   shlibpath_var=LD_LIBRARY_PATH
17743   shlibpath_overrides_runpath=no
17744   hardcode_into_libs=yes
17745   dynamic_linker='GNU ld.so'
17746   ;;
17747
17748 freebsd* | dragonfly*)
17749   # DragonFly does not have aout.  When/if they implement a new
17750   # versioning mechanism, adjust this.
17751   if test -x /usr/bin/objformat; then
17752     objformat=`/usr/bin/objformat`
17753   else
17754     case $host_os in
17755     freebsd[123]*) objformat=aout ;;
17756     *) objformat=elf ;;
17757     esac
17758   fi
17759   version_type=freebsd-$objformat
17760   case $version_type in
17761     freebsd-elf*)
17762       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17763       need_version=no
17764       need_lib_prefix=no
17765       ;;
17766     freebsd-*)
17767       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17768       need_version=yes
17769       ;;
17770   esac
17771   shlibpath_var=LD_LIBRARY_PATH
17772   case $host_os in
17773   freebsd2*)
17774     shlibpath_overrides_runpath=yes
17775     ;;
17776   freebsd3.[01]* | freebsdelf3.[01]*)
17777     shlibpath_overrides_runpath=yes
17778     hardcode_into_libs=yes
17779     ;;
17780   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17781   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17782     shlibpath_overrides_runpath=no
17783     hardcode_into_libs=yes
17784     ;;
17785   freebsd*) # from 4.6 on
17786     shlibpath_overrides_runpath=yes
17787     hardcode_into_libs=yes
17788     ;;
17789   esac
17790   ;;
17791
17792 gnu*)
17793   version_type=linux
17794   need_lib_prefix=no
17795   need_version=no
17796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17797   soname_spec='${libname}${release}${shared_ext}$major'
17798   shlibpath_var=LD_LIBRARY_PATH
17799   hardcode_into_libs=yes
17800   ;;
17801
17802 hpux9* | hpux10* | hpux11*)
17803   # Give a soname corresponding to the major version so that dld.sl refuses to
17804   # link against other versions.
17805   version_type=sunos
17806   need_lib_prefix=no
17807   need_version=no
17808   case $host_cpu in
17809   ia64*)
17810     shrext_cmds='.so'
17811     hardcode_into_libs=yes
17812     dynamic_linker="$host_os dld.so"
17813     shlibpath_var=LD_LIBRARY_PATH
17814     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17816     soname_spec='${libname}${release}${shared_ext}$major'
17817     if test "X$HPUX_IA64_MODE" = X32; then
17818       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17819     else
17820       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17821     fi
17822     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17823     ;;
17824    hppa*64*)
17825      shrext_cmds='.sl'
17826      hardcode_into_libs=yes
17827      dynamic_linker="$host_os dld.sl"
17828      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17829      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17830      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17831      soname_spec='${libname}${release}${shared_ext}$major'
17832      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17833      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17834      ;;
17835    *)
17836     shrext_cmds='.sl'
17837     dynamic_linker="$host_os dld.sl"
17838     shlibpath_var=SHLIB_PATH
17839     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17840     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17841     soname_spec='${libname}${release}${shared_ext}$major'
17842     ;;
17843   esac
17844   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17845   postinstall_cmds='chmod 555 $lib'
17846   ;;
17847
17848 interix3*)
17849   version_type=linux
17850   need_lib_prefix=no
17851   need_version=no
17852   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17853   soname_spec='${libname}${release}${shared_ext}$major'
17854   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17855   shlibpath_var=LD_LIBRARY_PATH
17856   shlibpath_overrides_runpath=no
17857   hardcode_into_libs=yes
17858   ;;
17859
17860 irix5* | irix6* | nonstopux*)
17861   case $host_os in
17862     nonstopux*) version_type=nonstopux ;;
17863     *)
17864         if test "$lt_cv_prog_gnu_ld" = yes; then
17865                 version_type=linux
17866         else
17867                 version_type=irix
17868         fi ;;
17869   esac
17870   need_lib_prefix=no
17871   need_version=no
17872   soname_spec='${libname}${release}${shared_ext}$major'
17873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17874   case $host_os in
17875   irix5* | nonstopux*)
17876     libsuff= shlibsuff=
17877     ;;
17878   *)
17879     case $LD in # libtool.m4 will add one of these switches to LD
17880     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17881       libsuff= shlibsuff= libmagic=32-bit;;
17882     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17883       libsuff=32 shlibsuff=N32 libmagic=N32;;
17884     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17885       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17886     *) libsuff= shlibsuff= libmagic=never-match;;
17887     esac
17888     ;;
17889   esac
17890   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17891   shlibpath_overrides_runpath=no
17892   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17893   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17894   hardcode_into_libs=yes
17895   ;;
17896
17897 # No shared lib support for Linux oldld, aout, or coff.
17898 linux*oldld* | linux*aout* | linux*coff*)
17899   dynamic_linker=no
17900   ;;
17901
17902 # This must be Linux ELF.
17903 linux*)
17904   version_type=linux
17905   need_lib_prefix=no
17906   need_version=no
17907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17908   soname_spec='${libname}${release}${shared_ext}$major'
17909   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17910   shlibpath_var=LD_LIBRARY_PATH
17911   shlibpath_overrides_runpath=no
17912   # This implies no fast_install, which is unacceptable.
17913   # Some rework will be needed to allow for fast_install
17914   # before this can be enabled.
17915   hardcode_into_libs=yes
17916
17917   # Append ld.so.conf contents to the search path
17918   if test -f /etc/ld.so.conf; then
17919     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' ' '`
17920     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17921   fi
17922
17923   # We used to test for /lib/ld.so.1 and disable shared libraries on
17924   # powerpc, because MkLinux only supported shared libraries with the
17925   # GNU dynamic linker.  Since this was broken with cross compilers,
17926   # most powerpc-linux boxes support dynamic linking these days and
17927   # people can always --disable-shared, the test was removed, and we
17928   # assume the GNU/Linux dynamic linker is in use.
17929   dynamic_linker='GNU/Linux ld.so'
17930   ;;
17931
17932 knetbsd*-gnu)
17933   version_type=linux
17934   need_lib_prefix=no
17935   need_version=no
17936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17937   soname_spec='${libname}${release}${shared_ext}$major'
17938   shlibpath_var=LD_LIBRARY_PATH
17939   shlibpath_overrides_runpath=no
17940   hardcode_into_libs=yes
17941   dynamic_linker='GNU ld.so'
17942   ;;
17943
17944 netbsd*)
17945   version_type=sunos
17946   need_lib_prefix=no
17947   need_version=no
17948   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17950     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17951     dynamic_linker='NetBSD (a.out) ld.so'
17952   else
17953     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17954     soname_spec='${libname}${release}${shared_ext}$major'
17955     dynamic_linker='NetBSD ld.elf_so'
17956   fi
17957   shlibpath_var=LD_LIBRARY_PATH
17958   shlibpath_overrides_runpath=yes
17959   hardcode_into_libs=yes
17960   ;;
17961
17962 newsos6)
17963   version_type=linux
17964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965   shlibpath_var=LD_LIBRARY_PATH
17966   shlibpath_overrides_runpath=yes
17967   ;;
17968
17969 nto-qnx*)
17970   version_type=linux
17971   need_lib_prefix=no
17972   need_version=no
17973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974   soname_spec='${libname}${release}${shared_ext}$major'
17975   shlibpath_var=LD_LIBRARY_PATH
17976   shlibpath_overrides_runpath=yes
17977   ;;
17978
17979 openbsd*)
17980   version_type=sunos
17981   sys_lib_dlsearch_path_spec="/usr/lib"
17982   need_lib_prefix=no
17983   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17984   case $host_os in
17985     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17986     *)                         need_version=no  ;;
17987   esac
17988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17989   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17990   shlibpath_var=LD_LIBRARY_PATH
17991   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17992     case $host_os in
17993       openbsd2.[89] | openbsd2.[89].*)
17994         shlibpath_overrides_runpath=no
17995         ;;
17996       *)
17997         shlibpath_overrides_runpath=yes
17998         ;;
17999       esac
18000   else
18001     shlibpath_overrides_runpath=yes
18002   fi
18003   ;;
18004
18005 os2*)
18006   libname_spec='$name'
18007   shrext_cmds=".dll"
18008   need_lib_prefix=no
18009   library_names_spec='$libname${shared_ext} $libname.a'
18010   dynamic_linker='OS/2 ld.exe'
18011   shlibpath_var=LIBPATH
18012   ;;
18013
18014 osf3* | osf4* | osf5*)
18015   version_type=osf
18016   need_lib_prefix=no
18017   need_version=no
18018   soname_spec='${libname}${release}${shared_ext}$major'
18019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18020   shlibpath_var=LD_LIBRARY_PATH
18021   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18022   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18023   ;;
18024
18025 solaris*)
18026   version_type=linux
18027   need_lib_prefix=no
18028   need_version=no
18029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18030   soname_spec='${libname}${release}${shared_ext}$major'
18031   shlibpath_var=LD_LIBRARY_PATH
18032   shlibpath_overrides_runpath=yes
18033   hardcode_into_libs=yes
18034   # ldd complains unless libraries are executable
18035   postinstall_cmds='chmod +x $lib'
18036   ;;
18037
18038 sunos4*)
18039   version_type=sunos
18040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18041   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18042   shlibpath_var=LD_LIBRARY_PATH
18043   shlibpath_overrides_runpath=yes
18044   if test "$with_gnu_ld" = yes; then
18045     need_lib_prefix=no
18046   fi
18047   need_version=yes
18048   ;;
18049
18050 sysv4 | sysv4.3*)
18051   version_type=linux
18052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18053   soname_spec='${libname}${release}${shared_ext}$major'
18054   shlibpath_var=LD_LIBRARY_PATH
18055   case $host_vendor in
18056     sni)
18057       shlibpath_overrides_runpath=no
18058       need_lib_prefix=no
18059       export_dynamic_flag_spec='${wl}-Blargedynsym'
18060       runpath_var=LD_RUN_PATH
18061       ;;
18062     siemens)
18063       need_lib_prefix=no
18064       ;;
18065     motorola)
18066       need_lib_prefix=no
18067       need_version=no
18068       shlibpath_overrides_runpath=no
18069       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18070       ;;
18071   esac
18072   ;;
18073
18074 sysv4*MP*)
18075   if test -d /usr/nec ;then
18076     version_type=linux
18077     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18078     soname_spec='$libname${shared_ext}.$major'
18079     shlibpath_var=LD_LIBRARY_PATH
18080   fi
18081   ;;
18082
18083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18084   version_type=freebsd-elf
18085   need_lib_prefix=no
18086   need_version=no
18087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18088   soname_spec='${libname}${release}${shared_ext}$major'
18089   shlibpath_var=LD_LIBRARY_PATH
18090   hardcode_into_libs=yes
18091   if test "$with_gnu_ld" = yes; then
18092     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18093     shlibpath_overrides_runpath=no
18094   else
18095     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18096     shlibpath_overrides_runpath=yes
18097     case $host_os in
18098       sco3.2v5*)
18099         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18100         ;;
18101     esac
18102   fi
18103   sys_lib_dlsearch_path_spec='/usr/lib'
18104   ;;
18105
18106 uts4*)
18107   version_type=linux
18108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109   soname_spec='${libname}${release}${shared_ext}$major'
18110   shlibpath_var=LD_LIBRARY_PATH
18111   ;;
18112
18113 *)
18114   dynamic_linker=no
18115   ;;
18116 esac
18117 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18118 echo "${ECHO_T}$dynamic_linker" >&6; }
18119 test "$dynamic_linker" = no && can_build_shared=no
18120
18121 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18122 if test "$GCC" = yes; then
18123   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18124 fi
18125
18126 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18127 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18128 hardcode_action_GCJ=
18129 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18130    test -n "$runpath_var_GCJ" || \
18131    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18132
18133   # We can hardcode non-existant directories.
18134   if test "$hardcode_direct_GCJ" != no &&
18135      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18136      # have to relink, otherwise we might link with an installed library
18137      # when we should be linking with a yet-to-be-installed one
18138      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18139      test "$hardcode_minus_L_GCJ" != no; then
18140     # Linking always hardcodes the temporary library directory.
18141     hardcode_action_GCJ=relink
18142   else
18143     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18144     hardcode_action_GCJ=immediate
18145   fi
18146 else
18147   # We cannot hardcode anything, or else we can only hardcode existing
18148   # directories.
18149   hardcode_action_GCJ=unsupported
18150 fi
18151 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18152 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18153
18154 if test "$hardcode_action_GCJ" = relink; then
18155   # Fast installation is not supported
18156   enable_fast_install=no
18157 elif test "$shlibpath_overrides_runpath" = yes ||
18158      test "$enable_shared" = no; then
18159   # Fast installation is not necessary
18160   enable_fast_install=needless
18161 fi
18162
18163
18164 # The else clause should only fire when bootstrapping the
18165 # libtool distribution, otherwise you forgot to ship ltmain.sh
18166 # with your package, and you will get complaints that there are
18167 # no rules to generate ltmain.sh.
18168 if test -f "$ltmain"; then
18169   # See if we are running on zsh, and set the options which allow our commands through
18170   # without removal of \ escapes.
18171   if test -n "${ZSH_VERSION+set}" ; then
18172     setopt NO_GLOB_SUBST
18173   fi
18174   # Now quote all the things that may contain metacharacters while being
18175   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18176   # variables and quote the copies for generation of the libtool script.
18177   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18178     SED SHELL STRIP \
18179     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18180     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18181     deplibs_check_method reload_flag reload_cmds need_locks \
18182     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18183     lt_cv_sys_global_symbol_to_c_name_address \
18184     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18185     old_postinstall_cmds old_postuninstall_cmds \
18186     compiler_GCJ \
18187     CC_GCJ \
18188     LD_GCJ \
18189     lt_prog_compiler_wl_GCJ \
18190     lt_prog_compiler_pic_GCJ \
18191     lt_prog_compiler_static_GCJ \
18192     lt_prog_compiler_no_builtin_flag_GCJ \
18193     export_dynamic_flag_spec_GCJ \
18194     thread_safe_flag_spec_GCJ \
18195     whole_archive_flag_spec_GCJ \
18196     enable_shared_with_static_runtimes_GCJ \
18197     old_archive_cmds_GCJ \
18198     old_archive_from_new_cmds_GCJ \
18199     predep_objects_GCJ \
18200     postdep_objects_GCJ \
18201     predeps_GCJ \
18202     postdeps_GCJ \
18203     compiler_lib_search_path_GCJ \
18204     archive_cmds_GCJ \
18205     archive_expsym_cmds_GCJ \
18206     postinstall_cmds_GCJ \
18207     postuninstall_cmds_GCJ \
18208     old_archive_from_expsyms_cmds_GCJ \
18209     allow_undefined_flag_GCJ \
18210     no_undefined_flag_GCJ \
18211     export_symbols_cmds_GCJ \
18212     hardcode_libdir_flag_spec_GCJ \
18213     hardcode_libdir_flag_spec_ld_GCJ \
18214     hardcode_libdir_separator_GCJ \
18215     hardcode_automatic_GCJ \
18216     module_cmds_GCJ \
18217     module_expsym_cmds_GCJ \
18218     lt_cv_prog_compiler_c_o_GCJ \
18219     exclude_expsyms_GCJ \
18220     include_expsyms_GCJ; do
18221
18222     case $var in
18223     old_archive_cmds_GCJ | \
18224     old_archive_from_new_cmds_GCJ | \
18225     archive_cmds_GCJ | \
18226     archive_expsym_cmds_GCJ | \
18227     module_cmds_GCJ | \
18228     module_expsym_cmds_GCJ | \
18229     old_archive_from_expsyms_cmds_GCJ | \
18230     export_symbols_cmds_GCJ | \
18231     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18232     postinstall_cmds | postuninstall_cmds | \
18233     old_postinstall_cmds | old_postuninstall_cmds | \
18234     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18235       # Double-quote double-evaled strings.
18236       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18237       ;;
18238     *)
18239       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18240       ;;
18241     esac
18242   done
18243
18244   case $lt_echo in
18245   *'\$0 --fallback-echo"')
18246     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18247     ;;
18248   esac
18249
18250 cfgfile="$ofile"
18251
18252   cat <<__EOF__ >> "$cfgfile"
18253 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18254
18255 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18256
18257 # Shell to use when invoking shell scripts.
18258 SHELL=$lt_SHELL
18259
18260 # Whether or not to build shared libraries.
18261 build_libtool_libs=$enable_shared
18262
18263 # Whether or not to build static libraries.
18264 build_old_libs=$enable_static
18265
18266 # Whether or not to add -lc for building shared libraries.
18267 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18268
18269 # Whether or not to disallow shared libs when runtime libs are static
18270 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18271
18272 # Whether or not to optimize for fast installation.
18273 fast_install=$enable_fast_install
18274
18275 # The host system.
18276 host_alias=$host_alias
18277 host=$host
18278 host_os=$host_os
18279
18280 # The build system.
18281 build_alias=$build_alias
18282 build=$build
18283 build_os=$build_os
18284
18285 # An echo program that does not interpret backslashes.
18286 echo=$lt_echo
18287
18288 # The archiver.
18289 AR=$lt_AR
18290 AR_FLAGS=$lt_AR_FLAGS
18291
18292 # A C compiler.
18293 LTCC=$lt_LTCC
18294
18295 # LTCC compiler flags.
18296 LTCFLAGS=$lt_LTCFLAGS
18297
18298 # A language-specific compiler.
18299 CC=$lt_compiler_GCJ
18300
18301 # Is the compiler the GNU C compiler?
18302 with_gcc=$GCC_GCJ
18303
18304 # An ERE matcher.
18305 EGREP=$lt_EGREP
18306
18307 # The linker used to build libraries.
18308 LD=$lt_LD_GCJ
18309
18310 # Whether we need hard or soft links.
18311 LN_S=$lt_LN_S
18312
18313 # A BSD-compatible nm program.
18314 NM=$lt_NM
18315
18316 # A symbol stripping program
18317 STRIP=$lt_STRIP
18318
18319 # Used to examine libraries when file_magic_cmd begins "file"
18320 MAGIC_CMD=$MAGIC_CMD
18321
18322 # Used on cygwin: DLL creation program.
18323 DLLTOOL="$DLLTOOL"
18324
18325 # Used on cygwin: object dumper.
18326 OBJDUMP="$OBJDUMP"
18327
18328 # Used on cygwin: assembler.
18329 AS="$AS"
18330
18331 # The name of the directory that contains temporary libtool files.
18332 objdir=$objdir
18333
18334 # How to create reloadable object files.
18335 reload_flag=$lt_reload_flag
18336 reload_cmds=$lt_reload_cmds
18337
18338 # How to pass a linker flag through the compiler.
18339 wl=$lt_lt_prog_compiler_wl_GCJ
18340
18341 # Object file suffix (normally "o").
18342 objext="$ac_objext"
18343
18344 # Old archive suffix (normally "a").
18345 libext="$libext"
18346
18347 # Shared library suffix (normally ".so").
18348 shrext_cmds='$shrext_cmds'
18349
18350 # Executable file suffix (normally "").
18351 exeext="$exeext"
18352
18353 # Additional compiler flags for building library objects.
18354 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18355 pic_mode=$pic_mode
18356
18357 # What is the maximum length of a command?
18358 max_cmd_len=$lt_cv_sys_max_cmd_len
18359
18360 # Does compiler simultaneously support -c and -o options?
18361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18362
18363 # Must we lock files when doing compilation?
18364 need_locks=$lt_need_locks
18365
18366 # Do we need the lib prefix for modules?
18367 need_lib_prefix=$need_lib_prefix
18368
18369 # Do we need a version for libraries?
18370 need_version=$need_version
18371
18372 # Whether dlopen is supported.
18373 dlopen_support=$enable_dlopen
18374
18375 # Whether dlopen of programs is supported.
18376 dlopen_self=$enable_dlopen_self
18377
18378 # Whether dlopen of statically linked programs is supported.
18379 dlopen_self_static=$enable_dlopen_self_static
18380
18381 # Compiler flag to prevent dynamic linking.
18382 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18383
18384 # Compiler flag to turn off builtin functions.
18385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18386
18387 # Compiler flag to allow reflexive dlopens.
18388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18389
18390 # Compiler flag to generate shared objects directly from archives.
18391 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18392
18393 # Compiler flag to generate thread-safe objects.
18394 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18395
18396 # Library versioning type.
18397 version_type=$version_type
18398
18399 # Format of library name prefix.
18400 libname_spec=$lt_libname_spec
18401
18402 # List of archive names.  First name is the real one, the rest are links.
18403 # The last name is the one that the linker finds with -lNAME.
18404 library_names_spec=$lt_library_names_spec
18405
18406 # The coded name of the library, if different from the real name.
18407 soname_spec=$lt_soname_spec
18408
18409 # Commands used to build and install an old-style archive.
18410 RANLIB=$lt_RANLIB
18411 old_archive_cmds=$lt_old_archive_cmds_GCJ
18412 old_postinstall_cmds=$lt_old_postinstall_cmds
18413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18414
18415 # Create an old-style archive from a shared archive.
18416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18417
18418 # Create a temporary old-style archive to link instead of a shared archive.
18419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18420
18421 # Commands used to build and install a shared archive.
18422 archive_cmds=$lt_archive_cmds_GCJ
18423 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18424 postinstall_cmds=$lt_postinstall_cmds
18425 postuninstall_cmds=$lt_postuninstall_cmds
18426
18427 # Commands used to build a loadable module (assumed same as above if empty)
18428 module_cmds=$lt_module_cmds_GCJ
18429 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18430
18431 # Commands to strip libraries.
18432 old_striplib=$lt_old_striplib
18433 striplib=$lt_striplib
18434
18435 # Dependencies to place before the objects being linked to create a
18436 # shared library.
18437 predep_objects=$lt_predep_objects_GCJ
18438
18439 # Dependencies to place after the objects being linked to create a
18440 # shared library.
18441 postdep_objects=$lt_postdep_objects_GCJ
18442
18443 # Dependencies to place before the objects being linked to create a
18444 # shared library.
18445 predeps=$lt_predeps_GCJ
18446
18447 # Dependencies to place after the objects being linked to create a
18448 # shared library.
18449 postdeps=$lt_postdeps_GCJ
18450
18451 # The library search path used internally by the compiler when linking
18452 # a shared library.
18453 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18454
18455 # Method to check whether dependent libraries are shared objects.
18456 deplibs_check_method=$lt_deplibs_check_method
18457
18458 # Command to use when deplibs_check_method == file_magic.
18459 file_magic_cmd=$lt_file_magic_cmd
18460
18461 # Flag that allows shared libraries with undefined symbols to be built.
18462 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18463
18464 # Flag that forces no undefined symbols.
18465 no_undefined_flag=$lt_no_undefined_flag_GCJ
18466
18467 # Commands used to finish a libtool library installation in a directory.
18468 finish_cmds=$lt_finish_cmds
18469
18470 # Same as above, but a single script fragment to be evaled but not shown.
18471 finish_eval=$lt_finish_eval
18472
18473 # Take the output of nm and produce a listing of raw symbols and C names.
18474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18475
18476 # Transform the output of nm in a proper C declaration
18477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18478
18479 # Transform the output of nm in a C name address pair
18480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18481
18482 # This is the shared library runtime path variable.
18483 runpath_var=$runpath_var
18484
18485 # This is the shared library path variable.
18486 shlibpath_var=$shlibpath_var
18487
18488 # Is shlibpath searched before the hard-coded library search path?
18489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18490
18491 # How to hardcode a shared library path into an executable.
18492 hardcode_action=$hardcode_action_GCJ
18493
18494 # Whether we should hardcode library paths into libraries.
18495 hardcode_into_libs=$hardcode_into_libs
18496
18497 # Flag to hardcode \$libdir into a binary during linking.
18498 # This must work even if \$libdir does not exist.
18499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18500
18501 # If ld is used when linking, flag to hardcode \$libdir into
18502 # a binary during linking. This must work even if \$libdir does
18503 # not exist.
18504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18505
18506 # Whether we need a single -rpath flag with a separated argument.
18507 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18508
18509 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18510 # resulting binary.
18511 hardcode_direct=$hardcode_direct_GCJ
18512
18513 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18514 # resulting binary.
18515 hardcode_minus_L=$hardcode_minus_L_GCJ
18516
18517 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18518 # the resulting binary.
18519 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18520
18521 # Set to yes if building a shared library automatically hardcodes DIR into the library
18522 # and all subsequent libraries and executables linked against it.
18523 hardcode_automatic=$hardcode_automatic_GCJ
18524
18525 # Variables whose values should be saved in libtool wrapper scripts and
18526 # restored at relink time.
18527 variables_saved_for_relink="$variables_saved_for_relink"
18528
18529 # Whether libtool must link a program against all its dependency libraries.
18530 link_all_deplibs=$link_all_deplibs_GCJ
18531
18532 # Compile-time system search path for libraries
18533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18534
18535 # Run-time system search path for libraries
18536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18537
18538 # Fix the shell variable \$srcfile for the compiler.
18539 fix_srcfile_path="$fix_srcfile_path_GCJ"
18540
18541 # Set to yes if exported symbols are required.
18542 always_export_symbols=$always_export_symbols_GCJ
18543
18544 # The commands to list exported symbols.
18545 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18546
18547 # The commands to extract the exported symbol list from a shared archive.
18548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18549
18550 # Symbols that should not be listed in the preloaded symbols.
18551 exclude_expsyms=$lt_exclude_expsyms_GCJ
18552
18553 # Symbols that must always be exported.
18554 include_expsyms=$lt_include_expsyms_GCJ
18555
18556 # ### END LIBTOOL TAG CONFIG: $tagname
18557
18558 __EOF__
18559
18560
18561 else
18562   # If there is no Makefile yet, we rely on a make rule to execute
18563   # `config.status --recheck' to rerun these tests and create the
18564   # libtool script then.
18565   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18566   if test -f "$ltmain_in"; then
18567     test -f Makefile && make "$ltmain"
18568   fi
18569 fi
18570
18571
18572 ac_ext=c
18573 ac_cpp='$CPP $CPPFLAGS'
18574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18577
18578 CC="$lt_save_CC"
18579
18580         else
18581           tagname=""
18582         fi
18583         ;;
18584
18585       RC)
18586
18587
18588 # Source file extension for RC test sources.
18589 ac_ext=rc
18590
18591 # Object file extension for compiled RC test sources.
18592 objext=o
18593 objext_RC=$objext
18594
18595 # Code to be used in simple compile tests
18596 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18597
18598 # Code to be used in simple link tests
18599 lt_simple_link_test_code="$lt_simple_compile_test_code"
18600
18601 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18602
18603 # If no C compiler was specified, use CC.
18604 LTCC=${LTCC-"$CC"}
18605
18606 # If no C compiler flags were specified, use CFLAGS.
18607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18608
18609 # Allow CC to be a program name with arguments.
18610 compiler=$CC
18611
18612
18613 # save warnings/boilerplate of simple test code
18614 ac_outfile=conftest.$ac_objext
18615 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18616 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18617 _lt_compiler_boilerplate=`cat conftest.err`
18618 $rm conftest*
18619
18620 ac_outfile=conftest.$ac_objext
18621 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18622 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18623 _lt_linker_boilerplate=`cat conftest.err`
18624 $rm conftest*
18625
18626
18627 # Allow CC to be a program name with arguments.
18628 lt_save_CC="$CC"
18629 CC=${RC-"windres"}
18630 compiler=$CC
18631 compiler_RC=$CC
18632 for cc_temp in $compiler""; do
18633   case $cc_temp in
18634     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18635     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18636     \-*) ;;
18637     *) break;;
18638   esac
18639 done
18640 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18641
18642 lt_cv_prog_compiler_c_o_RC=yes
18643
18644 # The else clause should only fire when bootstrapping the
18645 # libtool distribution, otherwise you forgot to ship ltmain.sh
18646 # with your package, and you will get complaints that there are
18647 # no rules to generate ltmain.sh.
18648 if test -f "$ltmain"; then
18649   # See if we are running on zsh, and set the options which allow our commands through
18650   # without removal of \ escapes.
18651   if test -n "${ZSH_VERSION+set}" ; then
18652     setopt NO_GLOB_SUBST
18653   fi
18654   # Now quote all the things that may contain metacharacters while being
18655   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18656   # variables and quote the copies for generation of the libtool script.
18657   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18658     SED SHELL STRIP \
18659     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18660     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18661     deplibs_check_method reload_flag reload_cmds need_locks \
18662     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18663     lt_cv_sys_global_symbol_to_c_name_address \
18664     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18665     old_postinstall_cmds old_postuninstall_cmds \
18666     compiler_RC \
18667     CC_RC \
18668     LD_RC \
18669     lt_prog_compiler_wl_RC \
18670     lt_prog_compiler_pic_RC \
18671     lt_prog_compiler_static_RC \
18672     lt_prog_compiler_no_builtin_flag_RC \
18673     export_dynamic_flag_spec_RC \
18674     thread_safe_flag_spec_RC \
18675     whole_archive_flag_spec_RC \
18676     enable_shared_with_static_runtimes_RC \
18677     old_archive_cmds_RC \
18678     old_archive_from_new_cmds_RC \
18679     predep_objects_RC \
18680     postdep_objects_RC \
18681     predeps_RC \
18682     postdeps_RC \
18683     compiler_lib_search_path_RC \
18684     archive_cmds_RC \
18685     archive_expsym_cmds_RC \
18686     postinstall_cmds_RC \
18687     postuninstall_cmds_RC \
18688     old_archive_from_expsyms_cmds_RC \
18689     allow_undefined_flag_RC \
18690     no_undefined_flag_RC \
18691     export_symbols_cmds_RC \
18692     hardcode_libdir_flag_spec_RC \
18693     hardcode_libdir_flag_spec_ld_RC \
18694     hardcode_libdir_separator_RC \
18695     hardcode_automatic_RC \
18696     module_cmds_RC \
18697     module_expsym_cmds_RC \
18698     lt_cv_prog_compiler_c_o_RC \
18699     exclude_expsyms_RC \
18700     include_expsyms_RC; do
18701
18702     case $var in
18703     old_archive_cmds_RC | \
18704     old_archive_from_new_cmds_RC | \
18705     archive_cmds_RC | \
18706     archive_expsym_cmds_RC | \
18707     module_cmds_RC | \
18708     module_expsym_cmds_RC | \
18709     old_archive_from_expsyms_cmds_RC | \
18710     export_symbols_cmds_RC | \
18711     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18712     postinstall_cmds | postuninstall_cmds | \
18713     old_postinstall_cmds | old_postuninstall_cmds | \
18714     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18715       # Double-quote double-evaled strings.
18716       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18717       ;;
18718     *)
18719       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18720       ;;
18721     esac
18722   done
18723
18724   case $lt_echo in
18725   *'\$0 --fallback-echo"')
18726     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18727     ;;
18728   esac
18729
18730 cfgfile="$ofile"
18731
18732   cat <<__EOF__ >> "$cfgfile"
18733 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18734
18735 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18736
18737 # Shell to use when invoking shell scripts.
18738 SHELL=$lt_SHELL
18739
18740 # Whether or not to build shared libraries.
18741 build_libtool_libs=$enable_shared
18742
18743 # Whether or not to build static libraries.
18744 build_old_libs=$enable_static
18745
18746 # Whether or not to add -lc for building shared libraries.
18747 build_libtool_need_lc=$archive_cmds_need_lc_RC
18748
18749 # Whether or not to disallow shared libs when runtime libs are static
18750 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18751
18752 # Whether or not to optimize for fast installation.
18753 fast_install=$enable_fast_install
18754
18755 # The host system.
18756 host_alias=$host_alias
18757 host=$host
18758 host_os=$host_os
18759
18760 # The build system.
18761 build_alias=$build_alias
18762 build=$build
18763 build_os=$build_os
18764
18765 # An echo program that does not interpret backslashes.
18766 echo=$lt_echo
18767
18768 # The archiver.
18769 AR=$lt_AR
18770 AR_FLAGS=$lt_AR_FLAGS
18771
18772 # A C compiler.
18773 LTCC=$lt_LTCC
18774
18775 # LTCC compiler flags.
18776 LTCFLAGS=$lt_LTCFLAGS
18777
18778 # A language-specific compiler.
18779 CC=$lt_compiler_RC
18780
18781 # Is the compiler the GNU C compiler?
18782 with_gcc=$GCC_RC
18783
18784 # An ERE matcher.
18785 EGREP=$lt_EGREP
18786
18787 # The linker used to build libraries.
18788 LD=$lt_LD_RC
18789
18790 # Whether we need hard or soft links.
18791 LN_S=$lt_LN_S
18792
18793 # A BSD-compatible nm program.
18794 NM=$lt_NM
18795
18796 # A symbol stripping program
18797 STRIP=$lt_STRIP
18798
18799 # Used to examine libraries when file_magic_cmd begins "file"
18800 MAGIC_CMD=$MAGIC_CMD
18801
18802 # Used on cygwin: DLL creation program.
18803 DLLTOOL="$DLLTOOL"
18804
18805 # Used on cygwin: object dumper.
18806 OBJDUMP="$OBJDUMP"
18807
18808 # Used on cygwin: assembler.
18809 AS="$AS"
18810
18811 # The name of the directory that contains temporary libtool files.
18812 objdir=$objdir
18813
18814 # How to create reloadable object files.
18815 reload_flag=$lt_reload_flag
18816 reload_cmds=$lt_reload_cmds
18817
18818 # How to pass a linker flag through the compiler.
18819 wl=$lt_lt_prog_compiler_wl_RC
18820
18821 # Object file suffix (normally "o").
18822 objext="$ac_objext"
18823
18824 # Old archive suffix (normally "a").
18825 libext="$libext"
18826
18827 # Shared library suffix (normally ".so").
18828 shrext_cmds='$shrext_cmds'
18829
18830 # Executable file suffix (normally "").
18831 exeext="$exeext"
18832
18833 # Additional compiler flags for building library objects.
18834 pic_flag=$lt_lt_prog_compiler_pic_RC
18835 pic_mode=$pic_mode
18836
18837 # What is the maximum length of a command?
18838 max_cmd_len=$lt_cv_sys_max_cmd_len
18839
18840 # Does compiler simultaneously support -c and -o options?
18841 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18842
18843 # Must we lock files when doing compilation?
18844 need_locks=$lt_need_locks
18845
18846 # Do we need the lib prefix for modules?
18847 need_lib_prefix=$need_lib_prefix
18848
18849 # Do we need a version for libraries?
18850 need_version=$need_version
18851
18852 # Whether dlopen is supported.
18853 dlopen_support=$enable_dlopen
18854
18855 # Whether dlopen of programs is supported.
18856 dlopen_self=$enable_dlopen_self
18857
18858 # Whether dlopen of statically linked programs is supported.
18859 dlopen_self_static=$enable_dlopen_self_static
18860
18861 # Compiler flag to prevent dynamic linking.
18862 link_static_flag=$lt_lt_prog_compiler_static_RC
18863
18864 # Compiler flag to turn off builtin functions.
18865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18866
18867 # Compiler flag to allow reflexive dlopens.
18868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18869
18870 # Compiler flag to generate shared objects directly from archives.
18871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18872
18873 # Compiler flag to generate thread-safe objects.
18874 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18875
18876 # Library versioning type.
18877 version_type=$version_type
18878
18879 # Format of library name prefix.
18880 libname_spec=$lt_libname_spec
18881
18882 # List of archive names.  First name is the real one, the rest are links.
18883 # The last name is the one that the linker finds with -lNAME.
18884 library_names_spec=$lt_library_names_spec
18885
18886 # The coded name of the library, if different from the real name.
18887 soname_spec=$lt_soname_spec
18888
18889 # Commands used to build and install an old-style archive.
18890 RANLIB=$lt_RANLIB
18891 old_archive_cmds=$lt_old_archive_cmds_RC
18892 old_postinstall_cmds=$lt_old_postinstall_cmds
18893 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18894
18895 # Create an old-style archive from a shared archive.
18896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18897
18898 # Create a temporary old-style archive to link instead of a shared archive.
18899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18900
18901 # Commands used to build and install a shared archive.
18902 archive_cmds=$lt_archive_cmds_RC
18903 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18904 postinstall_cmds=$lt_postinstall_cmds
18905 postuninstall_cmds=$lt_postuninstall_cmds
18906
18907 # Commands used to build a loadable module (assumed same as above if empty)
18908 module_cmds=$lt_module_cmds_RC
18909 module_expsym_cmds=$lt_module_expsym_cmds_RC
18910
18911 # Commands to strip libraries.
18912 old_striplib=$lt_old_striplib
18913 striplib=$lt_striplib
18914
18915 # Dependencies to place before the objects being linked to create a
18916 # shared library.
18917 predep_objects=$lt_predep_objects_RC
18918
18919 # Dependencies to place after the objects being linked to create a
18920 # shared library.
18921 postdep_objects=$lt_postdep_objects_RC
18922
18923 # Dependencies to place before the objects being linked to create a
18924 # shared library.
18925 predeps=$lt_predeps_RC
18926
18927 # Dependencies to place after the objects being linked to create a
18928 # shared library.
18929 postdeps=$lt_postdeps_RC
18930
18931 # The library search path used internally by the compiler when linking
18932 # a shared library.
18933 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18934
18935 # Method to check whether dependent libraries are shared objects.
18936 deplibs_check_method=$lt_deplibs_check_method
18937
18938 # Command to use when deplibs_check_method == file_magic.
18939 file_magic_cmd=$lt_file_magic_cmd
18940
18941 # Flag that allows shared libraries with undefined symbols to be built.
18942 allow_undefined_flag=$lt_allow_undefined_flag_RC
18943
18944 # Flag that forces no undefined symbols.
18945 no_undefined_flag=$lt_no_undefined_flag_RC
18946
18947 # Commands used to finish a libtool library installation in a directory.
18948 finish_cmds=$lt_finish_cmds
18949
18950 # Same as above, but a single script fragment to be evaled but not shown.
18951 finish_eval=$lt_finish_eval
18952
18953 # Take the output of nm and produce a listing of raw symbols and C names.
18954 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18955
18956 # Transform the output of nm in a proper C declaration
18957 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18958
18959 # Transform the output of nm in a C name address pair
18960 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18961
18962 # This is the shared library runtime path variable.
18963 runpath_var=$runpath_var
18964
18965 # This is the shared library path variable.
18966 shlibpath_var=$shlibpath_var
18967
18968 # Is shlibpath searched before the hard-coded library search path?
18969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18970
18971 # How to hardcode a shared library path into an executable.
18972 hardcode_action=$hardcode_action_RC
18973
18974 # Whether we should hardcode library paths into libraries.
18975 hardcode_into_libs=$hardcode_into_libs
18976
18977 # Flag to hardcode \$libdir into a binary during linking.
18978 # This must work even if \$libdir does not exist.
18979 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18980
18981 # If ld is used when linking, flag to hardcode \$libdir into
18982 # a binary during linking. This must work even if \$libdir does
18983 # not exist.
18984 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18985
18986 # Whether we need a single -rpath flag with a separated argument.
18987 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18988
18989 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18990 # resulting binary.
18991 hardcode_direct=$hardcode_direct_RC
18992
18993 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18994 # resulting binary.
18995 hardcode_minus_L=$hardcode_minus_L_RC
18996
18997 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18998 # the resulting binary.
18999 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19000
19001 # Set to yes if building a shared library automatically hardcodes DIR into the library
19002 # and all subsequent libraries and executables linked against it.
19003 hardcode_automatic=$hardcode_automatic_RC
19004
19005 # Variables whose values should be saved in libtool wrapper scripts and
19006 # restored at relink time.
19007 variables_saved_for_relink="$variables_saved_for_relink"
19008
19009 # Whether libtool must link a program against all its dependency libraries.
19010 link_all_deplibs=$link_all_deplibs_RC
19011
19012 # Compile-time system search path for libraries
19013 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19014
19015 # Run-time system search path for libraries
19016 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19017
19018 # Fix the shell variable \$srcfile for the compiler.
19019 fix_srcfile_path="$fix_srcfile_path_RC"
19020
19021 # Set to yes if exported symbols are required.
19022 always_export_symbols=$always_export_symbols_RC
19023
19024 # The commands to list exported symbols.
19025 export_symbols_cmds=$lt_export_symbols_cmds_RC
19026
19027 # The commands to extract the exported symbol list from a shared archive.
19028 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19029
19030 # Symbols that should not be listed in the preloaded symbols.
19031 exclude_expsyms=$lt_exclude_expsyms_RC
19032
19033 # Symbols that must always be exported.
19034 include_expsyms=$lt_include_expsyms_RC
19035
19036 # ### END LIBTOOL TAG CONFIG: $tagname
19037
19038 __EOF__
19039
19040
19041 else
19042   # If there is no Makefile yet, we rely on a make rule to execute
19043   # `config.status --recheck' to rerun these tests and create the
19044   # libtool script then.
19045   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19046   if test -f "$ltmain_in"; then
19047     test -f Makefile && make "$ltmain"
19048   fi
19049 fi
19050
19051
19052 ac_ext=c
19053 ac_cpp='$CPP $CPPFLAGS'
19054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19057
19058 CC="$lt_save_CC"
19059
19060         ;;
19061
19062       *)
19063         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19064 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19065    { (exit 1); exit 1; }; }
19066         ;;
19067       esac
19068
19069       # Append the new tag name to the list of available tags.
19070       if test -n "$tagname" ; then
19071       available_tags="$available_tags $tagname"
19072     fi
19073     fi
19074   done
19075   IFS="$lt_save_ifs"
19076
19077   # Now substitute the updated list of available tags.
19078   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19079     mv "${ofile}T" "$ofile"
19080     chmod +x "$ofile"
19081   else
19082     rm -f "${ofile}T"
19083     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19084 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19085    { (exit 1); exit 1; }; }
19086   fi
19087 fi
19088
19089
19090
19091 # This can be used to rebuild libtool when needed
19092 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19093
19094 # Always use our own libtool.
19095 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19096
19097 # Prevent multiple expansion
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110 # Check whether --with-system-libtool was given.
19111 if test "${with_system_libtool+set}" = set; then
19112   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19113 set dummy libtool; ac_word=$2
19114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19116 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19117   echo $ECHO_N "(cached) $ECHO_C" >&6
19118 else
19119   case $LIBTOOL in
19120   [\\/]* | ?:[\\/]*)
19121   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19122   ;;
19123   *)
19124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19125 as_dummy="$PATH:/usr/local/bin"
19126 for as_dir in $as_dummy
19127 do
19128   IFS=$as_save_IFS
19129   test -z "$as_dir" && as_dir=.
19130   for ac_exec_ext in '' $ac_executable_extensions; do
19131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19132     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19134     break 2
19135   fi
19136 done
19137 done
19138 IFS=$as_save_IFS
19139
19140   ;;
19141 esac
19142 fi
19143 LIBTOOL=$ac_cv_path_LIBTOOL
19144 if test -n "$LIBTOOL"; then
19145   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19146 echo "${ECHO_T}$LIBTOOL" >&6; }
19147 else
19148   { echo "$as_me:$LINENO: result: no" >&5
19149 echo "${ECHO_T}no" >&6; }
19150 fi
19151
19152
19153 else
19154
19155   LIBTOOL="`pwd`/libtool"
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170 fi
19171
19172
19173
19174
19175 # Check whether --enable-strict-dependencies was given.
19176 if test "${enable_strict_dependencies+set}" = set; then
19177   enableval=$enable_strict_dependencies;
19178 fi
19179
19180
19181 docdir='${datadir}/doc/freeradius'
19182 { echo "$as_me:$LINENO: checking docdir" >&5
19183 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19184
19185 # Check whether --with-docdir was given.
19186 if test "${with_docdir+set}" = set; then
19187   withval=$with_docdir;  case "$withval" in
19188     no)
19189         { { echo "$as_me:$LINENO: error: Need docdir" >&5
19190 echo "$as_me: error: Need docdir" >&2;}
19191    { (exit 1); exit 1; }; }
19192         ;;
19193     yes)
19194         ;;
19195     [\\/$]* | ?:[\\/]* )
19196         docdir="$withval"
19197         ;;
19198     *)
19199         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19200 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19201    { (exit 1); exit 1; }; }
19202         ;;
19203   esac
19204
19205 fi
19206
19207
19208 { echo "$as_me:$LINENO: result: $docdir" >&5
19209 echo "${ECHO_T}$docdir" >&6; }
19210
19211 logdir='${localstatedir}/log/radius'
19212 { echo "$as_me:$LINENO: checking logdir" >&5
19213 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19214
19215 # Check whether --with-logdir was given.
19216 if test "${with_logdir+set}" = set; then
19217   withval=$with_logdir;  case "$withval" in
19218     no)
19219         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19220 echo "$as_me: error: Need logdir" >&2;}
19221    { (exit 1); exit 1; }; }
19222         ;;
19223     yes)
19224         ;;
19225     [\\/$]* | ?:[\\/]* )
19226         logdir="$withval"
19227         ;;
19228     *)
19229         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19230 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19231    { (exit 1); exit 1; }; }
19232         ;;
19233   esac
19234
19235 fi
19236
19237
19238 { echo "$as_me:$LINENO: result: $logdir" >&5
19239 echo "${ECHO_T}$logdir" >&6; }
19240
19241 radacctdir='${logdir}/radacct'
19242 { echo "$as_me:$LINENO: checking radacctdir" >&5
19243 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19244
19245 # Check whether --with-radacctdir was given.
19246 if test "${with_radacctdir+set}" = set; then
19247   withval=$with_radacctdir;  case "$withval" in
19248     no)
19249         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19250 echo "$as_me: error: Need radacctdir" >&2;}
19251    { (exit 1); exit 1; }; }
19252         ;;
19253     yes)
19254         ;;
19255     [\\/$]* | ?:[\\/]* )
19256         radacctdir="$withval"
19257         ;;
19258     *)
19259         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19260 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19261    { (exit 1); exit 1; }; }
19262         ;;
19263   esac
19264
19265 fi
19266
19267
19268 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19269 echo "${ECHO_T}$radacctdir" >&6; }
19270
19271 raddbdir='${sysconfdir}/raddb'
19272 { echo "$as_me:$LINENO: checking raddbdir" >&5
19273 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19274
19275 # Check whether --with-raddbdir was given.
19276 if test "${with_raddbdir+set}" = set; then
19277   withval=$with_raddbdir;  case "$withval" in
19278     no)
19279         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19280 echo "$as_me: error: Need raddbdir" >&2;}
19281    { (exit 1); exit 1; }; }
19282         ;;
19283     yes)
19284         ;;
19285     [\\/$]* | ?:[\\/]* )
19286         raddbdir="$withval"
19287         ;;
19288     *)
19289         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19290 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19291    { (exit 1); exit 1; }; }
19292         ;;
19293   esac
19294
19295 fi
19296
19297
19298 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19299 echo "${ECHO_T}$raddbdir" >&6; }
19300
19301 ASCEND_BINARY=yes
19302
19303 # Check whether --with-ascend-binary was given.
19304 if test "${with_ascend_binary+set}" = set; then
19305   withval=$with_ascend_binary;  case "$withval" in
19306     yes)
19307         ;;
19308     *)
19309         ASCEND_BINARY=""
19310   esac
19311
19312 fi
19313
19314 if test "X$ASCEND_BINARY" = "Xyes"; then
19315   cat >>confdefs.h <<\_ACEOF
19316 #define ASCEND_BINARY 1
19317 _ACEOF
19318
19319 fi
19320
19321 WITH_THREADS=yes
19322
19323 # Check whether --with-threads was given.
19324 if test "${with_threads+set}" = set; then
19325   withval=$with_threads;  case "$withval" in
19326     yes)
19327         ;;
19328     *)
19329         WITH_THREADS=""
19330   esac
19331
19332 fi
19333
19334
19335 WITH_SNMP=yes
19336
19337 # Check whether --with-snmp was given.
19338 if test "${with_snmp+set}" = set; then
19339   withval=$with_snmp;  case "$withval" in
19340     yes)
19341         ;;
19342     *)
19343         WITH_SNMP=no
19344   esac
19345
19346 fi
19347
19348
19349 rad_enable_largefiles=no
19350
19351 # Check whether --with-large-files was given.
19352 if test "${with_large_files+set}" = set; then
19353   withval=$with_large_files;  case "$withval" in
19354     yes)
19355         rad_enable_largefiles=yes
19356         ;;
19357     *)
19358         ;;
19359   esac
19360
19361 fi
19362
19363
19364
19365 STATIC_MODULES=
19366
19367 # Check whether --with-static_modules was given.
19368 if test "${with_static_modules+set}" = set; then
19369   withval=$with_static_modules;
19370   for i in $withval; do
19371     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19372   done
19373
19374 fi
19375
19376
19377 MODULES=
19378
19379 # Check whether --with-modules was given.
19380 if test "${with_modules+set}" = set; then
19381   withval=$with_modules;
19382  for i in $withval; do
19383    MODULES="$MODULES $i"
19384  done
19385
19386 fi
19387
19388
19389 # Check whether --enable-developer was given.
19390 if test "${enable_developer+set}" = set; then
19391   enableval=$enable_developer;  case "$enableval" in
19392     no)
19393         developer=no
19394         ;;
19395     *)
19396         developer=yes
19397   esac
19398
19399 fi
19400
19401
19402 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19403     developer="yes"
19404 fi
19405
19406 EXPERIMENTAL=
19407
19408 # Check whether --with-experimental-modules was given.
19409 if test "${with_experimental_modules+set}" = set; then
19410   withval=$with_experimental_modules;  case "$withval" in
19411     yes)
19412         EXPERIMENTAL=yes
19413         ;;
19414     *)
19415   esac
19416
19417 fi
19418
19419
19420 OPENSSL_INCLUDE_DIR=
19421
19422 # Check whether --with-openssl-includes was given.
19423 if test "${with_openssl_includes+set}" = set; then
19424   withval=$with_openssl_includes;  case "$withval" in
19425     *) OPENSSL_INCLUDE_DIR="$withval"
19426         ;;
19427   esac
19428
19429 fi
19430
19431
19432 OPENSSL_LIB_DIR=
19433
19434 # Check whether --with-openssl-libraries was given.
19435 if test "${with_openssl_libraries+set}" = set; then
19436   withval=$with_openssl_libraries;  case "$withval" in
19437     *) OPENSSL_LIB_DIR="$withval"
19438         ;;
19439   esac
19440
19441 fi
19442
19443
19444
19445
19446 # Check whether --with-rlm-FOO-lib-dir was given.
19447 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19448   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19449     *)
19450         ;;
19451   esac
19452
19453 fi
19454
19455
19456
19457 # Check whether --with-rlm-FOO-include-dir was given.
19458 if test "${with_rlm_FOO_include_dir+set}" = set; then
19459   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19460     *)
19461         ;;
19462   esac
19463
19464 fi
19465
19466
19467
19468 WITH_UDPFROMTO=no
19469
19470 # Check whether --with-udpfromto was given.
19471 if test "${with_udpfromto+set}" = set; then
19472   withval=$with_udpfromto;  case "$withval" in
19473     yes)
19474         WITH_UDPFROMTO=yes
19475         ;;
19476     *)
19477         WITH_UDPFROMTO=no
19478   esac
19479
19480 fi
19481
19482
19483 if test "x$WITH_UDPFROMTO" = "xyes"; then
19484         cat >>confdefs.h <<\_ACEOF
19485 #define WITH_UDPFROMTO 1
19486 _ACEOF
19487
19488 fi
19489
19490
19491 # Check whether --with-edir was given.
19492 if test "${with_edir+set}" = set; then
19493   withval=$with_edir;
19494 fi
19495
19496
19497
19498 CHECKRAD=checkrad.pl
19499 # Extract the first word of "perl", so it can be a program name with args.
19500 set dummy perl; ac_word=$2
19501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19503 if test "${ac_cv_path_PERL+set}" = set; then
19504   echo $ECHO_N "(cached) $ECHO_C" >&6
19505 else
19506   case $PERL in
19507   [\\/]* | ?:[\\/]*)
19508   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19509   ;;
19510   *)
19511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19512 for as_dir in $PATH
19513 do
19514   IFS=$as_save_IFS
19515   test -z "$as_dir" && as_dir=.
19516   for ac_exec_ext in '' $ac_executable_extensions; do
19517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19518     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19520     break 2
19521   fi
19522 done
19523 done
19524 IFS=$as_save_IFS
19525
19526   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19527   ;;
19528 esac
19529 fi
19530 PERL=$ac_cv_path_PERL
19531 if test -n "$PERL"; then
19532   { echo "$as_me:$LINENO: result: $PERL" >&5
19533 echo "${ECHO_T}$PERL" >&6; }
19534 else
19535   { echo "$as_me:$LINENO: result: no" >&5
19536 echo "${ECHO_T}no" >&6; }
19537 fi
19538
19539
19540 if test "x$ac_cv_path_PERL" = "x"; then
19541   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19542 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19543 fi
19544 # Extract the first word of "snmpget", so it can be a program name with args.
19545 set dummy snmpget; ac_word=$2
19546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19548 if test "${ac_cv_path_SNMPGET+set}" = set; then
19549   echo $ECHO_N "(cached) $ECHO_C" >&6
19550 else
19551   case $SNMPGET in
19552   [\\/]* | ?:[\\/]*)
19553   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19554   ;;
19555   *)
19556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19557 for as_dir in $PATH
19558 do
19559   IFS=$as_save_IFS
19560   test -z "$as_dir" && as_dir=.
19561   for ac_exec_ext in '' $ac_executable_extensions; do
19562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19563     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19565     break 2
19566   fi
19567 done
19568 done
19569 IFS=$as_save_IFS
19570
19571   ;;
19572 esac
19573 fi
19574 SNMPGET=$ac_cv_path_SNMPGET
19575 if test -n "$SNMPGET"; then
19576   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19577 echo "${ECHO_T}$SNMPGET" >&6; }
19578 else
19579   { echo "$as_me:$LINENO: result: no" >&5
19580 echo "${ECHO_T}no" >&6; }
19581 fi
19582
19583
19584 if test "x$ac_cv_path_SNMPGET" = "x"; then
19585   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19586 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19587 fi
19588
19589 # Extract the first word of "snmpwalk", so it can be a program name with args.
19590 set dummy snmpwalk; ac_word=$2
19591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19593 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19594   echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596   case $SNMPWALK in
19597   [\\/]* | ?:[\\/]*)
19598   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19599   ;;
19600   *)
19601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19602 for as_dir in $PATH
19603 do
19604   IFS=$as_save_IFS
19605   test -z "$as_dir" && as_dir=.
19606   for ac_exec_ext in '' $ac_executable_extensions; do
19607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19608     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19610     break 2
19611   fi
19612 done
19613 done
19614 IFS=$as_save_IFS
19615
19616   ;;
19617 esac
19618 fi
19619 SNMPWALK=$ac_cv_path_SNMPWALK
19620 if test -n "$SNMPWALK"; then
19621   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19622 echo "${ECHO_T}$SNMPWALK" >&6; }
19623 else
19624   { echo "$as_me:$LINENO: result: no" >&5
19625 echo "${ECHO_T}no" >&6; }
19626 fi
19627
19628
19629 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19630   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19631 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19632 fi
19633
19634 # Extract the first word of "rusers", so it can be a program name with args.
19635 set dummy rusers; ac_word=$2
19636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19638 if test "${ac_cv_path_RUSERS+set}" = set; then
19639   echo $ECHO_N "(cached) $ECHO_C" >&6
19640 else
19641   case $RUSERS in
19642   [\\/]* | ?:[\\/]*)
19643   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19644   ;;
19645   *)
19646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19647 for as_dir in $PATH
19648 do
19649   IFS=$as_save_IFS
19650   test -z "$as_dir" && as_dir=.
19651   for ac_exec_ext in '' $ac_executable_extensions; do
19652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19653     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19655     break 2
19656   fi
19657 done
19658 done
19659 IFS=$as_save_IFS
19660
19661   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19662   ;;
19663 esac
19664 fi
19665 RUSERS=$ac_cv_path_RUSERS
19666 if test -n "$RUSERS"; then
19667   { echo "$as_me:$LINENO: result: $RUSERS" >&5
19668 echo "${ECHO_T}$RUSERS" >&6; }
19669 else
19670   { echo "$as_me:$LINENO: result: no" >&5
19671 echo "${ECHO_T}no" >&6; }
19672 fi
19673
19674
19675
19676 missing_dir=`cd $ac_aux_dir && pwd`
19677 { echo "$as_me:$LINENO: checking for working aclocal" >&5
19678 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
19679 # Run test in a subshell; some versions of sh will print an error if
19680 # an executable is not found, even if stderr is redirected.
19681 # Redirect stdin to placate older versions of autoconf.  Sigh.
19682 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19683    ACLOCAL=aclocal
19684    { echo "$as_me:$LINENO: result: found" >&5
19685 echo "${ECHO_T}found" >&6; }
19686 else
19687    ACLOCAL="$missing_dir/missing aclocal"
19688    { echo "$as_me:$LINENO: result: missing" >&5
19689 echo "${ECHO_T}missing" >&6; }
19690 fi
19691
19692 { echo "$as_me:$LINENO: checking for working autoconf" >&5
19693 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
19694 # Run test in a subshell; some versions of sh will print an error if
19695 # an executable is not found, even if stderr is redirected.
19696 # Redirect stdin to placate older versions of autoconf.  Sigh.
19697 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19698    AUTOCONF=autoconf
19699    { echo "$as_me:$LINENO: result: found" >&5
19700 echo "${ECHO_T}found" >&6; }
19701 else
19702    AUTOCONF="$missing_dir/missing autoconf"
19703    { echo "$as_me:$LINENO: result: missing" >&5
19704 echo "${ECHO_T}missing" >&6; }
19705 fi
19706
19707 { echo "$as_me:$LINENO: checking for working autoheader" >&5
19708 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
19709 # Run test in a subshell; some versions of sh will print an error if
19710 # an executable is not found, even if stderr is redirected.
19711 # Redirect stdin to placate older versions of autoconf.  Sigh.
19712 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19713    AUTOHEADER=autoheader
19714    { echo "$as_me:$LINENO: result: found" >&5
19715 echo "${ECHO_T}found" >&6; }
19716 else
19717    AUTOHEADER="$missing_dir/missing autoheader"
19718    { echo "$as_me:$LINENO: result: missing" >&5
19719 echo "${ECHO_T}missing" >&6; }
19720 fi
19721
19722
19723 # Extract the first word of "locate", so it can be a program name with args.
19724 set dummy locate; ac_word=$2
19725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19727 if test "${ac_cv_path_LOCATE+set}" = set; then
19728   echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730   case $LOCATE in
19731   [\\/]* | ?:[\\/]*)
19732   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19733   ;;
19734   *)
19735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19736 for as_dir in $PATH
19737 do
19738   IFS=$as_save_IFS
19739   test -z "$as_dir" && as_dir=.
19740   for ac_exec_ext in '' $ac_executable_extensions; do
19741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19742     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19744     break 2
19745   fi
19746 done
19747 done
19748 IFS=$as_save_IFS
19749
19750   ;;
19751 esac
19752 fi
19753 LOCATE=$ac_cv_path_LOCATE
19754 if test -n "$LOCATE"; then
19755   { echo "$as_me:$LINENO: result: $LOCATE" >&5
19756 echo "${ECHO_T}$LOCATE" >&6; }
19757 else
19758   { echo "$as_me:$LINENO: result: no" >&5
19759 echo "${ECHO_T}no" >&6; }
19760 fi
19761
19762
19763 # Extract the first word of "dirname", so it can be a program name with args.
19764 set dummy dirname; ac_word=$2
19765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19767 if test "${ac_cv_path_DIRNAME+set}" = set; then
19768   echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770   case $DIRNAME in
19771   [\\/]* | ?:[\\/]*)
19772   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19773   ;;
19774   *)
19775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19776 for as_dir in $PATH
19777 do
19778   IFS=$as_save_IFS
19779   test -z "$as_dir" && as_dir=.
19780   for ac_exec_ext in '' $ac_executable_extensions; do
19781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19782     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19784     break 2
19785   fi
19786 done
19787 done
19788 IFS=$as_save_IFS
19789
19790   ;;
19791 esac
19792 fi
19793 DIRNAME=$ac_cv_path_DIRNAME
19794 if test -n "$DIRNAME"; then
19795   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
19796 echo "${ECHO_T}$DIRNAME" >&6; }
19797 else
19798   { echo "$as_me:$LINENO: result: no" >&5
19799 echo "${ECHO_T}no" >&6; }
19800 fi
19801
19802
19803 # Extract the first word of "grep", so it can be a program name with args.
19804 set dummy grep; ac_word=$2
19805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19807 if test "${ac_cv_path_GREP+set}" = set; then
19808   echo $ECHO_N "(cached) $ECHO_C" >&6
19809 else
19810   case $GREP in
19811   [\\/]* | ?:[\\/]*)
19812   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19813   ;;
19814   *)
19815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19816 for as_dir in $PATH
19817 do
19818   IFS=$as_save_IFS
19819   test -z "$as_dir" && as_dir=.
19820   for ac_exec_ext in '' $ac_executable_extensions; do
19821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19822     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19824     break 2
19825   fi
19826 done
19827 done
19828 IFS=$as_save_IFS
19829
19830   ;;
19831 esac
19832 fi
19833 GREP=$ac_cv_path_GREP
19834 if test -n "$GREP"; then
19835   { echo "$as_me:$LINENO: result: $GREP" >&5
19836 echo "${ECHO_T}$GREP" >&6; }
19837 else
19838   { echo "$as_me:$LINENO: result: no" >&5
19839 echo "${ECHO_T}no" >&6; }
19840 fi
19841
19842
19843
19844
19845 old_CFLAGS=$CFLAGS
19846 if test "x$WITH_THREADS" = "xyes"; then
19847   if test $ac_cv_prog_suncc = "yes"; then
19848     CFLAGS="$CFLAGS -mt"
19849   fi
19850
19851
19852 for ac_header in pthread.h
19853 do
19854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19856   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19859   echo $ECHO_N "(cached) $ECHO_C" >&6
19860 fi
19861 ac_res=`eval echo '${'$as_ac_Header'}'`
19862                { echo "$as_me:$LINENO: result: $ac_res" >&5
19863 echo "${ECHO_T}$ac_res" >&6; }
19864 else
19865   # Is the header compilable?
19866 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19868 cat >conftest.$ac_ext <<_ACEOF
19869 /* confdefs.h.  */
19870 _ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h.  */
19874 $ac_includes_default
19875 #include <$ac_header>
19876 _ACEOF
19877 rm -f conftest.$ac_objext
19878 if { (ac_try="$ac_compile"
19879 case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_compile") 2>conftest.er1
19885   ac_status=$?
19886   grep -v '^ *+' conftest.er1 >conftest.err
19887   rm -f conftest.er1
19888   cat conftest.err >&5
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); } && {
19891          test -z "$ac_c_werror_flag" ||
19892          test ! -s conftest.err
19893        } && test -s conftest.$ac_objext; then
19894   ac_header_compiler=yes
19895 else
19896   echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19898
19899         ac_header_compiler=no
19900 fi
19901
19902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19903 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19904 echo "${ECHO_T}$ac_header_compiler" >&6; }
19905
19906 # Is the header present?
19907 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19908 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19909 cat >conftest.$ac_ext <<_ACEOF
19910 /* confdefs.h.  */
19911 _ACEOF
19912 cat confdefs.h >>conftest.$ac_ext
19913 cat >>conftest.$ac_ext <<_ACEOF
19914 /* end confdefs.h.  */
19915 #include <$ac_header>
19916 _ACEOF
19917 if { (ac_try="$ac_cpp conftest.$ac_ext"
19918 case "(($ac_try" in
19919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920   *) ac_try_echo=$ac_try;;
19921 esac
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19924   ac_status=$?
19925   grep -v '^ *+' conftest.er1 >conftest.err
19926   rm -f conftest.er1
19927   cat conftest.err >&5
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); } >/dev/null && {
19930          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19931          test ! -s conftest.err
19932        }; then
19933   ac_header_preproc=yes
19934 else
19935   echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.$ac_ext >&5
19937
19938   ac_header_preproc=no
19939 fi
19940
19941 rm -f conftest.err conftest.$ac_ext
19942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19943 echo "${ECHO_T}$ac_header_preproc" >&6; }
19944
19945 # So?  What about this header?
19946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19947   yes:no: )
19948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19952     ac_header_preproc=yes
19953     ;;
19954   no:yes:* )
19955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19957     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19958 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19959     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19961     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19962 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19965     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19967
19968     ;;
19969 esac
19970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19973   echo $ECHO_N "(cached) $ECHO_C" >&6
19974 else
19975   eval "$as_ac_Header=\$ac_header_preproc"
19976 fi
19977 ac_res=`eval echo '${'$as_ac_Header'}'`
19978                { echo "$as_me:$LINENO: result: $ac_res" >&5
19979 echo "${ECHO_T}$ac_res" >&6; }
19980
19981 fi
19982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19983   cat >>confdefs.h <<_ACEOF
19984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19985 _ACEOF
19986
19987 else
19988    WITH_THREADS="no"
19989 fi
19990
19991 done
19992
19993
19994   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19995 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
19996 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19997   echo $ECHO_N "(cached) $ECHO_C" >&6
19998 else
19999   ac_check_lib_save_LIBS=$LIBS
20000 LIBS="-lpthread  $LIBS"
20001 cat >conftest.$ac_ext <<_ACEOF
20002 /* confdefs.h.  */
20003 _ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h.  */
20007
20008 /* Override any GCC internal prototype to avoid an error.
20009    Use char because int might match the return type of a GCC
20010    builtin and then its argument prototype would still apply.  */
20011 #ifdef __cplusplus
20012 extern "C"
20013 #endif
20014 char pthread_create ();
20015 int
20016 main ()
20017 {
20018 return pthread_create ();
20019   ;
20020   return 0;
20021 }
20022 _ACEOF
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027   *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030   (eval "$ac_link") 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } && {
20037          test -z "$ac_c_werror_flag" ||
20038          test ! -s conftest.err
20039        } && test -s conftest$ac_exeext &&
20040        $as_test_x conftest$ac_exeext; then
20041   ac_cv_lib_pthread_pthread_create=yes
20042 else
20043   echo "$as_me: failed program was:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20045
20046         ac_cv_lib_pthread_pthread_create=no
20047 fi
20048
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050       conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20052 fi
20053 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20054 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20055 if test $ac_cv_lib_pthread_pthread_create = yes; then
20056    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20057                   LIBS="$LIBS -lpthread"
20058 else
20059   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20060 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20061 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20062   echo $ECHO_N "(cached) $ECHO_C" >&6
20063 else
20064   ac_check_lib_save_LIBS=$LIBS
20065 LIBS="-lc_r  $LIBS"
20066 cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h.  */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h.  */
20072
20073 /* Override any GCC internal prototype to avoid an error.
20074    Use char because int might match the return type of a GCC
20075    builtin and then its argument prototype would still apply.  */
20076 #ifdef __cplusplus
20077 extern "C"
20078 #endif
20079 char pthread_create ();
20080 int
20081 main ()
20082 {
20083 return pthread_create ();
20084   ;
20085   return 0;
20086 }
20087 _ACEOF
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092   *) ac_try_echo=$ac_try;;
20093 esac
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095   (eval "$ac_link") 2>conftest.er1
20096   ac_status=$?
20097   grep -v '^ *+' conftest.er1 >conftest.err
20098   rm -f conftest.er1
20099   cat conftest.err >&5
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); } && {
20102          test -z "$ac_c_werror_flag" ||
20103          test ! -s conftest.err
20104        } && test -s conftest$ac_exeext &&
20105        $as_test_x conftest$ac_exeext; then
20106   ac_cv_lib_c_r_pthread_create=yes
20107 else
20108   echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20110
20111         ac_cv_lib_c_r_pthread_create=no
20112 fi
20113
20114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20115       conftest$ac_exeext conftest.$ac_ext
20116 LIBS=$ac_check_lib_save_LIBS
20117 fi
20118 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20119 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20120 if test $ac_cv_lib_c_r_pthread_create = yes; then
20121    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20122 else
20123    WITH_THREADS="no"
20124
20125 fi
20126
20127
20128 fi
20129
20130 fi
20131
20132 if test "x$WITH_THREADS" != "xyes"; then
20133   CFLAGS=$old_CFLAGS
20134   ac_cv_header_pthread_h="no"
20135   WITH_THREADS=no
20136 else
20137
20138   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20139 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20140 if test "${ac_cv_search_sem_init+set}" = set; then
20141   echo $ECHO_N "(cached) $ECHO_C" >&6
20142 else
20143   ac_func_search_save_LIBS=$LIBS
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h.  */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h.  */
20150
20151 /* Override any GCC internal prototype to avoid an error.
20152    Use char because int might match the return type of a GCC
20153    builtin and then its argument prototype would still apply.  */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 char sem_init ();
20158 int
20159 main ()
20160 {
20161 return sem_init ();
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 for ac_lib in '' pthread sem posix4 rt; do
20167   if test -z "$ac_lib"; then
20168     ac_res="none required"
20169   else
20170     ac_res=-l$ac_lib
20171     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20172   fi
20173   rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177   *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180   (eval "$ac_link") 2>conftest.er1
20181   ac_status=$?
20182   grep -v '^ *+' conftest.er1 >conftest.err
20183   rm -f conftest.er1
20184   cat conftest.err >&5
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } && {
20187          test -z "$ac_c_werror_flag" ||
20188          test ! -s conftest.err
20189        } && test -s conftest$ac_exeext &&
20190        $as_test_x conftest$ac_exeext; then
20191   ac_cv_search_sem_init=$ac_res
20192 else
20193   echo "$as_me: failed program was:" >&5
20194 sed 's/^/| /' conftest.$ac_ext >&5
20195
20196
20197 fi
20198
20199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20200       conftest$ac_exeext
20201   if test "${ac_cv_search_sem_init+set}" = set; then
20202   break
20203 fi
20204 done
20205 if test "${ac_cv_search_sem_init+set}" = set; then
20206   :
20207 else
20208   ac_cv_search_sem_init=no
20209 fi
20210 rm conftest.$ac_ext
20211 LIBS=$ac_func_search_save_LIBS
20212 fi
20213 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20214 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20215 ac_res=$ac_cv_search_sem_init
20216 if test "$ac_res" != no; then
20217   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20218
20219 else
20220   { { 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
20221 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;}
20222    { (exit 1); exit 1; }; }
20223
20224 fi
20225
20226 fi
20227
20228
20229 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20230 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20231 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20232   echo $ECHO_N "(cached) $ECHO_C" >&6
20233 else
20234   ac_check_lib_save_LIBS=$LIBS
20235 LIBS="-lsocket  $LIBS"
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h.  */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h.  */
20242
20243 /* Override any GCC internal prototype to avoid an error.
20244    Use char because int might match the return type of a GCC
20245    builtin and then its argument prototype would still apply.  */
20246 #ifdef __cplusplus
20247 extern "C"
20248 #endif
20249 char getsockname ();
20250 int
20251 main ()
20252 {
20253 return getsockname ();
20254   ;
20255   return 0;
20256 }
20257 _ACEOF
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262   *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265   (eval "$ac_link") 2>conftest.er1
20266   ac_status=$?
20267   grep -v '^ *+' conftest.er1 >conftest.err
20268   rm -f conftest.er1
20269   cat conftest.err >&5
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); } && {
20272          test -z "$ac_c_werror_flag" ||
20273          test ! -s conftest.err
20274        } && test -s conftest$ac_exeext &&
20275        $as_test_x conftest$ac_exeext; then
20276   ac_cv_lib_socket_getsockname=yes
20277 else
20278   echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.$ac_ext >&5
20280
20281         ac_cv_lib_socket_getsockname=no
20282 fi
20283
20284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20285       conftest$ac_exeext conftest.$ac_ext
20286 LIBS=$ac_check_lib_save_LIBS
20287 fi
20288 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20289 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20290 if test $ac_cv_lib_socket_getsockname = yes; then
20291   cat >>confdefs.h <<_ACEOF
20292 #define HAVE_LIBSOCKET 1
20293 _ACEOF
20294
20295   LIBS="-lsocket $LIBS"
20296
20297 fi
20298
20299
20300
20301 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20302 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20303 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306   ac_check_lib_save_LIBS=$LIBS
20307 LIBS="-lresolv  $LIBS"
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h.  */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h.  */
20314
20315 /* Override any GCC internal prototype to avoid an error.
20316    Use char because int might match the return type of a GCC
20317    builtin and then its argument prototype would still apply.  */
20318 #ifdef __cplusplus
20319 extern "C"
20320 #endif
20321 char inet_aton ();
20322 int
20323 main ()
20324 {
20325 return inet_aton ();
20326   ;
20327   return 0;
20328 }
20329 _ACEOF
20330 rm -f conftest.$ac_objext conftest$ac_exeext
20331 if { (ac_try="$ac_link"
20332 case "(($ac_try" in
20333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334   *) ac_try_echo=$ac_try;;
20335 esac
20336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20337   (eval "$ac_link") 2>conftest.er1
20338   ac_status=$?
20339   grep -v '^ *+' conftest.er1 >conftest.err
20340   rm -f conftest.er1
20341   cat conftest.err >&5
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); } && {
20344          test -z "$ac_c_werror_flag" ||
20345          test ! -s conftest.err
20346        } && test -s conftest$ac_exeext &&
20347        $as_test_x conftest$ac_exeext; then
20348   ac_cv_lib_resolv_inet_aton=yes
20349 else
20350   echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20352
20353         ac_cv_lib_resolv_inet_aton=no
20354 fi
20355
20356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20357       conftest$ac_exeext conftest.$ac_ext
20358 LIBS=$ac_check_lib_save_LIBS
20359 fi
20360 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20361 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20362 if test $ac_cv_lib_resolv_inet_aton = yes; then
20363   cat >>confdefs.h <<_ACEOF
20364 #define HAVE_LIBRESOLV 1
20365 _ACEOF
20366
20367   LIBS="-lresolv $LIBS"
20368
20369 fi
20370
20371
20372
20373 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20374 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20375 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20376   echo $ECHO_N "(cached) $ECHO_C" >&6
20377 else
20378   ac_check_lib_save_LIBS=$LIBS
20379 LIBS="-lnsl  $LIBS"
20380 cat >conftest.$ac_ext <<_ACEOF
20381 /* confdefs.h.  */
20382 _ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h.  */
20386
20387 /* Override any GCC internal prototype to avoid an error.
20388    Use char because int might match the return type of a GCC
20389    builtin and then its argument prototype would still apply.  */
20390 #ifdef __cplusplus
20391 extern "C"
20392 #endif
20393 char inet_ntoa ();
20394 int
20395 main ()
20396 {
20397 return inet_ntoa ();
20398   ;
20399   return 0;
20400 }
20401 _ACEOF
20402 rm -f conftest.$ac_objext conftest$ac_exeext
20403 if { (ac_try="$ac_link"
20404 case "(($ac_try" in
20405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406   *) ac_try_echo=$ac_try;;
20407 esac
20408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409   (eval "$ac_link") 2>conftest.er1
20410   ac_status=$?
20411   grep -v '^ *+' conftest.er1 >conftest.err
20412   rm -f conftest.er1
20413   cat conftest.err >&5
20414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415   (exit $ac_status); } && {
20416          test -z "$ac_c_werror_flag" ||
20417          test ! -s conftest.err
20418        } && test -s conftest$ac_exeext &&
20419        $as_test_x conftest$ac_exeext; then
20420   ac_cv_lib_nsl_inet_ntoa=yes
20421 else
20422   echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20424
20425         ac_cv_lib_nsl_inet_ntoa=no
20426 fi
20427
20428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20429       conftest$ac_exeext conftest.$ac_ext
20430 LIBS=$ac_check_lib_save_LIBS
20431 fi
20432 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20433 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20434 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20435   cat >>confdefs.h <<_ACEOF
20436 #define HAVE_LIBNSL 1
20437 _ACEOF
20438
20439   LIBS="-lnsl $LIBS"
20440
20441 fi
20442
20443
20444 OPENSSL_LIBS=
20445 old_LIBS=$LIBS
20446 if test "x$OPENSSL_LIB_DIR" != "x"; then
20447     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20448 fi
20449 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20450 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20451 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20452   echo $ECHO_N "(cached) $ECHO_C" >&6
20453 else
20454   ac_check_lib_save_LIBS=$LIBS
20455 LIBS="-lcrypto  $LIBS"
20456 cat >conftest.$ac_ext <<_ACEOF
20457 /* confdefs.h.  */
20458 _ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h.  */
20462
20463 /* Override any GCC internal prototype to avoid an error.
20464    Use char because int might match the return type of a GCC
20465    builtin and then its argument prototype would still apply.  */
20466 #ifdef __cplusplus
20467 extern "C"
20468 #endif
20469 char DH_new ();
20470 int
20471 main ()
20472 {
20473 return DH_new ();
20474   ;
20475   return 0;
20476 }
20477 _ACEOF
20478 rm -f conftest.$ac_objext conftest$ac_exeext
20479 if { (ac_try="$ac_link"
20480 case "(($ac_try" in
20481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482   *) ac_try_echo=$ac_try;;
20483 esac
20484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20485   (eval "$ac_link") 2>conftest.er1
20486   ac_status=$?
20487   grep -v '^ *+' conftest.er1 >conftest.err
20488   rm -f conftest.er1
20489   cat conftest.err >&5
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); } && {
20492          test -z "$ac_c_werror_flag" ||
20493          test ! -s conftest.err
20494        } && test -s conftest$ac_exeext &&
20495        $as_test_x conftest$ac_exeext; then
20496   ac_cv_lib_crypto_DH_new=yes
20497 else
20498   echo "$as_me: failed program was:" >&5
20499 sed 's/^/| /' conftest.$ac_ext >&5
20500
20501         ac_cv_lib_crypto_DH_new=no
20502 fi
20503
20504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20505       conftest$ac_exeext conftest.$ac_ext
20506 LIBS=$ac_check_lib_save_LIBS
20507 fi
20508 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20509 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20510 if test $ac_cv_lib_crypto_DH_new = yes; then
20511
20512
20513 cat >>confdefs.h <<\_ACEOF
20514 #define HAVE_LIBCRYPTO 1
20515 _ACEOF
20516
20517         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20518 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20519 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20520   echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522   ac_check_lib_save_LIBS=$LIBS
20523 LIBS="-lssl  $LIBS"
20524 cat >conftest.$ac_ext <<_ACEOF
20525 /* confdefs.h.  */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h.  */
20530
20531 /* Override any GCC internal prototype to avoid an error.
20532    Use char because int might match the return type of a GCC
20533    builtin and then its argument prototype would still apply.  */
20534 #ifdef __cplusplus
20535 extern "C"
20536 #endif
20537 char SSL_new ();
20538 int
20539 main ()
20540 {
20541 return SSL_new ();
20542   ;
20543   return 0;
20544 }
20545 _ACEOF
20546 rm -f conftest.$ac_objext conftest$ac_exeext
20547 if { (ac_try="$ac_link"
20548 case "(($ac_try" in
20549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550   *) ac_try_echo=$ac_try;;
20551 esac
20552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20553   (eval "$ac_link") 2>conftest.er1
20554   ac_status=$?
20555   grep -v '^ *+' conftest.er1 >conftest.err
20556   rm -f conftest.er1
20557   cat conftest.err >&5
20558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559   (exit $ac_status); } && {
20560          test -z "$ac_c_werror_flag" ||
20561          test ! -s conftest.err
20562        } && test -s conftest$ac_exeext &&
20563        $as_test_x conftest$ac_exeext; then
20564   ac_cv_lib_ssl_SSL_new=yes
20565 else
20566   echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569         ac_cv_lib_ssl_SSL_new=no
20570 fi
20571
20572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20573       conftest$ac_exeext conftest.$ac_ext
20574 LIBS=$ac_check_lib_save_LIBS
20575 fi
20576 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20577 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20578 if test $ac_cv_lib_ssl_SSL_new = yes; then
20579
20580
20581 cat >>confdefs.h <<\_ACEOF
20582 #define HAVE_LIBSSL 1
20583 _ACEOF
20584
20585                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20586                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20587                 fi
20588                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20589
20590 fi
20591
20592
20593 fi
20594
20595 LIBS=$old_LIBS
20596
20597
20598 case "$host" in
20599 *-interix*)
20600         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20601         ;;
20602 *-darwin*)
20603         CFLAGS="$CFLAGS -DDARWIN"
20604         ;;
20605 esac
20606
20607
20608
20609
20610
20611
20612 ac_header_dirent=no
20613 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20614   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20615 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20616 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620   cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h.  */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h.  */
20626 #include <sys/types.h>
20627 #include <$ac_hdr>
20628
20629 int
20630 main ()
20631 {
20632 if ((DIR *) 0)
20633 return 0;
20634   ;
20635   return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (ac_try="$ac_compile"
20640 case "(($ac_try" in
20641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642   *) ac_try_echo=$ac_try;;
20643 esac
20644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645   (eval "$ac_compile") 2>conftest.er1
20646   ac_status=$?
20647   grep -v '^ *+' conftest.er1 >conftest.err
20648   rm -f conftest.er1
20649   cat conftest.err >&5
20650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651   (exit $ac_status); } && {
20652          test -z "$ac_c_werror_flag" ||
20653          test ! -s conftest.err
20654        } && test -s conftest.$ac_objext; then
20655   eval "$as_ac_Header=yes"
20656 else
20657   echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20659
20660         eval "$as_ac_Header=no"
20661 fi
20662
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20664 fi
20665 ac_res=`eval echo '${'$as_ac_Header'}'`
20666                { echo "$as_me:$LINENO: result: $ac_res" >&5
20667 echo "${ECHO_T}$ac_res" >&6; }
20668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20669   cat >>confdefs.h <<_ACEOF
20670 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20671 _ACEOF
20672
20673 ac_header_dirent=$ac_hdr; break
20674 fi
20675
20676 done
20677 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20678 if test $ac_header_dirent = dirent.h; then
20679   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20680 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20681 if test "${ac_cv_search_opendir+set}" = set; then
20682   echo $ECHO_N "(cached) $ECHO_C" >&6
20683 else
20684   ac_func_search_save_LIBS=$LIBS
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h.  */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h.  */
20691
20692 /* Override any GCC internal prototype to avoid an error.
20693    Use char because int might match the return type of a GCC
20694    builtin and then its argument prototype would still apply.  */
20695 #ifdef __cplusplus
20696 extern "C"
20697 #endif
20698 char opendir ();
20699 int
20700 main ()
20701 {
20702 return opendir ();
20703   ;
20704   return 0;
20705 }
20706 _ACEOF
20707 for ac_lib in '' dir; do
20708   if test -z "$ac_lib"; then
20709     ac_res="none required"
20710   else
20711     ac_res=-l$ac_lib
20712     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20713   fi
20714   rm -f conftest.$ac_objext conftest$ac_exeext
20715 if { (ac_try="$ac_link"
20716 case "(($ac_try" in
20717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718   *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721   (eval "$ac_link") 2>conftest.er1
20722   ac_status=$?
20723   grep -v '^ *+' conftest.er1 >conftest.err
20724   rm -f conftest.er1
20725   cat conftest.err >&5
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); } && {
20728          test -z "$ac_c_werror_flag" ||
20729          test ! -s conftest.err
20730        } && test -s conftest$ac_exeext &&
20731        $as_test_x conftest$ac_exeext; then
20732   ac_cv_search_opendir=$ac_res
20733 else
20734   echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20736
20737
20738 fi
20739
20740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20741       conftest$ac_exeext
20742   if test "${ac_cv_search_opendir+set}" = set; then
20743   break
20744 fi
20745 done
20746 if test "${ac_cv_search_opendir+set}" = set; then
20747   :
20748 else
20749   ac_cv_search_opendir=no
20750 fi
20751 rm conftest.$ac_ext
20752 LIBS=$ac_func_search_save_LIBS
20753 fi
20754 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20755 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20756 ac_res=$ac_cv_search_opendir
20757 if test "$ac_res" != no; then
20758   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20759
20760 fi
20761
20762 else
20763   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20764 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20765 if test "${ac_cv_search_opendir+set}" = set; then
20766   echo $ECHO_N "(cached) $ECHO_C" >&6
20767 else
20768   ac_func_search_save_LIBS=$LIBS
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h.  */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h.  */
20775
20776 /* Override any GCC internal prototype to avoid an error.
20777    Use char because int might match the return type of a GCC
20778    builtin and then its argument prototype would still apply.  */
20779 #ifdef __cplusplus
20780 extern "C"
20781 #endif
20782 char opendir ();
20783 int
20784 main ()
20785 {
20786 return opendir ();
20787   ;
20788   return 0;
20789 }
20790 _ACEOF
20791 for ac_lib in '' x; do
20792   if test -z "$ac_lib"; then
20793     ac_res="none required"
20794   else
20795     ac_res=-l$ac_lib
20796     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20797   fi
20798   rm -f conftest.$ac_objext conftest$ac_exeext
20799 if { (ac_try="$ac_link"
20800 case "(($ac_try" in
20801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802   *) ac_try_echo=$ac_try;;
20803 esac
20804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20805   (eval "$ac_link") 2>conftest.er1
20806   ac_status=$?
20807   grep -v '^ *+' conftest.er1 >conftest.err
20808   rm -f conftest.er1
20809   cat conftest.err >&5
20810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811   (exit $ac_status); } && {
20812          test -z "$ac_c_werror_flag" ||
20813          test ! -s conftest.err
20814        } && test -s conftest$ac_exeext &&
20815        $as_test_x conftest$ac_exeext; then
20816   ac_cv_search_opendir=$ac_res
20817 else
20818   echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821
20822 fi
20823
20824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20825       conftest$ac_exeext
20826   if test "${ac_cv_search_opendir+set}" = set; then
20827   break
20828 fi
20829 done
20830 if test "${ac_cv_search_opendir+set}" = set; then
20831   :
20832 else
20833   ac_cv_search_opendir=no
20834 fi
20835 rm conftest.$ac_ext
20836 LIBS=$ac_func_search_save_LIBS
20837 fi
20838 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20839 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20840 ac_res=$ac_cv_search_opendir
20841 if test "$ac_res" != no; then
20842   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20843
20844 fi
20845
20846 fi
20847
20848 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20850 if test "${ac_cv_header_stdc+set}" = set; then
20851   echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853   cat >conftest.$ac_ext <<_ACEOF
20854 /* confdefs.h.  */
20855 _ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h.  */
20859 #include <stdlib.h>
20860 #include <stdarg.h>
20861 #include <string.h>
20862 #include <float.h>
20863
20864 int
20865 main ()
20866 {
20867
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 rm -f conftest.$ac_objext
20873 if { (ac_try="$ac_compile"
20874 case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879   (eval "$ac_compile") 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } && {
20886          test -z "$ac_c_werror_flag" ||
20887          test ! -s conftest.err
20888        } && test -s conftest.$ac_objext; then
20889   ac_cv_header_stdc=yes
20890 else
20891   echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894         ac_cv_header_stdc=no
20895 fi
20896
20897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20898
20899 if test $ac_cv_header_stdc = yes; then
20900   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20901   cat >conftest.$ac_ext <<_ACEOF
20902 /* confdefs.h.  */
20903 _ACEOF
20904 cat confdefs.h >>conftest.$ac_ext
20905 cat >>conftest.$ac_ext <<_ACEOF
20906 /* end confdefs.h.  */
20907 #include <string.h>
20908
20909 _ACEOF
20910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20911   $EGREP "memchr" >/dev/null 2>&1; then
20912   :
20913 else
20914   ac_cv_header_stdc=no
20915 fi
20916 rm -f conftest*
20917
20918 fi
20919
20920 if test $ac_cv_header_stdc = yes; then
20921   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20922   cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928 #include <stdlib.h>
20929
20930 _ACEOF
20931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20932   $EGREP "free" >/dev/null 2>&1; then
20933   :
20934 else
20935   ac_cv_header_stdc=no
20936 fi
20937 rm -f conftest*
20938
20939 fi
20940
20941 if test $ac_cv_header_stdc = yes; then
20942   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20943   if test "$cross_compiling" = yes; then
20944   :
20945 else
20946   cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952 #include <ctype.h>
20953 #include <stdlib.h>
20954 #if ((' ' & 0x0FF) == 0x020)
20955 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20956 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20957 #else
20958 # define ISLOWER(c) \
20959                    (('a' <= (c) && (c) <= 'i') \
20960                      || ('j' <= (c) && (c) <= 'r') \
20961                      || ('s' <= (c) && (c) <= 'z'))
20962 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20963 #endif
20964
20965 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20966 int
20967 main ()
20968 {
20969   int i;
20970   for (i = 0; i < 256; i++)
20971     if (XOR (islower (i), ISLOWER (i))
20972         || toupper (i) != TOUPPER (i))
20973       return 2;
20974   return 0;
20975 }
20976 _ACEOF
20977 rm -f conftest$ac_exeext
20978 if { (ac_try="$ac_link"
20979 case "(($ac_try" in
20980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981   *) ac_try_echo=$ac_try;;
20982 esac
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984   (eval "$ac_link") 2>&5
20985   ac_status=$?
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20988   { (case "(($ac_try" in
20989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990   *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993   (eval "$ac_try") 2>&5
20994   ac_status=$?
20995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996   (exit $ac_status); }; }; then
20997   :
20998 else
20999   echo "$as_me: program exited with status $ac_status" >&5
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003 ( exit $ac_status )
21004 ac_cv_header_stdc=no
21005 fi
21006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21007 fi
21008
21009
21010 fi
21011 fi
21012 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21013 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21014 if test $ac_cv_header_stdc = yes; then
21015
21016 cat >>confdefs.h <<\_ACEOF
21017 #define STDC_HEADERS 1
21018 _ACEOF
21019
21020 fi
21021
21022 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21023 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21024 if test "${ac_cv_header_time+set}" = set; then
21025   echo $ECHO_N "(cached) $ECHO_C" >&6
21026 else
21027   cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h.  */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h.  */
21033 #include <sys/types.h>
21034 #include <sys/time.h>
21035 #include <time.h>
21036
21037 int
21038 main ()
21039 {
21040 if ((struct tm *) 0)
21041 return 0;
21042   ;
21043   return 0;
21044 }
21045 _ACEOF
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053   (eval "$ac_compile") 2>conftest.er1
21054   ac_status=$?
21055   grep -v '^ *+' conftest.er1 >conftest.err
21056   rm -f conftest.er1
21057   cat conftest.err >&5
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); } && {
21060          test -z "$ac_c_werror_flag" ||
21061          test ! -s conftest.err
21062        } && test -s conftest.$ac_objext; then
21063   ac_cv_header_time=yes
21064 else
21065   echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21067
21068         ac_cv_header_time=no
21069 fi
21070
21071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21072 fi
21073 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21074 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21075 if test $ac_cv_header_time = yes; then
21076
21077 cat >>confdefs.h <<\_ACEOF
21078 #define TIME_WITH_SYS_TIME 1
21079 _ACEOF
21080
21081 fi
21082
21083 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21084 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21085 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21086   echo $ECHO_N "(cached) $ECHO_C" >&6
21087 else
21088   cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h.  */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h.  */
21094 #include <sys/types.h>
21095 #include <sys/wait.h>
21096 #ifndef WEXITSTATUS
21097 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21098 #endif
21099 #ifndef WIFEXITED
21100 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21101 #endif
21102
21103 int
21104 main ()
21105 {
21106   int s;
21107   wait (&s);
21108   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21109   ;
21110   return 0;
21111 }
21112 _ACEOF
21113 rm -f conftest.$ac_objext
21114 if { (ac_try="$ac_compile"
21115 case "(($ac_try" in
21116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117   *) ac_try_echo=$ac_try;;
21118 esac
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120   (eval "$ac_compile") 2>conftest.er1
21121   ac_status=$?
21122   grep -v '^ *+' conftest.er1 >conftest.err
21123   rm -f conftest.er1
21124   cat conftest.err >&5
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); } && {
21127          test -z "$ac_c_werror_flag" ||
21128          test ! -s conftest.err
21129        } && test -s conftest.$ac_objext; then
21130   ac_cv_header_sys_wait_h=yes
21131 else
21132   echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21134
21135         ac_cv_header_sys_wait_h=no
21136 fi
21137
21138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 fi
21140 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21141 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21142 if test $ac_cv_header_sys_wait_h = yes; then
21143
21144 cat >>confdefs.h <<\_ACEOF
21145 #define HAVE_SYS_WAIT_H 1
21146 _ACEOF
21147
21148 fi
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181 for ac_header in \
21182         unistd.h \
21183         crypt.h \
21184         errno.h \
21185         resource.h \
21186         getopt.h \
21187         malloc.h \
21188         utmp.h \
21189         utmpx.h \
21190         signal.h \
21191         sys/select.h \
21192         syslog.h \
21193         inttypes.h \
21194         stdint.h \
21195         stdio.h \
21196         netdb.h \
21197         semaphore.h \
21198         arpa/inet.h \
21199         netinet/in.h \
21200         sys/types.h \
21201         sys/socket.h \
21202         sys/time.h \
21203         sys/wait.h \
21204         sys/security.h \
21205         fcntl.h \
21206         sys/fcntl.h \
21207         sys/stat.h \
21208         sys/prctl.h \
21209         prot.h \
21210         sia.h \
21211         siad.h
21212
21213 do
21214 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21216   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21219   echo $ECHO_N "(cached) $ECHO_C" >&6
21220 fi
21221 ac_res=`eval echo '${'$as_ac_Header'}'`
21222                { echo "$as_me:$LINENO: result: $ac_res" >&5
21223 echo "${ECHO_T}$ac_res" >&6; }
21224 else
21225   # Is the header compilable?
21226 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21227 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21228 cat >conftest.$ac_ext <<_ACEOF
21229 /* confdefs.h.  */
21230 _ACEOF
21231 cat confdefs.h >>conftest.$ac_ext
21232 cat >>conftest.$ac_ext <<_ACEOF
21233 /* end confdefs.h.  */
21234 $ac_includes_default
21235 #include <$ac_header>
21236 _ACEOF
21237 rm -f conftest.$ac_objext
21238 if { (ac_try="$ac_compile"
21239 case "(($ac_try" in
21240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241   *) ac_try_echo=$ac_try;;
21242 esac
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244   (eval "$ac_compile") 2>conftest.er1
21245   ac_status=$?
21246   grep -v '^ *+' conftest.er1 >conftest.err
21247   rm -f conftest.er1
21248   cat conftest.err >&5
21249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250   (exit $ac_status); } && {
21251          test -z "$ac_c_werror_flag" ||
21252          test ! -s conftest.err
21253        } && test -s conftest.$ac_objext; then
21254   ac_header_compiler=yes
21255 else
21256   echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21258
21259         ac_header_compiler=no
21260 fi
21261
21262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21264 echo "${ECHO_T}$ac_header_compiler" >&6; }
21265
21266 # Is the header present?
21267 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21269 cat >conftest.$ac_ext <<_ACEOF
21270 /* confdefs.h.  */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h.  */
21275 #include <$ac_header>
21276 _ACEOF
21277 if { (ac_try="$ac_cpp conftest.$ac_ext"
21278 case "(($ac_try" in
21279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280   *) ac_try_echo=$ac_try;;
21281 esac
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21284   ac_status=$?
21285   grep -v '^ *+' conftest.er1 >conftest.err
21286   rm -f conftest.er1
21287   cat conftest.err >&5
21288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289   (exit $ac_status); } >/dev/null && {
21290          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21291          test ! -s conftest.err
21292        }; then
21293   ac_header_preproc=yes
21294 else
21295   echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298   ac_header_preproc=no
21299 fi
21300
21301 rm -f conftest.err conftest.$ac_ext
21302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21303 echo "${ECHO_T}$ac_header_preproc" >&6; }
21304
21305 # So?  What about this header?
21306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21307   yes:no: )
21308     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21311 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21312     ac_header_preproc=yes
21313     ;;
21314   no:yes:* )
21315     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21316 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21317     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21318 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21319     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21320 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21321     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21322 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21323     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21325     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21326 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21327
21328     ;;
21329 esac
21330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21333   echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21335   eval "$as_ac_Header=\$ac_header_preproc"
21336 fi
21337 ac_res=`eval echo '${'$as_ac_Header'}'`
21338                { echo "$as_me:$LINENO: result: $ac_res" >&5
21339 echo "${ECHO_T}$ac_res" >&6; }
21340
21341 fi
21342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21343   cat >>confdefs.h <<_ACEOF
21344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21345 _ACEOF
21346
21347 fi
21348
21349 done
21350
21351
21352 REGEX=no
21353 if test "${ac_cv_header_regex_h+set}" = set; then
21354   { echo "$as_me:$LINENO: checking for regex.h" >&5
21355 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21356 if test "${ac_cv_header_regex_h+set}" = set; then
21357   echo $ECHO_N "(cached) $ECHO_C" >&6
21358 fi
21359 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21360 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21361 else
21362   # Is the header compilable?
21363 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21364 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21365 cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h.  */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h.  */
21371 $ac_includes_default
21372 #include <regex.h>
21373 _ACEOF
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381   (eval "$ac_compile") 2>conftest.er1
21382   ac_status=$?
21383   grep -v '^ *+' conftest.er1 >conftest.err
21384   rm -f conftest.er1
21385   cat conftest.err >&5
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); } && {
21388          test -z "$ac_c_werror_flag" ||
21389          test ! -s conftest.err
21390        } && test -s conftest.$ac_objext; then
21391   ac_header_compiler=yes
21392 else
21393   echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21395
21396         ac_header_compiler=no
21397 fi
21398
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21401 echo "${ECHO_T}$ac_header_compiler" >&6; }
21402
21403 # Is the header present?
21404 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21405 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412 #include <regex.h>
21413 _ACEOF
21414 if { (ac_try="$ac_cpp conftest.$ac_ext"
21415 case "(($ac_try" in
21416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417   *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21421   ac_status=$?
21422   grep -v '^ *+' conftest.er1 >conftest.err
21423   rm -f conftest.er1
21424   cat conftest.err >&5
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } >/dev/null && {
21427          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21428          test ! -s conftest.err
21429        }; then
21430   ac_header_preproc=yes
21431 else
21432   echo "$as_me: failed program was:" >&5
21433 sed 's/^/| /' conftest.$ac_ext >&5
21434
21435   ac_header_preproc=no
21436 fi
21437
21438 rm -f conftest.err conftest.$ac_ext
21439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21440 echo "${ECHO_T}$ac_header_preproc" >&6; }
21441
21442 # So?  What about this header?
21443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21444   yes:no: )
21445     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21446 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21447     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21448 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21449     ac_header_preproc=yes
21450     ;;
21451   no:yes:* )
21452     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21453 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21454     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
21455 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
21456     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21457 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21458     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
21459 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21460     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21461 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21462     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21463 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21464
21465     ;;
21466 esac
21467 { echo "$as_me:$LINENO: checking for regex.h" >&5
21468 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21469 if test "${ac_cv_header_regex_h+set}" = set; then
21470   echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472   ac_cv_header_regex_h=$ac_header_preproc
21473 fi
21474 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21475 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21476
21477 fi
21478 if test $ac_cv_header_regex_h = yes; then
21479   cat >>confdefs.h <<\_ACEOF
21480 #define HAVE_REGEX_H 1
21481 _ACEOF
21482
21483 fi
21484
21485
21486 if test "x$ac_cv_header_regex_h" = "xyes"; then
21487   REGEX_EXTENDED=no
21488   REGEX=yes
21489   cat >conftest.$ac_ext <<_ACEOF
21490 /* confdefs.h.  */
21491 _ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h.  */
21495 #include <regex.h>
21496      #ifdef REG_EXTENDED
21497        yes
21498      #endif
21499
21500 _ACEOF
21501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21502   $EGREP "yes" >/dev/null 2>&1; then
21503   cat >>confdefs.h <<\_ACEOF
21504 #define HAVE_REG_EXTENDED 1
21505 _ACEOF
21506  REGEX_EXTENDED=yes
21507 fi
21508 rm -f conftest*
21509
21510 fi
21511
21512
21513
21514 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21515 then
21516   cat >>confdefs.h <<\_ACEOF
21517 #define OSFC2 1
21518 _ACEOF
21519
21520 fi
21521
21522 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21523 then
21524   cat >>confdefs.h <<\_ACEOF
21525 #define OSFSIA 1
21526 _ACEOF
21527
21528 fi
21529
21530 OPENSSL_INCLUDE="-DNO_OPENSSL"
21531 if test "x$OPENSSL_LIBS" = "x"; then
21532     { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21533 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21534 else
21535     old_CPPFLAGS=$CPPFLAGS
21536     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21537         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21538     fi
21539         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21540
21541
21542
21543
21544 for ac_header in \
21545         openssl/ssl.h \
21546         openssl/crypto.h \
21547         openssl/err.h \
21548         openssl/engine.h
21549 do
21550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21552   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21555   echo $ECHO_N "(cached) $ECHO_C" >&6
21556 fi
21557 ac_res=`eval echo '${'$as_ac_Header'}'`
21558                { echo "$as_me:$LINENO: result: $ac_res" >&5
21559 echo "${ECHO_T}$ac_res" >&6; }
21560 else
21561   # Is the header compilable?
21562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21564 cat >conftest.$ac_ext <<_ACEOF
21565 /* confdefs.h.  */
21566 _ACEOF
21567 cat confdefs.h >>conftest.$ac_ext
21568 cat >>conftest.$ac_ext <<_ACEOF
21569 /* end confdefs.h.  */
21570 $ac_includes_default
21571 #include <$ac_header>
21572 _ACEOF
21573 rm -f conftest.$ac_objext
21574 if { (ac_try="$ac_compile"
21575 case "(($ac_try" in
21576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577   *) ac_try_echo=$ac_try;;
21578 esac
21579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580   (eval "$ac_compile") 2>conftest.er1
21581   ac_status=$?
21582   grep -v '^ *+' conftest.er1 >conftest.err
21583   rm -f conftest.er1
21584   cat conftest.err >&5
21585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586   (exit $ac_status); } && {
21587          test -z "$ac_c_werror_flag" ||
21588          test ! -s conftest.err
21589        } && test -s conftest.$ac_objext; then
21590   ac_header_compiler=yes
21591 else
21592   echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21594
21595         ac_header_compiler=no
21596 fi
21597
21598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21600 echo "${ECHO_T}$ac_header_compiler" >&6; }
21601
21602 # Is the header present?
21603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21605 cat >conftest.$ac_ext <<_ACEOF
21606 /* confdefs.h.  */
21607 _ACEOF
21608 cat confdefs.h >>conftest.$ac_ext
21609 cat >>conftest.$ac_ext <<_ACEOF
21610 /* end confdefs.h.  */
21611 #include <$ac_header>
21612 _ACEOF
21613 if { (ac_try="$ac_cpp conftest.$ac_ext"
21614 case "(($ac_try" in
21615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616   *) ac_try_echo=$ac_try;;
21617 esac
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21620   ac_status=$?
21621   grep -v '^ *+' conftest.er1 >conftest.err
21622   rm -f conftest.er1
21623   cat conftest.err >&5
21624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); } >/dev/null && {
21626          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21627          test ! -s conftest.err
21628        }; then
21629   ac_header_preproc=yes
21630 else
21631   echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634   ac_header_preproc=no
21635 fi
21636
21637 rm -f conftest.err conftest.$ac_ext
21638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21639 echo "${ECHO_T}$ac_header_preproc" >&6; }
21640
21641 # So?  What about this header?
21642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21643   yes:no: )
21644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21648     ac_header_preproc=yes
21649     ;;
21650   no:yes:* )
21651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21663
21664     ;;
21665 esac
21666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21669   echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671   eval "$as_ac_Header=\$ac_header_preproc"
21672 fi
21673 ac_res=`eval echo '${'$as_ac_Header'}'`
21674                { echo "$as_me:$LINENO: result: $ac_res" >&5
21675 echo "${ECHO_T}$ac_res" >&6; }
21676
21677 fi
21678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21679   cat >>confdefs.h <<_ACEOF
21680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21681 _ACEOF
21682
21683 else
21684   OPENSSL_LIBS=
21685
21686 fi
21687
21688 done
21689
21690     if test "x$OPENSSL_LIBS" != "x"; then
21691         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21692 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
21693         cat >conftest.$ac_ext <<_ACEOF
21694 /* confdefs.h.  */
21695 _ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h.  */
21699 #include <openssl/crypto.h>
21700              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21701              yes
21702              #endif
21703
21704 _ACEOF
21705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21706   $EGREP "yes" >/dev/null 2>&1; then
21707   goodssl="yes"
21708 fi
21709 rm -f conftest*
21710
21711         if test "x$goodssl" != "xyes"; then
21712             { echo "$as_me:$LINENO: result: no" >&5
21713 echo "${ECHO_T}no" >&6; }
21714             OPENSSL_LIBS=
21715         else
21716             { echo "$as_me:$LINENO: result: yes" >&5
21717 echo "${ECHO_T}yes" >&6; }
21718             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21719                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21720             else
21721                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21722             fi
21723         fi
21724     fi
21725     CPPFLAGS=$old_CPPFLAGS
21726 fi
21727
21728
21729 export OPENSSL_LIBS
21730
21731
21732 { echo "$as_me:$LINENO: checking for off_t" >&5
21733 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21734 if test "${ac_cv_type_off_t+set}" = set; then
21735   echo $ECHO_N "(cached) $ECHO_C" >&6
21736 else
21737   cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h.  */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h.  */
21743 $ac_includes_default
21744 typedef off_t ac__type_new_;
21745 int
21746 main ()
21747 {
21748 if ((ac__type_new_ *) 0)
21749   return 0;
21750 if (sizeof (ac__type_new_))
21751   return 0;
21752   ;
21753   return 0;
21754 }
21755 _ACEOF
21756 rm -f conftest.$ac_objext
21757 if { (ac_try="$ac_compile"
21758 case "(($ac_try" in
21759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760   *) ac_try_echo=$ac_try;;
21761 esac
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763   (eval "$ac_compile") 2>conftest.er1
21764   ac_status=$?
21765   grep -v '^ *+' conftest.er1 >conftest.err
21766   rm -f conftest.er1
21767   cat conftest.err >&5
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); } && {
21770          test -z "$ac_c_werror_flag" ||
21771          test ! -s conftest.err
21772        } && test -s conftest.$ac_objext; then
21773   ac_cv_type_off_t=yes
21774 else
21775   echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778         ac_cv_type_off_t=no
21779 fi
21780
21781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21782 fi
21783 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21784 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21785 if test $ac_cv_type_off_t = yes; then
21786   :
21787 else
21788
21789 cat >>confdefs.h <<_ACEOF
21790 #define off_t long int
21791 _ACEOF
21792
21793 fi
21794
21795 { echo "$as_me:$LINENO: checking for pid_t" >&5
21796 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21797 if test "${ac_cv_type_pid_t+set}" = set; then
21798   echo $ECHO_N "(cached) $ECHO_C" >&6
21799 else
21800   cat >conftest.$ac_ext <<_ACEOF
21801 /* confdefs.h.  */
21802 _ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h.  */
21806 $ac_includes_default
21807 typedef pid_t ac__type_new_;
21808 int
21809 main ()
21810 {
21811 if ((ac__type_new_ *) 0)
21812   return 0;
21813 if (sizeof (ac__type_new_))
21814   return 0;
21815   ;
21816   return 0;
21817 }
21818 _ACEOF
21819 rm -f conftest.$ac_objext
21820 if { (ac_try="$ac_compile"
21821 case "(($ac_try" in
21822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21823   *) ac_try_echo=$ac_try;;
21824 esac
21825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21826   (eval "$ac_compile") 2>conftest.er1
21827   ac_status=$?
21828   grep -v '^ *+' conftest.er1 >conftest.err
21829   rm -f conftest.er1
21830   cat conftest.err >&5
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); } && {
21833          test -z "$ac_c_werror_flag" ||
21834          test ! -s conftest.err
21835        } && test -s conftest.$ac_objext; then
21836   ac_cv_type_pid_t=yes
21837 else
21838   echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841         ac_cv_type_pid_t=no
21842 fi
21843
21844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21845 fi
21846 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21847 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21848 if test $ac_cv_type_pid_t = yes; then
21849   :
21850 else
21851
21852 cat >>confdefs.h <<_ACEOF
21853 #define pid_t int
21854 _ACEOF
21855
21856 fi
21857
21858 { echo "$as_me:$LINENO: checking for size_t" >&5
21859 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21860 if test "${ac_cv_type_size_t+set}" = set; then
21861   echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863   cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h.  */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h.  */
21869 $ac_includes_default
21870 typedef size_t ac__type_new_;
21871 int
21872 main ()
21873 {
21874 if ((ac__type_new_ *) 0)
21875   return 0;
21876 if (sizeof (ac__type_new_))
21877   return 0;
21878   ;
21879   return 0;
21880 }
21881 _ACEOF
21882 rm -f conftest.$ac_objext
21883 if { (ac_try="$ac_compile"
21884 case "(($ac_try" in
21885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21886   *) ac_try_echo=$ac_try;;
21887 esac
21888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21889   (eval "$ac_compile") 2>conftest.er1
21890   ac_status=$?
21891   grep -v '^ *+' conftest.er1 >conftest.err
21892   rm -f conftest.er1
21893   cat conftest.err >&5
21894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895   (exit $ac_status); } && {
21896          test -z "$ac_c_werror_flag" ||
21897          test ! -s conftest.err
21898        } && test -s conftest.$ac_objext; then
21899   ac_cv_type_size_t=yes
21900 else
21901   echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904         ac_cv_type_size_t=no
21905 fi
21906
21907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21908 fi
21909 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21910 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21911 if test $ac_cv_type_size_t = yes; then
21912   :
21913 else
21914
21915 cat >>confdefs.h <<_ACEOF
21916 #define size_t unsigned int
21917 _ACEOF
21918
21919 fi
21920
21921 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21922 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21923 if test "${ac_cv_type_uid_t+set}" = set; then
21924   echo $ECHO_N "(cached) $ECHO_C" >&6
21925 else
21926   cat >conftest.$ac_ext <<_ACEOF
21927 /* confdefs.h.  */
21928 _ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h.  */
21932 #include <sys/types.h>
21933
21934 _ACEOF
21935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21936   $EGREP "uid_t" >/dev/null 2>&1; then
21937   ac_cv_type_uid_t=yes
21938 else
21939   ac_cv_type_uid_t=no
21940 fi
21941 rm -f conftest*
21942
21943 fi
21944 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21945 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21946 if test $ac_cv_type_uid_t = no; then
21947
21948 cat >>confdefs.h <<\_ACEOF
21949 #define uid_t int
21950 _ACEOF
21951
21952
21953 cat >>confdefs.h <<\_ACEOF
21954 #define gid_t int
21955 _ACEOF
21956
21957 fi
21958
21959
21960
21961   { echo "$as_me:$LINENO: checking for socklen_t" >&5
21962 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21963 if test "${ac_cv_type_socklen_t+set}" = set; then
21964   echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966    ac_cv_type_socklen_t=no
21967       cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 #ifdef HAVE_SYS_TYPES_H
21974 #include <sys/types.h>
21975 #endif
21976 #ifdef HAVE_SYS_SOCKET_H
21977 #include <sys/socket.h>
21978 #endif
21979
21980 int
21981 main ()
21982 {
21983 socklen_t foo
21984   ;
21985   return 0;
21986 }
21987 _ACEOF
21988 rm -f conftest.$ac_objext
21989 if { (ac_try="$ac_compile"
21990 case "(($ac_try" in
21991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992   *) ac_try_echo=$ac_try;;
21993 esac
21994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21995   (eval "$ac_compile") 2>conftest.er1
21996   ac_status=$?
21997   grep -v '^ *+' conftest.er1 >conftest.err
21998   rm -f conftest.er1
21999   cat conftest.err >&5
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); } && {
22002          test -z "$ac_c_werror_flag" ||
22003          test ! -s conftest.err
22004        } && test -s conftest.$ac_objext; then
22005   ac_cv_type_socklen_t=yes
22006 else
22007   echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010
22011 fi
22012
22013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014
22015
22016 fi
22017 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22018 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22019
22020   if test "$ac_cv_type_socklen_t" != "yes"; then
22021          cat >>confdefs.h <<\_ACEOF
22022 #define socklen_t int
22023 _ACEOF
22024
22025   fi
22026
22027
22028
22029   { echo "$as_me:$LINENO: checking for uint8_t" >&5
22030 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22031 if test "${ac_cv_type_uint8_t+set}" = set; then
22032   echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034    ac_cv_type_uint8_t=no
22035       cat >conftest.$ac_ext <<_ACEOF
22036 /* confdefs.h.  */
22037 _ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h.  */
22041 #ifdef HAVE_INTTYPES_H
22042 #include <inttypes.h>
22043 #endif
22044 #ifdef HAVE_STDINT_H
22045 #include <stdint.h>
22046 #endif
22047
22048 int
22049 main ()
22050 {
22051 uint8_t foo
22052   ;
22053   return 0;
22054 }
22055 _ACEOF
22056 rm -f conftest.$ac_objext
22057 if { (ac_try="$ac_compile"
22058 case "(($ac_try" in
22059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060   *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063   (eval "$ac_compile") 2>conftest.er1
22064   ac_status=$?
22065   grep -v '^ *+' conftest.er1 >conftest.err
22066   rm -f conftest.er1
22067   cat conftest.err >&5
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); } && {
22070          test -z "$ac_c_werror_flag" ||
22071          test ! -s conftest.err
22072        } && test -s conftest.$ac_objext; then
22073   ac_cv_type_uint8_t=yes
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078
22079 fi
22080
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082
22083
22084 fi
22085 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22086 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22087
22088   if test "$ac_cv_type_uint8_t" != "yes"; then
22089          cat >>confdefs.h <<\_ACEOF
22090 #define uint8_t unsigned char
22091 _ACEOF
22092
22093   fi
22094
22095
22096
22097   { echo "$as_me:$LINENO: checking for uint16_t" >&5
22098 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22099 if test "${ac_cv_type_uint16_t+set}" = set; then
22100   echo $ECHO_N "(cached) $ECHO_C" >&6
22101 else
22102    ac_cv_type_uint16_t=no
22103       cat >conftest.$ac_ext <<_ACEOF
22104 /* confdefs.h.  */
22105 _ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h.  */
22109 #ifdef HAVE_INTTYPES_H
22110 #include <inttypes.h>
22111 #endif
22112 #ifdef HAVE_STDINT_H
22113 #include <stdint.h>
22114 #endif
22115
22116 int
22117 main ()
22118 {
22119 uint16_t foo
22120   ;
22121   return 0;
22122 }
22123 _ACEOF
22124 rm -f conftest.$ac_objext
22125 if { (ac_try="$ac_compile"
22126 case "(($ac_try" in
22127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128   *) ac_try_echo=$ac_try;;
22129 esac
22130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131   (eval "$ac_compile") 2>conftest.er1
22132   ac_status=$?
22133   grep -v '^ *+' conftest.er1 >conftest.err
22134   rm -f conftest.er1
22135   cat conftest.err >&5
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); } && {
22138          test -z "$ac_c_werror_flag" ||
22139          test ! -s conftest.err
22140        } && test -s conftest.$ac_objext; then
22141   ac_cv_type_uint16_t=yes
22142 else
22143   echo "$as_me: failed program was:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22145
22146
22147 fi
22148
22149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22150
22151
22152 fi
22153 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22154 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22155
22156   if test "$ac_cv_type_uint16_t" != "yes"; then
22157          cat >>confdefs.h <<\_ACEOF
22158 #define uint16_t unsigned short
22159 _ACEOF
22160
22161   fi
22162
22163
22164
22165   { echo "$as_me:$LINENO: checking for uint32_t" >&5
22166 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22167 if test "${ac_cv_type_uint32_t+set}" = set; then
22168   echo $ECHO_N "(cached) $ECHO_C" >&6
22169 else
22170    ac_cv_type_uint32_t=no
22171       cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h.  */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h.  */
22177 #ifdef HAVE_INTTYPES_H
22178 #include <inttypes.h>
22179 #endif
22180 #ifdef HAVE_STDINT_H
22181 #include <stdint.h>
22182 #endif
22183
22184 int
22185 main ()
22186 {
22187 uint32_t foo
22188   ;
22189   return 0;
22190 }
22191 _ACEOF
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196   *) ac_try_echo=$ac_try;;
22197 esac
22198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22199   (eval "$ac_compile") 2>conftest.er1
22200   ac_status=$?
22201   grep -v '^ *+' conftest.er1 >conftest.err
22202   rm -f conftest.er1
22203   cat conftest.err >&5
22204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205   (exit $ac_status); } && {
22206          test -z "$ac_c_werror_flag" ||
22207          test ! -s conftest.err
22208        } && test -s conftest.$ac_objext; then
22209   ac_cv_type_uint32_t=yes
22210 else
22211   echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22213
22214
22215 fi
22216
22217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22218
22219
22220 fi
22221 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22222 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22223
22224   if test "$ac_cv_type_uint32_t" != "yes"; then
22225          cat >>confdefs.h <<\_ACEOF
22226 #define uint32_t unsigned int
22227 _ACEOF
22228
22229   fi
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256 for ac_func in \
22257         getopt_long \
22258         lockf \
22259         strsignal \
22260         sigaction \
22261         sigprocmask \
22262         pthread_sigmask \
22263         snprintf \
22264         vsnprintf \
22265         setsid \
22266         strncasecmp \
22267         strcasecmp \
22268         localtime_r \
22269         ctime_r \
22270         gmtime_r \
22271         strsep \
22272         inet_aton \
22273         inet_pton \
22274         inet_ntop \
22275         gethostname \
22276         setlinebuf \
22277         setvbuf \
22278         getusershell \
22279         initgroups \
22280         closefrom
22281
22282 do
22283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22287   echo $ECHO_N "(cached) $ECHO_C" >&6
22288 else
22289   cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h.  */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h.  */
22295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22296    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22297 #define $ac_func innocuous_$ac_func
22298
22299 /* System header to define __stub macros and hopefully few prototypes,
22300     which can conflict with char $ac_func (); below.
22301     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22302     <limits.h> exists even on freestanding compilers.  */
22303
22304 #ifdef __STDC__
22305 # include <limits.h>
22306 #else
22307 # include <assert.h>
22308 #endif
22309
22310 #undef $ac_func
22311
22312 /* Override any GCC internal prototype to avoid an error.
22313    Use char because int might match the return type of a GCC
22314    builtin and then its argument prototype would still apply.  */
22315 #ifdef __cplusplus
22316 extern "C"
22317 #endif
22318 char $ac_func ();
22319 /* The GNU C library defines this for functions which it implements
22320     to always fail with ENOSYS.  Some functions are actually named
22321     something starting with __ and the normal name is an alias.  */
22322 #if defined __stub_$ac_func || defined __stub___$ac_func
22323 choke me
22324 #endif
22325
22326 int
22327 main ()
22328 {
22329 return $ac_func ();
22330   ;
22331   return 0;
22332 }
22333 _ACEOF
22334 rm -f conftest.$ac_objext conftest$ac_exeext
22335 if { (ac_try="$ac_link"
22336 case "(($ac_try" in
22337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338   *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341   (eval "$ac_link") 2>conftest.er1
22342   ac_status=$?
22343   grep -v '^ *+' conftest.er1 >conftest.err
22344   rm -f conftest.er1
22345   cat conftest.err >&5
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); } && {
22348          test -z "$ac_c_werror_flag" ||
22349          test ! -s conftest.err
22350        } && test -s conftest$ac_exeext &&
22351        $as_test_x conftest$ac_exeext; then
22352   eval "$as_ac_var=yes"
22353 else
22354   echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22356
22357         eval "$as_ac_var=no"
22358 fi
22359
22360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22361       conftest$ac_exeext conftest.$ac_ext
22362 fi
22363 ac_res=`eval echo '${'$as_ac_var'}'`
22364                { echo "$as_me:$LINENO: result: $ac_res" >&5
22365 echo "${ECHO_T}$ac_res" >&6; }
22366 if test `eval echo '${'$as_ac_var'}'` = yes; then
22367   cat >>confdefs.h <<_ACEOF
22368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22369 _ACEOF
22370
22371 fi
22372 done
22373
22374 for ac_func in \
22375         crypt \
22376         strncasecmp \
22377         strcasecmp \
22378         inet_aton \
22379         gethostname \
22380         setlinebuf \
22381         getusershell \
22382         endusershell
22383
22384 do
22385 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22386 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
22387 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
22388   echo $ECHO_N "(cached) $ECHO_C" >&6
22389 else
22390   cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h.  */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h.  */
22396
22397 #include <stdio.h>
22398 #include <string.h>
22399 #ifdef HAVE_UNISTD_H
22400 #include <unistd.h>
22401 #endif
22402 #ifdef HAVE_CRYPT_H
22403 #include <crypt.h>
22404 #endif
22405 #ifdef HAVE_ERRNO_H
22406 #include <errno.h>
22407 #endif
22408 #ifdef HAVE_RESOURCE_H
22409 #include <resource.h>
22410 #endif
22411 #ifdef HAVE_GETOPT_H
22412 #include <getopt.h>
22413 #endif
22414 #ifdef HAVE_MALLOC_H
22415 #include <malloc.h>
22416 #endif
22417 #ifdef HAVE_UTMP_H
22418 #include <utmp.h>
22419 #endif
22420 #ifdef HAVE_UTMPX_H
22421 #include <utmpx.h>
22422 #endif
22423 #ifdef HAVE_SYS_SELECT_H
22424 #include <sys/select.h>
22425 #endif
22426 #ifdef HAVE_DLFCN_H
22427 #include <dlfcn.h>
22428 #endif
22429 #ifdef HAVE_REGEX_H
22430 #include <regex.h>
22431 #endif
22432 #ifdef HAVE_SYSLOG_H
22433 #include <syslog.h>
22434 #endif
22435 #ifdef HAVE_INTTYPES_H
22436 #include <inttypes.h>
22437 #endif
22438 #ifdef HAVE_STDINT_H
22439 #include <stdint.h>
22440 #endif
22441 #ifdef HAVE_ARPA_INET_H
22442 #include <arpa/inet.h>
22443 #endif
22444
22445 int
22446 main ()
22447 {
22448 char *(*pfn) = (char *(*)) $ac_func
22449   ;
22450   return 0;
22451 }
22452 _ACEOF
22453 rm -f conftest.$ac_objext
22454 if { (ac_try="$ac_compile"
22455 case "(($ac_try" in
22456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457   *) ac_try_echo=$ac_try;;
22458 esac
22459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460   (eval "$ac_compile") 2>conftest.er1
22461   ac_status=$?
22462   grep -v '^ *+' conftest.er1 >conftest.err
22463   rm -f conftest.er1
22464   cat conftest.err >&5
22465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466   (exit $ac_status); } && {
22467          test -z "$ac_c_werror_flag" ||
22468          test ! -s conftest.err
22469        } && test -s conftest.$ac_objext; then
22470   eval "radius_cv_decl_needed_$ac_func=no"
22471 else
22472   echo "$as_me: failed program was:" >&5
22473 sed 's/^/| /' conftest.$ac_ext >&5
22474
22475         eval "radius_cv_decl_needed_$ac_func=yes"
22476 fi
22477
22478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479 fi
22480
22481 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22482   { echo "$as_me:$LINENO: result: yes" >&5
22483 echo "${ECHO_T}yes" >&6; }
22484   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22485   cat >>confdefs.h <<_ACEOF
22486 #define $radius_tr_decl 1
22487 _ACEOF
22488
22489 else
22490   { echo "$as_me:$LINENO: result: no" >&5
22491 echo "${ECHO_T}no" >&6; }
22492 fi
22493
22494 done
22495
22496
22497 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22498 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22499 if test "${ac_cv_type_signal+set}" = set; then
22500   echo $ECHO_N "(cached) $ECHO_C" >&6
22501 else
22502   cat >conftest.$ac_ext <<_ACEOF
22503 /* confdefs.h.  */
22504 _ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h.  */
22508 #include <sys/types.h>
22509 #include <signal.h>
22510
22511 int
22512 main ()
22513 {
22514 return *(signal (0, 0)) (0) == 1;
22515   ;
22516   return 0;
22517 }
22518 _ACEOF
22519 rm -f conftest.$ac_objext
22520 if { (ac_try="$ac_compile"
22521 case "(($ac_try" in
22522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523   *) ac_try_echo=$ac_try;;
22524 esac
22525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22526   (eval "$ac_compile") 2>conftest.er1
22527   ac_status=$?
22528   grep -v '^ *+' conftest.er1 >conftest.err
22529   rm -f conftest.er1
22530   cat conftest.err >&5
22531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532   (exit $ac_status); } && {
22533          test -z "$ac_c_werror_flag" ||
22534          test ! -s conftest.err
22535        } && test -s conftest.$ac_objext; then
22536   ac_cv_type_signal=int
22537 else
22538   echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22540
22541         ac_cv_type_signal=void
22542 fi
22543
22544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22545 fi
22546 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22547 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22548
22549 cat >>confdefs.h <<_ACEOF
22550 #define RETSIGTYPE $ac_cv_type_signal
22551 _ACEOF
22552
22553
22554
22555 if test "x$ac_cv_header_utmpx_h" = "xyes"
22556 then
22557
22558   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22559 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
22560
22561
22562   cat >conftest.$ac_ext <<_ACEOF
22563 /* confdefs.h.  */
22564 _ACEOF
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h.  */
22568
22569 #include <utmpx.h>
22570 #ifndef offsetof
22571 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22572 #endif
22573
22574 int
22575 main ()
22576 {
22577  int foo = offsetof(struct utmpx, ut_xtime)
22578   ;
22579   return 0;
22580 }
22581 _ACEOF
22582 rm -f conftest.$ac_objext
22583 if { (ac_try="$ac_compile"
22584 case "(($ac_try" in
22585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586   *) ac_try_echo=$ac_try;;
22587 esac
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589   (eval "$ac_compile") 2>conftest.er1
22590   ac_status=$?
22591   grep -v '^ *+' conftest.er1 >conftest.err
22592   rm -f conftest.er1
22593   cat conftest.err >&5
22594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595   (exit $ac_status); } && {
22596          test -z "$ac_c_werror_flag" ||
22597          test ! -s conftest.err
22598        } && test -s conftest.$ac_objext; then
22599   has_element=" "
22600 else
22601   echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22603
22604         has_element=
22605 fi
22606
22607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22608
22609   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22610   if test "x$has_element" != "x"; then
22611     { echo "$as_me:$LINENO: result: yes" >&5
22612 echo "${ECHO_T}yes" >&6; }
22613     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22614   else
22615     { echo "$as_me:$LINENO: result: no" >&5
22616 echo "${ECHO_T}no" >&6; }
22617     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22618  fi
22619
22620  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22621  then
22622    cat >>confdefs.h <<\_ACEOF
22623 #define ut_xtime ut_tv.tv_sec
22624 _ACEOF
22625
22626  fi
22627 fi
22628
22629
22630   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22631 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
22632
22633
22634   cat >conftest.$ac_ext <<_ACEOF
22635 /* confdefs.h.  */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h.  */
22640
22641 #include <netinet/in.h>
22642 #ifndef offsetof
22643 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22644 #endif
22645
22646 int
22647 main ()
22648 {
22649  int foo = offsetof(struct in_pktinfo, ipi_addr)
22650   ;
22651   return 0;
22652 }
22653 _ACEOF
22654 rm -f conftest.$ac_objext
22655 if { (ac_try="$ac_compile"
22656 case "(($ac_try" in
22657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22658   *) ac_try_echo=$ac_try;;
22659 esac
22660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22661   (eval "$ac_compile") 2>conftest.er1
22662   ac_status=$?
22663   grep -v '^ *+' conftest.er1 >conftest.err
22664   rm -f conftest.er1
22665   cat conftest.err >&5
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); } && {
22668          test -z "$ac_c_werror_flag" ||
22669          test ! -s conftest.err
22670        } && test -s conftest.$ac_objext; then
22671   has_element=" "
22672 else
22673   echo "$as_me: failed program was:" >&5
22674 sed 's/^/| /' conftest.$ac_ext >&5
22675
22676         has_element=
22677 fi
22678
22679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22680
22681   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22682   if test "x$has_element" != "x"; then
22683     { echo "$as_me:$LINENO: result: yes" >&5
22684 echo "${ECHO_T}yes" >&6; }
22685     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22686   else
22687     { echo "$as_me:$LINENO: result: no" >&5
22688 echo "${ECHO_T}no" >&6; }
22689     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22690  fi
22691
22692 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22693 then
22694         cat >>confdefs.h <<\_ACEOF
22695 #define HAVE_IP_PKTINFO 1
22696 _ACEOF
22697
22698 fi
22699
22700
22701 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22702 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22703 if test "${ac_cv_c_const+set}" = set; then
22704   echo $ECHO_N "(cached) $ECHO_C" >&6
22705 else
22706   cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h.  */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h.  */
22712
22713 int
22714 main ()
22715 {
22716 /* FIXME: Include the comments suggested by Paul. */
22717 #ifndef __cplusplus
22718   /* Ultrix mips cc rejects this.  */
22719   typedef int charset[2];
22720   const charset cs;
22721   /* SunOS 4.1.1 cc rejects this.  */
22722   char const *const *pcpcc;
22723   char **ppc;
22724   /* NEC SVR4.0.2 mips cc rejects this.  */
22725   struct point {int x, y;};
22726   static struct point const zero = {0,0};
22727   /* AIX XL C 1.02.0.0 rejects this.
22728      It does not let you subtract one const X* pointer from another in
22729      an arm of an if-expression whose if-part is not a constant
22730      expression */
22731   const char *g = "string";
22732   pcpcc = &g + (g ? g-g : 0);
22733   /* HPUX 7.0 cc rejects these. */
22734   ++pcpcc;
22735   ppc = (char**) pcpcc;
22736   pcpcc = (char const *const *) ppc;
22737   { /* SCO 3.2v4 cc rejects this.  */
22738     char *t;
22739     char const *s = 0 ? (char *) 0 : (char const *) 0;
22740
22741     *t++ = 0;
22742     if (s) return 0;
22743   }
22744   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22745     int x[] = {25, 17};
22746     const int *foo = &x[0];
22747     ++foo;
22748   }
22749   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22750     typedef const int *iptr;
22751     iptr p = 0;
22752     ++p;
22753   }
22754   { /* AIX XL C 1.02.0.0 rejects this saying
22755        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22756     struct s { int j; const int *ap[3]; };
22757     struct s *b; b->j = 5;
22758   }
22759   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22760     const int foo = 10;
22761     if (!foo) return 0;
22762   }
22763   return !cs[0] && !zero.x;
22764 #endif
22765
22766   ;
22767   return 0;
22768 }
22769 _ACEOF
22770 rm -f conftest.$ac_objext
22771 if { (ac_try="$ac_compile"
22772 case "(($ac_try" in
22773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22774   *) ac_try_echo=$ac_try;;
22775 esac
22776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22777   (eval "$ac_compile") 2>conftest.er1
22778   ac_status=$?
22779   grep -v '^ *+' conftest.er1 >conftest.err
22780   rm -f conftest.er1
22781   cat conftest.err >&5
22782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783   (exit $ac_status); } && {
22784          test -z "$ac_c_werror_flag" ||
22785          test ! -s conftest.err
22786        } && test -s conftest.$ac_objext; then
22787   ac_cv_c_const=yes
22788 else
22789   echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792         ac_cv_c_const=no
22793 fi
22794
22795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22796 fi
22797 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22798 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22799 if test $ac_cv_c_const = no; then
22800
22801 cat >>confdefs.h <<\_ACEOF
22802 #define const
22803 _ACEOF
22804
22805 fi
22806
22807
22808 { echo "$as_me:$LINENO: checking type of OS" >&5
22809 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
22810 OS=`uname -s`
22811 { echo "$as_me:$LINENO: result: $OS" >&5
22812 echo "${ECHO_T}$OS" >&6; }
22813 if test "$OS" = "OS/2"; then
22814         LIBPREFIX=
22815 else
22816         LIBPREFIX=lib
22817 fi
22818
22819
22820 if test "x$GCC" = "xyes"; then
22821     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22822 fi
22823
22824 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22825 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
22826 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22827   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22828   CFLAGS="$CFLAGS $devflags"
22829   INSTALLSTRIP=""
22830   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22831 echo "${ECHO_T}yes.  Using $devflags" >&6; }
22832 else
22833   devflags=""
22834   CFLAGS="$CFLAGS -DNDEBUG"
22835   INSTALLSTRIP="-s"
22836   { echo "$as_me:$LINENO: result: no." >&5
22837 echo "${ECHO_T}no." >&6; }
22838 fi
22839
22840
22841 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22842 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22843 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22844   echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846   ac_check_lib_save_LIBS=$LIBS
22847 LIBS="-lcrypt  $LIBS"
22848 cat >conftest.$ac_ext <<_ACEOF
22849 /* confdefs.h.  */
22850 _ACEOF
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h.  */
22854
22855 /* Override any GCC internal prototype to avoid an error.
22856    Use char because int might match the return type of a GCC
22857    builtin and then its argument prototype would still apply.  */
22858 #ifdef __cplusplus
22859 extern "C"
22860 #endif
22861 char crypt ();
22862 int
22863 main ()
22864 {
22865 return crypt ();
22866   ;
22867   return 0;
22868 }
22869 _ACEOF
22870 rm -f conftest.$ac_objext conftest$ac_exeext
22871 if { (ac_try="$ac_link"
22872 case "(($ac_try" in
22873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874   *) ac_try_echo=$ac_try;;
22875 esac
22876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877   (eval "$ac_link") 2>conftest.er1
22878   ac_status=$?
22879   grep -v '^ *+' conftest.er1 >conftest.err
22880   rm -f conftest.er1
22881   cat conftest.err >&5
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); } && {
22884          test -z "$ac_c_werror_flag" ||
22885          test ! -s conftest.err
22886        } && test -s conftest$ac_exeext &&
22887        $as_test_x conftest$ac_exeext; then
22888   ac_cv_lib_crypt_crypt=yes
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893         ac_cv_lib_crypt_crypt=no
22894 fi
22895
22896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22897       conftest$ac_exeext conftest.$ac_ext
22898 LIBS=$ac_check_lib_save_LIBS
22899 fi
22900 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22901 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22902 if test $ac_cv_lib_crypt_crypt = yes; then
22903   CRYPTLIB="-lcrypt"
22904
22905 fi
22906
22907 if test "$CRYPTLIB" != ""; then
22908   cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_CRYPT 1
22910 _ACEOF
22911
22912 else
22913   { echo "$as_me:$LINENO: checking for crypt" >&5
22914 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
22915 if test "${ac_cv_func_crypt+set}" = set; then
22916   echo $ECHO_N "(cached) $ECHO_C" >&6
22917 else
22918   cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h.  */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h.  */
22924 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22926 #define crypt innocuous_crypt
22927
22928 /* System header to define __stub macros and hopefully few prototypes,
22929     which can conflict with char crypt (); below.
22930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22931     <limits.h> exists even on freestanding compilers.  */
22932
22933 #ifdef __STDC__
22934 # include <limits.h>
22935 #else
22936 # include <assert.h>
22937 #endif
22938
22939 #undef crypt
22940
22941 /* Override any GCC internal prototype to avoid an error.
22942    Use char because int might match the return type of a GCC
22943    builtin and then its argument prototype would still apply.  */
22944 #ifdef __cplusplus
22945 extern "C"
22946 #endif
22947 char crypt ();
22948 /* The GNU C library defines this for functions which it implements
22949     to always fail with ENOSYS.  Some functions are actually named
22950     something starting with __ and the normal name is an alias.  */
22951 #if defined __stub_crypt || defined __stub___crypt
22952 choke me
22953 #endif
22954
22955 int
22956 main ()
22957 {
22958 return crypt ();
22959   ;
22960   return 0;
22961 }
22962 _ACEOF
22963 rm -f conftest.$ac_objext conftest$ac_exeext
22964 if { (ac_try="$ac_link"
22965 case "(($ac_try" in
22966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967   *) ac_try_echo=$ac_try;;
22968 esac
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970   (eval "$ac_link") 2>conftest.er1
22971   ac_status=$?
22972   grep -v '^ *+' conftest.er1 >conftest.err
22973   rm -f conftest.er1
22974   cat conftest.err >&5
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); } && {
22977          test -z "$ac_c_werror_flag" ||
22978          test ! -s conftest.err
22979        } && test -s conftest$ac_exeext &&
22980        $as_test_x conftest$ac_exeext; then
22981   ac_cv_func_crypt=yes
22982 else
22983   echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22985
22986         ac_cv_func_crypt=no
22987 fi
22988
22989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22990       conftest$ac_exeext conftest.$ac_ext
22991 fi
22992 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22993 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
22994 if test $ac_cv_func_crypt = yes; then
22995   cat >>confdefs.h <<\_ACEOF
22996 #define HAVE_CRYPT 1
22997 _ACEOF
22998
22999 fi
23000
23001 fi
23002
23003 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23004 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
23005 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23006   echo $ECHO_N "(cached) $ECHO_C" >&6
23007 else
23008   ac_check_lib_save_LIBS=$LIBS
23009 LIBS="-lcipher  $LIBS"
23010 cat >conftest.$ac_ext <<_ACEOF
23011 /* confdefs.h.  */
23012 _ACEOF
23013 cat confdefs.h >>conftest.$ac_ext
23014 cat >>conftest.$ac_ext <<_ACEOF
23015 /* end confdefs.h.  */
23016
23017 /* Override any GCC internal prototype to avoid an error.
23018    Use char because int might match the return type of a GCC
23019    builtin and then its argument prototype would still apply.  */
23020 #ifdef __cplusplus
23021 extern "C"
23022 #endif
23023 char setkey ();
23024 int
23025 main ()
23026 {
23027 return setkey ();
23028   ;
23029   return 0;
23030 }
23031 _ACEOF
23032 rm -f conftest.$ac_objext conftest$ac_exeext
23033 if { (ac_try="$ac_link"
23034 case "(($ac_try" in
23035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036   *) ac_try_echo=$ac_try;;
23037 esac
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039   (eval "$ac_link") 2>conftest.er1
23040   ac_status=$?
23041   grep -v '^ *+' conftest.er1 >conftest.err
23042   rm -f conftest.er1
23043   cat conftest.err >&5
23044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045   (exit $ac_status); } && {
23046          test -z "$ac_c_werror_flag" ||
23047          test ! -s conftest.err
23048        } && test -s conftest$ac_exeext &&
23049        $as_test_x conftest$ac_exeext; then
23050   ac_cv_lib_cipher_setkey=yes
23051 else
23052   echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23054
23055         ac_cv_lib_cipher_setkey=no
23056 fi
23057
23058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23059       conftest$ac_exeext conftest.$ac_ext
23060 LIBS=$ac_check_lib_save_LIBS
23061 fi
23062 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23063 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
23064 if test $ac_cv_lib_cipher_setkey = yes; then
23065   CRYPTLIB="${CRYPTLIB} -lcipher"
23066
23067 fi
23068
23069
23070
23071 if test "x$WITH_SNMP" = "xyes"; then
23072
23073
23074
23075
23076 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23077 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
23078
23079 cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h.  */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h.  */
23085
23086 #ifdef HAVE_SYS_TYPES_H
23087 #include <sys/types.h>
23088 #endif
23089 #ifdef HAVE_STDINT_H
23090 #include <stdint.h>
23091 #endif
23092 #ifdef HAVE_STDIO_H
23093 #include <stdio.h>
23094 #endif
23095 #ifdef HAVE_NETDB_H
23096 #include <netdb.h>
23097 #endif
23098 #ifdef HAVE_UNISTD_H
23099 #include <unistd.h>
23100 #endif
23101 #include <ucd-snmp/ucd-snmp-config.h>
23102 #include <ucd-snmp/asn1.h>
23103 #include <ucd-snmp/snmp.h>
23104 #include <ucd-snmp/snmp_impl.h>
23105 int
23106 main ()
23107 {
23108  int a = 1;
23109   ;
23110   return 0;
23111 }
23112 _ACEOF
23113 rm -f conftest.$ac_objext
23114 if { (ac_try="$ac_compile"
23115 case "(($ac_try" in
23116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23117   *) ac_try_echo=$ac_try;;
23118 esac
23119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23120   (eval "$ac_compile") 2>conftest.er1
23121   ac_status=$?
23122   grep -v '^ *+' conftest.er1 >conftest.err
23123   rm -f conftest.er1
23124   cat conftest.err >&5
23125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126   (exit $ac_status); } && {
23127          test -z "$ac_c_werror_flag" ||
23128          test ! -s conftest.err
23129        } && test -s conftest.$ac_objext; then
23130   SNMP_INCLUDE="";ucdsnmp=yes
23131 else
23132   echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23134
23135         ucdsnmp=
23136 fi
23137
23138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23139
23140 if test "x$ucdsnmp" = "x"; then
23141   old_CFLAGS="$CFLAGS"
23142   for try in /usr/include /usr/local/include $with_snmp_include_dir; do
23143     CFLAGS="$old_CFLAGS -I$try"
23144     cat >conftest.$ac_ext <<_ACEOF
23145 /* confdefs.h.  */
23146 _ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h.  */
23150
23151 #ifdef HAVE_SYS_TYPES_H
23152 #include <sys/types.h>
23153 #endif
23154 #ifdef HAVE_STDINT_H
23155 #include <stdint.h>
23156 #endif
23157 #ifdef HAVE_STDIO_H
23158 #include <stdio.h>
23159 #endif
23160 #ifdef HAVE_NETDB_H
23161 #include <netdb.h>
23162 #endif
23163 #ifdef HAVE_UNISTD_H
23164 #include <unistd.h>
23165 #endif
23166 #include <ucd-snmp/ucd-snmp-config.h>
23167 #include <ucd-snmp/asn1.h>
23168 #include <ucd-snmp/snmp.h>
23169 #include <ucd-snmp/snmp_impl.h>
23170 int
23171 main ()
23172 {
23173  int a = 1;
23174   ;
23175   return 0;
23176 }
23177 _ACEOF
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182   *) ac_try_echo=$ac_try;;
23183 esac
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185   (eval "$ac_compile") 2>conftest.er1
23186   ac_status=$?
23187   grep -v '^ *+' conftest.er1 >conftest.err
23188   rm -f conftest.er1
23189   cat conftest.err >&5
23190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191   (exit $ac_status); } && {
23192          test -z "$ac_c_werror_flag" ||
23193          test ! -s conftest.err
23194        } && test -s conftest.$ac_objext; then
23195   SNMP_INCLUDE="-I$try";ucdsnmp=yes
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200         ucdsnmp=
23201 fi
23202
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23204     if test "x$ucdsnmp" != "x"; then
23205       break;
23206     fi
23207   done
23208   CFLAGS="$old_CFLAGS"
23209 fi
23210
23211 if test "x$ucdsnmp" = "x"; then
23212   old_CFLAGS="$CFLAGS"
23213   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23214     CFLAGS="$old_CFLAGS -I$try"
23215 cat >conftest.$ac_ext <<_ACEOF
23216 /* confdefs.h.  */
23217 _ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h.  */
23221
23222 #ifdef HAVE_SYS_TYPES_H
23223 #include <sys/types.h>
23224 #endif
23225 #ifdef HAVE_STDINT_H
23226 #include <stdint.h>
23227 #endif
23228 #ifdef HAVE_STDIO_H
23229 #include <stdio.h>
23230 #endif
23231 #ifdef HAVE_NETDB_H
23232 #include <netdb.h>
23233 #endif
23234 #ifdef HAVE_UNISTD_H
23235 #include <unistd.h>
23236 #endif
23237 #include <asn1.h>
23238 #include <snmp.h>
23239 #include <snmp_impl.h>
23240 int
23241 main ()
23242 {
23243  int a = 1;
23244   ;
23245   return 0;
23246 }
23247 _ACEOF
23248 rm -f conftest.$ac_objext
23249 if { (ac_try="$ac_compile"
23250 case "(($ac_try" in
23251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252   *) ac_try_echo=$ac_try;;
23253 esac
23254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23255   (eval "$ac_compile") 2>conftest.er1
23256   ac_status=$?
23257   grep -v '^ *+' conftest.er1 >conftest.err
23258   rm -f conftest.er1
23259   cat conftest.err >&5
23260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261   (exit $ac_status); } && {
23262          test -z "$ac_c_werror_flag" ||
23263          test ! -s conftest.err
23264        } && test -s conftest.$ac_objext; then
23265   SNMP_INCLUDE="";ucdsnmp=no
23266 else
23267   echo "$as_me: failed program was:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23269
23270         ucdsnmp=
23271 fi
23272
23273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274     if test "x$ucdsnmp" != "x"; then
23275       break;
23276     fi
23277   done
23278   CFLAGS="$old_CFLAGS"
23279 fi
23280
23281 if test "x$ucdsnmp" = "x"; then
23282   old_CFLAGS="$CFLAGS"
23283   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23284     CFLAGS="$old_CFLAGS -I$try"
23285     cat >conftest.$ac_ext <<_ACEOF
23286 /* confdefs.h.  */
23287 _ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h.  */
23291
23292 #ifdef HAVE_SYS_TYPES_H
23293 #include <sys/types.h>
23294 #endif
23295 #ifdef HAVE_STDINT_H
23296 #include <stdint.h>
23297 #endif
23298 #ifdef HAVE_STDIO_H
23299 #include <stdio.h>
23300 #endif
23301 #ifdef HAVE_NETDB_H
23302 #include <netdb.h>
23303 #endif
23304 #ifdef HAVE_UNISTD_H
23305 #include <unistd.h>
23306 #endif
23307 #include <asn1.h>
23308 #include <snmp.h>
23309 #include <snmp_impl.h>
23310 int
23311 main ()
23312 {
23313  int a = 1;
23314   ;
23315   return 0;
23316 }
23317 _ACEOF
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322   *) ac_try_echo=$ac_try;;
23323 esac
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325   (eval "$ac_compile") 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } && {
23332          test -z "$ac_c_werror_flag" ||
23333          test ! -s conftest.err
23334        } && test -s conftest.$ac_objext; then
23335   SNMP_INCLUDE="-I$try";ucdsnmp=no
23336 else
23337   echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23339
23340         ucdsnmp=
23341 fi
23342
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23344     if test "x$ucdsnmp" != "x"; then
23345       break;
23346     fi
23347   done
23348   CFLAGS="$old_CFLAGS"
23349 fi
23350
23351 if test "x$ucdsnmp" = "x"; then
23352   { echo "$as_me:$LINENO: result: no" >&5
23353 echo "${ECHO_T}no" >&6; }
23354 else
23355   if test "x$ucdsnmp" = "xyes"; then
23356     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23357 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
23358     cat >>confdefs.h <<\_ACEOF
23359 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
23360 _ACEOF
23361
23362   else
23363     { echo "$as_me:$LINENO: result: yes" >&5
23364 echo "${ECHO_T}yes" >&6; }
23365     cat >>confdefs.h <<\_ACEOF
23366 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
23367 _ACEOF
23368
23369   fi
23370   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23371 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
23372
23373   old_LIBS="$LIBS"
23374   LIBS="$old_LIBS -lsnmp"
23375   cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381 extern char snmp_build_var_op();
23382 int
23383 main ()
23384 {
23385  snmp_build_var_op()
23386   ;
23387   return 0;
23388 }
23389 _ACEOF
23390 rm -f conftest.$ac_objext conftest$ac_exeext
23391 if { (ac_try="$ac_link"
23392 case "(($ac_try" in
23393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23394   *) ac_try_echo=$ac_try;;
23395 esac
23396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23397   (eval "$ac_link") 2>conftest.er1
23398   ac_status=$?
23399   grep -v '^ *+' conftest.er1 >conftest.err
23400   rm -f conftest.er1
23401   cat conftest.err >&5
23402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403   (exit $ac_status); } && {
23404          test -z "$ac_c_werror_flag" ||
23405          test ! -s conftest.err
23406        } && test -s conftest$ac_exeext &&
23407        $as_test_x conftest$ac_exeext; then
23408   SNMP_LIBS="-lsnmp"
23409 else
23410   echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23412
23413         SNMP_LIBS=
23414 fi
23415
23416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23417       conftest$ac_exeext conftest.$ac_ext
23418
23419   if test "x$SNMP_LIBS" = "x"; then
23420     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23421       LIBS="$old_LIBS -L$try -lsnmp"
23422       cat >conftest.$ac_ext <<_ACEOF
23423 /* confdefs.h.  */
23424 _ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h.  */
23428 extern char snmp_build_var_op();
23429 int
23430 main ()
23431 {
23432  snmp_build_var_op()
23433   ;
23434   return 0;
23435 }
23436 _ACEOF
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (ac_try="$ac_link"
23439 case "(($ac_try" in
23440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441   *) ac_try_echo=$ac_try;;
23442 esac
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444   (eval "$ac_link") 2>conftest.er1
23445   ac_status=$?
23446   grep -v '^ *+' conftest.er1 >conftest.err
23447   rm -f conftest.er1
23448   cat conftest.err >&5
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); } && {
23451          test -z "$ac_c_werror_flag" ||
23452          test ! -s conftest.err
23453        } && test -s conftest$ac_exeext &&
23454        $as_test_x conftest$ac_exeext; then
23455   SNMP_LIBS="-L$try -lsnmp"
23456 else
23457   echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23459
23460         SNMP_LIBS=
23461 fi
23462
23463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23464       conftest$ac_exeext conftest.$ac_ext
23465       if test "x$SNMP_LIBS" != "x"; then
23466         break;
23467       fi
23468       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23469       cat >conftest.$ac_ext <<_ACEOF
23470 /* confdefs.h.  */
23471 _ACEOF
23472 cat confdefs.h >>conftest.$ac_ext
23473 cat >>conftest.$ac_ext <<_ACEOF
23474 /* end confdefs.h.  */
23475 extern char snmp_build_var_op();
23476 int
23477 main ()
23478 {
23479  snmp_build_var_op()
23480   ;
23481   return 0;
23482 }
23483 _ACEOF
23484 rm -f conftest.$ac_objext conftest$ac_exeext
23485 if { (ac_try="$ac_link"
23486 case "(($ac_try" in
23487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23488   *) ac_try_echo=$ac_try;;
23489 esac
23490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23491   (eval "$ac_link") 2>conftest.er1
23492   ac_status=$?
23493   grep -v '^ *+' conftest.er1 >conftest.err
23494   rm -f conftest.er1
23495   cat conftest.err >&5
23496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497   (exit $ac_status); } && {
23498          test -z "$ac_c_werror_flag" ||
23499          test ! -s conftest.err
23500        } && test -s conftest$ac_exeext &&
23501        $as_test_x conftest$ac_exeext; then
23502   SNMP_LIBS="-L$try -lsnmp -lcrypto"
23503 else
23504   echo "$as_me: failed program was:" >&5
23505 sed 's/^/| /' conftest.$ac_ext >&5
23506
23507         SNMP_LIBS=
23508 fi
23509
23510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23511       conftest$ac_exeext conftest.$ac_ext
23512       if test "x$SNMP_LIBS" != "x"; then
23513         break;
23514       fi
23515       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23516       cat >conftest.$ac_ext <<_ACEOF
23517 /* confdefs.h.  */
23518 _ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h.  */
23522 extern char snmp_build_var_op();
23523 int
23524 main ()
23525 {
23526  snmp_build_var_op()
23527   ;
23528   return 0;
23529 }
23530 _ACEOF
23531 rm -f conftest.$ac_objext conftest$ac_exeext
23532 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23539   ac_status=$?
23540   grep -v '^ *+' conftest.er1 >conftest.err
23541   rm -f conftest.er1
23542   cat conftest.err >&5
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); } && {
23545          test -z "$ac_c_werror_flag" ||
23546          test ! -s conftest.err
23547        } && test -s conftest$ac_exeext &&
23548        $as_test_x conftest$ac_exeext; then
23549   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23550 else
23551   echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554         SNMP_LIBS=
23555 fi
23556
23557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23558       conftest$ac_exeext conftest.$ac_ext
23559       if test "x$SNMP_LIBS" != "x"; then
23560         break;
23561       fi
23562     done
23563   fi
23564   LIBS="$old_LIBS"
23565
23566           CFLAGS="$old_CFLAGS"
23567   if test "x$SNMP_LIBS" = "x"; then
23568     { echo "$as_me:$LINENO: result: no" >&5
23569 echo "${ECHO_T}no" >&6; }
23570     SNMP_INCLUDE=
23571   else
23572     { echo "$as_me:$LINENO: result: yes" >&5
23573 echo "${ECHO_T}yes" >&6; }
23574     cat >>confdefs.h <<\_ACEOF
23575 #define WITH_SNMP 1
23576 _ACEOF
23577
23578     cat >>confdefs.h <<\_ACEOF
23579 #define HAVE_LIBSNMP 1
23580 _ACEOF
23581
23582   fi
23583 fi
23584
23585 fi
23586
23587 gethostbyaddrrstyle=""
23588 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23589 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
23590 case "$host" in
23591 *-freebsd*)
23592         cat >>confdefs.h <<\_ACEOF
23593 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23594 _ACEOF
23595
23596         gethostbyaddrrstyle=BSD
23597         { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23598 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23599         ;;
23600 esac
23601 if test "x$gethostbyaddrrstyle" = "x"; then
23602         cat >conftest.$ac_ext <<_ACEOF
23603 /* confdefs.h.  */
23604 _ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h.  */
23608
23609 #include <stdio.h>
23610 #include <netdb.h>
23611
23612 int
23613 main ()
23614 {
23615  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23616   ;
23617   return 0;
23618 }
23619 _ACEOF
23620 rm -f conftest.$ac_objext conftest$ac_exeext
23621 if { (ac_try="$ac_link"
23622 case "(($ac_try" in
23623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624   *) ac_try_echo=$ac_try;;
23625 esac
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627   (eval "$ac_link") 2>conftest.er1
23628   ac_status=$?
23629   grep -v '^ *+' conftest.er1 >conftest.err
23630   rm -f conftest.er1
23631   cat conftest.err >&5
23632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633   (exit $ac_status); } && {
23634          test -z "$ac_c_werror_flag" ||
23635          test ! -s conftest.err
23636        } && test -s conftest$ac_exeext &&
23637        $as_test_x conftest$ac_exeext; then
23638
23639         cat >>confdefs.h <<\_ACEOF
23640 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23641 _ACEOF
23642
23643         gethostbyaddrrstyle=GNU
23644
23645 else
23646   echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23648
23649
23650 fi
23651
23652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23653       conftest$ac_exeext conftest.$ac_ext
23654 fi
23655 if test "x$gethostbyaddrrstyle" = "x"; then
23656         cat >conftest.$ac_ext <<_ACEOF
23657 /* confdefs.h.  */
23658 _ACEOF
23659 cat confdefs.h >>conftest.$ac_ext
23660 cat >>conftest.$ac_ext <<_ACEOF
23661 /* end confdefs.h.  */
23662
23663 #include <stdio.h>
23664 #include <netdb.h>
23665
23666 int
23667 main ()
23668 {
23669  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23670   ;
23671   return 0;
23672 }
23673 _ACEOF
23674 rm -f conftest.$ac_objext conftest$ac_exeext
23675 if { (ac_try="$ac_link"
23676 case "(($ac_try" in
23677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23678   *) ac_try_echo=$ac_try;;
23679 esac
23680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23681   (eval "$ac_link") 2>conftest.er1
23682   ac_status=$?
23683   grep -v '^ *+' conftest.er1 >conftest.err
23684   rm -f conftest.er1
23685   cat conftest.err >&5
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); } && {
23688          test -z "$ac_c_werror_flag" ||
23689          test ! -s conftest.err
23690        } && test -s conftest$ac_exeext &&
23691        $as_test_x conftest$ac_exeext; then
23692
23693                 cat >>confdefs.h <<\_ACEOF
23694 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23695 _ACEOF
23696
23697                 gethostbyaddrrstyle=SYSV
23698
23699 else
23700   echo "$as_me: failed program was:" >&5
23701 sed 's/^/| /' conftest.$ac_ext >&5
23702
23703
23704 fi
23705
23706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23707       conftest$ac_exeext conftest.$ac_ext
23708 fi
23709 if test "x$gethostbyaddrrstyle" = "x"; then
23710         cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h.  */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h.  */
23716
23717 #include <stdio.h>
23718 #include <netdb.h>
23719
23720 int
23721 main ()
23722 {
23723  gethostbyaddr(NULL, 0, 0)
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 rm -f conftest.$ac_objext conftest$ac_exeext
23729 if { (ac_try="$ac_link"
23730 case "(($ac_try" in
23731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732   *) ac_try_echo=$ac_try;;
23733 esac
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735   (eval "$ac_link") 2>conftest.er1
23736   ac_status=$?
23737   grep -v '^ *+' conftest.er1 >conftest.err
23738   rm -f conftest.er1
23739   cat conftest.err >&5
23740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741   (exit $ac_status); } && {
23742          test -z "$ac_c_werror_flag" ||
23743          test ! -s conftest.err
23744        } && test -s conftest$ac_exeext &&
23745        $as_test_x conftest$ac_exeext; then
23746
23747                 cat >>confdefs.h <<\_ACEOF
23748 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23749 _ACEOF
23750
23751                 gethostbyaddrrstyle=BSD
23752
23753 else
23754   echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757
23758 fi
23759
23760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23761       conftest$ac_exeext conftest.$ac_ext
23762 fi
23763
23764 if test "x$gethostbyaddrrstyle" = "x"; then
23765         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23766 echo "${ECHO_T}none!  It must not exist, here." >&6; }
23767 else
23768         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23769 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
23770 fi
23771
23772 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23773         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23774 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23775 fi
23776
23777 gethostbynamerstyle=""
23778 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23779 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
23780 cat >conftest.$ac_ext <<_ACEOF
23781 /* confdefs.h.  */
23782 _ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h.  */
23786
23787 #include <stdio.h>
23788 #include <netdb.h>
23789
23790 int
23791 main ()
23792 {
23793  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23794   ;
23795   return 0;
23796 }
23797 _ACEOF
23798 rm -f conftest.$ac_objext conftest$ac_exeext
23799 if { (ac_try="$ac_link"
23800 case "(($ac_try" in
23801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802   *) ac_try_echo=$ac_try;;
23803 esac
23804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23805   (eval "$ac_link") 2>conftest.er1
23806   ac_status=$?
23807   grep -v '^ *+' conftest.er1 >conftest.err
23808   rm -f conftest.er1
23809   cat conftest.err >&5
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); } && {
23812          test -z "$ac_c_werror_flag" ||
23813          test ! -s conftest.err
23814        } && test -s conftest$ac_exeext &&
23815        $as_test_x conftest$ac_exeext; then
23816
23817         cat >>confdefs.h <<\_ACEOF
23818 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23819 _ACEOF
23820
23821         gethostbynamerstyle=GNU
23822
23823 else
23824   echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23826
23827
23828 fi
23829
23830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23831       conftest$ac_exeext conftest.$ac_ext
23832 if test "x$gethostbynamerstyle" = "x"; then
23833         cat >conftest.$ac_ext <<_ACEOF
23834 /* confdefs.h.  */
23835 _ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h.  */
23839
23840 #include <stdio.h>
23841 #include <netdb.h>
23842
23843 int
23844 main ()
23845 {
23846  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23847   ;
23848   return 0;
23849 }
23850 _ACEOF
23851 rm -f conftest.$ac_objext conftest$ac_exeext
23852 if { (ac_try="$ac_link"
23853 case "(($ac_try" in
23854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855   *) ac_try_echo=$ac_try;;
23856 esac
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858   (eval "$ac_link") 2>conftest.er1
23859   ac_status=$?
23860   grep -v '^ *+' conftest.er1 >conftest.err
23861   rm -f conftest.er1
23862   cat conftest.err >&5
23863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864   (exit $ac_status); } && {
23865          test -z "$ac_c_werror_flag" ||
23866          test ! -s conftest.err
23867        } && test -s conftest$ac_exeext &&
23868        $as_test_x conftest$ac_exeext; then
23869
23870                 cat >>confdefs.h <<\_ACEOF
23871 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23872 _ACEOF
23873
23874                 gethostbynamerstyle=SYSV
23875
23876 else
23877   echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23879
23880
23881 fi
23882
23883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23884       conftest$ac_exeext conftest.$ac_ext
23885 fi
23886 if test "x$gethostbynamerstyle" = "x"; then
23887         cat >conftest.$ac_ext <<_ACEOF
23888 /* confdefs.h.  */
23889 _ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h.  */
23893
23894 #include <stdio.h>
23895 #include <netdb.h>
23896
23897 int
23898 main ()
23899 {
23900  gethostbyname(NULL)
23901   ;
23902   return 0;
23903 }
23904 _ACEOF
23905 rm -f conftest.$ac_objext conftest$ac_exeext
23906 if { (ac_try="$ac_link"
23907 case "(($ac_try" in
23908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23909   *) ac_try_echo=$ac_try;;
23910 esac
23911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23912   (eval "$ac_link") 2>conftest.er1
23913   ac_status=$?
23914   grep -v '^ *+' conftest.er1 >conftest.err
23915   rm -f conftest.er1
23916   cat conftest.err >&5
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); } && {
23919          test -z "$ac_c_werror_flag" ||
23920          test ! -s conftest.err
23921        } && test -s conftest$ac_exeext &&
23922        $as_test_x conftest$ac_exeext; then
23923
23924                 cat >>confdefs.h <<\_ACEOF
23925 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23926 _ACEOF
23927
23928                 gethostbynamerstyle=BSD
23929
23930 else
23931   echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23933
23934
23935 fi
23936
23937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23938       conftest$ac_exeext conftest.$ac_ext
23939 fi
23940
23941 if test "x$gethostbynamerstyle" = "x"; then
23942         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23943 echo "${ECHO_T}none!  It must not exist, here." >&6; }
23944 else
23945         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23946 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
23947 fi
23948
23949 if test "x$gethostbynamerstyle" = "xBSD"; then
23950         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23951 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23952 fi
23953
23954 ctimerstyle=""
23955 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23956 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
23957 cat >conftest.$ac_ext <<_ACEOF
23958 /* confdefs.h.  */
23959 _ACEOF
23960 cat confdefs.h >>conftest.$ac_ext
23961 cat >>conftest.$ac_ext <<_ACEOF
23962 /* end confdefs.h.  */
23963
23964 #include <time.h>
23965
23966 int
23967 main ()
23968 {
23969  ctime_r(NULL, NULL, 0)
23970   ;
23971   return 0;
23972 }
23973 _ACEOF
23974 rm -f conftest.$ac_objext conftest$ac_exeext
23975 if { (ac_try="$ac_link"
23976 case "(($ac_try" in
23977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23978   *) ac_try_echo=$ac_try;;
23979 esac
23980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23981   (eval "$ac_link") 2>conftest.er1
23982   ac_status=$?
23983   grep -v '^ *+' conftest.er1 >conftest.err
23984   rm -f conftest.er1
23985   cat conftest.err >&5
23986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987   (exit $ac_status); } && {
23988          test -z "$ac_c_werror_flag" ||
23989          test ! -s conftest.err
23990        } && test -s conftest$ac_exeext &&
23991        $as_test_x conftest$ac_exeext; then
23992
23993         cat >>confdefs.h <<\_ACEOF
23994 #define CTIMERSTYLE SOLARISSTYLE
23995 _ACEOF
23996
23997         ctimerstyle="SOLARIS"
23998
23999 else
24000   echo "$as_me: failed program was:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24002
24003
24004 fi
24005
24006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24007       conftest$ac_exeext conftest.$ac_ext
24008 if test "x$ctimerstyle" = "x"; then
24009         cat >conftest.$ac_ext <<_ACEOF
24010 /* confdefs.h.  */
24011 _ACEOF
24012 cat confdefs.h >>conftest.$ac_ext
24013 cat >>conftest.$ac_ext <<_ACEOF
24014 /* end confdefs.h.  */
24015
24016 #include <time.h>
24017
24018 int
24019 main ()
24020 {
24021  ctime_r(NULL, NULL)
24022   ;
24023   return 0;
24024 }
24025 _ACEOF
24026 rm -f conftest.$ac_objext conftest$ac_exeext
24027 if { (ac_try="$ac_link"
24028 case "(($ac_try" in
24029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030   *) ac_try_echo=$ac_try;;
24031 esac
24032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033   (eval "$ac_link") 2>conftest.er1
24034   ac_status=$?
24035   grep -v '^ *+' conftest.er1 >conftest.err
24036   rm -f conftest.er1
24037   cat conftest.err >&5
24038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039   (exit $ac_status); } && {
24040          test -z "$ac_c_werror_flag" ||
24041          test ! -s conftest.err
24042        } && test -s conftest$ac_exeext &&
24043        $as_test_x conftest$ac_exeext; then
24044
24045                 cat >>confdefs.h <<\_ACEOF
24046 #define CTIMERSTYLE POSIXSTYLE
24047 _ACEOF
24048
24049                 ctimerstyle="POSIX"
24050
24051 else
24052   echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24054
24055
24056 fi
24057
24058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24059       conftest$ac_exeext conftest.$ac_ext
24060 fi
24061
24062 if test "x$ctimerstyle" = "x"; then
24063         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24064 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24065 else
24066         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24067 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
24068 fi
24069
24070
24071 if test x"$rad_enable_largefiles" = xyes ; then
24072     { echo "$as_me:$LINENO: checking for largefile linkage" >&5
24073 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
24074     case "$host" in
24075     *-aix4.01*)
24076         { echo "$as_me:$LINENO: result: no" >&5
24077 echo "${ECHO_T}no" >&6; }
24078         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
24079 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
24080    { (exit 1); exit 1; }; }
24081         ;;
24082     *-aix4*)
24083         { echo "$as_me:$LINENO: result: ok" >&5
24084 echo "${ECHO_T}ok" >&6; }
24085         LFS_CFLAGS="-D_LARGE_FILES"
24086         LFS_LDFLAGS=""
24087         LFS_LIBS=""
24088         ;;
24089     *-hpux*)
24090         { echo "$as_me:$LINENO: result: ok" >&5
24091 echo "${ECHO_T}ok" >&6; }
24092         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24093         LFS_LDFLAGS=""
24094         LFS_LIBS=""
24095         ;;
24096     *-irix*)
24097         { echo "$as_me:$LINENO: result: no" >&5
24098 echo "${ECHO_T}no" >&6; }
24099         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
24100 echo "$as_me: error: Large files not supported on this platform" >&2;}
24101    { (exit 1); exit 1; }; }
24102         ;;
24103     *-linux*)
24104         { echo "$as_me:$LINENO: result: maybe" >&5
24105 echo "${ECHO_T}maybe" >&6; }
24106         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24107         LFS_LDFLAGS=""
24108         LFS_LIBS=""
24109
24110 cat >>confdefs.h <<\_ACEOF
24111 #define _GNU_SOURCE 1
24112 _ACEOF
24113
24114         ;;
24115     *-solaris*)
24116         { echo "$as_me:$LINENO: result: ok" >&5
24117 echo "${ECHO_T}ok" >&6; }
24118         # Extract the first word of "getconf", so it can be a program name with args.
24119 set dummy getconf; ac_word=$2
24120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24122 if test "${ac_cv_path_GETCONF+set}" = set; then
24123   echo $ECHO_N "(cached) $ECHO_C" >&6
24124 else
24125   case $GETCONF in
24126   [\\/]* | ?:[\\/]*)
24127   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
24128   ;;
24129   *)
24130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24131 for as_dir in $PATH
24132 do
24133   IFS=$as_save_IFS
24134   test -z "$as_dir" && as_dir=.
24135   for ac_exec_ext in '' $ac_executable_extensions; do
24136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24137     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
24138     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24139     break 2
24140   fi
24141 done
24142 done
24143 IFS=$as_save_IFS
24144
24145   ;;
24146 esac
24147 fi
24148 GETCONF=$ac_cv_path_GETCONF
24149 if test -n "$GETCONF"; then
24150   { echo "$as_me:$LINENO: result: $GETCONF" >&5
24151 echo "${ECHO_T}$GETCONF" >&6; }
24152 else
24153   { echo "$as_me:$LINENO: result: no" >&5
24154 echo "${ECHO_T}no" >&6; }
24155 fi
24156
24157
24158         if test -z "$GETCONF" ; then
24159             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
24160 echo "$as_me: error: getconf required to configure large file support" >&2;}
24161    { (exit 1); exit 1; }; }
24162         fi
24163         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
24164         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
24165         LFS_LIBS=`$GETCONF LFS_LIBS`
24166         ;;
24167     *)
24168         { echo "$as_me:$LINENO: result: maybe" >&5
24169 echo "${ECHO_T}maybe" >&6; }
24170         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24171         LFS_LDFLAGS=""
24172         LFS_LIBS=""
24173         ;;
24174     esac
24175
24176
24177
24178 fi
24179
24180 HOSTINFO=$host
24181
24182
24183
24184 top_builddir=`pwd`
24185 export top_builddir
24186 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24187 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
24188
24189
24190
24191
24192
24193 mysubdirs=
24194 if test "x$EXPERIMENTAL" = "xyes"; then
24195   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24196     mysubdirs=`echo $bar`
24197 else
24198         for bar in `cat src/modules/stable`; do
24199     if test -f src/modules/$bar/configure; then
24200       mysubdirs="$mysubdirs src/modules/$bar"
24201     fi
24202   done
24203 fi
24204
24205 if test "x$EXPERIMENTAL" = "xyes"; then
24206   for foo in `ls -1 src/modules | grep rlm_`; do
24207     MODULES="$MODULES $foo"
24208   done
24209 else
24210             for foo in `cat src/modules/stable`; do
24211     MODULES="$MODULES $foo"
24212    done
24213 fi
24214
24215 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24216
24217
24218
24219
24220
24221
24222
24223 USE_SHARED_LIBS=$enable_shared
24224
24225 USE_STATIC_LIBS=$enable_static
24226
24227
24228
24229
24230
24231 export CFLAGS LIBS
24232
24233 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"
24234
24235 cat >confcache <<\_ACEOF
24236 # This file is a shell script that caches the results of configure
24237 # tests run on this system so they can be shared between configure
24238 # scripts and configure runs, see configure's option --config-cache.
24239 # It is not useful on other systems.  If it contains results you don't
24240 # want to keep, you may remove or edit it.
24241 #
24242 # config.status only pays attention to the cache file if you give it
24243 # the --recheck option to rerun configure.
24244 #
24245 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24246 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24247 # following values.
24248
24249 _ACEOF
24250
24251 # The following way of writing the cache mishandles newlines in values,
24252 # but we know of no workaround that is simple, portable, and efficient.
24253 # So, we kill variables containing newlines.
24254 # Ultrix sh set writes to stderr and can't be redirected directly,
24255 # and sets the high bit in the cache file unless we assign to the vars.
24256 (
24257   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24258     eval ac_val=\$$ac_var
24259     case $ac_val in #(
24260     *${as_nl}*)
24261       case $ac_var in #(
24262       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24263 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24264       esac
24265       case $ac_var in #(
24266       _ | IFS | as_nl) ;; #(
24267       *) $as_unset $ac_var ;;
24268       esac ;;
24269     esac
24270   done
24271
24272   (set) 2>&1 |
24273     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24274     *${as_nl}ac_space=\ *)
24275       # `set' does not quote correctly, so add quotes (double-quote
24276       # substitution turns \\\\ into \\, and sed turns \\ into \).
24277       sed -n \
24278         "s/'/'\\\\''/g;
24279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24280       ;; #(
24281     *)
24282       # `set' quotes correctly as required by POSIX, so do not add quotes.
24283       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24284       ;;
24285     esac |
24286     sort
24287 ) |
24288   sed '
24289      /^ac_cv_env_/b end
24290      t clear
24291      :clear
24292      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24293      t end
24294      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24295      :end' >>confcache
24296 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24297   if test -w "$cache_file"; then
24298     test "x$cache_file" != "x/dev/null" &&
24299       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24300 echo "$as_me: updating cache $cache_file" >&6;}
24301     cat confcache >$cache_file
24302   else
24303     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24304 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24305   fi
24306 fi
24307 rm -f confcache
24308
24309 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24310 # Let make expand exec_prefix.
24311 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24312
24313 DEFS=-DHAVE_CONFIG_H
24314
24315 ac_libobjs=
24316 ac_ltlibobjs=
24317 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24318   # 1. Remove the extension, and $U if already installed.
24319   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24320   ac_i=`echo "$ac_i" | sed "$ac_script"`
24321   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24322   #    will be set to the directory where LIBOBJS objects are built.
24323   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24324   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24325 done
24326 LIBOBJS=$ac_libobjs
24327
24328 LTLIBOBJS=$ac_ltlibobjs
24329
24330
24331
24332 : ${CONFIG_STATUS=./config.status}
24333 ac_clean_files_save=$ac_clean_files
24334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24335 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24336 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24337 cat >$CONFIG_STATUS <<_ACEOF
24338 #! $SHELL
24339 # Generated by $as_me.
24340 # Run this file to recreate the current configuration.
24341 # Compiler output produced by configure, useful for debugging
24342 # configure, is in config.log if it exists.
24343
24344 debug=false
24345 ac_cs_recheck=false
24346 ac_cs_silent=false
24347 SHELL=\${CONFIG_SHELL-$SHELL}
24348 _ACEOF
24349
24350 cat >>$CONFIG_STATUS <<\_ACEOF
24351 ## --------------------- ##
24352 ## M4sh Initialization.  ##
24353 ## --------------------- ##
24354
24355 # Be more Bourne compatible
24356 DUALCASE=1; export DUALCASE # for MKS sh
24357 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24358   emulate sh
24359   NULLCMD=:
24360   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24361   # is contrary to our usage.  Disable this feature.
24362   alias -g '${1+"$@"}'='"$@"'
24363   setopt NO_GLOB_SUBST
24364 else
24365   case `(set -o) 2>/dev/null` in
24366   *posix*) set -o posix ;;
24367 esac
24368
24369 fi
24370
24371
24372
24373
24374 # PATH needs CR
24375 # Avoid depending upon Character Ranges.
24376 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24377 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24378 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24379 as_cr_digits='0123456789'
24380 as_cr_alnum=$as_cr_Letters$as_cr_digits
24381
24382 # The user is always right.
24383 if test "${PATH_SEPARATOR+set}" != set; then
24384   echo "#! /bin/sh" >conf$$.sh
24385   echo  "exit 0"   >>conf$$.sh
24386   chmod +x conf$$.sh
24387   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24388     PATH_SEPARATOR=';'
24389   else
24390     PATH_SEPARATOR=:
24391   fi
24392   rm -f conf$$.sh
24393 fi
24394
24395 # Support unset when possible.
24396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24397   as_unset=unset
24398 else
24399   as_unset=false
24400 fi
24401
24402
24403 # IFS
24404 # We need space, tab and new line, in precisely that order.  Quoting is
24405 # there to prevent editors from complaining about space-tab.
24406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24407 # splitting by setting IFS to empty value.)
24408 as_nl='
24409 '
24410 IFS=" ""        $as_nl"
24411
24412 # Find who we are.  Look in the path if we contain no directory separator.
24413 case $0 in
24414   *[\\/]* ) as_myself=$0 ;;
24415   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24416 for as_dir in $PATH
24417 do
24418   IFS=$as_save_IFS
24419   test -z "$as_dir" && as_dir=.
24420   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24421 done
24422 IFS=$as_save_IFS
24423
24424      ;;
24425 esac
24426 # We did not find ourselves, most probably we were run as `sh COMMAND'
24427 # in which case we are not to be found in the path.
24428 if test "x$as_myself" = x; then
24429   as_myself=$0
24430 fi
24431 if test ! -f "$as_myself"; then
24432   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24433   { (exit 1); exit 1; }
24434 fi
24435
24436 # Work around bugs in pre-3.0 UWIN ksh.
24437 for as_var in ENV MAIL MAILPATH
24438 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24439 done
24440 PS1='$ '
24441 PS2='> '
24442 PS4='+ '
24443
24444 # NLS nuisances.
24445 for as_var in \
24446   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24447   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24448   LC_TELEPHONE LC_TIME
24449 do
24450   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24451     eval $as_var=C; export $as_var
24452   else
24453     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24454   fi
24455 done
24456
24457 # Required to use basename.
24458 if expr a : '\(a\)' >/dev/null 2>&1 &&
24459    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24460   as_expr=expr
24461 else
24462   as_expr=false
24463 fi
24464
24465 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24466   as_basename=basename
24467 else
24468   as_basename=false
24469 fi
24470
24471
24472 # Name of the executable.
24473 as_me=`$as_basename -- "$0" ||
24474 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24475          X"$0" : 'X\(//\)$' \| \
24476          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24477 echo X/"$0" |
24478     sed '/^.*\/\([^/][^/]*\)\/*$/{
24479             s//\1/
24480             q
24481           }
24482           /^X\/\(\/\/\)$/{
24483             s//\1/
24484             q
24485           }
24486           /^X\/\(\/\).*/{
24487             s//\1/
24488             q
24489           }
24490           s/.*/./; q'`
24491
24492 # CDPATH.
24493 $as_unset CDPATH
24494
24495
24496
24497   as_lineno_1=$LINENO
24498   as_lineno_2=$LINENO
24499   test "x$as_lineno_1" != "x$as_lineno_2" &&
24500   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24501
24502   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24503   # uniformly replaced by the line number.  The first 'sed' inserts a
24504   # line-number line after each line using $LINENO; the second 'sed'
24505   # does the real work.  The second script uses 'N' to pair each
24506   # line-number line with the line containing $LINENO, and appends
24507   # trailing '-' during substitution so that $LINENO is not a special
24508   # case at line end.
24509   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24510   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24511   # E. McMahon (1931-1989) for sed's syntax.  :-)
24512   sed -n '
24513     p
24514     /[$]LINENO/=
24515   ' <$as_myself |
24516     sed '
24517       s/[$]LINENO.*/&-/
24518       t lineno
24519       b
24520       :lineno
24521       N
24522       :loop
24523       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24524       t loop
24525       s/-\n.*//
24526     ' >$as_me.lineno &&
24527   chmod +x "$as_me.lineno" ||
24528     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24529    { (exit 1); exit 1; }; }
24530
24531   # Don't try to exec as it changes $[0], causing all sort of problems
24532   # (the dirname of $[0] is not the place where we might find the
24533   # original and so on.  Autoconf is especially sensitive to this).
24534   . "./$as_me.lineno"
24535   # Exit status is that of the last command.
24536   exit
24537 }
24538
24539
24540 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24541   as_dirname=dirname
24542 else
24543   as_dirname=false
24544 fi
24545
24546 ECHO_C= ECHO_N= ECHO_T=
24547 case `echo -n x` in
24548 -n*)
24549   case `echo 'x\c'` in
24550   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24551   *)   ECHO_C='\c';;
24552   esac;;
24553 *)
24554   ECHO_N='-n';;
24555 esac
24556
24557 if expr a : '\(a\)' >/dev/null 2>&1 &&
24558    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24559   as_expr=expr
24560 else
24561   as_expr=false
24562 fi
24563
24564 rm -f conf$$ conf$$.exe conf$$.file
24565 if test -d conf$$.dir; then
24566   rm -f conf$$.dir/conf$$.file
24567 else
24568   rm -f conf$$.dir
24569   mkdir conf$$.dir
24570 fi
24571 echo >conf$$.file
24572 if ln -s conf$$.file conf$$ 2>/dev/null; then
24573   as_ln_s='ln -s'
24574   # ... but there are two gotchas:
24575   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24576   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24577   # In both cases, we have to default to `cp -p'.
24578   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24579     as_ln_s='cp -p'
24580 elif ln conf$$.file conf$$ 2>/dev/null; then
24581   as_ln_s=ln
24582 else
24583   as_ln_s='cp -p'
24584 fi
24585 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24586 rmdir conf$$.dir 2>/dev/null
24587
24588 if mkdir -p . 2>/dev/null; then
24589   as_mkdir_p=:
24590 else
24591   test -d ./-p && rmdir ./-p
24592   as_mkdir_p=false
24593 fi
24594
24595 if test -x / >/dev/null 2>&1; then
24596   as_test_x='test -x'
24597 else
24598   if ls -dL / >/dev/null 2>&1; then
24599     as_ls_L_option=L
24600   else
24601     as_ls_L_option=
24602   fi
24603   as_test_x='
24604     eval sh -c '\''
24605       if test -d "$1"; then
24606         test -d "$1/.";
24607       else
24608         case $1 in
24609         -*)set "./$1";;
24610         esac;
24611         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24612         ???[sx]*):;;*)false;;esac;fi
24613     '\'' sh
24614   '
24615 fi
24616 as_executable_p=$as_test_x
24617
24618 # Sed expression to map a string onto a valid CPP name.
24619 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24620
24621 # Sed expression to map a string onto a valid variable name.
24622 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24623
24624
24625 exec 6>&1
24626
24627 # Save the log message, to keep $[0] and so on meaningful, and to
24628 # report actual input values of CONFIG_FILES etc. instead of their
24629 # values after options handling.
24630 ac_log="
24631 This file was extended by $as_me, which was
24632 generated by GNU Autoconf 2.61.  Invocation command line was
24633
24634   CONFIG_FILES    = $CONFIG_FILES
24635   CONFIG_HEADERS  = $CONFIG_HEADERS
24636   CONFIG_LINKS    = $CONFIG_LINKS
24637   CONFIG_COMMANDS = $CONFIG_COMMANDS
24638   $ $0 $@
24639
24640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24641 "
24642
24643 _ACEOF
24644
24645 cat >>$CONFIG_STATUS <<_ACEOF
24646 # Files that config.status was made for.
24647 config_files="$ac_config_files"
24648 config_headers="$ac_config_headers"
24649
24650 _ACEOF
24651
24652 cat >>$CONFIG_STATUS <<\_ACEOF
24653 ac_cs_usage="\
24654 \`$as_me' instantiates files from templates according to the
24655 current configuration.
24656
24657 Usage: $0 [OPTIONS] [FILE]...
24658
24659   -h, --help       print this help, then exit
24660   -V, --version    print version number and configuration settings, then exit
24661   -q, --quiet      do not print progress messages
24662   -d, --debug      don't remove temporary files
24663       --recheck    update $as_me by reconfiguring in the same conditions
24664   --file=FILE[:TEMPLATE]
24665                    instantiate the configuration file FILE
24666   --header=FILE[:TEMPLATE]
24667                    instantiate the configuration header FILE
24668
24669 Configuration files:
24670 $config_files
24671
24672 Configuration headers:
24673 $config_headers
24674
24675 Report bugs to <bug-autoconf@gnu.org>."
24676
24677 _ACEOF
24678 cat >>$CONFIG_STATUS <<_ACEOF
24679 ac_cs_version="\\
24680 config.status
24681 configured by $0, generated by GNU Autoconf 2.61,
24682   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24683
24684 Copyright (C) 2006 Free Software Foundation, Inc.
24685 This config.status script is free software; the Free Software Foundation
24686 gives unlimited permission to copy, distribute and modify it."
24687
24688 ac_pwd='$ac_pwd'
24689 srcdir='$srcdir'
24690 _ACEOF
24691
24692 cat >>$CONFIG_STATUS <<\_ACEOF
24693 # If no file are specified by the user, then we need to provide default
24694 # value.  By we need to know if files were specified by the user.
24695 ac_need_defaults=:
24696 while test $# != 0
24697 do
24698   case $1 in
24699   --*=*)
24700     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24701     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24702     ac_shift=:
24703     ;;
24704   *)
24705     ac_option=$1
24706     ac_optarg=$2
24707     ac_shift=shift
24708     ;;
24709   esac
24710
24711   case $ac_option in
24712   # Handling of the options.
24713   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24714     ac_cs_recheck=: ;;
24715   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24716     echo "$ac_cs_version"; exit ;;
24717   --debug | --debu | --deb | --de | --d | -d )
24718     debug=: ;;
24719   --file | --fil | --fi | --f )
24720     $ac_shift
24721     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24722     ac_need_defaults=false;;
24723   --header | --heade | --head | --hea )
24724     $ac_shift
24725     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24726     ac_need_defaults=false;;
24727   --he | --h)
24728     # Conflict between --help and --header
24729     { echo "$as_me: error: ambiguous option: $1
24730 Try \`$0 --help' for more information." >&2
24731    { (exit 1); exit 1; }; };;
24732   --help | --hel | -h )
24733     echo "$ac_cs_usage"; exit ;;
24734   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24735   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24736     ac_cs_silent=: ;;
24737
24738   # This is an error.
24739   -*) { echo "$as_me: error: unrecognized option: $1
24740 Try \`$0 --help' for more information." >&2
24741    { (exit 1); exit 1; }; } ;;
24742
24743   *) ac_config_targets="$ac_config_targets $1"
24744      ac_need_defaults=false ;;
24745
24746   esac
24747   shift
24748 done
24749
24750 ac_configure_extra_args=
24751
24752 if $ac_cs_silent; then
24753   exec 6>/dev/null
24754   ac_configure_extra_args="$ac_configure_extra_args --silent"
24755 fi
24756
24757 _ACEOF
24758 cat >>$CONFIG_STATUS <<_ACEOF
24759 if \$ac_cs_recheck; then
24760   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24761   CONFIG_SHELL=$SHELL
24762   export CONFIG_SHELL
24763   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24764 fi
24765
24766 _ACEOF
24767 cat >>$CONFIG_STATUS <<\_ACEOF
24768 exec 5>>config.log
24769 {
24770   echo
24771   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24772 ## Running $as_me. ##
24773 _ASBOX
24774   echo "$ac_log"
24775 } >&5
24776
24777 _ACEOF
24778 cat >>$CONFIG_STATUS <<_ACEOF
24779 _ACEOF
24780
24781 cat >>$CONFIG_STATUS <<\_ACEOF
24782
24783 # Handling of arguments.
24784 for ac_config_target in $ac_config_targets
24785 do
24786   case $ac_config_target in
24787     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24788     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24789     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24790     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24791     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24792     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24793     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24794     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24795     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24796     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24797     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24798     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24799     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24800     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24801     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24802
24803   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24804 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24805    { (exit 1); exit 1; }; };;
24806   esac
24807 done
24808
24809
24810 # If the user did not use the arguments to specify the items to instantiate,
24811 # then the envvar interface is used.  Set only those that are not.
24812 # We use the long form for the default assignment because of an extremely
24813 # bizarre bug on SunOS 4.1.3.
24814 if $ac_need_defaults; then
24815   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24816   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24817 fi
24818
24819 # Have a temporary directory for convenience.  Make it in the build tree
24820 # simply because there is no reason against having it here, and in addition,
24821 # creating and moving files from /tmp can sometimes cause problems.
24822 # Hook for its removal unless debugging.
24823 # Note that there is a small window in which the directory will not be cleaned:
24824 # after its creation but before its name has been assigned to `$tmp'.
24825 $debug ||
24826 {
24827   tmp=
24828   trap 'exit_status=$?
24829   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24830 ' 0
24831   trap '{ (exit 1); exit 1; }' 1 2 13 15
24832 }
24833 # Create a (secure) tmp directory for tmp files.
24834
24835 {
24836   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24837   test -n "$tmp" && test -d "$tmp"
24838 }  ||
24839 {
24840   tmp=./conf$$-$RANDOM
24841   (umask 077 && mkdir "$tmp")
24842 } ||
24843 {
24844    echo "$me: cannot create a temporary directory in ." >&2
24845    { (exit 1); exit 1; }
24846 }
24847
24848 #
24849 # Set up the sed scripts for CONFIG_FILES section.
24850 #
24851
24852 # No need to generate the scripts if there are no CONFIG_FILES.
24853 # This happens for instance when ./config.status config.h
24854 if test -n "$CONFIG_FILES"; then
24855
24856 _ACEOF
24857
24858
24859
24860 ac_delim='%!_!# '
24861 for ac_last_try in false false false false false :; do
24862   cat >conf$$subs.sed <<_ACEOF
24863 SHELL!$SHELL$ac_delim
24864 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24865 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24866 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24867 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24868 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24869 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24870 exec_prefix!$exec_prefix$ac_delim
24871 prefix!$prefix$ac_delim
24872 program_transform_name!$program_transform_name$ac_delim
24873 bindir!$bindir$ac_delim
24874 sbindir!$sbindir$ac_delim
24875 libexecdir!$libexecdir$ac_delim
24876 datarootdir!$datarootdir$ac_delim
24877 datadir!$datadir$ac_delim
24878 sysconfdir!$sysconfdir$ac_delim
24879 sharedstatedir!$sharedstatedir$ac_delim
24880 localstatedir!$localstatedir$ac_delim
24881 includedir!$includedir$ac_delim
24882 oldincludedir!$oldincludedir$ac_delim
24883 docdir!$docdir$ac_delim
24884 infodir!$infodir$ac_delim
24885 htmldir!$htmldir$ac_delim
24886 dvidir!$dvidir$ac_delim
24887 pdfdir!$pdfdir$ac_delim
24888 psdir!$psdir$ac_delim
24889 libdir!$libdir$ac_delim
24890 localedir!$localedir$ac_delim
24891 mandir!$mandir$ac_delim
24892 DEFS!$DEFS$ac_delim
24893 ECHO_C!$ECHO_C$ac_delim
24894 ECHO_N!$ECHO_N$ac_delim
24895 ECHO_T!$ECHO_T$ac_delim
24896 LIBS!$LIBS$ac_delim
24897 build_alias!$build_alias$ac_delim
24898 host_alias!$host_alias$ac_delim
24899 target_alias!$target_alias$ac_delim
24900 CC!$CC$ac_delim
24901 CFLAGS!$CFLAGS$ac_delim
24902 LDFLAGS!$LDFLAGS$ac_delim
24903 CPPFLAGS!$CPPFLAGS$ac_delim
24904 ac_ct_CC!$ac_ct_CC$ac_delim
24905 EXEEXT!$EXEEXT$ac_delim
24906 OBJEXT!$OBJEXT$ac_delim
24907 CPP!$CPP$ac_delim
24908 GREP!$GREP$ac_delim
24909 EGREP!$EGREP$ac_delim
24910 RANLIB!$RANLIB$ac_delim
24911 abs_top_builddir!$abs_top_builddir$ac_delim
24912 GMAKE!$GMAKE$ac_delim
24913 MAKE!$MAKE$ac_delim
24914 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
24915 LIBTOOL!$LIBTOOL$ac_delim
24916 build!$build$ac_delim
24917 build_cpu!$build_cpu$ac_delim
24918 build_vendor!$build_vendor$ac_delim
24919 build_os!$build_os$ac_delim
24920 host!$host$ac_delim
24921 host_cpu!$host_cpu$ac_delim
24922 host_vendor!$host_vendor$ac_delim
24923 host_os!$host_os$ac_delim
24924 LN_S!$LN_S$ac_delim
24925 ECHO!$ECHO$ac_delim
24926 AR!$AR$ac_delim
24927 STRIP!$STRIP$ac_delim
24928 CXX!$CXX$ac_delim
24929 CXXFLAGS!$CXXFLAGS$ac_delim
24930 ac_ct_CXX!$ac_ct_CXX$ac_delim
24931 CXXCPP!$CXXCPP$ac_delim
24932 F77!$F77$ac_delim
24933 FFLAGS!$FFLAGS$ac_delim
24934 ac_ct_F77!$ac_ct_F77$ac_delim
24935 logdir!$logdir$ac_delim
24936 radacctdir!$radacctdir$ac_delim
24937 raddbdir!$raddbdir$ac_delim
24938 PERL!$PERL$ac_delim
24939 SNMPGET!$SNMPGET$ac_delim
24940 SNMPWALK!$SNMPWALK$ac_delim
24941 RUSERS!$RUSERS$ac_delim
24942 ACLOCAL!$ACLOCAL$ac_delim
24943 AUTOCONF!$AUTOCONF$ac_delim
24944 AUTOHEADER!$AUTOHEADER$ac_delim
24945 LOCATE!$LOCATE$ac_delim
24946 DIRNAME!$DIRNAME$ac_delim
24947 REGEX!$REGEX$ac_delim
24948 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
24949 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
24950 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
24951 LIBPREFIX!$LIBPREFIX$ac_delim
24952 CRYPTLIB!$CRYPTLIB$ac_delim
24953 SNMP_LIBS!$SNMP_LIBS$ac_delim
24954 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
24955 GETCONF!$GETCONF$ac_delim
24956 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
24957 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
24958 LFS_LIBS!$LFS_LIBS$ac_delim
24959 HOSTINFO!$HOSTINFO$ac_delim
24960 _ACEOF
24961
24962   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24963     break
24964   elif $ac_last_try; then
24965     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24966 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24967    { (exit 1); exit 1; }; }
24968   else
24969     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24970   fi
24971 done
24972
24973 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24974 if test -n "$ac_eof"; then
24975   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24976   ac_eof=`expr $ac_eof + 1`
24977 fi
24978
24979 cat >>$CONFIG_STATUS <<_ACEOF
24980 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24981 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24982 _ACEOF
24983 sed '
24984 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24985 s/^/s,@/; s/!/@,|#_!!_#|/
24986 :n
24987 t n
24988 s/'"$ac_delim"'$/,g/; t
24989 s/$/\\/; p
24990 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24991 ' >>$CONFIG_STATUS <conf$$subs.sed
24992 rm -f conf$$subs.sed
24993 cat >>$CONFIG_STATUS <<_ACEOF
24994 CEOF$ac_eof
24995 _ACEOF
24996
24997
24998 ac_delim='%!_!# '
24999 for ac_last_try in false false false false false :; do
25000   cat >conf$$subs.sed <<_ACEOF
25001 LIBLTDL!$LIBLTDL$ac_delim
25002 INCLTDL!$INCLTDL$ac_delim
25003 subdirs!$subdirs$ac_delim
25004 MODULES!$MODULES$ac_delim
25005 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
25006 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
25007 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
25008 STATIC_MODULES!$STATIC_MODULES$ac_delim
25009 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
25010 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
25011 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
25012 LIBOBJS!$LIBOBJS$ac_delim
25013 LTLIBOBJS!$LTLIBOBJS$ac_delim
25014 _ACEOF
25015
25016   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
25017     break
25018   elif $ac_last_try; then
25019     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25020 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25021    { (exit 1); exit 1; }; }
25022   else
25023     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25024   fi
25025 done
25026
25027 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25028 if test -n "$ac_eof"; then
25029   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25030   ac_eof=`expr $ac_eof + 1`
25031 fi
25032
25033 cat >>$CONFIG_STATUS <<_ACEOF
25034 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25035 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25036 _ACEOF
25037 sed '
25038 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25039 s/^/s,@/; s/!/@,|#_!!_#|/
25040 :n
25041 t n
25042 s/'"$ac_delim"'$/,g/; t
25043 s/$/\\/; p
25044 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25045 ' >>$CONFIG_STATUS <conf$$subs.sed
25046 rm -f conf$$subs.sed
25047 cat >>$CONFIG_STATUS <<_ACEOF
25048 :end
25049 s/|#_!!_#|//g
25050 CEOF$ac_eof
25051 _ACEOF
25052
25053
25054 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25055 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25056 # trailing colons and then remove the whole line if VPATH becomes empty
25057 # (actually we leave an empty line to preserve line numbers).
25058 if test "x$srcdir" = x.; then
25059   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25060 s/:*\$(srcdir):*/:/
25061 s/:*\${srcdir}:*/:/
25062 s/:*@srcdir@:*/:/
25063 s/^\([^=]*=[     ]*\):*/\1/
25064 s/:*$//
25065 s/^[^=]*=[       ]*$//
25066 }'
25067 fi
25068
25069 cat >>$CONFIG_STATUS <<\_ACEOF
25070 fi # test -n "$CONFIG_FILES"
25071
25072
25073 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
25074 do
25075   case $ac_tag in
25076   :[FHLC]) ac_mode=$ac_tag; continue;;
25077   esac
25078   case $ac_mode$ac_tag in
25079   :[FHL]*:*);;
25080   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25081 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25082    { (exit 1); exit 1; }; };;
25083   :[FH]-) ac_tag=-:-;;
25084   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25085   esac
25086   ac_save_IFS=$IFS
25087   IFS=:
25088   set x $ac_tag
25089   IFS=$ac_save_IFS
25090   shift
25091   ac_file=$1
25092   shift
25093
25094   case $ac_mode in
25095   :L) ac_source=$1;;
25096   :[FH])
25097     ac_file_inputs=
25098     for ac_f
25099     do
25100       case $ac_f in
25101       -) ac_f="$tmp/stdin";;
25102       *) # Look for the file first in the build tree, then in the source tree
25103          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25104          # because $ac_f cannot contain `:'.
25105          test -f "$ac_f" ||
25106            case $ac_f in
25107            [\\/$]*) false;;
25108            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25109            esac ||
25110            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25111 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25112    { (exit 1); exit 1; }; };;
25113       esac
25114       ac_file_inputs="$ac_file_inputs $ac_f"
25115     done
25116
25117     # Let's still pretend it is `configure' which instantiates (i.e., don't
25118     # use $as_me), people would be surprised to read:
25119     #    /* config.h.  Generated by config.status.  */
25120     configure_input="Generated from "`IFS=:
25121           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25122     if test x"$ac_file" != x-; then
25123       configure_input="$ac_file.  $configure_input"
25124       { echo "$as_me:$LINENO: creating $ac_file" >&5
25125 echo "$as_me: creating $ac_file" >&6;}
25126     fi
25127
25128     case $ac_tag in
25129     *:-:* | *:-) cat >"$tmp/stdin";;
25130     esac
25131     ;;
25132   esac
25133
25134   ac_dir=`$as_dirname -- "$ac_file" ||
25135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25136          X"$ac_file" : 'X\(//\)[^/]' \| \
25137          X"$ac_file" : 'X\(//\)$' \| \
25138          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25139 echo X"$ac_file" |
25140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25141             s//\1/
25142             q
25143           }
25144           /^X\(\/\/\)[^/].*/{
25145             s//\1/
25146             q
25147           }
25148           /^X\(\/\/\)$/{
25149             s//\1/
25150             q
25151           }
25152           /^X\(\/\).*/{
25153             s//\1/
25154             q
25155           }
25156           s/.*/./; q'`
25157   { as_dir="$ac_dir"
25158   case $as_dir in #(
25159   -*) as_dir=./$as_dir;;
25160   esac
25161   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25162     as_dirs=
25163     while :; do
25164       case $as_dir in #(
25165       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25166       *) as_qdir=$as_dir;;
25167       esac
25168       as_dirs="'$as_qdir' $as_dirs"
25169       as_dir=`$as_dirname -- "$as_dir" ||
25170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25171          X"$as_dir" : 'X\(//\)[^/]' \| \
25172          X"$as_dir" : 'X\(//\)$' \| \
25173          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25174 echo X"$as_dir" |
25175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25176             s//\1/
25177             q
25178           }
25179           /^X\(\/\/\)[^/].*/{
25180             s//\1/
25181             q
25182           }
25183           /^X\(\/\/\)$/{
25184             s//\1/
25185             q
25186           }
25187           /^X\(\/\).*/{
25188             s//\1/
25189             q
25190           }
25191           s/.*/./; q'`
25192       test -d "$as_dir" && break
25193     done
25194     test -z "$as_dirs" || eval "mkdir $as_dirs"
25195   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25196 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25197    { (exit 1); exit 1; }; }; }
25198   ac_builddir=.
25199
25200 case "$ac_dir" in
25201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25202 *)
25203   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25204   # A ".." for each directory in $ac_dir_suffix.
25205   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25206   case $ac_top_builddir_sub in
25207   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25208   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25209   esac ;;
25210 esac
25211 ac_abs_top_builddir=$ac_pwd
25212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25213 # for backward compatibility:
25214 ac_top_builddir=$ac_top_build_prefix
25215
25216 case $srcdir in
25217   .)  # We are building in place.
25218     ac_srcdir=.
25219     ac_top_srcdir=$ac_top_builddir_sub
25220     ac_abs_top_srcdir=$ac_pwd ;;
25221   [\\/]* | ?:[\\/]* )  # Absolute name.
25222     ac_srcdir=$srcdir$ac_dir_suffix;
25223     ac_top_srcdir=$srcdir
25224     ac_abs_top_srcdir=$srcdir ;;
25225   *) # Relative name.
25226     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25227     ac_top_srcdir=$ac_top_build_prefix$srcdir
25228     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25229 esac
25230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25231
25232
25233   case $ac_mode in
25234   :F)
25235   #
25236   # CONFIG_FILE
25237   #
25238
25239 _ACEOF
25240
25241 cat >>$CONFIG_STATUS <<\_ACEOF
25242 # If the template does not know about datarootdir, expand it.
25243 # FIXME: This hack should be removed a few years after 2.60.
25244 ac_datarootdir_hack=; ac_datarootdir_seen=
25245
25246 case `sed -n '/datarootdir/ {
25247   p
25248   q
25249 }
25250 /@datadir@/p
25251 /@docdir@/p
25252 /@infodir@/p
25253 /@localedir@/p
25254 /@mandir@/p
25255 ' $ac_file_inputs` in
25256 *datarootdir*) ac_datarootdir_seen=yes;;
25257 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25258   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25259 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25260 _ACEOF
25261 cat >>$CONFIG_STATUS <<_ACEOF
25262   ac_datarootdir_hack='
25263   s&@datadir@&$datadir&g
25264   s&@docdir@&$docdir&g
25265   s&@infodir@&$infodir&g
25266   s&@localedir@&$localedir&g
25267   s&@mandir@&$mandir&g
25268     s&\\\${datarootdir}&$datarootdir&g' ;;
25269 esac
25270 _ACEOF
25271
25272 # Neutralize VPATH when `$srcdir' = `.'.
25273 # Shell code in configure.ac might set extrasub.
25274 # FIXME: do we really want to maintain this feature?
25275 cat >>$CONFIG_STATUS <<_ACEOF
25276   sed "$ac_vpsub
25277 $extrasub
25278 _ACEOF
25279 cat >>$CONFIG_STATUS <<\_ACEOF
25280 :t
25281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25282 s&@configure_input@&$configure_input&;t t
25283 s&@top_builddir@&$ac_top_builddir_sub&;t t
25284 s&@srcdir@&$ac_srcdir&;t t
25285 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25286 s&@top_srcdir@&$ac_top_srcdir&;t t
25287 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25288 s&@builddir@&$ac_builddir&;t t
25289 s&@abs_builddir@&$ac_abs_builddir&;t t
25290 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25291 $ac_datarootdir_hack
25292 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25293
25294 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25295   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25296   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25297   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25298 which seems to be undefined.  Please make sure it is defined." >&5
25299 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25300 which seems to be undefined.  Please make sure it is defined." >&2;}
25301
25302   rm -f "$tmp/stdin"
25303   case $ac_file in
25304   -) cat "$tmp/out"; rm -f "$tmp/out";;
25305   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25306   esac
25307  ;;
25308   :H)
25309   #
25310   # CONFIG_HEADER
25311   #
25312 _ACEOF
25313
25314 # Transform confdefs.h into a sed script `conftest.defines', that
25315 # substitutes the proper values into config.h.in to produce config.h.
25316 rm -f conftest.defines conftest.tail
25317 # First, append a space to every undef/define line, to ease matching.
25318 echo 's/$/ /' >conftest.defines
25319 # Then, protect against being on the right side of a sed subst, or in
25320 # an unquoted here document, in config.status.  If some macros were
25321 # called several times there might be several #defines for the same
25322 # symbol, which is useless.  But do not sort them, since the last
25323 # AC_DEFINE must be honored.
25324 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25325 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25326 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25327 # PARAMS is the parameter list in the macro definition--in most cases, it's
25328 # just an empty string.
25329 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25330 ac_dB='\\)[      (].*,\\1define\\2'
25331 ac_dC=' '
25332 ac_dD=' ,'
25333
25334 uniq confdefs.h |
25335   sed -n '
25336         t rset
25337         :rset
25338         s/^[     ]*#[    ]*define[       ][      ]*//
25339         t ok
25340         d
25341         :ok
25342         s/[\\&,]/\\&/g
25343         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25344         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25345   ' >>conftest.defines
25346
25347 # Remove the space that was appended to ease matching.
25348 # Then replace #undef with comments.  This is necessary, for
25349 # example, in the case of _POSIX_SOURCE, which is predefined and required
25350 # on some systems where configure will not decide to define it.
25351 # (The regexp can be short, since the line contains either #define or #undef.)
25352 echo 's/ $//
25353 s,^[     #]*u.*,/* & */,' >>conftest.defines
25354
25355 # Break up conftest.defines:
25356 ac_max_sed_lines=50
25357
25358 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25359 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25360 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25361 # et cetera.
25362 ac_in='$ac_file_inputs'
25363 ac_out='"$tmp/out1"'
25364 ac_nxt='"$tmp/out2"'
25365
25366 while :
25367 do
25368   # Write a here document:
25369     cat >>$CONFIG_STATUS <<_ACEOF
25370     # First, check the format of the line:
25371     cat >"\$tmp/defines.sed" <<\\CEOF
25372 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25373 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25374 b
25375 :def
25376 _ACEOF
25377   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25378   echo 'CEOF
25379     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25380   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25381   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25382   grep . conftest.tail >/dev/null || break
25383   rm -f conftest.defines
25384   mv conftest.tail conftest.defines
25385 done
25386 rm -f conftest.defines conftest.tail
25387
25388 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25389 cat >>$CONFIG_STATUS <<\_ACEOF
25390   if test x"$ac_file" != x-; then
25391     echo "/* $configure_input  */" >"$tmp/config.h"
25392     cat "$ac_result" >>"$tmp/config.h"
25393     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25394       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25395 echo "$as_me: $ac_file is unchanged" >&6;}
25396     else
25397       rm -f $ac_file
25398       mv "$tmp/config.h" $ac_file
25399     fi
25400   else
25401     echo "/* $configure_input  */"
25402     cat "$ac_result"
25403   fi
25404   rm -f "$tmp/out12"
25405  ;;
25406
25407
25408   esac
25409
25410 done # for ac_tag
25411
25412
25413 { (exit 0); exit 0; }
25414 _ACEOF
25415 chmod +x $CONFIG_STATUS
25416 ac_clean_files=$ac_clean_files_save
25417
25418
25419 # configure is writing to config.log, and then calls config.status.
25420 # config.status does its own redirection, appending to config.log.
25421 # Unfortunately, on DOS this fails, as config.log is still kept open
25422 # by configure, so config.status won't be able to write to it; its
25423 # output is simply discarded.  So we exec the FD to /dev/null,
25424 # effectively closing config.log, so it can be properly (re)opened and
25425 # appended to by config.status.  When coming back to configure, we
25426 # need to make the FD available again.
25427 if test "$no_create" != yes; then
25428   ac_cs_success=:
25429   ac_config_status_args=
25430   test "$silent" = yes &&
25431     ac_config_status_args="$ac_config_status_args --quiet"
25432   exec 5>/dev/null
25433   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25434   exec 5>>config.log
25435   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25436   # would make configure fail if this is the last instruction.
25437   $ac_cs_success || { (exit 1); exit 1; }
25438 fi
25439
25440 #
25441 # CONFIG_SUBDIRS section.
25442 #
25443 if test "$no_recursion" != yes; then
25444
25445   # Remove --cache-file and --srcdir arguments so they do not pile up.
25446   ac_sub_configure_args=
25447   ac_prev=
25448   eval "set x $ac_configure_args"
25449   shift
25450   for ac_arg
25451   do
25452     if test -n "$ac_prev"; then
25453       ac_prev=
25454       continue
25455     fi
25456     case $ac_arg in
25457     -cache-file | --cache-file | --cache-fil | --cache-fi \
25458     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25459       ac_prev=cache_file ;;
25460     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25461     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25462     | --c=*)
25463       ;;
25464     --config-cache | -C)
25465       ;;
25466     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25467       ac_prev=srcdir ;;
25468     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25469       ;;
25470     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25471       ac_prev=prefix ;;
25472     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25473       ;;
25474     *)
25475       case $ac_arg in
25476       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25477       esac
25478       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25479     esac
25480   done
25481
25482   # Always prepend --prefix to ensure using the same prefix
25483   # in subdir configurations.
25484   ac_arg="--prefix=$prefix"
25485   case $ac_arg in
25486   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25487   esac
25488   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25489
25490   # Pass --silent
25491   if test "$silent" = yes; then
25492     ac_sub_configure_args="--silent $ac_sub_configure_args"
25493   fi
25494
25495   ac_popdir=`pwd`
25496   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25497
25498     # Do not complain, so a configure script can configure whichever
25499     # parts of a large source tree are present.
25500     test -d "$srcdir/$ac_dir" || continue
25501
25502     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25503     echo "$as_me:$LINENO: $ac_msg" >&5
25504     echo "$ac_msg" >&6
25505     { as_dir="$ac_dir"
25506   case $as_dir in #(
25507   -*) as_dir=./$as_dir;;
25508   esac
25509   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25510     as_dirs=
25511     while :; do
25512       case $as_dir in #(
25513       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25514       *) as_qdir=$as_dir;;
25515       esac
25516       as_dirs="'$as_qdir' $as_dirs"
25517       as_dir=`$as_dirname -- "$as_dir" ||
25518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25519          X"$as_dir" : 'X\(//\)[^/]' \| \
25520          X"$as_dir" : 'X\(//\)$' \| \
25521          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25522 echo X"$as_dir" |
25523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25524             s//\1/
25525             q
25526           }
25527           /^X\(\/\/\)[^/].*/{
25528             s//\1/
25529             q
25530           }
25531           /^X\(\/\/\)$/{
25532             s//\1/
25533             q
25534           }
25535           /^X\(\/\).*/{
25536             s//\1/
25537             q
25538           }
25539           s/.*/./; q'`
25540       test -d "$as_dir" && break
25541     done
25542     test -z "$as_dirs" || eval "mkdir $as_dirs"
25543   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25544 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25545    { (exit 1); exit 1; }; }; }
25546     ac_builddir=.
25547
25548 case "$ac_dir" in
25549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25550 *)
25551   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25552   # A ".." for each directory in $ac_dir_suffix.
25553   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25554   case $ac_top_builddir_sub in
25555   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25556   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25557   esac ;;
25558 esac
25559 ac_abs_top_builddir=$ac_pwd
25560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25561 # for backward compatibility:
25562 ac_top_builddir=$ac_top_build_prefix
25563
25564 case $srcdir in
25565   .)  # We are building in place.
25566     ac_srcdir=.
25567     ac_top_srcdir=$ac_top_builddir_sub
25568     ac_abs_top_srcdir=$ac_pwd ;;
25569   [\\/]* | ?:[\\/]* )  # Absolute name.
25570     ac_srcdir=$srcdir$ac_dir_suffix;
25571     ac_top_srcdir=$srcdir
25572     ac_abs_top_srcdir=$srcdir ;;
25573   *) # Relative name.
25574     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25575     ac_top_srcdir=$ac_top_build_prefix$srcdir
25576     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25577 esac
25578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25579
25580
25581     cd "$ac_dir"
25582
25583     # Check for guested configure; otherwise get Cygnus style configure.
25584     if test -f "$ac_srcdir/configure.gnu"; then
25585       ac_sub_configure=$ac_srcdir/configure.gnu
25586     elif test -f "$ac_srcdir/configure"; then
25587       ac_sub_configure=$ac_srcdir/configure
25588     elif test -f "$ac_srcdir/configure.in"; then
25589       # This should be Cygnus configure.
25590       ac_sub_configure=$ac_aux_dir/configure
25591     else
25592       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25593 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25594       ac_sub_configure=
25595     fi
25596
25597     # The recursion is here.
25598     if test -n "$ac_sub_configure"; then
25599       # Make the cache file name correct relative to the subdirectory.
25600       case $cache_file in
25601       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25602       *) # Relative name.
25603         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25604       esac
25605
25606       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25607 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25608       # The eval makes quoting arguments work.
25609       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25610            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25611         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25612 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25613    { (exit 1); exit 1; }; }
25614     fi
25615
25616     cd "$ac_popdir"
25617   done
25618 fi
25619
25620
25621 ac_config_commands="$ac_config_commands default-1"
25622
25623 ac_config_commands="$ac_config_commands default-2"
25624
25625 ac_config_commands="$ac_config_commands default-3"
25626
25627 ac_config_commands="$ac_config_commands default-4"
25628