Bump version number to 1.1.7
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.198.2.15.2.15 .
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.7
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         docdir=no
19190         ;;
19191     yes)
19192         ;;
19193     [\\/$]* | ?:[\\/]* )
19194         docdir="$withval"
19195         ;;
19196     *)
19197         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19198 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19199    { (exit 1); exit 1; }; }
19200         ;;
19201   esac
19202
19203 fi
19204
19205
19206 { echo "$as_me:$LINENO: result: $docdir" >&5
19207 echo "${ECHO_T}$docdir" >&6; }
19208 if test "x$docdir" = xno; then
19209         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19210 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19211 fi
19212
19213 logdir='${localstatedir}/log/radius'
19214 { echo "$as_me:$LINENO: checking logdir" >&5
19215 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19216
19217 # Check whether --with-logdir was given.
19218 if test "${with_logdir+set}" = set; then
19219   withval=$with_logdir;  case "$withval" in
19220     no)
19221         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19222 echo "$as_me: error: Need logdir" >&2;}
19223    { (exit 1); exit 1; }; }
19224         ;;
19225     yes)
19226         ;;
19227     [\\/$]* | ?:[\\/]* )
19228         logdir="$withval"
19229         ;;
19230     *)
19231         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19232 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19233    { (exit 1); exit 1; }; }
19234         ;;
19235   esac
19236
19237 fi
19238
19239
19240 { echo "$as_me:$LINENO: result: $logdir" >&5
19241 echo "${ECHO_T}$logdir" >&6; }
19242
19243 radacctdir='${logdir}/radacct'
19244 { echo "$as_me:$LINENO: checking radacctdir" >&5
19245 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19246
19247 # Check whether --with-radacctdir was given.
19248 if test "${with_radacctdir+set}" = set; then
19249   withval=$with_radacctdir;  case "$withval" in
19250     no)
19251         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19252 echo "$as_me: error: Need radacctdir" >&2;}
19253    { (exit 1); exit 1; }; }
19254         ;;
19255     yes)
19256         ;;
19257     [\\/$]* | ?:[\\/]* )
19258         radacctdir="$withval"
19259         ;;
19260     *)
19261         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19262 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19263    { (exit 1); exit 1; }; }
19264         ;;
19265   esac
19266
19267 fi
19268
19269
19270 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19271 echo "${ECHO_T}$radacctdir" >&6; }
19272
19273 raddbdir='${sysconfdir}/raddb'
19274 { echo "$as_me:$LINENO: checking raddbdir" >&5
19275 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19276
19277 # Check whether --with-raddbdir was given.
19278 if test "${with_raddbdir+set}" = set; then
19279   withval=$with_raddbdir;  case "$withval" in
19280     no)
19281         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19282 echo "$as_me: error: Need raddbdir" >&2;}
19283    { (exit 1); exit 1; }; }
19284         ;;
19285     yes)
19286         ;;
19287     [\\/$]* | ?:[\\/]* )
19288         raddbdir="$withval"
19289         ;;
19290     *)
19291         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19292 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19293    { (exit 1); exit 1; }; }
19294         ;;
19295   esac
19296
19297 fi
19298
19299
19300 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19301 echo "${ECHO_T}$raddbdir" >&6; }
19302
19303 ASCEND_BINARY=yes
19304
19305 # Check whether --with-ascend-binary was given.
19306 if test "${with_ascend_binary+set}" = set; then
19307   withval=$with_ascend_binary;  case "$withval" in
19308     yes)
19309         ;;
19310     *)
19311         ASCEND_BINARY=""
19312   esac
19313
19314 fi
19315
19316 if test "X$ASCEND_BINARY" = "Xyes"; then
19317   cat >>confdefs.h <<\_ACEOF
19318 #define ASCEND_BINARY 1
19319 _ACEOF
19320
19321 fi
19322
19323 WITH_THREADS=yes
19324
19325 # Check whether --with-threads was given.
19326 if test "${with_threads+set}" = set; then
19327   withval=$with_threads;  case "$withval" in
19328     yes)
19329         ;;
19330     *)
19331         WITH_THREADS=""
19332   esac
19333
19334 fi
19335
19336
19337 WITH_SNMP=yes
19338
19339 # Check whether --with-snmp was given.
19340 if test "${with_snmp+set}" = set; then
19341   withval=$with_snmp;  case "$withval" in
19342     yes)
19343         ;;
19344     *)
19345         WITH_SNMP=no
19346   esac
19347
19348 fi
19349
19350
19351 rad_enable_largefiles=no
19352
19353 # Check whether --with-large-files was given.
19354 if test "${with_large_files+set}" = set; then
19355   withval=$with_large_files;  case "$withval" in
19356     yes)
19357         rad_enable_largefiles=yes
19358         ;;
19359     *)
19360         ;;
19361   esac
19362
19363 fi
19364
19365
19366
19367 STATIC_MODULES=
19368
19369 # Check whether --with-static_modules was given.
19370 if test "${with_static_modules+set}" = set; then
19371   withval=$with_static_modules;
19372   for i in $withval; do
19373     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19374   done
19375
19376 fi
19377
19378
19379 MODULES=
19380
19381 # Check whether --with-modules was given.
19382 if test "${with_modules+set}" = set; then
19383   withval=$with_modules;
19384  for i in $withval; do
19385    MODULES="$MODULES $i"
19386  done
19387
19388 fi
19389
19390
19391 # Check whether --enable-developer was given.
19392 if test "${enable_developer+set}" = set; then
19393   enableval=$enable_developer;  case "$enableval" in
19394     no)
19395         developer=no
19396         ;;
19397     *)
19398         developer=yes
19399   esac
19400
19401 fi
19402
19403
19404 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19405     developer="yes"
19406 fi
19407
19408 EXPERIMENTAL=
19409
19410 # Check whether --with-experimental-modules was given.
19411 if test "${with_experimental_modules+set}" = set; then
19412   withval=$with_experimental_modules;  case "$withval" in
19413     yes)
19414         EXPERIMENTAL=yes
19415         ;;
19416     *)
19417   esac
19418
19419 fi
19420
19421
19422 OPENSSL_INCLUDE_DIR=
19423
19424 # Check whether --with-openssl-includes was given.
19425 if test "${with_openssl_includes+set}" = set; then
19426   withval=$with_openssl_includes;  case "$withval" in
19427     *) OPENSSL_INCLUDE_DIR="$withval"
19428         ;;
19429   esac
19430
19431 fi
19432
19433
19434 OPENSSL_LIB_DIR=
19435
19436 # Check whether --with-openssl-libraries was given.
19437 if test "${with_openssl_libraries+set}" = set; then
19438   withval=$with_openssl_libraries;  case "$withval" in
19439     *) OPENSSL_LIB_DIR="$withval"
19440         ;;
19441   esac
19442
19443 fi
19444
19445
19446
19447
19448 # Check whether --with-rlm-FOO-lib-dir was given.
19449 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19450   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19451     *)
19452         ;;
19453   esac
19454
19455 fi
19456
19457
19458
19459 # Check whether --with-rlm-FOO-include-dir was given.
19460 if test "${with_rlm_FOO_include_dir+set}" = set; then
19461   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19462     *)
19463         ;;
19464   esac
19465
19466 fi
19467
19468
19469
19470 WITH_UDPFROMTO=no
19471
19472 # Check whether --with-udpfromto was given.
19473 if test "${with_udpfromto+set}" = set; then
19474   withval=$with_udpfromto;  case "$withval" in
19475     yes)
19476         WITH_UDPFROMTO=yes
19477         ;;
19478     *)
19479         WITH_UDPFROMTO=no
19480   esac
19481
19482 fi
19483
19484
19485 if test "x$WITH_UDPFROMTO" = "xyes"; then
19486         cat >>confdefs.h <<\_ACEOF
19487 #define WITH_UDPFROMTO 1
19488 _ACEOF
19489
19490 fi
19491
19492
19493 # Check whether --with-edir was given.
19494 if test "${with_edir+set}" = set; then
19495   withval=$with_edir;
19496 fi
19497
19498
19499
19500 CHECKRAD=checkrad.pl
19501 # Extract the first word of "perl", so it can be a program name with args.
19502 set dummy perl; ac_word=$2
19503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19505 if test "${ac_cv_path_PERL+set}" = set; then
19506   echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508   case $PERL in
19509   [\\/]* | ?:[\\/]*)
19510   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19511   ;;
19512   *)
19513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19514 for as_dir in $PATH
19515 do
19516   IFS=$as_save_IFS
19517   test -z "$as_dir" && as_dir=.
19518   for ac_exec_ext in '' $ac_executable_extensions; do
19519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19520     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19522     break 2
19523   fi
19524 done
19525 done
19526 IFS=$as_save_IFS
19527
19528   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19529   ;;
19530 esac
19531 fi
19532 PERL=$ac_cv_path_PERL
19533 if test -n "$PERL"; then
19534   { echo "$as_me:$LINENO: result: $PERL" >&5
19535 echo "${ECHO_T}$PERL" >&6; }
19536 else
19537   { echo "$as_me:$LINENO: result: no" >&5
19538 echo "${ECHO_T}no" >&6; }
19539 fi
19540
19541
19542 if test "x$ac_cv_path_PERL" = "x"; then
19543   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19544 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19545 fi
19546 # Extract the first word of "snmpget", so it can be a program name with args.
19547 set dummy snmpget; ac_word=$2
19548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19550 if test "${ac_cv_path_SNMPGET+set}" = set; then
19551   echo $ECHO_N "(cached) $ECHO_C" >&6
19552 else
19553   case $SNMPGET in
19554   [\\/]* | ?:[\\/]*)
19555   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19556   ;;
19557   *)
19558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19559 for as_dir in $PATH
19560 do
19561   IFS=$as_save_IFS
19562   test -z "$as_dir" && as_dir=.
19563   for ac_exec_ext in '' $ac_executable_extensions; do
19564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19565     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19567     break 2
19568   fi
19569 done
19570 done
19571 IFS=$as_save_IFS
19572
19573   ;;
19574 esac
19575 fi
19576 SNMPGET=$ac_cv_path_SNMPGET
19577 if test -n "$SNMPGET"; then
19578   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19579 echo "${ECHO_T}$SNMPGET" >&6; }
19580 else
19581   { echo "$as_me:$LINENO: result: no" >&5
19582 echo "${ECHO_T}no" >&6; }
19583 fi
19584
19585
19586 if test "x$ac_cv_path_SNMPGET" = "x"; then
19587   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19588 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19589 fi
19590
19591 # Extract the first word of "snmpwalk", so it can be a program name with args.
19592 set dummy snmpwalk; ac_word=$2
19593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19595 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19596   echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598   case $SNMPWALK in
19599   [\\/]* | ?:[\\/]*)
19600   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19601   ;;
19602   *)
19603   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19604 for as_dir in $PATH
19605 do
19606   IFS=$as_save_IFS
19607   test -z "$as_dir" && as_dir=.
19608   for ac_exec_ext in '' $ac_executable_extensions; do
19609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19610     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19612     break 2
19613   fi
19614 done
19615 done
19616 IFS=$as_save_IFS
19617
19618   ;;
19619 esac
19620 fi
19621 SNMPWALK=$ac_cv_path_SNMPWALK
19622 if test -n "$SNMPWALK"; then
19623   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19624 echo "${ECHO_T}$SNMPWALK" >&6; }
19625 else
19626   { echo "$as_me:$LINENO: result: no" >&5
19627 echo "${ECHO_T}no" >&6; }
19628 fi
19629
19630
19631 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19632   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19633 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19634 fi
19635
19636 # Extract the first word of "rusers", so it can be a program name with args.
19637 set dummy rusers; ac_word=$2
19638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19640 if test "${ac_cv_path_RUSERS+set}" = set; then
19641   echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643   case $RUSERS in
19644   [\\/]* | ?:[\\/]*)
19645   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19646   ;;
19647   *)
19648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649 for as_dir in $PATH
19650 do
19651   IFS=$as_save_IFS
19652   test -z "$as_dir" && as_dir=.
19653   for ac_exec_ext in '' $ac_executable_extensions; do
19654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19655     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19657     break 2
19658   fi
19659 done
19660 done
19661 IFS=$as_save_IFS
19662
19663   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19664   ;;
19665 esac
19666 fi
19667 RUSERS=$ac_cv_path_RUSERS
19668 if test -n "$RUSERS"; then
19669   { echo "$as_me:$LINENO: result: $RUSERS" >&5
19670 echo "${ECHO_T}$RUSERS" >&6; }
19671 else
19672   { echo "$as_me:$LINENO: result: no" >&5
19673 echo "${ECHO_T}no" >&6; }
19674 fi
19675
19676
19677
19678 missing_dir=`cd $ac_aux_dir && pwd`
19679 { echo "$as_me:$LINENO: checking for working aclocal" >&5
19680 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6; }
19681 # Run test in a subshell; some versions of sh will print an error if
19682 # an executable is not found, even if stderr is redirected.
19683 # Redirect stdin to placate older versions of autoconf.  Sigh.
19684 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19685    ACLOCAL=aclocal
19686    { echo "$as_me:$LINENO: result: found" >&5
19687 echo "${ECHO_T}found" >&6; }
19688 else
19689    ACLOCAL="$missing_dir/missing aclocal"
19690    { echo "$as_me:$LINENO: result: missing" >&5
19691 echo "${ECHO_T}missing" >&6; }
19692 fi
19693
19694 { echo "$as_me:$LINENO: checking for working autoconf" >&5
19695 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6; }
19696 # Run test in a subshell; some versions of sh will print an error if
19697 # an executable is not found, even if stderr is redirected.
19698 # Redirect stdin to placate older versions of autoconf.  Sigh.
19699 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19700    AUTOCONF=autoconf
19701    { echo "$as_me:$LINENO: result: found" >&5
19702 echo "${ECHO_T}found" >&6; }
19703 else
19704    AUTOCONF="$missing_dir/missing autoconf"
19705    { echo "$as_me:$LINENO: result: missing" >&5
19706 echo "${ECHO_T}missing" >&6; }
19707 fi
19708
19709 { echo "$as_me:$LINENO: checking for working autoheader" >&5
19710 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6; }
19711 # Run test in a subshell; some versions of sh will print an error if
19712 # an executable is not found, even if stderr is redirected.
19713 # Redirect stdin to placate older versions of autoconf.  Sigh.
19714 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19715    AUTOHEADER=autoheader
19716    { echo "$as_me:$LINENO: result: found" >&5
19717 echo "${ECHO_T}found" >&6; }
19718 else
19719    AUTOHEADER="$missing_dir/missing autoheader"
19720    { echo "$as_me:$LINENO: result: missing" >&5
19721 echo "${ECHO_T}missing" >&6; }
19722 fi
19723
19724
19725 # Extract the first word of "locate", so it can be a program name with args.
19726 set dummy locate; ac_word=$2
19727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19729 if test "${ac_cv_path_LOCATE+set}" = set; then
19730   echo $ECHO_N "(cached) $ECHO_C" >&6
19731 else
19732   case $LOCATE in
19733   [\\/]* | ?:[\\/]*)
19734   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19735   ;;
19736   *)
19737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19738 for as_dir in $PATH
19739 do
19740   IFS=$as_save_IFS
19741   test -z "$as_dir" && as_dir=.
19742   for ac_exec_ext in '' $ac_executable_extensions; do
19743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19744     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19746     break 2
19747   fi
19748 done
19749 done
19750 IFS=$as_save_IFS
19751
19752   ;;
19753 esac
19754 fi
19755 LOCATE=$ac_cv_path_LOCATE
19756 if test -n "$LOCATE"; then
19757   { echo "$as_me:$LINENO: result: $LOCATE" >&5
19758 echo "${ECHO_T}$LOCATE" >&6; }
19759 else
19760   { echo "$as_me:$LINENO: result: no" >&5
19761 echo "${ECHO_T}no" >&6; }
19762 fi
19763
19764
19765 # Extract the first word of "dirname", so it can be a program name with args.
19766 set dummy dirname; ac_word=$2
19767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19769 if test "${ac_cv_path_DIRNAME+set}" = set; then
19770   echo $ECHO_N "(cached) $ECHO_C" >&6
19771 else
19772   case $DIRNAME in
19773   [\\/]* | ?:[\\/]*)
19774   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19775   ;;
19776   *)
19777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19778 for as_dir in $PATH
19779 do
19780   IFS=$as_save_IFS
19781   test -z "$as_dir" && as_dir=.
19782   for ac_exec_ext in '' $ac_executable_extensions; do
19783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19784     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19786     break 2
19787   fi
19788 done
19789 done
19790 IFS=$as_save_IFS
19791
19792   ;;
19793 esac
19794 fi
19795 DIRNAME=$ac_cv_path_DIRNAME
19796 if test -n "$DIRNAME"; then
19797   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
19798 echo "${ECHO_T}$DIRNAME" >&6; }
19799 else
19800   { echo "$as_me:$LINENO: result: no" >&5
19801 echo "${ECHO_T}no" >&6; }
19802 fi
19803
19804
19805 # Extract the first word of "grep", so it can be a program name with args.
19806 set dummy grep; ac_word=$2
19807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19809 if test "${ac_cv_path_GREP+set}" = set; then
19810   echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812   case $GREP in
19813   [\\/]* | ?:[\\/]*)
19814   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19815   ;;
19816   *)
19817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19818 for as_dir in $PATH
19819 do
19820   IFS=$as_save_IFS
19821   test -z "$as_dir" && as_dir=.
19822   for ac_exec_ext in '' $ac_executable_extensions; do
19823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19824     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19826     break 2
19827   fi
19828 done
19829 done
19830 IFS=$as_save_IFS
19831
19832   ;;
19833 esac
19834 fi
19835 GREP=$ac_cv_path_GREP
19836 if test -n "$GREP"; then
19837   { echo "$as_me:$LINENO: result: $GREP" >&5
19838 echo "${ECHO_T}$GREP" >&6; }
19839 else
19840   { echo "$as_me:$LINENO: result: no" >&5
19841 echo "${ECHO_T}no" >&6; }
19842 fi
19843
19844
19845
19846
19847 old_CFLAGS=$CFLAGS
19848 if test "x$WITH_THREADS" = "xyes"; then
19849   if test $ac_cv_prog_suncc = "yes"; then
19850     CFLAGS="$CFLAGS -mt"
19851   fi
19852
19853
19854 for ac_header in pthread.h
19855 do
19856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19858   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19861   echo $ECHO_N "(cached) $ECHO_C" >&6
19862 fi
19863 ac_res=`eval echo '${'$as_ac_Header'}'`
19864                { echo "$as_me:$LINENO: result: $ac_res" >&5
19865 echo "${ECHO_T}$ac_res" >&6; }
19866 else
19867   # Is the header compilable?
19868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19870 cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h.  */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h.  */
19876 $ac_includes_default
19877 #include <$ac_header>
19878 _ACEOF
19879 rm -f conftest.$ac_objext
19880 if { (ac_try="$ac_compile"
19881 case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_compile") 2>conftest.er1
19887   ac_status=$?
19888   grep -v '^ *+' conftest.er1 >conftest.err
19889   rm -f conftest.er1
19890   cat conftest.err >&5
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } && {
19893          test -z "$ac_c_werror_flag" ||
19894          test ! -s conftest.err
19895        } && test -s conftest.$ac_objext; then
19896   ac_header_compiler=yes
19897 else
19898   echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901         ac_header_compiler=no
19902 fi
19903
19904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19906 echo "${ECHO_T}$ac_header_compiler" >&6; }
19907
19908 # Is the header present?
19909 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19910 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19911 cat >conftest.$ac_ext <<_ACEOF
19912 /* confdefs.h.  */
19913 _ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h.  */
19917 #include <$ac_header>
19918 _ACEOF
19919 if { (ac_try="$ac_cpp conftest.$ac_ext"
19920 case "(($ac_try" in
19921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922   *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19926   ac_status=$?
19927   grep -v '^ *+' conftest.er1 >conftest.err
19928   rm -f conftest.er1
19929   cat conftest.err >&5
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); } >/dev/null && {
19932          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19933          test ! -s conftest.err
19934        }; then
19935   ac_header_preproc=yes
19936 else
19937   echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.$ac_ext >&5
19939
19940   ac_header_preproc=no
19941 fi
19942
19943 rm -f conftest.err conftest.$ac_ext
19944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19945 echo "${ECHO_T}$ac_header_preproc" >&6; }
19946
19947 # So?  What about this header?
19948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19949   yes:no: )
19950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19954     ac_header_preproc=yes
19955     ;;
19956   no:yes:* )
19957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19969
19970     ;;
19971 esac
19972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19974 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19975   echo $ECHO_N "(cached) $ECHO_C" >&6
19976 else
19977   eval "$as_ac_Header=\$ac_header_preproc"
19978 fi
19979 ac_res=`eval echo '${'$as_ac_Header'}'`
19980                { echo "$as_me:$LINENO: result: $ac_res" >&5
19981 echo "${ECHO_T}$ac_res" >&6; }
19982
19983 fi
19984 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19985   cat >>confdefs.h <<_ACEOF
19986 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19987 _ACEOF
19988
19989 else
19990    WITH_THREADS="no"
19991 fi
19992
19993 done
19994
19995
19996   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19997 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
19998 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19999   echo $ECHO_N "(cached) $ECHO_C" >&6
20000 else
20001   ac_check_lib_save_LIBS=$LIBS
20002 LIBS="-lpthread  $LIBS"
20003 cat >conftest.$ac_ext <<_ACEOF
20004 /* confdefs.h.  */
20005 _ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h.  */
20009
20010 /* Override any GCC internal prototype to avoid an error.
20011    Use char because int might match the return type of a GCC
20012    builtin and then its argument prototype would still apply.  */
20013 #ifdef __cplusplus
20014 extern "C"
20015 #endif
20016 char pthread_create ();
20017 int
20018 main ()
20019 {
20020 return pthread_create ();
20021   ;
20022   return 0;
20023 }
20024 _ACEOF
20025 rm -f conftest.$ac_objext conftest$ac_exeext
20026 if { (ac_try="$ac_link"
20027 case "(($ac_try" in
20028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029   *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032   (eval "$ac_link") 2>conftest.er1
20033   ac_status=$?
20034   grep -v '^ *+' conftest.er1 >conftest.err
20035   rm -f conftest.er1
20036   cat conftest.err >&5
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); } && {
20039          test -z "$ac_c_werror_flag" ||
20040          test ! -s conftest.err
20041        } && test -s conftest$ac_exeext &&
20042        $as_test_x conftest$ac_exeext; then
20043   ac_cv_lib_pthread_pthread_create=yes
20044 else
20045   echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20047
20048         ac_cv_lib_pthread_pthread_create=no
20049 fi
20050
20051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20052       conftest$ac_exeext conftest.$ac_ext
20053 LIBS=$ac_check_lib_save_LIBS
20054 fi
20055 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20056 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20057 if test $ac_cv_lib_pthread_pthread_create = yes; then
20058    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20059                   LIBS="$LIBS -lpthread"
20060 else
20061   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20062 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20063 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20064   echo $ECHO_N "(cached) $ECHO_C" >&6
20065 else
20066   ac_check_lib_save_LIBS=$LIBS
20067 LIBS="-lc_r  $LIBS"
20068 cat >conftest.$ac_ext <<_ACEOF
20069 /* confdefs.h.  */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h.  */
20074
20075 /* Override any GCC internal prototype to avoid an error.
20076    Use char because int might match the return type of a GCC
20077    builtin and then its argument prototype would still apply.  */
20078 #ifdef __cplusplus
20079 extern "C"
20080 #endif
20081 char pthread_create ();
20082 int
20083 main ()
20084 {
20085 return pthread_create ();
20086   ;
20087   return 0;
20088 }
20089 _ACEOF
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094   *) ac_try_echo=$ac_try;;
20095 esac
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097   (eval "$ac_link") 2>conftest.er1
20098   ac_status=$?
20099   grep -v '^ *+' conftest.er1 >conftest.err
20100   rm -f conftest.er1
20101   cat conftest.err >&5
20102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103   (exit $ac_status); } && {
20104          test -z "$ac_c_werror_flag" ||
20105          test ! -s conftest.err
20106        } && test -s conftest$ac_exeext &&
20107        $as_test_x conftest$ac_exeext; then
20108   ac_cv_lib_c_r_pthread_create=yes
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113         ac_cv_lib_c_r_pthread_create=no
20114 fi
20115
20116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20117       conftest$ac_exeext conftest.$ac_ext
20118 LIBS=$ac_check_lib_save_LIBS
20119 fi
20120 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20121 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20122 if test $ac_cv_lib_c_r_pthread_create = yes; then
20123    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20124 else
20125    WITH_THREADS="no"
20126
20127 fi
20128
20129
20130 fi
20131
20132 fi
20133
20134 if test "x$WITH_THREADS" != "xyes"; then
20135   CFLAGS=$old_CFLAGS
20136   ac_cv_header_pthread_h="no"
20137   WITH_THREADS=no
20138 else
20139
20140   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20141 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20142 if test "${ac_cv_search_sem_init+set}" = set; then
20143   echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145   ac_func_search_save_LIBS=$LIBS
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h.  */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h.  */
20152
20153 /* Override any GCC internal prototype to avoid an error.
20154    Use char because int might match the return type of a GCC
20155    builtin and then its argument prototype would still apply.  */
20156 #ifdef __cplusplus
20157 extern "C"
20158 #endif
20159 char sem_init ();
20160 int
20161 main ()
20162 {
20163 return sem_init ();
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 for ac_lib in '' pthread sem posix4 rt; do
20169   if test -z "$ac_lib"; then
20170     ac_res="none required"
20171   else
20172     ac_res=-l$ac_lib
20173     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20174   fi
20175   rm -f conftest.$ac_objext conftest$ac_exeext
20176 if { (ac_try="$ac_link"
20177 case "(($ac_try" in
20178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179   *) ac_try_echo=$ac_try;;
20180 esac
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182   (eval "$ac_link") 2>conftest.er1
20183   ac_status=$?
20184   grep -v '^ *+' conftest.er1 >conftest.err
20185   rm -f conftest.er1
20186   cat conftest.err >&5
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); } && {
20189          test -z "$ac_c_werror_flag" ||
20190          test ! -s conftest.err
20191        } && test -s conftest$ac_exeext &&
20192        $as_test_x conftest$ac_exeext; then
20193   ac_cv_search_sem_init=$ac_res
20194 else
20195   echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20197
20198
20199 fi
20200
20201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20202       conftest$ac_exeext
20203   if test "${ac_cv_search_sem_init+set}" = set; then
20204   break
20205 fi
20206 done
20207 if test "${ac_cv_search_sem_init+set}" = set; then
20208   :
20209 else
20210   ac_cv_search_sem_init=no
20211 fi
20212 rm conftest.$ac_ext
20213 LIBS=$ac_func_search_save_LIBS
20214 fi
20215 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20216 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20217 ac_res=$ac_cv_search_sem_init
20218 if test "$ac_res" != no; then
20219   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20220
20221 else
20222   { { 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
20223 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;}
20224    { (exit 1); exit 1; }; }
20225
20226 fi
20227
20228 fi
20229
20230
20231 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20232 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20233 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20234   echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236   ac_check_lib_save_LIBS=$LIBS
20237 LIBS="-lsocket  $LIBS"
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244
20245 /* Override any GCC internal prototype to avoid an error.
20246    Use char because int might match the return type of a GCC
20247    builtin and then its argument prototype would still apply.  */
20248 #ifdef __cplusplus
20249 extern "C"
20250 #endif
20251 char getsockname ();
20252 int
20253 main ()
20254 {
20255 return getsockname ();
20256   ;
20257   return 0;
20258 }
20259 _ACEOF
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264   *) ac_try_echo=$ac_try;;
20265 esac
20266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267   (eval "$ac_link") 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } && {
20274          test -z "$ac_c_werror_flag" ||
20275          test ! -s conftest.err
20276        } && test -s conftest$ac_exeext &&
20277        $as_test_x conftest$ac_exeext; then
20278   ac_cv_lib_socket_getsockname=yes
20279 else
20280   echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283         ac_cv_lib_socket_getsockname=no
20284 fi
20285
20286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20287       conftest$ac_exeext conftest.$ac_ext
20288 LIBS=$ac_check_lib_save_LIBS
20289 fi
20290 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20291 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20292 if test $ac_cv_lib_socket_getsockname = yes; then
20293   cat >>confdefs.h <<_ACEOF
20294 #define HAVE_LIBSOCKET 1
20295 _ACEOF
20296
20297   LIBS="-lsocket $LIBS"
20298
20299 fi
20300
20301
20302
20303 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20304 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20305 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20306   echo $ECHO_N "(cached) $ECHO_C" >&6
20307 else
20308   ac_check_lib_save_LIBS=$LIBS
20309 LIBS="-lresolv  $LIBS"
20310 cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316
20317 /* Override any GCC internal prototype to avoid an error.
20318    Use char because int might match the return type of a GCC
20319    builtin and then its argument prototype would still apply.  */
20320 #ifdef __cplusplus
20321 extern "C"
20322 #endif
20323 char inet_aton ();
20324 int
20325 main ()
20326 {
20327 return inet_aton ();
20328   ;
20329   return 0;
20330 }
20331 _ACEOF
20332 rm -f conftest.$ac_objext conftest$ac_exeext
20333 if { (ac_try="$ac_link"
20334 case "(($ac_try" in
20335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20336   *) ac_try_echo=$ac_try;;
20337 esac
20338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20339   (eval "$ac_link") 2>conftest.er1
20340   ac_status=$?
20341   grep -v '^ *+' conftest.er1 >conftest.err
20342   rm -f conftest.er1
20343   cat conftest.err >&5
20344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345   (exit $ac_status); } && {
20346          test -z "$ac_c_werror_flag" ||
20347          test ! -s conftest.err
20348        } && test -s conftest$ac_exeext &&
20349        $as_test_x conftest$ac_exeext; then
20350   ac_cv_lib_resolv_inet_aton=yes
20351 else
20352   echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355         ac_cv_lib_resolv_inet_aton=no
20356 fi
20357
20358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20359       conftest$ac_exeext conftest.$ac_ext
20360 LIBS=$ac_check_lib_save_LIBS
20361 fi
20362 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20363 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20364 if test $ac_cv_lib_resolv_inet_aton = yes; then
20365   cat >>confdefs.h <<_ACEOF
20366 #define HAVE_LIBRESOLV 1
20367 _ACEOF
20368
20369   LIBS="-lresolv $LIBS"
20370
20371 fi
20372
20373
20374
20375 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20376 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20377 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20378   echo $ECHO_N "(cached) $ECHO_C" >&6
20379 else
20380   ac_check_lib_save_LIBS=$LIBS
20381 LIBS="-lnsl  $LIBS"
20382 cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h.  */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h.  */
20388
20389 /* Override any GCC internal prototype to avoid an error.
20390    Use char because int might match the return type of a GCC
20391    builtin and then its argument prototype would still apply.  */
20392 #ifdef __cplusplus
20393 extern "C"
20394 #endif
20395 char inet_ntoa ();
20396 int
20397 main ()
20398 {
20399 return inet_ntoa ();
20400   ;
20401   return 0;
20402 }
20403 _ACEOF
20404 rm -f conftest.$ac_objext conftest$ac_exeext
20405 if { (ac_try="$ac_link"
20406 case "(($ac_try" in
20407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20408   *) ac_try_echo=$ac_try;;
20409 esac
20410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20411   (eval "$ac_link") 2>conftest.er1
20412   ac_status=$?
20413   grep -v '^ *+' conftest.er1 >conftest.err
20414   rm -f conftest.er1
20415   cat conftest.err >&5
20416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417   (exit $ac_status); } && {
20418          test -z "$ac_c_werror_flag" ||
20419          test ! -s conftest.err
20420        } && test -s conftest$ac_exeext &&
20421        $as_test_x conftest$ac_exeext; then
20422   ac_cv_lib_nsl_inet_ntoa=yes
20423 else
20424   echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20426
20427         ac_cv_lib_nsl_inet_ntoa=no
20428 fi
20429
20430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20431       conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20433 fi
20434 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20435 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20436 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20437   cat >>confdefs.h <<_ACEOF
20438 #define HAVE_LIBNSL 1
20439 _ACEOF
20440
20441   LIBS="-lnsl $LIBS"
20442
20443 fi
20444
20445
20446 OPENSSL_LIBS=
20447 old_LIBS=$LIBS
20448 if test "x$OPENSSL_LIB_DIR" != "x"; then
20449     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20450 fi
20451 { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20452 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20453 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20454   echo $ECHO_N "(cached) $ECHO_C" >&6
20455 else
20456   ac_check_lib_save_LIBS=$LIBS
20457 LIBS="-lcrypto  $LIBS"
20458 cat >conftest.$ac_ext <<_ACEOF
20459 /* confdefs.h.  */
20460 _ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h.  */
20464
20465 /* Override any GCC internal prototype to avoid an error.
20466    Use char because int might match the return type of a GCC
20467    builtin and then its argument prototype would still apply.  */
20468 #ifdef __cplusplus
20469 extern "C"
20470 #endif
20471 char DH_new ();
20472 int
20473 main ()
20474 {
20475 return DH_new ();
20476   ;
20477   return 0;
20478 }
20479 _ACEOF
20480 rm -f conftest.$ac_objext conftest$ac_exeext
20481 if { (ac_try="$ac_link"
20482 case "(($ac_try" in
20483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484   *) ac_try_echo=$ac_try;;
20485 esac
20486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20487   (eval "$ac_link") 2>conftest.er1
20488   ac_status=$?
20489   grep -v '^ *+' conftest.er1 >conftest.err
20490   rm -f conftest.er1
20491   cat conftest.err >&5
20492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); } && {
20494          test -z "$ac_c_werror_flag" ||
20495          test ! -s conftest.err
20496        } && test -s conftest$ac_exeext &&
20497        $as_test_x conftest$ac_exeext; then
20498   ac_cv_lib_crypto_DH_new=yes
20499 else
20500   echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.$ac_ext >&5
20502
20503         ac_cv_lib_crypto_DH_new=no
20504 fi
20505
20506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20507       conftest$ac_exeext conftest.$ac_ext
20508 LIBS=$ac_check_lib_save_LIBS
20509 fi
20510 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20511 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20512 if test $ac_cv_lib_crypto_DH_new = yes; then
20513
20514
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE_LIBCRYPTO 1
20517 _ACEOF
20518
20519         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20520 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20521 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524   ac_check_lib_save_LIBS=$LIBS
20525 LIBS="-lssl  $LIBS"
20526 cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h.  */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h.  */
20532
20533 /* Override any GCC internal prototype to avoid an error.
20534    Use char because int might match the return type of a GCC
20535    builtin and then its argument prototype would still apply.  */
20536 #ifdef __cplusplus
20537 extern "C"
20538 #endif
20539 char SSL_new ();
20540 int
20541 main ()
20542 {
20543 return SSL_new ();
20544   ;
20545   return 0;
20546 }
20547 _ACEOF
20548 rm -f conftest.$ac_objext conftest$ac_exeext
20549 if { (ac_try="$ac_link"
20550 case "(($ac_try" in
20551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552   *) ac_try_echo=$ac_try;;
20553 esac
20554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555   (eval "$ac_link") 2>conftest.er1
20556   ac_status=$?
20557   grep -v '^ *+' conftest.er1 >conftest.err
20558   rm -f conftest.er1
20559   cat conftest.err >&5
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); } && {
20562          test -z "$ac_c_werror_flag" ||
20563          test ! -s conftest.err
20564        } && test -s conftest$ac_exeext &&
20565        $as_test_x conftest$ac_exeext; then
20566   ac_cv_lib_ssl_SSL_new=yes
20567 else
20568   echo "$as_me: failed program was:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20570
20571         ac_cv_lib_ssl_SSL_new=no
20572 fi
20573
20574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20575       conftest$ac_exeext conftest.$ac_ext
20576 LIBS=$ac_check_lib_save_LIBS
20577 fi
20578 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20579 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20580 if test $ac_cv_lib_ssl_SSL_new = yes; then
20581
20582
20583 cat >>confdefs.h <<\_ACEOF
20584 #define HAVE_LIBSSL 1
20585 _ACEOF
20586
20587                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20588                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20589                 fi
20590                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20591
20592 fi
20593
20594
20595 fi
20596
20597 LIBS=$old_LIBS
20598
20599
20600 case "$host" in
20601 *-interix*)
20602         CFLAGS="$CFLAGS -D_ALL_SOURCE"
20603         ;;
20604 *-darwin*)
20605         CFLAGS="$CFLAGS -DDARWIN"
20606         ;;
20607 esac
20608
20609
20610
20611
20612
20613
20614 ac_header_dirent=no
20615 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20616   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20617 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20618 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20620   echo $ECHO_N "(cached) $ECHO_C" >&6
20621 else
20622   cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 #include <sys/types.h>
20629 #include <$ac_hdr>
20630
20631 int
20632 main ()
20633 {
20634 if ((DIR *) 0)
20635 return 0;
20636   ;
20637   return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (ac_try="$ac_compile"
20642 case "(($ac_try" in
20643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644   *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647   (eval "$ac_compile") 2>conftest.er1
20648   ac_status=$?
20649   grep -v '^ *+' conftest.er1 >conftest.err
20650   rm -f conftest.er1
20651   cat conftest.err >&5
20652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653   (exit $ac_status); } && {
20654          test -z "$ac_c_werror_flag" ||
20655          test ! -s conftest.err
20656        } && test -s conftest.$ac_objext; then
20657   eval "$as_ac_Header=yes"
20658 else
20659   echo "$as_me: failed program was:" >&5
20660 sed 's/^/| /' conftest.$ac_ext >&5
20661
20662         eval "$as_ac_Header=no"
20663 fi
20664
20665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20666 fi
20667 ac_res=`eval echo '${'$as_ac_Header'}'`
20668                { echo "$as_me:$LINENO: result: $ac_res" >&5
20669 echo "${ECHO_T}$ac_res" >&6; }
20670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20671   cat >>confdefs.h <<_ACEOF
20672 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20673 _ACEOF
20674
20675 ac_header_dirent=$ac_hdr; break
20676 fi
20677
20678 done
20679 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20680 if test $ac_header_dirent = dirent.h; then
20681   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20682 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20683 if test "${ac_cv_search_opendir+set}" = set; then
20684   echo $ECHO_N "(cached) $ECHO_C" >&6
20685 else
20686   ac_func_search_save_LIBS=$LIBS
20687 cat >conftest.$ac_ext <<_ACEOF
20688 /* confdefs.h.  */
20689 _ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h.  */
20693
20694 /* Override any GCC internal prototype to avoid an error.
20695    Use char because int might match the return type of a GCC
20696    builtin and then its argument prototype would still apply.  */
20697 #ifdef __cplusplus
20698 extern "C"
20699 #endif
20700 char opendir ();
20701 int
20702 main ()
20703 {
20704 return opendir ();
20705   ;
20706   return 0;
20707 }
20708 _ACEOF
20709 for ac_lib in '' dir; do
20710   if test -z "$ac_lib"; then
20711     ac_res="none required"
20712   else
20713     ac_res=-l$ac_lib
20714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20715   fi
20716   rm -f conftest.$ac_objext conftest$ac_exeext
20717 if { (ac_try="$ac_link"
20718 case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_link") 2>conftest.er1
20724   ac_status=$?
20725   grep -v '^ *+' conftest.er1 >conftest.err
20726   rm -f conftest.er1
20727   cat conftest.err >&5
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } && {
20730          test -z "$ac_c_werror_flag" ||
20731          test ! -s conftest.err
20732        } && test -s conftest$ac_exeext &&
20733        $as_test_x conftest$ac_exeext; then
20734   ac_cv_search_opendir=$ac_res
20735 else
20736   echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20738
20739
20740 fi
20741
20742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20743       conftest$ac_exeext
20744   if test "${ac_cv_search_opendir+set}" = set; then
20745   break
20746 fi
20747 done
20748 if test "${ac_cv_search_opendir+set}" = set; then
20749   :
20750 else
20751   ac_cv_search_opendir=no
20752 fi
20753 rm conftest.$ac_ext
20754 LIBS=$ac_func_search_save_LIBS
20755 fi
20756 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20757 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20758 ac_res=$ac_cv_search_opendir
20759 if test "$ac_res" != no; then
20760   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20761
20762 fi
20763
20764 else
20765   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20766 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20767 if test "${ac_cv_search_opendir+set}" = set; then
20768   echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770   ac_func_search_save_LIBS=$LIBS
20771 cat >conftest.$ac_ext <<_ACEOF
20772 /* confdefs.h.  */
20773 _ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h.  */
20777
20778 /* Override any GCC internal prototype to avoid an error.
20779    Use char because int might match the return type of a GCC
20780    builtin and then its argument prototype would still apply.  */
20781 #ifdef __cplusplus
20782 extern "C"
20783 #endif
20784 char opendir ();
20785 int
20786 main ()
20787 {
20788 return opendir ();
20789   ;
20790   return 0;
20791 }
20792 _ACEOF
20793 for ac_lib in '' x; do
20794   if test -z "$ac_lib"; then
20795     ac_res="none required"
20796   else
20797     ac_res=-l$ac_lib
20798     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20799   fi
20800   rm -f conftest.$ac_objext conftest$ac_exeext
20801 if { (ac_try="$ac_link"
20802 case "(($ac_try" in
20803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804   *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807   (eval "$ac_link") 2>conftest.er1
20808   ac_status=$?
20809   grep -v '^ *+' conftest.er1 >conftest.err
20810   rm -f conftest.er1
20811   cat conftest.err >&5
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); } && {
20814          test -z "$ac_c_werror_flag" ||
20815          test ! -s conftest.err
20816        } && test -s conftest$ac_exeext &&
20817        $as_test_x conftest$ac_exeext; then
20818   ac_cv_search_opendir=$ac_res
20819 else
20820   echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20822
20823
20824 fi
20825
20826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20827       conftest$ac_exeext
20828   if test "${ac_cv_search_opendir+set}" = set; then
20829   break
20830 fi
20831 done
20832 if test "${ac_cv_search_opendir+set}" = set; then
20833   :
20834 else
20835   ac_cv_search_opendir=no
20836 fi
20837 rm conftest.$ac_ext
20838 LIBS=$ac_func_search_save_LIBS
20839 fi
20840 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20841 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20842 ac_res=$ac_cv_search_opendir
20843 if test "$ac_res" != no; then
20844   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20845
20846 fi
20847
20848 fi
20849
20850 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20852 if test "${ac_cv_header_stdc+set}" = set; then
20853   echo $ECHO_N "(cached) $ECHO_C" >&6
20854 else
20855   cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 #include <stdlib.h>
20862 #include <stdarg.h>
20863 #include <string.h>
20864 #include <float.h>
20865
20866 int
20867 main ()
20868 {
20869
20870   ;
20871   return 0;
20872 }
20873 _ACEOF
20874 rm -f conftest.$ac_objext
20875 if { (ac_try="$ac_compile"
20876 case "(($ac_try" in
20877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878   *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881   (eval "$ac_compile") 2>conftest.er1
20882   ac_status=$?
20883   grep -v '^ *+' conftest.er1 >conftest.err
20884   rm -f conftest.er1
20885   cat conftest.err >&5
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); } && {
20888          test -z "$ac_c_werror_flag" ||
20889          test ! -s conftest.err
20890        } && test -s conftest.$ac_objext; then
20891   ac_cv_header_stdc=yes
20892 else
20893   echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20895
20896         ac_cv_header_stdc=no
20897 fi
20898
20899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900
20901 if test $ac_cv_header_stdc = yes; then
20902   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20903   cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h.  */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h.  */
20909 #include <string.h>
20910
20911 _ACEOF
20912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20913   $EGREP "memchr" >/dev/null 2>&1; then
20914   :
20915 else
20916   ac_cv_header_stdc=no
20917 fi
20918 rm -f conftest*
20919
20920 fi
20921
20922 if test $ac_cv_header_stdc = yes; then
20923   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20924   cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h.  */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h.  */
20930 #include <stdlib.h>
20931
20932 _ACEOF
20933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20934   $EGREP "free" >/dev/null 2>&1; then
20935   :
20936 else
20937   ac_cv_header_stdc=no
20938 fi
20939 rm -f conftest*
20940
20941 fi
20942
20943 if test $ac_cv_header_stdc = yes; then
20944   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20945   if test "$cross_compiling" = yes; then
20946   :
20947 else
20948   cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20954 #include <ctype.h>
20955 #include <stdlib.h>
20956 #if ((' ' & 0x0FF) == 0x020)
20957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20959 #else
20960 # define ISLOWER(c) \
20961                    (('a' <= (c) && (c) <= 'i') \
20962                      || ('j' <= (c) && (c) <= 'r') \
20963                      || ('s' <= (c) && (c) <= 'z'))
20964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20965 #endif
20966
20967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20968 int
20969 main ()
20970 {
20971   int i;
20972   for (i = 0; i < 256; i++)
20973     if (XOR (islower (i), ISLOWER (i))
20974         || toupper (i) != TOUPPER (i))
20975       return 2;
20976   return 0;
20977 }
20978 _ACEOF
20979 rm -f conftest$ac_exeext
20980 if { (ac_try="$ac_link"
20981 case "(($ac_try" in
20982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983   *) ac_try_echo=$ac_try;;
20984 esac
20985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20986   (eval "$ac_link") 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20990   { (case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_try") 2>&5
20996   ac_status=$?
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); }; }; then
20999   :
21000 else
21001   echo "$as_me: program exited with status $ac_status" >&5
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21004
21005 ( exit $ac_status )
21006 ac_cv_header_stdc=no
21007 fi
21008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21009 fi
21010
21011
21012 fi
21013 fi
21014 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21015 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21016 if test $ac_cv_header_stdc = yes; then
21017
21018 cat >>confdefs.h <<\_ACEOF
21019 #define STDC_HEADERS 1
21020 _ACEOF
21021
21022 fi
21023
21024 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21025 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21026 if test "${ac_cv_header_time+set}" = set; then
21027   echo $ECHO_N "(cached) $ECHO_C" >&6
21028 else
21029   cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h.  */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h.  */
21035 #include <sys/types.h>
21036 #include <sys/time.h>
21037 #include <time.h>
21038
21039 int
21040 main ()
21041 {
21042 if ((struct tm *) 0)
21043 return 0;
21044   ;
21045   return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext
21049 if { (ac_try="$ac_compile"
21050 case "(($ac_try" in
21051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052   *) ac_try_echo=$ac_try;;
21053 esac
21054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21055   (eval "$ac_compile") 2>conftest.er1
21056   ac_status=$?
21057   grep -v '^ *+' conftest.er1 >conftest.err
21058   rm -f conftest.er1
21059   cat conftest.err >&5
21060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061   (exit $ac_status); } && {
21062          test -z "$ac_c_werror_flag" ||
21063          test ! -s conftest.err
21064        } && test -s conftest.$ac_objext; then
21065   ac_cv_header_time=yes
21066 else
21067   echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070         ac_cv_header_time=no
21071 fi
21072
21073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21074 fi
21075 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21076 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21077 if test $ac_cv_header_time = yes; then
21078
21079 cat >>confdefs.h <<\_ACEOF
21080 #define TIME_WITH_SYS_TIME 1
21081 _ACEOF
21082
21083 fi
21084
21085 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21086 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21087 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21088   echo $ECHO_N "(cached) $ECHO_C" >&6
21089 else
21090   cat >conftest.$ac_ext <<_ACEOF
21091 /* confdefs.h.  */
21092 _ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h.  */
21096 #include <sys/types.h>
21097 #include <sys/wait.h>
21098 #ifndef WEXITSTATUS
21099 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21100 #endif
21101 #ifndef WIFEXITED
21102 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21103 #endif
21104
21105 int
21106 main ()
21107 {
21108   int s;
21109   wait (&s);
21110   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21111   ;
21112   return 0;
21113 }
21114 _ACEOF
21115 rm -f conftest.$ac_objext
21116 if { (ac_try="$ac_compile"
21117 case "(($ac_try" in
21118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119   *) ac_try_echo=$ac_try;;
21120 esac
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122   (eval "$ac_compile") 2>conftest.er1
21123   ac_status=$?
21124   grep -v '^ *+' conftest.er1 >conftest.err
21125   rm -f conftest.er1
21126   cat conftest.err >&5
21127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128   (exit $ac_status); } && {
21129          test -z "$ac_c_werror_flag" ||
21130          test ! -s conftest.err
21131        } && test -s conftest.$ac_objext; then
21132   ac_cv_header_sys_wait_h=yes
21133 else
21134   echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21136
21137         ac_cv_header_sys_wait_h=no
21138 fi
21139
21140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21141 fi
21142 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21143 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21144 if test $ac_cv_header_sys_wait_h = yes; then
21145
21146 cat >>confdefs.h <<\_ACEOF
21147 #define HAVE_SYS_WAIT_H 1
21148 _ACEOF
21149
21150 fi
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
21182
21183 for ac_header in \
21184         unistd.h \
21185         crypt.h \
21186         errno.h \
21187         resource.h \
21188         getopt.h \
21189         malloc.h \
21190         utmp.h \
21191         utmpx.h \
21192         signal.h \
21193         sys/select.h \
21194         syslog.h \
21195         inttypes.h \
21196         stdint.h \
21197         stdio.h \
21198         netdb.h \
21199         semaphore.h \
21200         arpa/inet.h \
21201         netinet/in.h \
21202         sys/types.h \
21203         sys/socket.h \
21204         sys/time.h \
21205         sys/wait.h \
21206         sys/security.h \
21207         fcntl.h \
21208         sys/fcntl.h \
21209         sys/stat.h \
21210         sys/prctl.h \
21211         prot.h \
21212         sia.h \
21213         siad.h
21214
21215 do
21216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21218   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21221   echo $ECHO_N "(cached) $ECHO_C" >&6
21222 fi
21223 ac_res=`eval echo '${'$as_ac_Header'}'`
21224                { echo "$as_me:$LINENO: result: $ac_res" >&5
21225 echo "${ECHO_T}$ac_res" >&6; }
21226 else
21227   # Is the header compilable?
21228 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h.  */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h.  */
21236 $ac_includes_default
21237 #include <$ac_header>
21238 _ACEOF
21239 rm -f conftest.$ac_objext
21240 if { (ac_try="$ac_compile"
21241 case "(($ac_try" in
21242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243   *) ac_try_echo=$ac_try;;
21244 esac
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246   (eval "$ac_compile") 2>conftest.er1
21247   ac_status=$?
21248   grep -v '^ *+' conftest.er1 >conftest.err
21249   rm -f conftest.er1
21250   cat conftest.err >&5
21251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252   (exit $ac_status); } && {
21253          test -z "$ac_c_werror_flag" ||
21254          test ! -s conftest.err
21255        } && test -s conftest.$ac_objext; then
21256   ac_header_compiler=yes
21257 else
21258   echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21260
21261         ac_header_compiler=no
21262 fi
21263
21264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21266 echo "${ECHO_T}$ac_header_compiler" >&6; }
21267
21268 # Is the header present?
21269 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21270 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21271 cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h.  */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h.  */
21277 #include <$ac_header>
21278 _ACEOF
21279 if { (ac_try="$ac_cpp conftest.$ac_ext"
21280 case "(($ac_try" in
21281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21282   *) ac_try_echo=$ac_try;;
21283 esac
21284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21285   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } >/dev/null && {
21292          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21293          test ! -s conftest.err
21294        }; then
21295   ac_header_preproc=yes
21296 else
21297   echo "$as_me: failed program was:" >&5
21298 sed 's/^/| /' conftest.$ac_ext >&5
21299
21300   ac_header_preproc=no
21301 fi
21302
21303 rm -f conftest.err conftest.$ac_ext
21304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21305 echo "${ECHO_T}$ac_header_preproc" >&6; }
21306
21307 # So?  What about this header?
21308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21309   yes:no: )
21310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21314     ac_header_preproc=yes
21315     ;;
21316   no:yes:* )
21317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21329
21330     ;;
21331 esac
21332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21335   echo $ECHO_N "(cached) $ECHO_C" >&6
21336 else
21337   eval "$as_ac_Header=\$ac_header_preproc"
21338 fi
21339 ac_res=`eval echo '${'$as_ac_Header'}'`
21340                { echo "$as_me:$LINENO: result: $ac_res" >&5
21341 echo "${ECHO_T}$ac_res" >&6; }
21342
21343 fi
21344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21345   cat >>confdefs.h <<_ACEOF
21346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21347 _ACEOF
21348
21349 fi
21350
21351 done
21352
21353
21354 REGEX=no
21355 if test "${ac_cv_header_regex_h+set}" = set; then
21356   { echo "$as_me:$LINENO: checking for regex.h" >&5
21357 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21358 if test "${ac_cv_header_regex_h+set}" = set; then
21359   echo $ECHO_N "(cached) $ECHO_C" >&6
21360 fi
21361 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21362 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21363 else
21364   # Is the header compilable?
21365 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21366 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21367 cat >conftest.$ac_ext <<_ACEOF
21368 /* confdefs.h.  */
21369 _ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h.  */
21373 $ac_includes_default
21374 #include <regex.h>
21375 _ACEOF
21376 rm -f conftest.$ac_objext
21377 if { (ac_try="$ac_compile"
21378 case "(($ac_try" in
21379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380   *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383   (eval "$ac_compile") 2>conftest.er1
21384   ac_status=$?
21385   grep -v '^ *+' conftest.er1 >conftest.err
21386   rm -f conftest.er1
21387   cat conftest.err >&5
21388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389   (exit $ac_status); } && {
21390          test -z "$ac_c_werror_flag" ||
21391          test ! -s conftest.err
21392        } && test -s conftest.$ac_objext; then
21393   ac_header_compiler=yes
21394 else
21395   echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398         ac_header_compiler=no
21399 fi
21400
21401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21403 echo "${ECHO_T}$ac_header_compiler" >&6; }
21404
21405 # Is the header present?
21406 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21407 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21408 cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h.  */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h.  */
21414 #include <regex.h>
21415 _ACEOF
21416 if { (ac_try="$ac_cpp conftest.$ac_ext"
21417 case "(($ac_try" in
21418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21419   *) ac_try_echo=$ac_try;;
21420 esac
21421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21423   ac_status=$?
21424   grep -v '^ *+' conftest.er1 >conftest.err
21425   rm -f conftest.er1
21426   cat conftest.err >&5
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } >/dev/null && {
21429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21430          test ! -s conftest.err
21431        }; then
21432   ac_header_preproc=yes
21433 else
21434   echo "$as_me: failed program was:" >&5
21435 sed 's/^/| /' conftest.$ac_ext >&5
21436
21437   ac_header_preproc=no
21438 fi
21439
21440 rm -f conftest.err conftest.$ac_ext
21441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21442 echo "${ECHO_T}$ac_header_preproc" >&6; }
21443
21444 # So?  What about this header?
21445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21446   yes:no: )
21447     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21448 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21449     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21450 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21451     ac_header_preproc=yes
21452     ;;
21453   no:yes:* )
21454     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21455 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21456     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
21457 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
21458     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21459 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21460     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
21461 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21462     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21463 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21464     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21465 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21466
21467     ;;
21468 esac
21469 { echo "$as_me:$LINENO: checking for regex.h" >&5
21470 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21471 if test "${ac_cv_header_regex_h+set}" = set; then
21472   echo $ECHO_N "(cached) $ECHO_C" >&6
21473 else
21474   ac_cv_header_regex_h=$ac_header_preproc
21475 fi
21476 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21477 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21478
21479 fi
21480 if test $ac_cv_header_regex_h = yes; then
21481   cat >>confdefs.h <<\_ACEOF
21482 #define HAVE_REGEX_H 1
21483 _ACEOF
21484
21485 fi
21486
21487
21488 if test "x$ac_cv_header_regex_h" = "xyes"; then
21489   REGEX_EXTENDED=no
21490   REGEX=yes
21491   cat >conftest.$ac_ext <<_ACEOF
21492 /* confdefs.h.  */
21493 _ACEOF
21494 cat confdefs.h >>conftest.$ac_ext
21495 cat >>conftest.$ac_ext <<_ACEOF
21496 /* end confdefs.h.  */
21497 #include <regex.h>
21498      #ifdef REG_EXTENDED
21499        yes
21500      #endif
21501
21502 _ACEOF
21503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21504   $EGREP "yes" >/dev/null 2>&1; then
21505   cat >>confdefs.h <<\_ACEOF
21506 #define HAVE_REG_EXTENDED 1
21507 _ACEOF
21508  REGEX_EXTENDED=yes
21509 fi
21510 rm -f conftest*
21511
21512 fi
21513
21514
21515
21516 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21517 then
21518   cat >>confdefs.h <<\_ACEOF
21519 #define OSFC2 1
21520 _ACEOF
21521
21522 fi
21523
21524 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21525 then
21526   cat >>confdefs.h <<\_ACEOF
21527 #define OSFSIA 1
21528 _ACEOF
21529
21530 fi
21531
21532 OPENSSL_INCLUDE="-DNO_OPENSSL"
21533 if test "x$OPENSSL_LIBS" = "x"; then
21534     { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21535 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21536 else
21537     old_CPPFLAGS=$CPPFLAGS
21538     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21539         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21540     fi
21541         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21542
21543
21544
21545
21546 for ac_header in \
21547         openssl/ssl.h \
21548         openssl/crypto.h \
21549         openssl/err.h \
21550         openssl/engine.h
21551 do
21552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21554   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21557   echo $ECHO_N "(cached) $ECHO_C" >&6
21558 fi
21559 ac_res=`eval echo '${'$as_ac_Header'}'`
21560                { echo "$as_me:$LINENO: result: $ac_res" >&5
21561 echo "${ECHO_T}$ac_res" >&6; }
21562 else
21563   # Is the header compilable?
21564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21566 cat >conftest.$ac_ext <<_ACEOF
21567 /* confdefs.h.  */
21568 _ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h.  */
21572 $ac_includes_default
21573 #include <$ac_header>
21574 _ACEOF
21575 rm -f conftest.$ac_objext
21576 if { (ac_try="$ac_compile"
21577 case "(($ac_try" in
21578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579   *) ac_try_echo=$ac_try;;
21580 esac
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582   (eval "$ac_compile") 2>conftest.er1
21583   ac_status=$?
21584   grep -v '^ *+' conftest.er1 >conftest.err
21585   rm -f conftest.er1
21586   cat conftest.err >&5
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); } && {
21589          test -z "$ac_c_werror_flag" ||
21590          test ! -s conftest.err
21591        } && test -s conftest.$ac_objext; then
21592   ac_header_compiler=yes
21593 else
21594   echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21596
21597         ac_header_compiler=no
21598 fi
21599
21600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21602 echo "${ECHO_T}$ac_header_compiler" >&6; }
21603
21604 # Is the header present?
21605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21607 cat >conftest.$ac_ext <<_ACEOF
21608 /* confdefs.h.  */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h.  */
21613 #include <$ac_header>
21614 _ACEOF
21615 if { (ac_try="$ac_cpp conftest.$ac_ext"
21616 case "(($ac_try" in
21617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21618   *) ac_try_echo=$ac_try;;
21619 esac
21620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21622   ac_status=$?
21623   grep -v '^ *+' conftest.er1 >conftest.err
21624   rm -f conftest.er1
21625   cat conftest.err >&5
21626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627   (exit $ac_status); } >/dev/null && {
21628          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21629          test ! -s conftest.err
21630        }; then
21631   ac_header_preproc=yes
21632 else
21633   echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.$ac_ext >&5
21635
21636   ac_header_preproc=no
21637 fi
21638
21639 rm -f conftest.err conftest.$ac_ext
21640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21641 echo "${ECHO_T}$ac_header_preproc" >&6; }
21642
21643 # So?  What about this header?
21644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21645   yes:no: )
21646     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21648     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21650     ac_header_preproc=yes
21651     ;;
21652   no:yes:* )
21653     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21655     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21656 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21657     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21659     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21660 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21663     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21665
21666     ;;
21667 esac
21668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21671   echo $ECHO_N "(cached) $ECHO_C" >&6
21672 else
21673   eval "$as_ac_Header=\$ac_header_preproc"
21674 fi
21675 ac_res=`eval echo '${'$as_ac_Header'}'`
21676                { echo "$as_me:$LINENO: result: $ac_res" >&5
21677 echo "${ECHO_T}$ac_res" >&6; }
21678
21679 fi
21680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21681   cat >>confdefs.h <<_ACEOF
21682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21683 _ACEOF
21684
21685 else
21686   OPENSSL_LIBS=
21687
21688 fi
21689
21690 done
21691
21692     if test "x$OPENSSL_LIBS" != "x"; then
21693         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21694 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
21695         cat >conftest.$ac_ext <<_ACEOF
21696 /* confdefs.h.  */
21697 _ACEOF
21698 cat confdefs.h >>conftest.$ac_ext
21699 cat >>conftest.$ac_ext <<_ACEOF
21700 /* end confdefs.h.  */
21701 #include <openssl/crypto.h>
21702              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21703              yes
21704              #endif
21705
21706 _ACEOF
21707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21708   $EGREP "yes" >/dev/null 2>&1; then
21709   goodssl="yes"
21710 fi
21711 rm -f conftest*
21712
21713         if test "x$goodssl" != "xyes"; then
21714             { echo "$as_me:$LINENO: result: no" >&5
21715 echo "${ECHO_T}no" >&6; }
21716             OPENSSL_LIBS=
21717         else
21718             { echo "$as_me:$LINENO: result: yes" >&5
21719 echo "${ECHO_T}yes" >&6; }
21720             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21721                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21722             else
21723                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21724             fi
21725         fi
21726     fi
21727     CPPFLAGS=$old_CPPFLAGS
21728 fi
21729
21730
21731 export OPENSSL_LIBS
21732
21733
21734 { echo "$as_me:$LINENO: checking for off_t" >&5
21735 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21736 if test "${ac_cv_type_off_t+set}" = set; then
21737   echo $ECHO_N "(cached) $ECHO_C" >&6
21738 else
21739   cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h.  */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h.  */
21745 $ac_includes_default
21746 typedef off_t ac__type_new_;
21747 int
21748 main ()
21749 {
21750 if ((ac__type_new_ *) 0)
21751   return 0;
21752 if (sizeof (ac__type_new_))
21753   return 0;
21754   ;
21755   return 0;
21756 }
21757 _ACEOF
21758 rm -f conftest.$ac_objext
21759 if { (ac_try="$ac_compile"
21760 case "(($ac_try" in
21761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21762   *) ac_try_echo=$ac_try;;
21763 esac
21764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21765   (eval "$ac_compile") 2>conftest.er1
21766   ac_status=$?
21767   grep -v '^ *+' conftest.er1 >conftest.err
21768   rm -f conftest.er1
21769   cat conftest.err >&5
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); } && {
21772          test -z "$ac_c_werror_flag" ||
21773          test ! -s conftest.err
21774        } && test -s conftest.$ac_objext; then
21775   ac_cv_type_off_t=yes
21776 else
21777   echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21779
21780         ac_cv_type_off_t=no
21781 fi
21782
21783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784 fi
21785 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21786 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21787 if test $ac_cv_type_off_t = yes; then
21788   :
21789 else
21790
21791 cat >>confdefs.h <<_ACEOF
21792 #define off_t long int
21793 _ACEOF
21794
21795 fi
21796
21797 { echo "$as_me:$LINENO: checking for pid_t" >&5
21798 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21799 if test "${ac_cv_type_pid_t+set}" = set; then
21800   echo $ECHO_N "(cached) $ECHO_C" >&6
21801 else
21802   cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h.  */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h.  */
21808 $ac_includes_default
21809 typedef pid_t ac__type_new_;
21810 int
21811 main ()
21812 {
21813 if ((ac__type_new_ *) 0)
21814   return 0;
21815 if (sizeof (ac__type_new_))
21816   return 0;
21817   ;
21818   return 0;
21819 }
21820 _ACEOF
21821 rm -f conftest.$ac_objext
21822 if { (ac_try="$ac_compile"
21823 case "(($ac_try" in
21824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825   *) ac_try_echo=$ac_try;;
21826 esac
21827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828   (eval "$ac_compile") 2>conftest.er1
21829   ac_status=$?
21830   grep -v '^ *+' conftest.er1 >conftest.err
21831   rm -f conftest.er1
21832   cat conftest.err >&5
21833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834   (exit $ac_status); } && {
21835          test -z "$ac_c_werror_flag" ||
21836          test ! -s conftest.err
21837        } && test -s conftest.$ac_objext; then
21838   ac_cv_type_pid_t=yes
21839 else
21840   echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21842
21843         ac_cv_type_pid_t=no
21844 fi
21845
21846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21847 fi
21848 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21849 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21850 if test $ac_cv_type_pid_t = yes; then
21851   :
21852 else
21853
21854 cat >>confdefs.h <<_ACEOF
21855 #define pid_t int
21856 _ACEOF
21857
21858 fi
21859
21860 { echo "$as_me:$LINENO: checking for size_t" >&5
21861 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21862 if test "${ac_cv_type_size_t+set}" = set; then
21863   echo $ECHO_N "(cached) $ECHO_C" >&6
21864 else
21865   cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871 $ac_includes_default
21872 typedef size_t ac__type_new_;
21873 int
21874 main ()
21875 {
21876 if ((ac__type_new_ *) 0)
21877   return 0;
21878 if (sizeof (ac__type_new_))
21879   return 0;
21880   ;
21881   return 0;
21882 }
21883 _ACEOF
21884 rm -f conftest.$ac_objext
21885 if { (ac_try="$ac_compile"
21886 case "(($ac_try" in
21887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888   *) ac_try_echo=$ac_try;;
21889 esac
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891   (eval "$ac_compile") 2>conftest.er1
21892   ac_status=$?
21893   grep -v '^ *+' conftest.er1 >conftest.err
21894   rm -f conftest.er1
21895   cat conftest.err >&5
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } && {
21898          test -z "$ac_c_werror_flag" ||
21899          test ! -s conftest.err
21900        } && test -s conftest.$ac_objext; then
21901   ac_cv_type_size_t=yes
21902 else
21903   echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21905
21906         ac_cv_type_size_t=no
21907 fi
21908
21909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21910 fi
21911 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21912 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21913 if test $ac_cv_type_size_t = yes; then
21914   :
21915 else
21916
21917 cat >>confdefs.h <<_ACEOF
21918 #define size_t unsigned int
21919 _ACEOF
21920
21921 fi
21922
21923 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21924 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21925 if test "${ac_cv_type_uid_t+set}" = set; then
21926   echo $ECHO_N "(cached) $ECHO_C" >&6
21927 else
21928   cat >conftest.$ac_ext <<_ACEOF
21929 /* confdefs.h.  */
21930 _ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h.  */
21934 #include <sys/types.h>
21935
21936 _ACEOF
21937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21938   $EGREP "uid_t" >/dev/null 2>&1; then
21939   ac_cv_type_uid_t=yes
21940 else
21941   ac_cv_type_uid_t=no
21942 fi
21943 rm -f conftest*
21944
21945 fi
21946 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21947 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21948 if test $ac_cv_type_uid_t = no; then
21949
21950 cat >>confdefs.h <<\_ACEOF
21951 #define uid_t int
21952 _ACEOF
21953
21954
21955 cat >>confdefs.h <<\_ACEOF
21956 #define gid_t int
21957 _ACEOF
21958
21959 fi
21960
21961
21962
21963   { echo "$as_me:$LINENO: checking for socklen_t" >&5
21964 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21965 if test "${ac_cv_type_socklen_t+set}" = set; then
21966   echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968    ac_cv_type_socklen_t=no
21969       cat >conftest.$ac_ext <<_ACEOF
21970 /* confdefs.h.  */
21971 _ACEOF
21972 cat confdefs.h >>conftest.$ac_ext
21973 cat >>conftest.$ac_ext <<_ACEOF
21974 /* end confdefs.h.  */
21975 #ifdef HAVE_SYS_TYPES_H
21976 #include <sys/types.h>
21977 #endif
21978 #ifdef HAVE_SYS_SOCKET_H
21979 #include <sys/socket.h>
21980 #endif
21981
21982 int
21983 main ()
21984 {
21985 socklen_t foo
21986   ;
21987   return 0;
21988 }
21989 _ACEOF
21990 rm -f conftest.$ac_objext
21991 if { (ac_try="$ac_compile"
21992 case "(($ac_try" in
21993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994   *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997   (eval "$ac_compile") 2>conftest.er1
21998   ac_status=$?
21999   grep -v '^ *+' conftest.er1 >conftest.err
22000   rm -f conftest.er1
22001   cat conftest.err >&5
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); } && {
22004          test -z "$ac_c_werror_flag" ||
22005          test ! -s conftest.err
22006        } && test -s conftest.$ac_objext; then
22007   ac_cv_type_socklen_t=yes
22008 else
22009   echo "$as_me: failed program was:" >&5
22010 sed 's/^/| /' conftest.$ac_ext >&5
22011
22012
22013 fi
22014
22015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22016
22017
22018 fi
22019 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22020 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22021
22022   if test "$ac_cv_type_socklen_t" != "yes"; then
22023          cat >>confdefs.h <<\_ACEOF
22024 #define socklen_t int
22025 _ACEOF
22026
22027   fi
22028
22029
22030
22031   { echo "$as_me:$LINENO: checking for uint8_t" >&5
22032 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22033 if test "${ac_cv_type_uint8_t+set}" = set; then
22034   echo $ECHO_N "(cached) $ECHO_C" >&6
22035 else
22036    ac_cv_type_uint8_t=no
22037       cat >conftest.$ac_ext <<_ACEOF
22038 /* confdefs.h.  */
22039 _ACEOF
22040 cat confdefs.h >>conftest.$ac_ext
22041 cat >>conftest.$ac_ext <<_ACEOF
22042 /* end confdefs.h.  */
22043 #ifdef HAVE_INTTYPES_H
22044 #include <inttypes.h>
22045 #endif
22046 #ifdef HAVE_STDINT_H
22047 #include <stdint.h>
22048 #endif
22049
22050 int
22051 main ()
22052 {
22053 uint8_t foo
22054   ;
22055   return 0;
22056 }
22057 _ACEOF
22058 rm -f conftest.$ac_objext
22059 if { (ac_try="$ac_compile"
22060 case "(($ac_try" in
22061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062   *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065   (eval "$ac_compile") 2>conftest.er1
22066   ac_status=$?
22067   grep -v '^ *+' conftest.er1 >conftest.err
22068   rm -f conftest.er1
22069   cat conftest.err >&5
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); } && {
22072          test -z "$ac_c_werror_flag" ||
22073          test ! -s conftest.err
22074        } && test -s conftest.$ac_objext; then
22075   ac_cv_type_uint8_t=yes
22076 else
22077   echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22079
22080
22081 fi
22082
22083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22084
22085
22086 fi
22087 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22088 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22089
22090   if test "$ac_cv_type_uint8_t" != "yes"; then
22091          cat >>confdefs.h <<\_ACEOF
22092 #define uint8_t unsigned char
22093 _ACEOF
22094
22095   fi
22096
22097
22098
22099   { echo "$as_me:$LINENO: checking for uint16_t" >&5
22100 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22101 if test "${ac_cv_type_uint16_t+set}" = set; then
22102   echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22104    ac_cv_type_uint16_t=no
22105       cat >conftest.$ac_ext <<_ACEOF
22106 /* confdefs.h.  */
22107 _ACEOF
22108 cat confdefs.h >>conftest.$ac_ext
22109 cat >>conftest.$ac_ext <<_ACEOF
22110 /* end confdefs.h.  */
22111 #ifdef HAVE_INTTYPES_H
22112 #include <inttypes.h>
22113 #endif
22114 #ifdef HAVE_STDINT_H
22115 #include <stdint.h>
22116 #endif
22117
22118 int
22119 main ()
22120 {
22121 uint16_t foo
22122   ;
22123   return 0;
22124 }
22125 _ACEOF
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130   *) ac_try_echo=$ac_try;;
22131 esac
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133   (eval "$ac_compile") 2>conftest.er1
22134   ac_status=$?
22135   grep -v '^ *+' conftest.er1 >conftest.err
22136   rm -f conftest.er1
22137   cat conftest.err >&5
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } && {
22140          test -z "$ac_c_werror_flag" ||
22141          test ! -s conftest.err
22142        } && test -s conftest.$ac_objext; then
22143   ac_cv_type_uint16_t=yes
22144 else
22145   echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148
22149 fi
22150
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152
22153
22154 fi
22155 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22156 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22157
22158   if test "$ac_cv_type_uint16_t" != "yes"; then
22159          cat >>confdefs.h <<\_ACEOF
22160 #define uint16_t unsigned short
22161 _ACEOF
22162
22163   fi
22164
22165
22166
22167   { echo "$as_me:$LINENO: checking for uint32_t" >&5
22168 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22169 if test "${ac_cv_type_uint32_t+set}" = set; then
22170   echo $ECHO_N "(cached) $ECHO_C" >&6
22171 else
22172    ac_cv_type_uint32_t=no
22173       cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h.  */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h.  */
22179 #ifdef HAVE_INTTYPES_H
22180 #include <inttypes.h>
22181 #endif
22182 #ifdef HAVE_STDINT_H
22183 #include <stdint.h>
22184 #endif
22185
22186 int
22187 main ()
22188 {
22189 uint32_t foo
22190   ;
22191   return 0;
22192 }
22193 _ACEOF
22194 rm -f conftest.$ac_objext
22195 if { (ac_try="$ac_compile"
22196 case "(($ac_try" in
22197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198   *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201   (eval "$ac_compile") 2>conftest.er1
22202   ac_status=$?
22203   grep -v '^ *+' conftest.er1 >conftest.err
22204   rm -f conftest.er1
22205   cat conftest.err >&5
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); } && {
22208          test -z "$ac_c_werror_flag" ||
22209          test ! -s conftest.err
22210        } && test -s conftest.$ac_objext; then
22211   ac_cv_type_uint32_t=yes
22212 else
22213   echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22215
22216
22217 fi
22218
22219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22220
22221
22222 fi
22223 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22224 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22225
22226   if test "$ac_cv_type_uint32_t" != "yes"; then
22227          cat >>confdefs.h <<\_ACEOF
22228 #define uint32_t unsigned int
22229 _ACEOF
22230
22231   fi
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
22257
22258 for ac_func in \
22259         getopt_long \
22260         lockf \
22261         strsignal \
22262         sigaction \
22263         sigprocmask \
22264         pthread_sigmask \
22265         snprintf \
22266         vsnprintf \
22267         setsid \
22268         strncasecmp \
22269         strcasecmp \
22270         localtime_r \
22271         ctime_r \
22272         gmtime_r \
22273         strsep \
22274         inet_aton \
22275         inet_pton \
22276         inet_ntop \
22277         gethostname \
22278         setlinebuf \
22279         setvbuf \
22280         getusershell \
22281         initgroups \
22282         closefrom
22283
22284 do
22285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22289   echo $ECHO_N "(cached) $ECHO_C" >&6
22290 else
22291   cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h.  */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h.  */
22297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22299 #define $ac_func innocuous_$ac_func
22300
22301 /* System header to define __stub macros and hopefully few prototypes,
22302     which can conflict with char $ac_func (); below.
22303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22304     <limits.h> exists even on freestanding compilers.  */
22305
22306 #ifdef __STDC__
22307 # include <limits.h>
22308 #else
22309 # include <assert.h>
22310 #endif
22311
22312 #undef $ac_func
22313
22314 /* Override any GCC internal prototype to avoid an error.
22315    Use char because int might match the return type of a GCC
22316    builtin and then its argument prototype would still apply.  */
22317 #ifdef __cplusplus
22318 extern "C"
22319 #endif
22320 char $ac_func ();
22321 /* The GNU C library defines this for functions which it implements
22322     to always fail with ENOSYS.  Some functions are actually named
22323     something starting with __ and the normal name is an alias.  */
22324 #if defined __stub_$ac_func || defined __stub___$ac_func
22325 choke me
22326 #endif
22327
22328 int
22329 main ()
22330 {
22331 return $ac_func ();
22332   ;
22333   return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest.$ac_objext conftest$ac_exeext
22337 if { (ac_try="$ac_link"
22338 case "(($ac_try" in
22339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340   *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343   (eval "$ac_link") 2>conftest.er1
22344   ac_status=$?
22345   grep -v '^ *+' conftest.er1 >conftest.err
22346   rm -f conftest.er1
22347   cat conftest.err >&5
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); } && {
22350          test -z "$ac_c_werror_flag" ||
22351          test ! -s conftest.err
22352        } && test -s conftest$ac_exeext &&
22353        $as_test_x conftest$ac_exeext; then
22354   eval "$as_ac_var=yes"
22355 else
22356   echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22358
22359         eval "$as_ac_var=no"
22360 fi
22361
22362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22363       conftest$ac_exeext conftest.$ac_ext
22364 fi
22365 ac_res=`eval echo '${'$as_ac_var'}'`
22366                { echo "$as_me:$LINENO: result: $ac_res" >&5
22367 echo "${ECHO_T}$ac_res" >&6; }
22368 if test `eval echo '${'$as_ac_var'}'` = yes; then
22369   cat >>confdefs.h <<_ACEOF
22370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22371 _ACEOF
22372
22373 fi
22374 done
22375
22376 for ac_func in \
22377         crypt \
22378         strncasecmp \
22379         strcasecmp \
22380         inet_aton \
22381         gethostname \
22382         setlinebuf \
22383         getusershell \
22384         endusershell
22385
22386 do
22387 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22388 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
22389 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
22390   echo $ECHO_N "(cached) $ECHO_C" >&6
22391 else
22392   cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398
22399 #include <stdio.h>
22400 #include <string.h>
22401 #ifdef HAVE_UNISTD_H
22402 #include <unistd.h>
22403 #endif
22404 #ifdef HAVE_CRYPT_H
22405 #include <crypt.h>
22406 #endif
22407 #ifdef HAVE_ERRNO_H
22408 #include <errno.h>
22409 #endif
22410 #ifdef HAVE_RESOURCE_H
22411 #include <resource.h>
22412 #endif
22413 #ifdef HAVE_GETOPT_H
22414 #include <getopt.h>
22415 #endif
22416 #ifdef HAVE_MALLOC_H
22417 #include <malloc.h>
22418 #endif
22419 #ifdef HAVE_UTMP_H
22420 #include <utmp.h>
22421 #endif
22422 #ifdef HAVE_UTMPX_H
22423 #include <utmpx.h>
22424 #endif
22425 #ifdef HAVE_SYS_SELECT_H
22426 #include <sys/select.h>
22427 #endif
22428 #ifdef HAVE_DLFCN_H
22429 #include <dlfcn.h>
22430 #endif
22431 #ifdef HAVE_REGEX_H
22432 #include <regex.h>
22433 #endif
22434 #ifdef HAVE_SYSLOG_H
22435 #include <syslog.h>
22436 #endif
22437 #ifdef HAVE_INTTYPES_H
22438 #include <inttypes.h>
22439 #endif
22440 #ifdef HAVE_STDINT_H
22441 #include <stdint.h>
22442 #endif
22443 #ifdef HAVE_ARPA_INET_H
22444 #include <arpa/inet.h>
22445 #endif
22446
22447 int
22448 main ()
22449 {
22450 char *(*pfn) = (char *(*)) $ac_func
22451   ;
22452   return 0;
22453 }
22454 _ACEOF
22455 rm -f conftest.$ac_objext
22456 if { (ac_try="$ac_compile"
22457 case "(($ac_try" in
22458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459   *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462   (eval "$ac_compile") 2>conftest.er1
22463   ac_status=$?
22464   grep -v '^ *+' conftest.er1 >conftest.err
22465   rm -f conftest.er1
22466   cat conftest.err >&5
22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468   (exit $ac_status); } && {
22469          test -z "$ac_c_werror_flag" ||
22470          test ! -s conftest.err
22471        } && test -s conftest.$ac_objext; then
22472   eval "radius_cv_decl_needed_$ac_func=no"
22473 else
22474   echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22476
22477         eval "radius_cv_decl_needed_$ac_func=yes"
22478 fi
22479
22480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22481 fi
22482
22483 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22484   { echo "$as_me:$LINENO: result: yes" >&5
22485 echo "${ECHO_T}yes" >&6; }
22486   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22487   cat >>confdefs.h <<_ACEOF
22488 #define $radius_tr_decl 1
22489 _ACEOF
22490
22491 else
22492   { echo "$as_me:$LINENO: result: no" >&5
22493 echo "${ECHO_T}no" >&6; }
22494 fi
22495
22496 done
22497
22498
22499 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22500 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22501 if test "${ac_cv_type_signal+set}" = set; then
22502   echo $ECHO_N "(cached) $ECHO_C" >&6
22503 else
22504   cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h.  */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h.  */
22510 #include <sys/types.h>
22511 #include <signal.h>
22512
22513 int
22514 main ()
22515 {
22516 return *(signal (0, 0)) (0) == 1;
22517   ;
22518   return 0;
22519 }
22520 _ACEOF
22521 rm -f conftest.$ac_objext
22522 if { (ac_try="$ac_compile"
22523 case "(($ac_try" in
22524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22525   *) ac_try_echo=$ac_try;;
22526 esac
22527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22528   (eval "$ac_compile") 2>conftest.er1
22529   ac_status=$?
22530   grep -v '^ *+' conftest.er1 >conftest.err
22531   rm -f conftest.er1
22532   cat conftest.err >&5
22533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534   (exit $ac_status); } && {
22535          test -z "$ac_c_werror_flag" ||
22536          test ! -s conftest.err
22537        } && test -s conftest.$ac_objext; then
22538   ac_cv_type_signal=int
22539 else
22540   echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543         ac_cv_type_signal=void
22544 fi
22545
22546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22547 fi
22548 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22549 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22550
22551 cat >>confdefs.h <<_ACEOF
22552 #define RETSIGTYPE $ac_cv_type_signal
22553 _ACEOF
22554
22555
22556
22557 if test "x$ac_cv_header_utmpx_h" = "xyes"
22558 then
22559
22560   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22561 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
22562
22563
22564   cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h.  */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h.  */
22570
22571 #include <utmpx.h>
22572 #ifndef offsetof
22573 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22574 #endif
22575
22576 int
22577 main ()
22578 {
22579  int foo = offsetof(struct utmpx, ut_xtime)
22580   ;
22581   return 0;
22582 }
22583 _ACEOF
22584 rm -f conftest.$ac_objext
22585 if { (ac_try="$ac_compile"
22586 case "(($ac_try" in
22587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588   *) ac_try_echo=$ac_try;;
22589 esac
22590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591   (eval "$ac_compile") 2>conftest.er1
22592   ac_status=$?
22593   grep -v '^ *+' conftest.er1 >conftest.err
22594   rm -f conftest.er1
22595   cat conftest.err >&5
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); } && {
22598          test -z "$ac_c_werror_flag" ||
22599          test ! -s conftest.err
22600        } && test -s conftest.$ac_objext; then
22601   has_element=" "
22602 else
22603   echo "$as_me: failed program was:" >&5
22604 sed 's/^/| /' conftest.$ac_ext >&5
22605
22606         has_element=
22607 fi
22608
22609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22610
22611   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22612   if test "x$has_element" != "x"; then
22613     { echo "$as_me:$LINENO: result: yes" >&5
22614 echo "${ECHO_T}yes" >&6; }
22615     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22616   else
22617     { echo "$as_me:$LINENO: result: no" >&5
22618 echo "${ECHO_T}no" >&6; }
22619     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22620  fi
22621
22622  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22623  then
22624    cat >>confdefs.h <<\_ACEOF
22625 #define ut_xtime ut_tv.tv_sec
22626 _ACEOF
22627
22628  fi
22629 fi
22630
22631
22632   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22633 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
22634
22635
22636   cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h.  */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h.  */
22642
22643 #include <netinet/in.h>
22644 #ifndef offsetof
22645 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22646 #endif
22647
22648 int
22649 main ()
22650 {
22651  int foo = offsetof(struct in_pktinfo, ipi_addr)
22652   ;
22653   return 0;
22654 }
22655 _ACEOF
22656 rm -f conftest.$ac_objext
22657 if { (ac_try="$ac_compile"
22658 case "(($ac_try" in
22659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660   *) ac_try_echo=$ac_try;;
22661 esac
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663   (eval "$ac_compile") 2>conftest.er1
22664   ac_status=$?
22665   grep -v '^ *+' conftest.er1 >conftest.err
22666   rm -f conftest.er1
22667   cat conftest.err >&5
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); } && {
22670          test -z "$ac_c_werror_flag" ||
22671          test ! -s conftest.err
22672        } && test -s conftest.$ac_objext; then
22673   has_element=" "
22674 else
22675   echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22677
22678         has_element=
22679 fi
22680
22681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22682
22683   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22684   if test "x$has_element" != "x"; then
22685     { echo "$as_me:$LINENO: result: yes" >&5
22686 echo "${ECHO_T}yes" >&6; }
22687     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22688   else
22689     { echo "$as_me:$LINENO: result: no" >&5
22690 echo "${ECHO_T}no" >&6; }
22691     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22692  fi
22693
22694 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22695 then
22696         cat >>confdefs.h <<\_ACEOF
22697 #define HAVE_IP_PKTINFO 1
22698 _ACEOF
22699
22700 fi
22701
22702
22703 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22704 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22705 if test "${ac_cv_c_const+set}" = set; then
22706   echo $ECHO_N "(cached) $ECHO_C" >&6
22707 else
22708   cat >conftest.$ac_ext <<_ACEOF
22709 /* confdefs.h.  */
22710 _ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h.  */
22714
22715 int
22716 main ()
22717 {
22718 /* FIXME: Include the comments suggested by Paul. */
22719 #ifndef __cplusplus
22720   /* Ultrix mips cc rejects this.  */
22721   typedef int charset[2];
22722   const charset cs;
22723   /* SunOS 4.1.1 cc rejects this.  */
22724   char const *const *pcpcc;
22725   char **ppc;
22726   /* NEC SVR4.0.2 mips cc rejects this.  */
22727   struct point {int x, y;};
22728   static struct point const zero = {0,0};
22729   /* AIX XL C 1.02.0.0 rejects this.
22730      It does not let you subtract one const X* pointer from another in
22731      an arm of an if-expression whose if-part is not a constant
22732      expression */
22733   const char *g = "string";
22734   pcpcc = &g + (g ? g-g : 0);
22735   /* HPUX 7.0 cc rejects these. */
22736   ++pcpcc;
22737   ppc = (char**) pcpcc;
22738   pcpcc = (char const *const *) ppc;
22739   { /* SCO 3.2v4 cc rejects this.  */
22740     char *t;
22741     char const *s = 0 ? (char *) 0 : (char const *) 0;
22742
22743     *t++ = 0;
22744     if (s) return 0;
22745   }
22746   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22747     int x[] = {25, 17};
22748     const int *foo = &x[0];
22749     ++foo;
22750   }
22751   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22752     typedef const int *iptr;
22753     iptr p = 0;
22754     ++p;
22755   }
22756   { /* AIX XL C 1.02.0.0 rejects this saying
22757        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22758     struct s { int j; const int *ap[3]; };
22759     struct s *b; b->j = 5;
22760   }
22761   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22762     const int foo = 10;
22763     if (!foo) return 0;
22764   }
22765   return !cs[0] && !zero.x;
22766 #endif
22767
22768   ;
22769   return 0;
22770 }
22771 _ACEOF
22772 rm -f conftest.$ac_objext
22773 if { (ac_try="$ac_compile"
22774 case "(($ac_try" in
22775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776   *) ac_try_echo=$ac_try;;
22777 esac
22778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22779   (eval "$ac_compile") 2>conftest.er1
22780   ac_status=$?
22781   grep -v '^ *+' conftest.er1 >conftest.err
22782   rm -f conftest.er1
22783   cat conftest.err >&5
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); } && {
22786          test -z "$ac_c_werror_flag" ||
22787          test ! -s conftest.err
22788        } && test -s conftest.$ac_objext; then
22789   ac_cv_c_const=yes
22790 else
22791   echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794         ac_cv_c_const=no
22795 fi
22796
22797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22798 fi
22799 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22800 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22801 if test $ac_cv_c_const = no; then
22802
22803 cat >>confdefs.h <<\_ACEOF
22804 #define const
22805 _ACEOF
22806
22807 fi
22808
22809
22810 { echo "$as_me:$LINENO: checking type of OS" >&5
22811 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
22812 OS=`uname -s`
22813 { echo "$as_me:$LINENO: result: $OS" >&5
22814 echo "${ECHO_T}$OS" >&6; }
22815 if test "$OS" = "OS/2"; then
22816         LIBPREFIX=
22817 else
22818         LIBPREFIX=lib
22819 fi
22820
22821
22822 if test "x$GCC" = "xyes"; then
22823     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22824 fi
22825
22826 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22827 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
22828 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22829   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22830   CFLAGS="$CFLAGS $devflags"
22831   INSTALLSTRIP=""
22832   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
22833 echo "${ECHO_T}yes.  Using $devflags" >&6; }
22834 else
22835   devflags=""
22836   CFLAGS="$CFLAGS -DNDEBUG"
22837   INSTALLSTRIP="-s"
22838   { echo "$as_me:$LINENO: result: no." >&5
22839 echo "${ECHO_T}no." >&6; }
22840 fi
22841
22842
22843 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22844 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
22845 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22846   echo $ECHO_N "(cached) $ECHO_C" >&6
22847 else
22848   ac_check_lib_save_LIBS=$LIBS
22849 LIBS="-lcrypt  $LIBS"
22850 cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h.  */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h.  */
22856
22857 /* Override any GCC internal prototype to avoid an error.
22858    Use char because int might match the return type of a GCC
22859    builtin and then its argument prototype would still apply.  */
22860 #ifdef __cplusplus
22861 extern "C"
22862 #endif
22863 char crypt ();
22864 int
22865 main ()
22866 {
22867 return crypt ();
22868   ;
22869   return 0;
22870 }
22871 _ACEOF
22872 rm -f conftest.$ac_objext conftest$ac_exeext
22873 if { (ac_try="$ac_link"
22874 case "(($ac_try" in
22875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876   *) ac_try_echo=$ac_try;;
22877 esac
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879   (eval "$ac_link") 2>conftest.er1
22880   ac_status=$?
22881   grep -v '^ *+' conftest.er1 >conftest.err
22882   rm -f conftest.er1
22883   cat conftest.err >&5
22884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885   (exit $ac_status); } && {
22886          test -z "$ac_c_werror_flag" ||
22887          test ! -s conftest.err
22888        } && test -s conftest$ac_exeext &&
22889        $as_test_x conftest$ac_exeext; then
22890   ac_cv_lib_crypt_crypt=yes
22891 else
22892   echo "$as_me: failed program was:" >&5
22893 sed 's/^/| /' conftest.$ac_ext >&5
22894
22895         ac_cv_lib_crypt_crypt=no
22896 fi
22897
22898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22899       conftest$ac_exeext conftest.$ac_ext
22900 LIBS=$ac_check_lib_save_LIBS
22901 fi
22902 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22903 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
22904 if test $ac_cv_lib_crypt_crypt = yes; then
22905   CRYPTLIB="-lcrypt"
22906
22907 fi
22908
22909 if test "$CRYPTLIB" != ""; then
22910   cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_CRYPT 1
22912 _ACEOF
22913
22914 else
22915   { echo "$as_me:$LINENO: checking for crypt" >&5
22916 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
22917 if test "${ac_cv_func_crypt+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920   cat >conftest.$ac_ext <<_ACEOF
22921 /* confdefs.h.  */
22922 _ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h.  */
22926 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22928 #define crypt innocuous_crypt
22929
22930 /* System header to define __stub macros and hopefully few prototypes,
22931     which can conflict with char crypt (); below.
22932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22933     <limits.h> exists even on freestanding compilers.  */
22934
22935 #ifdef __STDC__
22936 # include <limits.h>
22937 #else
22938 # include <assert.h>
22939 #endif
22940
22941 #undef crypt
22942
22943 /* Override any GCC internal prototype to avoid an error.
22944    Use char because int might match the return type of a GCC
22945    builtin and then its argument prototype would still apply.  */
22946 #ifdef __cplusplus
22947 extern "C"
22948 #endif
22949 char crypt ();
22950 /* The GNU C library defines this for functions which it implements
22951     to always fail with ENOSYS.  Some functions are actually named
22952     something starting with __ and the normal name is an alias.  */
22953 #if defined __stub_crypt || defined __stub___crypt
22954 choke me
22955 #endif
22956
22957 int
22958 main ()
22959 {
22960 return crypt ();
22961   ;
22962   return 0;
22963 }
22964 _ACEOF
22965 rm -f conftest.$ac_objext conftest$ac_exeext
22966 if { (ac_try="$ac_link"
22967 case "(($ac_try" in
22968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969   *) ac_try_echo=$ac_try;;
22970 esac
22971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22972   (eval "$ac_link") 2>conftest.er1
22973   ac_status=$?
22974   grep -v '^ *+' conftest.er1 >conftest.err
22975   rm -f conftest.er1
22976   cat conftest.err >&5
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); } && {
22979          test -z "$ac_c_werror_flag" ||
22980          test ! -s conftest.err
22981        } && test -s conftest$ac_exeext &&
22982        $as_test_x conftest$ac_exeext; then
22983   ac_cv_func_crypt=yes
22984 else
22985   echo "$as_me: failed program was:" >&5
22986 sed 's/^/| /' conftest.$ac_ext >&5
22987
22988         ac_cv_func_crypt=no
22989 fi
22990
22991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22992       conftest$ac_exeext conftest.$ac_ext
22993 fi
22994 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22995 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
22996 if test $ac_cv_func_crypt = yes; then
22997   cat >>confdefs.h <<\_ACEOF
22998 #define HAVE_CRYPT 1
22999 _ACEOF
23000
23001 fi
23002
23003 fi
23004
23005 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23006 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
23007 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23008   echo $ECHO_N "(cached) $ECHO_C" >&6
23009 else
23010   ac_check_lib_save_LIBS=$LIBS
23011 LIBS="-lcipher  $LIBS"
23012 cat >conftest.$ac_ext <<_ACEOF
23013 /* confdefs.h.  */
23014 _ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h.  */
23018
23019 /* Override any GCC internal prototype to avoid an error.
23020    Use char because int might match the return type of a GCC
23021    builtin and then its argument prototype would still apply.  */
23022 #ifdef __cplusplus
23023 extern "C"
23024 #endif
23025 char setkey ();
23026 int
23027 main ()
23028 {
23029 return setkey ();
23030   ;
23031   return 0;
23032 }
23033 _ACEOF
23034 rm -f conftest.$ac_objext conftest$ac_exeext
23035 if { (ac_try="$ac_link"
23036 case "(($ac_try" in
23037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23038   *) ac_try_echo=$ac_try;;
23039 esac
23040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23041   (eval "$ac_link") 2>conftest.er1
23042   ac_status=$?
23043   grep -v '^ *+' conftest.er1 >conftest.err
23044   rm -f conftest.er1
23045   cat conftest.err >&5
23046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047   (exit $ac_status); } && {
23048          test -z "$ac_c_werror_flag" ||
23049          test ! -s conftest.err
23050        } && test -s conftest$ac_exeext &&
23051        $as_test_x conftest$ac_exeext; then
23052   ac_cv_lib_cipher_setkey=yes
23053 else
23054   echo "$as_me: failed program was:" >&5
23055 sed 's/^/| /' conftest.$ac_ext >&5
23056
23057         ac_cv_lib_cipher_setkey=no
23058 fi
23059
23060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23061       conftest$ac_exeext conftest.$ac_ext
23062 LIBS=$ac_check_lib_save_LIBS
23063 fi
23064 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23065 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
23066 if test $ac_cv_lib_cipher_setkey = yes; then
23067   CRYPTLIB="${CRYPTLIB} -lcipher"
23068
23069 fi
23070
23071
23072
23073 if test "x$WITH_SNMP" = "xyes"; then
23074
23075
23076
23077
23078 { echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23079 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6; }
23080
23081 cat >conftest.$ac_ext <<_ACEOF
23082 /* confdefs.h.  */
23083 _ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h.  */
23087
23088 #ifdef HAVE_SYS_TYPES_H
23089 #include <sys/types.h>
23090 #endif
23091 #ifdef HAVE_STDINT_H
23092 #include <stdint.h>
23093 #endif
23094 #ifdef HAVE_STDIO_H
23095 #include <stdio.h>
23096 #endif
23097 #ifdef HAVE_NETDB_H
23098 #include <netdb.h>
23099 #endif
23100 #ifdef HAVE_UNISTD_H
23101 #include <unistd.h>
23102 #endif
23103 #include <ucd-snmp/ucd-snmp-config.h>
23104 #include <ucd-snmp/asn1.h>
23105 #include <ucd-snmp/snmp.h>
23106 #include <ucd-snmp/snmp_impl.h>
23107 int
23108 main ()
23109 {
23110  int a = 1;
23111   ;
23112   return 0;
23113 }
23114 _ACEOF
23115 rm -f conftest.$ac_objext
23116 if { (ac_try="$ac_compile"
23117 case "(($ac_try" in
23118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119   *) ac_try_echo=$ac_try;;
23120 esac
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122   (eval "$ac_compile") 2>conftest.er1
23123   ac_status=$?
23124   grep -v '^ *+' conftest.er1 >conftest.err
23125   rm -f conftest.er1
23126   cat conftest.err >&5
23127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128   (exit $ac_status); } && {
23129          test -z "$ac_c_werror_flag" ||
23130          test ! -s conftest.err
23131        } && test -s conftest.$ac_objext; then
23132   SNMP_INCLUDE="";ucdsnmp=yes
23133 else
23134   echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23136
23137         ucdsnmp=
23138 fi
23139
23140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23141
23142 if test "x$ucdsnmp" = "x"; then
23143   old_CFLAGS="$CFLAGS"
23144   for try in /usr/include /usr/local/include $with_snmp_include_dir; do
23145     CFLAGS="$old_CFLAGS -I$try"
23146     cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h.  */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h.  */
23152
23153 #ifdef HAVE_SYS_TYPES_H
23154 #include <sys/types.h>
23155 #endif
23156 #ifdef HAVE_STDINT_H
23157 #include <stdint.h>
23158 #endif
23159 #ifdef HAVE_STDIO_H
23160 #include <stdio.h>
23161 #endif
23162 #ifdef HAVE_NETDB_H
23163 #include <netdb.h>
23164 #endif
23165 #ifdef HAVE_UNISTD_H
23166 #include <unistd.h>
23167 #endif
23168 #include <ucd-snmp/ucd-snmp-config.h>
23169 #include <ucd-snmp/asn1.h>
23170 #include <ucd-snmp/snmp.h>
23171 #include <ucd-snmp/snmp_impl.h>
23172 int
23173 main ()
23174 {
23175  int a = 1;
23176   ;
23177   return 0;
23178 }
23179 _ACEOF
23180 rm -f conftest.$ac_objext
23181 if { (ac_try="$ac_compile"
23182 case "(($ac_try" in
23183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184   *) ac_try_echo=$ac_try;;
23185 esac
23186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23187   (eval "$ac_compile") 2>conftest.er1
23188   ac_status=$?
23189   grep -v '^ *+' conftest.er1 >conftest.err
23190   rm -f conftest.er1
23191   cat conftest.err >&5
23192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193   (exit $ac_status); } && {
23194          test -z "$ac_c_werror_flag" ||
23195          test ! -s conftest.err
23196        } && test -s conftest.$ac_objext; then
23197   SNMP_INCLUDE="-I$try";ucdsnmp=yes
23198 else
23199   echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23201
23202         ucdsnmp=
23203 fi
23204
23205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23206     if test "x$ucdsnmp" != "x"; then
23207       break;
23208     fi
23209   done
23210   CFLAGS="$old_CFLAGS"
23211 fi
23212
23213 if test "x$ucdsnmp" = "x"; then
23214   old_CFLAGS="$CFLAGS"
23215   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23216     CFLAGS="$old_CFLAGS -I$try"
23217 cat >conftest.$ac_ext <<_ACEOF
23218 /* confdefs.h.  */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h.  */
23223
23224 #ifdef HAVE_SYS_TYPES_H
23225 #include <sys/types.h>
23226 #endif
23227 #ifdef HAVE_STDINT_H
23228 #include <stdint.h>
23229 #endif
23230 #ifdef HAVE_STDIO_H
23231 #include <stdio.h>
23232 #endif
23233 #ifdef HAVE_NETDB_H
23234 #include <netdb.h>
23235 #endif
23236 #ifdef HAVE_UNISTD_H
23237 #include <unistd.h>
23238 #endif
23239 #include <asn1.h>
23240 #include <snmp.h>
23241 #include <snmp_impl.h>
23242 int
23243 main ()
23244 {
23245  int a = 1;
23246   ;
23247   return 0;
23248 }
23249 _ACEOF
23250 rm -f conftest.$ac_objext
23251 if { (ac_try="$ac_compile"
23252 case "(($ac_try" in
23253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23254   *) ac_try_echo=$ac_try;;
23255 esac
23256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23257   (eval "$ac_compile") 2>conftest.er1
23258   ac_status=$?
23259   grep -v '^ *+' conftest.er1 >conftest.err
23260   rm -f conftest.er1
23261   cat conftest.err >&5
23262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263   (exit $ac_status); } && {
23264          test -z "$ac_c_werror_flag" ||
23265          test ! -s conftest.err
23266        } && test -s conftest.$ac_objext; then
23267   SNMP_INCLUDE="";ucdsnmp=no
23268 else
23269   echo "$as_me: failed program was:" >&5
23270 sed 's/^/| /' conftest.$ac_ext >&5
23271
23272         ucdsnmp=
23273 fi
23274
23275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23276     if test "x$ucdsnmp" != "x"; then
23277       break;
23278     fi
23279   done
23280   CFLAGS="$old_CFLAGS"
23281 fi
23282
23283 if test "x$ucdsnmp" = "x"; then
23284   old_CFLAGS="$CFLAGS"
23285   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
23286     CFLAGS="$old_CFLAGS -I$try"
23287     cat >conftest.$ac_ext <<_ACEOF
23288 /* confdefs.h.  */
23289 _ACEOF
23290 cat confdefs.h >>conftest.$ac_ext
23291 cat >>conftest.$ac_ext <<_ACEOF
23292 /* end confdefs.h.  */
23293
23294 #ifdef HAVE_SYS_TYPES_H
23295 #include <sys/types.h>
23296 #endif
23297 #ifdef HAVE_STDINT_H
23298 #include <stdint.h>
23299 #endif
23300 #ifdef HAVE_STDIO_H
23301 #include <stdio.h>
23302 #endif
23303 #ifdef HAVE_NETDB_H
23304 #include <netdb.h>
23305 #endif
23306 #ifdef HAVE_UNISTD_H
23307 #include <unistd.h>
23308 #endif
23309 #include <asn1.h>
23310 #include <snmp.h>
23311 #include <snmp_impl.h>
23312 int
23313 main ()
23314 {
23315  int a = 1;
23316   ;
23317   return 0;
23318 }
23319 _ACEOF
23320 rm -f conftest.$ac_objext
23321 if { (ac_try="$ac_compile"
23322 case "(($ac_try" in
23323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324   *) ac_try_echo=$ac_try;;
23325 esac
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327   (eval "$ac_compile") 2>conftest.er1
23328   ac_status=$?
23329   grep -v '^ *+' conftest.er1 >conftest.err
23330   rm -f conftest.er1
23331   cat conftest.err >&5
23332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333   (exit $ac_status); } && {
23334          test -z "$ac_c_werror_flag" ||
23335          test ! -s conftest.err
23336        } && test -s conftest.$ac_objext; then
23337   SNMP_INCLUDE="-I$try";ucdsnmp=no
23338 else
23339   echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23341
23342         ucdsnmp=
23343 fi
23344
23345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23346     if test "x$ucdsnmp" != "x"; then
23347       break;
23348     fi
23349   done
23350   CFLAGS="$old_CFLAGS"
23351 fi
23352
23353 if test "x$ucdsnmp" = "x"; then
23354   { echo "$as_me:$LINENO: result: no" >&5
23355 echo "${ECHO_T}no" >&6; }
23356 else
23357   if test "x$ucdsnmp" = "xyes"; then
23358     { echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23359 echo "${ECHO_T}(ucd-snmp)yes" >&6; }
23360     cat >>confdefs.h <<\_ACEOF
23361 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
23362 _ACEOF
23363
23364   else
23365     { echo "$as_me:$LINENO: result: yes" >&5
23366 echo "${ECHO_T}yes" >&6; }
23367     cat >>confdefs.h <<\_ACEOF
23368 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
23369 _ACEOF
23370
23371   fi
23372   { echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23373 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6; }
23374
23375   old_LIBS="$LIBS"
23376   LIBS="$old_LIBS -lsnmp"
23377   cat >conftest.$ac_ext <<_ACEOF
23378 /* confdefs.h.  */
23379 _ACEOF
23380 cat confdefs.h >>conftest.$ac_ext
23381 cat >>conftest.$ac_ext <<_ACEOF
23382 /* end confdefs.h.  */
23383 extern char snmp_build_var_op();
23384 int
23385 main ()
23386 {
23387  snmp_build_var_op()
23388   ;
23389   return 0;
23390 }
23391 _ACEOF
23392 rm -f conftest.$ac_objext conftest$ac_exeext
23393 if { (ac_try="$ac_link"
23394 case "(($ac_try" in
23395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396   *) ac_try_echo=$ac_try;;
23397 esac
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399   (eval "$ac_link") 2>conftest.er1
23400   ac_status=$?
23401   grep -v '^ *+' conftest.er1 >conftest.err
23402   rm -f conftest.er1
23403   cat conftest.err >&5
23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405   (exit $ac_status); } && {
23406          test -z "$ac_c_werror_flag" ||
23407          test ! -s conftest.err
23408        } && test -s conftest$ac_exeext &&
23409        $as_test_x conftest$ac_exeext; then
23410   SNMP_LIBS="-lsnmp"
23411 else
23412   echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415         SNMP_LIBS=
23416 fi
23417
23418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23419       conftest$ac_exeext conftest.$ac_ext
23420
23421   if test "x$SNMP_LIBS" = "x"; then
23422     for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23423       LIBS="$old_LIBS -L$try -lsnmp"
23424       cat >conftest.$ac_ext <<_ACEOF
23425 /* confdefs.h.  */
23426 _ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h.  */
23430 extern char snmp_build_var_op();
23431 int
23432 main ()
23433 {
23434  snmp_build_var_op()
23435   ;
23436   return 0;
23437 }
23438 _ACEOF
23439 rm -f conftest.$ac_objext conftest$ac_exeext
23440 if { (ac_try="$ac_link"
23441 case "(($ac_try" in
23442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23443   *) ac_try_echo=$ac_try;;
23444 esac
23445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23446   (eval "$ac_link") 2>conftest.er1
23447   ac_status=$?
23448   grep -v '^ *+' conftest.er1 >conftest.err
23449   rm -f conftest.er1
23450   cat conftest.err >&5
23451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452   (exit $ac_status); } && {
23453          test -z "$ac_c_werror_flag" ||
23454          test ! -s conftest.err
23455        } && test -s conftest$ac_exeext &&
23456        $as_test_x conftest$ac_exeext; then
23457   SNMP_LIBS="-L$try -lsnmp"
23458 else
23459   echo "$as_me: failed program was:" >&5
23460 sed 's/^/| /' conftest.$ac_ext >&5
23461
23462         SNMP_LIBS=
23463 fi
23464
23465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23466       conftest$ac_exeext conftest.$ac_ext
23467       if test "x$SNMP_LIBS" != "x"; then
23468         break;
23469       fi
23470       LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23471       cat >conftest.$ac_ext <<_ACEOF
23472 /* confdefs.h.  */
23473 _ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h.  */
23477 extern char snmp_build_var_op();
23478 int
23479 main ()
23480 {
23481  snmp_build_var_op()
23482   ;
23483   return 0;
23484 }
23485 _ACEOF
23486 rm -f conftest.$ac_objext conftest$ac_exeext
23487 if { (ac_try="$ac_link"
23488 case "(($ac_try" in
23489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23490   *) ac_try_echo=$ac_try;;
23491 esac
23492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23493   (eval "$ac_link") 2>conftest.er1
23494   ac_status=$?
23495   grep -v '^ *+' conftest.er1 >conftest.err
23496   rm -f conftest.er1
23497   cat conftest.err >&5
23498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499   (exit $ac_status); } && {
23500          test -z "$ac_c_werror_flag" ||
23501          test ! -s conftest.err
23502        } && test -s conftest$ac_exeext &&
23503        $as_test_x conftest$ac_exeext; then
23504   SNMP_LIBS="-L$try -lsnmp -lcrypto"
23505 else
23506   echo "$as_me: failed program was:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23508
23509         SNMP_LIBS=
23510 fi
23511
23512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23513       conftest$ac_exeext conftest.$ac_ext
23514       if test "x$SNMP_LIBS" != "x"; then
23515         break;
23516       fi
23517       LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23518       cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h.  */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h.  */
23524 extern char snmp_build_var_op();
23525 int
23526 main ()
23527 {
23528  snmp_build_var_op()
23529   ;
23530   return 0;
23531 }
23532 _ACEOF
23533 rm -f conftest.$ac_objext conftest$ac_exeext
23534 if { (ac_try="$ac_link"
23535 case "(($ac_try" in
23536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537   *) ac_try_echo=$ac_try;;
23538 esac
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540   (eval "$ac_link") 2>conftest.er1
23541   ac_status=$?
23542   grep -v '^ *+' conftest.er1 >conftest.err
23543   rm -f conftest.er1
23544   cat conftest.err >&5
23545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546   (exit $ac_status); } && {
23547          test -z "$ac_c_werror_flag" ||
23548          test ! -s conftest.err
23549        } && test -s conftest$ac_exeext &&
23550        $as_test_x conftest$ac_exeext; then
23551   SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23552 else
23553   echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23555
23556         SNMP_LIBS=
23557 fi
23558
23559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23560       conftest$ac_exeext conftest.$ac_ext
23561       if test "x$SNMP_LIBS" != "x"; then
23562         break;
23563       fi
23564     done
23565   fi
23566   LIBS="$old_LIBS"
23567
23568           CFLAGS="$old_CFLAGS"
23569   if test "x$SNMP_LIBS" = "x"; then
23570     { echo "$as_me:$LINENO: result: no" >&5
23571 echo "${ECHO_T}no" >&6; }
23572     SNMP_INCLUDE=
23573   else
23574     { echo "$as_me:$LINENO: result: yes" >&5
23575 echo "${ECHO_T}yes" >&6; }
23576     cat >>confdefs.h <<\_ACEOF
23577 #define WITH_SNMP 1
23578 _ACEOF
23579
23580     cat >>confdefs.h <<\_ACEOF
23581 #define HAVE_LIBSNMP 1
23582 _ACEOF
23583
23584   fi
23585 fi
23586
23587 fi
23588
23589 gethostbyaddrrstyle=""
23590 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23591 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
23592 case "$host" in
23593 *-freebsd*)
23594         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
23595 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
23596 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
23597   echo $ECHO_N "(cached) $ECHO_C" >&6
23598 else
23599   cat >conftest.$ac_ext <<_ACEOF
23600 /* confdefs.h.  */
23601 _ACEOF
23602 cat confdefs.h >>conftest.$ac_ext
23603 cat >>conftest.$ac_ext <<_ACEOF
23604 /* end confdefs.h.  */
23605
23606 #ifdef HAVE_NETDB_H
23607 #include <netdb.h>
23608 #endif
23609
23610
23611 int
23612 main ()
23613 {
23614 #ifndef gethostbyaddr_r
23615   (void) gethostbyaddr_r;
23616 #endif
23617
23618   ;
23619   return 0;
23620 }
23621 _ACEOF
23622 rm -f conftest.$ac_objext
23623 if { (ac_try="$ac_compile"
23624 case "(($ac_try" in
23625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23626   *) ac_try_echo=$ac_try;;
23627 esac
23628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23629   (eval "$ac_compile") 2>conftest.er1
23630   ac_status=$?
23631   grep -v '^ *+' conftest.er1 >conftest.err
23632   rm -f conftest.er1
23633   cat conftest.err >&5
23634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635   (exit $ac_status); } && {
23636          test -z "$ac_c_werror_flag" ||
23637          test ! -s conftest.err
23638        } && test -s conftest.$ac_objext; then
23639   ac_cv_have_decl_gethostbyaddr_r=yes
23640 else
23641   echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.$ac_ext >&5
23643
23644         ac_cv_have_decl_gethostbyaddr_r=no
23645 fi
23646
23647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 fi
23649 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
23650 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
23651 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
23652
23653 cat >>confdefs.h <<_ACEOF
23654 #define HAVE_DECL_GETHOSTBYADDR_R 1
23655 _ACEOF
23656
23657
23658 else
23659   cat >>confdefs.h <<_ACEOF
23660 #define HAVE_DECL_GETHOSTBYADDR_R 0
23661 _ACEOF
23662
23663
23664
23665 cat >>confdefs.h <<\_ACEOF
23666 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23667 _ACEOF
23668
23669                 gethostbyaddrrstyle=BSD
23670                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23671 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23672
23673 fi
23674
23675
23676         ;;
23677 esac
23678 if test "x$gethostbyaddrrstyle" = "x"; then
23679         cat >conftest.$ac_ext <<_ACEOF
23680 /* confdefs.h.  */
23681 _ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h.  */
23685
23686 #include <stdio.h>
23687 #include <netdb.h>
23688
23689 int
23690 main ()
23691 {
23692  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23693   ;
23694   return 0;
23695 }
23696 _ACEOF
23697 rm -f conftest.$ac_objext conftest$ac_exeext
23698 if { (ac_try="$ac_link"
23699 case "(($ac_try" in
23700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701   *) ac_try_echo=$ac_try;;
23702 esac
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704   (eval "$ac_link") 2>conftest.er1
23705   ac_status=$?
23706   grep -v '^ *+' conftest.er1 >conftest.err
23707   rm -f conftest.er1
23708   cat conftest.err >&5
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); } && {
23711          test -z "$ac_c_werror_flag" ||
23712          test ! -s conftest.err
23713        } && test -s conftest$ac_exeext &&
23714        $as_test_x conftest$ac_exeext; then
23715
23716         cat >>confdefs.h <<\_ACEOF
23717 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23718 _ACEOF
23719
23720         gethostbyaddrrstyle=GNU
23721
23722 else
23723   echo "$as_me: failed program was:" >&5
23724 sed 's/^/| /' conftest.$ac_ext >&5
23725
23726
23727 fi
23728
23729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23730       conftest$ac_exeext conftest.$ac_ext
23731 fi
23732 if test "x$gethostbyaddrrstyle" = "x"; then
23733         cat >conftest.$ac_ext <<_ACEOF
23734 /* confdefs.h.  */
23735 _ACEOF
23736 cat confdefs.h >>conftest.$ac_ext
23737 cat >>conftest.$ac_ext <<_ACEOF
23738 /* end confdefs.h.  */
23739
23740 #include <stdio.h>
23741 #include <netdb.h>
23742
23743 int
23744 main ()
23745 {
23746  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23747   ;
23748   return 0;
23749 }
23750 _ACEOF
23751 rm -f conftest.$ac_objext conftest$ac_exeext
23752 if { (ac_try="$ac_link"
23753 case "(($ac_try" in
23754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23755   *) ac_try_echo=$ac_try;;
23756 esac
23757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23758   (eval "$ac_link") 2>conftest.er1
23759   ac_status=$?
23760   grep -v '^ *+' conftest.er1 >conftest.err
23761   rm -f conftest.er1
23762   cat conftest.err >&5
23763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764   (exit $ac_status); } && {
23765          test -z "$ac_c_werror_flag" ||
23766          test ! -s conftest.err
23767        } && test -s conftest$ac_exeext &&
23768        $as_test_x conftest$ac_exeext; then
23769
23770                 cat >>confdefs.h <<\_ACEOF
23771 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23772 _ACEOF
23773
23774                 gethostbyaddrrstyle=SYSV
23775
23776 else
23777   echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23779
23780
23781 fi
23782
23783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23784       conftest$ac_exeext conftest.$ac_ext
23785 fi
23786 if test "x$gethostbyaddrrstyle" = "x"; then
23787         cat >conftest.$ac_ext <<_ACEOF
23788 /* confdefs.h.  */
23789 _ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h.  */
23793
23794 #include <stdio.h>
23795 #include <netdb.h>
23796
23797 int
23798 main ()
23799 {
23800  gethostbyaddr(NULL, 0, 0)
23801   ;
23802   return 0;
23803 }
23804 _ACEOF
23805 rm -f conftest.$ac_objext conftest$ac_exeext
23806 if { (ac_try="$ac_link"
23807 case "(($ac_try" in
23808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23809   *) ac_try_echo=$ac_try;;
23810 esac
23811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23812   (eval "$ac_link") 2>conftest.er1
23813   ac_status=$?
23814   grep -v '^ *+' conftest.er1 >conftest.err
23815   rm -f conftest.er1
23816   cat conftest.err >&5
23817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818   (exit $ac_status); } && {
23819          test -z "$ac_c_werror_flag" ||
23820          test ! -s conftest.err
23821        } && test -s conftest$ac_exeext &&
23822        $as_test_x conftest$ac_exeext; then
23823
23824                 cat >>confdefs.h <<\_ACEOF
23825 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23826 _ACEOF
23827
23828                 gethostbyaddrrstyle=BSD
23829
23830 else
23831   echo "$as_me: failed program was:" >&5
23832 sed 's/^/| /' conftest.$ac_ext >&5
23833
23834
23835 fi
23836
23837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23838       conftest$ac_exeext conftest.$ac_ext
23839 fi
23840
23841 if test "x$gethostbyaddrrstyle" = "x"; then
23842         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
23843 echo "${ECHO_T}none!  It must not exist, here." >&6; }
23844 else
23845         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23846 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
23847 fi
23848
23849 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23850         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23851 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23852 fi
23853
23854 gethostbynamerstyle=""
23855 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23856 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
23857 cat >conftest.$ac_ext <<_ACEOF
23858 /* confdefs.h.  */
23859 _ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h.  */
23863
23864 #include <stdio.h>
23865 #include <netdb.h>
23866
23867 int
23868 main ()
23869 {
23870  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23871   ;
23872   return 0;
23873 }
23874 _ACEOF
23875 rm -f conftest.$ac_objext conftest$ac_exeext
23876 if { (ac_try="$ac_link"
23877 case "(($ac_try" in
23878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23879   *) ac_try_echo=$ac_try;;
23880 esac
23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882   (eval "$ac_link") 2>conftest.er1
23883   ac_status=$?
23884   grep -v '^ *+' conftest.er1 >conftest.err
23885   rm -f conftest.er1
23886   cat conftest.err >&5
23887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23888   (exit $ac_status); } && {
23889          test -z "$ac_c_werror_flag" ||
23890          test ! -s conftest.err
23891        } && test -s conftest$ac_exeext &&
23892        $as_test_x conftest$ac_exeext; then
23893
23894         cat >>confdefs.h <<\_ACEOF
23895 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23896 _ACEOF
23897
23898         gethostbynamerstyle=GNU
23899
23900 else
23901   echo "$as_me: failed program was:" >&5
23902 sed 's/^/| /' conftest.$ac_ext >&5
23903
23904
23905 fi
23906
23907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23908       conftest$ac_exeext conftest.$ac_ext
23909 if test "x$gethostbynamerstyle" = "x"; then
23910         cat >conftest.$ac_ext <<_ACEOF
23911 /* confdefs.h.  */
23912 _ACEOF
23913 cat confdefs.h >>conftest.$ac_ext
23914 cat >>conftest.$ac_ext <<_ACEOF
23915 /* end confdefs.h.  */
23916
23917 #include <stdio.h>
23918 #include <netdb.h>
23919
23920 int
23921 main ()
23922 {
23923  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23924   ;
23925   return 0;
23926 }
23927 _ACEOF
23928 rm -f conftest.$ac_objext conftest$ac_exeext
23929 if { (ac_try="$ac_link"
23930 case "(($ac_try" in
23931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932   *) ac_try_echo=$ac_try;;
23933 esac
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935   (eval "$ac_link") 2>conftest.er1
23936   ac_status=$?
23937   grep -v '^ *+' conftest.er1 >conftest.err
23938   rm -f conftest.er1
23939   cat conftest.err >&5
23940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941   (exit $ac_status); } && {
23942          test -z "$ac_c_werror_flag" ||
23943          test ! -s conftest.err
23944        } && test -s conftest$ac_exeext &&
23945        $as_test_x conftest$ac_exeext; then
23946
23947                 cat >>confdefs.h <<\_ACEOF
23948 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23949 _ACEOF
23950
23951                 gethostbynamerstyle=SYSV
23952
23953 else
23954   echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23956
23957
23958 fi
23959
23960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23961       conftest$ac_exeext conftest.$ac_ext
23962 fi
23963 if test "x$gethostbynamerstyle" = "x"; then
23964         cat >conftest.$ac_ext <<_ACEOF
23965 /* confdefs.h.  */
23966 _ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h.  */
23970
23971 #include <stdio.h>
23972 #include <netdb.h>
23973
23974 int
23975 main ()
23976 {
23977  gethostbyname(NULL)
23978   ;
23979   return 0;
23980 }
23981 _ACEOF
23982 rm -f conftest.$ac_objext conftest$ac_exeext
23983 if { (ac_try="$ac_link"
23984 case "(($ac_try" in
23985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23986   *) ac_try_echo=$ac_try;;
23987 esac
23988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23989   (eval "$ac_link") 2>conftest.er1
23990   ac_status=$?
23991   grep -v '^ *+' conftest.er1 >conftest.err
23992   rm -f conftest.er1
23993   cat conftest.err >&5
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); } && {
23996          test -z "$ac_c_werror_flag" ||
23997          test ! -s conftest.err
23998        } && test -s conftest$ac_exeext &&
23999        $as_test_x conftest$ac_exeext; then
24000
24001                 cat >>confdefs.h <<\_ACEOF
24002 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24003 _ACEOF
24004
24005                 gethostbynamerstyle=BSD
24006
24007 else
24008   echo "$as_me: failed program was:" >&5
24009 sed 's/^/| /' conftest.$ac_ext >&5
24010
24011
24012 fi
24013
24014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24015       conftest$ac_exeext conftest.$ac_ext
24016 fi
24017
24018 if test "x$gethostbynamerstyle" = "x"; then
24019         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24020 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24021 else
24022         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24023 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
24024 fi
24025
24026 if test "x$gethostbynamerstyle" = "xBSD"; then
24027         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24028 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24029 fi
24030
24031 ctimerstyle=""
24032 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24033 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
24034 cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h.  */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h.  */
24040
24041 #include <time.h>
24042
24043 int
24044 main ()
24045 {
24046  ctime_r(NULL, NULL, 0)
24047   ;
24048   return 0;
24049 }
24050 _ACEOF
24051 rm -f conftest.$ac_objext conftest$ac_exeext
24052 if { (ac_try="$ac_link"
24053 case "(($ac_try" in
24054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055   *) ac_try_echo=$ac_try;;
24056 esac
24057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24058   (eval "$ac_link") 2>conftest.er1
24059   ac_status=$?
24060   grep -v '^ *+' conftest.er1 >conftest.err
24061   rm -f conftest.er1
24062   cat conftest.err >&5
24063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064   (exit $ac_status); } && {
24065          test -z "$ac_c_werror_flag" ||
24066          test ! -s conftest.err
24067        } && test -s conftest$ac_exeext &&
24068        $as_test_x conftest$ac_exeext; then
24069
24070         cat >>confdefs.h <<\_ACEOF
24071 #define CTIMERSTYLE SOLARISSTYLE
24072 _ACEOF
24073
24074         ctimerstyle="SOLARIS"
24075
24076 else
24077   echo "$as_me: failed program was:" >&5
24078 sed 's/^/| /' conftest.$ac_ext >&5
24079
24080
24081 fi
24082
24083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24084       conftest$ac_exeext conftest.$ac_ext
24085 if test "x$ctimerstyle" = "x"; then
24086         cat >conftest.$ac_ext <<_ACEOF
24087 /* confdefs.h.  */
24088 _ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h.  */
24092
24093 #include <time.h>
24094
24095 int
24096 main ()
24097 {
24098  ctime_r(NULL, NULL)
24099   ;
24100   return 0;
24101 }
24102 _ACEOF
24103 rm -f conftest.$ac_objext conftest$ac_exeext
24104 if { (ac_try="$ac_link"
24105 case "(($ac_try" in
24106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24107   *) ac_try_echo=$ac_try;;
24108 esac
24109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24110   (eval "$ac_link") 2>conftest.er1
24111   ac_status=$?
24112   grep -v '^ *+' conftest.er1 >conftest.err
24113   rm -f conftest.er1
24114   cat conftest.err >&5
24115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); } && {
24117          test -z "$ac_c_werror_flag" ||
24118          test ! -s conftest.err
24119        } && test -s conftest$ac_exeext &&
24120        $as_test_x conftest$ac_exeext; then
24121
24122                 cat >>confdefs.h <<\_ACEOF
24123 #define CTIMERSTYLE POSIXSTYLE
24124 _ACEOF
24125
24126                 ctimerstyle="POSIX"
24127
24128 else
24129   echo "$as_me: failed program was:" >&5
24130 sed 's/^/| /' conftest.$ac_ext >&5
24131
24132
24133 fi
24134
24135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24136       conftest$ac_exeext conftest.$ac_ext
24137 fi
24138
24139 if test "x$ctimerstyle" = "x"; then
24140         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24141 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24142 else
24143         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24144 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
24145 fi
24146
24147
24148 if test x"$rad_enable_largefiles" = xyes ; then
24149     { echo "$as_me:$LINENO: checking for largefile linkage" >&5
24150 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6; }
24151     case "$host" in
24152     *-aix4.01*)
24153         { echo "$as_me:$LINENO: result: no" >&5
24154 echo "${ECHO_T}no" >&6; }
24155         { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
24156 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
24157    { (exit 1); exit 1; }; }
24158         ;;
24159     *-aix4*)
24160         { echo "$as_me:$LINENO: result: ok" >&5
24161 echo "${ECHO_T}ok" >&6; }
24162         LFS_CFLAGS="-D_LARGE_FILES"
24163         LFS_LDFLAGS=""
24164         LFS_LIBS=""
24165         ;;
24166     *-hpux*)
24167         { echo "$as_me:$LINENO: result: ok" >&5
24168 echo "${ECHO_T}ok" >&6; }
24169         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24170         LFS_LDFLAGS=""
24171         LFS_LIBS=""
24172         ;;
24173     *-irix*)
24174         { echo "$as_me:$LINENO: result: no" >&5
24175 echo "${ECHO_T}no" >&6; }
24176         { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
24177 echo "$as_me: error: Large files not supported on this platform" >&2;}
24178    { (exit 1); exit 1; }; }
24179         ;;
24180     *-linux*)
24181         { echo "$as_me:$LINENO: result: maybe" >&5
24182 echo "${ECHO_T}maybe" >&6; }
24183         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24184         LFS_LDFLAGS=""
24185         LFS_LIBS=""
24186
24187 cat >>confdefs.h <<\_ACEOF
24188 #define _GNU_SOURCE 1
24189 _ACEOF
24190
24191         ;;
24192     *-solaris*)
24193         { echo "$as_me:$LINENO: result: ok" >&5
24194 echo "${ECHO_T}ok" >&6; }
24195         # Extract the first word of "getconf", so it can be a program name with args.
24196 set dummy getconf; ac_word=$2
24197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24199 if test "${ac_cv_path_GETCONF+set}" = set; then
24200   echo $ECHO_N "(cached) $ECHO_C" >&6
24201 else
24202   case $GETCONF in
24203   [\\/]* | ?:[\\/]*)
24204   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
24205   ;;
24206   *)
24207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24208 for as_dir in $PATH
24209 do
24210   IFS=$as_save_IFS
24211   test -z "$as_dir" && as_dir=.
24212   for ac_exec_ext in '' $ac_executable_extensions; do
24213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24214     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
24215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24216     break 2
24217   fi
24218 done
24219 done
24220 IFS=$as_save_IFS
24221
24222   ;;
24223 esac
24224 fi
24225 GETCONF=$ac_cv_path_GETCONF
24226 if test -n "$GETCONF"; then
24227   { echo "$as_me:$LINENO: result: $GETCONF" >&5
24228 echo "${ECHO_T}$GETCONF" >&6; }
24229 else
24230   { echo "$as_me:$LINENO: result: no" >&5
24231 echo "${ECHO_T}no" >&6; }
24232 fi
24233
24234
24235         if test -z "$GETCONF" ; then
24236             { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
24237 echo "$as_me: error: getconf required to configure large file support" >&2;}
24238    { (exit 1); exit 1; }; }
24239         fi
24240         LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
24241         LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
24242         LFS_LIBS=`$GETCONF LFS_LIBS`
24243         ;;
24244     *)
24245         { echo "$as_me:$LINENO: result: maybe" >&5
24246 echo "${ECHO_T}maybe" >&6; }
24247         LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24248         LFS_LDFLAGS=""
24249         LFS_LIBS=""
24250         ;;
24251     esac
24252
24253
24254
24255 fi
24256
24257 HOSTINFO=$host
24258
24259
24260
24261 top_builddir=`pwd`
24262 export top_builddir
24263 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24264 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
24265
24266
24267
24268
24269
24270 mysubdirs=
24271 if test "x$EXPERIMENTAL" = "xyes"; then
24272   bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24273     mysubdirs=`echo $bar`
24274 else
24275         for bar in `cat src/modules/stable`; do
24276     if test -f src/modules/$bar/configure; then
24277       mysubdirs="$mysubdirs src/modules/$bar"
24278     fi
24279   done
24280 fi
24281
24282 if test "x$EXPERIMENTAL" = "xyes"; then
24283   for foo in `ls -1 src/modules | grep rlm_`; do
24284     MODULES="$MODULES $foo"
24285   done
24286 else
24287             for foo in `cat src/modules/stable`; do
24288     MODULES="$MODULES $foo"
24289    done
24290 fi
24291
24292 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24293
24294
24295
24296
24297
24298
24299
24300 USE_SHARED_LIBS=$enable_shared
24301
24302 USE_STATIC_LIBS=$enable_static
24303
24304
24305
24306
24307
24308 export CFLAGS LIBS
24309
24310 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"
24311
24312 cat >confcache <<\_ACEOF
24313 # This file is a shell script that caches the results of configure
24314 # tests run on this system so they can be shared between configure
24315 # scripts and configure runs, see configure's option --config-cache.
24316 # It is not useful on other systems.  If it contains results you don't
24317 # want to keep, you may remove or edit it.
24318 #
24319 # config.status only pays attention to the cache file if you give it
24320 # the --recheck option to rerun configure.
24321 #
24322 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24323 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24324 # following values.
24325
24326 _ACEOF
24327
24328 # The following way of writing the cache mishandles newlines in values,
24329 # but we know of no workaround that is simple, portable, and efficient.
24330 # So, we kill variables containing newlines.
24331 # Ultrix sh set writes to stderr and can't be redirected directly,
24332 # and sets the high bit in the cache file unless we assign to the vars.
24333 (
24334   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24335     eval ac_val=\$$ac_var
24336     case $ac_val in #(
24337     *${as_nl}*)
24338       case $ac_var in #(
24339       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24340 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24341       esac
24342       case $ac_var in #(
24343       _ | IFS | as_nl) ;; #(
24344       *) $as_unset $ac_var ;;
24345       esac ;;
24346     esac
24347   done
24348
24349   (set) 2>&1 |
24350     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24351     *${as_nl}ac_space=\ *)
24352       # `set' does not quote correctly, so add quotes (double-quote
24353       # substitution turns \\\\ into \\, and sed turns \\ into \).
24354       sed -n \
24355         "s/'/'\\\\''/g;
24356           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24357       ;; #(
24358     *)
24359       # `set' quotes correctly as required by POSIX, so do not add quotes.
24360       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24361       ;;
24362     esac |
24363     sort
24364 ) |
24365   sed '
24366      /^ac_cv_env_/b end
24367      t clear
24368      :clear
24369      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24370      t end
24371      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24372      :end' >>confcache
24373 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24374   if test -w "$cache_file"; then
24375     test "x$cache_file" != "x/dev/null" &&
24376       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24377 echo "$as_me: updating cache $cache_file" >&6;}
24378     cat confcache >$cache_file
24379   else
24380     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24381 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24382   fi
24383 fi
24384 rm -f confcache
24385
24386 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24387 # Let make expand exec_prefix.
24388 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24389
24390 DEFS=-DHAVE_CONFIG_H
24391
24392 ac_libobjs=
24393 ac_ltlibobjs=
24394 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24395   # 1. Remove the extension, and $U if already installed.
24396   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24397   ac_i=`echo "$ac_i" | sed "$ac_script"`
24398   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24399   #    will be set to the directory where LIBOBJS objects are built.
24400   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24401   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24402 done
24403 LIBOBJS=$ac_libobjs
24404
24405 LTLIBOBJS=$ac_ltlibobjs
24406
24407
24408
24409 : ${CONFIG_STATUS=./config.status}
24410 ac_clean_files_save=$ac_clean_files
24411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24412 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24413 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24414 cat >$CONFIG_STATUS <<_ACEOF
24415 #! $SHELL
24416 # Generated by $as_me.
24417 # Run this file to recreate the current configuration.
24418 # Compiler output produced by configure, useful for debugging
24419 # configure, is in config.log if it exists.
24420
24421 debug=false
24422 ac_cs_recheck=false
24423 ac_cs_silent=false
24424 SHELL=\${CONFIG_SHELL-$SHELL}
24425 _ACEOF
24426
24427 cat >>$CONFIG_STATUS <<\_ACEOF
24428 ## --------------------- ##
24429 ## M4sh Initialization.  ##
24430 ## --------------------- ##
24431
24432 # Be more Bourne compatible
24433 DUALCASE=1; export DUALCASE # for MKS sh
24434 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24435   emulate sh
24436   NULLCMD=:
24437   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24438   # is contrary to our usage.  Disable this feature.
24439   alias -g '${1+"$@"}'='"$@"'
24440   setopt NO_GLOB_SUBST
24441 else
24442   case `(set -o) 2>/dev/null` in
24443   *posix*) set -o posix ;;
24444 esac
24445
24446 fi
24447
24448
24449
24450
24451 # PATH needs CR
24452 # Avoid depending upon Character Ranges.
24453 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24454 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24455 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24456 as_cr_digits='0123456789'
24457 as_cr_alnum=$as_cr_Letters$as_cr_digits
24458
24459 # The user is always right.
24460 if test "${PATH_SEPARATOR+set}" != set; then
24461   echo "#! /bin/sh" >conf$$.sh
24462   echo  "exit 0"   >>conf$$.sh
24463   chmod +x conf$$.sh
24464   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24465     PATH_SEPARATOR=';'
24466   else
24467     PATH_SEPARATOR=:
24468   fi
24469   rm -f conf$$.sh
24470 fi
24471
24472 # Support unset when possible.
24473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24474   as_unset=unset
24475 else
24476   as_unset=false
24477 fi
24478
24479
24480 # IFS
24481 # We need space, tab and new line, in precisely that order.  Quoting is
24482 # there to prevent editors from complaining about space-tab.
24483 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24484 # splitting by setting IFS to empty value.)
24485 as_nl='
24486 '
24487 IFS=" ""        $as_nl"
24488
24489 # Find who we are.  Look in the path if we contain no directory separator.
24490 case $0 in
24491   *[\\/]* ) as_myself=$0 ;;
24492   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24493 for as_dir in $PATH
24494 do
24495   IFS=$as_save_IFS
24496   test -z "$as_dir" && as_dir=.
24497   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24498 done
24499 IFS=$as_save_IFS
24500
24501      ;;
24502 esac
24503 # We did not find ourselves, most probably we were run as `sh COMMAND'
24504 # in which case we are not to be found in the path.
24505 if test "x$as_myself" = x; then
24506   as_myself=$0
24507 fi
24508 if test ! -f "$as_myself"; then
24509   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24510   { (exit 1); exit 1; }
24511 fi
24512
24513 # Work around bugs in pre-3.0 UWIN ksh.
24514 for as_var in ENV MAIL MAILPATH
24515 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24516 done
24517 PS1='$ '
24518 PS2='> '
24519 PS4='+ '
24520
24521 # NLS nuisances.
24522 for as_var in \
24523   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24524   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24525   LC_TELEPHONE LC_TIME
24526 do
24527   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24528     eval $as_var=C; export $as_var
24529   else
24530     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24531   fi
24532 done
24533
24534 # Required to use basename.
24535 if expr a : '\(a\)' >/dev/null 2>&1 &&
24536    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24537   as_expr=expr
24538 else
24539   as_expr=false
24540 fi
24541
24542 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24543   as_basename=basename
24544 else
24545   as_basename=false
24546 fi
24547
24548
24549 # Name of the executable.
24550 as_me=`$as_basename -- "$0" ||
24551 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24552          X"$0" : 'X\(//\)$' \| \
24553          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24554 echo X/"$0" |
24555     sed '/^.*\/\([^/][^/]*\)\/*$/{
24556             s//\1/
24557             q
24558           }
24559           /^X\/\(\/\/\)$/{
24560             s//\1/
24561             q
24562           }
24563           /^X\/\(\/\).*/{
24564             s//\1/
24565             q
24566           }
24567           s/.*/./; q'`
24568
24569 # CDPATH.
24570 $as_unset CDPATH
24571
24572
24573
24574   as_lineno_1=$LINENO
24575   as_lineno_2=$LINENO
24576   test "x$as_lineno_1" != "x$as_lineno_2" &&
24577   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24578
24579   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24580   # uniformly replaced by the line number.  The first 'sed' inserts a
24581   # line-number line after each line using $LINENO; the second 'sed'
24582   # does the real work.  The second script uses 'N' to pair each
24583   # line-number line with the line containing $LINENO, and appends
24584   # trailing '-' during substitution so that $LINENO is not a special
24585   # case at line end.
24586   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24587   # scripts with optimization help from Paolo Bonzini.  Blame Lee
24588   # E. McMahon (1931-1989) for sed's syntax.  :-)
24589   sed -n '
24590     p
24591     /[$]LINENO/=
24592   ' <$as_myself |
24593     sed '
24594       s/[$]LINENO.*/&-/
24595       t lineno
24596       b
24597       :lineno
24598       N
24599       :loop
24600       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24601       t loop
24602       s/-\n.*//
24603     ' >$as_me.lineno &&
24604   chmod +x "$as_me.lineno" ||
24605     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24606    { (exit 1); exit 1; }; }
24607
24608   # Don't try to exec as it changes $[0], causing all sort of problems
24609   # (the dirname of $[0] is not the place where we might find the
24610   # original and so on.  Autoconf is especially sensitive to this).
24611   . "./$as_me.lineno"
24612   # Exit status is that of the last command.
24613   exit
24614 }
24615
24616
24617 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24618   as_dirname=dirname
24619 else
24620   as_dirname=false
24621 fi
24622
24623 ECHO_C= ECHO_N= ECHO_T=
24624 case `echo -n x` in
24625 -n*)
24626   case `echo 'x\c'` in
24627   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
24628   *)   ECHO_C='\c';;
24629   esac;;
24630 *)
24631   ECHO_N='-n';;
24632 esac
24633
24634 if expr a : '\(a\)' >/dev/null 2>&1 &&
24635    test "X`expr 00001 : '.*\(...\)'`" = X001; then
24636   as_expr=expr
24637 else
24638   as_expr=false
24639 fi
24640
24641 rm -f conf$$ conf$$.exe conf$$.file
24642 if test -d conf$$.dir; then
24643   rm -f conf$$.dir/conf$$.file
24644 else
24645   rm -f conf$$.dir
24646   mkdir conf$$.dir
24647 fi
24648 echo >conf$$.file
24649 if ln -s conf$$.file conf$$ 2>/dev/null; then
24650   as_ln_s='ln -s'
24651   # ... but there are two gotchas:
24652   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24653   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24654   # In both cases, we have to default to `cp -p'.
24655   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24656     as_ln_s='cp -p'
24657 elif ln conf$$.file conf$$ 2>/dev/null; then
24658   as_ln_s=ln
24659 else
24660   as_ln_s='cp -p'
24661 fi
24662 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24663 rmdir conf$$.dir 2>/dev/null
24664
24665 if mkdir -p . 2>/dev/null; then
24666   as_mkdir_p=:
24667 else
24668   test -d ./-p && rmdir ./-p
24669   as_mkdir_p=false
24670 fi
24671
24672 if test -x / >/dev/null 2>&1; then
24673   as_test_x='test -x'
24674 else
24675   if ls -dL / >/dev/null 2>&1; then
24676     as_ls_L_option=L
24677   else
24678     as_ls_L_option=
24679   fi
24680   as_test_x='
24681     eval sh -c '\''
24682       if test -d "$1"; then
24683         test -d "$1/.";
24684       else
24685         case $1 in
24686         -*)set "./$1";;
24687         esac;
24688         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24689         ???[sx]*):;;*)false;;esac;fi
24690     '\'' sh
24691   '
24692 fi
24693 as_executable_p=$as_test_x
24694
24695 # Sed expression to map a string onto a valid CPP name.
24696 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24697
24698 # Sed expression to map a string onto a valid variable name.
24699 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24700
24701
24702 exec 6>&1
24703
24704 # Save the log message, to keep $[0] and so on meaningful, and to
24705 # report actual input values of CONFIG_FILES etc. instead of their
24706 # values after options handling.
24707 ac_log="
24708 This file was extended by $as_me, which was
24709 generated by GNU Autoconf 2.61.  Invocation command line was
24710
24711   CONFIG_FILES    = $CONFIG_FILES
24712   CONFIG_HEADERS  = $CONFIG_HEADERS
24713   CONFIG_LINKS    = $CONFIG_LINKS
24714   CONFIG_COMMANDS = $CONFIG_COMMANDS
24715   $ $0 $@
24716
24717 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24718 "
24719
24720 _ACEOF
24721
24722 cat >>$CONFIG_STATUS <<_ACEOF
24723 # Files that config.status was made for.
24724 config_files="$ac_config_files"
24725 config_headers="$ac_config_headers"
24726
24727 _ACEOF
24728
24729 cat >>$CONFIG_STATUS <<\_ACEOF
24730 ac_cs_usage="\
24731 \`$as_me' instantiates files from templates according to the
24732 current configuration.
24733
24734 Usage: $0 [OPTIONS] [FILE]...
24735
24736   -h, --help       print this help, then exit
24737   -V, --version    print version number and configuration settings, then exit
24738   -q, --quiet      do not print progress messages
24739   -d, --debug      don't remove temporary files
24740       --recheck    update $as_me by reconfiguring in the same conditions
24741   --file=FILE[:TEMPLATE]
24742                    instantiate the configuration file FILE
24743   --header=FILE[:TEMPLATE]
24744                    instantiate the configuration header FILE
24745
24746 Configuration files:
24747 $config_files
24748
24749 Configuration headers:
24750 $config_headers
24751
24752 Report bugs to <bug-autoconf@gnu.org>."
24753
24754 _ACEOF
24755 cat >>$CONFIG_STATUS <<_ACEOF
24756 ac_cs_version="\\
24757 config.status
24758 configured by $0, generated by GNU Autoconf 2.61,
24759   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24760
24761 Copyright (C) 2006 Free Software Foundation, Inc.
24762 This config.status script is free software; the Free Software Foundation
24763 gives unlimited permission to copy, distribute and modify it."
24764
24765 ac_pwd='$ac_pwd'
24766 srcdir='$srcdir'
24767 _ACEOF
24768
24769 cat >>$CONFIG_STATUS <<\_ACEOF
24770 # If no file are specified by the user, then we need to provide default
24771 # value.  By we need to know if files were specified by the user.
24772 ac_need_defaults=:
24773 while test $# != 0
24774 do
24775   case $1 in
24776   --*=*)
24777     ac_option=`expr "X$1" : 'X\([^=]*\)='`
24778     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24779     ac_shift=:
24780     ;;
24781   *)
24782     ac_option=$1
24783     ac_optarg=$2
24784     ac_shift=shift
24785     ;;
24786   esac
24787
24788   case $ac_option in
24789   # Handling of the options.
24790   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24791     ac_cs_recheck=: ;;
24792   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24793     echo "$ac_cs_version"; exit ;;
24794   --debug | --debu | --deb | --de | --d | -d )
24795     debug=: ;;
24796   --file | --fil | --fi | --f )
24797     $ac_shift
24798     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24799     ac_need_defaults=false;;
24800   --header | --heade | --head | --hea )
24801     $ac_shift
24802     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24803     ac_need_defaults=false;;
24804   --he | --h)
24805     # Conflict between --help and --header
24806     { echo "$as_me: error: ambiguous option: $1
24807 Try \`$0 --help' for more information." >&2
24808    { (exit 1); exit 1; }; };;
24809   --help | --hel | -h )
24810     echo "$ac_cs_usage"; exit ;;
24811   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24812   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24813     ac_cs_silent=: ;;
24814
24815   # This is an error.
24816   -*) { echo "$as_me: error: unrecognized option: $1
24817 Try \`$0 --help' for more information." >&2
24818    { (exit 1); exit 1; }; } ;;
24819
24820   *) ac_config_targets="$ac_config_targets $1"
24821      ac_need_defaults=false ;;
24822
24823   esac
24824   shift
24825 done
24826
24827 ac_configure_extra_args=
24828
24829 if $ac_cs_silent; then
24830   exec 6>/dev/null
24831   ac_configure_extra_args="$ac_configure_extra_args --silent"
24832 fi
24833
24834 _ACEOF
24835 cat >>$CONFIG_STATUS <<_ACEOF
24836 if \$ac_cs_recheck; then
24837   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24838   CONFIG_SHELL=$SHELL
24839   export CONFIG_SHELL
24840   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24841 fi
24842
24843 _ACEOF
24844 cat >>$CONFIG_STATUS <<\_ACEOF
24845 exec 5>>config.log
24846 {
24847   echo
24848   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24849 ## Running $as_me. ##
24850 _ASBOX
24851   echo "$ac_log"
24852 } >&5
24853
24854 _ACEOF
24855 cat >>$CONFIG_STATUS <<_ACEOF
24856 _ACEOF
24857
24858 cat >>$CONFIG_STATUS <<\_ACEOF
24859
24860 # Handling of arguments.
24861 for ac_config_target in $ac_config_targets
24862 do
24863   case $ac_config_target in
24864     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24865     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24866     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24867     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24868     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24869     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24870     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24871     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24872     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24873     "./scripts/check-radiusd-config") CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24874     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24875     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24876     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24877     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24878     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24879
24880   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24881 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24882    { (exit 1); exit 1; }; };;
24883   esac
24884 done
24885
24886
24887 # If the user did not use the arguments to specify the items to instantiate,
24888 # then the envvar interface is used.  Set only those that are not.
24889 # We use the long form for the default assignment because of an extremely
24890 # bizarre bug on SunOS 4.1.3.
24891 if $ac_need_defaults; then
24892   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24893   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24894 fi
24895
24896 # Have a temporary directory for convenience.  Make it in the build tree
24897 # simply because there is no reason against having it here, and in addition,
24898 # creating and moving files from /tmp can sometimes cause problems.
24899 # Hook for its removal unless debugging.
24900 # Note that there is a small window in which the directory will not be cleaned:
24901 # after its creation but before its name has been assigned to `$tmp'.
24902 $debug ||
24903 {
24904   tmp=
24905   trap 'exit_status=$?
24906   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24907 ' 0
24908   trap '{ (exit 1); exit 1; }' 1 2 13 15
24909 }
24910 # Create a (secure) tmp directory for tmp files.
24911
24912 {
24913   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24914   test -n "$tmp" && test -d "$tmp"
24915 }  ||
24916 {
24917   tmp=./conf$$-$RANDOM
24918   (umask 077 && mkdir "$tmp")
24919 } ||
24920 {
24921    echo "$me: cannot create a temporary directory in ." >&2
24922    { (exit 1); exit 1; }
24923 }
24924
24925 #
24926 # Set up the sed scripts for CONFIG_FILES section.
24927 #
24928
24929 # No need to generate the scripts if there are no CONFIG_FILES.
24930 # This happens for instance when ./config.status config.h
24931 if test -n "$CONFIG_FILES"; then
24932
24933 _ACEOF
24934
24935
24936
24937 ac_delim='%!_!# '
24938 for ac_last_try in false false false false false :; do
24939   cat >conf$$subs.sed <<_ACEOF
24940 SHELL!$SHELL$ac_delim
24941 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24942 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24943 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24944 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24945 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24946 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24947 exec_prefix!$exec_prefix$ac_delim
24948 prefix!$prefix$ac_delim
24949 program_transform_name!$program_transform_name$ac_delim
24950 bindir!$bindir$ac_delim
24951 sbindir!$sbindir$ac_delim
24952 libexecdir!$libexecdir$ac_delim
24953 datarootdir!$datarootdir$ac_delim
24954 datadir!$datadir$ac_delim
24955 sysconfdir!$sysconfdir$ac_delim
24956 sharedstatedir!$sharedstatedir$ac_delim
24957 localstatedir!$localstatedir$ac_delim
24958 includedir!$includedir$ac_delim
24959 oldincludedir!$oldincludedir$ac_delim
24960 docdir!$docdir$ac_delim
24961 infodir!$infodir$ac_delim
24962 htmldir!$htmldir$ac_delim
24963 dvidir!$dvidir$ac_delim
24964 pdfdir!$pdfdir$ac_delim
24965 psdir!$psdir$ac_delim
24966 libdir!$libdir$ac_delim
24967 localedir!$localedir$ac_delim
24968 mandir!$mandir$ac_delim
24969 DEFS!$DEFS$ac_delim
24970 ECHO_C!$ECHO_C$ac_delim
24971 ECHO_N!$ECHO_N$ac_delim
24972 ECHO_T!$ECHO_T$ac_delim
24973 LIBS!$LIBS$ac_delim
24974 build_alias!$build_alias$ac_delim
24975 host_alias!$host_alias$ac_delim
24976 target_alias!$target_alias$ac_delim
24977 CC!$CC$ac_delim
24978 CFLAGS!$CFLAGS$ac_delim
24979 LDFLAGS!$LDFLAGS$ac_delim
24980 CPPFLAGS!$CPPFLAGS$ac_delim
24981 ac_ct_CC!$ac_ct_CC$ac_delim
24982 EXEEXT!$EXEEXT$ac_delim
24983 OBJEXT!$OBJEXT$ac_delim
24984 CPP!$CPP$ac_delim
24985 GREP!$GREP$ac_delim
24986 EGREP!$EGREP$ac_delim
24987 RANLIB!$RANLIB$ac_delim
24988 abs_top_builddir!$abs_top_builddir$ac_delim
24989 GMAKE!$GMAKE$ac_delim
24990 MAKE!$MAKE$ac_delim
24991 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
24992 LIBTOOL!$LIBTOOL$ac_delim
24993 build!$build$ac_delim
24994 build_cpu!$build_cpu$ac_delim
24995 build_vendor!$build_vendor$ac_delim
24996 build_os!$build_os$ac_delim
24997 host!$host$ac_delim
24998 host_cpu!$host_cpu$ac_delim
24999 host_vendor!$host_vendor$ac_delim
25000 host_os!$host_os$ac_delim
25001 LN_S!$LN_S$ac_delim
25002 ECHO!$ECHO$ac_delim
25003 AR!$AR$ac_delim
25004 STRIP!$STRIP$ac_delim
25005 CXX!$CXX$ac_delim
25006 CXXFLAGS!$CXXFLAGS$ac_delim
25007 ac_ct_CXX!$ac_ct_CXX$ac_delim
25008 CXXCPP!$CXXCPP$ac_delim
25009 F77!$F77$ac_delim
25010 FFLAGS!$FFLAGS$ac_delim
25011 ac_ct_F77!$ac_ct_F77$ac_delim
25012 logdir!$logdir$ac_delim
25013 radacctdir!$radacctdir$ac_delim
25014 raddbdir!$raddbdir$ac_delim
25015 PERL!$PERL$ac_delim
25016 SNMPGET!$SNMPGET$ac_delim
25017 SNMPWALK!$SNMPWALK$ac_delim
25018 RUSERS!$RUSERS$ac_delim
25019 ACLOCAL!$ACLOCAL$ac_delim
25020 AUTOCONF!$AUTOCONF$ac_delim
25021 AUTOHEADER!$AUTOHEADER$ac_delim
25022 LOCATE!$LOCATE$ac_delim
25023 DIRNAME!$DIRNAME$ac_delim
25024 REGEX!$REGEX$ac_delim
25025 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
25026 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
25027 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
25028 LIBPREFIX!$LIBPREFIX$ac_delim
25029 CRYPTLIB!$CRYPTLIB$ac_delim
25030 SNMP_LIBS!$SNMP_LIBS$ac_delim
25031 SNMP_INCLUDE!$SNMP_INCLUDE$ac_delim
25032 GETCONF!$GETCONF$ac_delim
25033 LFS_CFLAGS!$LFS_CFLAGS$ac_delim
25034 LFS_LDFLAGS!$LFS_LDFLAGS$ac_delim
25035 LFS_LIBS!$LFS_LIBS$ac_delim
25036 HOSTINFO!$HOSTINFO$ac_delim
25037 _ACEOF
25038
25039   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25040     break
25041   elif $ac_last_try; then
25042     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25043 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25044    { (exit 1); exit 1; }; }
25045   else
25046     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25047   fi
25048 done
25049
25050 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25051 if test -n "$ac_eof"; then
25052   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25053   ac_eof=`expr $ac_eof + 1`
25054 fi
25055
25056 cat >>$CONFIG_STATUS <<_ACEOF
25057 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25059 _ACEOF
25060 sed '
25061 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25062 s/^/s,@/; s/!/@,|#_!!_#|/
25063 :n
25064 t n
25065 s/'"$ac_delim"'$/,g/; t
25066 s/$/\\/; p
25067 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25068 ' >>$CONFIG_STATUS <conf$$subs.sed
25069 rm -f conf$$subs.sed
25070 cat >>$CONFIG_STATUS <<_ACEOF
25071 CEOF$ac_eof
25072 _ACEOF
25073
25074
25075 ac_delim='%!_!# '
25076 for ac_last_try in false false false false false :; do
25077   cat >conf$$subs.sed <<_ACEOF
25078 LIBLTDL!$LIBLTDL$ac_delim
25079 INCLTDL!$INCLTDL$ac_delim
25080 subdirs!$subdirs$ac_delim
25081 MODULES!$MODULES$ac_delim
25082 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
25083 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
25084 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
25085 STATIC_MODULES!$STATIC_MODULES$ac_delim
25086 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
25087 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
25088 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
25089 LIBOBJS!$LIBOBJS$ac_delim
25090 LTLIBOBJS!$LTLIBOBJS$ac_delim
25091 _ACEOF
25092
25093   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
25094     break
25095   elif $ac_last_try; then
25096     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25097 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25098    { (exit 1); exit 1; }; }
25099   else
25100     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25101   fi
25102 done
25103
25104 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25105 if test -n "$ac_eof"; then
25106   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25107   ac_eof=`expr $ac_eof + 1`
25108 fi
25109
25110 cat >>$CONFIG_STATUS <<_ACEOF
25111 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25113 _ACEOF
25114 sed '
25115 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25116 s/^/s,@/; s/!/@,|#_!!_#|/
25117 :n
25118 t n
25119 s/'"$ac_delim"'$/,g/; t
25120 s/$/\\/; p
25121 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25122 ' >>$CONFIG_STATUS <conf$$subs.sed
25123 rm -f conf$$subs.sed
25124 cat >>$CONFIG_STATUS <<_ACEOF
25125 :end
25126 s/|#_!!_#|//g
25127 CEOF$ac_eof
25128 _ACEOF
25129
25130
25131 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25132 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25133 # trailing colons and then remove the whole line if VPATH becomes empty
25134 # (actually we leave an empty line to preserve line numbers).
25135 if test "x$srcdir" = x.; then
25136   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25137 s/:*\$(srcdir):*/:/
25138 s/:*\${srcdir}:*/:/
25139 s/:*@srcdir@:*/:/
25140 s/^\([^=]*=[     ]*\):*/\1/
25141 s/:*$//
25142 s/^[^=]*=[       ]*$//
25143 }'
25144 fi
25145
25146 cat >>$CONFIG_STATUS <<\_ACEOF
25147 fi # test -n "$CONFIG_FILES"
25148
25149
25150 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
25151 do
25152   case $ac_tag in
25153   :[FHLC]) ac_mode=$ac_tag; continue;;
25154   esac
25155   case $ac_mode$ac_tag in
25156   :[FHL]*:*);;
25157   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25158 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25159    { (exit 1); exit 1; }; };;
25160   :[FH]-) ac_tag=-:-;;
25161   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25162   esac
25163   ac_save_IFS=$IFS
25164   IFS=:
25165   set x $ac_tag
25166   IFS=$ac_save_IFS
25167   shift
25168   ac_file=$1
25169   shift
25170
25171   case $ac_mode in
25172   :L) ac_source=$1;;
25173   :[FH])
25174     ac_file_inputs=
25175     for ac_f
25176     do
25177       case $ac_f in
25178       -) ac_f="$tmp/stdin";;
25179       *) # Look for the file first in the build tree, then in the source tree
25180          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25181          # because $ac_f cannot contain `:'.
25182          test -f "$ac_f" ||
25183            case $ac_f in
25184            [\\/$]*) false;;
25185            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25186            esac ||
25187            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25188 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25189    { (exit 1); exit 1; }; };;
25190       esac
25191       ac_file_inputs="$ac_file_inputs $ac_f"
25192     done
25193
25194     # Let's still pretend it is `configure' which instantiates (i.e., don't
25195     # use $as_me), people would be surprised to read:
25196     #    /* config.h.  Generated by config.status.  */
25197     configure_input="Generated from "`IFS=:
25198           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25199     if test x"$ac_file" != x-; then
25200       configure_input="$ac_file.  $configure_input"
25201       { echo "$as_me:$LINENO: creating $ac_file" >&5
25202 echo "$as_me: creating $ac_file" >&6;}
25203     fi
25204
25205     case $ac_tag in
25206     *:-:* | *:-) cat >"$tmp/stdin";;
25207     esac
25208     ;;
25209   esac
25210
25211   ac_dir=`$as_dirname -- "$ac_file" ||
25212 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25213          X"$ac_file" : 'X\(//\)[^/]' \| \
25214          X"$ac_file" : 'X\(//\)$' \| \
25215          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25216 echo X"$ac_file" |
25217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25218             s//\1/
25219             q
25220           }
25221           /^X\(\/\/\)[^/].*/{
25222             s//\1/
25223             q
25224           }
25225           /^X\(\/\/\)$/{
25226             s//\1/
25227             q
25228           }
25229           /^X\(\/\).*/{
25230             s//\1/
25231             q
25232           }
25233           s/.*/./; q'`
25234   { as_dir="$ac_dir"
25235   case $as_dir in #(
25236   -*) as_dir=./$as_dir;;
25237   esac
25238   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25239     as_dirs=
25240     while :; do
25241       case $as_dir in #(
25242       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25243       *) as_qdir=$as_dir;;
25244       esac
25245       as_dirs="'$as_qdir' $as_dirs"
25246       as_dir=`$as_dirname -- "$as_dir" ||
25247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25248          X"$as_dir" : 'X\(//\)[^/]' \| \
25249          X"$as_dir" : 'X\(//\)$' \| \
25250          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25251 echo X"$as_dir" |
25252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25253             s//\1/
25254             q
25255           }
25256           /^X\(\/\/\)[^/].*/{
25257             s//\1/
25258             q
25259           }
25260           /^X\(\/\/\)$/{
25261             s//\1/
25262             q
25263           }
25264           /^X\(\/\).*/{
25265             s//\1/
25266             q
25267           }
25268           s/.*/./; q'`
25269       test -d "$as_dir" && break
25270     done
25271     test -z "$as_dirs" || eval "mkdir $as_dirs"
25272   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25273 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25274    { (exit 1); exit 1; }; }; }
25275   ac_builddir=.
25276
25277 case "$ac_dir" in
25278 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25279 *)
25280   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25281   # A ".." for each directory in $ac_dir_suffix.
25282   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25283   case $ac_top_builddir_sub in
25284   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25285   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25286   esac ;;
25287 esac
25288 ac_abs_top_builddir=$ac_pwd
25289 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25290 # for backward compatibility:
25291 ac_top_builddir=$ac_top_build_prefix
25292
25293 case $srcdir in
25294   .)  # We are building in place.
25295     ac_srcdir=.
25296     ac_top_srcdir=$ac_top_builddir_sub
25297     ac_abs_top_srcdir=$ac_pwd ;;
25298   [\\/]* | ?:[\\/]* )  # Absolute name.
25299     ac_srcdir=$srcdir$ac_dir_suffix;
25300     ac_top_srcdir=$srcdir
25301     ac_abs_top_srcdir=$srcdir ;;
25302   *) # Relative name.
25303     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25304     ac_top_srcdir=$ac_top_build_prefix$srcdir
25305     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25306 esac
25307 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25308
25309
25310   case $ac_mode in
25311   :F)
25312   #
25313   # CONFIG_FILE
25314   #
25315
25316 _ACEOF
25317
25318 cat >>$CONFIG_STATUS <<\_ACEOF
25319 # If the template does not know about datarootdir, expand it.
25320 # FIXME: This hack should be removed a few years after 2.60.
25321 ac_datarootdir_hack=; ac_datarootdir_seen=
25322
25323 case `sed -n '/datarootdir/ {
25324   p
25325   q
25326 }
25327 /@datadir@/p
25328 /@docdir@/p
25329 /@infodir@/p
25330 /@localedir@/p
25331 /@mandir@/p
25332 ' $ac_file_inputs` in
25333 *datarootdir*) ac_datarootdir_seen=yes;;
25334 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25335   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25336 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25337 _ACEOF
25338 cat >>$CONFIG_STATUS <<_ACEOF
25339   ac_datarootdir_hack='
25340   s&@datadir@&$datadir&g
25341   s&@docdir@&$docdir&g
25342   s&@infodir@&$infodir&g
25343   s&@localedir@&$localedir&g
25344   s&@mandir@&$mandir&g
25345     s&\\\${datarootdir}&$datarootdir&g' ;;
25346 esac
25347 _ACEOF
25348
25349 # Neutralize VPATH when `$srcdir' = `.'.
25350 # Shell code in configure.ac might set extrasub.
25351 # FIXME: do we really want to maintain this feature?
25352 cat >>$CONFIG_STATUS <<_ACEOF
25353   sed "$ac_vpsub
25354 $extrasub
25355 _ACEOF
25356 cat >>$CONFIG_STATUS <<\_ACEOF
25357 :t
25358 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25359 s&@configure_input@&$configure_input&;t t
25360 s&@top_builddir@&$ac_top_builddir_sub&;t t
25361 s&@srcdir@&$ac_srcdir&;t t
25362 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25363 s&@top_srcdir@&$ac_top_srcdir&;t t
25364 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25365 s&@builddir@&$ac_builddir&;t t
25366 s&@abs_builddir@&$ac_abs_builddir&;t t
25367 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25368 $ac_datarootdir_hack
25369 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25370
25371 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25372   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25373   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25374   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25375 which seems to be undefined.  Please make sure it is defined." >&5
25376 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25377 which seems to be undefined.  Please make sure it is defined." >&2;}
25378
25379   rm -f "$tmp/stdin"
25380   case $ac_file in
25381   -) cat "$tmp/out"; rm -f "$tmp/out";;
25382   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25383   esac
25384  ;;
25385   :H)
25386   #
25387   # CONFIG_HEADER
25388   #
25389 _ACEOF
25390
25391 # Transform confdefs.h into a sed script `conftest.defines', that
25392 # substitutes the proper values into config.h.in to produce config.h.
25393 rm -f conftest.defines conftest.tail
25394 # First, append a space to every undef/define line, to ease matching.
25395 echo 's/$/ /' >conftest.defines
25396 # Then, protect against being on the right side of a sed subst, or in
25397 # an unquoted here document, in config.status.  If some macros were
25398 # called several times there might be several #defines for the same
25399 # symbol, which is useless.  But do not sort them, since the last
25400 # AC_DEFINE must be honored.
25401 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25402 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25403 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25404 # PARAMS is the parameter list in the macro definition--in most cases, it's
25405 # just an empty string.
25406 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25407 ac_dB='\\)[      (].*,\\1define\\2'
25408 ac_dC=' '
25409 ac_dD=' ,'
25410
25411 uniq confdefs.h |
25412   sed -n '
25413         t rset
25414         :rset
25415         s/^[     ]*#[    ]*define[       ][      ]*//
25416         t ok
25417         d
25418         :ok
25419         s/[\\&,]/\\&/g
25420         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25421         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25422   ' >>conftest.defines
25423
25424 # Remove the space that was appended to ease matching.
25425 # Then replace #undef with comments.  This is necessary, for
25426 # example, in the case of _POSIX_SOURCE, which is predefined and required
25427 # on some systems where configure will not decide to define it.
25428 # (The regexp can be short, since the line contains either #define or #undef.)
25429 echo 's/ $//
25430 s,^[     #]*u.*,/* & */,' >>conftest.defines
25431
25432 # Break up conftest.defines:
25433 ac_max_sed_lines=50
25434
25435 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25436 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25437 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25438 # et cetera.
25439 ac_in='$ac_file_inputs'
25440 ac_out='"$tmp/out1"'
25441 ac_nxt='"$tmp/out2"'
25442
25443 while :
25444 do
25445   # Write a here document:
25446     cat >>$CONFIG_STATUS <<_ACEOF
25447     # First, check the format of the line:
25448     cat >"\$tmp/defines.sed" <<\\CEOF
25449 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25450 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25451 b
25452 :def
25453 _ACEOF
25454   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25455   echo 'CEOF
25456     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25457   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25458   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25459   grep . conftest.tail >/dev/null || break
25460   rm -f conftest.defines
25461   mv conftest.tail conftest.defines
25462 done
25463 rm -f conftest.defines conftest.tail
25464
25465 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25466 cat >>$CONFIG_STATUS <<\_ACEOF
25467   if test x"$ac_file" != x-; then
25468     echo "/* $configure_input  */" >"$tmp/config.h"
25469     cat "$ac_result" >>"$tmp/config.h"
25470     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25471       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25472 echo "$as_me: $ac_file is unchanged" >&6;}
25473     else
25474       rm -f $ac_file
25475       mv "$tmp/config.h" $ac_file
25476     fi
25477   else
25478     echo "/* $configure_input  */"
25479     cat "$ac_result"
25480   fi
25481   rm -f "$tmp/out12"
25482  ;;
25483
25484
25485   esac
25486
25487 done # for ac_tag
25488
25489
25490 { (exit 0); exit 0; }
25491 _ACEOF
25492 chmod +x $CONFIG_STATUS
25493 ac_clean_files=$ac_clean_files_save
25494
25495
25496 # configure is writing to config.log, and then calls config.status.
25497 # config.status does its own redirection, appending to config.log.
25498 # Unfortunately, on DOS this fails, as config.log is still kept open
25499 # by configure, so config.status won't be able to write to it; its
25500 # output is simply discarded.  So we exec the FD to /dev/null,
25501 # effectively closing config.log, so it can be properly (re)opened and
25502 # appended to by config.status.  When coming back to configure, we
25503 # need to make the FD available again.
25504 if test "$no_create" != yes; then
25505   ac_cs_success=:
25506   ac_config_status_args=
25507   test "$silent" = yes &&
25508     ac_config_status_args="$ac_config_status_args --quiet"
25509   exec 5>/dev/null
25510   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25511   exec 5>>config.log
25512   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25513   # would make configure fail if this is the last instruction.
25514   $ac_cs_success || { (exit 1); exit 1; }
25515 fi
25516
25517 #
25518 # CONFIG_SUBDIRS section.
25519 #
25520 if test "$no_recursion" != yes; then
25521
25522   # Remove --cache-file and --srcdir arguments so they do not pile up.
25523   ac_sub_configure_args=
25524   ac_prev=
25525   eval "set x $ac_configure_args"
25526   shift
25527   for ac_arg
25528   do
25529     if test -n "$ac_prev"; then
25530       ac_prev=
25531       continue
25532     fi
25533     case $ac_arg in
25534     -cache-file | --cache-file | --cache-fil | --cache-fi \
25535     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25536       ac_prev=cache_file ;;
25537     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25538     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25539     | --c=*)
25540       ;;
25541     --config-cache | -C)
25542       ;;
25543     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25544       ac_prev=srcdir ;;
25545     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25546       ;;
25547     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25548       ac_prev=prefix ;;
25549     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25550       ;;
25551     *)
25552       case $ac_arg in
25553       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25554       esac
25555       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
25556     esac
25557   done
25558
25559   # Always prepend --prefix to ensure using the same prefix
25560   # in subdir configurations.
25561   ac_arg="--prefix=$prefix"
25562   case $ac_arg in
25563   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
25564   esac
25565   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
25566
25567   # Pass --silent
25568   if test "$silent" = yes; then
25569     ac_sub_configure_args="--silent $ac_sub_configure_args"
25570   fi
25571
25572   ac_popdir=`pwd`
25573   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25574
25575     # Do not complain, so a configure script can configure whichever
25576     # parts of a large source tree are present.
25577     test -d "$srcdir/$ac_dir" || continue
25578
25579     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
25580     echo "$as_me:$LINENO: $ac_msg" >&5
25581     echo "$ac_msg" >&6
25582     { as_dir="$ac_dir"
25583   case $as_dir in #(
25584   -*) as_dir=./$as_dir;;
25585   esac
25586   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25587     as_dirs=
25588     while :; do
25589       case $as_dir in #(
25590       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25591       *) as_qdir=$as_dir;;
25592       esac
25593       as_dirs="'$as_qdir' $as_dirs"
25594       as_dir=`$as_dirname -- "$as_dir" ||
25595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25596          X"$as_dir" : 'X\(//\)[^/]' \| \
25597          X"$as_dir" : 'X\(//\)$' \| \
25598          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25599 echo X"$as_dir" |
25600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25601             s//\1/
25602             q
25603           }
25604           /^X\(\/\/\)[^/].*/{
25605             s//\1/
25606             q
25607           }
25608           /^X\(\/\/\)$/{
25609             s//\1/
25610             q
25611           }
25612           /^X\(\/\).*/{
25613             s//\1/
25614             q
25615           }
25616           s/.*/./; q'`
25617       test -d "$as_dir" && break
25618     done
25619     test -z "$as_dirs" || eval "mkdir $as_dirs"
25620   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25621 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25622    { (exit 1); exit 1; }; }; }
25623     ac_builddir=.
25624
25625 case "$ac_dir" in
25626 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25627 *)
25628   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25629   # A ".." for each directory in $ac_dir_suffix.
25630   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25631   case $ac_top_builddir_sub in
25632   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25633   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25634   esac ;;
25635 esac
25636 ac_abs_top_builddir=$ac_pwd
25637 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25638 # for backward compatibility:
25639 ac_top_builddir=$ac_top_build_prefix
25640
25641 case $srcdir in
25642   .)  # We are building in place.
25643     ac_srcdir=.
25644     ac_top_srcdir=$ac_top_builddir_sub
25645     ac_abs_top_srcdir=$ac_pwd ;;
25646   [\\/]* | ?:[\\/]* )  # Absolute name.
25647     ac_srcdir=$srcdir$ac_dir_suffix;
25648     ac_top_srcdir=$srcdir
25649     ac_abs_top_srcdir=$srcdir ;;
25650   *) # Relative name.
25651     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25652     ac_top_srcdir=$ac_top_build_prefix$srcdir
25653     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25654 esac
25655 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25656
25657
25658     cd "$ac_dir"
25659
25660     # Check for guested configure; otherwise get Cygnus style configure.
25661     if test -f "$ac_srcdir/configure.gnu"; then
25662       ac_sub_configure=$ac_srcdir/configure.gnu
25663     elif test -f "$ac_srcdir/configure"; then
25664       ac_sub_configure=$ac_srcdir/configure
25665     elif test -f "$ac_srcdir/configure.in"; then
25666       # This should be Cygnus configure.
25667       ac_sub_configure=$ac_aux_dir/configure
25668     else
25669       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25670 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25671       ac_sub_configure=
25672     fi
25673
25674     # The recursion is here.
25675     if test -n "$ac_sub_configure"; then
25676       # Make the cache file name correct relative to the subdirectory.
25677       case $cache_file in
25678       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25679       *) # Relative name.
25680         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
25681       esac
25682
25683       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25684 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25685       # The eval makes quoting arguments work.
25686       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
25687            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
25688         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25689 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25690    { (exit 1); exit 1; }; }
25691     fi
25692
25693     cd "$ac_popdir"
25694   done
25695 fi
25696
25697
25698 ac_config_commands="$ac_config_commands default-1"
25699
25700 ac_config_commands="$ac_config_commands default-2"
25701
25702 ac_config_commands="$ac_config_commands default-3"
25703
25704 ac_config_commands="$ac_config_commands default-4"
25705