Remove ALL references to SNMP from the server source.
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.262 .
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 CXX
816 CXXFLAGS
817 ac_ct_CXX
818 CPP
819 GREP
820 EGREP
821 RANLIB
822 GMAKE
823 MAKE
824 LTDL_SUBDIRS
825 LIBTOOL
826 build
827 build_cpu
828 build_vendor
829 build_os
830 host
831 host_cpu
832 host_vendor
833 host_os
834 LN_S
835 ECHO
836 AR
837 STRIP
838 CXXCPP
839 F77
840 FFLAGS
841 ac_ct_F77
842 logdir
843 radacctdir
844 raddbdir
845 PERL
846 SNMPGET
847 SNMPWALK
848 RUSERS
849 ACLOCAL
850 AUTOCONF
851 AUTOHEADER
852 LOCATE
853 DIRNAME
854 REGEX
855 REGEX_EXTENDED
856 OPENSSL_INCLUDE
857 OPENSSL_LIBS
858 PCAP_LIBS
859 LIBPREFIX
860 CRYPTLIB
861 HOSTINFO
862 LIBLTDL
863 INCLTDL
864 subdirs
865 MODULES
866 INSTALLSTRIP
867 USE_SHARED_LIBS
868 USE_STATIC_LIBS
869 STATIC_MODULES
870 RADIUSD_MAJOR_VERSION
871 RADIUSD_MINOR_VERSION
872 RADIUSD_VERSION
873 LIBOBJS
874 LTLIBOBJS'
875 ac_subst_files=''
876       ac_precious_vars='build_alias
877 host_alias
878 target_alias
879 CC
880 CFLAGS
881 LDFLAGS
882 LIBS
883 CPPFLAGS
884 CXX
885 CXXFLAGS
886 CCC
887 CPP
888 CXXCPP
889 F77
890 FFLAGS'
891 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
892
893 # Initialize some variables set by options.
894 ac_init_help=
895 ac_init_version=false
896 # The variables have the same names as the options, with
897 # dashes changed to underlines.
898 cache_file=/dev/null
899 exec_prefix=NONE
900 no_create=
901 no_recursion=
902 prefix=NONE
903 program_prefix=NONE
904 program_suffix=NONE
905 program_transform_name=s,x,x,
906 silent=
907 site=
908 srcdir=
909 verbose=
910 x_includes=NONE
911 x_libraries=NONE
912
913 # Installation directory options.
914 # These are left unexpanded so users can "make install exec_prefix=/foo"
915 # and all the variables that are supposed to be based on exec_prefix
916 # by default will actually change.
917 # Use braces instead of parens because sh, perl, etc. also accept them.
918 # (The list follows the same order as the GNU Coding Standards.)
919 bindir='${exec_prefix}/bin'
920 sbindir='${exec_prefix}/sbin'
921 libexecdir='${exec_prefix}/libexec'
922 datarootdir='${prefix}/share'
923 datadir='${datarootdir}'
924 sysconfdir='${prefix}/etc'
925 sharedstatedir='${prefix}/com'
926 localstatedir='${prefix}/var'
927 includedir='${prefix}/include'
928 oldincludedir='/usr/include'
929 docdir='${datarootdir}/doc/${PACKAGE}'
930 infodir='${datarootdir}/info'
931 htmldir='${docdir}'
932 dvidir='${docdir}'
933 pdfdir='${docdir}'
934 psdir='${docdir}'
935 libdir='${exec_prefix}/lib'
936 localedir='${datarootdir}/locale'
937 mandir='${datarootdir}/man'
938
939 ac_prev=
940 ac_dashdash=
941 for ac_option
942 do
943   # If the previous option needs an argument, assign it.
944   if test -n "$ac_prev"; then
945     eval $ac_prev=\$ac_option
946     ac_prev=
947     continue
948   fi
949
950   case $ac_option in
951   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
952   *)    ac_optarg=yes ;;
953   esac
954
955   # Accept the important Cygnus configure options, so we can diagnose typos.
956
957   case $ac_dashdash$ac_option in
958   --)
959     ac_dashdash=yes ;;
960
961   -bindir | --bindir | --bindi | --bind | --bin | --bi)
962     ac_prev=bindir ;;
963   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964     bindir=$ac_optarg ;;
965
966   -build | --build | --buil | --bui | --bu)
967     ac_prev=build_alias ;;
968   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969     build_alias=$ac_optarg ;;
970
971   -cache-file | --cache-file | --cache-fil | --cache-fi \
972   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973     ac_prev=cache_file ;;
974   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976     cache_file=$ac_optarg ;;
977
978   --config-cache | -C)
979     cache_file=config.cache ;;
980
981   -datadir | --datadir | --datadi | --datad)
982     ac_prev=datadir ;;
983   -datadir=* | --datadir=* | --datadi=* | --datad=*)
984     datadir=$ac_optarg ;;
985
986   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987   | --dataroo | --dataro | --datar)
988     ac_prev=datarootdir ;;
989   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991     datarootdir=$ac_optarg ;;
992
993   -disable-* | --disable-*)
994     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
997       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
998    { (exit 1); exit 1; }; }
999     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1000     eval enable_$ac_feature=no ;;
1001
1002   -docdir | --docdir | --docdi | --doc | --do)
1003     ac_prev=docdir ;;
1004   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005     docdir=$ac_optarg ;;
1006
1007   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008     ac_prev=dvidir ;;
1009   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010     dvidir=$ac_optarg ;;
1011
1012   -enable-* | --enable-*)
1013     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014     # Reject names that are not valid shell variable names.
1015     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1016       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1017    { (exit 1); exit 1; }; }
1018     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1019     eval enable_$ac_feature=\$ac_optarg ;;
1020
1021   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023   | --exec | --exe | --ex)
1024     ac_prev=exec_prefix ;;
1025   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027   | --exec=* | --exe=* | --ex=*)
1028     exec_prefix=$ac_optarg ;;
1029
1030   -gas | --gas | --ga | --g)
1031     # Obsolete; use --with-gas.
1032     with_gas=yes ;;
1033
1034   -help | --help | --hel | --he | -h)
1035     ac_init_help=long ;;
1036   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037     ac_init_help=recursive ;;
1038   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039     ac_init_help=short ;;
1040
1041   -host | --host | --hos | --ho)
1042     ac_prev=host_alias ;;
1043   -host=* | --host=* | --hos=* | --ho=*)
1044     host_alias=$ac_optarg ;;
1045
1046   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1047     ac_prev=htmldir ;;
1048   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1049   | --ht=*)
1050     htmldir=$ac_optarg ;;
1051
1052   -includedir | --includedir | --includedi | --included | --include \
1053   | --includ | --inclu | --incl | --inc)
1054     ac_prev=includedir ;;
1055   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056   | --includ=* | --inclu=* | --incl=* | --inc=*)
1057     includedir=$ac_optarg ;;
1058
1059   -infodir | --infodir | --infodi | --infod | --info | --inf)
1060     ac_prev=infodir ;;
1061   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062     infodir=$ac_optarg ;;
1063
1064   -libdir | --libdir | --libdi | --libd)
1065     ac_prev=libdir ;;
1066   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067     libdir=$ac_optarg ;;
1068
1069   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070   | --libexe | --libex | --libe)
1071     ac_prev=libexecdir ;;
1072   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073   | --libexe=* | --libex=* | --libe=*)
1074     libexecdir=$ac_optarg ;;
1075
1076   -localedir | --localedir | --localedi | --localed | --locale)
1077     ac_prev=localedir ;;
1078   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079     localedir=$ac_optarg ;;
1080
1081   -localstatedir | --localstatedir | --localstatedi | --localstated \
1082   | --localstate | --localstat | --localsta | --localst | --locals)
1083     ac_prev=localstatedir ;;
1084   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086     localstatedir=$ac_optarg ;;
1087
1088   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1089     ac_prev=mandir ;;
1090   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091     mandir=$ac_optarg ;;
1092
1093   -nfp | --nfp | --nf)
1094     # Obsolete; use --without-fp.
1095     with_fp=no ;;
1096
1097   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098   | --no-cr | --no-c | -n)
1099     no_create=yes ;;
1100
1101   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103     no_recursion=yes ;;
1104
1105   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107   | --oldin | --oldi | --old | --ol | --o)
1108     ac_prev=oldincludedir ;;
1109   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112     oldincludedir=$ac_optarg ;;
1113
1114   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1115     ac_prev=prefix ;;
1116   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117     prefix=$ac_optarg ;;
1118
1119   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120   | --program-pre | --program-pr | --program-p)
1121     ac_prev=program_prefix ;;
1122   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124     program_prefix=$ac_optarg ;;
1125
1126   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127   | --program-suf | --program-su | --program-s)
1128     ac_prev=program_suffix ;;
1129   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131     program_suffix=$ac_optarg ;;
1132
1133   -program-transform-name | --program-transform-name \
1134   | --program-transform-nam | --program-transform-na \
1135   | --program-transform-n | --program-transform- \
1136   | --program-transform | --program-transfor \
1137   | --program-transfo | --program-transf \
1138   | --program-trans | --program-tran \
1139   | --progr-tra | --program-tr | --program-t)
1140     ac_prev=program_transform_name ;;
1141   -program-transform-name=* | --program-transform-name=* \
1142   | --program-transform-nam=* | --program-transform-na=* \
1143   | --program-transform-n=* | --program-transform-=* \
1144   | --program-transform=* | --program-transfor=* \
1145   | --program-transfo=* | --program-transf=* \
1146   | --program-trans=* | --program-tran=* \
1147   | --progr-tra=* | --program-tr=* | --program-t=*)
1148     program_transform_name=$ac_optarg ;;
1149
1150   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1151     ac_prev=pdfdir ;;
1152   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153     pdfdir=$ac_optarg ;;
1154
1155   -psdir | --psdir | --psdi | --psd | --ps)
1156     ac_prev=psdir ;;
1157   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158     psdir=$ac_optarg ;;
1159
1160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161   | -silent | --silent | --silen | --sile | --sil)
1162     silent=yes ;;
1163
1164   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165     ac_prev=sbindir ;;
1166   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167   | --sbi=* | --sb=*)
1168     sbindir=$ac_optarg ;;
1169
1170   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172   | --sharedst | --shareds | --shared | --share | --shar \
1173   | --sha | --sh)
1174     ac_prev=sharedstatedir ;;
1175   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178   | --sha=* | --sh=*)
1179     sharedstatedir=$ac_optarg ;;
1180
1181   -site | --site | --sit)
1182     ac_prev=site ;;
1183   -site=* | --site=* | --sit=*)
1184     site=$ac_optarg ;;
1185
1186   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187     ac_prev=srcdir ;;
1188   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189     srcdir=$ac_optarg ;;
1190
1191   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192   | --syscon | --sysco | --sysc | --sys | --sy)
1193     ac_prev=sysconfdir ;;
1194   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196     sysconfdir=$ac_optarg ;;
1197
1198   -target | --target | --targe | --targ | --tar | --ta | --t)
1199     ac_prev=target_alias ;;
1200   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201     target_alias=$ac_optarg ;;
1202
1203   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204     verbose=yes ;;
1205
1206   -version | --version | --versio | --versi | --vers | -V)
1207     ac_init_version=: ;;
1208
1209   -with-* | --with-*)
1210     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213       { echo "$as_me: error: invalid package name: $ac_package" >&2
1214    { (exit 1); exit 1; }; }
1215     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1216     eval with_$ac_package=\$ac_optarg ;;
1217
1218   -without-* | --without-*)
1219     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222       { echo "$as_me: error: invalid package name: $ac_package" >&2
1223    { (exit 1); exit 1; }; }
1224     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225     eval with_$ac_package=no ;;
1226
1227   --x)
1228     # Obsolete; use --with-x.
1229     with_x=yes ;;
1230
1231   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232   | --x-incl | --x-inc | --x-in | --x-i)
1233     ac_prev=x_includes ;;
1234   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236     x_includes=$ac_optarg ;;
1237
1238   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240     ac_prev=x_libraries ;;
1241   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243     x_libraries=$ac_optarg ;;
1244
1245   -*) { echo "$as_me: error: unrecognized option: $ac_option
1246 Try \`$0 --help' for more information." >&2
1247    { (exit 1); exit 1; }; }
1248     ;;
1249
1250   *=*)
1251     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252     # Reject names that are not valid shell variable names.
1253     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1254       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1255    { (exit 1); exit 1; }; }
1256     eval $ac_envvar=\$ac_optarg
1257     export $ac_envvar ;;
1258
1259   *)
1260     # FIXME: should be removed in autoconf 3.0.
1261     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1265     ;;
1266
1267   esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272   { echo "$as_me: error: missing argument to $ac_option" >&2
1273    { (exit 1); exit 1; }; }
1274 fi
1275
1276 # Be sure to have absolute directory names.
1277 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278                 datadir sysconfdir sharedstatedir localstatedir includedir \
1279                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280                 libdir localedir mandir
1281 do
1282   eval ac_val=\$$ac_var
1283   case $ac_val in
1284     [\\/$]* | ?:[\\/]* )  continue;;
1285     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1286   esac
1287   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1288    { (exit 1); exit 1; }; }
1289 done
1290
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1294 build=$build_alias
1295 host=$host_alias
1296 target=$target_alias
1297
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300   if test "x$build_alias" = x; then
1301     cross_compiling=maybe
1302     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303     If a cross compiler is detected then cross compile mode will be used." >&2
1304   elif test "x$build_alias" != "x$host_alias"; then
1305     cross_compiling=yes
1306   fi
1307 fi
1308
1309 ac_tool_prefix=
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1311
1312 test "$silent" = yes && exec 6>/dev/null
1313
1314
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318   { echo "$as_me: error: Working directory cannot be determined" >&2
1319    { (exit 1); exit 1; }; }
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321   { echo "$as_me: error: pwd does not report name of working directory" >&2
1322    { (exit 1); exit 1; }; }
1323
1324
1325 # Find the source files, if location was not specified.
1326 if test -z "$srcdir"; then
1327   ac_srcdir_defaulted=yes
1328   # Try the directory containing this script, then the parent directory.
1329   ac_confdir=`$as_dirname -- "$0" ||
1330 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331          X"$0" : 'X\(//\)[^/]' \| \
1332          X"$0" : 'X\(//\)$' \| \
1333          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1334 echo X"$0" |
1335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)[^/].*/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)$/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\).*/{
1348             s//\1/
1349             q
1350           }
1351           s/.*/./; q'`
1352   srcdir=$ac_confdir
1353   if test ! -r "$srcdir/$ac_unique_file"; then
1354     srcdir=..
1355   fi
1356 else
1357   ac_srcdir_defaulted=no
1358 fi
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1362    { (exit 1); exit 1; }; }
1363 fi
1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1365 ac_abs_confdir=`(
1366         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1367    { (exit 1); exit 1; }; }
1368         pwd)`
1369 # When building in place, set srcdir=.
1370 if test "$ac_abs_confdir" = "$ac_pwd"; then
1371   srcdir=.
1372 fi
1373 # Remove unnecessary trailing slashes from srcdir.
1374 # Double slashes in file names in object file debugging info
1375 # mess up M-x gdb in Emacs.
1376 case $srcdir in
1377 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378 esac
1379 for ac_var in $ac_precious_vars; do
1380   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381   eval ac_env_${ac_var}_value=\$${ac_var}
1382   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384 done
1385
1386 #
1387 # Report the --help message.
1388 #
1389 if test "$ac_init_help" = "long"; then
1390   # Omit some internal or obsolete options to make the list less imposing.
1391   # This message is too long to be a string in the A/UX 3.1 sh.
1392   cat <<_ACEOF
1393 \`configure' configures this package to adapt to many kinds of systems.
1394
1395 Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398 VAR=VALUE.  See below for descriptions of some of the useful variables.
1399
1400 Defaults for the options are specified in brackets.
1401
1402 Configuration:
1403   -h, --help              display this help and exit
1404       --help=short        display options specific to this package
1405       --help=recursive    display the short help of all the included packages
1406   -V, --version           display version information and exit
1407   -q, --quiet, --silent   do not print \`checking...' messages
1408       --cache-file=FILE   cache test results in FILE [disabled]
1409   -C, --config-cache      alias for \`--cache-file=config.cache'
1410   -n, --no-create         do not create output files
1411       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1412
1413 Installation directories:
1414   --prefix=PREFIX         install architecture-independent files in PREFIX
1415                           [$ac_default_prefix]
1416   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1417                           [PREFIX]
1418
1419 By default, \`make install' will install all the files in
1420 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1421 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422 for instance \`--prefix=\$HOME'.
1423
1424 For better control, use the options below.
1425
1426 Fine tuning of the installation directories:
1427   --bindir=DIR           user executables [EPREFIX/bin]
1428   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1429   --libexecdir=DIR       program executables [EPREFIX/libexec]
1430   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1431   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1432   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1433   --libdir=DIR           object code libraries [EPREFIX/lib]
1434   --includedir=DIR       C header files [PREFIX/include]
1435   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1436   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1437   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1438   --infodir=DIR          info documentation [DATAROOTDIR/info]
1439   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1440   --mandir=DIR           man documentation [DATAROOTDIR/man]
1441   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1442   --htmldir=DIR          html documentation [DOCDIR]
1443   --dvidir=DIR           dvi documentation [DOCDIR]
1444   --pdfdir=DIR           pdf documentation [DOCDIR]
1445   --psdir=DIR            ps documentation [DOCDIR]
1446 _ACEOF
1447
1448   cat <<\_ACEOF
1449
1450 System types:
1451   --build=BUILD     configure for building on BUILD [guessed]
1452   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457
1458   cat <<\_ACEOF
1459
1460 Optional Features:
1461   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463   --disable-largefile     omit support for large files
1464   --enable-shared[=PKGS]  build shared libraries [default=yes]
1465   --enable-static[=PKGS]  build static libraries [default=yes]
1466   --enable-fast-install[=PKGS]
1467                           optimize for fast installation [default=yes]
1468   --disable-libtool-lock  avoid locking (might break parallel builds)
1469   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1470   --enable-developer               Enables features of interest to developers.
1471
1472 Optional Packages:
1473   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1474   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1475   --with-system-libtool              try to use libtool installed in your system default=use our own
1476   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1477   --with-pic              try to use only PIC/non-PIC objects [default=use
1478                           both]
1479   --with-tags[=TAGS]      include additional configurations [automatic]
1480   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1481   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1482   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1483   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1484   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1485   --with-threads          Use threads, if available.  (default=yes)
1486   --with-vmps             Compile in VMPS support. (default=yes)
1487   --with-dhcp             Compile in DHCP support. (default=no)
1488   --with-static-modules=QUOTED-MODULE-LIST
1489  --with-modules=QUOTED-MODULE-LIST
1490   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1491   --with-openssl                   Use OpenSSL. (default=yes)
1492   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1493   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1494   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1495   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1496   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1497
1498 Some influential environment variables:
1499   CC          C compiler command
1500   CFLAGS      C compiler flags
1501   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1502               nonstandard directory <lib dir>
1503   LIBS        libraries to pass to the linker, e.g. -l<library>
1504   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1505               you have headers in a nonstandard directory <include dir>
1506   CXX         C++ compiler command
1507   CXXFLAGS    C++ compiler flags
1508   CPP         C preprocessor
1509   CXXCPP      C++ preprocessor
1510   F77         Fortran 77 compiler command
1511   FFLAGS      Fortran 77 compiler flags
1512
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1515
1516 _ACEOF
1517 ac_status=$?
1518 fi
1519
1520 if test "$ac_init_help" = "recursive"; then
1521   # If there are subdirs, report their specific --help.
1522   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523     test -d "$ac_dir" || continue
1524     ac_builddir=.
1525
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *)
1529   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1530   # A ".." for each directory in $ac_dir_suffix.
1531   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1532   case $ac_top_builddir_sub in
1533   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535   esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1541
1542 case $srcdir in
1543   .)  # We are building in place.
1544     ac_srcdir=.
1545     ac_top_srcdir=$ac_top_builddir_sub
1546     ac_abs_top_srcdir=$ac_pwd ;;
1547   [\\/]* | ?:[\\/]* )  # Absolute name.
1548     ac_srcdir=$srcdir$ac_dir_suffix;
1549     ac_top_srcdir=$srcdir
1550     ac_abs_top_srcdir=$srcdir ;;
1551   *) # Relative name.
1552     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553     ac_top_srcdir=$ac_top_build_prefix$srcdir
1554     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557
1558     cd "$ac_dir" || { ac_status=$?; continue; }
1559     # Check for guested configure.
1560     if test -f "$ac_srcdir/configure.gnu"; then
1561       echo &&
1562       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563     elif test -f "$ac_srcdir/configure"; then
1564       echo &&
1565       $SHELL "$ac_srcdir/configure" --help=recursive
1566     else
1567       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568     fi || ac_status=$?
1569     cd "$ac_pwd" || { ac_status=$?; break; }
1570   done
1571 fi
1572
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575   cat <<\_ACEOF
1576 configure
1577 generated by GNU Autoconf 2.61
1578
1579 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1580 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584   exit
1585 fi
1586 cat >config.log <<_ACEOF
1587 This file contains any messages produced by compilers while
1588 running configure, to aid debugging if configure makes a mistake.
1589
1590 It was created by $as_me, which was
1591 generated by GNU Autoconf 2.61.  Invocation command line was
1592
1593   $ $0 $@
1594
1595 _ACEOF
1596 exec 5>>config.log
1597 {
1598 cat <<_ASUNAME
1599 ## --------- ##
1600 ## Platform. ##
1601 ## --------- ##
1602
1603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1608
1609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1610 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1611
1612 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1613 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1615 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1616 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1617 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1618 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1619
1620 _ASUNAME
1621
1622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 for as_dir in $PATH
1624 do
1625   IFS=$as_save_IFS
1626   test -z "$as_dir" && as_dir=.
1627   echo "PATH: $as_dir"
1628 done
1629 IFS=$as_save_IFS
1630
1631 } >&5
1632
1633 cat >&5 <<_ACEOF
1634
1635
1636 ## ----------- ##
1637 ## Core tests. ##
1638 ## ----------- ##
1639
1640 _ACEOF
1641
1642
1643 # Keep a trace of the command line.
1644 # Strip out --no-create and --no-recursion so they do not pile up.
1645 # Strip out --silent because we don't want to record it for future runs.
1646 # Also quote any args containing shell meta-characters.
1647 # Make two passes to allow for proper duplicate-argument suppression.
1648 ac_configure_args=
1649 ac_configure_args0=
1650 ac_configure_args1=
1651 ac_must_keep_next=false
1652 for ac_pass in 1 2
1653 do
1654   for ac_arg
1655   do
1656     case $ac_arg in
1657     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1658     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1659     | -silent | --silent | --silen | --sile | --sil)
1660       continue ;;
1661     *\'*)
1662       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663     esac
1664     case $ac_pass in
1665     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1666     2)
1667       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1668       if test $ac_must_keep_next = true; then
1669         ac_must_keep_next=false # Got value, back to normal.
1670       else
1671         case $ac_arg in
1672           *=* | --config-cache | -C | -disable-* | --disable-* \
1673           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1674           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1675           | -with-* | --with-* | -without-* | --without-* | --x)
1676             case "$ac_configure_args0 " in
1677               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678             esac
1679             ;;
1680           -* ) ac_must_keep_next=true ;;
1681         esac
1682       fi
1683       ac_configure_args="$ac_configure_args '$ac_arg'"
1684       ;;
1685     esac
1686   done
1687 done
1688 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1689 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1690
1691 # When interrupted or exit'd, cleanup temporary files, and complete
1692 # config.log.  We remove comments because anyway the quotes in there
1693 # would cause problems or look ugly.
1694 # WARNING: Use '\'' to represent an apostrophe within the trap.
1695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1696 trap 'exit_status=$?
1697   # Save into config.log some information that might help in debugging.
1698   {
1699     echo
1700
1701     cat <<\_ASBOX
1702 ## ---------------- ##
1703 ## Cache variables. ##
1704 ## ---------------- ##
1705 _ASBOX
1706     echo
1707     # The following way of writing the cache mishandles newlines in values,
1708 (
1709   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1710     eval ac_val=\$$ac_var
1711     case $ac_val in #(
1712     *${as_nl}*)
1713       case $ac_var in #(
1714       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1715 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716       esac
1717       case $ac_var in #(
1718       _ | IFS | as_nl) ;; #(
1719       *) $as_unset $ac_var ;;
1720       esac ;;
1721     esac
1722   done
1723   (set) 2>&1 |
1724     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1725     *${as_nl}ac_space=\ *)
1726       sed -n \
1727         "s/'\''/'\''\\\\'\'''\''/g;
1728           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729       ;; #(
1730     *)
1731       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1732       ;;
1733     esac |
1734     sort
1735 )
1736     echo
1737
1738     cat <<\_ASBOX
1739 ## ----------------- ##
1740 ## Output variables. ##
1741 ## ----------------- ##
1742 _ASBOX
1743     echo
1744     for ac_var in $ac_subst_vars
1745     do
1746       eval ac_val=\$$ac_var
1747       case $ac_val in
1748       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749       esac
1750       echo "$ac_var='\''$ac_val'\''"
1751     done | sort
1752     echo
1753
1754     if test -n "$ac_subst_files"; then
1755       cat <<\_ASBOX
1756 ## ------------------- ##
1757 ## File substitutions. ##
1758 ## ------------------- ##
1759 _ASBOX
1760       echo
1761       for ac_var in $ac_subst_files
1762       do
1763         eval ac_val=\$$ac_var
1764         case $ac_val in
1765         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766         esac
1767         echo "$ac_var='\''$ac_val'\''"
1768       done | sort
1769       echo
1770     fi
1771
1772     if test -s confdefs.h; then
1773       cat <<\_ASBOX
1774 ## ----------- ##
1775 ## confdefs.h. ##
1776 ## ----------- ##
1777 _ASBOX
1778       echo
1779       cat confdefs.h
1780       echo
1781     fi
1782     test "$ac_signal" != 0 &&
1783       echo "$as_me: caught signal $ac_signal"
1784     echo "$as_me: exit $exit_status"
1785   } >&5
1786   rm -f core *.core core.conftest.* &&
1787     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788     exit $exit_status
1789 ' 0
1790 for ac_signal in 1 2 13 15; do
1791   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 done
1793 ac_signal=0
1794
1795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1796 rm -f -r conftest* confdefs.h
1797
1798 # Predefined preprocessor variables.
1799
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 _ACEOF
1803
1804
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 _ACEOF
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 _ACEOF
1823
1824
1825 # Let the site file select an alternate cache file if it wants to.
1826 # Prefer explicitly selected file to automatically selected ones.
1827 if test -n "$CONFIG_SITE"; then
1828   set x "$CONFIG_SITE"
1829 elif test "x$prefix" != xNONE; then
1830   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1831 else
1832   set x "$ac_default_prefix/share/config.site" \
1833         "$ac_default_prefix/etc/config.site"
1834 fi
1835 shift
1836 for ac_site_file
1837 do
1838   if test -r "$ac_site_file"; then
1839     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1840 echo "$as_me: loading site script $ac_site_file" >&6;}
1841     sed 's/^/| /' "$ac_site_file" >&5
1842     . "$ac_site_file"
1843   fi
1844 done
1845
1846 if test -r "$cache_file"; then
1847   # Some versions of bash will fail to source /dev/null (special
1848   # files actually), so we avoid doing that.
1849   if test -f "$cache_file"; then
1850     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1851 echo "$as_me: loading cache $cache_file" >&6;}
1852     case $cache_file in
1853       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1854       *)                      . "./$cache_file";;
1855     esac
1856   fi
1857 else
1858   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1859 echo "$as_me: creating cache $cache_file" >&6;}
1860   >$cache_file
1861 fi
1862
1863 # Check that the precious variables saved in the cache have kept the same
1864 # value.
1865 ac_cache_corrupted=false
1866 for ac_var in $ac_precious_vars; do
1867   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1868   eval ac_new_set=\$ac_env_${ac_var}_set
1869   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1870   eval ac_new_val=\$ac_env_${ac_var}_value
1871   case $ac_old_set,$ac_new_set in
1872     set,)
1873       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1875       ac_cache_corrupted=: ;;
1876     ,set)
1877       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1879       ac_cache_corrupted=: ;;
1880     ,);;
1881     *)
1882       if test "x$ac_old_val" != "x$ac_new_val"; then
1883         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1884 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1885         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1886 echo "$as_me:   former value:  $ac_old_val" >&2;}
1887         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1888 echo "$as_me:   current value: $ac_new_val" >&2;}
1889         ac_cache_corrupted=:
1890       fi;;
1891   esac
1892   # Pass precious variables to config.status.
1893   if test "$ac_new_set" = set; then
1894     case $ac_new_val in
1895     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1896     *) ac_arg=$ac_var=$ac_new_val ;;
1897     esac
1898     case " $ac_configure_args " in
1899       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1900       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1901     esac
1902   fi
1903 done
1904 if $ac_cache_corrupted; then
1905   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1906 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1907   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1908 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1909    { (exit 1); exit 1; }; }
1910 fi
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1936
1937
1938 RADIUSD_VERSION=`cat VERSION`
1939 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1940 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1941 PACKAGE=freeradius
1942
1943
1944 ac_ext=c
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949 if test -n "$ac_tool_prefix"; then
1950   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1951 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   if test -n "$CC"; then
1958   ac_cv_prog_CC="$CC" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963   IFS=$as_save_IFS
1964   test -z "$as_dir" && as_dir=.
1965   for ac_exec_ext in '' $ac_executable_extensions; do
1966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1967     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969     break 2
1970   fi
1971 done
1972 done
1973 IFS=$as_save_IFS
1974
1975 fi
1976 fi
1977 CC=$ac_cv_prog_CC
1978 if test -n "$CC"; then
1979   { echo "$as_me:$LINENO: result: $CC" >&5
1980 echo "${ECHO_T}$CC" >&6; }
1981 else
1982   { echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6; }
1984 fi
1985
1986
1987 fi
1988 if test -z "$ac_cv_prog_CC"; then
1989   ac_ct_CC=$CC
1990   # Extract the first word of "gcc", so it can be a program name with args.
1991 set dummy gcc; ac_word=$2
1992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1995   echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997   if test -n "$ac_ct_CC"; then
1998   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1999 else
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003   IFS=$as_save_IFS
2004   test -z "$as_dir" && as_dir=.
2005   for ac_exec_ext in '' $ac_executable_extensions; do
2006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2007     ac_cv_prog_ac_ct_CC="gcc"
2008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009     break 2
2010   fi
2011 done
2012 done
2013 IFS=$as_save_IFS
2014
2015 fi
2016 fi
2017 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2018 if test -n "$ac_ct_CC"; then
2019   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020 echo "${ECHO_T}$ac_ct_CC" >&6; }
2021 else
2022   { echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6; }
2024 fi
2025
2026   if test "x$ac_ct_CC" = x; then
2027     CC=""
2028   else
2029     case $cross_compiling:$ac_tool_warned in
2030 yes:)
2031 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2032 whose name does not start with the host triplet.  If you think this
2033 configuration is useful to you, please write to autoconf@gnu.org." >&5
2034 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2035 whose name does not start with the host triplet.  If you think this
2036 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2037 ac_tool_warned=yes ;;
2038 esac
2039     CC=$ac_ct_CC
2040   fi
2041 else
2042   CC="$ac_cv_prog_CC"
2043 fi
2044
2045 if test -z "$CC"; then
2046           if test -n "$ac_tool_prefix"; then
2047     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2048 set dummy ${ac_tool_prefix}cc; ac_word=$2
2049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2051 if test "${ac_cv_prog_CC+set}" = set; then
2052   echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054   if test -n "$CC"; then
2055   ac_cv_prog_CC="$CC" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2064     ac_cv_prog_CC="${ac_tool_prefix}cc"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2071
2072 fi
2073 fi
2074 CC=$ac_cv_prog_CC
2075 if test -n "$CC"; then
2076   { echo "$as_me:$LINENO: result: $CC" >&5
2077 echo "${ECHO_T}$CC" >&6; }
2078 else
2079   { echo "$as_me:$LINENO: result: no" >&5
2080 echo "${ECHO_T}no" >&6; }
2081 fi
2082
2083
2084   fi
2085 fi
2086 if test -z "$CC"; then
2087   # Extract the first word of "cc", so it can be a program name with args.
2088 set dummy cc; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_prog_CC+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test -n "$CC"; then
2095   ac_cv_prog_CC="$CC" # Let the user override the test.
2096 else
2097   ac_prog_rejected=no
2098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 for as_dir in $PATH
2100 do
2101   IFS=$as_save_IFS
2102   test -z "$as_dir" && as_dir=.
2103   for ac_exec_ext in '' $ac_executable_extensions; do
2104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2105     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2106        ac_prog_rejected=yes
2107        continue
2108      fi
2109     ac_cv_prog_CC="cc"
2110     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111     break 2
2112   fi
2113 done
2114 done
2115 IFS=$as_save_IFS
2116
2117 if test $ac_prog_rejected = yes; then
2118   # We found a bogon in the path, so make sure we never use it.
2119   set dummy $ac_cv_prog_CC
2120   shift
2121   if test $# != 0; then
2122     # We chose a different compiler from the bogus one.
2123     # However, it has the same basename, so the bogon will be chosen
2124     # first if we set CC to just the basename; use the full file name.
2125     shift
2126     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2127   fi
2128 fi
2129 fi
2130 fi
2131 CC=$ac_cv_prog_CC
2132 if test -n "$CC"; then
2133   { echo "$as_me:$LINENO: result: $CC" >&5
2134 echo "${ECHO_T}$CC" >&6; }
2135 else
2136   { echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6; }
2138 fi
2139
2140
2141 fi
2142 if test -z "$CC"; then
2143   if test -n "$ac_tool_prefix"; then
2144   for ac_prog in cl.exe
2145   do
2146     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   if test -n "$CC"; then
2154   ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161   for ac_exec_ext in '' $ac_executable_extensions; do
2162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165     break 2
2166   fi
2167 done
2168 done
2169 IFS=$as_save_IFS
2170
2171 fi
2172 fi
2173 CC=$ac_cv_prog_CC
2174 if test -n "$CC"; then
2175   { echo "$as_me:$LINENO: result: $CC" >&5
2176 echo "${ECHO_T}$CC" >&6; }
2177 else
2178   { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2180 fi
2181
2182
2183     test -n "$CC" && break
2184   done
2185 fi
2186 if test -z "$CC"; then
2187   ac_ct_CC=$CC
2188   for ac_prog in cl.exe
2189 do
2190   # Extract the first word of "$ac_prog", so it can be a program name with args.
2191 set dummy $ac_prog; ac_word=$2
2192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2195   echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197   if test -n "$ac_ct_CC"; then
2198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2199 else
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203   IFS=$as_save_IFS
2204   test -z "$as_dir" && as_dir=.
2205   for ac_exec_ext in '' $ac_executable_extensions; do
2206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207     ac_cv_prog_ac_ct_CC="$ac_prog"
2208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2209     break 2
2210   fi
2211 done
2212 done
2213 IFS=$as_save_IFS
2214
2215 fi
2216 fi
2217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2218 if test -n "$ac_ct_CC"; then
2219   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2220 echo "${ECHO_T}$ac_ct_CC" >&6; }
2221 else
2222   { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2224 fi
2225
2226
2227   test -n "$ac_ct_CC" && break
2228 done
2229
2230   if test "x$ac_ct_CC" = x; then
2231     CC=""
2232   else
2233     case $cross_compiling:$ac_tool_warned in
2234 yes:)
2235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2236 whose name does not start with the host triplet.  If you think this
2237 configuration is useful to you, please write to autoconf@gnu.org." >&5
2238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2239 whose name does not start with the host triplet.  If you think this
2240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2241 ac_tool_warned=yes ;;
2242 esac
2243     CC=$ac_ct_CC
2244   fi
2245 fi
2246
2247 fi
2248
2249
2250 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: no acceptable C compiler found in \$PATH
2253 See \`config.log' for more details." >&2;}
2254    { (exit 1); exit 1; }; }
2255
2256 # Provide some information about the compiler.
2257 echo "$as_me:$LINENO: checking for C compiler version" >&5
2258 ac_compiler=`set X $ac_compile; echo $2`
2259 { (ac_try="$ac_compiler --version >&5"
2260 case "(($ac_try" in
2261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262   *) ac_try_echo=$ac_try;;
2263 esac
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265   (eval "$ac_compiler --version >&5") 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }
2269 { (ac_try="$ac_compiler -v >&5"
2270 case "(($ac_try" in
2271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272   *) ac_try_echo=$ac_try;;
2273 esac
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275   (eval "$ac_compiler -v >&5") 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }
2279 { (ac_try="$ac_compiler -V >&5"
2280 case "(($ac_try" in
2281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282   *) ac_try_echo=$ac_try;;
2283 esac
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285   (eval "$ac_compiler -V >&5") 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }
2289
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h.  */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h.  */
2296
2297 int
2298 main ()
2299 {
2300
2301   ;
2302   return 0;
2303 }
2304 _ACEOF
2305 ac_clean_files_save=$ac_clean_files
2306 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2307 # Try to create an executable without -o first, disregard a.out.
2308 # It will help us diagnose broken compilers, and finding out an intuition
2309 # of exeext.
2310 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2311 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2312 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2313 #
2314 # List of possible output files, starting from the most likely.
2315 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2316 # only as a last resort.  b.out is created by i960 compilers.
2317 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2318 #
2319 # The IRIX 6 linker writes into existing files which may not be
2320 # executable, retaining their permissions.  Remove them first so a
2321 # subsequent execution test works.
2322 ac_rmfiles=
2323 for ac_file in $ac_files
2324 do
2325   case $ac_file in
2326     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2327     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2328   esac
2329 done
2330 rm -f $ac_rmfiles
2331
2332 if { (ac_try="$ac_link_default"
2333 case "(($ac_try" in
2334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335   *) ac_try_echo=$ac_try;;
2336 esac
2337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2338   (eval "$ac_link_default") 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; then
2342   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2343 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2344 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2345 # so that the user can short-circuit this test for compilers unknown to
2346 # Autoconf.
2347 for ac_file in $ac_files ''
2348 do
2349   test -f "$ac_file" || continue
2350   case $ac_file in
2351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2352         ;;
2353     [ab].out )
2354         # We found the default executable, but exeext='' is most
2355         # certainly right.
2356         break;;
2357     *.* )
2358         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2359         then :; else
2360            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2361         fi
2362         # We set ac_cv_exeext here because the later test for it is not
2363         # safe: cross compilers may not add the suffix if given an `-o'
2364         # argument, so we may need to know it at that point already.
2365         # Even if this section looks crufty: it has the advantage of
2366         # actually working.
2367         break;;
2368     * )
2369         break;;
2370   esac
2371 done
2372 test "$ac_cv_exeext" = no && ac_cv_exeext=
2373
2374 else
2375   ac_file=''
2376 fi
2377
2378 { echo "$as_me:$LINENO: result: $ac_file" >&5
2379 echo "${ECHO_T}$ac_file" >&6; }
2380 if test -z "$ac_file"; then
2381   echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2385 See \`config.log' for more details." >&5
2386 echo "$as_me: error: C compiler cannot create executables
2387 See \`config.log' for more details." >&2;}
2388    { (exit 77); exit 77; }; }
2389 fi
2390
2391 ac_exeext=$ac_cv_exeext
2392
2393 # Check that the compiler produces executables we can run.  If not, either
2394 # the compiler is broken, or we cross compile.
2395 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2396 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2397 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2398 # If not cross compiling, check that we can run a simple program.
2399 if test "$cross_compiling" != yes; then
2400   if { ac_try='./$ac_file'
2401   { (case "(($ac_try" in
2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403   *) ac_try_echo=$ac_try;;
2404 esac
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406   (eval "$ac_try") 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; }; then
2410     cross_compiling=no
2411   else
2412     if test "$cross_compiling" = maybe; then
2413         cross_compiling=yes
2414     else
2415         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2416 If you meant to cross compile, use \`--host'.
2417 See \`config.log' for more details." >&5
2418 echo "$as_me: error: cannot run C compiled programs.
2419 If you meant to cross compile, use \`--host'.
2420 See \`config.log' for more details." >&2;}
2421    { (exit 1); exit 1; }; }
2422     fi
2423   fi
2424 fi
2425 { echo "$as_me:$LINENO: result: yes" >&5
2426 echo "${ECHO_T}yes" >&6; }
2427
2428 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2429 ac_clean_files=$ac_clean_files_save
2430 # Check that the compiler produces executables we can run.  If not, either
2431 # the compiler is broken, or we cross compile.
2432 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2433 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2434 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2435 echo "${ECHO_T}$cross_compiling" >&6; }
2436
2437 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2438 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2439 if { (ac_try="$ac_link"
2440 case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445   (eval "$ac_link") 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; then
2449   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2450 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2451 # work properly (i.e., refer to `conftest.exe'), while it won't with
2452 # `rm'.
2453 for ac_file in conftest.exe conftest conftest.*; do
2454   test -f "$ac_file" || continue
2455   case $ac_file in
2456     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2457     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2458           break;;
2459     * ) break;;
2460   esac
2461 done
2462 else
2463   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2466 See \`config.log' for more details." >&2;}
2467    { (exit 1); exit 1; }; }
2468 fi
2469
2470 rm -f conftest$ac_cv_exeext
2471 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2472 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2473
2474 rm -f conftest.$ac_ext
2475 EXEEXT=$ac_cv_exeext
2476 ac_exeext=$EXEEXT
2477 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2478 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2479 if test "${ac_cv_objext+set}" = set; then
2480   echo $ECHO_N "(cached) $ECHO_C" >&6
2481 else
2482   cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h.  */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h.  */
2488
2489 int
2490 main ()
2491 {
2492
2493   ;
2494   return 0;
2495 }
2496 _ACEOF
2497 rm -f conftest.o conftest.obj
2498 if { (ac_try="$ac_compile"
2499 case "(($ac_try" in
2500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501   *) ac_try_echo=$ac_try;;
2502 esac
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504   (eval "$ac_compile") 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; then
2508   for ac_file in conftest.o conftest.obj conftest.*; do
2509   test -f "$ac_file" || continue;
2510   case $ac_file in
2511     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2512     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2513        break;;
2514   esac
2515 done
2516 else
2517   echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2521 See \`config.log' for more details." >&5
2522 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2523 See \`config.log' for more details." >&2;}
2524    { (exit 1); exit 1; }; }
2525 fi
2526
2527 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2528 fi
2529 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2530 echo "${ECHO_T}$ac_cv_objext" >&6; }
2531 OBJEXT=$ac_cv_objext
2532 ac_objext=$OBJEXT
2533 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2534 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2535 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2536   echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538   cat >conftest.$ac_ext <<_ACEOF
2539 /* confdefs.h.  */
2540 _ACEOF
2541 cat confdefs.h >>conftest.$ac_ext
2542 cat >>conftest.$ac_ext <<_ACEOF
2543 /* end confdefs.h.  */
2544
2545 int
2546 main ()
2547 {
2548 #ifndef __GNUC__
2549        choke me
2550 #endif
2551
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 rm -f conftest.$ac_objext
2557 if { (ac_try="$ac_compile"
2558 case "(($ac_try" in
2559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560   *) ac_try_echo=$ac_try;;
2561 esac
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563   (eval "$ac_compile") 2>conftest.er1
2564   ac_status=$?
2565   grep -v '^ *+' conftest.er1 >conftest.err
2566   rm -f conftest.er1
2567   cat conftest.err >&5
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); } && {
2570          test -z "$ac_c_werror_flag" ||
2571          test ! -s conftest.err
2572        } && test -s conftest.$ac_objext; then
2573   ac_compiler_gnu=yes
2574 else
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578         ac_compiler_gnu=no
2579 fi
2580
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2583
2584 fi
2585 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2586 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2587 GCC=`test $ac_compiler_gnu = yes && echo yes`
2588 ac_test_CFLAGS=${CFLAGS+set}
2589 ac_save_CFLAGS=$CFLAGS
2590 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2591 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_cc_g+set}" = set; then
2593   echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595   ac_save_c_werror_flag=$ac_c_werror_flag
2596    ac_c_werror_flag=yes
2597    ac_cv_prog_cc_g=no
2598    CFLAGS="-g"
2599    cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h.  */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h.  */
2605
2606 int
2607 main ()
2608 {
2609
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (ac_try="$ac_compile"
2616 case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_compile") 2>conftest.er1
2622   ac_status=$?
2623   grep -v '^ *+' conftest.er1 >conftest.err
2624   rm -f conftest.er1
2625   cat conftest.err >&5
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); } && {
2628          test -z "$ac_c_werror_flag" ||
2629          test ! -s conftest.err
2630        } && test -s conftest.$ac_objext; then
2631   ac_cv_prog_cc_g=yes
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636         CFLAGS=""
2637       cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h.  */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h.  */
2643
2644 int
2645 main ()
2646 {
2647
2648   ;
2649   return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext
2653 if { (ac_try="$ac_compile"
2654 case "(($ac_try" in
2655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656   *) ac_try_echo=$ac_try;;
2657 esac
2658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2659   (eval "$ac_compile") 2>conftest.er1
2660   ac_status=$?
2661   grep -v '^ *+' conftest.er1 >conftest.err
2662   rm -f conftest.er1
2663   cat conftest.err >&5
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); } && {
2666          test -z "$ac_c_werror_flag" ||
2667          test ! -s conftest.err
2668        } && test -s conftest.$ac_objext; then
2669   :
2670 else
2671   echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674         ac_c_werror_flag=$ac_save_c_werror_flag
2675          CFLAGS="-g"
2676          cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682
2683 int
2684 main ()
2685 {
2686
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext
2692 if { (ac_try="$ac_compile"
2693 case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698   (eval "$ac_compile") 2>conftest.er1
2699   ac_status=$?
2700   grep -v '^ *+' conftest.er1 >conftest.err
2701   rm -f conftest.er1
2702   cat conftest.err >&5
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } && {
2705          test -z "$ac_c_werror_flag" ||
2706          test ! -s conftest.err
2707        } && test -s conftest.$ac_objext; then
2708   ac_cv_prog_cc_g=yes
2709 else
2710   echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713
2714 fi
2715
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 fi
2718
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 fi
2721
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723    ac_c_werror_flag=$ac_save_c_werror_flag
2724 fi
2725 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2726 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2727 if test "$ac_test_CFLAGS" = set; then
2728   CFLAGS=$ac_save_CFLAGS
2729 elif test $ac_cv_prog_cc_g = yes; then
2730   if test "$GCC" = yes; then
2731     CFLAGS="-g -O2"
2732   else
2733     CFLAGS="-g"
2734   fi
2735 else
2736   if test "$GCC" = yes; then
2737     CFLAGS="-O2"
2738   else
2739     CFLAGS=
2740   fi
2741 fi
2742 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2743 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2744 if test "${ac_cv_prog_cc_c89+set}" = set; then
2745   echo $ECHO_N "(cached) $ECHO_C" >&6
2746 else
2747   ac_cv_prog_cc_c89=no
2748 ac_save_CC=$CC
2749 cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h.  */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h.  */
2755 #include <stdarg.h>
2756 #include <stdio.h>
2757 #include <sys/types.h>
2758 #include <sys/stat.h>
2759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2760 struct buf { int x; };
2761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2762 static char *e (p, i)
2763      char **p;
2764      int i;
2765 {
2766   return p[i];
2767 }
2768 static char *f (char * (*g) (char **, int), char **p, ...)
2769 {
2770   char *s;
2771   va_list v;
2772   va_start (v,p);
2773   s = g (p, va_arg (v,int));
2774   va_end (v);
2775   return s;
2776 }
2777
2778 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2779    function prototypes and stuff, but not '\xHH' hex character constants.
2780    These don't provoke an error unfortunately, instead are silently treated
2781    as 'x'.  The following induces an error, until -std is added to get
2782    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2783    array size at least.  It's necessary to write '\x00'==0 to get something
2784    that's true only with -std.  */
2785 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2786
2787 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2788    inside strings and character constants.  */
2789 #define FOO(x) 'x'
2790 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2791
2792 int test (int i, double x);
2793 struct s1 {int (*f) (int a);};
2794 struct s2 {int (*f) (double a);};
2795 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2796 int argc;
2797 char **argv;
2798 int
2799 main ()
2800 {
2801 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2802   ;
2803   return 0;
2804 }
2805 _ACEOF
2806 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2807         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2808 do
2809   CC="$ac_save_CC $ac_arg"
2810   rm -f conftest.$ac_objext
2811 if { (ac_try="$ac_compile"
2812 case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_compile") 2>conftest.er1
2818   ac_status=$?
2819   grep -v '^ *+' conftest.er1 >conftest.err
2820   rm -f conftest.er1
2821   cat conftest.err >&5
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); } && {
2824          test -z "$ac_c_werror_flag" ||
2825          test ! -s conftest.err
2826        } && test -s conftest.$ac_objext; then
2827   ac_cv_prog_cc_c89=$ac_arg
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832
2833 fi
2834
2835 rm -f core conftest.err conftest.$ac_objext
2836   test "x$ac_cv_prog_cc_c89" != "xno" && break
2837 done
2838 rm -f conftest.$ac_ext
2839 CC=$ac_save_CC
2840
2841 fi
2842 # AC_CACHE_VAL
2843 case "x$ac_cv_prog_cc_c89" in
2844   x)
2845     { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2847   xno)
2848     { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2850   *)
2851     CC="$CC $ac_cv_prog_cc_c89"
2852     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2854 esac
2855
2856
2857 ac_ext=c
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862
2863 ac_ext=cpp
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869   if test -n "$CCC"; then
2870     CXX=$CCC
2871   else
2872     if test -n "$ac_tool_prefix"; then
2873   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2874   do
2875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$CXX"; then
2883   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CXX=$ac_cv_prog_CXX
2903 if test -n "$CXX"; then
2904   { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$CXX" >&6; }
2906 else
2907   { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2909 fi
2910
2911
2912     test -n "$CXX" && break
2913   done
2914 fi
2915 if test -z "$CXX"; then
2916   ac_ct_CXX=$CXX
2917   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2918 do
2919   # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926   if test -n "$ac_ct_CXX"; then
2927   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932   IFS=$as_save_IFS
2933   test -z "$as_dir" && as_dir=.
2934   for ac_exec_ext in '' $ac_executable_extensions; do
2935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936     ac_cv_prog_ac_ct_CXX="$ac_prog"
2937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938     break 2
2939   fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2950 else
2951   { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2953 fi
2954
2955
2956   test -n "$ac_ct_CXX" && break
2957 done
2958
2959   if test "x$ac_ct_CXX" = x; then
2960     CXX="g++"
2961   else
2962     case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet.  If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet.  If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972     CXX=$ac_ct_CXX
2973   fi
2974 fi
2975
2976   fi
2977 fi
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2982 case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_compiler --version >&5") 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2992 case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_compiler -v >&5") 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compiler -V >&5") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }
3011
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023
3024 int
3025 main ()
3026 {
3027 #ifndef __GNUC__
3028        choke me
3029 #endif
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compile") 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } && {
3049          test -z "$ac_cxx_werror_flag" ||
3050          test ! -s conftest.err
3051        } && test -s conftest.$ac_objext; then
3052   ac_compiler_gnu=yes
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057         ac_compiler_gnu=no
3058 fi
3059
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3062
3063 fi
3064 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3065 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3066 GXX=`test $ac_compiler_gnu = yes && echo yes`
3067 ac_test_CXXFLAGS=${CXXFLAGS+set}
3068 ac_save_CXXFLAGS=$CXXFLAGS
3069 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3070 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_cxx_g+set}" = set; then
3072   echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3075    ac_cxx_werror_flag=yes
3076    ac_cv_prog_cxx_g=no
3077    CXXFLAGS="-g"
3078    cat >conftest.$ac_ext <<_ACEOF
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084
3085 int
3086 main ()
3087 {
3088
3089   ;
3090   return 0;
3091 }
3092 _ACEOF
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3095 case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100   (eval "$ac_compile") 2>conftest.er1
3101   ac_status=$?
3102   grep -v '^ *+' conftest.er1 >conftest.err
3103   rm -f conftest.er1
3104   cat conftest.err >&5
3105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106   (exit $ac_status); } && {
3107          test -z "$ac_cxx_werror_flag" ||
3108          test ! -s conftest.err
3109        } && test -s conftest.$ac_objext; then
3110   ac_cv_prog_cxx_g=yes
3111 else
3112   echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115         CXXFLAGS=""
3116       cat >conftest.$ac_ext <<_ACEOF
3117 /* confdefs.h.  */
3118 _ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h.  */
3122
3123 int
3124 main ()
3125 {
3126
3127   ;
3128   return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3133 case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_compile") 2>conftest.er1
3139   ac_status=$?
3140   grep -v '^ *+' conftest.er1 >conftest.err
3141   rm -f conftest.er1
3142   cat conftest.err >&5
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); } && {
3145          test -z "$ac_cxx_werror_flag" ||
3146          test ! -s conftest.err
3147        } && test -s conftest.$ac_objext; then
3148   :
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3154          CXXFLAGS="-g"
3155          cat >conftest.$ac_ext <<_ACEOF
3156 /* confdefs.h.  */
3157 _ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h.  */
3161
3162 int
3163 main ()
3164 {
3165
3166   ;
3167   return 0;
3168 }
3169 _ACEOF
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_compile") 2>conftest.er1
3178   ac_status=$?
3179   grep -v '^ *+' conftest.er1 >conftest.err
3180   rm -f conftest.er1
3181   cat conftest.err >&5
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); } && {
3184          test -z "$ac_cxx_werror_flag" ||
3185          test ! -s conftest.err
3186        } && test -s conftest.$ac_objext; then
3187   ac_cv_prog_cxx_g=yes
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192
3193 fi
3194
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 fi
3197
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 fi
3200
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3203 fi
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3206 if test "$ac_test_CXXFLAGS" = set; then
3207   CXXFLAGS=$ac_save_CXXFLAGS
3208 elif test $ac_cv_prog_cxx_g = yes; then
3209   if test "$GXX" = yes; then
3210     CXXFLAGS="-g -O2"
3211   else
3212     CXXFLAGS="-g"
3213   fi
3214 else
3215   if test "$GXX" = yes; then
3216     CXXFLAGS="-O2"
3217   else
3218     CXXFLAGS=
3219   fi
3220 fi
3221 ac_ext=c
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226
3227
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3235 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3236 # On Suns, sometimes $CPP names a directory.
3237 if test -n "$CPP" && test -d "$CPP"; then
3238   CPP=
3239 fi
3240 if test -z "$CPP"; then
3241   if test "${ac_cv_prog_CPP+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244       # Double quotes because CPP needs to be expanded
3245     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246     do
3247       ac_preproc_ok=false
3248 for ac_c_preproc_warn_flag in '' yes
3249 do
3250   # Use a header file that comes with gcc, so configuring glibc
3251   # with a fresh cross-compiler works.
3252   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3253   # <limits.h> exists even on freestanding compilers.
3254   # On the NeXT, cc -E runs the code through the compiler's parser,
3255   # not just through cpp. "Syntax error" is here to catch this case.
3256   cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h.  */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h.  */
3262 #ifdef __STDC__
3263 # include <limits.h>
3264 #else
3265 # include <assert.h>
3266 #endif
3267                      Syntax error
3268 _ACEOF
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } >/dev/null && {
3282          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3283          test ! -s conftest.err
3284        }; then
3285   :
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290   # Broken: fails on valid input.
3291 continue
3292 fi
3293
3294 rm -f conftest.err conftest.$ac_ext
3295
3296   # OK, works on sane cases.  Now check whether nonexistent headers
3297   # can be detected and how.
3298   cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h.  */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h.  */
3304 #include <ac_nonexistent.h>
3305 _ACEOF
3306 if { (ac_try="$ac_cpp conftest.$ac_ext"
3307 case "(($ac_try" in
3308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309   *) ac_try_echo=$ac_try;;
3310 esac
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3313   ac_status=$?
3314   grep -v '^ *+' conftest.er1 >conftest.err
3315   rm -f conftest.er1
3316   cat conftest.err >&5
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); } >/dev/null && {
3319          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3320          test ! -s conftest.err
3321        }; then
3322   # Broken: success on invalid input.
3323 continue
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328   # Passes both tests.
3329 ac_preproc_ok=:
3330 break
3331 fi
3332
3333 rm -f conftest.err conftest.$ac_ext
3334
3335 done
3336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3337 rm -f conftest.err conftest.$ac_ext
3338 if $ac_preproc_ok; then
3339   break
3340 fi
3341
3342     done
3343     ac_cv_prog_CPP=$CPP
3344
3345 fi
3346   CPP=$ac_cv_prog_CPP
3347 else
3348   ac_cv_prog_CPP=$CPP
3349 fi
3350 { echo "$as_me:$LINENO: result: $CPP" >&5
3351 echo "${ECHO_T}$CPP" >&6; }
3352 ac_preproc_ok=false
3353 for ac_c_preproc_warn_flag in '' yes
3354 do
3355   # Use a header file that comes with gcc, so configuring glibc
3356   # with a fresh cross-compiler works.
3357   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3358   # <limits.h> exists even on freestanding compilers.
3359   # On the NeXT, cc -E runs the code through the compiler's parser,
3360   # not just through cpp. "Syntax error" is here to catch this case.
3361   cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h.  */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h.  */
3367 #ifdef __STDC__
3368 # include <limits.h>
3369 #else
3370 # include <assert.h>
3371 #endif
3372                      Syntax error
3373 _ACEOF
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3375 case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381   ac_status=$?
3382   grep -v '^ *+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } >/dev/null && {
3387          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3388          test ! -s conftest.err
3389        }; then
3390   :
3391 else
3392   echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395   # Broken: fails on valid input.
3396 continue
3397 fi
3398
3399 rm -f conftest.err conftest.$ac_ext
3400
3401   # OK, works on sane cases.  Now check whether nonexistent headers
3402   # can be detected and how.
3403   cat >conftest.$ac_ext <<_ACEOF
3404 /* confdefs.h.  */
3405 _ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h.  */
3409 #include <ac_nonexistent.h>
3410 _ACEOF
3411 if { (ac_try="$ac_cpp conftest.$ac_ext"
3412 case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3418   ac_status=$?
3419   grep -v '^ *+' conftest.er1 >conftest.err
3420   rm -f conftest.er1
3421   cat conftest.err >&5
3422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423   (exit $ac_status); } >/dev/null && {
3424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3425          test ! -s conftest.err
3426        }; then
3427   # Broken: success on invalid input.
3428 continue
3429 else
3430   echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433   # Passes both tests.
3434 ac_preproc_ok=:
3435 break
3436 fi
3437
3438 rm -f conftest.err conftest.$ac_ext
3439
3440 done
3441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442 rm -f conftest.err conftest.$ac_ext
3443 if $ac_preproc_ok; then
3444   :
3445 else
3446   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&5
3448 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&2;}
3450    { (exit 1); exit 1; }; }
3451 fi
3452
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458
3459
3460 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3461 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3462 if test "${ac_cv_path_GREP+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   # Extract the first word of "grep ggrep" to use in msg output
3466 if test -z "$GREP"; then
3467 set dummy grep ggrep; ac_prog_name=$2
3468 if test "${ac_cv_path_GREP+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   ac_path_GREP_found=false
3472 # Loop through the user's path and test for each of PROGNAME-LIST
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478   for ac_prog in grep ggrep; do
3479   for ac_exec_ext in '' $ac_executable_extensions; do
3480     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3481     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3482     # Check for GNU ac_path_GREP and select it if it is found.
3483   # Check for GNU $ac_path_GREP
3484 case `"$ac_path_GREP" --version 2>&1` in
3485 *GNU*)
3486   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3487 *)
3488   ac_count=0
3489   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3490   while :
3491   do
3492     cat "conftest.in" "conftest.in" >"conftest.tmp"
3493     mv "conftest.tmp" "conftest.in"
3494     cp "conftest.in" "conftest.nl"
3495     echo 'GREP' >> "conftest.nl"
3496     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3497     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3498     ac_count=`expr $ac_count + 1`
3499     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3500       # Best one so far, save it but keep looking for a better one
3501       ac_cv_path_GREP="$ac_path_GREP"
3502       ac_path_GREP_max=$ac_count
3503     fi
3504     # 10*(2^10) chars as input seems more than enough
3505     test $ac_count -gt 10 && break
3506   done
3507   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3508 esac
3509
3510
3511     $ac_path_GREP_found && break 3
3512   done
3513 done
3514
3515 done
3516 IFS=$as_save_IFS
3517
3518
3519 fi
3520
3521 GREP="$ac_cv_path_GREP"
3522 if test -z "$GREP"; then
3523   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3524 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3525    { (exit 1); exit 1; }; }
3526 fi
3527
3528 else
3529   ac_cv_path_GREP=$GREP
3530 fi
3531
3532
3533 fi
3534 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3535 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3536  GREP="$ac_cv_path_GREP"
3537
3538
3539 { echo "$as_me:$LINENO: checking for egrep" >&5
3540 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3541 if test "${ac_cv_path_EGREP+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3545    then ac_cv_path_EGREP="$GREP -E"
3546    else
3547      # Extract the first word of "egrep" to use in msg output
3548 if test -z "$EGREP"; then
3549 set dummy egrep; ac_prog_name=$2
3550 if test "${ac_cv_path_EGREP+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   ac_path_EGREP_found=false
3554 # Loop through the user's path and test for each of PROGNAME-LIST
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560   for ac_prog in egrep; do
3561   for ac_exec_ext in '' $ac_executable_extensions; do
3562     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3563     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3564     # Check for GNU ac_path_EGREP and select it if it is found.
3565   # Check for GNU $ac_path_EGREP
3566 case `"$ac_path_EGREP" --version 2>&1` in
3567 *GNU*)
3568   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3569 *)
3570   ac_count=0
3571   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3572   while :
3573   do
3574     cat "conftest.in" "conftest.in" >"conftest.tmp"
3575     mv "conftest.tmp" "conftest.in"
3576     cp "conftest.in" "conftest.nl"
3577     echo 'EGREP' >> "conftest.nl"
3578     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3579     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3580     ac_count=`expr $ac_count + 1`
3581     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3582       # Best one so far, save it but keep looking for a better one
3583       ac_cv_path_EGREP="$ac_path_EGREP"
3584       ac_path_EGREP_max=$ac_count
3585     fi
3586     # 10*(2^10) chars as input seems more than enough
3587     test $ac_count -gt 10 && break
3588   done
3589   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3590 esac
3591
3592
3593     $ac_path_EGREP_found && break 3
3594   done
3595 done
3596
3597 done
3598 IFS=$as_save_IFS
3599
3600
3601 fi
3602
3603 EGREP="$ac_cv_path_EGREP"
3604 if test -z "$EGREP"; then
3605   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3606 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3607    { (exit 1); exit 1; }; }
3608 fi
3609
3610 else
3611   ac_cv_path_EGREP=$EGREP
3612 fi
3613
3614
3615    fi
3616 fi
3617 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3618 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3619  EGREP="$ac_cv_path_EGREP"
3620
3621
3622
3623 { echo "$as_me:$LINENO: checking for AIX" >&5
3624 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3625 cat >conftest.$ac_ext <<_ACEOF
3626 /* confdefs.h.  */
3627 _ACEOF
3628 cat confdefs.h >>conftest.$ac_ext
3629 cat >>conftest.$ac_ext <<_ACEOF
3630 /* end confdefs.h.  */
3631 #ifdef _AIX
3632   yes
3633 #endif
3634
3635 _ACEOF
3636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3637   $EGREP "yes" >/dev/null 2>&1; then
3638   { echo "$as_me:$LINENO: result: yes" >&5
3639 echo "${ECHO_T}yes" >&6; }
3640 cat >>confdefs.h <<\_ACEOF
3641 #define _ALL_SOURCE 1
3642 _ACEOF
3643
3644 else
3645   { echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6; }
3647 fi
3648 rm -f conftest*
3649
3650
3651
3652 if test $ac_cv_c_compiler_gnu = yes; then
3653     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3654 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3655 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658     ac_pattern="Autoconf.*'x'"
3659   cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h.  */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h.  */
3665 #include <sgtty.h>
3666 Autoconf TIOCGETP
3667 _ACEOF
3668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3669   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3670   ac_cv_prog_gcc_traditional=yes
3671 else
3672   ac_cv_prog_gcc_traditional=no
3673 fi
3674 rm -f conftest*
3675
3676
3677   if test $ac_cv_prog_gcc_traditional = no; then
3678     cat >conftest.$ac_ext <<_ACEOF
3679 /* confdefs.h.  */
3680 _ACEOF
3681 cat confdefs.h >>conftest.$ac_ext
3682 cat >>conftest.$ac_ext <<_ACEOF
3683 /* end confdefs.h.  */
3684 #include <termio.h>
3685 Autoconf TCGETA
3686 _ACEOF
3687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3688   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3689   ac_cv_prog_gcc_traditional=yes
3690 fi
3691 rm -f conftest*
3692
3693   fi
3694 fi
3695 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3696 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3697   if test $ac_cv_prog_gcc_traditional = yes; then
3698     CC="$CC -traditional"
3699   fi
3700 fi
3701
3702 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3703 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3704 if test "${ac_cv_prog_suncc+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   cat > conftest.c <<EOF
3708 #ifdef __SUNPRO_C
3709   yes;
3710 #endif
3711 EOF
3712 if { ac_try='${CC-cc} -E conftest.c'
3713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714   (eval $ac_try) 2>&5
3715   ac_status=$?
3716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3718   ac_cv_prog_suncc=yes
3719 else
3720   ac_cv_prog_suncc=no
3721 fi
3722 fi
3723 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3724 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3725 if test -n "$ac_tool_prefix"; then
3726   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3730 if test "${ac_cv_prog_RANLIB+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   if test -n "$RANLIB"; then
3734   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3735 else
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 for as_dir in $PATH
3738 do
3739   IFS=$as_save_IFS
3740   test -z "$as_dir" && as_dir=.
3741   for ac_exec_ext in '' $ac_executable_extensions; do
3742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3743     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3745     break 2
3746   fi
3747 done
3748 done
3749 IFS=$as_save_IFS
3750
3751 fi
3752 fi
3753 RANLIB=$ac_cv_prog_RANLIB
3754 if test -n "$RANLIB"; then
3755   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3756 echo "${ECHO_T}$RANLIB" >&6; }
3757 else
3758   { echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6; }
3760 fi
3761
3762
3763 fi
3764 if test -z "$ac_cv_prog_RANLIB"; then
3765   ac_ct_RANLIB=$RANLIB
3766   # Extract the first word of "ranlib", so it can be a program name with args.
3767 set dummy ranlib; ac_word=$2
3768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3770 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3771   echo $ECHO_N "(cached) $ECHO_C" >&6
3772 else
3773   if test -n "$ac_ct_RANLIB"; then
3774   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781   for ac_exec_ext in '' $ac_executable_extensions; do
3782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783     ac_cv_prog_ac_ct_RANLIB="ranlib"
3784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785     break 2
3786   fi
3787 done
3788 done
3789 IFS=$as_save_IFS
3790
3791 fi
3792 fi
3793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3794 if test -n "$ac_ct_RANLIB"; then
3795   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3796 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3797 else
3798   { echo "$as_me:$LINENO: result: no" >&5
3799 echo "${ECHO_T}no" >&6; }
3800 fi
3801
3802   if test "x$ac_ct_RANLIB" = x; then
3803     RANLIB=":"
3804   else
3805     case $cross_compiling:$ac_tool_warned in
3806 yes:)
3807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3808 whose name does not start with the host triplet.  If you think this
3809 configuration is useful to you, please write to autoconf@gnu.org." >&5
3810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3811 whose name does not start with the host triplet.  If you think this
3812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3813 ac_tool_warned=yes ;;
3814 esac
3815     RANLIB=$ac_ct_RANLIB
3816   fi
3817 else
3818   RANLIB="$ac_cv_prog_RANLIB"
3819 fi
3820
3821
3822 # Check whether --enable-largefile was given.
3823 if test "${enable_largefile+set}" = set; then
3824   enableval=$enable_largefile;
3825 fi
3826
3827 if test "$enable_largefile" != no; then
3828
3829   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3830 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3831 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   ac_cv_sys_largefile_CC=no
3835      if test "$GCC" != yes; then
3836        ac_save_CC=$CC
3837        while :; do
3838          # IRIX 6.2 and later do not support large files by default,
3839          # so use the C compiler's -n32 option if that helps.
3840          cat >conftest.$ac_ext <<_ACEOF
3841 /* confdefs.h.  */
3842 _ACEOF
3843 cat confdefs.h >>conftest.$ac_ext
3844 cat >>conftest.$ac_ext <<_ACEOF
3845 /* end confdefs.h.  */
3846 #include <sys/types.h>
3847  /* Check that off_t can represent 2**63 - 1 correctly.
3848     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3849     since some C++ compilers masquerading as C compilers
3850     incorrectly reject 9223372036854775807.  */
3851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3852   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3853                        && LARGE_OFF_T % 2147483647 == 1)
3854                       ? 1 : -1];
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863          rm -f conftest.$ac_objext
3864 if { (ac_try="$ac_compile"
3865 case "(($ac_try" in
3866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867   *) ac_try_echo=$ac_try;;
3868 esac
3869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3870   (eval "$ac_compile") 2>conftest.er1
3871   ac_status=$?
3872   grep -v '^ *+' conftest.er1 >conftest.err
3873   rm -f conftest.er1
3874   cat conftest.err >&5
3875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876   (exit $ac_status); } && {
3877          test -z "$ac_c_werror_flag" ||
3878          test ! -s conftest.err
3879        } && test -s conftest.$ac_objext; then
3880   break
3881 else
3882   echo "$as_me: failed program was:" >&5
3883 sed 's/^/| /' conftest.$ac_ext >&5
3884
3885
3886 fi
3887
3888 rm -f core conftest.err conftest.$ac_objext
3889          CC="$CC -n32"
3890          rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3892 case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897   (eval "$ac_compile") 2>conftest.er1
3898   ac_status=$?
3899   grep -v '^ *+' conftest.er1 >conftest.err
3900   rm -f conftest.er1
3901   cat conftest.err >&5
3902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); } && {
3904          test -z "$ac_c_werror_flag" ||
3905          test ! -s conftest.err
3906        } && test -s conftest.$ac_objext; then
3907   ac_cv_sys_largefile_CC=' -n32'; break
3908 else
3909   echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912
3913 fi
3914
3915 rm -f core conftest.err conftest.$ac_objext
3916          break
3917        done
3918        CC=$ac_save_CC
3919        rm -f conftest.$ac_ext
3920     fi
3921 fi
3922 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3923 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3924   if test "$ac_cv_sys_largefile_CC" != no; then
3925     CC=$CC$ac_cv_sys_largefile_CC
3926   fi
3927
3928   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3929 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3930 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   while :; do
3934   cat >conftest.$ac_ext <<_ACEOF
3935 /* confdefs.h.  */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h.  */
3940 #include <sys/types.h>
3941  /* Check that off_t can represent 2**63 - 1 correctly.
3942     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3943     since some C++ compilers masquerading as C compilers
3944     incorrectly reject 9223372036854775807.  */
3945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3946   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3947                        && LARGE_OFF_T % 2147483647 == 1)
3948                       ? 1 : -1];
3949 int
3950 main ()
3951 {
3952
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 rm -f conftest.$ac_objext
3958 if { (ac_try="$ac_compile"
3959 case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964   (eval "$ac_compile") 2>conftest.er1
3965   ac_status=$?
3966   grep -v '^ *+' conftest.er1 >conftest.err
3967   rm -f conftest.er1
3968   cat conftest.err >&5
3969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970   (exit $ac_status); } && {
3971          test -z "$ac_c_werror_flag" ||
3972          test ! -s conftest.err
3973        } && test -s conftest.$ac_objext; then
3974   ac_cv_sys_file_offset_bits=no; break
3975 else
3976   echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3978
3979
3980 fi
3981
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983   cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h.  */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h.  */
3989 #define _FILE_OFFSET_BITS 64
3990 #include <sys/types.h>
3991  /* Check that off_t can represent 2**63 - 1 correctly.
3992     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3993     since some C++ compilers masquerading as C compilers
3994     incorrectly reject 9223372036854775807.  */
3995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3996   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3997                        && LARGE_OFF_T % 2147483647 == 1)
3998                       ? 1 : -1];
3999 int
4000 main ()
4001 {
4002
4003   ;
4004   return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.$ac_objext
4008 if { (ac_try="$ac_compile"
4009 case "(($ac_try" in
4010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011   *) ac_try_echo=$ac_try;;
4012 esac
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014   (eval "$ac_compile") 2>conftest.er1
4015   ac_status=$?
4016   grep -v '^ *+' conftest.er1 >conftest.err
4017   rm -f conftest.er1
4018   cat conftest.err >&5
4019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020   (exit $ac_status); } && {
4021          test -z "$ac_c_werror_flag" ||
4022          test ! -s conftest.err
4023        } && test -s conftest.$ac_objext; then
4024   ac_cv_sys_file_offset_bits=64; break
4025 else
4026   echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029
4030 fi
4031
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033   ac_cv_sys_file_offset_bits=unknown
4034   break
4035 done
4036 fi
4037 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4038 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4039 case $ac_cv_sys_file_offset_bits in #(
4040   no | unknown) ;;
4041   *)
4042 cat >>confdefs.h <<_ACEOF
4043 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4044 _ACEOF
4045 ;;
4046 esac
4047 rm -f conftest*
4048   if test $ac_cv_sys_file_offset_bits = unknown; then
4049     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4050 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4051 if test "${ac_cv_sys_large_files+set}" = set; then
4052   echo $ECHO_N "(cached) $ECHO_C" >&6
4053 else
4054   while :; do
4055   cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h.  */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h.  */
4061 #include <sys/types.h>
4062  /* Check that off_t can represent 2**63 - 1 correctly.
4063     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4064     since some C++ compilers masquerading as C compilers
4065     incorrectly reject 9223372036854775807.  */
4066 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4067   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4068                        && LARGE_OFF_T % 2147483647 == 1)
4069                       ? 1 : -1];
4070 int
4071 main ()
4072 {
4073
4074   ;
4075   return 0;
4076 }
4077 _ACEOF
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4080 case "(($ac_try" in
4081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082   *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085   (eval "$ac_compile") 2>conftest.er1
4086   ac_status=$?
4087   grep -v '^ *+' conftest.er1 >conftest.err
4088   rm -f conftest.er1
4089   cat conftest.err >&5
4090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091   (exit $ac_status); } && {
4092          test -z "$ac_c_werror_flag" ||
4093          test ! -s conftest.err
4094        } && test -s conftest.$ac_objext; then
4095   ac_cv_sys_large_files=no; break
4096 else
4097   echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100
4101 fi
4102
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104   cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h.  */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h.  */
4110 #define _LARGE_FILES 1
4111 #include <sys/types.h>
4112  /* Check that off_t can represent 2**63 - 1 correctly.
4113     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4114     since some C++ compilers masquerading as C compilers
4115     incorrectly reject 9223372036854775807.  */
4116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4117   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4118                        && LARGE_OFF_T % 2147483647 == 1)
4119                       ? 1 : -1];
4120 int
4121 main ()
4122 {
4123
4124   ;
4125   return 0;
4126 }
4127 _ACEOF
4128 rm -f conftest.$ac_objext
4129 if { (ac_try="$ac_compile"
4130 case "(($ac_try" in
4131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132   *) ac_try_echo=$ac_try;;
4133 esac
4134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135   (eval "$ac_compile") 2>conftest.er1
4136   ac_status=$?
4137   grep -v '^ *+' conftest.er1 >conftest.err
4138   rm -f conftest.er1
4139   cat conftest.err >&5
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); } && {
4142          test -z "$ac_c_werror_flag" ||
4143          test ! -s conftest.err
4144        } && test -s conftest.$ac_objext; then
4145   ac_cv_sys_large_files=1; break
4146 else
4147   echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4149
4150
4151 fi
4152
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154   ac_cv_sys_large_files=unknown
4155   break
4156 done
4157 fi
4158 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4159 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4160 case $ac_cv_sys_large_files in #(
4161   no | unknown) ;;
4162   *)
4163 cat >>confdefs.h <<_ACEOF
4164 #define _LARGE_FILES $ac_cv_sys_large_files
4165 _ACEOF
4166 ;;
4167 esac
4168 rm -f conftest*
4169   fi
4170 fi
4171
4172
4173 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4174 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4175 if test "${ac_cv_header_stdc+set}" = set; then
4176   echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178   cat >conftest.$ac_ext <<_ACEOF
4179 /* confdefs.h.  */
4180 _ACEOF
4181 cat confdefs.h >>conftest.$ac_ext
4182 cat >>conftest.$ac_ext <<_ACEOF
4183 /* end confdefs.h.  */
4184 #include <stdlib.h>
4185 #include <stdarg.h>
4186 #include <string.h>
4187 #include <float.h>
4188
4189 int
4190 main ()
4191 {
4192
4193   ;
4194   return 0;
4195 }
4196 _ACEOF
4197 rm -f conftest.$ac_objext
4198 if { (ac_try="$ac_compile"
4199 case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204   (eval "$ac_compile") 2>conftest.er1
4205   ac_status=$?
4206   grep -v '^ *+' conftest.er1 >conftest.err
4207   rm -f conftest.er1
4208   cat conftest.err >&5
4209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } && {
4211          test -z "$ac_c_werror_flag" ||
4212          test ! -s conftest.err
4213        } && test -s conftest.$ac_objext; then
4214   ac_cv_header_stdc=yes
4215 else
4216   echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219         ac_cv_header_stdc=no
4220 fi
4221
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223
4224 if test $ac_cv_header_stdc = yes; then
4225   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4226   cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h.  */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h.  */
4232 #include <string.h>
4233
4234 _ACEOF
4235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4236   $EGREP "memchr" >/dev/null 2>&1; then
4237   :
4238 else
4239   ac_cv_header_stdc=no
4240 fi
4241 rm -f conftest*
4242
4243 fi
4244
4245 if test $ac_cv_header_stdc = yes; then
4246   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4247   cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h.  */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h.  */
4253 #include <stdlib.h>
4254
4255 _ACEOF
4256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257   $EGREP "free" >/dev/null 2>&1; then
4258   :
4259 else
4260   ac_cv_header_stdc=no
4261 fi
4262 rm -f conftest*
4263
4264 fi
4265
4266 if test $ac_cv_header_stdc = yes; then
4267   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268   if test "$cross_compiling" = yes; then
4269   :
4270 else
4271   cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h.  */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h.  */
4277 #include <ctype.h>
4278 #include <stdlib.h>
4279 #if ((' ' & 0x0FF) == 0x020)
4280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4282 #else
4283 # define ISLOWER(c) \
4284                    (('a' <= (c) && (c) <= 'i') \
4285                      || ('j' <= (c) && (c) <= 'r') \
4286                      || ('s' <= (c) && (c) <= 'z'))
4287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4288 #endif
4289
4290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4291 int
4292 main ()
4293 {
4294   int i;
4295   for (i = 0; i < 256; i++)
4296     if (XOR (islower (i), ISLOWER (i))
4297         || toupper (i) != TOUPPER (i))
4298       return 2;
4299   return 0;
4300 }
4301 _ACEOF
4302 rm -f conftest$ac_exeext
4303 if { (ac_try="$ac_link"
4304 case "(($ac_try" in
4305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306   *) ac_try_echo=$ac_try;;
4307 esac
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309   (eval "$ac_link") 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4313   { (case "(($ac_try" in
4314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4315   *) ac_try_echo=$ac_try;;
4316 esac
4317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4318   (eval "$ac_try") 2>&5
4319   ac_status=$?
4320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321   (exit $ac_status); }; }; then
4322   :
4323 else
4324   echo "$as_me: program exited with status $ac_status" >&5
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328 ( exit $ac_status )
4329 ac_cv_header_stdc=no
4330 fi
4331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4332 fi
4333
4334
4335 fi
4336 fi
4337 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4338 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4339 if test $ac_cv_header_stdc = yes; then
4340
4341 cat >>confdefs.h <<\_ACEOF
4342 #define STDC_HEADERS 1
4343 _ACEOF
4344
4345 fi
4346
4347 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4358                   inttypes.h stdint.h unistd.h
4359 do
4360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366   cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 $ac_includes_default
4373
4374 #include <$ac_header>
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4378 case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383   (eval "$ac_compile") 2>conftest.er1
4384   ac_status=$?
4385   grep -v '^ *+' conftest.er1 >conftest.err
4386   rm -f conftest.er1
4387   cat conftest.err >&5
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); } && {
4390          test -z "$ac_c_werror_flag" ||
4391          test ! -s conftest.err
4392        } && test -s conftest.$ac_objext; then
4393   eval "$as_ac_Header=yes"
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398         eval "$as_ac_Header=no"
4399 fi
4400
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 fi
4403 ac_res=`eval echo '${'$as_ac_Header'}'`
4404                { echo "$as_me:$LINENO: result: $ac_res" >&5
4405 echo "${ECHO_T}$ac_res" >&6; }
4406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4407   cat >>confdefs.h <<_ACEOF
4408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4409 _ACEOF
4410
4411 fi
4412
4413 done
4414
4415
4416 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4417 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4418 if test "${ac_cv_c_bigendian+set}" = set; then
4419   echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421   # See if sys/param.h defines the BYTE_ORDER macro.
4422 cat >conftest.$ac_ext <<_ACEOF
4423 /* confdefs.h.  */
4424 _ACEOF
4425 cat confdefs.h >>conftest.$ac_ext
4426 cat >>conftest.$ac_ext <<_ACEOF
4427 /* end confdefs.h.  */
4428 #include <sys/types.h>
4429 #include <sys/param.h>
4430
4431 int
4432 main ()
4433 {
4434 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4435         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4436  bogus endian macros
4437 #endif
4438
4439   ;
4440   return 0;
4441 }
4442 _ACEOF
4443 rm -f conftest.$ac_objext
4444 if { (ac_try="$ac_compile"
4445 case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450   (eval "$ac_compile") 2>conftest.er1
4451   ac_status=$?
4452   grep -v '^ *+' conftest.er1 >conftest.err
4453   rm -f conftest.er1
4454   cat conftest.err >&5
4455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456   (exit $ac_status); } && {
4457          test -z "$ac_c_werror_flag" ||
4458          test ! -s conftest.err
4459        } && test -s conftest.$ac_objext; then
4460   # It does; now see whether it defined to BIG_ENDIAN or not.
4461 cat >conftest.$ac_ext <<_ACEOF
4462 /* confdefs.h.  */
4463 _ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h.  */
4467 #include <sys/types.h>
4468 #include <sys/param.h>
4469
4470 int
4471 main ()
4472 {
4473 #if BYTE_ORDER != BIG_ENDIAN
4474  not big endian
4475 #endif
4476
4477   ;
4478   return 0;
4479 }
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (ac_try="$ac_compile"
4483 case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_compile") 2>conftest.er1
4489   ac_status=$?
4490   grep -v '^ *+' conftest.er1 >conftest.err
4491   rm -f conftest.er1
4492   cat conftest.err >&5
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } && {
4495          test -z "$ac_c_werror_flag" ||
4496          test ! -s conftest.err
4497        } && test -s conftest.$ac_objext; then
4498   ac_cv_c_bigendian=yes
4499 else
4500   echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503         ac_cv_c_bigendian=no
4504 fi
4505
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 else
4508   echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4510
4511         # It does not; compile a test program.
4512 if test "$cross_compiling" = yes; then
4513   # try to guess the endianness by grepping values into an object file
4514   ac_cv_c_bigendian=unknown
4515   cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h.  */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h.  */
4521 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4522 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4523 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4524 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4525 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4526 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4527 int
4528 main ()
4529 {
4530  _ascii (); _ebcdic ();
4531   ;
4532   return 0;
4533 }
4534 _ACEOF
4535 rm -f conftest.$ac_objext
4536 if { (ac_try="$ac_compile"
4537 case "(($ac_try" in
4538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539   *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542   (eval "$ac_compile") 2>conftest.er1
4543   ac_status=$?
4544   grep -v '^ *+' conftest.er1 >conftest.err
4545   rm -f conftest.er1
4546   cat conftest.err >&5
4547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); } && {
4549          test -z "$ac_c_werror_flag" ||
4550          test ! -s conftest.err
4551        } && test -s conftest.$ac_objext; then
4552   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4553   ac_cv_c_bigendian=yes
4554 fi
4555 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4556   if test "$ac_cv_c_bigendian" = unknown; then
4557     ac_cv_c_bigendian=no
4558   else
4559     # finding both strings is unlikely to happen, but who knows?
4560     ac_cv_c_bigendian=unknown
4561   fi
4562 fi
4563 else
4564   echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4566
4567
4568 fi
4569
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 else
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578 $ac_includes_default
4579 int
4580 main ()
4581 {
4582
4583   /* Are we little or big endian?  From Harbison&Steele.  */
4584   union
4585   {
4586     long int l;
4587     char c[sizeof (long int)];
4588   } u;
4589   u.l = 1;
4590   return u.c[sizeof (long int) - 1] == 1;
4591
4592   ;
4593   return 0;
4594 }
4595 _ACEOF
4596 rm -f conftest$ac_exeext
4597 if { (ac_try="$ac_link"
4598 case "(($ac_try" in
4599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600   *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603   (eval "$ac_link") 2>&5
4604   ac_status=$?
4605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4607   { (case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612   (eval "$ac_try") 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; }; then
4616   ac_cv_c_bigendian=no
4617 else
4618   echo "$as_me: program exited with status $ac_status" >&5
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ( exit $ac_status )
4623 ac_cv_c_bigendian=yes
4624 fi
4625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4626 fi
4627
4628
4629 fi
4630
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 fi
4633 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4634 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4635 case $ac_cv_c_bigendian in
4636   yes)
4637
4638 cat >>confdefs.h <<\_ACEOF
4639 #define WORDS_BIGENDIAN 1
4640 _ACEOF
4641  ;;
4642   no)
4643      ;;
4644   *)
4645     { { echo "$as_me:$LINENO: error: unknown endianness
4646 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4647 echo "$as_me: error: unknown endianness
4648 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4649    { (exit 1); exit 1; }; } ;;
4650 esac
4651
4652
4653 # Extract the first word of "gmake", so it can be a program name with args.
4654 set dummy gmake; ac_word=$2
4655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657 if test "${ac_cv_prog_GMAKE+set}" = set; then
4658   echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660   if test -n "$GMAKE"; then
4661   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668   for ac_exec_ext in '' $ac_executable_extensions; do
4669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670     ac_cv_prog_GMAKE="yes"
4671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4679 fi
4680 fi
4681 GMAKE=$ac_cv_prog_GMAKE
4682 if test -n "$GMAKE"; then
4683   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4684 echo "${ECHO_T}$GMAKE" >&6; }
4685 else
4686   { echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6; }
4688 fi
4689
4690
4691 if test $GMAKE = no; then
4692   # Extract the first word of "make", so it can be a program name with args.
4693 set dummy make; ac_word=$2
4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696 if test "${ac_cv_path_MAKE+set}" = set; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   case $MAKE in
4700   [\\/]* | ?:[\\/]*)
4701   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4702   ;;
4703   *)
4704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4705 for as_dir in $PATH
4706 do
4707   IFS=$as_save_IFS
4708   test -z "$as_dir" && as_dir=.
4709   for ac_exec_ext in '' $ac_executable_extensions; do
4710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4713     break 2
4714   fi
4715 done
4716 done
4717 IFS=$as_save_IFS
4718
4719   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4720   ;;
4721 esac
4722 fi
4723 MAKE=$ac_cv_path_MAKE
4724 if test -n "$MAKE"; then
4725   { echo "$as_me:$LINENO: result: $MAKE" >&5
4726 echo "${ECHO_T}$MAKE" >&6; }
4727 else
4728   { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4730 fi
4731
4732
4733 else
4734   # Extract the first word of "gmake", so it can be a program name with args.
4735 set dummy gmake; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_path_MAKE+set}" = set; then
4739   echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741   case $MAKE in
4742   [\\/]* | ?:[\\/]*)
4743   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4744   ;;
4745   *)
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751   for ac_exec_ext in '' $ac_executable_extensions; do
4752   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755     break 2
4756   fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4762   ;;
4763 esac
4764 fi
4765 MAKE=$ac_cv_path_MAKE
4766 if test -n "$MAKE"; then
4767   { echo "$as_me:$LINENO: result: $MAKE" >&5
4768 echo "${ECHO_T}$MAKE" >&6; }
4769 else
4770   { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4772 fi
4773
4774
4775 fi
4776 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4777 if test -z "$makever"; then
4778   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4779                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4780 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4781                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4782    { (exit 1); exit 1; }; }
4783 fi
4784
4785   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4786 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4787 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790   ac_check_lib_save_LIBS=$LIBS
4791 LIBS="-lltdl  $LIBS"
4792 cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798
4799 /* Override any GCC internal prototype to avoid an error.
4800    Use char because int might match the return type of a GCC
4801    builtin and then its argument prototype would still apply.  */
4802 #ifdef __cplusplus
4803 extern "C"
4804 #endif
4805 char lt_dlinit ();
4806 int
4807 main ()
4808 {
4809 return lt_dlinit ();
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (ac_try="$ac_link"
4816 case "(($ac_try" in
4817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818   *) ac_try_echo=$ac_try;;
4819 esac
4820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821   (eval "$ac_link") 2>conftest.er1
4822   ac_status=$?
4823   grep -v '^ *+' conftest.er1 >conftest.err
4824   rm -f conftest.er1
4825   cat conftest.err >&5
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); } && {
4828          test -z "$ac_c_werror_flag" ||
4829          test ! -s conftest.err
4830        } && test -s conftest$ac_exeext &&
4831        $as_test_x conftest$ac_exeext; then
4832   ac_cv_lib_ltdl_lt_dlinit=yes
4833 else
4834   echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4836
4837         ac_cv_lib_ltdl_lt_dlinit=no
4838 fi
4839
4840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4841       conftest$ac_exeext conftest.$ac_ext
4842 LIBS=$ac_check_lib_save_LIBS
4843 fi
4844 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4845 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4846 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4847   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4848 else
4849   if test x"$enable_ltdl_install" = xno; then
4850      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4851 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4852    else
4853      enable_ltdl_install=yes
4854    fi
4855
4856 fi
4857
4858   if test x"$enable_ltdl_install" = x"yes"; then
4859     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4860     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4861     LTDLINCL='-I${top_srcdir}/''libltdl'
4862   else
4863     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4864     LIBLTDL="-lltdl"
4865     LTDLINCL=
4866   fi
4867   # For backwards non-gettext consistent compatibility...
4868   INCLTDL="$LTDLINCL"
4869
4870
4871 if test x"$enable_ltdl_install" = x"yes"; then
4872   LTDL_SUBDIRS=libltdl
4873 fi
4874
4875
4876 # Check whether --enable-shared was given.
4877 if test "${enable_shared+set}" = set; then
4878   enableval=$enable_shared; p=${PACKAGE-default}
4879     case $enableval in
4880     yes) enable_shared=yes ;;
4881     no) enable_shared=no ;;
4882     *)
4883       enable_shared=no
4884       # Look at the argument we got.  We use all the common list separators.
4885       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4886       for pkg in $enableval; do
4887         IFS="$lt_save_ifs"
4888         if test "X$pkg" = "X$p"; then
4889           enable_shared=yes
4890         fi
4891       done
4892       IFS="$lt_save_ifs"
4893       ;;
4894     esac
4895 else
4896   enable_shared=yes
4897 fi
4898
4899
4900 # Check whether --enable-static was given.
4901 if test "${enable_static+set}" = set; then
4902   enableval=$enable_static; p=${PACKAGE-default}
4903     case $enableval in
4904     yes) enable_static=yes ;;
4905     no) enable_static=no ;;
4906     *)
4907      enable_static=no
4908       # Look at the argument we got.  We use all the common list separators.
4909       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4910       for pkg in $enableval; do
4911         IFS="$lt_save_ifs"
4912         if test "X$pkg" = "X$p"; then
4913           enable_static=yes
4914         fi
4915       done
4916       IFS="$lt_save_ifs"
4917       ;;
4918     esac
4919 else
4920   enable_static=yes
4921 fi
4922
4923
4924 # Check whether --enable-fast-install was given.
4925 if test "${enable_fast_install+set}" = set; then
4926   enableval=$enable_fast_install; p=${PACKAGE-default}
4927     case $enableval in
4928     yes) enable_fast_install=yes ;;
4929     no) enable_fast_install=no ;;
4930     *)
4931       enable_fast_install=no
4932       # Look at the argument we got.  We use all the common list separators.
4933       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4934       for pkg in $enableval; do
4935         IFS="$lt_save_ifs"
4936         if test "X$pkg" = "X$p"; then
4937           enable_fast_install=yes
4938         fi
4939       done
4940       IFS="$lt_save_ifs"
4941       ;;
4942     esac
4943 else
4944   enable_fast_install=yes
4945 fi
4946
4947
4948 ac_aux_dir=
4949 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4950   if test -f "$ac_dir/install-sh"; then
4951     ac_aux_dir=$ac_dir
4952     ac_install_sh="$ac_aux_dir/install-sh -c"
4953     break
4954   elif test -f "$ac_dir/install.sh"; then
4955     ac_aux_dir=$ac_dir
4956     ac_install_sh="$ac_aux_dir/install.sh -c"
4957     break
4958   elif test -f "$ac_dir/shtool"; then
4959     ac_aux_dir=$ac_dir
4960     ac_install_sh="$ac_aux_dir/shtool install -c"
4961     break
4962   fi
4963 done
4964 if test -z "$ac_aux_dir"; then
4965   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4966 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4967    { (exit 1); exit 1; }; }
4968 fi
4969
4970 # These three variables are undocumented and unsupported,
4971 # and are intended to be withdrawn in a future Autoconf release.
4972 # They can cause serious problems if a builder's source tree is in a directory
4973 # whose full name contains unusual characters.
4974 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4975 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4976 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4977
4978
4979 # Make sure we can run config.sub.
4980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4981   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4982 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4983    { (exit 1); exit 1; }; }
4984
4985 { echo "$as_me:$LINENO: checking build system type" >&5
4986 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4987 if test "${ac_cv_build+set}" = set; then
4988   echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990   ac_build_alias=$build_alias
4991 test "x$ac_build_alias" = x &&
4992   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4993 test "x$ac_build_alias" = x &&
4994   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4995 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4996    { (exit 1); exit 1; }; }
4997 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4998   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4999 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5000    { (exit 1); exit 1; }; }
5001
5002 fi
5003 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5004 echo "${ECHO_T}$ac_cv_build" >&6; }
5005 case $ac_cv_build in
5006 *-*-*) ;;
5007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5008 echo "$as_me: error: invalid value of canonical build" >&2;}
5009    { (exit 1); exit 1; }; };;
5010 esac
5011 build=$ac_cv_build
5012 ac_save_IFS=$IFS; IFS='-'
5013 set x $ac_cv_build
5014 shift
5015 build_cpu=$1
5016 build_vendor=$2
5017 shift; shift
5018 # Remember, the first character of IFS is used to create $*,
5019 # except with old shells:
5020 build_os=$*
5021 IFS=$ac_save_IFS
5022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5023
5024
5025 { echo "$as_me:$LINENO: checking host system type" >&5
5026 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5027 if test "${ac_cv_host+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030   if test "x$host_alias" = x; then
5031   ac_cv_host=$ac_cv_build
5032 else
5033   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5034     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5036    { (exit 1); exit 1; }; }
5037 fi
5038
5039 fi
5040 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5041 echo "${ECHO_T}$ac_cv_host" >&6; }
5042 case $ac_cv_host in
5043 *-*-*) ;;
5044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5045 echo "$as_me: error: invalid value of canonical host" >&2;}
5046    { (exit 1); exit 1; }; };;
5047 esac
5048 host=$ac_cv_host
5049 ac_save_IFS=$IFS; IFS='-'
5050 set x $ac_cv_host
5051 shift
5052 host_cpu=$1
5053 host_vendor=$2
5054 shift; shift
5055 # Remember, the first character of IFS is used to create $*,
5056 # except with old shells:
5057 host_os=$*
5058 IFS=$ac_save_IFS
5059 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5060
5061
5062 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5063 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5064 if test "${lt_cv_path_SED+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   # Loop through the user's path and test for sed and gsed.
5068 # Then use that list of sed's as ones to test for truncation.
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074   for lt_ac_prog in sed gsed; do
5075     for ac_exec_ext in '' $ac_executable_extensions; do
5076       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5077         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5078       fi
5079     done
5080   done
5081 done
5082 lt_ac_max=0
5083 lt_ac_count=0
5084 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5085 # along with /bin/sed that truncates output.
5086 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5087   test ! -f $lt_ac_sed && continue
5088   cat /dev/null > conftest.in
5089   lt_ac_count=0
5090   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5091   # Check for GNU sed and select it if it is found.
5092   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5093     lt_cv_path_SED=$lt_ac_sed
5094     break
5095   fi
5096   while true; do
5097     cat conftest.in conftest.in >conftest.tmp
5098     mv conftest.tmp conftest.in
5099     cp conftest.in conftest.nl
5100     echo >>conftest.nl
5101     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5102     cmp -s conftest.out conftest.nl || break
5103     # 10000 chars as input seems more than enough
5104     test $lt_ac_count -gt 10 && break
5105     lt_ac_count=`expr $lt_ac_count + 1`
5106     if test $lt_ac_count -gt $lt_ac_max; then
5107       lt_ac_max=$lt_ac_count
5108       lt_cv_path_SED=$lt_ac_sed
5109     fi
5110   done
5111 done
5112
5113 fi
5114
5115 SED=$lt_cv_path_SED
5116 { echo "$as_me:$LINENO: result: $SED" >&5
5117 echo "${ECHO_T}$SED" >&6; }
5118
5119
5120 # Check whether --with-gnu-ld was given.
5121 if test "${with_gnu_ld+set}" = set; then
5122   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5123 else
5124   with_gnu_ld=no
5125 fi
5126
5127 ac_prog=ld
5128 if test "$GCC" = yes; then
5129   # Check if gcc -print-prog-name=ld gives a path.
5130   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5131 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5132   case $host in
5133   *-*-mingw*)
5134     # gcc leaves a trailing carriage return which upsets mingw
5135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5136   *)
5137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5138   esac
5139   case $ac_prog in
5140     # Accept absolute paths.
5141     [\\/]* | ?:[\\/]*)
5142       re_direlt='/[^/][^/]*/\.\./'
5143       # Canonicalize the pathname of ld
5144       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5145       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5146         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5147       done
5148       test -z "$LD" && LD="$ac_prog"
5149       ;;
5150   "")
5151     # If it fails, then pretend we aren't using GCC.
5152     ac_prog=ld
5153     ;;
5154   *)
5155     # If it is relative, then search for the first ld in PATH.
5156     with_gnu_ld=unknown
5157     ;;
5158   esac
5159 elif test "$with_gnu_ld" = yes; then
5160   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5161 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5162 else
5163   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5164 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5165 fi
5166 if test "${lt_cv_path_LD+set}" = set; then
5167   echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169   if test -z "$LD"; then
5170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5171   for ac_dir in $PATH; do
5172     IFS="$lt_save_ifs"
5173     test -z "$ac_dir" && ac_dir=.
5174     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5175       lt_cv_path_LD="$ac_dir/$ac_prog"
5176       # Check to see if the program is GNU ld.  I'd rather use --version,
5177       # but apparently some variants of GNU ld only accept -v.
5178       # Break only if it was the GNU/non-GNU ld that we prefer.
5179       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5180       *GNU* | *'with BFD'*)
5181         test "$with_gnu_ld" != no && break
5182         ;;
5183       *)
5184         test "$with_gnu_ld" != yes && break
5185         ;;
5186       esac
5187     fi
5188   done
5189   IFS="$lt_save_ifs"
5190 else
5191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5192 fi
5193 fi
5194
5195 LD="$lt_cv_path_LD"
5196 if test -n "$LD"; then
5197   { echo "$as_me:$LINENO: result: $LD" >&5
5198 echo "${ECHO_T}$LD" >&6; }
5199 else
5200   { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5202 fi
5203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5205    { (exit 1); exit 1; }; }
5206 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5208 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5212 case `$LD -v 2>&1 </dev/null` in
5213 *GNU* | *'with BFD'*)
5214   lt_cv_prog_gnu_ld=yes
5215   ;;
5216 *)
5217   lt_cv_prog_gnu_ld=no
5218   ;;
5219 esac
5220 fi
5221 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5222 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5223 with_gnu_ld=$lt_cv_prog_gnu_ld
5224
5225
5226 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5227 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5228 if test "${lt_cv_ld_reload_flag+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231   lt_cv_ld_reload_flag='-r'
5232 fi
5233 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5234 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5235 reload_flag=$lt_cv_ld_reload_flag
5236 case $reload_flag in
5237 "" | " "*) ;;
5238 *) reload_flag=" $reload_flag" ;;
5239 esac
5240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5241 case $host_os in
5242   darwin*)
5243     if test "$GCC" = yes; then
5244       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5245     else
5246       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5247     fi
5248     ;;
5249 esac
5250
5251 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5252 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5253 if test "${lt_cv_path_NM+set}" = set; then
5254   echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256   if test -n "$NM"; then
5257   # Let the user override the test.
5258   lt_cv_path_NM="$NM"
5259 else
5260   lt_nm_to_check="${ac_tool_prefix}nm"
5261   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5262     lt_nm_to_check="$lt_nm_to_check nm"
5263   fi
5264   for lt_tmp_nm in $lt_nm_to_check; do
5265     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5266     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5267       IFS="$lt_save_ifs"
5268       test -z "$ac_dir" && ac_dir=.
5269       tmp_nm="$ac_dir/$lt_tmp_nm"
5270       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5271         # Check to see if the nm accepts a BSD-compat flag.
5272         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5273         #   nm: unknown option "B" ignored
5274         # Tru64's nm complains that /dev/null is an invalid object file
5275         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5276         */dev/null* | *'Invalid file or object type'*)
5277           lt_cv_path_NM="$tmp_nm -B"
5278           break
5279           ;;
5280         *)
5281           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5282           */dev/null*)
5283             lt_cv_path_NM="$tmp_nm -p"
5284             break
5285             ;;
5286           *)
5287             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5288             continue # so that we can try to find one that supports BSD flags
5289             ;;
5290           esac
5291           ;;
5292         esac
5293       fi
5294     done
5295     IFS="$lt_save_ifs"
5296   done
5297   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5298 fi
5299 fi
5300 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5301 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5302 NM="$lt_cv_path_NM"
5303
5304 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5305 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5306 LN_S=$as_ln_s
5307 if test "$LN_S" = "ln -s"; then
5308   { echo "$as_me:$LINENO: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6; }
5310 else
5311   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5312 echo "${ECHO_T}no, using $LN_S" >&6; }
5313 fi
5314
5315 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5316 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5317 if test "${lt_cv_deplibs_check_method+set}" = set; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320   lt_cv_file_magic_cmd='$MAGIC_CMD'
5321 lt_cv_file_magic_test_file=
5322 lt_cv_deplibs_check_method='unknown'
5323 # Need to set the preceding variable on all platforms that support
5324 # interlibrary dependencies.
5325 # 'none' -- dependencies not supported.
5326 # `unknown' -- same as none, but documents that we really don't know.
5327 # 'pass_all' -- all dependencies passed with no checks.
5328 # 'test_compile' -- check by making test program.
5329 # 'file_magic [[regex]]' -- check by looking for files in library path
5330 # which responds to the $file_magic_cmd with a given extended regex.
5331 # If you have `file' or equivalent on your system and you're not sure
5332 # whether `pass_all' will *always* work, you probably want this one.
5333
5334 case $host_os in
5335 aix4* | aix5*)
5336   lt_cv_deplibs_check_method=pass_all
5337   ;;
5338
5339 beos*)
5340   lt_cv_deplibs_check_method=pass_all
5341   ;;
5342
5343 bsdi[45]*)
5344   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5345   lt_cv_file_magic_cmd='/usr/bin/file -L'
5346   lt_cv_file_magic_test_file=/shlib/libc.so
5347   ;;
5348
5349 cygwin*)
5350   # func_win32_libid is a shell function defined in ltmain.sh
5351   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5352   lt_cv_file_magic_cmd='func_win32_libid'
5353   ;;
5354
5355 mingw* | pw32*)
5356   # Base MSYS/MinGW do not provide the 'file' command needed by
5357   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5358   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5359   lt_cv_file_magic_cmd='$OBJDUMP -f'
5360   ;;
5361
5362 darwin* | rhapsody*)
5363   lt_cv_deplibs_check_method=pass_all
5364   ;;
5365
5366 freebsd* | kfreebsd*-gnu | dragonfly*)
5367   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5368     case $host_cpu in
5369     i*86 )
5370       # Not sure whether the presence of OpenBSD here was a mistake.
5371       # Let's accept both of them until this is cleared up.
5372       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5373       lt_cv_file_magic_cmd=/usr/bin/file
5374       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5375       ;;
5376     esac
5377   else
5378     lt_cv_deplibs_check_method=pass_all
5379   fi
5380   ;;
5381
5382 gnu*)
5383   lt_cv_deplibs_check_method=pass_all
5384   ;;
5385
5386 hpux10.20* | hpux11*)
5387   lt_cv_file_magic_cmd=/usr/bin/file
5388   case $host_cpu in
5389   ia64*)
5390     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5391     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5392     ;;
5393   hppa*64*)
5394     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]'
5395     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5396     ;;
5397   *)
5398     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5399     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5400     ;;
5401   esac
5402   ;;
5403
5404 interix3*)
5405   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5406   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5407   ;;
5408
5409 irix5* | irix6* | nonstopux*)
5410   case $LD in
5411   *-32|*"-32 ") libmagic=32-bit;;
5412   *-n32|*"-n32 ") libmagic=N32;;
5413   *-64|*"-64 ") libmagic=64-bit;;
5414   *) libmagic=never-match;;
5415   esac
5416   lt_cv_deplibs_check_method=pass_all
5417   ;;
5418
5419 # This must be Linux ELF.
5420 linux*)
5421   lt_cv_deplibs_check_method=pass_all
5422   ;;
5423
5424 netbsd*)
5425   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5426     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5427   else
5428     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5429   fi
5430   ;;
5431
5432 newos6*)
5433   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5434   lt_cv_file_magic_cmd=/usr/bin/file
5435   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5436   ;;
5437
5438 nto-qnx*)
5439   lt_cv_deplibs_check_method=unknown
5440   ;;
5441
5442 openbsd*)
5443   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5444     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5445   else
5446     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5447   fi
5448   ;;
5449
5450 osf3* | osf4* | osf5*)
5451   lt_cv_deplibs_check_method=pass_all
5452   ;;
5453
5454 solaris*)
5455   lt_cv_deplibs_check_method=pass_all
5456   ;;
5457
5458 sysv4 | sysv4.3*)
5459   case $host_vendor in
5460   motorola)
5461     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]'
5462     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5463     ;;
5464   ncr)
5465     lt_cv_deplibs_check_method=pass_all
5466     ;;
5467   sequent)
5468     lt_cv_file_magic_cmd='/bin/file'
5469     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5470     ;;
5471   sni)
5472     lt_cv_file_magic_cmd='/bin/file'
5473     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5474     lt_cv_file_magic_test_file=/lib/libc.so
5475     ;;
5476   siemens)
5477     lt_cv_deplibs_check_method=pass_all
5478     ;;
5479   pc)
5480     lt_cv_deplibs_check_method=pass_all
5481     ;;
5482   esac
5483   ;;
5484
5485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488 esac
5489
5490 fi
5491 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5492 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5493 file_magic_cmd=$lt_cv_file_magic_cmd
5494 deplibs_check_method=$lt_cv_deplibs_check_method
5495 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5496
5497
5498
5499
5500 # If no C compiler was specified, use CC.
5501 LTCC=${LTCC-"$CC"}
5502
5503 # If no C compiler flags were specified, use CFLAGS.
5504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5505
5506 # Allow CC to be a program name with arguments.
5507 compiler=$CC
5508
5509 # Check whether --enable-libtool-lock was given.
5510 if test "${enable_libtool_lock+set}" = set; then
5511   enableval=$enable_libtool_lock;
5512 fi
5513
5514 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5515
5516 # Some flags need to be propagated to the compiler or linker for good
5517 # libtool support.
5518 case $host in
5519 ia64-*-hpux*)
5520   # Find out which ABI we are using.
5521   echo 'int i;' > conftest.$ac_ext
5522   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5523   (eval $ac_compile) 2>&5
5524   ac_status=$?
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); }; then
5527     case `/usr/bin/file conftest.$ac_objext` in
5528     *ELF-32*)
5529       HPUX_IA64_MODE="32"
5530       ;;
5531     *ELF-64*)
5532       HPUX_IA64_MODE="64"
5533       ;;
5534     esac
5535   fi
5536   rm -rf conftest*
5537   ;;
5538 *-*-irix6*)
5539   # Find out which ABI we are using.
5540   echo '#line 5540 "configure"' > conftest.$ac_ext
5541   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5542   (eval $ac_compile) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); }; then
5546    if test "$lt_cv_prog_gnu_ld" = yes; then
5547     case `/usr/bin/file conftest.$ac_objext` in
5548     *32-bit*)
5549       LD="${LD-ld} -melf32bsmip"
5550       ;;
5551     *N32*)
5552       LD="${LD-ld} -melf32bmipn32"
5553       ;;
5554     *64-bit*)
5555       LD="${LD-ld} -melf64bmip"
5556       ;;
5557     esac
5558    else
5559     case `/usr/bin/file conftest.$ac_objext` in
5560     *32-bit*)
5561       LD="${LD-ld} -32"
5562       ;;
5563     *N32*)
5564       LD="${LD-ld} -n32"
5565       ;;
5566     *64-bit*)
5567       LD="${LD-ld} -64"
5568       ;;
5569     esac
5570    fi
5571   fi
5572   rm -rf conftest*
5573   ;;
5574
5575 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5576   # Find out which ABI we are using.
5577   echo 'int i;' > conftest.$ac_ext
5578   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5579   (eval $ac_compile) 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); }; then
5583     case `/usr/bin/file conftest.o` in
5584     *32-bit*)
5585       case $host in
5586         x86_64-*linux*)
5587           LD="${LD-ld} -m elf_i386"
5588           ;;
5589         ppc64-*linux*|powerpc64-*linux*)
5590           LD="${LD-ld} -m elf32ppclinux"
5591           ;;
5592         s390x-*linux*)
5593           LD="${LD-ld} -m elf_s390"
5594           ;;
5595         sparc64-*linux*)
5596           LD="${LD-ld} -m elf32_sparc"
5597           ;;
5598       esac
5599       ;;
5600     *64-bit*)
5601       case $host in
5602         x86_64-*linux*)
5603           LD="${LD-ld} -m elf_x86_64"
5604           ;;
5605         ppc*-*linux*|powerpc*-*linux*)
5606           LD="${LD-ld} -m elf64ppc"
5607           ;;
5608         s390*-*linux*)
5609           LD="${LD-ld} -m elf64_s390"
5610           ;;
5611         sparc*-*linux*)
5612           LD="${LD-ld} -m elf64_sparc"
5613           ;;
5614       esac
5615       ;;
5616     esac
5617   fi
5618   rm -rf conftest*
5619   ;;
5620
5621 *-*-sco3.2v5*)
5622   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5623   SAVE_CFLAGS="$CFLAGS"
5624   CFLAGS="$CFLAGS -belf"
5625   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5626 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5627 if test "${lt_cv_cc_needs_belf+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   ac_ext=c
5631 ac_cpp='$CPP $CPPFLAGS'
5632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5635
5636      cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h.  */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h.  */
5642
5643 int
5644 main ()
5645 {
5646
5647   ;
5648   return 0;
5649 }
5650 _ACEOF
5651 rm -f conftest.$ac_objext conftest$ac_exeext
5652 if { (ac_try="$ac_link"
5653 case "(($ac_try" in
5654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655   *) ac_try_echo=$ac_try;;
5656 esac
5657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658   (eval "$ac_link") 2>conftest.er1
5659   ac_status=$?
5660   grep -v '^ *+' conftest.er1 >conftest.err
5661   rm -f conftest.er1
5662   cat conftest.err >&5
5663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664   (exit $ac_status); } && {
5665          test -z "$ac_c_werror_flag" ||
5666          test ! -s conftest.err
5667        } && test -s conftest$ac_exeext &&
5668        $as_test_x conftest$ac_exeext; then
5669   lt_cv_cc_needs_belf=yes
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674         lt_cv_cc_needs_belf=no
5675 fi
5676
5677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5678       conftest$ac_exeext conftest.$ac_ext
5679      ac_ext=c
5680 ac_cpp='$CPP $CPPFLAGS'
5681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684
5685 fi
5686 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5687 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5688   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5689     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5690     CFLAGS="$SAVE_CFLAGS"
5691   fi
5692   ;;
5693 sparc*-*solaris*)
5694   # Find out which ABI we are using.
5695   echo 'int i;' > conftest.$ac_ext
5696   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5697   (eval $ac_compile) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; then
5701     case `/usr/bin/file conftest.o` in
5702     *64-bit*)
5703       case $lt_cv_prog_gnu_ld in
5704       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5705       *)    LD="${LD-ld} -64" ;;
5706       esac
5707       ;;
5708     esac
5709   fi
5710   rm -rf conftest*
5711   ;;
5712
5713
5714 esac
5715
5716 need_locks="$enable_libtool_lock"
5717
5718
5719
5720 for ac_header in dlfcn.h
5721 do
5722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5724   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 fi
5729 ac_res=`eval echo '${'$as_ac_Header'}'`
5730                { echo "$as_me:$LINENO: result: $ac_res" >&5
5731 echo "${ECHO_T}$ac_res" >&6; }
5732 else
5733   # Is the header compilable?
5734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5736 cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742 $ac_includes_default
5743 #include <$ac_header>
5744 _ACEOF
5745 rm -f conftest.$ac_objext
5746 if { (ac_try="$ac_compile"
5747 case "(($ac_try" in
5748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749   *) ac_try_echo=$ac_try;;
5750 esac
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752   (eval "$ac_compile") 2>conftest.er1
5753   ac_status=$?
5754   grep -v '^ *+' conftest.er1 >conftest.err
5755   rm -f conftest.er1
5756   cat conftest.err >&5
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); } && {
5759          test -z "$ac_c_werror_flag" ||
5760          test ! -s conftest.err
5761        } && test -s conftest.$ac_objext; then
5762   ac_header_compiler=yes
5763 else
5764   echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5766
5767         ac_header_compiler=no
5768 fi
5769
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5772 echo "${ECHO_T}$ac_header_compiler" >&6; }
5773
5774 # Is the header present?
5775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5777 cat >conftest.$ac_ext <<_ACEOF
5778 /* confdefs.h.  */
5779 _ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h.  */
5783 #include <$ac_header>
5784 _ACEOF
5785 if { (ac_try="$ac_cpp conftest.$ac_ext"
5786 case "(($ac_try" in
5787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788   *) ac_try_echo=$ac_try;;
5789 esac
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5792   ac_status=$?
5793   grep -v '^ *+' conftest.er1 >conftest.err
5794   rm -f conftest.er1
5795   cat conftest.err >&5
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); } >/dev/null && {
5798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5799          test ! -s conftest.err
5800        }; then
5801   ac_header_preproc=yes
5802 else
5803   echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806   ac_header_preproc=no
5807 fi
5808
5809 rm -f conftest.err conftest.$ac_ext
5810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5811 echo "${ECHO_T}$ac_header_preproc" >&6; }
5812
5813 # So?  What about this header?
5814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5815   yes:no: )
5816     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5820     ac_header_preproc=yes
5821     ;;
5822   no:yes:* )
5823     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5825     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5826 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5827     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5829     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5830 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5831     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5833     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5835
5836     ;;
5837 esac
5838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   eval "$as_ac_Header=\$ac_header_preproc"
5844 fi
5845 ac_res=`eval echo '${'$as_ac_Header'}'`
5846                { echo "$as_me:$LINENO: result: $ac_res" >&5
5847 echo "${ECHO_T}$ac_res" >&6; }
5848
5849 fi
5850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5851   cat >>confdefs.h <<_ACEOF
5852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5853 _ACEOF
5854
5855 fi
5856
5857 done
5858
5859
5860
5861 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5862     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5863     (test "X$CXX" != "Xg++"))) ; then
5864   ac_ext=cpp
5865 ac_cpp='$CXXCPP $CPPFLAGS'
5866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5869 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5870 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5871 if test -z "$CXXCPP"; then
5872   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875       # Double quotes because CXXCPP needs to be expanded
5876     for CXXCPP in "$CXX -E" "/lib/cpp"
5877     do
5878       ac_preproc_ok=false
5879 for ac_cxx_preproc_warn_flag in '' yes
5880 do
5881   # Use a header file that comes with gcc, so configuring glibc
5882   # with a fresh cross-compiler works.
5883   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5884   # <limits.h> exists even on freestanding compilers.
5885   # On the NeXT, cc -E runs the code through the compiler's parser,
5886   # not just through cpp. "Syntax error" is here to catch this case.
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 #ifdef __STDC__
5894 # include <limits.h>
5895 #else
5896 # include <assert.h>
5897 #endif
5898                      Syntax error
5899 _ACEOF
5900 if { (ac_try="$ac_cpp conftest.$ac_ext"
5901 case "(($ac_try" in
5902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903   *) ac_try_echo=$ac_try;;
5904 esac
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5907   ac_status=$?
5908   grep -v '^ *+' conftest.er1 >conftest.err
5909   rm -f conftest.er1
5910   cat conftest.err >&5
5911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912   (exit $ac_status); } >/dev/null && {
5913          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5914          test ! -s conftest.err
5915        }; then
5916   :
5917 else
5918   echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5920
5921   # Broken: fails on valid input.
5922 continue
5923 fi
5924
5925 rm -f conftest.err conftest.$ac_ext
5926
5927   # OK, works on sane cases.  Now check whether nonexistent headers
5928   # can be detected and how.
5929   cat >conftest.$ac_ext <<_ACEOF
5930 /* confdefs.h.  */
5931 _ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h.  */
5935 #include <ac_nonexistent.h>
5936 _ACEOF
5937 if { (ac_try="$ac_cpp conftest.$ac_ext"
5938 case "(($ac_try" in
5939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940   *) ac_try_echo=$ac_try;;
5941 esac
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5944   ac_status=$?
5945   grep -v '^ *+' conftest.er1 >conftest.err
5946   rm -f conftest.er1
5947   cat conftest.err >&5
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); } >/dev/null && {
5950          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5951          test ! -s conftest.err
5952        }; then
5953   # Broken: success on invalid input.
5954 continue
5955 else
5956   echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5958
5959   # Passes both tests.
5960 ac_preproc_ok=:
5961 break
5962 fi
5963
5964 rm -f conftest.err conftest.$ac_ext
5965
5966 done
5967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5968 rm -f conftest.err conftest.$ac_ext
5969 if $ac_preproc_ok; then
5970   break
5971 fi
5972
5973     done
5974     ac_cv_prog_CXXCPP=$CXXCPP
5975
5976 fi
5977   CXXCPP=$ac_cv_prog_CXXCPP
5978 else
5979   ac_cv_prog_CXXCPP=$CXXCPP
5980 fi
5981 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5982 echo "${ECHO_T}$CXXCPP" >&6; }
5983 ac_preproc_ok=false
5984 for ac_cxx_preproc_warn_flag in '' yes
5985 do
5986   # Use a header file that comes with gcc, so configuring glibc
5987   # with a fresh cross-compiler works.
5988   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5989   # <limits.h> exists even on freestanding compilers.
5990   # On the NeXT, cc -E runs the code through the compiler's parser,
5991   # not just through cpp. "Syntax error" is here to catch this case.
5992   cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h.  */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h.  */
5998 #ifdef __STDC__
5999 # include <limits.h>
6000 #else
6001 # include <assert.h>
6002 #endif
6003                      Syntax error
6004 _ACEOF
6005 if { (ac_try="$ac_cpp conftest.$ac_ext"
6006 case "(($ac_try" in
6007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6008   *) ac_try_echo=$ac_try;;
6009 esac
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } >/dev/null && {
6018          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6019          test ! -s conftest.err
6020        }; then
6021   :
6022 else
6023   echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6025
6026   # Broken: fails on valid input.
6027 continue
6028 fi
6029
6030 rm -f conftest.err conftest.$ac_ext
6031
6032   # OK, works on sane cases.  Now check whether nonexistent headers
6033   # can be detected and how.
6034   cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h.  */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h.  */
6040 #include <ac_nonexistent.h>
6041 _ACEOF
6042 if { (ac_try="$ac_cpp conftest.$ac_ext"
6043 case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6049   ac_status=$?
6050   grep -v '^ *+' conftest.er1 >conftest.err
6051   rm -f conftest.er1
6052   cat conftest.err >&5
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } >/dev/null && {
6055          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6056          test ! -s conftest.err
6057        }; then
6058   # Broken: success on invalid input.
6059 continue
6060 else
6061   echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064   # Passes both tests.
6065 ac_preproc_ok=:
6066 break
6067 fi
6068
6069 rm -f conftest.err conftest.$ac_ext
6070
6071 done
6072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073 rm -f conftest.err conftest.$ac_ext
6074 if $ac_preproc_ok; then
6075   :
6076 else
6077   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6078 See \`config.log' for more details." >&5
6079 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6080 See \`config.log' for more details." >&2;}
6081    { (exit 1); exit 1; }; }
6082 fi
6083
6084 ac_ext=cpp
6085 ac_cpp='$CXXCPP $CPPFLAGS'
6086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6089
6090 fi
6091
6092
6093 ac_ext=f
6094 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6095 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6096 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6097 if test -n "$ac_tool_prefix"; then
6098   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
6099   do
6100     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6104 if test "${ac_cv_prog_F77+set}" = set; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   if test -n "$F77"; then
6108   ac_cv_prog_F77="$F77" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113   IFS=$as_save_IFS
6114   test -z "$as_dir" && as_dir=.
6115   for ac_exec_ext in '' $ac_executable_extensions; do
6116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6119     break 2
6120   fi
6121 done
6122 done
6123 IFS=$as_save_IFS
6124
6125 fi
6126 fi
6127 F77=$ac_cv_prog_F77
6128 if test -n "$F77"; then
6129   { echo "$as_me:$LINENO: result: $F77" >&5
6130 echo "${ECHO_T}$F77" >&6; }
6131 else
6132   { echo "$as_me:$LINENO: result: no" >&5
6133 echo "${ECHO_T}no" >&6; }
6134 fi
6135
6136
6137     test -n "$F77" && break
6138   done
6139 fi
6140 if test -z "$F77"; then
6141   ac_ct_F77=$F77
6142   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
6143 do
6144   # Extract the first word of "$ac_prog", so it can be a program name with args.
6145 set dummy $ac_prog; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   if test -n "$ac_ct_F77"; then
6152   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157   IFS=$as_save_IFS
6158   test -z "$as_dir" && as_dir=.
6159   for ac_exec_ext in '' $ac_executable_extensions; do
6160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161     ac_cv_prog_ac_ct_F77="$ac_prog"
6162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163     break 2
6164   fi
6165 done
6166 done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6172 if test -n "$ac_ct_F77"; then
6173   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6174 echo "${ECHO_T}$ac_ct_F77" >&6; }
6175 else
6176   { echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6; }
6178 fi
6179
6180
6181   test -n "$ac_ct_F77" && break
6182 done
6183
6184   if test "x$ac_ct_F77" = x; then
6185     F77=""
6186   else
6187     case $cross_compiling:$ac_tool_warned in
6188 yes:)
6189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6190 whose name does not start with the host triplet.  If you think this
6191 configuration is useful to you, please write to autoconf@gnu.org." >&5
6192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6193 whose name does not start with the host triplet.  If you think this
6194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6195 ac_tool_warned=yes ;;
6196 esac
6197     F77=$ac_ct_F77
6198   fi
6199 fi
6200
6201
6202 # Provide some information about the compiler.
6203 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6204 ac_compiler=`set X $ac_compile; echo $2`
6205 { (ac_try="$ac_compiler --version >&5"
6206 case "(($ac_try" in
6207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208   *) ac_try_echo=$ac_try;;
6209 esac
6210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211   (eval "$ac_compiler --version >&5") 2>&5
6212   ac_status=$?
6213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214   (exit $ac_status); }
6215 { (ac_try="$ac_compiler -v >&5"
6216 case "(($ac_try" in
6217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218   *) ac_try_echo=$ac_try;;
6219 esac
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221   (eval "$ac_compiler -v >&5") 2>&5
6222   ac_status=$?
6223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224   (exit $ac_status); }
6225 { (ac_try="$ac_compiler -V >&5"
6226 case "(($ac_try" in
6227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228   *) ac_try_echo=$ac_try;;
6229 esac
6230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231   (eval "$ac_compiler -V >&5") 2>&5
6232   ac_status=$?
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); }
6235 rm -f a.out
6236
6237 # If we don't use `.F' as extension, the preprocessor is not run on the
6238 # input file.  (Note that this only needs to work for GNU compilers.)
6239 ac_save_ext=$ac_ext
6240 ac_ext=F
6241 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6242 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6243 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   cat >conftest.$ac_ext <<_ACEOF
6247       program main
6248 #ifndef __GNUC__
6249        choke me
6250 #endif
6251
6252       end
6253 _ACEOF
6254 rm -f conftest.$ac_objext
6255 if { (ac_try="$ac_compile"
6256 case "(($ac_try" in
6257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258   *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261   (eval "$ac_compile") 2>conftest.er1
6262   ac_status=$?
6263   grep -v '^ *+' conftest.er1 >conftest.err
6264   rm -f conftest.er1
6265   cat conftest.err >&5
6266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267   (exit $ac_status); } && {
6268          test -z "$ac_f77_werror_flag" ||
6269          test ! -s conftest.err
6270        } && test -s conftest.$ac_objext; then
6271   ac_compiler_gnu=yes
6272 else
6273   echo "$as_me: failed program was:" >&5
6274 sed 's/^/| /' conftest.$ac_ext >&5
6275
6276         ac_compiler_gnu=no
6277 fi
6278
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6281
6282 fi
6283 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6284 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6285 ac_ext=$ac_save_ext
6286 ac_test_FFLAGS=${FFLAGS+set}
6287 ac_save_FFLAGS=$FFLAGS
6288 FFLAGS=
6289 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6290 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6291 if test "${ac_cv_prog_f77_g+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   FFLAGS=-g
6295 cat >conftest.$ac_ext <<_ACEOF
6296       program main
6297
6298       end
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (ac_try="$ac_compile"
6302 case "(($ac_try" in
6303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304   *) ac_try_echo=$ac_try;;
6305 esac
6306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307   (eval "$ac_compile") 2>conftest.er1
6308   ac_status=$?
6309   grep -v '^ *+' conftest.er1 >conftest.err
6310   rm -f conftest.er1
6311   cat conftest.err >&5
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } && {
6314          test -z "$ac_f77_werror_flag" ||
6315          test ! -s conftest.err
6316        } && test -s conftest.$ac_objext; then
6317   ac_cv_prog_f77_g=yes
6318 else
6319   echo "$as_me: failed program was:" >&5
6320 sed 's/^/| /' conftest.$ac_ext >&5
6321
6322         ac_cv_prog_f77_g=no
6323 fi
6324
6325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326
6327 fi
6328 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6329 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6330 if test "$ac_test_FFLAGS" = set; then
6331   FFLAGS=$ac_save_FFLAGS
6332 elif test $ac_cv_prog_f77_g = yes; then
6333   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6334     FFLAGS="-g -O2"
6335   else
6336     FFLAGS="-g"
6337   fi
6338 else
6339   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6340     FFLAGS="-O2"
6341   else
6342     FFLAGS=
6343   fi
6344 fi
6345
6346 G77=`test $ac_compiler_gnu = yes && echo yes`
6347 ac_ext=c
6348 ac_cpp='$CPP $CPPFLAGS'
6349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6352
6353
6354
6355 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6356
6357 # find the maximum length of command line arguments
6358 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6359 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6360 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363     i=0
6364   teststring="ABCD"
6365
6366   case $build_os in
6367   msdosdjgpp*)
6368     # On DJGPP, this test can blow up pretty badly due to problems in libc
6369     # (any single argument exceeding 2000 bytes causes a buffer overrun
6370     # during glob expansion).  Even if it were fixed, the result of this
6371     # check would be larger than it should be.
6372     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6373     ;;
6374
6375   gnu*)
6376     # Under GNU Hurd, this test is not required because there is
6377     # no limit to the length of command line arguments.
6378     # Libtool will interpret -1 as no limit whatsoever
6379     lt_cv_sys_max_cmd_len=-1;
6380     ;;
6381
6382   cygwin* | mingw*)
6383     # On Win9x/ME, this test blows up -- it succeeds, but takes
6384     # about 5 minutes as the teststring grows exponentially.
6385     # Worse, since 9x/ME are not pre-emptively multitasking,
6386     # you end up with a "frozen" computer, even though with patience
6387     # the test eventually succeeds (with a max line length of 256k).
6388     # Instead, let's just punt: use the minimum linelength reported by
6389     # all of the supported platforms: 8192 (on NT/2K/XP).
6390     lt_cv_sys_max_cmd_len=8192;
6391     ;;
6392
6393   amigaos*)
6394     # On AmigaOS with pdksh, this test takes hours, literally.
6395     # So we just punt and use a minimum line length of 8192.
6396     lt_cv_sys_max_cmd_len=8192;
6397     ;;
6398
6399   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6400     # This has been around since 386BSD, at least.  Likely further.
6401     if test -x /sbin/sysctl; then
6402       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6403     elif test -x /usr/sbin/sysctl; then
6404       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6405     else
6406       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6407     fi
6408     # And add a safety zone
6409     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6410     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6411     ;;
6412
6413   interix*)
6414     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6415     lt_cv_sys_max_cmd_len=196608
6416     ;;
6417
6418   osf*)
6419     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6420     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6421     # nice to cause kernel panics so lets avoid the loop below.
6422     # First set a reasonable default.
6423     lt_cv_sys_max_cmd_len=16384
6424     #
6425     if test -x /sbin/sysconfig; then
6426       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6427         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6428       esac
6429     fi
6430     ;;
6431   sco3.2v5*)
6432     lt_cv_sys_max_cmd_len=102400
6433     ;;
6434   sysv5* | sco5v6* | sysv4.2uw2*)
6435     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6436     if test -n "$kargmax"; then
6437       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6438     else
6439       lt_cv_sys_max_cmd_len=32768
6440     fi
6441     ;;
6442   *)
6443     # If test is not a shell built-in, we'll probably end up computing a
6444     # maximum length that is only half of the actual maximum length, but
6445     # we can't tell.
6446     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6447     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6448                = "XX$teststring") >/dev/null 2>&1 &&
6449             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6450             lt_cv_sys_max_cmd_len=$new_result &&
6451             test $i != 17 # 1/2 MB should be enough
6452     do
6453       i=`expr $i + 1`
6454       teststring=$teststring$teststring
6455     done
6456     teststring=
6457     # Add a significant safety factor because C++ compilers can tack on massive
6458     # amounts of additional arguments before passing them to the linker.
6459     # It appears as though 1/2 is a usable value.
6460     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6461     ;;
6462   esac
6463
6464 fi
6465
6466 if test -n $lt_cv_sys_max_cmd_len ; then
6467   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6468 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6469 else
6470   { echo "$as_me:$LINENO: result: none" >&5
6471 echo "${ECHO_T}none" >&6; }
6472 fi
6473
6474
6475
6476
6477 # Check for command to grab the raw symbol name followed by C symbol from nm.
6478 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6479 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6480 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483
6484 # These are sane defaults that work on at least a few old systems.
6485 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6486
6487 # Character class describing NM global symbol codes.
6488 symcode='[BCDEGRST]'
6489
6490 # Regexp to match symbols that can be accessed directly from C.
6491 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6492
6493 # Transform an extracted symbol line into a proper C declaration
6494 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6495
6496 # Transform an extracted symbol line into symbol name and symbol address
6497 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'"
6498
6499 # Define system-specific variables.
6500 case $host_os in
6501 aix*)
6502   symcode='[BCDT]'
6503   ;;
6504 cygwin* | mingw* | pw32*)
6505   symcode='[ABCDGISTW]'
6506   ;;
6507 hpux*) # Its linker distinguishes data from code symbols
6508   if test "$host_cpu" = ia64; then
6509     symcode='[ABCDEGRST]'
6510   fi
6511   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6512   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'"
6513   ;;
6514 linux*)
6515   if test "$host_cpu" = ia64; then
6516     symcode='[ABCDGIRSTW]'
6517     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6518     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'"
6519   fi
6520   ;;
6521 irix* | nonstopux*)
6522   symcode='[BCDEGRST]'
6523   ;;
6524 osf*)
6525   symcode='[BCDEGQRST]'
6526   ;;
6527 solaris*)
6528   symcode='[BDRT]'
6529   ;;
6530 sco3.2v5*)
6531   symcode='[DT]'
6532   ;;
6533 sysv4.2uw2*)
6534   symcode='[DT]'
6535   ;;
6536 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6537   symcode='[ABDT]'
6538   ;;
6539 sysv4)
6540   symcode='[DFNSTU]'
6541   ;;
6542 esac
6543
6544 # Handle CRLF in mingw tool chain
6545 opt_cr=
6546 case $build_os in
6547 mingw*)
6548   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6549   ;;
6550 esac
6551
6552 # If we're using GNU nm, then use its standard symbol codes.
6553 case `$NM -V 2>&1` in
6554 *GNU* | *'with BFD'*)
6555   symcode='[ABCDGIRSTW]' ;;
6556 esac
6557
6558 # Try without a prefix undercore, then with it.
6559 for ac_symprfx in "" "_"; do
6560
6561   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6562   symxfrm="\\1 $ac_symprfx\\2 \\2"
6563
6564   # Write the raw and C identifiers.
6565   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6566
6567   # Check to see that the pipe works correctly.
6568   pipe_works=no
6569
6570   rm -f conftest*
6571   cat > conftest.$ac_ext <<EOF
6572 #ifdef __cplusplus
6573 extern "C" {
6574 #endif
6575 char nm_test_var;
6576 void nm_test_func(){}
6577 #ifdef __cplusplus
6578 }
6579 #endif
6580 int main(){nm_test_var='a';nm_test_func();return(0);}
6581 EOF
6582
6583   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584   (eval $ac_compile) 2>&5
6585   ac_status=$?
6586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587   (exit $ac_status); }; then
6588     # Now try to grab the symbols.
6589     nlist=conftest.nm
6590     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6591   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6592   ac_status=$?
6593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); } && test -s "$nlist"; then
6595       # Try sorting and uniquifying the output.
6596       if sort "$nlist" | uniq > "$nlist"T; then
6597         mv -f "$nlist"T "$nlist"
6598       else
6599         rm -f "$nlist"T
6600       fi
6601
6602       # Make sure that we snagged all the symbols we need.
6603       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6604         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6605           cat <<EOF > conftest.$ac_ext
6606 #ifdef __cplusplus
6607 extern "C" {
6608 #endif
6609
6610 EOF
6611           # Now generate the symbol file.
6612           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6613
6614           cat <<EOF >> conftest.$ac_ext
6615 #if defined (__STDC__) && __STDC__
6616 # define lt_ptr_t void *
6617 #else
6618 # define lt_ptr_t char *
6619 # define const
6620 #endif
6621
6622 /* The mapping between symbol names and symbols. */
6623 const struct {
6624   const char *name;
6625   lt_ptr_t address;
6626 }
6627 lt_preloaded_symbols[] =
6628 {
6629 EOF
6630           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6631           cat <<\EOF >> conftest.$ac_ext
6632   {0, (lt_ptr_t) 0}
6633 };
6634
6635 #ifdef __cplusplus
6636 }
6637 #endif
6638 EOF
6639           # Now try linking the two files.
6640           mv conftest.$ac_objext conftstm.$ac_objext
6641           lt_save_LIBS="$LIBS"
6642           lt_save_CFLAGS="$CFLAGS"
6643           LIBS="conftstm.$ac_objext"
6644           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6645           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6646   (eval $ac_link) 2>&5
6647   ac_status=$?
6648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6650             pipe_works=yes
6651           fi
6652           LIBS="$lt_save_LIBS"
6653           CFLAGS="$lt_save_CFLAGS"
6654         else
6655           echo "cannot find nm_test_func in $nlist" >&5
6656         fi
6657       else
6658         echo "cannot find nm_test_var in $nlist" >&5
6659       fi
6660     else
6661       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6662     fi
6663   else
6664     echo "$progname: failed program was:" >&5
6665     cat conftest.$ac_ext >&5
6666   fi
6667   rm -f conftest* conftst*
6668
6669   # Do not use the global_symbol_pipe unless it works.
6670   if test "$pipe_works" = yes; then
6671     break
6672   else
6673     lt_cv_sys_global_symbol_pipe=
6674   fi
6675 done
6676
6677 fi
6678
6679 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6680   lt_cv_sys_global_symbol_to_cdecl=
6681 fi
6682 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6683   { echo "$as_me:$LINENO: result: failed" >&5
6684 echo "${ECHO_T}failed" >&6; }
6685 else
6686   { echo "$as_me:$LINENO: result: ok" >&5
6687 echo "${ECHO_T}ok" >&6; }
6688 fi
6689
6690 { echo "$as_me:$LINENO: checking for objdir" >&5
6691 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6692 if test "${lt_cv_objdir+set}" = set; then
6693   echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695   rm -f .libs 2>/dev/null
6696 mkdir .libs 2>/dev/null
6697 if test -d .libs; then
6698   lt_cv_objdir=.libs
6699 else
6700   # MS-DOS does not allow filenames that begin with a dot.
6701   lt_cv_objdir=_libs
6702 fi
6703 rmdir .libs 2>/dev/null
6704 fi
6705 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6706 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6707 objdir=$lt_cv_objdir
6708
6709
6710
6711
6712
6713 case $host_os in
6714 aix3*)
6715   # AIX sometimes has problems with the GCC collect2 program.  For some
6716   # reason, if we set the COLLECT_NAMES environment variable, the problems
6717   # vanish in a puff of smoke.
6718   if test "X${COLLECT_NAMES+set}" != Xset; then
6719     COLLECT_NAMES=
6720     export COLLECT_NAMES
6721   fi
6722   ;;
6723 esac
6724
6725 # Sed substitution that helps us do robust quoting.  It backslashifies
6726 # metacharacters that are still active within double-quoted strings.
6727 Xsed='sed -e 1s/^X//'
6728 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6729
6730 # Same as above, but do not quote variable references.
6731 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6732
6733 # Sed substitution to delay expansion of an escaped shell variable in a
6734 # double_quote_subst'ed string.
6735 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6736
6737 # Sed substitution to avoid accidental globbing in evaled expressions
6738 no_glob_subst='s/\*/\\\*/g'
6739
6740 # Constants:
6741 rm="rm -f"
6742
6743 # Global variables:
6744 default_ofile=libtool
6745 can_build_shared=yes
6746
6747 # All known linkers require a `.a' archive for static linking (except MSVC,
6748 # which needs '.lib').
6749 libext=a
6750 ltmain="$ac_aux_dir/ltmain.sh"
6751 ofile="$default_ofile"
6752 with_gnu_ld="$lt_cv_prog_gnu_ld"
6753
6754 if test -n "$ac_tool_prefix"; then
6755   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}ar; ac_word=$2
6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759 if test "${ac_cv_prog_AR+set}" = set; then
6760   echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762   if test -n "$AR"; then
6763   ac_cv_prog_AR="$AR" # Let the user override the test.
6764 else
6765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6766 for as_dir in $PATH
6767 do
6768   IFS=$as_save_IFS
6769   test -z "$as_dir" && as_dir=.
6770   for ac_exec_ext in '' $ac_executable_extensions; do
6771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6772     ac_cv_prog_AR="${ac_tool_prefix}ar"
6773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777 done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 AR=$ac_cv_prog_AR
6783 if test -n "$AR"; then
6784   { echo "$as_me:$LINENO: result: $AR" >&5
6785 echo "${ECHO_T}$AR" >&6; }
6786 else
6787   { echo "$as_me:$LINENO: result: no" >&5
6788 echo "${ECHO_T}no" >&6; }
6789 fi
6790
6791
6792 fi
6793 if test -z "$ac_cv_prog_AR"; then
6794   ac_ct_AR=$AR
6795   # Extract the first word of "ar", so it can be a program name with args.
6796 set dummy ar; ac_word=$2
6797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6799 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6800   echo $ECHO_N "(cached) $ECHO_C" >&6
6801 else
6802   if test -n "$ac_ct_AR"; then
6803   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6807 do
6808   IFS=$as_save_IFS
6809   test -z "$as_dir" && as_dir=.
6810   for ac_exec_ext in '' $ac_executable_extensions; do
6811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812     ac_cv_prog_ac_ct_AR="ar"
6813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814     break 2
6815   fi
6816 done
6817 done
6818 IFS=$as_save_IFS
6819
6820 fi
6821 fi
6822 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6823 if test -n "$ac_ct_AR"; then
6824   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6825 echo "${ECHO_T}$ac_ct_AR" >&6; }
6826 else
6827   { echo "$as_me:$LINENO: result: no" >&5
6828 echo "${ECHO_T}no" >&6; }
6829 fi
6830
6831   if test "x$ac_ct_AR" = x; then
6832     AR="false"
6833   else
6834     case $cross_compiling:$ac_tool_warned in
6835 yes:)
6836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6837 whose name does not start with the host triplet.  If you think this
6838 configuration is useful to you, please write to autoconf@gnu.org." >&5
6839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6840 whose name does not start with the host triplet.  If you think this
6841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6842 ac_tool_warned=yes ;;
6843 esac
6844     AR=$ac_ct_AR
6845   fi
6846 else
6847   AR="$ac_cv_prog_AR"
6848 fi
6849
6850 if test -n "$ac_tool_prefix"; then
6851   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6852 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_prog_RANLIB+set}" = set; then
6856   echo $ECHO_N "(cached) $ECHO_C" >&6
6857 else
6858   if test -n "$RANLIB"; then
6859   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866   for ac_exec_ext in '' $ac_executable_extensions; do
6867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6868     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873 done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 RANLIB=$ac_cv_prog_RANLIB
6879 if test -n "$RANLIB"; then
6880   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6881 echo "${ECHO_T}$RANLIB" >&6; }
6882 else
6883   { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6885 fi
6886
6887
6888 fi
6889 if test -z "$ac_cv_prog_RANLIB"; then
6890   ac_ct_RANLIB=$RANLIB
6891   # Extract the first word of "ranlib", so it can be a program name with args.
6892 set dummy ranlib; ac_word=$2
6893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6895 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6896   echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898   if test -n "$ac_ct_RANLIB"; then
6899   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906   for ac_exec_ext in '' $ac_executable_extensions; do
6907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908     ac_cv_prog_ac_ct_RANLIB="ranlib"
6909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913 done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6919 if test -n "$ac_ct_RANLIB"; then
6920   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6921 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6922 else
6923   { echo "$as_me:$LINENO: result: no" >&5
6924 echo "${ECHO_T}no" >&6; }
6925 fi
6926
6927   if test "x$ac_ct_RANLIB" = x; then
6928     RANLIB=":"
6929   else
6930     case $cross_compiling:$ac_tool_warned in
6931 yes:)
6932 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6933 whose name does not start with the host triplet.  If you think this
6934 configuration is useful to you, please write to autoconf@gnu.org." >&5
6935 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6936 whose name does not start with the host triplet.  If you think this
6937 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6938 ac_tool_warned=yes ;;
6939 esac
6940     RANLIB=$ac_ct_RANLIB
6941   fi
6942 else
6943   RANLIB="$ac_cv_prog_RANLIB"
6944 fi
6945
6946 if test -n "$ac_tool_prefix"; then
6947   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6948 set dummy ${ac_tool_prefix}strip; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_prog_STRIP+set}" = set; then
6952   echo $ECHO_N "(cached) $ECHO_C" >&6
6953 else
6954   if test -n "$STRIP"; then
6955   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962   for ac_exec_ext in '' $ac_executable_extensions; do
6963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972 fi
6973 fi
6974 STRIP=$ac_cv_prog_STRIP
6975 if test -n "$STRIP"; then
6976   { echo "$as_me:$LINENO: result: $STRIP" >&5
6977 echo "${ECHO_T}$STRIP" >&6; }
6978 else
6979   { echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6; }
6981 fi
6982
6983
6984 fi
6985 if test -z "$ac_cv_prog_STRIP"; then
6986   ac_ct_STRIP=$STRIP
6987   # Extract the first word of "strip", so it can be a program name with args.
6988 set dummy strip; ac_word=$2
6989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6992   echo $ECHO_N "(cached) $ECHO_C" >&6
6993 else
6994   if test -n "$ac_ct_STRIP"; then
6995   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
6999 do
7000   IFS=$as_save_IFS
7001   test -z "$as_dir" && as_dir=.
7002   for ac_exec_ext in '' $ac_executable_extensions; do
7003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004     ac_cv_prog_ac_ct_STRIP="strip"
7005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7006     break 2
7007   fi
7008 done
7009 done
7010 IFS=$as_save_IFS
7011
7012 fi
7013 fi
7014 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7015 if test -n "$ac_ct_STRIP"; then
7016   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7017 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7018 else
7019   { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7021 fi
7022
7023   if test "x$ac_ct_STRIP" = x; then
7024     STRIP=":"
7025   else
7026     case $cross_compiling:$ac_tool_warned in
7027 yes:)
7028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7029 whose name does not start with the host triplet.  If you think this
7030 configuration is useful to you, please write to autoconf@gnu.org." >&5
7031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7032 whose name does not start with the host triplet.  If you think this
7033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7034 ac_tool_warned=yes ;;
7035 esac
7036     STRIP=$ac_ct_STRIP
7037   fi
7038 else
7039   STRIP="$ac_cv_prog_STRIP"
7040 fi
7041
7042
7043 old_CC="$CC"
7044 old_CFLAGS="$CFLAGS"
7045
7046 # Set sane defaults for various variables
7047 test -z "$AR" && AR=ar
7048 test -z "$AR_FLAGS" && AR_FLAGS=cru
7049 test -z "$AS" && AS=as
7050 test -z "$CC" && CC=cc
7051 test -z "$LTCC" && LTCC=$CC
7052 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7053 test -z "$DLLTOOL" && DLLTOOL=dlltool
7054 test -z "$LD" && LD=ld
7055 test -z "$LN_S" && LN_S="ln -s"
7056 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7057 test -z "$NM" && NM=nm
7058 test -z "$SED" && SED=sed
7059 test -z "$OBJDUMP" && OBJDUMP=objdump
7060 test -z "$RANLIB" && RANLIB=:
7061 test -z "$STRIP" && STRIP=:
7062 test -z "$ac_objext" && ac_objext=o
7063
7064 # Determine commands to create old-style static archives.
7065 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7066 old_postinstall_cmds='chmod 644 $oldlib'
7067 old_postuninstall_cmds=
7068
7069 if test -n "$RANLIB"; then
7070   case $host_os in
7071   openbsd*)
7072     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7073     ;;
7074   *)
7075     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7076     ;;
7077   esac
7078   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7079 fi
7080
7081 for cc_temp in $compiler""; do
7082   case $cc_temp in
7083     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7084     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7085     \-*) ;;
7086     *) break;;
7087   esac
7088 done
7089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7090
7091
7092 # Only perform the check for file, if the check method requires it
7093 case $deplibs_check_method in
7094 file_magic*)
7095   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7096     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7097 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7098 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7099   echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101   case $MAGIC_CMD in
7102 [\\/*] |  ?:[\\/]*)
7103   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7104   ;;
7105 *)
7106   lt_save_MAGIC_CMD="$MAGIC_CMD"
7107   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7108   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7109   for ac_dir in $ac_dummy; do
7110     IFS="$lt_save_ifs"
7111     test -z "$ac_dir" && ac_dir=.
7112     if test -f $ac_dir/${ac_tool_prefix}file; then
7113       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7114       if test -n "$file_magic_test_file"; then
7115         case $deplibs_check_method in
7116         "file_magic "*)
7117           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7118           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7119           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7120             $EGREP "$file_magic_regex" > /dev/null; then
7121             :
7122           else
7123             cat <<EOF 1>&2
7124
7125 *** Warning: the command libtool uses to detect shared libraries,
7126 *** $file_magic_cmd, produces output that libtool cannot recognize.
7127 *** The result is that libtool may fail to recognize shared libraries
7128 *** as such.  This will affect the creation of libtool libraries that
7129 *** depend on shared libraries, but programs linked with such libtool
7130 *** libraries will work regardless of this problem.  Nevertheless, you
7131 *** may want to report the problem to your system manager and/or to
7132 *** bug-libtool@gnu.org
7133
7134 EOF
7135           fi ;;
7136         esac
7137       fi
7138       break
7139     fi
7140   done
7141   IFS="$lt_save_ifs"
7142   MAGIC_CMD="$lt_save_MAGIC_CMD"
7143   ;;
7144 esac
7145 fi
7146
7147 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7148 if test -n "$MAGIC_CMD"; then
7149   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7150 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7151 else
7152   { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7154 fi
7155
7156 if test -z "$lt_cv_path_MAGIC_CMD"; then
7157   if test -n "$ac_tool_prefix"; then
7158     { echo "$as_me:$LINENO: checking for file" >&5
7159 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7160 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   case $MAGIC_CMD in
7164 [\\/*] |  ?:[\\/]*)
7165   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7166   ;;
7167 *)
7168   lt_save_MAGIC_CMD="$MAGIC_CMD"
7169   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7170   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7171   for ac_dir in $ac_dummy; do
7172     IFS="$lt_save_ifs"
7173     test -z "$ac_dir" && ac_dir=.
7174     if test -f $ac_dir/file; then
7175       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7176       if test -n "$file_magic_test_file"; then
7177         case $deplibs_check_method in
7178         "file_magic "*)
7179           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7180           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7181           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7182             $EGREP "$file_magic_regex" > /dev/null; then
7183             :
7184           else
7185             cat <<EOF 1>&2
7186
7187 *** Warning: the command libtool uses to detect shared libraries,
7188 *** $file_magic_cmd, produces output that libtool cannot recognize.
7189 *** The result is that libtool may fail to recognize shared libraries
7190 *** as such.  This will affect the creation of libtool libraries that
7191 *** depend on shared libraries, but programs linked with such libtool
7192 *** libraries will work regardless of this problem.  Nevertheless, you
7193 *** may want to report the problem to your system manager and/or to
7194 *** bug-libtool@gnu.org
7195
7196 EOF
7197           fi ;;
7198         esac
7199       fi
7200       break
7201     fi
7202   done
7203   IFS="$lt_save_ifs"
7204   MAGIC_CMD="$lt_save_MAGIC_CMD"
7205   ;;
7206 esac
7207 fi
7208
7209 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7210 if test -n "$MAGIC_CMD"; then
7211   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7212 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7213 else
7214   { echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6; }
7216 fi
7217
7218   else
7219     MAGIC_CMD=:
7220   fi
7221 fi
7222
7223   fi
7224   ;;
7225 esac
7226
7227 enable_dlopen=yes
7228 enable_win32_dll=no
7229
7230 # Check whether --enable-libtool-lock was given.
7231 if test "${enable_libtool_lock+set}" = set; then
7232   enableval=$enable_libtool_lock;
7233 fi
7234
7235 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7236
7237
7238 # Check whether --with-pic was given.
7239 if test "${with_pic+set}" = set; then
7240   withval=$with_pic; pic_mode="$withval"
7241 else
7242   pic_mode=default
7243 fi
7244
7245 test -z "$pic_mode" && pic_mode=default
7246
7247 # Use C for the default configuration in the libtool script
7248 tagname=
7249 lt_save_CC="$CC"
7250 ac_ext=c
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7255
7256
7257 # Source file extension for C test sources.
7258 ac_ext=c
7259
7260 # Object file extension for compiled C test sources.
7261 objext=o
7262 objext=$objext
7263
7264 # Code to be used in simple compile tests
7265 lt_simple_compile_test_code="int some_variable = 0;\n"
7266
7267 # Code to be used in simple link tests
7268 lt_simple_link_test_code='int main(){return(0);}\n'
7269
7270
7271 # If no C compiler was specified, use CC.
7272 LTCC=${LTCC-"$CC"}
7273
7274 # If no C compiler flags were specified, use CFLAGS.
7275 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7276
7277 # Allow CC to be a program name with arguments.
7278 compiler=$CC
7279
7280
7281 # save warnings/boilerplate of simple test code
7282 ac_outfile=conftest.$ac_objext
7283 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7284 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7285 _lt_compiler_boilerplate=`cat conftest.err`
7286 $rm conftest*
7287
7288 ac_outfile=conftest.$ac_objext
7289 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7290 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7291 _lt_linker_boilerplate=`cat conftest.err`
7292 $rm conftest*
7293
7294
7295 ## CAVEAT EMPTOR:
7296 ## There is no encapsulation within the following macros, do not change
7297 ## the running order or otherwise move them around unless you know exactly
7298 ## what you are doing...
7299
7300 lt_prog_compiler_no_builtin_flag=
7301
7302 if test "$GCC" = yes; then
7303   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7304
7305
7306 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7307 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7308 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7309   echo $ECHO_N "(cached) $ECHO_C" >&6
7310 else
7311   lt_cv_prog_compiler_rtti_exceptions=no
7312   ac_outfile=conftest.$ac_objext
7313    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7314    lt_compiler_flag="-fno-rtti -fno-exceptions"
7315    # Insert the option either (1) after the last *FLAGS variable, or
7316    # (2) before a word containing "conftest.", or (3) at the end.
7317    # Note that $ac_compile itself does not contain backslashes and begins
7318    # with a dollar sign (not a hyphen), so the echo should work correctly.
7319    # The option is referenced via a variable to avoid confusing sed.
7320    lt_compile=`echo "$ac_compile" | $SED \
7321    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7322    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7323    -e 's:$: $lt_compiler_flag:'`
7324    (eval echo "\"\$as_me:7324: $lt_compile\"" >&5)
7325    (eval "$lt_compile" 2>conftest.err)
7326    ac_status=$?
7327    cat conftest.err >&5
7328    echo "$as_me:7328: \$? = $ac_status" >&5
7329    if (exit $ac_status) && test -s "$ac_outfile"; then
7330      # The compiler can only warn and ignore the option if not recognized
7331      # So say no if there are warnings other than the usual output.
7332      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7333      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7334      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7335        lt_cv_prog_compiler_rtti_exceptions=yes
7336      fi
7337    fi
7338    $rm conftest*
7339
7340 fi
7341 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7342 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7343
7344 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7345     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7346 else
7347     :
7348 fi
7349
7350 fi
7351
7352 lt_prog_compiler_wl=
7353 lt_prog_compiler_pic=
7354 lt_prog_compiler_static=
7355
7356 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7357 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7358
7359   if test "$GCC" = yes; then
7360     lt_prog_compiler_wl='-Wl,'
7361     lt_prog_compiler_static='-static'
7362
7363     case $host_os in
7364       aix*)
7365       # All AIX code is PIC.
7366       if test "$host_cpu" = ia64; then
7367         # AIX 5 now supports IA64 processor
7368         lt_prog_compiler_static='-Bstatic'
7369       fi
7370       ;;
7371
7372     amigaos*)
7373       # FIXME: we need at least 68020 code to build shared libraries, but
7374       # adding the `-m68020' flag to GCC prevents building anything better,
7375       # like `-m68040'.
7376       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7377       ;;
7378
7379     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7380       # PIC is the default for these OSes.
7381       ;;
7382
7383     mingw* | pw32* | os2*)
7384       # This hack is so that the source file can tell whether it is being
7385       # built for inclusion in a dll (and should export symbols for example).
7386       lt_prog_compiler_pic='-DDLL_EXPORT'
7387       ;;
7388
7389     darwin* | rhapsody*)
7390       # PIC is the default on this platform
7391       # Common symbols not allowed in MH_DYLIB files
7392       lt_prog_compiler_pic='-fno-common'
7393       ;;
7394
7395     interix3*)
7396       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7397       # Instead, we relocate shared libraries at runtime.
7398       ;;
7399
7400     msdosdjgpp*)
7401       # Just because we use GCC doesn't mean we suddenly get shared libraries
7402       # on systems that don't support them.
7403       lt_prog_compiler_can_build_shared=no
7404       enable_shared=no
7405       ;;
7406
7407     sysv4*MP*)
7408       if test -d /usr/nec; then
7409         lt_prog_compiler_pic=-Kconform_pic
7410       fi
7411       ;;
7412
7413     hpux*)
7414       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7415       # not for PA HP-UX.
7416       case $host_cpu in
7417       hppa*64*|ia64*)
7418         # +Z the default
7419         ;;
7420       *)
7421         lt_prog_compiler_pic='-fPIC'
7422         ;;
7423       esac
7424       ;;
7425
7426     *)
7427       lt_prog_compiler_pic='-fPIC'
7428       ;;
7429     esac
7430   else
7431     # PORTME Check for flag to pass linker flags through the system compiler.
7432     case $host_os in
7433     aix*)
7434       lt_prog_compiler_wl='-Wl,'
7435       if test "$host_cpu" = ia64; then
7436         # AIX 5 now supports IA64 processor
7437         lt_prog_compiler_static='-Bstatic'
7438       else
7439         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7440       fi
7441       ;;
7442       darwin*)
7443         # PIC is the default on this platform
7444         # Common symbols not allowed in MH_DYLIB files
7445        case $cc_basename in
7446          xlc*)
7447          lt_prog_compiler_pic='-qnocommon'
7448          lt_prog_compiler_wl='-Wl,'
7449          ;;
7450        esac
7451        ;;
7452
7453     mingw* | pw32* | os2*)
7454       # This hack is so that the source file can tell whether it is being
7455       # built for inclusion in a dll (and should export symbols for example).
7456       lt_prog_compiler_pic='-DDLL_EXPORT'
7457       ;;
7458
7459     hpux9* | hpux10* | hpux11*)
7460       lt_prog_compiler_wl='-Wl,'
7461       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7462       # not for PA HP-UX.
7463       case $host_cpu in
7464       hppa*64*|ia64*)
7465         # +Z the default
7466         ;;
7467       *)
7468         lt_prog_compiler_pic='+Z'
7469         ;;
7470       esac
7471       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7472       lt_prog_compiler_static='${wl}-a ${wl}archive'
7473       ;;
7474
7475     irix5* | irix6* | nonstopux*)
7476       lt_prog_compiler_wl='-Wl,'
7477       # PIC (with -KPIC) is the default.
7478       lt_prog_compiler_static='-non_shared'
7479       ;;
7480
7481     newsos6)
7482       lt_prog_compiler_pic='-KPIC'
7483       lt_prog_compiler_static='-Bstatic'
7484       ;;
7485
7486     linux*)
7487       case $cc_basename in
7488       icc* | ecc*)
7489         lt_prog_compiler_wl='-Wl,'
7490         lt_prog_compiler_pic='-KPIC'
7491         lt_prog_compiler_static='-static'
7492         ;;
7493       pgcc* | pgf77* | pgf90* | pgf95*)
7494         # Portland Group compilers (*not* the Pentium gcc compiler,
7495         # which looks to be a dead project)
7496         lt_prog_compiler_wl='-Wl,'
7497         lt_prog_compiler_pic='-fpic'
7498         lt_prog_compiler_static='-Bstatic'
7499         ;;
7500       ccc*)
7501         lt_prog_compiler_wl='-Wl,'
7502         # All Alpha code is PIC.
7503         lt_prog_compiler_static='-non_shared'
7504         ;;
7505       esac
7506       ;;
7507
7508     osf3* | osf4* | osf5*)
7509       lt_prog_compiler_wl='-Wl,'
7510       # All OSF/1 code is PIC.
7511       lt_prog_compiler_static='-non_shared'
7512       ;;
7513
7514     solaris*)
7515       lt_prog_compiler_pic='-KPIC'
7516       lt_prog_compiler_static='-Bstatic'
7517       case $cc_basename in
7518       f77* | f90* | f95*)
7519         lt_prog_compiler_wl='-Qoption ld ';;
7520       *)
7521         lt_prog_compiler_wl='-Wl,';;
7522       esac
7523       ;;
7524
7525     sunos4*)
7526       lt_prog_compiler_wl='-Qoption ld '
7527       lt_prog_compiler_pic='-PIC'
7528       lt_prog_compiler_static='-Bstatic'
7529       ;;
7530
7531     sysv4 | sysv4.2uw2* | sysv4.3*)
7532       lt_prog_compiler_wl='-Wl,'
7533       lt_prog_compiler_pic='-KPIC'
7534       lt_prog_compiler_static='-Bstatic'
7535       ;;
7536
7537     sysv4*MP*)
7538       if test -d /usr/nec ;then
7539         lt_prog_compiler_pic='-Kconform_pic'
7540         lt_prog_compiler_static='-Bstatic'
7541       fi
7542       ;;
7543
7544     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7545       lt_prog_compiler_wl='-Wl,'
7546       lt_prog_compiler_pic='-KPIC'
7547       lt_prog_compiler_static='-Bstatic'
7548       ;;
7549
7550     unicos*)
7551       lt_prog_compiler_wl='-Wl,'
7552       lt_prog_compiler_can_build_shared=no
7553       ;;
7554
7555     uts4*)
7556       lt_prog_compiler_pic='-pic'
7557       lt_prog_compiler_static='-Bstatic'
7558       ;;
7559
7560     *)
7561       lt_prog_compiler_can_build_shared=no
7562       ;;
7563     esac
7564   fi
7565
7566 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7567 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7568
7569 #
7570 # Check to make sure the PIC flag actually works.
7571 #
7572 if test -n "$lt_prog_compiler_pic"; then
7573
7574 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7575 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7576 if test "${lt_prog_compiler_pic_works+set}" = set; then
7577   echo $ECHO_N "(cached) $ECHO_C" >&6
7578 else
7579   lt_prog_compiler_pic_works=no
7580   ac_outfile=conftest.$ac_objext
7581    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7582    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7583    # Insert the option either (1) after the last *FLAGS variable, or
7584    # (2) before a word containing "conftest.", or (3) at the end.
7585    # Note that $ac_compile itself does not contain backslashes and begins
7586    # with a dollar sign (not a hyphen), so the echo should work correctly.
7587    # The option is referenced via a variable to avoid confusing sed.
7588    lt_compile=`echo "$ac_compile" | $SED \
7589    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7590    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7591    -e 's:$: $lt_compiler_flag:'`
7592    (eval echo "\"\$as_me:7592: $lt_compile\"" >&5)
7593    (eval "$lt_compile" 2>conftest.err)
7594    ac_status=$?
7595    cat conftest.err >&5
7596    echo "$as_me:7596: \$? = $ac_status" >&5
7597    if (exit $ac_status) && test -s "$ac_outfile"; then
7598      # The compiler can only warn and ignore the option if not recognized
7599      # So say no if there are warnings other than the usual output.
7600      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7601      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7602      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7603        lt_prog_compiler_pic_works=yes
7604      fi
7605    fi
7606    $rm conftest*
7607
7608 fi
7609 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7610 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7611
7612 if test x"$lt_prog_compiler_pic_works" = xyes; then
7613     case $lt_prog_compiler_pic in
7614      "" | " "*) ;;
7615      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7616      esac
7617 else
7618     lt_prog_compiler_pic=
7619      lt_prog_compiler_can_build_shared=no
7620 fi
7621
7622 fi
7623 case $host_os in
7624   # For platforms which do not support PIC, -DPIC is meaningless:
7625   *djgpp*)
7626     lt_prog_compiler_pic=
7627     ;;
7628   *)
7629     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7630     ;;
7631 esac
7632
7633 #
7634 # Check to make sure the static flag actually works.
7635 #
7636 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7637 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7638 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7639 if test "${lt_prog_compiler_static_works+set}" = set; then
7640   echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642   lt_prog_compiler_static_works=no
7643    save_LDFLAGS="$LDFLAGS"
7644    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7645    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7646    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7647      # The linker can only warn and ignore the option if not recognized
7648      # So say no if there are warnings
7649      if test -s conftest.err; then
7650        # Append any errors to the config.log.
7651        cat conftest.err 1>&5
7652        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7653        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7654        if diff conftest.exp conftest.er2 >/dev/null; then
7655          lt_prog_compiler_static_works=yes
7656        fi
7657      else
7658        lt_prog_compiler_static_works=yes
7659      fi
7660    fi
7661    $rm conftest*
7662    LDFLAGS="$save_LDFLAGS"
7663
7664 fi
7665 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7666 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7667
7668 if test x"$lt_prog_compiler_static_works" = xyes; then
7669     :
7670 else
7671     lt_prog_compiler_static=
7672 fi
7673
7674
7675 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7676 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7677 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7678   echo $ECHO_N "(cached) $ECHO_C" >&6
7679 else
7680   lt_cv_prog_compiler_c_o=no
7681    $rm -r conftest 2>/dev/null
7682    mkdir conftest
7683    cd conftest
7684    mkdir out
7685    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7686
7687    lt_compiler_flag="-o out/conftest2.$ac_objext"
7688    # Insert the option either (1) after the last *FLAGS variable, or
7689    # (2) before a word containing "conftest.", or (3) at the end.
7690    # Note that $ac_compile itself does not contain backslashes and begins
7691    # with a dollar sign (not a hyphen), so the echo should work correctly.
7692    lt_compile=`echo "$ac_compile" | $SED \
7693    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7694    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7695    -e 's:$: $lt_compiler_flag:'`
7696    (eval echo "\"\$as_me:7696: $lt_compile\"" >&5)
7697    (eval "$lt_compile" 2>out/conftest.err)
7698    ac_status=$?
7699    cat out/conftest.err >&5
7700    echo "$as_me:7700: \$? = $ac_status" >&5
7701    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7702    then
7703      # The compiler can only warn and ignore the option if not recognized
7704      # So say no if there are warnings
7705      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7706      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7707      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7708        lt_cv_prog_compiler_c_o=yes
7709      fi
7710    fi
7711    chmod u+w . 2>&5
7712    $rm conftest*
7713    # SGI C++ compiler will create directory out/ii_files/ for
7714    # template instantiation
7715    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7716    $rm out/* && rmdir out
7717    cd ..
7718    rmdir conftest
7719    $rm conftest*
7720
7721 fi
7722 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7723 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7724
7725
7726 hard_links="nottested"
7727 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7728   # do not overwrite the value of need_locks provided by the user
7729   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7730 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7731   hard_links=yes
7732   $rm conftest*
7733   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7734   touch conftest.a
7735   ln conftest.a conftest.b 2>&5 || hard_links=no
7736   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7737   { echo "$as_me:$LINENO: result: $hard_links" >&5
7738 echo "${ECHO_T}$hard_links" >&6; }
7739   if test "$hard_links" = no; then
7740     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7741 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7742     need_locks=warn
7743   fi
7744 else
7745   need_locks=no
7746 fi
7747
7748 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7749 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7750
7751   runpath_var=
7752   allow_undefined_flag=
7753   enable_shared_with_static_runtimes=no
7754   archive_cmds=
7755   archive_expsym_cmds=
7756   old_archive_From_new_cmds=
7757   old_archive_from_expsyms_cmds=
7758   export_dynamic_flag_spec=
7759   whole_archive_flag_spec=
7760   thread_safe_flag_spec=
7761   hardcode_libdir_flag_spec=
7762   hardcode_libdir_flag_spec_ld=
7763   hardcode_libdir_separator=
7764   hardcode_direct=no
7765   hardcode_minus_L=no
7766   hardcode_shlibpath_var=unsupported
7767   link_all_deplibs=unknown
7768   hardcode_automatic=no
7769   module_cmds=
7770   module_expsym_cmds=
7771   always_export_symbols=no
7772   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7773   # include_expsyms should be a list of space-separated symbols to be *always*
7774   # included in the symbol list
7775   include_expsyms=
7776   # exclude_expsyms can be an extended regexp of symbols to exclude
7777   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7778   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7779   # as well as any symbol that contains `d'.
7780   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7781   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7782   # platforms (ab)use it in PIC code, but their linkers get confused if
7783   # the symbol is explicitly referenced.  Since portable code cannot
7784   # rely on this symbol name, it's probably fine to never include it in
7785   # preloaded symbol tables.
7786   extract_expsyms_cmds=
7787   # Just being paranoid about ensuring that cc_basename is set.
7788   for cc_temp in $compiler""; do
7789   case $cc_temp in
7790     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7791     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7792     \-*) ;;
7793     *) break;;
7794   esac
7795 done
7796 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7797
7798   case $host_os in
7799   cygwin* | mingw* | pw32*)
7800     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7801     # When not using gcc, we currently assume that we are using
7802     # Microsoft Visual C++.
7803     if test "$GCC" != yes; then
7804       with_gnu_ld=no
7805     fi
7806     ;;
7807   interix*)
7808     # we just hope/assume this is gcc and not c89 (= MSVC++)
7809     with_gnu_ld=yes
7810     ;;
7811   openbsd*)
7812     with_gnu_ld=no
7813     ;;
7814   esac
7815
7816   ld_shlibs=yes
7817   if test "$with_gnu_ld" = yes; then
7818     # If archive_cmds runs LD, not CC, wlarc should be empty
7819     wlarc='${wl}'
7820
7821     # Set some defaults for GNU ld with shared library support. These
7822     # are reset later if shared libraries are not supported. Putting them
7823     # here allows them to be overridden if necessary.
7824     runpath_var=LD_RUN_PATH
7825     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7826     export_dynamic_flag_spec='${wl}--export-dynamic'
7827     # ancient GNU ld didn't support --whole-archive et. al.
7828     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7829         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7830       else
7831         whole_archive_flag_spec=
7832     fi
7833     supports_anon_versioning=no
7834     case `$LD -v 2>/dev/null` in
7835       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7836       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7837       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7838       *\ 2.11.*) ;; # other 2.11 versions
7839       *) supports_anon_versioning=yes ;;
7840     esac
7841
7842     # See if GNU ld supports shared libraries.
7843     case $host_os in
7844     aix3* | aix4* | aix5*)
7845       # On AIX/PPC, the GNU linker is very broken
7846       if test "$host_cpu" != ia64; then
7847         ld_shlibs=no
7848         cat <<EOF 1>&2
7849
7850 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7851 *** to be unable to reliably create shared libraries on AIX.
7852 *** Therefore, libtool is disabling shared libraries support.  If you
7853 *** really care for shared libraries, you may want to modify your PATH
7854 *** so that a non-GNU linker is found, and then restart.
7855
7856 EOF
7857       fi
7858       ;;
7859
7860     amigaos*)
7861       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)'
7862       hardcode_libdir_flag_spec='-L$libdir'
7863       hardcode_minus_L=yes
7864
7865       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7866       # that the semantics of dynamic libraries on AmigaOS, at least up
7867       # to version 4, is to share data among multiple programs linked
7868       # with the same dynamic library.  Since this doesn't match the
7869       # behavior of shared libraries on other platforms, we can't use
7870       # them.
7871       ld_shlibs=no
7872       ;;
7873
7874     beos*)
7875       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7876         allow_undefined_flag=unsupported
7877         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7878         # support --undefined.  This deserves some investigation.  FIXME
7879         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7880       else
7881         ld_shlibs=no
7882       fi
7883       ;;
7884
7885     cygwin* | mingw* | pw32*)
7886       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7887       # as there is no search path for DLLs.
7888       hardcode_libdir_flag_spec='-L$libdir'
7889       allow_undefined_flag=unsupported
7890       always_export_symbols=no
7891       enable_shared_with_static_runtimes=yes
7892       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7893
7894       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7895         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7896         # If the export-symbols file already is a .def file (1st line
7897         # is EXPORTS), use it as is; otherwise, prepend...
7898         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7899           cp $export_symbols $output_objdir/$soname.def;
7900         else
7901           echo EXPORTS > $output_objdir/$soname.def;
7902           cat $export_symbols >> $output_objdir/$soname.def;
7903         fi~
7904         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7905       else
7906         ld_shlibs=no
7907       fi
7908       ;;
7909
7910     interix3*)
7911       hardcode_direct=no
7912       hardcode_shlibpath_var=no
7913       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7914       export_dynamic_flag_spec='${wl}-E'
7915       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7916       # Instead, shared libraries are loaded at an image base (0x10000000 by
7917       # default) and relocated if they conflict, which is a slow very memory
7918       # consuming and fragmenting process.  To avoid this, we pick a random,
7919       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7920       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7921       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7922       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'
7923       ;;
7924
7925     linux*)
7926       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7927         tmp_addflag=
7928         case $cc_basename,$host_cpu in
7929         pgcc*)                          # Portland Group C compiler
7930           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'
7931           tmp_addflag=' $pic_flag'
7932           ;;
7933         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7934           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'
7935           tmp_addflag=' $pic_flag -Mnomain' ;;
7936         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7937           tmp_addflag=' -i_dynamic' ;;
7938         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7939           tmp_addflag=' -i_dynamic -nofor_main' ;;
7940         ifc* | ifort*)                  # Intel Fortran compiler
7941           tmp_addflag=' -nofor_main' ;;
7942         esac
7943         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7944
7945         if test $supports_anon_versioning = yes; then
7946           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7947   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7948   $echo "local: *; };" >> $output_objdir/$libname.ver~
7949           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7950         fi
7951       else
7952         ld_shlibs=no
7953       fi
7954       ;;
7955
7956     netbsd*)
7957       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7958         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7959         wlarc=
7960       else
7961         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7962         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7963       fi
7964       ;;
7965
7966     solaris*)
7967       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7968         ld_shlibs=no
7969         cat <<EOF 1>&2
7970
7971 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7972 *** create shared libraries on Solaris systems.  Therefore, libtool
7973 *** is disabling shared libraries support.  We urge you to upgrade GNU
7974 *** binutils to release 2.9.1 or newer.  Another option is to modify
7975 *** your PATH or compiler configuration so that the native linker is
7976 *** used, and then restart.
7977
7978 EOF
7979       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7980         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7981         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7982       else
7983         ld_shlibs=no
7984       fi
7985       ;;
7986
7987     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7988       case `$LD -v 2>&1` in
7989         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7990         ld_shlibs=no
7991         cat <<_LT_EOF 1>&2
7992
7993 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7994 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7995 *** is disabling shared libraries support.  We urge you to upgrade GNU
7996 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7997 *** your PATH or compiler configuration so that the native linker is
7998 *** used, and then restart.
7999
8000 _LT_EOF
8001         ;;
8002         *)
8003           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8004             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8005             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8006             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8007           else
8008             ld_shlibs=no
8009           fi
8010         ;;
8011       esac
8012       ;;
8013
8014     sunos4*)
8015       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8016       wlarc=
8017       hardcode_direct=yes
8018       hardcode_shlibpath_var=no
8019       ;;
8020
8021     *)
8022       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8023         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8024         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8025       else
8026         ld_shlibs=no
8027       fi
8028       ;;
8029     esac
8030
8031     if test "$ld_shlibs" = no; then
8032       runpath_var=
8033       hardcode_libdir_flag_spec=
8034       export_dynamic_flag_spec=
8035       whole_archive_flag_spec=
8036     fi
8037   else
8038     # PORTME fill in a description of your system's linker (not GNU ld)
8039     case $host_os in
8040     aix3*)
8041       allow_undefined_flag=unsupported
8042       always_export_symbols=yes
8043       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'
8044       # Note: this linker hardcodes the directories in LIBPATH if there
8045       # are no directories specified by -L.
8046       hardcode_minus_L=yes
8047       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8048         # Neither direct hardcoding nor static linking is supported with a
8049         # broken collect2.
8050         hardcode_direct=unsupported
8051       fi
8052       ;;
8053
8054     aix4* | aix5*)
8055       if test "$host_cpu" = ia64; then
8056         # On IA64, the linker does run time linking by default, so we don't
8057         # have to do anything special.
8058         aix_use_runtimelinking=no
8059         exp_sym_flag='-Bexport'
8060         no_entry_flag=""
8061       else
8062         # If we're using GNU nm, then we don't want the "-C" option.
8063         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8064         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8065           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'
8066         else
8067           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'
8068         fi
8069         aix_use_runtimelinking=no
8070
8071         # Test if we are trying to use run time linking or normal
8072         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8073         # need to do runtime linking.
8074         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8075           for ld_flag in $LDFLAGS; do
8076           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8077             aix_use_runtimelinking=yes
8078             break
8079           fi
8080           done
8081           ;;
8082         esac
8083
8084         exp_sym_flag='-bexport'
8085         no_entry_flag='-bnoentry'
8086       fi
8087
8088       # When large executables or shared objects are built, AIX ld can
8089       # have problems creating the table of contents.  If linking a library
8090       # or program results in "error TOC overflow" add -mminimal-toc to
8091       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8092       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8093
8094       archive_cmds=''
8095       hardcode_direct=yes
8096       hardcode_libdir_separator=':'
8097       link_all_deplibs=yes
8098
8099       if test "$GCC" = yes; then
8100         case $host_os in aix4.[012]|aix4.[012].*)
8101         # We only want to do this on AIX 4.2 and lower, the check
8102         # below for broken collect2 doesn't work under 4.3+
8103           collect2name=`${CC} -print-prog-name=collect2`
8104           if test -f "$collect2name" && \
8105            strings "$collect2name" | grep resolve_lib_name >/dev/null
8106           then
8107           # We have reworked collect2
8108           hardcode_direct=yes
8109           else
8110           # We have old collect2
8111           hardcode_direct=unsupported
8112           # It fails to find uninstalled libraries when the uninstalled
8113           # path is not listed in the libpath.  Setting hardcode_minus_L
8114           # to unsupported forces relinking
8115           hardcode_minus_L=yes
8116           hardcode_libdir_flag_spec='-L$libdir'
8117           hardcode_libdir_separator=
8118           fi
8119           ;;
8120         esac
8121         shared_flag='-shared'
8122         if test "$aix_use_runtimelinking" = yes; then
8123           shared_flag="$shared_flag "'${wl}-G'
8124         fi
8125       else
8126         # not using gcc
8127         if test "$host_cpu" = ia64; then
8128         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8129         # chokes on -Wl,-G. The following line is correct:
8130           shared_flag='-G'
8131         else
8132           if test "$aix_use_runtimelinking" = yes; then
8133             shared_flag='${wl}-G'
8134           else
8135             shared_flag='${wl}-bM:SRE'
8136           fi
8137         fi
8138       fi
8139
8140       # It seems that -bexpall does not export symbols beginning with
8141       # underscore (_), so it is better to generate a list of symbols to export.
8142       always_export_symbols=yes
8143       if test "$aix_use_runtimelinking" = yes; then
8144         # Warning - without using the other runtime loading flags (-brtl),
8145         # -berok will link without error, but may produce a broken library.
8146         allow_undefined_flag='-berok'
8147        # Determine the default libpath from the value encoded in an empty executable.
8148        cat >conftest.$ac_ext <<_ACEOF
8149 /* confdefs.h.  */
8150 _ACEOF
8151 cat confdefs.h >>conftest.$ac_ext
8152 cat >>conftest.$ac_ext <<_ACEOF
8153 /* end confdefs.h.  */
8154
8155 int
8156 main ()
8157 {
8158
8159   ;
8160   return 0;
8161 }
8162 _ACEOF
8163 rm -f conftest.$ac_objext conftest$ac_exeext
8164 if { (ac_try="$ac_link"
8165 case "(($ac_try" in
8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167   *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170   (eval "$ac_link") 2>conftest.er1
8171   ac_status=$?
8172   grep -v '^ *+' conftest.er1 >conftest.err
8173   rm -f conftest.er1
8174   cat conftest.err >&5
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); } && {
8177          test -z "$ac_c_werror_flag" ||
8178          test ! -s conftest.err
8179        } && test -s conftest$ac_exeext &&
8180        $as_test_x conftest$ac_exeext; then
8181
8182 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8183 }'`
8184 # Check for a 64-bit object if we didn't find anything.
8185 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; }
8186 }'`; fi
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191
8192 fi
8193
8194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195       conftest$ac_exeext conftest.$ac_ext
8196 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8197
8198        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8199         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"
8200        else
8201         if test "$host_cpu" = ia64; then
8202           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8203           allow_undefined_flag="-z nodefs"
8204           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"
8205         else
8206          # Determine the default libpath from the value encoded in an empty executable.
8207          cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213
8214 int
8215 main ()
8216 {
8217
8218   ;
8219   return 0;
8220 }
8221 _ACEOF
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (ac_try="$ac_link"
8224 case "(($ac_try" in
8225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226   *) ac_try_echo=$ac_try;;
8227 esac
8228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229   (eval "$ac_link") 2>conftest.er1
8230   ac_status=$?
8231   grep -v '^ *+' conftest.er1 >conftest.err
8232   rm -f conftest.er1
8233   cat conftest.err >&5
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); } && {
8236          test -z "$ac_c_werror_flag" ||
8237          test ! -s conftest.err
8238        } && test -s conftest$ac_exeext &&
8239        $as_test_x conftest$ac_exeext; then
8240
8241 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8242 }'`
8243 # Check for a 64-bit object if we didn't find anything.
8244 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; }
8245 }'`; fi
8246 else
8247   echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250
8251 fi
8252
8253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8254       conftest$ac_exeext conftest.$ac_ext
8255 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8256
8257          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8258           # Warning - without using the other run time loading flags,
8259           # -berok will link without error, but may produce a broken library.
8260           no_undefined_flag=' ${wl}-bernotok'
8261           allow_undefined_flag=' ${wl}-berok'
8262           # Exported symbols can be pulled into shared objects from archives
8263           whole_archive_flag_spec='$convenience'
8264           archive_cmds_need_lc=yes
8265           # This is similar to how AIX traditionally builds its shared libraries.
8266           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'
8267         fi
8268       fi
8269       ;;
8270
8271     amigaos*)
8272       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)'
8273       hardcode_libdir_flag_spec='-L$libdir'
8274       hardcode_minus_L=yes
8275       # see comment about different semantics on the GNU ld section
8276       ld_shlibs=no
8277       ;;
8278
8279     bsdi[45]*)
8280       export_dynamic_flag_spec=-rdynamic
8281       ;;
8282
8283     cygwin* | mingw* | pw32*)
8284       # When not using gcc, we currently assume that we are using
8285       # Microsoft Visual C++.
8286       # hardcode_libdir_flag_spec is actually meaningless, as there is
8287       # no search path for DLLs.
8288       hardcode_libdir_flag_spec=' '
8289       allow_undefined_flag=unsupported
8290       # Tell ltmain to make .lib files, not .a files.
8291       libext=lib
8292       # Tell ltmain to make .dll files, not .so files.
8293       shrext_cmds=".dll"
8294       # FIXME: Setting linknames here is a bad hack.
8295       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8296       # The linker will automatically build a .lib file if we build a DLL.
8297       old_archive_From_new_cmds='true'
8298       # FIXME: Should let the user specify the lib program.
8299       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8300       fix_srcfile_path='`cygpath -w "$srcfile"`'
8301       enable_shared_with_static_runtimes=yes
8302       ;;
8303
8304     darwin* | rhapsody*)
8305       case $host_os in
8306         rhapsody* | darwin1.[012])
8307          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8308          ;;
8309        *) # Darwin 1.3 on
8310          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8311            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8312          else
8313            case ${MACOSX_DEPLOYMENT_TARGET} in
8314              10.[012])
8315                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8316                ;;
8317              10.*)
8318                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8319                ;;
8320            esac
8321          fi
8322          ;;
8323       esac
8324       archive_cmds_need_lc=no
8325       hardcode_direct=no
8326       hardcode_automatic=yes
8327       hardcode_shlibpath_var=unsupported
8328       whole_archive_flag_spec=''
8329       link_all_deplibs=yes
8330     if test "$GCC" = yes ; then
8331         output_verbose_link_cmd='echo'
8332         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8333       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8334       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8335       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}'
8336       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}'
8337     else
8338       case $cc_basename in
8339         xlc*)
8340          output_verbose_link_cmd='echo'
8341          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8342          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8343           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8344          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}'
8345           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}'
8346           ;;
8347        *)
8348          ld_shlibs=no
8349           ;;
8350       esac
8351     fi
8352       ;;
8353
8354     dgux*)
8355       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8356       hardcode_libdir_flag_spec='-L$libdir'
8357       hardcode_shlibpath_var=no
8358       ;;
8359
8360     freebsd1*)
8361       ld_shlibs=no
8362       ;;
8363
8364     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8365     # support.  Future versions do this automatically, but an explicit c++rt0.o
8366     # does not break anything, and helps significantly (at the cost of a little
8367     # extra space).
8368     freebsd2.2*)
8369       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8370       hardcode_libdir_flag_spec='-R$libdir'
8371       hardcode_direct=yes
8372       hardcode_shlibpath_var=no
8373       ;;
8374
8375     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8376     freebsd2*)
8377       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8378       hardcode_direct=yes
8379       hardcode_minus_L=yes
8380       hardcode_shlibpath_var=no
8381       ;;
8382
8383     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8384     freebsd* | kfreebsd*-gnu | dragonfly*)
8385       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8386       hardcode_libdir_flag_spec='-R$libdir'
8387       hardcode_direct=yes
8388       hardcode_shlibpath_var=no
8389       ;;
8390
8391     hpux9*)
8392       if test "$GCC" = yes; then
8393         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'
8394       else
8395         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'
8396       fi
8397       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8398       hardcode_libdir_separator=:
8399       hardcode_direct=yes
8400
8401       # hardcode_minus_L: Not really in the search PATH,
8402       # but as the default location of the library.
8403       hardcode_minus_L=yes
8404       export_dynamic_flag_spec='${wl}-E'
8405       ;;
8406
8407     hpux10*)
8408       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8409         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8410       else
8411         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8412       fi
8413       if test "$with_gnu_ld" = no; then
8414         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8415         hardcode_libdir_separator=:
8416
8417         hardcode_direct=yes
8418         export_dynamic_flag_spec='${wl}-E'
8419
8420         # hardcode_minus_L: Not really in the search PATH,
8421         # but as the default location of the library.
8422         hardcode_minus_L=yes
8423       fi
8424       ;;
8425
8426     hpux11*)
8427       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8428         case $host_cpu in
8429         hppa*64*)
8430           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8431           ;;
8432         ia64*)
8433           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8434           ;;
8435         *)
8436           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8437           ;;
8438         esac
8439       else
8440         case $host_cpu in
8441         hppa*64*)
8442           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8443           ;;
8444         ia64*)
8445           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8446           ;;
8447         *)
8448           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8449           ;;
8450         esac
8451       fi
8452       if test "$with_gnu_ld" = no; then
8453         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8454         hardcode_libdir_separator=:
8455
8456         case $host_cpu in
8457         hppa*64*|ia64*)
8458           hardcode_libdir_flag_spec_ld='+b $libdir'
8459           hardcode_direct=no
8460           hardcode_shlibpath_var=no
8461           ;;
8462         *)
8463           hardcode_direct=yes
8464           export_dynamic_flag_spec='${wl}-E'
8465
8466           # hardcode_minus_L: Not really in the search PATH,
8467           # but as the default location of the library.
8468           hardcode_minus_L=yes
8469           ;;
8470         esac
8471       fi
8472       ;;
8473
8474     irix5* | irix6* | nonstopux*)
8475       if test "$GCC" = yes; then
8476         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'
8477       else
8478         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'
8479         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8480       fi
8481       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8482       hardcode_libdir_separator=:
8483       link_all_deplibs=yes
8484       ;;
8485
8486     netbsd*)
8487       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8488         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8489       else
8490         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8491       fi
8492       hardcode_libdir_flag_spec='-R$libdir'
8493       hardcode_direct=yes
8494       hardcode_shlibpath_var=no
8495       ;;
8496
8497     newsos6)
8498       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8499       hardcode_direct=yes
8500       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8501       hardcode_libdir_separator=:
8502       hardcode_shlibpath_var=no
8503       ;;
8504
8505     openbsd*)
8506       hardcode_direct=yes
8507       hardcode_shlibpath_var=no
8508       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8509         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8510         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8511         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8512         export_dynamic_flag_spec='${wl}-E'
8513       else
8514        case $host_os in
8515          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8516            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8517            hardcode_libdir_flag_spec='-R$libdir'
8518            ;;
8519          *)
8520            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8521            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8522            ;;
8523        esac
8524       fi
8525       ;;
8526
8527     os2*)
8528       hardcode_libdir_flag_spec='-L$libdir'
8529       hardcode_minus_L=yes
8530       allow_undefined_flag=unsupported
8531       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'
8532       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8533       ;;
8534
8535     osf3*)
8536       if test "$GCC" = yes; then
8537         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8538         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'
8539       else
8540         allow_undefined_flag=' -expect_unresolved \*'
8541         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'
8542       fi
8543       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544       hardcode_libdir_separator=:
8545       ;;
8546
8547     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8548       if test "$GCC" = yes; then
8549         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8550         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'
8551         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8552       else
8553         allow_undefined_flag=' -expect_unresolved \*'
8554         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'
8555         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8556         $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'
8557
8558         # Both c and cxx compiler support -rpath directly
8559         hardcode_libdir_flag_spec='-rpath $libdir'
8560       fi
8561       hardcode_libdir_separator=:
8562       ;;
8563
8564     solaris*)
8565       no_undefined_flag=' -z text'
8566       if test "$GCC" = yes; then
8567         wlarc='${wl}'
8568         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8569         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8570           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8571       else
8572         wlarc=''
8573         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8574         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8575         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8576       fi
8577       hardcode_libdir_flag_spec='-R$libdir'
8578       hardcode_shlibpath_var=no
8579       case $host_os in
8580       solaris2.[0-5] | solaris2.[0-5].*) ;;
8581       *)
8582         # The compiler driver will combine linker options so we
8583         # cannot just pass the convience library names through
8584         # without $wl, iff we do not link with $LD.
8585         # Luckily, gcc supports the same syntax we need for Sun Studio.
8586         # Supported since Solaris 2.6 (maybe 2.5.1?)
8587         case $wlarc in
8588         '')
8589           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8590         *)
8591           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' ;;
8592         esac ;;
8593       esac
8594       link_all_deplibs=yes
8595       ;;
8596
8597     sunos4*)
8598       if test "x$host_vendor" = xsequent; then
8599         # Use $CC to link under sequent, because it throws in some extra .o
8600         # files that make .init and .fini sections work.
8601         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8602       else
8603         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8604       fi
8605       hardcode_libdir_flag_spec='-L$libdir'
8606       hardcode_direct=yes
8607       hardcode_minus_L=yes
8608       hardcode_shlibpath_var=no
8609       ;;
8610
8611     sysv4)
8612       case $host_vendor in
8613         sni)
8614           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615           hardcode_direct=yes # is this really true???
8616         ;;
8617         siemens)
8618           ## LD is ld it makes a PLAMLIB
8619           ## CC just makes a GrossModule.
8620           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8621           reload_cmds='$CC -r -o $output$reload_objs'
8622           hardcode_direct=no
8623         ;;
8624         motorola)
8625           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8626           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8627         ;;
8628       esac
8629       runpath_var='LD_RUN_PATH'
8630       hardcode_shlibpath_var=no
8631       ;;
8632
8633     sysv4.3*)
8634       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8635       hardcode_shlibpath_var=no
8636       export_dynamic_flag_spec='-Bexport'
8637       ;;
8638
8639     sysv4*MP*)
8640       if test -d /usr/nec; then
8641         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8642         hardcode_shlibpath_var=no
8643         runpath_var=LD_RUN_PATH
8644         hardcode_runpath_var=yes
8645         ld_shlibs=yes
8646       fi
8647       ;;
8648
8649     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8650       no_undefined_flag='${wl}-z,text'
8651       archive_cmds_need_lc=no
8652       hardcode_shlibpath_var=no
8653       runpath_var='LD_RUN_PATH'
8654
8655       if test "$GCC" = yes; then
8656         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8657         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8658       else
8659         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8660         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8661       fi
8662       ;;
8663
8664     sysv5* | sco3.2v5* | sco5v6*)
8665       # Note: We can NOT use -z defs as we might desire, because we do not
8666       # link with -lc, and that would cause any symbols used from libc to
8667       # always be unresolved, which means just about no library would
8668       # ever link correctly.  If we're not using GNU ld we use -z text
8669       # though, which does catch some bad symbols but isn't as heavy-handed
8670       # as -z defs.
8671       no_undefined_flag='${wl}-z,text'
8672       allow_undefined_flag='${wl}-z,nodefs'
8673       archive_cmds_need_lc=no
8674       hardcode_shlibpath_var=no
8675       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8676       hardcode_libdir_separator=':'
8677       link_all_deplibs=yes
8678       export_dynamic_flag_spec='${wl}-Bexport'
8679       runpath_var='LD_RUN_PATH'
8680
8681       if test "$GCC" = yes; then
8682         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8683         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8684       else
8685         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8687       fi
8688       ;;
8689
8690     uts4*)
8691       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8692       hardcode_libdir_flag_spec='-L$libdir'
8693       hardcode_shlibpath_var=no
8694       ;;
8695
8696     *)
8697       ld_shlibs=no
8698       ;;
8699     esac
8700   fi
8701
8702 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8703 echo "${ECHO_T}$ld_shlibs" >&6; }
8704 test "$ld_shlibs" = no && can_build_shared=no
8705
8706 #
8707 # Do we need to explicitly link libc?
8708 #
8709 case "x$archive_cmds_need_lc" in
8710 x|xyes)
8711   # Assume -lc should be added
8712   archive_cmds_need_lc=yes
8713
8714   if test "$enable_shared" = yes && test "$GCC" = yes; then
8715     case $archive_cmds in
8716     *'~'*)
8717       # FIXME: we may have to deal with multi-command sequences.
8718       ;;
8719     '$CC '*)
8720       # Test whether the compiler implicitly links with -lc since on some
8721       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8722       # to ld, don't add -lc before -lgcc.
8723       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8724 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8725       $rm conftest*
8726       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8727
8728       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8729   (eval $ac_compile) 2>&5
8730   ac_status=$?
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); } 2>conftest.err; then
8733         soname=conftest
8734         lib=conftest
8735         libobjs=conftest.$ac_objext
8736         deplibs=
8737         wl=$lt_prog_compiler_wl
8738         pic_flag=$lt_prog_compiler_pic
8739         compiler_flags=-v
8740         linker_flags=-v
8741         verstring=
8742         output_objdir=.
8743         libname=conftest
8744         lt_save_allow_undefined_flag=$allow_undefined_flag
8745         allow_undefined_flag=
8746         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8747   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); }
8751         then
8752           archive_cmds_need_lc=no
8753         else
8754           archive_cmds_need_lc=yes
8755         fi
8756         allow_undefined_flag=$lt_save_allow_undefined_flag
8757       else
8758         cat conftest.err 1>&5
8759       fi
8760       $rm conftest*
8761       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8762 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8763       ;;
8764     esac
8765   fi
8766   ;;
8767 esac
8768
8769 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8770 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8771 library_names_spec=
8772 libname_spec='lib$name'
8773 soname_spec=
8774 shrext_cmds=".so"
8775 postinstall_cmds=
8776 postuninstall_cmds=
8777 finish_cmds=
8778 finish_eval=
8779 shlibpath_var=
8780 shlibpath_overrides_runpath=unknown
8781 version_type=none
8782 dynamic_linker="$host_os ld.so"
8783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8784 if test "$GCC" = yes; then
8785   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8786   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8787     # if the path contains ";" then we assume it to be the separator
8788     # otherwise default to the standard path separator (i.e. ":") - it is
8789     # assumed that no part of a normal pathname contains ";" but that should
8790     # okay in the real world where ";" in dirpaths is itself problematic.
8791     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8792   else
8793     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8794   fi
8795 else
8796   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8797 fi
8798 need_lib_prefix=unknown
8799 hardcode_into_libs=no
8800
8801 # when you set need_version to no, make sure it does not cause -set_version
8802 # flags to be left without arguments
8803 need_version=unknown
8804
8805 case $host_os in
8806 aix3*)
8807   version_type=linux
8808   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8809   shlibpath_var=LIBPATH
8810
8811   # AIX 3 has no versioning support, so we append a major version to the name.
8812   soname_spec='${libname}${release}${shared_ext}$major'
8813   ;;
8814
8815 aix4* | aix5*)
8816   version_type=linux
8817   need_lib_prefix=no
8818   need_version=no
8819   hardcode_into_libs=yes
8820   if test "$host_cpu" = ia64; then
8821     # AIX 5 supports IA64
8822     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8823     shlibpath_var=LD_LIBRARY_PATH
8824   else
8825     # With GCC up to 2.95.x, collect2 would create an import file
8826     # for dependence libraries.  The import file would start with
8827     # the line `#! .'.  This would cause the generated library to
8828     # depend on `.', always an invalid library.  This was fixed in
8829     # development snapshots of GCC prior to 3.0.
8830     case $host_os in
8831       aix4 | aix4.[01] | aix4.[01].*)
8832       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8833            echo ' yes '
8834            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8835         :
8836       else
8837         can_build_shared=no
8838       fi
8839       ;;
8840     esac
8841     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8842     # soname into executable. Probably we can add versioning support to
8843     # collect2, so additional links can be useful in future.
8844     if test "$aix_use_runtimelinking" = yes; then
8845       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8846       # instead of lib<name>.a to let people know that these are not
8847       # typical AIX shared libraries.
8848       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849     else
8850       # We preserve .a as extension for shared libraries through AIX4.2
8851       # and later when we are not doing run time linking.
8852       library_names_spec='${libname}${release}.a $libname.a'
8853       soname_spec='${libname}${release}${shared_ext}$major'
8854     fi
8855     shlibpath_var=LIBPATH
8856   fi
8857   ;;
8858
8859 amigaos*)
8860   library_names_spec='$libname.ixlibrary $libname.a'
8861   # Create ${libname}_ixlibrary.a entries in /sys/libs.
8862   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'
8863   ;;
8864
8865 beos*)
8866   library_names_spec='${libname}${shared_ext}'
8867   dynamic_linker="$host_os ld.so"
8868   shlibpath_var=LIBRARY_PATH
8869   ;;
8870
8871 bsdi[45]*)
8872   version_type=linux
8873   need_version=no
8874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8875   soname_spec='${libname}${release}${shared_ext}$major'
8876   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8877   shlibpath_var=LD_LIBRARY_PATH
8878   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8879   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8880   # the default ld.so.conf also contains /usr/contrib/lib and
8881   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8882   # libtool to hard-code these into programs
8883   ;;
8884
8885 cygwin* | mingw* | pw32*)
8886   version_type=windows
8887   shrext_cmds=".dll"
8888   need_version=no
8889   need_lib_prefix=no
8890
8891   case $GCC,$host_os in
8892   yes,cygwin* | yes,mingw* | yes,pw32*)
8893     library_names_spec='$libname.dll.a'
8894     # DLL is installed to $(libdir)/../bin by postinstall_cmds
8895     postinstall_cmds='base_file=`basename \${file}`~
8896       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8897       dldir=$destdir/`dirname \$dlpath`~
8898       test -d \$dldir || mkdir -p \$dldir~
8899       $install_prog $dir/$dlname \$dldir/$dlname~
8900       chmod a+x \$dldir/$dlname'
8901     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8902       dlpath=$dir/\$dldll~
8903        $rm \$dlpath'
8904     shlibpath_overrides_runpath=yes
8905
8906     case $host_os in
8907     cygwin*)
8908       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8909       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8910       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8911       ;;
8912     mingw*)
8913       # MinGW DLLs use traditional 'lib' prefix
8914       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8915       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8916       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8917         # It is most probably a Windows format PATH printed by
8918         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8919         # path with ; separators, and with drive letters. We can handle the
8920         # drive letters (cygwin fileutils understands them), so leave them,
8921         # especially as we might pass files found there to a mingw objdump,
8922         # which wouldn't understand a cygwinified path. Ahh.
8923         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8924       else
8925         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8926       fi
8927       ;;
8928     pw32*)
8929       # pw32 DLLs use 'pw' prefix rather than 'lib'
8930       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8931       ;;
8932     esac
8933     ;;
8934
8935   *)
8936     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8937     ;;
8938   esac
8939   dynamic_linker='Win32 ld.exe'
8940   # FIXME: first we should search . and the directory the executable is in
8941   shlibpath_var=PATH
8942   ;;
8943
8944 darwin* | rhapsody*)
8945   dynamic_linker="$host_os dyld"
8946   version_type=darwin
8947   need_lib_prefix=no
8948   need_version=no
8949   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8950   soname_spec='${libname}${release}${major}$shared_ext'
8951   shlibpath_overrides_runpath=yes
8952   shlibpath_var=DYLD_LIBRARY_PATH
8953   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8954   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8955   if test "$GCC" = yes; then
8956     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"`
8957   else
8958     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8959   fi
8960   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8961   ;;
8962
8963 dgux*)
8964   version_type=linux
8965   need_lib_prefix=no
8966   need_version=no
8967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8968   soname_spec='${libname}${release}${shared_ext}$major'
8969   shlibpath_var=LD_LIBRARY_PATH
8970   ;;
8971
8972 freebsd1*)
8973   dynamic_linker=no
8974   ;;
8975
8976 kfreebsd*-gnu)
8977   version_type=linux
8978   need_lib_prefix=no
8979   need_version=no
8980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8981   soname_spec='${libname}${release}${shared_ext}$major'
8982   shlibpath_var=LD_LIBRARY_PATH
8983   shlibpath_overrides_runpath=no
8984   hardcode_into_libs=yes
8985   dynamic_linker='GNU ld.so'
8986   ;;
8987
8988 freebsd* | dragonfly*)
8989   # DragonFly does not have aout.  When/if they implement a new
8990   # versioning mechanism, adjust this.
8991   if test -x /usr/bin/objformat; then
8992     objformat=`/usr/bin/objformat`
8993   else
8994     case $host_os in
8995     freebsd[123]*) objformat=aout ;;
8996     *) objformat=elf ;;
8997     esac
8998   fi
8999   version_type=freebsd-$objformat
9000   case $version_type in
9001     freebsd-elf*)
9002       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9003       need_version=no
9004       need_lib_prefix=no
9005       ;;
9006     freebsd-*)
9007       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9008       need_version=yes
9009       ;;
9010   esac
9011   shlibpath_var=LD_LIBRARY_PATH
9012   case $host_os in
9013   freebsd2*)
9014     shlibpath_overrides_runpath=yes
9015     ;;
9016   freebsd3.[01]* | freebsdelf3.[01]*)
9017     shlibpath_overrides_runpath=yes
9018     hardcode_into_libs=yes
9019     ;;
9020   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9021   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9022     shlibpath_overrides_runpath=no
9023     hardcode_into_libs=yes
9024     ;;
9025   freebsd*) # from 4.6 on
9026     shlibpath_overrides_runpath=yes
9027     hardcode_into_libs=yes
9028     ;;
9029   esac
9030   ;;
9031
9032 gnu*)
9033   version_type=linux
9034   need_lib_prefix=no
9035   need_version=no
9036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9037   soname_spec='${libname}${release}${shared_ext}$major'
9038   shlibpath_var=LD_LIBRARY_PATH
9039   hardcode_into_libs=yes
9040   ;;
9041
9042 hpux9* | hpux10* | hpux11*)
9043   # Give a soname corresponding to the major version so that dld.sl refuses to
9044   # link against other versions.
9045   version_type=sunos
9046   need_lib_prefix=no
9047   need_version=no
9048   case $host_cpu in
9049   ia64*)
9050     shrext_cmds='.so'
9051     hardcode_into_libs=yes
9052     dynamic_linker="$host_os dld.so"
9053     shlibpath_var=LD_LIBRARY_PATH
9054     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056     soname_spec='${libname}${release}${shared_ext}$major'
9057     if test "X$HPUX_IA64_MODE" = X32; then
9058       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9059     else
9060       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9061     fi
9062     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9063     ;;
9064    hppa*64*)
9065      shrext_cmds='.sl'
9066      hardcode_into_libs=yes
9067      dynamic_linker="$host_os dld.sl"
9068      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9069      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9070      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071      soname_spec='${libname}${release}${shared_ext}$major'
9072      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9073      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9074      ;;
9075    *)
9076     shrext_cmds='.sl'
9077     dynamic_linker="$host_os dld.sl"
9078     shlibpath_var=SHLIB_PATH
9079     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081     soname_spec='${libname}${release}${shared_ext}$major'
9082     ;;
9083   esac
9084   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9085   postinstall_cmds='chmod 555 $lib'
9086   ;;
9087
9088 interix3*)
9089   version_type=linux
9090   need_lib_prefix=no
9091   need_version=no
9092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9093   soname_spec='${libname}${release}${shared_ext}$major'
9094   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9095   shlibpath_var=LD_LIBRARY_PATH
9096   shlibpath_overrides_runpath=no
9097   hardcode_into_libs=yes
9098   ;;
9099
9100 irix5* | irix6* | nonstopux*)
9101   case $host_os in
9102     nonstopux*) version_type=nonstopux ;;
9103     *)
9104         if test "$lt_cv_prog_gnu_ld" = yes; then
9105                 version_type=linux
9106         else
9107                 version_type=irix
9108         fi ;;
9109   esac
9110   need_lib_prefix=no
9111   need_version=no
9112   soname_spec='${libname}${release}${shared_ext}$major'
9113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9114   case $host_os in
9115   irix5* | nonstopux*)
9116     libsuff= shlibsuff=
9117     ;;
9118   *)
9119     case $LD in # libtool.m4 will add one of these switches to LD
9120     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9121       libsuff= shlibsuff= libmagic=32-bit;;
9122     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9123       libsuff=32 shlibsuff=N32 libmagic=N32;;
9124     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9125       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9126     *) libsuff= shlibsuff= libmagic=never-match;;
9127     esac
9128     ;;
9129   esac
9130   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9131   shlibpath_overrides_runpath=no
9132   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9133   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9134   hardcode_into_libs=yes
9135   ;;
9136
9137 # No shared lib support for Linux oldld, aout, or coff.
9138 linux*oldld* | linux*aout* | linux*coff*)
9139   dynamic_linker=no
9140   ;;
9141
9142 # This must be Linux ELF.
9143 linux*)
9144   version_type=linux
9145   need_lib_prefix=no
9146   need_version=no
9147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148   soname_spec='${libname}${release}${shared_ext}$major'
9149   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9150   shlibpath_var=LD_LIBRARY_PATH
9151   shlibpath_overrides_runpath=no
9152   # This implies no fast_install, which is unacceptable.
9153   # Some rework will be needed to allow for fast_install
9154   # before this can be enabled.
9155   hardcode_into_libs=yes
9156
9157   # Append ld.so.conf contents to the search path
9158   if test -f /etc/ld.so.conf; then
9159     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' ' '`
9160     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9161   fi
9162
9163   # We used to test for /lib/ld.so.1 and disable shared libraries on
9164   # powerpc, because MkLinux only supported shared libraries with the
9165   # GNU dynamic linker.  Since this was broken with cross compilers,
9166   # most powerpc-linux boxes support dynamic linking these days and
9167   # people can always --disable-shared, the test was removed, and we
9168   # assume the GNU/Linux dynamic linker is in use.
9169   dynamic_linker='GNU/Linux ld.so'
9170   ;;
9171
9172 knetbsd*-gnu)
9173   version_type=linux
9174   need_lib_prefix=no
9175   need_version=no
9176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9177   soname_spec='${libname}${release}${shared_ext}$major'
9178   shlibpath_var=LD_LIBRARY_PATH
9179   shlibpath_overrides_runpath=no
9180   hardcode_into_libs=yes
9181   dynamic_linker='GNU ld.so'
9182   ;;
9183
9184 netbsd*)
9185   version_type=sunos
9186   need_lib_prefix=no
9187   need_version=no
9188   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9189     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9190     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9191     dynamic_linker='NetBSD (a.out) ld.so'
9192   else
9193     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9194     soname_spec='${libname}${release}${shared_ext}$major'
9195     dynamic_linker='NetBSD ld.elf_so'
9196   fi
9197   shlibpath_var=LD_LIBRARY_PATH
9198   shlibpath_overrides_runpath=yes
9199   hardcode_into_libs=yes
9200   ;;
9201
9202 newsos6)
9203   version_type=linux
9204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9205   shlibpath_var=LD_LIBRARY_PATH
9206   shlibpath_overrides_runpath=yes
9207   ;;
9208
9209 nto-qnx*)
9210   version_type=linux
9211   need_lib_prefix=no
9212   need_version=no
9213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9214   soname_spec='${libname}${release}${shared_ext}$major'
9215   shlibpath_var=LD_LIBRARY_PATH
9216   shlibpath_overrides_runpath=yes
9217   ;;
9218
9219 openbsd*)
9220   version_type=sunos
9221   sys_lib_dlsearch_path_spec="/usr/lib"
9222   need_lib_prefix=no
9223   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9224   case $host_os in
9225     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9226     *)                         need_version=no  ;;
9227   esac
9228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9229   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9230   shlibpath_var=LD_LIBRARY_PATH
9231   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9232     case $host_os in
9233       openbsd2.[89] | openbsd2.[89].*)
9234         shlibpath_overrides_runpath=no
9235         ;;
9236       *)
9237         shlibpath_overrides_runpath=yes
9238         ;;
9239       esac
9240   else
9241     shlibpath_overrides_runpath=yes
9242   fi
9243   ;;
9244
9245 os2*)
9246   libname_spec='$name'
9247   shrext_cmds=".dll"
9248   need_lib_prefix=no
9249   library_names_spec='$libname${shared_ext} $libname.a'
9250   dynamic_linker='OS/2 ld.exe'
9251   shlibpath_var=LIBPATH
9252   ;;
9253
9254 osf3* | osf4* | osf5*)
9255   version_type=osf
9256   need_lib_prefix=no
9257   need_version=no
9258   soname_spec='${libname}${release}${shared_ext}$major'
9259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260   shlibpath_var=LD_LIBRARY_PATH
9261   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9262   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9263   ;;
9264
9265 solaris*)
9266   version_type=linux
9267   need_lib_prefix=no
9268   need_version=no
9269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270   soname_spec='${libname}${release}${shared_ext}$major'
9271   shlibpath_var=LD_LIBRARY_PATH
9272   shlibpath_overrides_runpath=yes
9273   hardcode_into_libs=yes
9274   # ldd complains unless libraries are executable
9275   postinstall_cmds='chmod +x $lib'
9276   ;;
9277
9278 sunos4*)
9279   version_type=sunos
9280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9281   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9282   shlibpath_var=LD_LIBRARY_PATH
9283   shlibpath_overrides_runpath=yes
9284   if test "$with_gnu_ld" = yes; then
9285     need_lib_prefix=no
9286   fi
9287   need_version=yes
9288   ;;
9289
9290 sysv4 | sysv4.3*)
9291   version_type=linux
9292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9293   soname_spec='${libname}${release}${shared_ext}$major'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   case $host_vendor in
9296     sni)
9297       shlibpath_overrides_runpath=no
9298       need_lib_prefix=no
9299       export_dynamic_flag_spec='${wl}-Blargedynsym'
9300       runpath_var=LD_RUN_PATH
9301       ;;
9302     siemens)
9303       need_lib_prefix=no
9304       ;;
9305     motorola)
9306       need_lib_prefix=no
9307       need_version=no
9308       shlibpath_overrides_runpath=no
9309       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9310       ;;
9311   esac
9312   ;;
9313
9314 sysv4*MP*)
9315   if test -d /usr/nec ;then
9316     version_type=linux
9317     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9318     soname_spec='$libname${shared_ext}.$major'
9319     shlibpath_var=LD_LIBRARY_PATH
9320   fi
9321   ;;
9322
9323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9324   version_type=freebsd-elf
9325   need_lib_prefix=no
9326   need_version=no
9327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9328   soname_spec='${libname}${release}${shared_ext}$major'
9329   shlibpath_var=LD_LIBRARY_PATH
9330   hardcode_into_libs=yes
9331   if test "$with_gnu_ld" = yes; then
9332     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9333     shlibpath_overrides_runpath=no
9334   else
9335     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9336     shlibpath_overrides_runpath=yes
9337     case $host_os in
9338       sco3.2v5*)
9339         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9340         ;;
9341     esac
9342   fi
9343   sys_lib_dlsearch_path_spec='/usr/lib'
9344   ;;
9345
9346 uts4*)
9347   version_type=linux
9348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9349   soname_spec='${libname}${release}${shared_ext}$major'
9350   shlibpath_var=LD_LIBRARY_PATH
9351   ;;
9352
9353 *)
9354   dynamic_linker=no
9355   ;;
9356 esac
9357 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9358 echo "${ECHO_T}$dynamic_linker" >&6; }
9359 test "$dynamic_linker" = no && can_build_shared=no
9360
9361 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9362 if test "$GCC" = yes; then
9363   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9364 fi
9365
9366 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9367 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9368 hardcode_action=
9369 if test -n "$hardcode_libdir_flag_spec" || \
9370    test -n "$runpath_var" || \
9371    test "X$hardcode_automatic" = "Xyes" ; then
9372
9373   # We can hardcode non-existant directories.
9374   if test "$hardcode_direct" != no &&
9375      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9376      # have to relink, otherwise we might link with an installed library
9377      # when we should be linking with a yet-to-be-installed one
9378      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9379      test "$hardcode_minus_L" != no; then
9380     # Linking always hardcodes the temporary library directory.
9381     hardcode_action=relink
9382   else
9383     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9384     hardcode_action=immediate
9385   fi
9386 else
9387   # We cannot hardcode anything, or else we can only hardcode existing
9388   # directories.
9389   hardcode_action=unsupported
9390 fi
9391 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9392 echo "${ECHO_T}$hardcode_action" >&6; }
9393
9394 if test "$hardcode_action" = relink; then
9395   # Fast installation is not supported
9396   enable_fast_install=no
9397 elif test "$shlibpath_overrides_runpath" = yes ||
9398      test "$enable_shared" = no; then
9399   # Fast installation is not necessary
9400   enable_fast_install=needless
9401 fi
9402
9403 striplib=
9404 old_striplib=
9405 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9406 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9407 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9408   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9409   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9410   { echo "$as_me:$LINENO: result: yes" >&5
9411 echo "${ECHO_T}yes" >&6; }
9412 else
9413 # FIXME - insert some real tests, host_os isn't really good enough
9414   case $host_os in
9415    darwin*)
9416        if test -n "$STRIP" ; then
9417          striplib="$STRIP -x"
9418          { echo "$as_me:$LINENO: result: yes" >&5
9419 echo "${ECHO_T}yes" >&6; }
9420        else
9421   { echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6; }
9423 fi
9424        ;;
9425    *)
9426   { echo "$as_me:$LINENO: result: no" >&5
9427 echo "${ECHO_T}no" >&6; }
9428     ;;
9429   esac
9430 fi
9431
9432 if test "x$enable_dlopen" != xyes; then
9433   enable_dlopen=unknown
9434   enable_dlopen_self=unknown
9435   enable_dlopen_self_static=unknown
9436 else
9437   lt_cv_dlopen=no
9438   lt_cv_dlopen_libs=
9439
9440   case $host_os in
9441   beos*)
9442     lt_cv_dlopen="load_add_on"
9443     lt_cv_dlopen_libs=
9444     lt_cv_dlopen_self=yes
9445     ;;
9446
9447   mingw* | pw32*)
9448     lt_cv_dlopen="LoadLibrary"
9449     lt_cv_dlopen_libs=
9450    ;;
9451
9452   cygwin*)
9453     lt_cv_dlopen="dlopen"
9454     lt_cv_dlopen_libs=
9455    ;;
9456
9457   darwin*)
9458   # if libdl is installed we need to link against it
9459     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9462   echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464   ac_check_lib_save_LIBS=$LIBS
9465 LIBS="-ldl  $LIBS"
9466 cat >conftest.$ac_ext <<_ACEOF
9467 /* confdefs.h.  */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h.  */
9472
9473 /* Override any GCC internal prototype to avoid an error.
9474    Use char because int might match the return type of a GCC
9475    builtin and then its argument prototype would still apply.  */
9476 #ifdef __cplusplus
9477 extern "C"
9478 #endif
9479 char dlopen ();
9480 int
9481 main ()
9482 {
9483 return dlopen ();
9484   ;
9485   return 0;
9486 }
9487 _ACEOF
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9490 case "(($ac_try" in
9491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492   *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495   (eval "$ac_link") 2>conftest.er1
9496   ac_status=$?
9497   grep -v '^ *+' conftest.er1 >conftest.err
9498   rm -f conftest.er1
9499   cat conftest.err >&5
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); } && {
9502          test -z "$ac_c_werror_flag" ||
9503          test ! -s conftest.err
9504        } && test -s conftest$ac_exeext &&
9505        $as_test_x conftest$ac_exeext; then
9506   ac_cv_lib_dl_dlopen=yes
9507 else
9508   echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9510
9511         ac_cv_lib_dl_dlopen=no
9512 fi
9513
9514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9515       conftest$ac_exeext conftest.$ac_ext
9516 LIBS=$ac_check_lib_save_LIBS
9517 fi
9518 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9519 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9520 if test $ac_cv_lib_dl_dlopen = yes; then
9521   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9522 else
9523
9524     lt_cv_dlopen="dyld"
9525     lt_cv_dlopen_libs=
9526     lt_cv_dlopen_self=yes
9527
9528 fi
9529
9530    ;;
9531
9532   *)
9533     { echo "$as_me:$LINENO: checking for shl_load" >&5
9534 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9535 if test "${ac_cv_func_shl_load+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h.  */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h.  */
9544 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9545    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9546 #define shl_load innocuous_shl_load
9547
9548 /* System header to define __stub macros and hopefully few prototypes,
9549     which can conflict with char shl_load (); below.
9550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551     <limits.h> exists even on freestanding compilers.  */
9552
9553 #ifdef __STDC__
9554 # include <limits.h>
9555 #else
9556 # include <assert.h>
9557 #endif
9558
9559 #undef shl_load
9560
9561 /* Override any GCC internal prototype to avoid an error.
9562    Use char because int might match the return type of a GCC
9563    builtin and then its argument prototype would still apply.  */
9564 #ifdef __cplusplus
9565 extern "C"
9566 #endif
9567 char shl_load ();
9568 /* The GNU C library defines this for functions which it implements
9569     to always fail with ENOSYS.  Some functions are actually named
9570     something starting with __ and the normal name is an alias.  */
9571 #if defined __stub_shl_load || defined __stub___shl_load
9572 choke me
9573 #endif
9574
9575 int
9576 main ()
9577 {
9578 return shl_load ();
9579   ;
9580   return 0;
9581 }
9582 _ACEOF
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9585 case "(($ac_try" in
9586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587   *) ac_try_echo=$ac_try;;
9588 esac
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590   (eval "$ac_link") 2>conftest.er1
9591   ac_status=$?
9592   grep -v '^ *+' conftest.er1 >conftest.err
9593   rm -f conftest.er1
9594   cat conftest.err >&5
9595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596   (exit $ac_status); } && {
9597          test -z "$ac_c_werror_flag" ||
9598          test ! -s conftest.err
9599        } && test -s conftest$ac_exeext &&
9600        $as_test_x conftest$ac_exeext; then
9601   ac_cv_func_shl_load=yes
9602 else
9603   echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9605
9606         ac_cv_func_shl_load=no
9607 fi
9608
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610       conftest$ac_exeext conftest.$ac_ext
9611 fi
9612 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9613 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9614 if test $ac_cv_func_shl_load = yes; then
9615   lt_cv_dlopen="shl_load"
9616 else
9617   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9618 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9619 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9620   echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622   ac_check_lib_save_LIBS=$LIBS
9623 LIBS="-ldld  $LIBS"
9624 cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h.  */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h.  */
9630
9631 /* Override any GCC internal prototype to avoid an error.
9632    Use char because int might match the return type of a GCC
9633    builtin and then its argument prototype would still apply.  */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char shl_load ();
9638 int
9639 main ()
9640 {
9641 return shl_load ();
9642   ;
9643   return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9648 case "(($ac_try" in
9649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650   *) ac_try_echo=$ac_try;;
9651 esac
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653   (eval "$ac_link") 2>conftest.er1
9654   ac_status=$?
9655   grep -v '^ *+' conftest.er1 >conftest.err
9656   rm -f conftest.er1
9657   cat conftest.err >&5
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); } && {
9660          test -z "$ac_c_werror_flag" ||
9661          test ! -s conftest.err
9662        } && test -s conftest$ac_exeext &&
9663        $as_test_x conftest$ac_exeext; then
9664   ac_cv_lib_dld_shl_load=yes
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669         ac_cv_lib_dld_shl_load=no
9670 fi
9671
9672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9673       conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9675 fi
9676 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9677 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9678 if test $ac_cv_lib_dld_shl_load = yes; then
9679   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9680 else
9681   { echo "$as_me:$LINENO: checking for dlopen" >&5
9682 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9683 if test "${ac_cv_func_dlopen+set}" = set; then
9684   echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686   cat >conftest.$ac_ext <<_ACEOF
9687 /* confdefs.h.  */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h.  */
9692 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9693    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9694 #define dlopen innocuous_dlopen
9695
9696 /* System header to define __stub macros and hopefully few prototypes,
9697     which can conflict with char dlopen (); below.
9698     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9699     <limits.h> exists even on freestanding compilers.  */
9700
9701 #ifdef __STDC__
9702 # include <limits.h>
9703 #else
9704 # include <assert.h>
9705 #endif
9706
9707 #undef dlopen
9708
9709 /* Override any GCC internal prototype to avoid an error.
9710    Use char because int might match the return type of a GCC
9711    builtin and then its argument prototype would still apply.  */
9712 #ifdef __cplusplus
9713 extern "C"
9714 #endif
9715 char dlopen ();
9716 /* The GNU C library defines this for functions which it implements
9717     to always fail with ENOSYS.  Some functions are actually named
9718     something starting with __ and the normal name is an alias.  */
9719 #if defined __stub_dlopen || defined __stub___dlopen
9720 choke me
9721 #endif
9722
9723 int
9724 main ()
9725 {
9726 return dlopen ();
9727   ;
9728   return 0;
9729 }
9730 _ACEOF
9731 rm -f conftest.$ac_objext conftest$ac_exeext
9732 if { (ac_try="$ac_link"
9733 case "(($ac_try" in
9734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9735   *) ac_try_echo=$ac_try;;
9736 esac
9737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9738   (eval "$ac_link") 2>conftest.er1
9739   ac_status=$?
9740   grep -v '^ *+' conftest.er1 >conftest.err
9741   rm -f conftest.er1
9742   cat conftest.err >&5
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); } && {
9745          test -z "$ac_c_werror_flag" ||
9746          test ! -s conftest.err
9747        } && test -s conftest$ac_exeext &&
9748        $as_test_x conftest$ac_exeext; then
9749   ac_cv_func_dlopen=yes
9750 else
9751   echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9753
9754         ac_cv_func_dlopen=no
9755 fi
9756
9757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9758       conftest$ac_exeext conftest.$ac_ext
9759 fi
9760 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9761 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9762 if test $ac_cv_func_dlopen = yes; then
9763   lt_cv_dlopen="dlopen"
9764 else
9765   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9766 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9767 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9768   echo $ECHO_N "(cached) $ECHO_C" >&6
9769 else
9770   ac_check_lib_save_LIBS=$LIBS
9771 LIBS="-ldl  $LIBS"
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778
9779 /* Override any GCC internal prototype to avoid an error.
9780    Use char because int might match the return type of a GCC
9781    builtin and then its argument prototype would still apply.  */
9782 #ifdef __cplusplus
9783 extern "C"
9784 #endif
9785 char dlopen ();
9786 int
9787 main ()
9788 {
9789 return dlopen ();
9790   ;
9791   return 0;
9792 }
9793 _ACEOF
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9796 case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_link") 2>conftest.er1
9802   ac_status=$?
9803   grep -v '^ *+' conftest.er1 >conftest.err
9804   rm -f conftest.er1
9805   cat conftest.err >&5
9806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807   (exit $ac_status); } && {
9808          test -z "$ac_c_werror_flag" ||
9809          test ! -s conftest.err
9810        } && test -s conftest$ac_exeext &&
9811        $as_test_x conftest$ac_exeext; then
9812   ac_cv_lib_dl_dlopen=yes
9813 else
9814   echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817         ac_cv_lib_dl_dlopen=no
9818 fi
9819
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821       conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9823 fi
9824 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9825 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9826 if test $ac_cv_lib_dl_dlopen = yes; then
9827   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9828 else
9829   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9830 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9831 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9832   echo $ECHO_N "(cached) $ECHO_C" >&6
9833 else
9834   ac_check_lib_save_LIBS=$LIBS
9835 LIBS="-lsvld  $LIBS"
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842
9843 /* Override any GCC internal prototype to avoid an error.
9844    Use char because int might match the return type of a GCC
9845    builtin and then its argument prototype would still apply.  */
9846 #ifdef __cplusplus
9847 extern "C"
9848 #endif
9849 char dlopen ();
9850 int
9851 main ()
9852 {
9853 return dlopen ();
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 rm -f conftest.$ac_objext conftest$ac_exeext
9859 if { (ac_try="$ac_link"
9860 case "(($ac_try" in
9861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862   *) ac_try_echo=$ac_try;;
9863 esac
9864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865   (eval "$ac_link") 2>conftest.er1
9866   ac_status=$?
9867   grep -v '^ *+' conftest.er1 >conftest.err
9868   rm -f conftest.er1
9869   cat conftest.err >&5
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); } && {
9872          test -z "$ac_c_werror_flag" ||
9873          test ! -s conftest.err
9874        } && test -s conftest$ac_exeext &&
9875        $as_test_x conftest$ac_exeext; then
9876   ac_cv_lib_svld_dlopen=yes
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881         ac_cv_lib_svld_dlopen=no
9882 fi
9883
9884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9885       conftest$ac_exeext conftest.$ac_ext
9886 LIBS=$ac_check_lib_save_LIBS
9887 fi
9888 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9889 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9890 if test $ac_cv_lib_svld_dlopen = yes; then
9891   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9892 else
9893   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9894 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9895 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9896   echo $ECHO_N "(cached) $ECHO_C" >&6
9897 else
9898   ac_check_lib_save_LIBS=$LIBS
9899 LIBS="-ldld  $LIBS"
9900 cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h.  */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h.  */
9906
9907 /* Override any GCC internal prototype to avoid an error.
9908    Use char because int might match the return type of a GCC
9909    builtin and then its argument prototype would still apply.  */
9910 #ifdef __cplusplus
9911 extern "C"
9912 #endif
9913 char dld_link ();
9914 int
9915 main ()
9916 {
9917 return dld_link ();
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9924 case "(($ac_try" in
9925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926   *) ac_try_echo=$ac_try;;
9927 esac
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929   (eval "$ac_link") 2>conftest.er1
9930   ac_status=$?
9931   grep -v '^ *+' conftest.er1 >conftest.err
9932   rm -f conftest.er1
9933   cat conftest.err >&5
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); } && {
9936          test -z "$ac_c_werror_flag" ||
9937          test ! -s conftest.err
9938        } && test -s conftest$ac_exeext &&
9939        $as_test_x conftest$ac_exeext; then
9940   ac_cv_lib_dld_dld_link=yes
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945         ac_cv_lib_dld_dld_link=no
9946 fi
9947
9948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9949       conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9951 fi
9952 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9954 if test $ac_cv_lib_dld_dld_link = yes; then
9955   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9956 fi
9957
9958
9959 fi
9960
9961
9962 fi
9963
9964
9965 fi
9966
9967
9968 fi
9969
9970
9971 fi
9972
9973     ;;
9974   esac
9975
9976   if test "x$lt_cv_dlopen" != xno; then
9977     enable_dlopen=yes
9978   else
9979     enable_dlopen=no
9980   fi
9981
9982   case $lt_cv_dlopen in
9983   dlopen)
9984     save_CPPFLAGS="$CPPFLAGS"
9985     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9986
9987     save_LDFLAGS="$LDFLAGS"
9988     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9989
9990     save_LIBS="$LIBS"
9991     LIBS="$lt_cv_dlopen_libs $LIBS"
9992
9993     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9995 if test "${lt_cv_dlopen_self+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998           if test "$cross_compiling" = yes; then :
9999   lt_cv_dlopen_self=cross
10000 else
10001   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10002   lt_status=$lt_dlunknown
10003   cat > conftest.$ac_ext <<EOF
10004 #line 10004 "configure"
10005 #include "confdefs.h"
10006
10007 #if HAVE_DLFCN_H
10008 #include <dlfcn.h>
10009 #endif
10010
10011 #include <stdio.h>
10012
10013 #ifdef RTLD_GLOBAL
10014 #  define LT_DLGLOBAL           RTLD_GLOBAL
10015 #else
10016 #  ifdef DL_GLOBAL
10017 #    define LT_DLGLOBAL         DL_GLOBAL
10018 #  else
10019 #    define LT_DLGLOBAL         0
10020 #  endif
10021 #endif
10022
10023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10024    find out it does not work in some platform. */
10025 #ifndef LT_DLLAZY_OR_NOW
10026 #  ifdef RTLD_LAZY
10027 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10028 #  else
10029 #    ifdef DL_LAZY
10030 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10031 #    else
10032 #      ifdef RTLD_NOW
10033 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10034 #      else
10035 #        ifdef DL_NOW
10036 #          define LT_DLLAZY_OR_NOW      DL_NOW
10037 #        else
10038 #          define LT_DLLAZY_OR_NOW      0
10039 #        endif
10040 #      endif
10041 #    endif
10042 #  endif
10043 #endif
10044
10045 #ifdef __cplusplus
10046 extern "C" void exit (int);
10047 #endif
10048
10049 void fnord() { int i=42;}
10050 int main ()
10051 {
10052   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10053   int status = $lt_dlunknown;
10054
10055   if (self)
10056     {
10057       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10058       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10059       /* dlclose (self); */
10060     }
10061   else
10062     puts (dlerror ());
10063
10064     exit (status);
10065 }
10066 EOF
10067   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10068   (eval $ac_link) 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10072     (./conftest; exit; ) >&5 2>/dev/null
10073     lt_status=$?
10074     case x$lt_status in
10075       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10076       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10077       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10078     esac
10079   else :
10080     # compilation failed
10081     lt_cv_dlopen_self=no
10082   fi
10083 fi
10084 rm -fr conftest*
10085
10086
10087 fi
10088 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10089 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10090
10091     if test "x$lt_cv_dlopen_self" = xyes; then
10092       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10093       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10094 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10095 if test "${lt_cv_dlopen_self_static+set}" = set; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098           if test "$cross_compiling" = yes; then :
10099   lt_cv_dlopen_self_static=cross
10100 else
10101   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10102   lt_status=$lt_dlunknown
10103   cat > conftest.$ac_ext <<EOF
10104 #line 10104 "configure"
10105 #include "confdefs.h"
10106
10107 #if HAVE_DLFCN_H
10108 #include <dlfcn.h>
10109 #endif
10110
10111 #include <stdio.h>
10112
10113 #ifdef RTLD_GLOBAL
10114 #  define LT_DLGLOBAL           RTLD_GLOBAL
10115 #else
10116 #  ifdef DL_GLOBAL
10117 #    define LT_DLGLOBAL         DL_GLOBAL
10118 #  else
10119 #    define LT_DLGLOBAL         0
10120 #  endif
10121 #endif
10122
10123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10124    find out it does not work in some platform. */
10125 #ifndef LT_DLLAZY_OR_NOW
10126 #  ifdef RTLD_LAZY
10127 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10128 #  else
10129 #    ifdef DL_LAZY
10130 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10131 #    else
10132 #      ifdef RTLD_NOW
10133 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10134 #      else
10135 #        ifdef DL_NOW
10136 #          define LT_DLLAZY_OR_NOW      DL_NOW
10137 #        else
10138 #          define LT_DLLAZY_OR_NOW      0
10139 #        endif
10140 #      endif
10141 #    endif
10142 #  endif
10143 #endif
10144
10145 #ifdef __cplusplus
10146 extern "C" void exit (int);
10147 #endif
10148
10149 void fnord() { int i=42;}
10150 int main ()
10151 {
10152   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10153   int status = $lt_dlunknown;
10154
10155   if (self)
10156     {
10157       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10158       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10159       /* dlclose (self); */
10160     }
10161   else
10162     puts (dlerror ());
10163
10164     exit (status);
10165 }
10166 EOF
10167   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168   (eval $ac_link) 2>&5
10169   ac_status=$?
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10172     (./conftest; exit; ) >&5 2>/dev/null
10173     lt_status=$?
10174     case x$lt_status in
10175       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10176       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10177       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10178     esac
10179   else :
10180     # compilation failed
10181     lt_cv_dlopen_self_static=no
10182   fi
10183 fi
10184 rm -fr conftest*
10185
10186
10187 fi
10188 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10189 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10190     fi
10191
10192     CPPFLAGS="$save_CPPFLAGS"
10193     LDFLAGS="$save_LDFLAGS"
10194     LIBS="$save_LIBS"
10195     ;;
10196   esac
10197
10198   case $lt_cv_dlopen_self in
10199   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10200   *) enable_dlopen_self=unknown ;;
10201   esac
10202
10203   case $lt_cv_dlopen_self_static in
10204   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10205   *) enable_dlopen_self_static=unknown ;;
10206   esac
10207 fi
10208
10209
10210 # Report which library types will actually be built
10211 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10212 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10213 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10214 echo "${ECHO_T}$can_build_shared" >&6; }
10215
10216 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10217 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10218 test "$can_build_shared" = "no" && enable_shared=no
10219
10220 # On AIX, shared libraries and static libraries use the same namespace, and
10221 # are all built from PIC.
10222 case $host_os in
10223 aix3*)
10224   test "$enable_shared" = yes && enable_static=no
10225   if test -n "$RANLIB"; then
10226     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10227     postinstall_cmds='$RANLIB $lib'
10228   fi
10229   ;;
10230
10231 aix4* | aix5*)
10232   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10233     test "$enable_shared" = yes && enable_static=no
10234   fi
10235     ;;
10236 esac
10237 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10238 echo "${ECHO_T}$enable_shared" >&6; }
10239
10240 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10241 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10242 # Make sure either enable_shared or enable_static is yes.
10243 test "$enable_shared" = yes || enable_static=yes
10244 { echo "$as_me:$LINENO: result: $enable_static" >&5
10245 echo "${ECHO_T}$enable_static" >&6; }
10246
10247 # The else clause should only fire when bootstrapping the
10248 # libtool distribution, otherwise you forgot to ship ltmain.sh
10249 # with your package, and you will get complaints that there are
10250 # no rules to generate ltmain.sh.
10251 if test -f "$ltmain"; then
10252   # See if we are running on zsh, and set the options which allow our commands through
10253   # without removal of \ escapes.
10254   if test -n "${ZSH_VERSION+set}" ; then
10255     setopt NO_GLOB_SUBST
10256   fi
10257   # Now quote all the things that may contain metacharacters while being
10258   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10259   # variables and quote the copies for generation of the libtool script.
10260   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10261     SED SHELL STRIP \
10262     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10263     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10264     deplibs_check_method reload_flag reload_cmds need_locks \
10265     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10266     lt_cv_sys_global_symbol_to_c_name_address \
10267     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10268     old_postinstall_cmds old_postuninstall_cmds \
10269     compiler \
10270     CC \
10271     LD \
10272     lt_prog_compiler_wl \
10273     lt_prog_compiler_pic \
10274     lt_prog_compiler_static \
10275     lt_prog_compiler_no_builtin_flag \
10276     export_dynamic_flag_spec \
10277     thread_safe_flag_spec \
10278     whole_archive_flag_spec \
10279     enable_shared_with_static_runtimes \
10280     old_archive_cmds \
10281     old_archive_from_new_cmds \
10282     predep_objects \
10283     postdep_objects \
10284     predeps \
10285     postdeps \
10286     compiler_lib_search_path \
10287     archive_cmds \
10288     archive_expsym_cmds \
10289     postinstall_cmds \
10290     postuninstall_cmds \
10291     old_archive_from_expsyms_cmds \
10292     allow_undefined_flag \
10293     no_undefined_flag \
10294     export_symbols_cmds \
10295     hardcode_libdir_flag_spec \
10296     hardcode_libdir_flag_spec_ld \
10297     hardcode_libdir_separator \
10298     hardcode_automatic \
10299     module_cmds \
10300     module_expsym_cmds \
10301     lt_cv_prog_compiler_c_o \
10302     exclude_expsyms \
10303     include_expsyms; do
10304
10305     case $var in
10306     old_archive_cmds | \
10307     old_archive_from_new_cmds | \
10308     archive_cmds | \
10309     archive_expsym_cmds | \
10310     module_cmds | \
10311     module_expsym_cmds | \
10312     old_archive_from_expsyms_cmds | \
10313     export_symbols_cmds | \
10314     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10315     postinstall_cmds | postuninstall_cmds | \
10316     old_postinstall_cmds | old_postuninstall_cmds | \
10317     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10318       # Double-quote double-evaled strings.
10319       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10320       ;;
10321     *)
10322       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10323       ;;
10324     esac
10325   done
10326
10327   case $lt_echo in
10328   *'\$0 --fallback-echo"')
10329     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10330     ;;
10331   esac
10332
10333 cfgfile="${ofile}T"
10334   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10335   $rm -f "$cfgfile"
10336   { echo "$as_me:$LINENO: creating $ofile" >&5
10337 echo "$as_me: creating $ofile" >&6;}
10338
10339   cat <<__EOF__ >> "$cfgfile"
10340 #! $SHELL
10341
10342 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10343 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10345 #
10346 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10347 # Free Software Foundation, Inc.
10348 #
10349 # This file is part of GNU Libtool:
10350 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10351 #
10352 # This program is free software; you can redistribute it and/or modify
10353 # it under the terms of the GNU General Public License as published by
10354 # the Free Software Foundation; either version 2 of the License, or
10355 # (at your option) any later version.
10356 #
10357 # This program is distributed in the hope that it will be useful, but
10358 # WITHOUT ANY WARRANTY; without even the implied warranty of
10359 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10360 # General Public License for more details.
10361 #
10362 # You should have received a copy of the GNU General Public License
10363 # along with this program; if not, write to the Free Software
10364 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10365 #
10366 # As a special exception to the GNU General Public License, if you
10367 # distribute this file as part of a program that contains a
10368 # configuration script generated by Autoconf, you may include it under
10369 # the same distribution terms that you use for the rest of that program.
10370
10371 # A sed program that does not truncate output.
10372 SED=$lt_SED
10373
10374 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10375 Xsed="$SED -e 1s/^X//"
10376
10377 # The HP-UX ksh and POSIX shell print the target directory to stdout
10378 # if CDPATH is set.
10379 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10380
10381 # The names of the tagged configurations supported by this script.
10382 available_tags=
10383
10384 # ### BEGIN LIBTOOL CONFIG
10385
10386 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10387
10388 # Shell to use when invoking shell scripts.
10389 SHELL=$lt_SHELL
10390
10391 # Whether or not to build shared libraries.
10392 build_libtool_libs=$enable_shared
10393
10394 # Whether or not to build static libraries.
10395 build_old_libs=$enable_static
10396
10397 # Whether or not to add -lc for building shared libraries.
10398 build_libtool_need_lc=$archive_cmds_need_lc
10399
10400 # Whether or not to disallow shared libs when runtime libs are static
10401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10402
10403 # Whether or not to optimize for fast installation.
10404 fast_install=$enable_fast_install
10405
10406 # The host system.
10407 host_alias=$host_alias
10408 host=$host
10409 host_os=$host_os
10410
10411 # The build system.
10412 build_alias=$build_alias
10413 build=$build
10414 build_os=$build_os
10415
10416 # An echo program that does not interpret backslashes.
10417 echo=$lt_echo
10418
10419 # The archiver.
10420 AR=$lt_AR
10421 AR_FLAGS=$lt_AR_FLAGS
10422
10423 # A C compiler.
10424 LTCC=$lt_LTCC
10425
10426 # LTCC compiler flags.
10427 LTCFLAGS=$lt_LTCFLAGS
10428
10429 # A language-specific compiler.
10430 CC=$lt_compiler
10431
10432 # Is the compiler the GNU C compiler?
10433 with_gcc=$GCC
10434
10435 # An ERE matcher.
10436 EGREP=$lt_EGREP
10437
10438 # The linker used to build libraries.
10439 LD=$lt_LD
10440
10441 # Whether we need hard or soft links.
10442 LN_S=$lt_LN_S
10443
10444 # A BSD-compatible nm program.
10445 NM=$lt_NM
10446
10447 # A symbol stripping program
10448 STRIP=$lt_STRIP
10449
10450 # Used to examine libraries when file_magic_cmd begins "file"
10451 MAGIC_CMD=$MAGIC_CMD
10452
10453 # Used on cygwin: DLL creation program.
10454 DLLTOOL="$DLLTOOL"
10455
10456 # Used on cygwin: object dumper.
10457 OBJDUMP="$OBJDUMP"
10458
10459 # Used on cygwin: assembler.
10460 AS="$AS"
10461
10462 # The name of the directory that contains temporary libtool files.
10463 objdir=$objdir
10464
10465 # How to create reloadable object files.
10466 reload_flag=$lt_reload_flag
10467 reload_cmds=$lt_reload_cmds
10468
10469 # How to pass a linker flag through the compiler.
10470 wl=$lt_lt_prog_compiler_wl
10471
10472 # Object file suffix (normally "o").
10473 objext="$ac_objext"
10474
10475 # Old archive suffix (normally "a").
10476 libext="$libext"
10477
10478 # Shared library suffix (normally ".so").
10479 shrext_cmds='$shrext_cmds'
10480
10481 # Executable file suffix (normally "").
10482 exeext="$exeext"
10483
10484 # Additional compiler flags for building library objects.
10485 pic_flag=$lt_lt_prog_compiler_pic
10486 pic_mode=$pic_mode
10487
10488 # What is the maximum length of a command?
10489 max_cmd_len=$lt_cv_sys_max_cmd_len
10490
10491 # Does compiler simultaneously support -c and -o options?
10492 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10493
10494 # Must we lock files when doing compilation?
10495 need_locks=$lt_need_locks
10496
10497 # Do we need the lib prefix for modules?
10498 need_lib_prefix=$need_lib_prefix
10499
10500 # Do we need a version for libraries?
10501 need_version=$need_version
10502
10503 # Whether dlopen is supported.
10504 dlopen_support=$enable_dlopen
10505
10506 # Whether dlopen of programs is supported.
10507 dlopen_self=$enable_dlopen_self
10508
10509 # Whether dlopen of statically linked programs is supported.
10510 dlopen_self_static=$enable_dlopen_self_static
10511
10512 # Compiler flag to prevent dynamic linking.
10513 link_static_flag=$lt_lt_prog_compiler_static
10514
10515 # Compiler flag to turn off builtin functions.
10516 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10517
10518 # Compiler flag to allow reflexive dlopens.
10519 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10520
10521 # Compiler flag to generate shared objects directly from archives.
10522 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10523
10524 # Compiler flag to generate thread-safe objects.
10525 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10526
10527 # Library versioning type.
10528 version_type=$version_type
10529
10530 # Format of library name prefix.
10531 libname_spec=$lt_libname_spec
10532
10533 # List of archive names.  First name is the real one, the rest are links.
10534 # The last name is the one that the linker finds with -lNAME.
10535 library_names_spec=$lt_library_names_spec
10536
10537 # The coded name of the library, if different from the real name.
10538 soname_spec=$lt_soname_spec
10539
10540 # Commands used to build and install an old-style archive.
10541 RANLIB=$lt_RANLIB
10542 old_archive_cmds=$lt_old_archive_cmds
10543 old_postinstall_cmds=$lt_old_postinstall_cmds
10544 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10545
10546 # Create an old-style archive from a shared archive.
10547 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10548
10549 # Create a temporary old-style archive to link instead of a shared archive.
10550 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10551
10552 # Commands used to build and install a shared archive.
10553 archive_cmds=$lt_archive_cmds
10554 archive_expsym_cmds=$lt_archive_expsym_cmds
10555 postinstall_cmds=$lt_postinstall_cmds
10556 postuninstall_cmds=$lt_postuninstall_cmds
10557
10558 # Commands used to build a loadable module (assumed same as above if empty)
10559 module_cmds=$lt_module_cmds
10560 module_expsym_cmds=$lt_module_expsym_cmds
10561
10562 # Commands to strip libraries.
10563 old_striplib=$lt_old_striplib
10564 striplib=$lt_striplib
10565
10566 # Dependencies to place before the objects being linked to create a
10567 # shared library.
10568 predep_objects=$lt_predep_objects
10569
10570 # Dependencies to place after the objects being linked to create a
10571 # shared library.
10572 postdep_objects=$lt_postdep_objects
10573
10574 # Dependencies to place before the objects being linked to create a
10575 # shared library.
10576 predeps=$lt_predeps
10577
10578 # Dependencies to place after the objects being linked to create a
10579 # shared library.
10580 postdeps=$lt_postdeps
10581
10582 # The library search path used internally by the compiler when linking
10583 # a shared library.
10584 compiler_lib_search_path=$lt_compiler_lib_search_path
10585
10586 # Method to check whether dependent libraries are shared objects.
10587 deplibs_check_method=$lt_deplibs_check_method
10588
10589 # Command to use when deplibs_check_method == file_magic.
10590 file_magic_cmd=$lt_file_magic_cmd
10591
10592 # Flag that allows shared libraries with undefined symbols to be built.
10593 allow_undefined_flag=$lt_allow_undefined_flag
10594
10595 # Flag that forces no undefined symbols.
10596 no_undefined_flag=$lt_no_undefined_flag
10597
10598 # Commands used to finish a libtool library installation in a directory.
10599 finish_cmds=$lt_finish_cmds
10600
10601 # Same as above, but a single script fragment to be evaled but not shown.
10602 finish_eval=$lt_finish_eval
10603
10604 # Take the output of nm and produce a listing of raw symbols and C names.
10605 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10606
10607 # Transform the output of nm in a proper C declaration
10608 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10609
10610 # Transform the output of nm in a C name address pair
10611 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10612
10613 # This is the shared library runtime path variable.
10614 runpath_var=$runpath_var
10615
10616 # This is the shared library path variable.
10617 shlibpath_var=$shlibpath_var
10618
10619 # Is shlibpath searched before the hard-coded library search path?
10620 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10621
10622 # How to hardcode a shared library path into an executable.
10623 hardcode_action=$hardcode_action
10624
10625 # Whether we should hardcode library paths into libraries.
10626 hardcode_into_libs=$hardcode_into_libs
10627
10628 # Flag to hardcode \$libdir into a binary during linking.
10629 # This must work even if \$libdir does not exist.
10630 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10631
10632 # If ld is used when linking, flag to hardcode \$libdir into
10633 # a binary during linking. This must work even if \$libdir does
10634 # not exist.
10635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10636
10637 # Whether we need a single -rpath flag with a separated argument.
10638 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10639
10640 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10641 # resulting binary.
10642 hardcode_direct=$hardcode_direct
10643
10644 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10645 # resulting binary.
10646 hardcode_minus_L=$hardcode_minus_L
10647
10648 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10649 # the resulting binary.
10650 hardcode_shlibpath_var=$hardcode_shlibpath_var
10651
10652 # Set to yes if building a shared library automatically hardcodes DIR into the library
10653 # and all subsequent libraries and executables linked against it.
10654 hardcode_automatic=$hardcode_automatic
10655
10656 # Variables whose values should be saved in libtool wrapper scripts and
10657 # restored at relink time.
10658 variables_saved_for_relink="$variables_saved_for_relink"
10659
10660 # Whether libtool must link a program against all its dependency libraries.
10661 link_all_deplibs=$link_all_deplibs
10662
10663 # Compile-time system search path for libraries
10664 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10665
10666 # Run-time system search path for libraries
10667 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10668
10669 # Fix the shell variable \$srcfile for the compiler.
10670 fix_srcfile_path="$fix_srcfile_path"
10671
10672 # Set to yes if exported symbols are required.
10673 always_export_symbols=$always_export_symbols
10674
10675 # The commands to list exported symbols.
10676 export_symbols_cmds=$lt_export_symbols_cmds
10677
10678 # The commands to extract the exported symbol list from a shared archive.
10679 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10680
10681 # Symbols that should not be listed in the preloaded symbols.
10682 exclude_expsyms=$lt_exclude_expsyms
10683
10684 # Symbols that must always be exported.
10685 include_expsyms=$lt_include_expsyms
10686
10687 # ### END LIBTOOL CONFIG
10688
10689 __EOF__
10690
10691
10692   case $host_os in
10693   aix3*)
10694     cat <<\EOF >> "$cfgfile"
10695
10696 # AIX sometimes has problems with the GCC collect2 program.  For some
10697 # reason, if we set the COLLECT_NAMES environment variable, the problems
10698 # vanish in a puff of smoke.
10699 if test "X${COLLECT_NAMES+set}" != Xset; then
10700   COLLECT_NAMES=
10701   export COLLECT_NAMES
10702 fi
10703 EOF
10704     ;;
10705   esac
10706
10707   # We use sed instead of cat because bash on DJGPP gets confused if
10708   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10709   # text mode, it properly converts lines to CR/LF.  This bash problem
10710   # is reportedly fixed, but why not run on old versions too?
10711   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10712
10713   mv -f "$cfgfile" "$ofile" || \
10714     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10715   chmod +x "$ofile"
10716
10717 else
10718   # If there is no Makefile yet, we rely on a make rule to execute
10719   # `config.status --recheck' to rerun these tests and create the
10720   # libtool script then.
10721   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10722   if test -f "$ltmain_in"; then
10723     test -f Makefile && make "$ltmain"
10724   fi
10725 fi
10726
10727
10728 ac_ext=c
10729 ac_cpp='$CPP $CPPFLAGS'
10730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10733
10734 CC="$lt_save_CC"
10735
10736
10737 # Check whether --with-tags was given.
10738 if test "${with_tags+set}" = set; then
10739   withval=$with_tags; tagnames="$withval"
10740 fi
10741
10742
10743 if test -f "$ltmain" && test -n "$tagnames"; then
10744   if test ! -f "${ofile}"; then
10745     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10746 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10747   fi
10748
10749   if test -z "$LTCC"; then
10750     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10751     if test -z "$LTCC"; then
10752       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10753 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10754     else
10755       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10756 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10757     fi
10758   fi
10759   if test -z "$LTCFLAGS"; then
10760     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10761   fi
10762
10763   # Extract list of available tagged configurations in $ofile.
10764   # Note that this assumes the entire list is on one line.
10765   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10766
10767   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10768   for tagname in $tagnames; do
10769     IFS="$lt_save_ifs"
10770     # Check whether tagname contains only valid characters
10771     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10772     "") ;;
10773     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10774 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10775    { (exit 1); exit 1; }; }
10776         ;;
10777     esac
10778
10779     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10780     then
10781       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10782 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10783    { (exit 1); exit 1; }; }
10784     fi
10785
10786     # Update the list of available tags.
10787     if test -n "$tagname"; then
10788       echo appending configuration tag \"$tagname\" to $ofile
10789
10790       case $tagname in
10791       CXX)
10792         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10793             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10794             (test "X$CXX" != "Xg++"))) ; then
10795           ac_ext=cpp
10796 ac_cpp='$CXXCPP $CPPFLAGS'
10797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10800
10801
10802
10803
10804 archive_cmds_need_lc_CXX=no
10805 allow_undefined_flag_CXX=
10806 always_export_symbols_CXX=no
10807 archive_expsym_cmds_CXX=
10808 export_dynamic_flag_spec_CXX=
10809 hardcode_direct_CXX=no
10810 hardcode_libdir_flag_spec_CXX=
10811 hardcode_libdir_flag_spec_ld_CXX=
10812 hardcode_libdir_separator_CXX=
10813 hardcode_minus_L_CXX=no
10814 hardcode_shlibpath_var_CXX=unsupported
10815 hardcode_automatic_CXX=no
10816 module_cmds_CXX=
10817 module_expsym_cmds_CXX=
10818 link_all_deplibs_CXX=unknown
10819 old_archive_cmds_CXX=$old_archive_cmds
10820 no_undefined_flag_CXX=
10821 whole_archive_flag_spec_CXX=
10822 enable_shared_with_static_runtimes_CXX=no
10823
10824 # Dependencies to place before and after the object being linked:
10825 predep_objects_CXX=
10826 postdep_objects_CXX=
10827 predeps_CXX=
10828 postdeps_CXX=
10829 compiler_lib_search_path_CXX=
10830
10831 # Source file extension for C++ test sources.
10832 ac_ext=cpp
10833
10834 # Object file extension for compiled C++ test sources.
10835 objext=o
10836 objext_CXX=$objext
10837
10838 # Code to be used in simple compile tests
10839 lt_simple_compile_test_code="int some_variable = 0;\n"
10840
10841 # Code to be used in simple link tests
10842 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10843
10844 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10845
10846 # If no C compiler was specified, use CC.
10847 LTCC=${LTCC-"$CC"}
10848
10849 # If no C compiler flags were specified, use CFLAGS.
10850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10851
10852 # Allow CC to be a program name with arguments.
10853 compiler=$CC
10854
10855
10856 # save warnings/boilerplate of simple test code
10857 ac_outfile=conftest.$ac_objext
10858 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10860 _lt_compiler_boilerplate=`cat conftest.err`
10861 $rm conftest*
10862
10863 ac_outfile=conftest.$ac_objext
10864 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10866 _lt_linker_boilerplate=`cat conftest.err`
10867 $rm conftest*
10868
10869
10870 # Allow CC to be a program name with arguments.
10871 lt_save_CC=$CC
10872 lt_save_LD=$LD
10873 lt_save_GCC=$GCC
10874 GCC=$GXX
10875 lt_save_with_gnu_ld=$with_gnu_ld
10876 lt_save_path_LD=$lt_cv_path_LD
10877 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10878   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10879 else
10880   $as_unset lt_cv_prog_gnu_ld
10881 fi
10882 if test -n "${lt_cv_path_LDCXX+set}"; then
10883   lt_cv_path_LD=$lt_cv_path_LDCXX
10884 else
10885   $as_unset lt_cv_path_LD
10886 fi
10887 test -z "${LDCXX+set}" || LD=$LDCXX
10888 CC=${CXX-"c++"}
10889 compiler=$CC
10890 compiler_CXX=$CC
10891 for cc_temp in $compiler""; do
10892   case $cc_temp in
10893     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10894     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10895     \-*) ;;
10896     *) break;;
10897   esac
10898 done
10899 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10900
10901
10902 # We don't want -fno-exception wen compiling C++ code, so set the
10903 # no_builtin_flag separately
10904 if test "$GXX" = yes; then
10905   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10906 else
10907   lt_prog_compiler_no_builtin_flag_CXX=
10908 fi
10909
10910 if test "$GXX" = yes; then
10911   # Set up default GNU C++ configuration
10912
10913
10914 # Check whether --with-gnu-ld was given.
10915 if test "${with_gnu_ld+set}" = set; then
10916   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10917 else
10918   with_gnu_ld=no
10919 fi
10920
10921 ac_prog=ld
10922 if test "$GCC" = yes; then
10923   # Check if gcc -print-prog-name=ld gives a path.
10924   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10925 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10926   case $host in
10927   *-*-mingw*)
10928     # gcc leaves a trailing carriage return which upsets mingw
10929     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10930   *)
10931     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10932   esac
10933   case $ac_prog in
10934     # Accept absolute paths.
10935     [\\/]* | ?:[\\/]*)
10936       re_direlt='/[^/][^/]*/\.\./'
10937       # Canonicalize the pathname of ld
10938       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10939       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10940         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10941       done
10942       test -z "$LD" && LD="$ac_prog"
10943       ;;
10944   "")
10945     # If it fails, then pretend we aren't using GCC.
10946     ac_prog=ld
10947     ;;
10948   *)
10949     # If it is relative, then search for the first ld in PATH.
10950     with_gnu_ld=unknown
10951     ;;
10952   esac
10953 elif test "$with_gnu_ld" = yes; then
10954   { echo "$as_me:$LINENO: checking for GNU ld" >&5
10955 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10956 else
10957   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10958 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10959 fi
10960 if test "${lt_cv_path_LD+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   if test -z "$LD"; then
10964   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10965   for ac_dir in $PATH; do
10966     IFS="$lt_save_ifs"
10967     test -z "$ac_dir" && ac_dir=.
10968     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10969       lt_cv_path_LD="$ac_dir/$ac_prog"
10970       # Check to see if the program is GNU ld.  I'd rather use --version,
10971       # but apparently some variants of GNU ld only accept -v.
10972       # Break only if it was the GNU/non-GNU ld that we prefer.
10973       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10974       *GNU* | *'with BFD'*)
10975         test "$with_gnu_ld" != no && break
10976         ;;
10977       *)
10978         test "$with_gnu_ld" != yes && break
10979         ;;
10980       esac
10981     fi
10982   done
10983   IFS="$lt_save_ifs"
10984 else
10985   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10986 fi
10987 fi
10988
10989 LD="$lt_cv_path_LD"
10990 if test -n "$LD"; then
10991   { echo "$as_me:$LINENO: result: $LD" >&5
10992 echo "${ECHO_T}$LD" >&6; }
10993 else
10994   { echo "$as_me:$LINENO: result: no" >&5
10995 echo "${ECHO_T}no" >&6; }
10996 fi
10997 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10998 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10999    { (exit 1); exit 1; }; }
11000 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11001 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11002 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11003   echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11006 case `$LD -v 2>&1 </dev/null` in
11007 *GNU* | *'with BFD'*)
11008   lt_cv_prog_gnu_ld=yes
11009   ;;
11010 *)
11011   lt_cv_prog_gnu_ld=no
11012   ;;
11013 esac
11014 fi
11015 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11016 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11017 with_gnu_ld=$lt_cv_prog_gnu_ld
11018
11019
11020
11021   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11022   # archiving commands below assume that GNU ld is being used.
11023   if test "$with_gnu_ld" = yes; then
11024     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11025     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'
11026
11027     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11028     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11029
11030     # If archive_cmds runs LD, not CC, wlarc should be empty
11031     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11032     #     investigate it a little bit more. (MM)
11033     wlarc='${wl}'
11034
11035     # ancient GNU ld didn't support --whole-archive et. al.
11036     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11037         grep 'no-whole-archive' > /dev/null; then
11038       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11039     else
11040       whole_archive_flag_spec_CXX=
11041     fi
11042   else
11043     with_gnu_ld=no
11044     wlarc=
11045
11046     # A generic and very simple default shared library creation
11047     # command for GNU C++ for the case where it uses the native
11048     # linker, instead of GNU ld.  If possible, this setting should
11049     # overridden to take advantage of the native linker features on
11050     # the platform it is being used on.
11051     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11052   fi
11053
11054   # Commands to make compiler produce verbose output that lists
11055   # what "hidden" libraries, object files and flags are used when
11056   # linking a shared library.
11057   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11058
11059 else
11060   GXX=no
11061   with_gnu_ld=no
11062   wlarc=
11063 fi
11064
11065 # PORTME: fill in a description of your system's C++ link characteristics
11066 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11067 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11068 ld_shlibs_CXX=yes
11069 case $host_os in
11070   aix3*)
11071     # FIXME: insert proper C++ library support
11072     ld_shlibs_CXX=no
11073     ;;
11074   aix4* | aix5*)
11075     if test "$host_cpu" = ia64; then
11076       # On IA64, the linker does run time linking by default, so we don't
11077       # have to do anything special.
11078       aix_use_runtimelinking=no
11079       exp_sym_flag='-Bexport'
11080       no_entry_flag=""
11081     else
11082       aix_use_runtimelinking=no
11083
11084       # Test if we are trying to use run time linking or normal
11085       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11086       # need to do runtime linking.
11087       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11088         for ld_flag in $LDFLAGS; do
11089           case $ld_flag in
11090           *-brtl*)
11091             aix_use_runtimelinking=yes
11092             break
11093             ;;
11094           esac
11095         done
11096         ;;
11097       esac
11098
11099       exp_sym_flag='-bexport'
11100       no_entry_flag='-bnoentry'
11101     fi
11102
11103     # When large executables or shared objects are built, AIX ld can
11104     # have problems creating the table of contents.  If linking a library
11105     # or program results in "error TOC overflow" add -mminimal-toc to
11106     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11107     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11108
11109     archive_cmds_CXX=''
11110     hardcode_direct_CXX=yes
11111     hardcode_libdir_separator_CXX=':'
11112     link_all_deplibs_CXX=yes
11113
11114     if test "$GXX" = yes; then
11115       case $host_os in aix4.[012]|aix4.[012].*)
11116       # We only want to do this on AIX 4.2 and lower, the check
11117       # below for broken collect2 doesn't work under 4.3+
11118         collect2name=`${CC} -print-prog-name=collect2`
11119         if test -f "$collect2name" && \
11120            strings "$collect2name" | grep resolve_lib_name >/dev/null
11121         then
11122           # We have reworked collect2
11123           hardcode_direct_CXX=yes
11124         else
11125           # We have old collect2
11126           hardcode_direct_CXX=unsupported
11127           # It fails to find uninstalled libraries when the uninstalled
11128           # path is not listed in the libpath.  Setting hardcode_minus_L
11129           # to unsupported forces relinking
11130           hardcode_minus_L_CXX=yes
11131           hardcode_libdir_flag_spec_CXX='-L$libdir'
11132           hardcode_libdir_separator_CXX=
11133         fi
11134         ;;
11135       esac
11136       shared_flag='-shared'
11137       if test "$aix_use_runtimelinking" = yes; then
11138         shared_flag="$shared_flag "'${wl}-G'
11139       fi
11140     else
11141       # not using gcc
11142       if test "$host_cpu" = ia64; then
11143         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11144         # chokes on -Wl,-G. The following line is correct:
11145         shared_flag='-G'
11146       else
11147         if test "$aix_use_runtimelinking" = yes; then
11148           shared_flag='${wl}-G'
11149         else
11150           shared_flag='${wl}-bM:SRE'
11151         fi
11152       fi
11153     fi
11154
11155     # It seems that -bexpall does not export symbols beginning with
11156     # underscore (_), so it is better to generate a list of symbols to export.
11157     always_export_symbols_CXX=yes
11158     if test "$aix_use_runtimelinking" = yes; then
11159       # Warning - without using the other runtime loading flags (-brtl),
11160       # -berok will link without error, but may produce a broken library.
11161       allow_undefined_flag_CXX='-berok'
11162       # Determine the default libpath from the value encoded in an empty executable.
11163       cat >conftest.$ac_ext <<_ACEOF
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169
11170 int
11171 main ()
11172 {
11173
11174   ;
11175   return 0;
11176 }
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (ac_try="$ac_link"
11180 case "(($ac_try" in
11181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182   *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185   (eval "$ac_link") 2>conftest.er1
11186   ac_status=$?
11187   grep -v '^ *+' conftest.er1 >conftest.err
11188   rm -f conftest.er1
11189   cat conftest.err >&5
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } && {
11192          test -z "$ac_cxx_werror_flag" ||
11193          test ! -s conftest.err
11194        } && test -s conftest$ac_exeext &&
11195        $as_test_x conftest$ac_exeext; then
11196
11197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11198 }'`
11199 # Check for a 64-bit object if we didn't find anything.
11200 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; }
11201 }'`; fi
11202 else
11203   echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11205
11206
11207 fi
11208
11209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11210       conftest$ac_exeext conftest.$ac_ext
11211 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11212
11213       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11214
11215       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"
11216      else
11217       if test "$host_cpu" = ia64; then
11218         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11219         allow_undefined_flag_CXX="-z nodefs"
11220         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"
11221       else
11222         # Determine the default libpath from the value encoded in an empty executable.
11223         cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h.  */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h.  */
11229
11230 int
11231 main ()
11232 {
11233
11234   ;
11235   return 0;
11236 }
11237 _ACEOF
11238 rm -f conftest.$ac_objext conftest$ac_exeext
11239 if { (ac_try="$ac_link"
11240 case "(($ac_try" in
11241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242   *) ac_try_echo=$ac_try;;
11243 esac
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245   (eval "$ac_link") 2>conftest.er1
11246   ac_status=$?
11247   grep -v '^ *+' conftest.er1 >conftest.err
11248   rm -f conftest.er1
11249   cat conftest.err >&5
11250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251   (exit $ac_status); } && {
11252          test -z "$ac_cxx_werror_flag" ||
11253          test ! -s conftest.err
11254        } && test -s conftest$ac_exeext &&
11255        $as_test_x conftest$ac_exeext; then
11256
11257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11258 }'`
11259 # Check for a 64-bit object if we didn't find anything.
11260 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; }
11261 }'`; fi
11262 else
11263   echo "$as_me: failed program was:" >&5
11264 sed 's/^/| /' conftest.$ac_ext >&5
11265
11266
11267 fi
11268
11269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11270       conftest$ac_exeext conftest.$ac_ext
11271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11272
11273         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11274         # Warning - without using the other run time loading flags,
11275         # -berok will link without error, but may produce a broken library.
11276         no_undefined_flag_CXX=' ${wl}-bernotok'
11277         allow_undefined_flag_CXX=' ${wl}-berok'
11278         # Exported symbols can be pulled into shared objects from archives
11279         whole_archive_flag_spec_CXX='$convenience'
11280         archive_cmds_need_lc_CXX=yes
11281         # This is similar to how AIX traditionally builds its shared libraries.
11282         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'
11283       fi
11284     fi
11285     ;;
11286
11287   beos*)
11288     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11289       allow_undefined_flag_CXX=unsupported
11290       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11291       # support --undefined.  This deserves some investigation.  FIXME
11292       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11293     else
11294       ld_shlibs_CXX=no
11295     fi
11296     ;;
11297
11298   chorus*)
11299     case $cc_basename in
11300       *)
11301         # FIXME: insert proper C++ library support
11302         ld_shlibs_CXX=no
11303         ;;
11304     esac
11305     ;;
11306
11307   cygwin* | mingw* | pw32*)
11308     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11309     # as there is no search path for DLLs.
11310     hardcode_libdir_flag_spec_CXX='-L$libdir'
11311     allow_undefined_flag_CXX=unsupported
11312     always_export_symbols_CXX=no
11313     enable_shared_with_static_runtimes_CXX=yes
11314
11315     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11316       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'
11317       # If the export-symbols file already is a .def file (1st line
11318       # is EXPORTS), use it as is; otherwise, prepend...
11319       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11320         cp $export_symbols $output_objdir/$soname.def;
11321       else
11322         echo EXPORTS > $output_objdir/$soname.def;
11323         cat $export_symbols >> $output_objdir/$soname.def;
11324       fi~
11325       $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'
11326     else
11327       ld_shlibs_CXX=no
11328     fi
11329   ;;
11330       darwin* | rhapsody*)
11331         case $host_os in
11332         rhapsody* | darwin1.[012])
11333          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11334          ;;
11335        *) # Darwin 1.3 on
11336          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11337            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11338          else
11339            case ${MACOSX_DEPLOYMENT_TARGET} in
11340              10.[012])
11341                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11342                ;;
11343              10.*)
11344                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11345                ;;
11346            esac
11347          fi
11348          ;;
11349         esac
11350       archive_cmds_need_lc_CXX=no
11351       hardcode_direct_CXX=no
11352       hardcode_automatic_CXX=yes
11353       hardcode_shlibpath_var_CXX=unsupported
11354       whole_archive_flag_spec_CXX=''
11355       link_all_deplibs_CXX=yes
11356
11357     if test "$GXX" = yes ; then
11358       lt_int_apple_cc_single_mod=no
11359       output_verbose_link_cmd='echo'
11360       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11361        lt_int_apple_cc_single_mod=yes
11362       fi
11363       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11364        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11365       else
11366           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'
11367         fi
11368         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11369         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11370           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11371             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}'
11372           else
11373             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}'
11374           fi
11375             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}'
11376       else
11377       case $cc_basename in
11378         xlc*)
11379          output_verbose_link_cmd='echo'
11380           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'
11381           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11382           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11383           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}'
11384           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}'
11385           ;;
11386        *)
11387          ld_shlibs_CXX=no
11388           ;;
11389       esac
11390       fi
11391         ;;
11392
11393   dgux*)
11394     case $cc_basename in
11395       ec++*)
11396         # FIXME: insert proper C++ library support
11397         ld_shlibs_CXX=no
11398         ;;
11399       ghcx*)
11400         # Green Hills C++ Compiler
11401         # FIXME: insert proper C++ library support
11402         ld_shlibs_CXX=no
11403         ;;
11404       *)
11405         # FIXME: insert proper C++ library support
11406         ld_shlibs_CXX=no
11407         ;;
11408     esac
11409     ;;
11410   freebsd[12]*)
11411     # C++ shared libraries reported to be fairly broken before switch to ELF
11412     ld_shlibs_CXX=no
11413     ;;
11414   freebsd-elf*)
11415     archive_cmds_need_lc_CXX=no
11416     ;;
11417   freebsd* | kfreebsd*-gnu | dragonfly*)
11418     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11419     # conventions
11420     ld_shlibs_CXX=yes
11421     ;;
11422   gnu*)
11423     ;;
11424   hpux9*)
11425     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11426     hardcode_libdir_separator_CXX=:
11427     export_dynamic_flag_spec_CXX='${wl}-E'
11428     hardcode_direct_CXX=yes
11429     hardcode_minus_L_CXX=yes # Not in the search PATH,
11430                                 # but as the default
11431                                 # location of the library.
11432
11433     case $cc_basename in
11434     CC*)
11435       # FIXME: insert proper C++ library support
11436       ld_shlibs_CXX=no
11437       ;;
11438     aCC*)
11439       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'
11440       # Commands to make compiler produce verbose output that lists
11441       # what "hidden" libraries, object files and flags are used when
11442       # linking a shared library.
11443       #
11444       # There doesn't appear to be a way to prevent this compiler from
11445       # explicitly linking system object files so we need to strip them
11446       # from the output so that they don't get included in the library
11447       # dependencies.
11448       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'
11449       ;;
11450     *)
11451       if test "$GXX" = yes; then
11452         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'
11453       else
11454         # FIXME: insert proper C++ library support
11455         ld_shlibs_CXX=no
11456       fi
11457       ;;
11458     esac
11459     ;;
11460   hpux10*|hpux11*)
11461     if test $with_gnu_ld = no; then
11462       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11463       hardcode_libdir_separator_CXX=:
11464
11465       case $host_cpu in
11466       hppa*64*|ia64*)
11467         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11468         ;;
11469       *)
11470         export_dynamic_flag_spec_CXX='${wl}-E'
11471         ;;
11472       esac
11473     fi
11474     case $host_cpu in
11475     hppa*64*|ia64*)
11476       hardcode_direct_CXX=no
11477       hardcode_shlibpath_var_CXX=no
11478       ;;
11479     *)
11480       hardcode_direct_CXX=yes
11481       hardcode_minus_L_CXX=yes # Not in the search PATH,
11482                                               # but as the default
11483                                               # location of the library.
11484       ;;
11485     esac
11486
11487     case $cc_basename in
11488       CC*)
11489         # FIXME: insert proper C++ library support
11490         ld_shlibs_CXX=no
11491         ;;
11492       aCC*)
11493         case $host_cpu in
11494         hppa*64*)
11495           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11496           ;;
11497         ia64*)
11498           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11499           ;;
11500         *)
11501           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11502           ;;
11503         esac
11504         # Commands to make compiler produce verbose output that lists
11505         # what "hidden" libraries, object files and flags are used when
11506         # linking a shared library.
11507         #
11508         # There doesn't appear to be a way to prevent this compiler from
11509         # explicitly linking system object files so we need to strip them
11510         # from the output so that they don't get included in the library
11511         # dependencies.
11512         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'
11513         ;;
11514       *)
11515         if test "$GXX" = yes; then
11516           if test $with_gnu_ld = no; then
11517             case $host_cpu in
11518             hppa*64*)
11519               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11520               ;;
11521             ia64*)
11522               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11523               ;;
11524             *)
11525               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'
11526               ;;
11527             esac
11528           fi
11529         else
11530           # FIXME: insert proper C++ library support
11531           ld_shlibs_CXX=no
11532         fi
11533         ;;
11534     esac
11535     ;;
11536   interix3*)
11537     hardcode_direct_CXX=no
11538     hardcode_shlibpath_var_CXX=no
11539     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11540     export_dynamic_flag_spec_CXX='${wl}-E'
11541     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11542     # Instead, shared libraries are loaded at an image base (0x10000000 by
11543     # default) and relocated if they conflict, which is a slow very memory
11544     # consuming and fragmenting process.  To avoid this, we pick a random,
11545     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11546     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11547     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'
11548     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'
11549     ;;
11550   irix5* | irix6*)
11551     case $cc_basename in
11552       CC*)
11553         # SGI C++
11554         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'
11555
11556         # Archives containing C++ object files must be created using
11557         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11558         # necessary to make sure instantiated templates are included
11559         # in the archive.
11560         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11561         ;;
11562       *)
11563         if test "$GXX" = yes; then
11564           if test "$with_gnu_ld" = no; then
11565             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'
11566           else
11567             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'
11568           fi
11569         fi
11570         link_all_deplibs_CXX=yes
11571         ;;
11572     esac
11573     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11574     hardcode_libdir_separator_CXX=:
11575     ;;
11576   linux*)
11577     case $cc_basename in
11578       KCC*)
11579         # Kuck and Associates, Inc. (KAI) C++ Compiler
11580
11581         # KCC will only create a shared library if the output file
11582         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11583         # to its proper name (with version) after linking.
11584         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'
11585         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'
11586         # Commands to make compiler produce verbose output that lists
11587         # what "hidden" libraries, object files and flags are used when
11588         # linking a shared library.
11589         #
11590         # There doesn't appear to be a way to prevent this compiler from
11591         # explicitly linking system object files so we need to strip them
11592         # from the output so that they don't get included in the library
11593         # dependencies.
11594         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'
11595
11596         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11597         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11598
11599         # Archives containing C++ object files must be created using
11600         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11601         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11602         ;;
11603       icpc*)
11604         # Intel C++
11605         with_gnu_ld=yes
11606         # version 8.0 and above of icpc choke on multiply defined symbols
11607         # if we add $predep_objects and $postdep_objects, however 7.1 and
11608         # earlier do not add the objects themselves.
11609         case `$CC -V 2>&1` in
11610         *"Version 7."*)
11611           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11612           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'
11613           ;;
11614         *)  # Version 8.0 or newer
11615           tmp_idyn=
11616           case $host_cpu in
11617             ia64*) tmp_idyn=' -i_dynamic';;
11618           esac
11619           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11620           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'
11621           ;;
11622         esac
11623         archive_cmds_need_lc_CXX=no
11624         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11625         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11626         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11627         ;;
11628       pgCC*)
11629         # Portland Group C++ compiler
11630         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11631         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'
11632
11633         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11634         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11635         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'
11636         ;;
11637       cxx*)
11638         # Compaq C++
11639         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11640         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'
11641
11642         runpath_var=LD_RUN_PATH
11643         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11644         hardcode_libdir_separator_CXX=:
11645
11646         # Commands to make compiler produce verbose output that lists
11647         # what "hidden" libraries, object files and flags are used when
11648         # linking a shared library.
11649         #
11650         # There doesn't appear to be a way to prevent this compiler from
11651         # explicitly linking system object files so we need to strip them
11652         # from the output so that they don't get included in the library
11653         # dependencies.
11654         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'
11655         ;;
11656     esac
11657     ;;
11658   lynxos*)
11659     # FIXME: insert proper C++ library support
11660     ld_shlibs_CXX=no
11661     ;;
11662   m88k*)
11663     # FIXME: insert proper C++ library support
11664     ld_shlibs_CXX=no
11665     ;;
11666   mvs*)
11667     case $cc_basename in
11668       cxx*)
11669         # FIXME: insert proper C++ library support
11670         ld_shlibs_CXX=no
11671         ;;
11672       *)
11673         # FIXME: insert proper C++ library support
11674         ld_shlibs_CXX=no
11675         ;;
11676     esac
11677     ;;
11678   netbsd*)
11679     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11680       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11681       wlarc=
11682       hardcode_libdir_flag_spec_CXX='-R$libdir'
11683       hardcode_direct_CXX=yes
11684       hardcode_shlibpath_var_CXX=no
11685     fi
11686     # Workaround some broken pre-1.5 toolchains
11687     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11688     ;;
11689   openbsd2*)
11690     # C++ shared libraries are fairly broken
11691     ld_shlibs_CXX=no
11692     ;;
11693   openbsd*)
11694     hardcode_direct_CXX=yes
11695     hardcode_shlibpath_var_CXX=no
11696     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11697     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11698     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11699       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11700       export_dynamic_flag_spec_CXX='${wl}-E'
11701       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11702     fi
11703     output_verbose_link_cmd='echo'
11704     ;;
11705   osf3*)
11706     case $cc_basename in
11707       KCC*)
11708         # Kuck and Associates, Inc. (KAI) C++ Compiler
11709
11710         # KCC will only create a shared library if the output file
11711         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11712         # to its proper name (with version) after linking.
11713         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'
11714
11715         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11716         hardcode_libdir_separator_CXX=:
11717
11718         # Archives containing C++ object files must be created using
11719         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11720         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11721
11722         ;;
11723       RCC*)
11724         # Rational C++ 2.4.1
11725         # FIXME: insert proper C++ library support
11726         ld_shlibs_CXX=no
11727         ;;
11728       cxx*)
11729         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11730         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'
11731
11732         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11733         hardcode_libdir_separator_CXX=:
11734
11735         # Commands to make compiler produce verbose output that lists
11736         # what "hidden" libraries, object files and flags are used when
11737         # linking a shared library.
11738         #
11739         # There doesn't appear to be a way to prevent this compiler from
11740         # explicitly linking system object files so we need to strip them
11741         # from the output so that they don't get included in the library
11742         # dependencies.
11743         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'
11744         ;;
11745       *)
11746         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11747           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11748           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'
11749
11750           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11751           hardcode_libdir_separator_CXX=:
11752
11753           # Commands to make compiler produce verbose output that lists
11754           # what "hidden" libraries, object files and flags are used when
11755           # linking a shared library.
11756           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11757
11758         else
11759           # FIXME: insert proper C++ library support
11760           ld_shlibs_CXX=no
11761         fi
11762         ;;
11763     esac
11764     ;;
11765   osf4* | osf5*)
11766     case $cc_basename in
11767       KCC*)
11768         # Kuck and Associates, Inc. (KAI) C++ Compiler
11769
11770         # KCC will only create a shared library if the output file
11771         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11772         # to its proper name (with version) after linking.
11773         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'
11774
11775         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11776         hardcode_libdir_separator_CXX=:
11777
11778         # Archives containing C++ object files must be created using
11779         # the KAI C++ compiler.
11780         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11781         ;;
11782       RCC*)
11783         # Rational C++ 2.4.1
11784         # FIXME: insert proper C++ library support
11785         ld_shlibs_CXX=no
11786         ;;
11787       cxx*)
11788         allow_undefined_flag_CXX=' -expect_unresolved \*'
11789         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'
11790         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11791           echo "-hidden">> $lib.exp~
11792           $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~
11793           $rm $lib.exp'
11794
11795         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11796         hardcode_libdir_separator_CXX=:
11797
11798         # Commands to make compiler produce verbose output that lists
11799         # what "hidden" libraries, object files and flags are used when
11800         # linking a shared library.
11801         #
11802         # There doesn't appear to be a way to prevent this compiler from
11803         # explicitly linking system object files so we need to strip them
11804         # from the output so that they don't get included in the library
11805         # dependencies.
11806         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'
11807         ;;
11808       *)
11809         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11810           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11811          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'
11812
11813           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11814           hardcode_libdir_separator_CXX=:
11815
11816           # Commands to make compiler produce verbose output that lists
11817           # what "hidden" libraries, object files and flags are used when
11818           # linking a shared library.
11819           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11820
11821         else
11822           # FIXME: insert proper C++ library support
11823           ld_shlibs_CXX=no
11824         fi
11825         ;;
11826     esac
11827     ;;
11828   psos*)
11829     # FIXME: insert proper C++ library support
11830     ld_shlibs_CXX=no
11831     ;;
11832   sunos4*)
11833     case $cc_basename in
11834       CC*)
11835         # Sun C++ 4.x
11836         # FIXME: insert proper C++ library support
11837         ld_shlibs_CXX=no
11838         ;;
11839       lcc*)
11840         # Lucid
11841         # FIXME: insert proper C++ library support
11842         ld_shlibs_CXX=no
11843         ;;
11844       *)
11845         # FIXME: insert proper C++ library support
11846         ld_shlibs_CXX=no
11847         ;;
11848     esac
11849     ;;
11850   solaris*)
11851     case $cc_basename in
11852       CC*)
11853         # Sun C++ 4.2, 5.x and Centerline C++
11854         archive_cmds_need_lc_CXX=yes
11855         no_undefined_flag_CXX=' -zdefs'
11856         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11857         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11858         $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'
11859
11860         hardcode_libdir_flag_spec_CXX='-R$libdir'
11861         hardcode_shlibpath_var_CXX=no
11862         case $host_os in
11863           solaris2.[0-5] | solaris2.[0-5].*) ;;
11864           *)
11865             # The C++ compiler is used as linker so we must use $wl
11866             # flag to pass the commands to the underlying system
11867             # linker. We must also pass each convience library through
11868             # to the system linker between allextract/defaultextract.
11869             # The C++ compiler will combine linker options so we
11870             # cannot just pass the convience library names through
11871             # without $wl.
11872             # Supported since Solaris 2.6 (maybe 2.5.1?)
11873             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'
11874             ;;
11875         esac
11876         link_all_deplibs_CXX=yes
11877
11878         output_verbose_link_cmd='echo'
11879
11880         # Archives containing C++ object files must be created using
11881         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11882         # necessary to make sure instantiated templates are included
11883         # in the archive.
11884         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11885         ;;
11886       gcx*)
11887         # Green Hills C++ Compiler
11888         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11889
11890         # The C++ compiler must be used to create the archive.
11891         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11892         ;;
11893       *)
11894         # GNU C++ compiler with Solaris linker
11895         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11896           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11897           if $CC --version | grep -v '^2\.7' > /dev/null; then
11898             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11899             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11900                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11901
11902             # Commands to make compiler produce verbose output that lists
11903             # what "hidden" libraries, object files and flags are used when
11904             # linking a shared library.
11905             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11906           else
11907             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11908             # platform.
11909             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11910             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11911                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11912
11913             # Commands to make compiler produce verbose output that lists
11914             # what "hidden" libraries, object files and flags are used when
11915             # linking a shared library.
11916             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11917           fi
11918
11919           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11920         fi
11921         ;;
11922     esac
11923     ;;
11924   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11925     no_undefined_flag_CXX='${wl}-z,text'
11926     archive_cmds_need_lc_CXX=no
11927     hardcode_shlibpath_var_CXX=no
11928     runpath_var='LD_RUN_PATH'
11929
11930     case $cc_basename in
11931       CC*)
11932         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11933         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11934         ;;
11935       *)
11936         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938         ;;
11939     esac
11940     ;;
11941   sysv5* | sco3.2v5* | sco5v6*)
11942     # Note: We can NOT use -z defs as we might desire, because we do not
11943     # link with -lc, and that would cause any symbols used from libc to
11944     # always be unresolved, which means just about no library would
11945     # ever link correctly.  If we're not using GNU ld we use -z text
11946     # though, which does catch some bad symbols but isn't as heavy-handed
11947     # as -z defs.
11948     # For security reasons, it is highly recommended that you always
11949     # use absolute paths for naming shared libraries, and exclude the
11950     # DT_RUNPATH tag from executables and libraries.  But doing so
11951     # requires that you compile everything twice, which is a pain.
11952     # So that behaviour is only enabled if SCOABSPATH is set to a
11953     # non-empty value in the environment.  Most likely only useful for
11954     # creating official distributions of packages.
11955     # This is a hack until libtool officially supports absolute path
11956     # names for shared libraries.
11957     no_undefined_flag_CXX='${wl}-z,text'
11958     allow_undefined_flag_CXX='${wl}-z,nodefs'
11959     archive_cmds_need_lc_CXX=no
11960     hardcode_shlibpath_var_CXX=no
11961     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11962     hardcode_libdir_separator_CXX=':'
11963     link_all_deplibs_CXX=yes
11964     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11965     runpath_var='LD_RUN_PATH'
11966
11967     case $cc_basename in
11968       CC*)
11969         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11970         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11971         ;;
11972       *)
11973         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11974         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11975         ;;
11976     esac
11977     ;;
11978   tandem*)
11979     case $cc_basename in
11980       NCC*)
11981         # NonStop-UX NCC 3.20
11982         # FIXME: insert proper C++ library support
11983         ld_shlibs_CXX=no
11984         ;;
11985       *)
11986         # FIXME: insert proper C++ library support
11987         ld_shlibs_CXX=no
11988         ;;
11989     esac
11990     ;;
11991   vxworks*)
11992     # FIXME: insert proper C++ library support
11993     ld_shlibs_CXX=no
11994     ;;
11995   *)
11996     # FIXME: insert proper C++ library support
11997     ld_shlibs_CXX=no
11998     ;;
11999 esac
12000 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12001 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12002 test "$ld_shlibs_CXX" = no && can_build_shared=no
12003
12004 GCC_CXX="$GXX"
12005 LD_CXX="$LD"
12006
12007 ## CAVEAT EMPTOR:
12008 ## There is no encapsulation within the following macros, do not change
12009 ## the running order or otherwise move them around unless you know exactly
12010 ## what you are doing...
12011
12012 cat > conftest.$ac_ext <<EOF
12013 class Foo
12014 {
12015 public:
12016   Foo (void) { a = 0; }
12017 private:
12018   int a;
12019 };
12020 EOF
12021
12022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12023   (eval $ac_compile) 2>&5
12024   ac_status=$?
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); }; then
12027   # Parse the compiler output and extract the necessary
12028   # objects, libraries and library flags.
12029
12030   # Sentinel used to keep track of whether or not we are before
12031   # the conftest object file.
12032   pre_test_object_deps_done=no
12033
12034   # The `*' in the case matches for architectures that use `case' in
12035   # $output_verbose_cmd can trigger glob expansion during the loop
12036   # eval without this substitution.
12037   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12038
12039   for p in `eval $output_verbose_link_cmd`; do
12040     case $p in
12041
12042     -L* | -R* | -l*)
12043        # Some compilers place space between "-{L,R}" and the path.
12044        # Remove the space.
12045        if test $p = "-L" \
12046           || test $p = "-R"; then
12047          prev=$p
12048          continue
12049        else
12050          prev=
12051        fi
12052
12053        if test "$pre_test_object_deps_done" = no; then
12054          case $p in
12055          -L* | -R*)
12056            # Internal compiler library paths should come after those
12057            # provided the user.  The postdeps already come after the
12058            # user supplied libs so there is no need to process them.
12059            if test -z "$compiler_lib_search_path_CXX"; then
12060              compiler_lib_search_path_CXX="${prev}${p}"
12061            else
12062              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12063            fi
12064            ;;
12065          # The "-l" case would never come before the object being
12066          # linked, so don't bother handling this case.
12067          esac
12068        else
12069          if test -z "$postdeps_CXX"; then
12070            postdeps_CXX="${prev}${p}"
12071          else
12072            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12073          fi
12074        fi
12075        ;;
12076
12077     *.$objext)
12078        # This assumes that the test object file only shows up
12079        # once in the compiler output.
12080        if test "$p" = "conftest.$objext"; then
12081          pre_test_object_deps_done=yes
12082          continue
12083        fi
12084
12085        if test "$pre_test_object_deps_done" = no; then
12086          if test -z "$predep_objects_CXX"; then
12087            predep_objects_CXX="$p"
12088          else
12089            predep_objects_CXX="$predep_objects_CXX $p"
12090          fi
12091        else
12092          if test -z "$postdep_objects_CXX"; then
12093            postdep_objects_CXX="$p"
12094          else
12095            postdep_objects_CXX="$postdep_objects_CXX $p"
12096          fi
12097        fi
12098        ;;
12099
12100     *) ;; # Ignore the rest.
12101
12102     esac
12103   done
12104
12105   # Clean up.
12106   rm -f a.out a.exe
12107 else
12108   echo "libtool.m4: error: problem compiling CXX test program"
12109 fi
12110
12111 $rm -f confest.$objext
12112
12113 # PORTME: override above test on systems where it is broken
12114 case $host_os in
12115 interix3*)
12116   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12117   # hack all around it, let's just trust "g++" to DTRT.
12118   predep_objects_CXX=
12119   postdep_objects_CXX=
12120   postdeps_CXX=
12121   ;;
12122
12123 solaris*)
12124   case $cc_basename in
12125   CC*)
12126     # Adding this requires a known-good setup of shared libraries for
12127     # Sun compiler versions before 5.6, else PIC objects from an old
12128     # archive will be linked into the output, leading to subtle bugs.
12129     postdeps_CXX='-lCstd -lCrun'
12130     ;;
12131   esac
12132   ;;
12133 esac
12134
12135
12136 case " $postdeps_CXX " in
12137 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12138 esac
12139
12140 lt_prog_compiler_wl_CXX=
12141 lt_prog_compiler_pic_CXX=
12142 lt_prog_compiler_static_CXX=
12143
12144 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12145 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12146
12147   # C++ specific cases for pic, static, wl, etc.
12148   if test "$GXX" = yes; then
12149     lt_prog_compiler_wl_CXX='-Wl,'
12150     lt_prog_compiler_static_CXX='-static'
12151
12152     case $host_os in
12153     aix*)
12154       # All AIX code is PIC.
12155       if test "$host_cpu" = ia64; then
12156         # AIX 5 now supports IA64 processor
12157         lt_prog_compiler_static_CXX='-Bstatic'
12158       fi
12159       ;;
12160     amigaos*)
12161       # FIXME: we need at least 68020 code to build shared libraries, but
12162       # adding the `-m68020' flag to GCC prevents building anything better,
12163       # like `-m68040'.
12164       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12165       ;;
12166     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12167       # PIC is the default for these OSes.
12168       ;;
12169     mingw* | os2* | pw32*)
12170       # This hack is so that the source file can tell whether it is being
12171       # built for inclusion in a dll (and should export symbols for example).
12172       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12173       ;;
12174     darwin* | rhapsody*)
12175       # PIC is the default on this platform
12176       # Common symbols not allowed in MH_DYLIB files
12177       lt_prog_compiler_pic_CXX='-fno-common'
12178       ;;
12179     *djgpp*)
12180       # DJGPP does not support shared libraries at all
12181       lt_prog_compiler_pic_CXX=
12182       ;;
12183     interix3*)
12184       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12185       # Instead, we relocate shared libraries at runtime.
12186       ;;
12187     sysv4*MP*)
12188       if test -d /usr/nec; then
12189         lt_prog_compiler_pic_CXX=-Kconform_pic
12190       fi
12191       ;;
12192     hpux*)
12193       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12194       # not for PA HP-UX.
12195       case $host_cpu in
12196       hppa*64*|ia64*)
12197         ;;
12198       *)
12199         lt_prog_compiler_pic_CXX='-fPIC'
12200         ;;
12201       esac
12202       ;;
12203     *)
12204       lt_prog_compiler_pic_CXX='-fPIC'
12205       ;;
12206     esac
12207   else
12208     case $host_os in
12209       aix4* | aix5*)
12210         # All AIX code is PIC.
12211         if test "$host_cpu" = ia64; then
12212           # AIX 5 now supports IA64 processor
12213           lt_prog_compiler_static_CXX='-Bstatic'
12214         else
12215           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12216         fi
12217         ;;
12218       chorus*)
12219         case $cc_basename in
12220         cxch68*)
12221           # Green Hills C++ Compiler
12222           # _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"
12223           ;;
12224         esac
12225         ;;
12226        darwin*)
12227          # PIC is the default on this platform
12228          # Common symbols not allowed in MH_DYLIB files
12229          case $cc_basename in
12230            xlc*)
12231            lt_prog_compiler_pic_CXX='-qnocommon'
12232            lt_prog_compiler_wl_CXX='-Wl,'
12233            ;;
12234          esac
12235        ;;
12236       dgux*)
12237         case $cc_basename in
12238           ec++*)
12239             lt_prog_compiler_pic_CXX='-KPIC'
12240             ;;
12241           ghcx*)
12242             # Green Hills C++ Compiler
12243             lt_prog_compiler_pic_CXX='-pic'
12244             ;;
12245           *)
12246             ;;
12247         esac
12248         ;;
12249       freebsd* | kfreebsd*-gnu | dragonfly*)
12250         # FreeBSD uses GNU C++
12251         ;;
12252       hpux9* | hpux10* | hpux11*)
12253         case $cc_basename in
12254           CC*)
12255             lt_prog_compiler_wl_CXX='-Wl,'
12256             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12257             if test "$host_cpu" != ia64; then
12258               lt_prog_compiler_pic_CXX='+Z'
12259             fi
12260             ;;
12261           aCC*)
12262             lt_prog_compiler_wl_CXX='-Wl,'
12263             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12264             case $host_cpu in
12265             hppa*64*|ia64*)
12266               # +Z the default
12267               ;;
12268             *)
12269               lt_prog_compiler_pic_CXX='+Z'
12270               ;;
12271             esac
12272             ;;
12273           *)
12274             ;;
12275         esac
12276         ;;
12277       interix*)
12278         # This is c89, which is MS Visual C++ (no shared libs)
12279         # Anyone wants to do a port?
12280         ;;
12281       irix5* | irix6* | nonstopux*)
12282         case $cc_basename in
12283           CC*)
12284             lt_prog_compiler_wl_CXX='-Wl,'
12285             lt_prog_compiler_static_CXX='-non_shared'
12286             # CC pic flag -KPIC is the default.
12287             ;;
12288           *)
12289             ;;
12290         esac
12291         ;;
12292       linux*)
12293         case $cc_basename in
12294           KCC*)
12295             # KAI C++ Compiler
12296             lt_prog_compiler_wl_CXX='--backend -Wl,'
12297             lt_prog_compiler_pic_CXX='-fPIC'
12298             ;;
12299           icpc* | ecpc*)
12300             # Intel C++
12301             lt_prog_compiler_wl_CXX='-Wl,'
12302             lt_prog_compiler_pic_CXX='-KPIC'
12303             lt_prog_compiler_static_CXX='-static'
12304             ;;
12305           pgCC*)
12306             # Portland Group C++ compiler.
12307             lt_prog_compiler_wl_CXX='-Wl,'
12308             lt_prog_compiler_pic_CXX='-fpic'
12309             lt_prog_compiler_static_CXX='-Bstatic'
12310             ;;
12311           cxx*)
12312             # Compaq C++
12313             # Make sure the PIC flag is empty.  It appears that all Alpha
12314             # Linux and Compaq Tru64 Unix objects are PIC.
12315             lt_prog_compiler_pic_CXX=
12316             lt_prog_compiler_static_CXX='-non_shared'
12317             ;;
12318           *)
12319             ;;
12320         esac
12321         ;;
12322       lynxos*)
12323         ;;
12324       m88k*)
12325         ;;
12326       mvs*)
12327         case $cc_basename in
12328           cxx*)
12329             lt_prog_compiler_pic_CXX='-W c,exportall'
12330             ;;
12331           *)
12332             ;;
12333         esac
12334         ;;
12335       netbsd*)
12336         ;;
12337       osf3* | osf4* | osf5*)
12338         case $cc_basename in
12339           KCC*)
12340             lt_prog_compiler_wl_CXX='--backend -Wl,'
12341             ;;
12342           RCC*)
12343             # Rational C++ 2.4.1
12344             lt_prog_compiler_pic_CXX='-pic'
12345             ;;
12346           cxx*)
12347             # Digital/Compaq C++
12348             lt_prog_compiler_wl_CXX='-Wl,'
12349             # Make sure the PIC flag is empty.  It appears that all Alpha
12350             # Linux and Compaq Tru64 Unix objects are PIC.
12351             lt_prog_compiler_pic_CXX=
12352             lt_prog_compiler_static_CXX='-non_shared'
12353             ;;
12354           *)
12355             ;;
12356         esac
12357         ;;
12358       psos*)
12359         ;;
12360       solaris*)
12361         case $cc_basename in
12362           CC*)
12363             # Sun C++ 4.2, 5.x and Centerline C++
12364             lt_prog_compiler_pic_CXX='-KPIC'
12365             lt_prog_compiler_static_CXX='-Bstatic'
12366             lt_prog_compiler_wl_CXX='-Qoption ld '
12367             ;;
12368           gcx*)
12369             # Green Hills C++ Compiler
12370             lt_prog_compiler_pic_CXX='-PIC'
12371             ;;
12372           *)
12373             ;;
12374         esac
12375         ;;
12376       sunos4*)
12377         case $cc_basename in
12378           CC*)
12379             # Sun C++ 4.x
12380             lt_prog_compiler_pic_CXX='-pic'
12381             lt_prog_compiler_static_CXX='-Bstatic'
12382             ;;
12383           lcc*)
12384             # Lucid
12385             lt_prog_compiler_pic_CXX='-pic'
12386             ;;
12387           *)
12388             ;;
12389         esac
12390         ;;
12391       tandem*)
12392         case $cc_basename in
12393           NCC*)
12394             # NonStop-UX NCC 3.20
12395             lt_prog_compiler_pic_CXX='-KPIC'
12396             ;;
12397           *)
12398             ;;
12399         esac
12400         ;;
12401       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12402         case $cc_basename in
12403           CC*)
12404             lt_prog_compiler_wl_CXX='-Wl,'
12405             lt_prog_compiler_pic_CXX='-KPIC'
12406             lt_prog_compiler_static_CXX='-Bstatic'
12407             ;;
12408         esac
12409         ;;
12410       vxworks*)
12411         ;;
12412       *)
12413         lt_prog_compiler_can_build_shared_CXX=no
12414         ;;
12415     esac
12416   fi
12417
12418 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12419 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12420
12421 #
12422 # Check to make sure the PIC flag actually works.
12423 #
12424 if test -n "$lt_prog_compiler_pic_CXX"; then
12425
12426 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12427 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12428 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12429   echo $ECHO_N "(cached) $ECHO_C" >&6
12430 else
12431   lt_prog_compiler_pic_works_CXX=no
12432   ac_outfile=conftest.$ac_objext
12433    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12434    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12435    # Insert the option either (1) after the last *FLAGS variable, or
12436    # (2) before a word containing "conftest.", or (3) at the end.
12437    # Note that $ac_compile itself does not contain backslashes and begins
12438    # with a dollar sign (not a hyphen), so the echo should work correctly.
12439    # The option is referenced via a variable to avoid confusing sed.
12440    lt_compile=`echo "$ac_compile" | $SED \
12441    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12442    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12443    -e 's:$: $lt_compiler_flag:'`
12444    (eval echo "\"\$as_me:12444: $lt_compile\"" >&5)
12445    (eval "$lt_compile" 2>conftest.err)
12446    ac_status=$?
12447    cat conftest.err >&5
12448    echo "$as_me:12448: \$? = $ac_status" >&5
12449    if (exit $ac_status) && test -s "$ac_outfile"; then
12450      # The compiler can only warn and ignore the option if not recognized
12451      # So say no if there are warnings other than the usual output.
12452      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12453      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12454      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12455        lt_prog_compiler_pic_works_CXX=yes
12456      fi
12457    fi
12458    $rm conftest*
12459
12460 fi
12461 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12462 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12463
12464 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12465     case $lt_prog_compiler_pic_CXX in
12466      "" | " "*) ;;
12467      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12468      esac
12469 else
12470     lt_prog_compiler_pic_CXX=
12471      lt_prog_compiler_can_build_shared_CXX=no
12472 fi
12473
12474 fi
12475 case $host_os in
12476   # For platforms which do not support PIC, -DPIC is meaningless:
12477   *djgpp*)
12478     lt_prog_compiler_pic_CXX=
12479     ;;
12480   *)
12481     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12482     ;;
12483 esac
12484
12485 #
12486 # Check to make sure the static flag actually works.
12487 #
12488 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12489 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12490 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12491 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   lt_prog_compiler_static_works_CXX=no
12495    save_LDFLAGS="$LDFLAGS"
12496    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12497    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12498    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12499      # The linker can only warn and ignore the option if not recognized
12500      # So say no if there are warnings
12501      if test -s conftest.err; then
12502        # Append any errors to the config.log.
12503        cat conftest.err 1>&5
12504        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12505        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12506        if diff conftest.exp conftest.er2 >/dev/null; then
12507          lt_prog_compiler_static_works_CXX=yes
12508        fi
12509      else
12510        lt_prog_compiler_static_works_CXX=yes
12511      fi
12512    fi
12513    $rm conftest*
12514    LDFLAGS="$save_LDFLAGS"
12515
12516 fi
12517 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12518 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12519
12520 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12521     :
12522 else
12523     lt_prog_compiler_static_CXX=
12524 fi
12525
12526
12527 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12528 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12529 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12530   echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532   lt_cv_prog_compiler_c_o_CXX=no
12533    $rm -r conftest 2>/dev/null
12534    mkdir conftest
12535    cd conftest
12536    mkdir out
12537    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12538
12539    lt_compiler_flag="-o out/conftest2.$ac_objext"
12540    # Insert the option either (1) after the last *FLAGS variable, or
12541    # (2) before a word containing "conftest.", or (3) at the end.
12542    # Note that $ac_compile itself does not contain backslashes and begins
12543    # with a dollar sign (not a hyphen), so the echo should work correctly.
12544    lt_compile=`echo "$ac_compile" | $SED \
12545    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12546    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12547    -e 's:$: $lt_compiler_flag:'`
12548    (eval echo "\"\$as_me:12548: $lt_compile\"" >&5)
12549    (eval "$lt_compile" 2>out/conftest.err)
12550    ac_status=$?
12551    cat out/conftest.err >&5
12552    echo "$as_me:12552: \$? = $ac_status" >&5
12553    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12554    then
12555      # The compiler can only warn and ignore the option if not recognized
12556      # So say no if there are warnings
12557      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12558      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12559      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12560        lt_cv_prog_compiler_c_o_CXX=yes
12561      fi
12562    fi
12563    chmod u+w . 2>&5
12564    $rm conftest*
12565    # SGI C++ compiler will create directory out/ii_files/ for
12566    # template instantiation
12567    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12568    $rm out/* && rmdir out
12569    cd ..
12570    rmdir conftest
12571    $rm conftest*
12572
12573 fi
12574 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12575 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12576
12577
12578 hard_links="nottested"
12579 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12580   # do not overwrite the value of need_locks provided by the user
12581   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12582 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12583   hard_links=yes
12584   $rm conftest*
12585   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12586   touch conftest.a
12587   ln conftest.a conftest.b 2>&5 || hard_links=no
12588   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12589   { echo "$as_me:$LINENO: result: $hard_links" >&5
12590 echo "${ECHO_T}$hard_links" >&6; }
12591   if test "$hard_links" = no; then
12592     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12593 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12594     need_locks=warn
12595   fi
12596 else
12597   need_locks=no
12598 fi
12599
12600 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12601 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12602
12603   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12604   case $host_os in
12605   aix4* | aix5*)
12606     # If we're using GNU nm, then we don't want the "-C" option.
12607     # -C means demangle to AIX nm, but means don't demangle with GNU nm
12608     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12609       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'
12610     else
12611       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'
12612     fi
12613     ;;
12614   pw32*)
12615     export_symbols_cmds_CXX="$ltdll_cmds"
12616   ;;
12617   cygwin* | mingw*)
12618     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'
12619   ;;
12620   *)
12621     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12622   ;;
12623   esac
12624
12625 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12626 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12627 test "$ld_shlibs_CXX" = no && can_build_shared=no
12628
12629 #
12630 # Do we need to explicitly link libc?
12631 #
12632 case "x$archive_cmds_need_lc_CXX" in
12633 x|xyes)
12634   # Assume -lc should be added
12635   archive_cmds_need_lc_CXX=yes
12636
12637   if test "$enable_shared" = yes && test "$GCC" = yes; then
12638     case $archive_cmds_CXX in
12639     *'~'*)
12640       # FIXME: we may have to deal with multi-command sequences.
12641       ;;
12642     '$CC '*)
12643       # Test whether the compiler implicitly links with -lc since on some
12644       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12645       # to ld, don't add -lc before -lgcc.
12646       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12647 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12648       $rm conftest*
12649       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12650
12651       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12652   (eval $ac_compile) 2>&5
12653   ac_status=$?
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } 2>conftest.err; then
12656         soname=conftest
12657         lib=conftest
12658         libobjs=conftest.$ac_objext
12659         deplibs=
12660         wl=$lt_prog_compiler_wl_CXX
12661         pic_flag=$lt_prog_compiler_pic_CXX
12662         compiler_flags=-v
12663         linker_flags=-v
12664         verstring=
12665         output_objdir=.
12666         libname=conftest
12667         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12668         allow_undefined_flag_CXX=
12669         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12670   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12671   ac_status=$?
12672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673   (exit $ac_status); }
12674         then
12675           archive_cmds_need_lc_CXX=no
12676         else
12677           archive_cmds_need_lc_CXX=yes
12678         fi
12679         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12680       else
12681         cat conftest.err 1>&5
12682       fi
12683       $rm conftest*
12684       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12685 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12686       ;;
12687     esac
12688   fi
12689   ;;
12690 esac
12691
12692 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12693 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12694 library_names_spec=
12695 libname_spec='lib$name'
12696 soname_spec=
12697 shrext_cmds=".so"
12698 postinstall_cmds=
12699 postuninstall_cmds=
12700 finish_cmds=
12701 finish_eval=
12702 shlibpath_var=
12703 shlibpath_overrides_runpath=unknown
12704 version_type=none
12705 dynamic_linker="$host_os ld.so"
12706 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12707 if test "$GCC" = yes; then
12708   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12709   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12710     # if the path contains ";" then we assume it to be the separator
12711     # otherwise default to the standard path separator (i.e. ":") - it is
12712     # assumed that no part of a normal pathname contains ";" but that should
12713     # okay in the real world where ";" in dirpaths is itself problematic.
12714     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12715   else
12716     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12717   fi
12718 else
12719   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12720 fi
12721 need_lib_prefix=unknown
12722 hardcode_into_libs=no
12723
12724 # when you set need_version to no, make sure it does not cause -set_version
12725 # flags to be left without arguments
12726 need_version=unknown
12727
12728 case $host_os in
12729 aix3*)
12730   version_type=linux
12731   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12732   shlibpath_var=LIBPATH
12733
12734   # AIX 3 has no versioning support, so we append a major version to the name.
12735   soname_spec='${libname}${release}${shared_ext}$major'
12736   ;;
12737
12738 aix4* | aix5*)
12739   version_type=linux
12740   need_lib_prefix=no
12741   need_version=no
12742   hardcode_into_libs=yes
12743   if test "$host_cpu" = ia64; then
12744     # AIX 5 supports IA64
12745     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12746     shlibpath_var=LD_LIBRARY_PATH
12747   else
12748     # With GCC up to 2.95.x, collect2 would create an import file
12749     # for dependence libraries.  The import file would start with
12750     # the line `#! .'.  This would cause the generated library to
12751     # depend on `.', always an invalid library.  This was fixed in
12752     # development snapshots of GCC prior to 3.0.
12753     case $host_os in
12754       aix4 | aix4.[01] | aix4.[01].*)
12755       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12756            echo ' yes '
12757            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12758         :
12759       else
12760         can_build_shared=no
12761       fi
12762       ;;
12763     esac
12764     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12765     # soname into executable. Probably we can add versioning support to
12766     # collect2, so additional links can be useful in future.
12767     if test "$aix_use_runtimelinking" = yes; then
12768       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12769       # instead of lib<name>.a to let people know that these are not
12770       # typical AIX shared libraries.
12771       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12772     else
12773       # We preserve .a as extension for shared libraries through AIX4.2
12774       # and later when we are not doing run time linking.
12775       library_names_spec='${libname}${release}.a $libname.a'
12776       soname_spec='${libname}${release}${shared_ext}$major'
12777     fi
12778     shlibpath_var=LIBPATH
12779   fi
12780   ;;
12781
12782 amigaos*)
12783   library_names_spec='$libname.ixlibrary $libname.a'
12784   # Create ${libname}_ixlibrary.a entries in /sys/libs.
12785   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'
12786   ;;
12787
12788 beos*)
12789   library_names_spec='${libname}${shared_ext}'
12790   dynamic_linker="$host_os ld.so"
12791   shlibpath_var=LIBRARY_PATH
12792   ;;
12793
12794 bsdi[45]*)
12795   version_type=linux
12796   need_version=no
12797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12798   soname_spec='${libname}${release}${shared_ext}$major'
12799   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12800   shlibpath_var=LD_LIBRARY_PATH
12801   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12802   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12803   # the default ld.so.conf also contains /usr/contrib/lib and
12804   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12805   # libtool to hard-code these into programs
12806   ;;
12807
12808 cygwin* | mingw* | pw32*)
12809   version_type=windows
12810   shrext_cmds=".dll"
12811   need_version=no
12812   need_lib_prefix=no
12813
12814   case $GCC,$host_os in
12815   yes,cygwin* | yes,mingw* | yes,pw32*)
12816     library_names_spec='$libname.dll.a'
12817     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12818     postinstall_cmds='base_file=`basename \${file}`~
12819       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12820       dldir=$destdir/`dirname \$dlpath`~
12821       test -d \$dldir || mkdir -p \$dldir~
12822       $install_prog $dir/$dlname \$dldir/$dlname~
12823       chmod a+x \$dldir/$dlname'
12824     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12825       dlpath=$dir/\$dldll~
12826        $rm \$dlpath'
12827     shlibpath_overrides_runpath=yes
12828
12829     case $host_os in
12830     cygwin*)
12831       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12832       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12833       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12834       ;;
12835     mingw*)
12836       # MinGW DLLs use traditional 'lib' prefix
12837       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12838       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12839       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12840         # It is most probably a Windows format PATH printed by
12841         # mingw gcc, but we are running on Cygwin. Gcc prints its search
12842         # path with ; separators, and with drive letters. We can handle the
12843         # drive letters (cygwin fileutils understands them), so leave them,
12844         # especially as we might pass files found there to a mingw objdump,
12845         # which wouldn't understand a cygwinified path. Ahh.
12846         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12847       else
12848         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12849       fi
12850       ;;
12851     pw32*)
12852       # pw32 DLLs use 'pw' prefix rather than 'lib'
12853       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12854       ;;
12855     esac
12856     ;;
12857
12858   *)
12859     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12860     ;;
12861   esac
12862   dynamic_linker='Win32 ld.exe'
12863   # FIXME: first we should search . and the directory the executable is in
12864   shlibpath_var=PATH
12865   ;;
12866
12867 darwin* | rhapsody*)
12868   dynamic_linker="$host_os dyld"
12869   version_type=darwin
12870   need_lib_prefix=no
12871   need_version=no
12872   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12873   soname_spec='${libname}${release}${major}$shared_ext'
12874   shlibpath_overrides_runpath=yes
12875   shlibpath_var=DYLD_LIBRARY_PATH
12876   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12877   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12878   if test "$GCC" = yes; then
12879     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"`
12880   else
12881     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12882   fi
12883   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12884   ;;
12885
12886 dgux*)
12887   version_type=linux
12888   need_lib_prefix=no
12889   need_version=no
12890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12891   soname_spec='${libname}${release}${shared_ext}$major'
12892   shlibpath_var=LD_LIBRARY_PATH
12893   ;;
12894
12895 freebsd1*)
12896   dynamic_linker=no
12897   ;;
12898
12899 kfreebsd*-gnu)
12900   version_type=linux
12901   need_lib_prefix=no
12902   need_version=no
12903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12904   soname_spec='${libname}${release}${shared_ext}$major'
12905   shlibpath_var=LD_LIBRARY_PATH
12906   shlibpath_overrides_runpath=no
12907   hardcode_into_libs=yes
12908   dynamic_linker='GNU ld.so'
12909   ;;
12910
12911 freebsd* | dragonfly*)
12912   # DragonFly does not have aout.  When/if they implement a new
12913   # versioning mechanism, adjust this.
12914   if test -x /usr/bin/objformat; then
12915     objformat=`/usr/bin/objformat`
12916   else
12917     case $host_os in
12918     freebsd[123]*) objformat=aout ;;
12919     *) objformat=elf ;;
12920     esac
12921   fi
12922   version_type=freebsd-$objformat
12923   case $version_type in
12924     freebsd-elf*)
12925       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12926       need_version=no
12927       need_lib_prefix=no
12928       ;;
12929     freebsd-*)
12930       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12931       need_version=yes
12932       ;;
12933   esac
12934   shlibpath_var=LD_LIBRARY_PATH
12935   case $host_os in
12936   freebsd2*)
12937     shlibpath_overrides_runpath=yes
12938     ;;
12939   freebsd3.[01]* | freebsdelf3.[01]*)
12940     shlibpath_overrides_runpath=yes
12941     hardcode_into_libs=yes
12942     ;;
12943   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12944   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12945     shlibpath_overrides_runpath=no
12946     hardcode_into_libs=yes
12947     ;;
12948   freebsd*) # from 4.6 on
12949     shlibpath_overrides_runpath=yes
12950     hardcode_into_libs=yes
12951     ;;
12952   esac
12953   ;;
12954
12955 gnu*)
12956   version_type=linux
12957   need_lib_prefix=no
12958   need_version=no
12959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12960   soname_spec='${libname}${release}${shared_ext}$major'
12961   shlibpath_var=LD_LIBRARY_PATH
12962   hardcode_into_libs=yes
12963   ;;
12964
12965 hpux9* | hpux10* | hpux11*)
12966   # Give a soname corresponding to the major version so that dld.sl refuses to
12967   # link against other versions.
12968   version_type=sunos
12969   need_lib_prefix=no
12970   need_version=no
12971   case $host_cpu in
12972   ia64*)
12973     shrext_cmds='.so'
12974     hardcode_into_libs=yes
12975     dynamic_linker="$host_os dld.so"
12976     shlibpath_var=LD_LIBRARY_PATH
12977     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12979     soname_spec='${libname}${release}${shared_ext}$major'
12980     if test "X$HPUX_IA64_MODE" = X32; then
12981       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12982     else
12983       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12984     fi
12985     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12986     ;;
12987    hppa*64*)
12988      shrext_cmds='.sl'
12989      hardcode_into_libs=yes
12990      dynamic_linker="$host_os dld.sl"
12991      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12992      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12993      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12994      soname_spec='${libname}${release}${shared_ext}$major'
12995      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12996      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12997      ;;
12998    *)
12999     shrext_cmds='.sl'
13000     dynamic_linker="$host_os dld.sl"
13001     shlibpath_var=SHLIB_PATH
13002     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13003     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13004     soname_spec='${libname}${release}${shared_ext}$major'
13005     ;;
13006   esac
13007   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13008   postinstall_cmds='chmod 555 $lib'
13009   ;;
13010
13011 interix3*)
13012   version_type=linux
13013   need_lib_prefix=no
13014   need_version=no
13015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13016   soname_spec='${libname}${release}${shared_ext}$major'
13017   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13018   shlibpath_var=LD_LIBRARY_PATH
13019   shlibpath_overrides_runpath=no
13020   hardcode_into_libs=yes
13021   ;;
13022
13023 irix5* | irix6* | nonstopux*)
13024   case $host_os in
13025     nonstopux*) version_type=nonstopux ;;
13026     *)
13027         if test "$lt_cv_prog_gnu_ld" = yes; then
13028                 version_type=linux
13029         else
13030                 version_type=irix
13031         fi ;;
13032   esac
13033   need_lib_prefix=no
13034   need_version=no
13035   soname_spec='${libname}${release}${shared_ext}$major'
13036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13037   case $host_os in
13038   irix5* | nonstopux*)
13039     libsuff= shlibsuff=
13040     ;;
13041   *)
13042     case $LD in # libtool.m4 will add one of these switches to LD
13043     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13044       libsuff= shlibsuff= libmagic=32-bit;;
13045     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13046       libsuff=32 shlibsuff=N32 libmagic=N32;;
13047     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13048       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13049     *) libsuff= shlibsuff= libmagic=never-match;;
13050     esac
13051     ;;
13052   esac
13053   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13054   shlibpath_overrides_runpath=no
13055   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13056   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13057   hardcode_into_libs=yes
13058   ;;
13059
13060 # No shared lib support for Linux oldld, aout, or coff.
13061 linux*oldld* | linux*aout* | linux*coff*)
13062   dynamic_linker=no
13063   ;;
13064
13065 # This must be Linux ELF.
13066 linux*)
13067   version_type=linux
13068   need_lib_prefix=no
13069   need_version=no
13070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13071   soname_spec='${libname}${release}${shared_ext}$major'
13072   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13073   shlibpath_var=LD_LIBRARY_PATH
13074   shlibpath_overrides_runpath=no
13075   # This implies no fast_install, which is unacceptable.
13076   # Some rework will be needed to allow for fast_install
13077   # before this can be enabled.
13078   hardcode_into_libs=yes
13079
13080   # Append ld.so.conf contents to the search path
13081   if test -f /etc/ld.so.conf; then
13082     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' ' '`
13083     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13084   fi
13085
13086   # We used to test for /lib/ld.so.1 and disable shared libraries on
13087   # powerpc, because MkLinux only supported shared libraries with the
13088   # GNU dynamic linker.  Since this was broken with cross compilers,
13089   # most powerpc-linux boxes support dynamic linking these days and
13090   # people can always --disable-shared, the test was removed, and we
13091   # assume the GNU/Linux dynamic linker is in use.
13092   dynamic_linker='GNU/Linux ld.so'
13093   ;;
13094
13095 knetbsd*-gnu)
13096   version_type=linux
13097   need_lib_prefix=no
13098   need_version=no
13099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13100   soname_spec='${libname}${release}${shared_ext}$major'
13101   shlibpath_var=LD_LIBRARY_PATH
13102   shlibpath_overrides_runpath=no
13103   hardcode_into_libs=yes
13104   dynamic_linker='GNU ld.so'
13105   ;;
13106
13107 netbsd*)
13108   version_type=sunos
13109   need_lib_prefix=no
13110   need_version=no
13111   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13113     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13114     dynamic_linker='NetBSD (a.out) ld.so'
13115   else
13116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13117     soname_spec='${libname}${release}${shared_ext}$major'
13118     dynamic_linker='NetBSD ld.elf_so'
13119   fi
13120   shlibpath_var=LD_LIBRARY_PATH
13121   shlibpath_overrides_runpath=yes
13122   hardcode_into_libs=yes
13123   ;;
13124
13125 newsos6)
13126   version_type=linux
13127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13128   shlibpath_var=LD_LIBRARY_PATH
13129   shlibpath_overrides_runpath=yes
13130   ;;
13131
13132 nto-qnx*)
13133   version_type=linux
13134   need_lib_prefix=no
13135   need_version=no
13136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13137   soname_spec='${libname}${release}${shared_ext}$major'
13138   shlibpath_var=LD_LIBRARY_PATH
13139   shlibpath_overrides_runpath=yes
13140   ;;
13141
13142 openbsd*)
13143   version_type=sunos
13144   sys_lib_dlsearch_path_spec="/usr/lib"
13145   need_lib_prefix=no
13146   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13147   case $host_os in
13148     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13149     *)                         need_version=no  ;;
13150   esac
13151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13152   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13153   shlibpath_var=LD_LIBRARY_PATH
13154   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13155     case $host_os in
13156       openbsd2.[89] | openbsd2.[89].*)
13157         shlibpath_overrides_runpath=no
13158         ;;
13159       *)
13160         shlibpath_overrides_runpath=yes
13161         ;;
13162       esac
13163   else
13164     shlibpath_overrides_runpath=yes
13165   fi
13166   ;;
13167
13168 os2*)
13169   libname_spec='$name'
13170   shrext_cmds=".dll"
13171   need_lib_prefix=no
13172   library_names_spec='$libname${shared_ext} $libname.a'
13173   dynamic_linker='OS/2 ld.exe'
13174   shlibpath_var=LIBPATH
13175   ;;
13176
13177 osf3* | osf4* | osf5*)
13178   version_type=osf
13179   need_lib_prefix=no
13180   need_version=no
13181   soname_spec='${libname}${release}${shared_ext}$major'
13182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13183   shlibpath_var=LD_LIBRARY_PATH
13184   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13185   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13186   ;;
13187
13188 solaris*)
13189   version_type=linux
13190   need_lib_prefix=no
13191   need_version=no
13192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13193   soname_spec='${libname}${release}${shared_ext}$major'
13194   shlibpath_var=LD_LIBRARY_PATH
13195   shlibpath_overrides_runpath=yes
13196   hardcode_into_libs=yes
13197   # ldd complains unless libraries are executable
13198   postinstall_cmds='chmod +x $lib'
13199   ;;
13200
13201 sunos4*)
13202   version_type=sunos
13203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13204   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13205   shlibpath_var=LD_LIBRARY_PATH
13206   shlibpath_overrides_runpath=yes
13207   if test "$with_gnu_ld" = yes; then
13208     need_lib_prefix=no
13209   fi
13210   need_version=yes
13211   ;;
13212
13213 sysv4 | sysv4.3*)
13214   version_type=linux
13215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216   soname_spec='${libname}${release}${shared_ext}$major'
13217   shlibpath_var=LD_LIBRARY_PATH
13218   case $host_vendor in
13219     sni)
13220       shlibpath_overrides_runpath=no
13221       need_lib_prefix=no
13222       export_dynamic_flag_spec='${wl}-Blargedynsym'
13223       runpath_var=LD_RUN_PATH
13224       ;;
13225     siemens)
13226       need_lib_prefix=no
13227       ;;
13228     motorola)
13229       need_lib_prefix=no
13230       need_version=no
13231       shlibpath_overrides_runpath=no
13232       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13233       ;;
13234   esac
13235   ;;
13236
13237 sysv4*MP*)
13238   if test -d /usr/nec ;then
13239     version_type=linux
13240     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13241     soname_spec='$libname${shared_ext}.$major'
13242     shlibpath_var=LD_LIBRARY_PATH
13243   fi
13244   ;;
13245
13246 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13247   version_type=freebsd-elf
13248   need_lib_prefix=no
13249   need_version=no
13250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13251   soname_spec='${libname}${release}${shared_ext}$major'
13252   shlibpath_var=LD_LIBRARY_PATH
13253   hardcode_into_libs=yes
13254   if test "$with_gnu_ld" = yes; then
13255     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13256     shlibpath_overrides_runpath=no
13257   else
13258     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13259     shlibpath_overrides_runpath=yes
13260     case $host_os in
13261       sco3.2v5*)
13262         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13263         ;;
13264     esac
13265   fi
13266   sys_lib_dlsearch_path_spec='/usr/lib'
13267   ;;
13268
13269 uts4*)
13270   version_type=linux
13271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13272   soname_spec='${libname}${release}${shared_ext}$major'
13273   shlibpath_var=LD_LIBRARY_PATH
13274   ;;
13275
13276 *)
13277   dynamic_linker=no
13278   ;;
13279 esac
13280 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13281 echo "${ECHO_T}$dynamic_linker" >&6; }
13282 test "$dynamic_linker" = no && can_build_shared=no
13283
13284 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13285 if test "$GCC" = yes; then
13286   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13287 fi
13288
13289 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13290 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13291 hardcode_action_CXX=
13292 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13293    test -n "$runpath_var_CXX" || \
13294    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13295
13296   # We can hardcode non-existant directories.
13297   if test "$hardcode_direct_CXX" != no &&
13298      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13299      # have to relink, otherwise we might link with an installed library
13300      # when we should be linking with a yet-to-be-installed one
13301      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13302      test "$hardcode_minus_L_CXX" != no; then
13303     # Linking always hardcodes the temporary library directory.
13304     hardcode_action_CXX=relink
13305   else
13306     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13307     hardcode_action_CXX=immediate
13308   fi
13309 else
13310   # We cannot hardcode anything, or else we can only hardcode existing
13311   # directories.
13312   hardcode_action_CXX=unsupported
13313 fi
13314 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13315 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13316
13317 if test "$hardcode_action_CXX" = relink; then
13318   # Fast installation is not supported
13319   enable_fast_install=no
13320 elif test "$shlibpath_overrides_runpath" = yes ||
13321      test "$enable_shared" = no; then
13322   # Fast installation is not necessary
13323   enable_fast_install=needless
13324 fi
13325
13326
13327 # The else clause should only fire when bootstrapping the
13328 # libtool distribution, otherwise you forgot to ship ltmain.sh
13329 # with your package, and you will get complaints that there are
13330 # no rules to generate ltmain.sh.
13331 if test -f "$ltmain"; then
13332   # See if we are running on zsh, and set the options which allow our commands through
13333   # without removal of \ escapes.
13334   if test -n "${ZSH_VERSION+set}" ; then
13335     setopt NO_GLOB_SUBST
13336   fi
13337   # Now quote all the things that may contain metacharacters while being
13338   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13339   # variables and quote the copies for generation of the libtool script.
13340   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13341     SED SHELL STRIP \
13342     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13343     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13344     deplibs_check_method reload_flag reload_cmds need_locks \
13345     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13346     lt_cv_sys_global_symbol_to_c_name_address \
13347     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13348     old_postinstall_cmds old_postuninstall_cmds \
13349     compiler_CXX \
13350     CC_CXX \
13351     LD_CXX \
13352     lt_prog_compiler_wl_CXX \
13353     lt_prog_compiler_pic_CXX \
13354     lt_prog_compiler_static_CXX \
13355     lt_prog_compiler_no_builtin_flag_CXX \
13356     export_dynamic_flag_spec_CXX \
13357     thread_safe_flag_spec_CXX \
13358     whole_archive_flag_spec_CXX \
13359     enable_shared_with_static_runtimes_CXX \
13360     old_archive_cmds_CXX \
13361     old_archive_from_new_cmds_CXX \
13362     predep_objects_CXX \
13363     postdep_objects_CXX \
13364     predeps_CXX \
13365     postdeps_CXX \
13366     compiler_lib_search_path_CXX \
13367     archive_cmds_CXX \
13368     archive_expsym_cmds_CXX \
13369     postinstall_cmds_CXX \
13370     postuninstall_cmds_CXX \
13371     old_archive_from_expsyms_cmds_CXX \
13372     allow_undefined_flag_CXX \
13373     no_undefined_flag_CXX \
13374     export_symbols_cmds_CXX \
13375     hardcode_libdir_flag_spec_CXX \
13376     hardcode_libdir_flag_spec_ld_CXX \
13377     hardcode_libdir_separator_CXX \
13378     hardcode_automatic_CXX \
13379     module_cmds_CXX \
13380     module_expsym_cmds_CXX \
13381     lt_cv_prog_compiler_c_o_CXX \
13382     exclude_expsyms_CXX \
13383     include_expsyms_CXX; do
13384
13385     case $var in
13386     old_archive_cmds_CXX | \
13387     old_archive_from_new_cmds_CXX | \
13388     archive_cmds_CXX | \
13389     archive_expsym_cmds_CXX | \
13390     module_cmds_CXX | \
13391     module_expsym_cmds_CXX | \
13392     old_archive_from_expsyms_cmds_CXX | \
13393     export_symbols_cmds_CXX | \
13394     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13395     postinstall_cmds | postuninstall_cmds | \
13396     old_postinstall_cmds | old_postuninstall_cmds | \
13397     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13398       # Double-quote double-evaled strings.
13399       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13400       ;;
13401     *)
13402       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13403       ;;
13404     esac
13405   done
13406
13407   case $lt_echo in
13408   *'\$0 --fallback-echo"')
13409     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13410     ;;
13411   esac
13412
13413 cfgfile="$ofile"
13414
13415   cat <<__EOF__ >> "$cfgfile"
13416 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13417
13418 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13419
13420 # Shell to use when invoking shell scripts.
13421 SHELL=$lt_SHELL
13422
13423 # Whether or not to build shared libraries.
13424 build_libtool_libs=$enable_shared
13425
13426 # Whether or not to build static libraries.
13427 build_old_libs=$enable_static
13428
13429 # Whether or not to add -lc for building shared libraries.
13430 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13431
13432 # Whether or not to disallow shared libs when runtime libs are static
13433 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13434
13435 # Whether or not to optimize for fast installation.
13436 fast_install=$enable_fast_install
13437
13438 # The host system.
13439 host_alias=$host_alias
13440 host=$host
13441 host_os=$host_os
13442
13443 # The build system.
13444 build_alias=$build_alias
13445 build=$build
13446 build_os=$build_os
13447
13448 # An echo program that does not interpret backslashes.
13449 echo=$lt_echo
13450
13451 # The archiver.
13452 AR=$lt_AR
13453 AR_FLAGS=$lt_AR_FLAGS
13454
13455 # A C compiler.
13456 LTCC=$lt_LTCC
13457
13458 # LTCC compiler flags.
13459 LTCFLAGS=$lt_LTCFLAGS
13460
13461 # A language-specific compiler.
13462 CC=$lt_compiler_CXX
13463
13464 # Is the compiler the GNU C compiler?
13465 with_gcc=$GCC_CXX
13466
13467 # An ERE matcher.
13468 EGREP=$lt_EGREP
13469
13470 # The linker used to build libraries.
13471 LD=$lt_LD_CXX
13472
13473 # Whether we need hard or soft links.
13474 LN_S=$lt_LN_S
13475
13476 # A BSD-compatible nm program.
13477 NM=$lt_NM
13478
13479 # A symbol stripping program
13480 STRIP=$lt_STRIP
13481
13482 # Used to examine libraries when file_magic_cmd begins "file"
13483 MAGIC_CMD=$MAGIC_CMD
13484
13485 # Used on cygwin: DLL creation program.
13486 DLLTOOL="$DLLTOOL"
13487
13488 # Used on cygwin: object dumper.
13489 OBJDUMP="$OBJDUMP"
13490
13491 # Used on cygwin: assembler.
13492 AS="$AS"
13493
13494 # The name of the directory that contains temporary libtool files.
13495 objdir=$objdir
13496
13497 # How to create reloadable object files.
13498 reload_flag=$lt_reload_flag
13499 reload_cmds=$lt_reload_cmds
13500
13501 # How to pass a linker flag through the compiler.
13502 wl=$lt_lt_prog_compiler_wl_CXX
13503
13504 # Object file suffix (normally "o").
13505 objext="$ac_objext"
13506
13507 # Old archive suffix (normally "a").
13508 libext="$libext"
13509
13510 # Shared library suffix (normally ".so").
13511 shrext_cmds='$shrext_cmds'
13512
13513 # Executable file suffix (normally "").
13514 exeext="$exeext"
13515
13516 # Additional compiler flags for building library objects.
13517 pic_flag=$lt_lt_prog_compiler_pic_CXX
13518 pic_mode=$pic_mode
13519
13520 # What is the maximum length of a command?
13521 max_cmd_len=$lt_cv_sys_max_cmd_len
13522
13523 # Does compiler simultaneously support -c and -o options?
13524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13525
13526 # Must we lock files when doing compilation?
13527 need_locks=$lt_need_locks
13528
13529 # Do we need the lib prefix for modules?
13530 need_lib_prefix=$need_lib_prefix
13531
13532 # Do we need a version for libraries?
13533 need_version=$need_version
13534
13535 # Whether dlopen is supported.
13536 dlopen_support=$enable_dlopen
13537
13538 # Whether dlopen of programs is supported.
13539 dlopen_self=$enable_dlopen_self
13540
13541 # Whether dlopen of statically linked programs is supported.
13542 dlopen_self_static=$enable_dlopen_self_static
13543
13544 # Compiler flag to prevent dynamic linking.
13545 link_static_flag=$lt_lt_prog_compiler_static_CXX
13546
13547 # Compiler flag to turn off builtin functions.
13548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13549
13550 # Compiler flag to allow reflexive dlopens.
13551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13552
13553 # Compiler flag to generate shared objects directly from archives.
13554 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13555
13556 # Compiler flag to generate thread-safe objects.
13557 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13558
13559 # Library versioning type.
13560 version_type=$version_type
13561
13562 # Format of library name prefix.
13563 libname_spec=$lt_libname_spec
13564
13565 # List of archive names.  First name is the real one, the rest are links.
13566 # The last name is the one that the linker finds with -lNAME.
13567 library_names_spec=$lt_library_names_spec
13568
13569 # The coded name of the library, if different from the real name.
13570 soname_spec=$lt_soname_spec
13571
13572 # Commands used to build and install an old-style archive.
13573 RANLIB=$lt_RANLIB
13574 old_archive_cmds=$lt_old_archive_cmds_CXX
13575 old_postinstall_cmds=$lt_old_postinstall_cmds
13576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13577
13578 # Create an old-style archive from a shared archive.
13579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13580
13581 # Create a temporary old-style archive to link instead of a shared archive.
13582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13583
13584 # Commands used to build and install a shared archive.
13585 archive_cmds=$lt_archive_cmds_CXX
13586 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13587 postinstall_cmds=$lt_postinstall_cmds
13588 postuninstall_cmds=$lt_postuninstall_cmds
13589
13590 # Commands used to build a loadable module (assumed same as above if empty)
13591 module_cmds=$lt_module_cmds_CXX
13592 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13593
13594 # Commands to strip libraries.
13595 old_striplib=$lt_old_striplib
13596 striplib=$lt_striplib
13597
13598 # Dependencies to place before the objects being linked to create a
13599 # shared library.
13600 predep_objects=$lt_predep_objects_CXX
13601
13602 # Dependencies to place after the objects being linked to create a
13603 # shared library.
13604 postdep_objects=$lt_postdep_objects_CXX
13605
13606 # Dependencies to place before the objects being linked to create a
13607 # shared library.
13608 predeps=$lt_predeps_CXX
13609
13610 # Dependencies to place after the objects being linked to create a
13611 # shared library.
13612 postdeps=$lt_postdeps_CXX
13613
13614 # The library search path used internally by the compiler when linking
13615 # a shared library.
13616 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13617
13618 # Method to check whether dependent libraries are shared objects.
13619 deplibs_check_method=$lt_deplibs_check_method
13620
13621 # Command to use when deplibs_check_method == file_magic.
13622 file_magic_cmd=$lt_file_magic_cmd
13623
13624 # Flag that allows shared libraries with undefined symbols to be built.
13625 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13626
13627 # Flag that forces no undefined symbols.
13628 no_undefined_flag=$lt_no_undefined_flag_CXX
13629
13630 # Commands used to finish a libtool library installation in a directory.
13631 finish_cmds=$lt_finish_cmds
13632
13633 # Same as above, but a single script fragment to be evaled but not shown.
13634 finish_eval=$lt_finish_eval
13635
13636 # Take the output of nm and produce a listing of raw symbols and C names.
13637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13638
13639 # Transform the output of nm in a proper C declaration
13640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13641
13642 # Transform the output of nm in a C name address pair
13643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13644
13645 # This is the shared library runtime path variable.
13646 runpath_var=$runpath_var
13647
13648 # This is the shared library path variable.
13649 shlibpath_var=$shlibpath_var
13650
13651 # Is shlibpath searched before the hard-coded library search path?
13652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13653
13654 # How to hardcode a shared library path into an executable.
13655 hardcode_action=$hardcode_action_CXX
13656
13657 # Whether we should hardcode library paths into libraries.
13658 hardcode_into_libs=$hardcode_into_libs
13659
13660 # Flag to hardcode \$libdir into a binary during linking.
13661 # This must work even if \$libdir does not exist.
13662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13663
13664 # If ld is used when linking, flag to hardcode \$libdir into
13665 # a binary during linking. This must work even if \$libdir does
13666 # not exist.
13667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13668
13669 # Whether we need a single -rpath flag with a separated argument.
13670 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13671
13672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13673 # resulting binary.
13674 hardcode_direct=$hardcode_direct_CXX
13675
13676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13677 # resulting binary.
13678 hardcode_minus_L=$hardcode_minus_L_CXX
13679
13680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13681 # the resulting binary.
13682 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13683
13684 # Set to yes if building a shared library automatically hardcodes DIR into the library
13685 # and all subsequent libraries and executables linked against it.
13686 hardcode_automatic=$hardcode_automatic_CXX
13687
13688 # Variables whose values should be saved in libtool wrapper scripts and
13689 # restored at relink time.
13690 variables_saved_for_relink="$variables_saved_for_relink"
13691
13692 # Whether libtool must link a program against all its dependency libraries.
13693 link_all_deplibs=$link_all_deplibs_CXX
13694
13695 # Compile-time system search path for libraries
13696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13697
13698 # Run-time system search path for libraries
13699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13700
13701 # Fix the shell variable \$srcfile for the compiler.
13702 fix_srcfile_path="$fix_srcfile_path_CXX"
13703
13704 # Set to yes if exported symbols are required.
13705 always_export_symbols=$always_export_symbols_CXX
13706
13707 # The commands to list exported symbols.
13708 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13709
13710 # The commands to extract the exported symbol list from a shared archive.
13711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13712
13713 # Symbols that should not be listed in the preloaded symbols.
13714 exclude_expsyms=$lt_exclude_expsyms_CXX
13715
13716 # Symbols that must always be exported.
13717 include_expsyms=$lt_include_expsyms_CXX
13718
13719 # ### END LIBTOOL TAG CONFIG: $tagname
13720
13721 __EOF__
13722
13723
13724 else
13725   # If there is no Makefile yet, we rely on a make rule to execute
13726   # `config.status --recheck' to rerun these tests and create the
13727   # libtool script then.
13728   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13729   if test -f "$ltmain_in"; then
13730     test -f Makefile && make "$ltmain"
13731   fi
13732 fi
13733
13734
13735 ac_ext=c
13736 ac_cpp='$CPP $CPPFLAGS'
13737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13740
13741 CC=$lt_save_CC
13742 LDCXX=$LD
13743 LD=$lt_save_LD
13744 GCC=$lt_save_GCC
13745 with_gnu_ldcxx=$with_gnu_ld
13746 with_gnu_ld=$lt_save_with_gnu_ld
13747 lt_cv_path_LDCXX=$lt_cv_path_LD
13748 lt_cv_path_LD=$lt_save_path_LD
13749 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13750 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13751
13752         else
13753           tagname=""
13754         fi
13755         ;;
13756
13757       F77)
13758         if test -n "$F77" && test "X$F77" != "Xno"; then
13759
13760 ac_ext=f
13761 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13762 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13763 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13764
13765
13766 archive_cmds_need_lc_F77=no
13767 allow_undefined_flag_F77=
13768 always_export_symbols_F77=no
13769 archive_expsym_cmds_F77=
13770 export_dynamic_flag_spec_F77=
13771 hardcode_direct_F77=no
13772 hardcode_libdir_flag_spec_F77=
13773 hardcode_libdir_flag_spec_ld_F77=
13774 hardcode_libdir_separator_F77=
13775 hardcode_minus_L_F77=no
13776 hardcode_automatic_F77=no
13777 module_cmds_F77=
13778 module_expsym_cmds_F77=
13779 link_all_deplibs_F77=unknown
13780 old_archive_cmds_F77=$old_archive_cmds
13781 no_undefined_flag_F77=
13782 whole_archive_flag_spec_F77=
13783 enable_shared_with_static_runtimes_F77=no
13784
13785 # Source file extension for f77 test sources.
13786 ac_ext=f
13787
13788 # Object file extension for compiled f77 test sources.
13789 objext=o
13790 objext_F77=$objext
13791
13792 # Code to be used in simple compile tests
13793 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13794
13795 # Code to be used in simple link tests
13796 lt_simple_link_test_code="      program t\n      end\n"
13797
13798 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13799
13800 # If no C compiler was specified, use CC.
13801 LTCC=${LTCC-"$CC"}
13802
13803 # If no C compiler flags were specified, use CFLAGS.
13804 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13805
13806 # Allow CC to be a program name with arguments.
13807 compiler=$CC
13808
13809
13810 # save warnings/boilerplate of simple test code
13811 ac_outfile=conftest.$ac_objext
13812 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13813 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13814 _lt_compiler_boilerplate=`cat conftest.err`
13815 $rm conftest*
13816
13817 ac_outfile=conftest.$ac_objext
13818 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13819 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13820 _lt_linker_boilerplate=`cat conftest.err`
13821 $rm conftest*
13822
13823
13824 # Allow CC to be a program name with arguments.
13825 lt_save_CC="$CC"
13826 CC=${F77-"f77"}
13827 compiler=$CC
13828 compiler_F77=$CC
13829 for cc_temp in $compiler""; do
13830   case $cc_temp in
13831     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13832     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13833     \-*) ;;
13834     *) break;;
13835   esac
13836 done
13837 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13838
13839
13840 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13841 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13842 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13843 echo "${ECHO_T}$can_build_shared" >&6; }
13844
13845 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13846 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13847 test "$can_build_shared" = "no" && enable_shared=no
13848
13849 # On AIX, shared libraries and static libraries use the same namespace, and
13850 # are all built from PIC.
13851 case $host_os in
13852 aix3*)
13853   test "$enable_shared" = yes && enable_static=no
13854   if test -n "$RANLIB"; then
13855     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13856     postinstall_cmds='$RANLIB $lib'
13857   fi
13858   ;;
13859 aix4* | aix5*)
13860   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13861     test "$enable_shared" = yes && enable_static=no
13862   fi
13863   ;;
13864 esac
13865 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13866 echo "${ECHO_T}$enable_shared" >&6; }
13867
13868 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13869 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13870 # Make sure either enable_shared or enable_static is yes.
13871 test "$enable_shared" = yes || enable_static=yes
13872 { echo "$as_me:$LINENO: result: $enable_static" >&5
13873 echo "${ECHO_T}$enable_static" >&6; }
13874
13875 GCC_F77="$G77"
13876 LD_F77="$LD"
13877
13878 lt_prog_compiler_wl_F77=
13879 lt_prog_compiler_pic_F77=
13880 lt_prog_compiler_static_F77=
13881
13882 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13883 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13884
13885   if test "$GCC" = yes; then
13886     lt_prog_compiler_wl_F77='-Wl,'
13887     lt_prog_compiler_static_F77='-static'
13888
13889     case $host_os in
13890       aix*)
13891       # All AIX code is PIC.
13892       if test "$host_cpu" = ia64; then
13893         # AIX 5 now supports IA64 processor
13894         lt_prog_compiler_static_F77='-Bstatic'
13895       fi
13896       ;;
13897
13898     amigaos*)
13899       # FIXME: we need at least 68020 code to build shared libraries, but
13900       # adding the `-m68020' flag to GCC prevents building anything better,
13901       # like `-m68040'.
13902       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13903       ;;
13904
13905     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13906       # PIC is the default for these OSes.
13907       ;;
13908
13909     mingw* | pw32* | os2*)
13910       # This hack is so that the source file can tell whether it is being
13911       # built for inclusion in a dll (and should export symbols for example).
13912       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13913       ;;
13914
13915     darwin* | rhapsody*)
13916       # PIC is the default on this platform
13917       # Common symbols not allowed in MH_DYLIB files
13918       lt_prog_compiler_pic_F77='-fno-common'
13919       ;;
13920
13921     interix3*)
13922       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13923       # Instead, we relocate shared libraries at runtime.
13924       ;;
13925
13926     msdosdjgpp*)
13927       # Just because we use GCC doesn't mean we suddenly get shared libraries
13928       # on systems that don't support them.
13929       lt_prog_compiler_can_build_shared_F77=no
13930       enable_shared=no
13931       ;;
13932
13933     sysv4*MP*)
13934       if test -d /usr/nec; then
13935         lt_prog_compiler_pic_F77=-Kconform_pic
13936       fi
13937       ;;
13938
13939     hpux*)
13940       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13941       # not for PA HP-UX.
13942       case $host_cpu in
13943       hppa*64*|ia64*)
13944         # +Z the default
13945         ;;
13946       *)
13947         lt_prog_compiler_pic_F77='-fPIC'
13948         ;;
13949       esac
13950       ;;
13951
13952     *)
13953       lt_prog_compiler_pic_F77='-fPIC'
13954       ;;
13955     esac
13956   else
13957     # PORTME Check for flag to pass linker flags through the system compiler.
13958     case $host_os in
13959     aix*)
13960       lt_prog_compiler_wl_F77='-Wl,'
13961       if test "$host_cpu" = ia64; then
13962         # AIX 5 now supports IA64 processor
13963         lt_prog_compiler_static_F77='-Bstatic'
13964       else
13965         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13966       fi
13967       ;;
13968       darwin*)
13969         # PIC is the default on this platform
13970         # Common symbols not allowed in MH_DYLIB files
13971        case $cc_basename in
13972          xlc*)
13973          lt_prog_compiler_pic_F77='-qnocommon'
13974          lt_prog_compiler_wl_F77='-Wl,'
13975          ;;
13976        esac
13977        ;;
13978
13979     mingw* | pw32* | os2*)
13980       # This hack is so that the source file can tell whether it is being
13981       # built for inclusion in a dll (and should export symbols for example).
13982       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13983       ;;
13984
13985     hpux9* | hpux10* | hpux11*)
13986       lt_prog_compiler_wl_F77='-Wl,'
13987       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13988       # not for PA HP-UX.
13989       case $host_cpu in
13990       hppa*64*|ia64*)
13991         # +Z the default
13992         ;;
13993       *)
13994         lt_prog_compiler_pic_F77='+Z'
13995         ;;
13996       esac
13997       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13998       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13999       ;;
14000
14001     irix5* | irix6* | nonstopux*)
14002       lt_prog_compiler_wl_F77='-Wl,'
14003       # PIC (with -KPIC) is the default.
14004       lt_prog_compiler_static_F77='-non_shared'
14005       ;;
14006
14007     newsos6)
14008       lt_prog_compiler_pic_F77='-KPIC'
14009       lt_prog_compiler_static_F77='-Bstatic'
14010       ;;
14011
14012     linux*)
14013       case $cc_basename in
14014       icc* | ecc*)
14015         lt_prog_compiler_wl_F77='-Wl,'
14016         lt_prog_compiler_pic_F77='-KPIC'
14017         lt_prog_compiler_static_F77='-static'
14018         ;;
14019       pgcc* | pgf77* | pgf90* | pgf95*)
14020         # Portland Group compilers (*not* the Pentium gcc compiler,
14021         # which looks to be a dead project)
14022         lt_prog_compiler_wl_F77='-Wl,'
14023         lt_prog_compiler_pic_F77='-fpic'
14024         lt_prog_compiler_static_F77='-Bstatic'
14025         ;;
14026       ccc*)
14027         lt_prog_compiler_wl_F77='-Wl,'
14028         # All Alpha code is PIC.
14029         lt_prog_compiler_static_F77='-non_shared'
14030         ;;
14031       esac
14032       ;;
14033
14034     osf3* | osf4* | osf5*)
14035       lt_prog_compiler_wl_F77='-Wl,'
14036       # All OSF/1 code is PIC.
14037       lt_prog_compiler_static_F77='-non_shared'
14038       ;;
14039
14040     solaris*)
14041       lt_prog_compiler_pic_F77='-KPIC'
14042       lt_prog_compiler_static_F77='-Bstatic'
14043       case $cc_basename in
14044       f77* | f90* | f95*)
14045         lt_prog_compiler_wl_F77='-Qoption ld ';;
14046       *)
14047         lt_prog_compiler_wl_F77='-Wl,';;
14048       esac
14049       ;;
14050
14051     sunos4*)
14052       lt_prog_compiler_wl_F77='-Qoption ld '
14053       lt_prog_compiler_pic_F77='-PIC'
14054       lt_prog_compiler_static_F77='-Bstatic'
14055       ;;
14056
14057     sysv4 | sysv4.2uw2* | sysv4.3*)
14058       lt_prog_compiler_wl_F77='-Wl,'
14059       lt_prog_compiler_pic_F77='-KPIC'
14060       lt_prog_compiler_static_F77='-Bstatic'
14061       ;;
14062
14063     sysv4*MP*)
14064       if test -d /usr/nec ;then
14065         lt_prog_compiler_pic_F77='-Kconform_pic'
14066         lt_prog_compiler_static_F77='-Bstatic'
14067       fi
14068       ;;
14069
14070     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14071       lt_prog_compiler_wl_F77='-Wl,'
14072       lt_prog_compiler_pic_F77='-KPIC'
14073       lt_prog_compiler_static_F77='-Bstatic'
14074       ;;
14075
14076     unicos*)
14077       lt_prog_compiler_wl_F77='-Wl,'
14078       lt_prog_compiler_can_build_shared_F77=no
14079       ;;
14080
14081     uts4*)
14082       lt_prog_compiler_pic_F77='-pic'
14083       lt_prog_compiler_static_F77='-Bstatic'
14084       ;;
14085
14086     *)
14087       lt_prog_compiler_can_build_shared_F77=no
14088       ;;
14089     esac
14090   fi
14091
14092 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14093 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14094
14095 #
14096 # Check to make sure the PIC flag actually works.
14097 #
14098 if test -n "$lt_prog_compiler_pic_F77"; then
14099
14100 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14101 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14102 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14103   echo $ECHO_N "(cached) $ECHO_C" >&6
14104 else
14105   lt_prog_compiler_pic_works_F77=no
14106   ac_outfile=conftest.$ac_objext
14107    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14108    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14109    # Insert the option either (1) after the last *FLAGS variable, or
14110    # (2) before a word containing "conftest.", or (3) at the end.
14111    # Note that $ac_compile itself does not contain backslashes and begins
14112    # with a dollar sign (not a hyphen), so the echo should work correctly.
14113    # The option is referenced via a variable to avoid confusing sed.
14114    lt_compile=`echo "$ac_compile" | $SED \
14115    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14116    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14117    -e 's:$: $lt_compiler_flag:'`
14118    (eval echo "\"\$as_me:14118: $lt_compile\"" >&5)
14119    (eval "$lt_compile" 2>conftest.err)
14120    ac_status=$?
14121    cat conftest.err >&5
14122    echo "$as_me:14122: \$? = $ac_status" >&5
14123    if (exit $ac_status) && test -s "$ac_outfile"; then
14124      # The compiler can only warn and ignore the option if not recognized
14125      # So say no if there are warnings other than the usual output.
14126      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14127      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14128      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14129        lt_prog_compiler_pic_works_F77=yes
14130      fi
14131    fi
14132    $rm conftest*
14133
14134 fi
14135 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14136 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14137
14138 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14139     case $lt_prog_compiler_pic_F77 in
14140      "" | " "*) ;;
14141      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14142      esac
14143 else
14144     lt_prog_compiler_pic_F77=
14145      lt_prog_compiler_can_build_shared_F77=no
14146 fi
14147
14148 fi
14149 case $host_os in
14150   # For platforms which do not support PIC, -DPIC is meaningless:
14151   *djgpp*)
14152     lt_prog_compiler_pic_F77=
14153     ;;
14154   *)
14155     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14156     ;;
14157 esac
14158
14159 #
14160 # Check to make sure the static flag actually works.
14161 #
14162 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14163 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14164 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14165 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14166   echo $ECHO_N "(cached) $ECHO_C" >&6
14167 else
14168   lt_prog_compiler_static_works_F77=no
14169    save_LDFLAGS="$LDFLAGS"
14170    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14171    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14172    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14173      # The linker can only warn and ignore the option if not recognized
14174      # So say no if there are warnings
14175      if test -s conftest.err; then
14176        # Append any errors to the config.log.
14177        cat conftest.err 1>&5
14178        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14179        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14180        if diff conftest.exp conftest.er2 >/dev/null; then
14181          lt_prog_compiler_static_works_F77=yes
14182        fi
14183      else
14184        lt_prog_compiler_static_works_F77=yes
14185      fi
14186    fi
14187    $rm conftest*
14188    LDFLAGS="$save_LDFLAGS"
14189
14190 fi
14191 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14192 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14193
14194 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14195     :
14196 else
14197     lt_prog_compiler_static_F77=
14198 fi
14199
14200
14201 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14202 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14203 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14204   echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206   lt_cv_prog_compiler_c_o_F77=no
14207    $rm -r conftest 2>/dev/null
14208    mkdir conftest
14209    cd conftest
14210    mkdir out
14211    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14212
14213    lt_compiler_flag="-o out/conftest2.$ac_objext"
14214    # Insert the option either (1) after the last *FLAGS variable, or
14215    # (2) before a word containing "conftest.", or (3) at the end.
14216    # Note that $ac_compile itself does not contain backslashes and begins
14217    # with a dollar sign (not a hyphen), so the echo should work correctly.
14218    lt_compile=`echo "$ac_compile" | $SED \
14219    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14220    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14221    -e 's:$: $lt_compiler_flag:'`
14222    (eval echo "\"\$as_me:14222: $lt_compile\"" >&5)
14223    (eval "$lt_compile" 2>out/conftest.err)
14224    ac_status=$?
14225    cat out/conftest.err >&5
14226    echo "$as_me:14226: \$? = $ac_status" >&5
14227    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14228    then
14229      # The compiler can only warn and ignore the option if not recognized
14230      # So say no if there are warnings
14231      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14232      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14233      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14234        lt_cv_prog_compiler_c_o_F77=yes
14235      fi
14236    fi
14237    chmod u+w . 2>&5
14238    $rm conftest*
14239    # SGI C++ compiler will create directory out/ii_files/ for
14240    # template instantiation
14241    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14242    $rm out/* && rmdir out
14243    cd ..
14244    rmdir conftest
14245    $rm conftest*
14246
14247 fi
14248 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14249 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14250
14251
14252 hard_links="nottested"
14253 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14254   # do not overwrite the value of need_locks provided by the user
14255   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14256 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14257   hard_links=yes
14258   $rm conftest*
14259   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14260   touch conftest.a
14261   ln conftest.a conftest.b 2>&5 || hard_links=no
14262   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14263   { echo "$as_me:$LINENO: result: $hard_links" >&5
14264 echo "${ECHO_T}$hard_links" >&6; }
14265   if test "$hard_links" = no; then
14266     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14267 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14268     need_locks=warn
14269   fi
14270 else
14271   need_locks=no
14272 fi
14273
14274 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14275 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14276
14277   runpath_var=
14278   allow_undefined_flag_F77=
14279   enable_shared_with_static_runtimes_F77=no
14280   archive_cmds_F77=
14281   archive_expsym_cmds_F77=
14282   old_archive_From_new_cmds_F77=
14283   old_archive_from_expsyms_cmds_F77=
14284   export_dynamic_flag_spec_F77=
14285   whole_archive_flag_spec_F77=
14286   thread_safe_flag_spec_F77=
14287   hardcode_libdir_flag_spec_F77=
14288   hardcode_libdir_flag_spec_ld_F77=
14289   hardcode_libdir_separator_F77=
14290   hardcode_direct_F77=no
14291   hardcode_minus_L_F77=no
14292   hardcode_shlibpath_var_F77=unsupported
14293   link_all_deplibs_F77=unknown
14294   hardcode_automatic_F77=no
14295   module_cmds_F77=
14296   module_expsym_cmds_F77=
14297   always_export_symbols_F77=no
14298   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14299   # include_expsyms should be a list of space-separated symbols to be *always*
14300   # included in the symbol list
14301   include_expsyms_F77=
14302   # exclude_expsyms can be an extended regexp of symbols to exclude
14303   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14304   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14305   # as well as any symbol that contains `d'.
14306   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14307   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14308   # platforms (ab)use it in PIC code, but their linkers get confused if
14309   # the symbol is explicitly referenced.  Since portable code cannot
14310   # rely on this symbol name, it's probably fine to never include it in
14311   # preloaded symbol tables.
14312   extract_expsyms_cmds=
14313   # Just being paranoid about ensuring that cc_basename is set.
14314   for cc_temp in $compiler""; do
14315   case $cc_temp in
14316     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14317     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14318     \-*) ;;
14319     *) break;;
14320   esac
14321 done
14322 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14323
14324   case $host_os in
14325   cygwin* | mingw* | pw32*)
14326     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14327     # When not using gcc, we currently assume that we are using
14328     # Microsoft Visual C++.
14329     if test "$GCC" != yes; then
14330       with_gnu_ld=no
14331     fi
14332     ;;
14333   interix*)
14334     # we just hope/assume this is gcc and not c89 (= MSVC++)
14335     with_gnu_ld=yes
14336     ;;
14337   openbsd*)
14338     with_gnu_ld=no
14339     ;;
14340   esac
14341
14342   ld_shlibs_F77=yes
14343   if test "$with_gnu_ld" = yes; then
14344     # If archive_cmds runs LD, not CC, wlarc should be empty
14345     wlarc='${wl}'
14346
14347     # Set some defaults for GNU ld with shared library support. These
14348     # are reset later if shared libraries are not supported. Putting them
14349     # here allows them to be overridden if necessary.
14350     runpath_var=LD_RUN_PATH
14351     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14352     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14353     # ancient GNU ld didn't support --whole-archive et. al.
14354     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14355         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14356       else
14357         whole_archive_flag_spec_F77=
14358     fi
14359     supports_anon_versioning=no
14360     case `$LD -v 2>/dev/null` in
14361       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14362       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14363       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14364       *\ 2.11.*) ;; # other 2.11 versions
14365       *) supports_anon_versioning=yes ;;
14366     esac
14367
14368     # See if GNU ld supports shared libraries.
14369     case $host_os in
14370     aix3* | aix4* | aix5*)
14371       # On AIX/PPC, the GNU linker is very broken
14372       if test "$host_cpu" != ia64; then
14373         ld_shlibs_F77=no
14374         cat <<EOF 1>&2
14375
14376 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14377 *** to be unable to reliably create shared libraries on AIX.
14378 *** Therefore, libtool is disabling shared libraries support.  If you
14379 *** really care for shared libraries, you may want to modify your PATH
14380 *** so that a non-GNU linker is found, and then restart.
14381
14382 EOF
14383       fi
14384       ;;
14385
14386     amigaos*)
14387       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)'
14388       hardcode_libdir_flag_spec_F77='-L$libdir'
14389       hardcode_minus_L_F77=yes
14390
14391       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14392       # that the semantics of dynamic libraries on AmigaOS, at least up
14393       # to version 4, is to share data among multiple programs linked
14394       # with the same dynamic library.  Since this doesn't match the
14395       # behavior of shared libraries on other platforms, we can't use
14396       # them.
14397       ld_shlibs_F77=no
14398       ;;
14399
14400     beos*)
14401       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14402         allow_undefined_flag_F77=unsupported
14403         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14404         # support --undefined.  This deserves some investigation.  FIXME
14405         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14406       else
14407         ld_shlibs_F77=no
14408       fi
14409       ;;
14410
14411     cygwin* | mingw* | pw32*)
14412       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14413       # as there is no search path for DLLs.
14414       hardcode_libdir_flag_spec_F77='-L$libdir'
14415       allow_undefined_flag_F77=unsupported
14416       always_export_symbols_F77=no
14417       enable_shared_with_static_runtimes_F77=yes
14418       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14419
14420       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14421         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14422         # If the export-symbols file already is a .def file (1st line
14423         # is EXPORTS), use it as is; otherwise, prepend...
14424         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14425           cp $export_symbols $output_objdir/$soname.def;
14426         else
14427           echo EXPORTS > $output_objdir/$soname.def;
14428           cat $export_symbols >> $output_objdir/$soname.def;
14429         fi~
14430         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14431       else
14432         ld_shlibs_F77=no
14433       fi
14434       ;;
14435
14436     interix3*)
14437       hardcode_direct_F77=no
14438       hardcode_shlibpath_var_F77=no
14439       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14440       export_dynamic_flag_spec_F77='${wl}-E'
14441       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14442       # Instead, shared libraries are loaded at an image base (0x10000000 by
14443       # default) and relocated if they conflict, which is a slow very memory
14444       # consuming and fragmenting process.  To avoid this, we pick a random,
14445       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14446       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14447       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'
14448       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'
14449       ;;
14450
14451     linux*)
14452       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14453         tmp_addflag=
14454         case $cc_basename,$host_cpu in
14455         pgcc*)                          # Portland Group C compiler
14456           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'
14457           tmp_addflag=' $pic_flag'
14458           ;;
14459         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14460           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'
14461           tmp_addflag=' $pic_flag -Mnomain' ;;
14462         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14463           tmp_addflag=' -i_dynamic' ;;
14464         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14465           tmp_addflag=' -i_dynamic -nofor_main' ;;
14466         ifc* | ifort*)                  # Intel Fortran compiler
14467           tmp_addflag=' -nofor_main' ;;
14468         esac
14469         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14470
14471         if test $supports_anon_versioning = yes; then
14472           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14473   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14474   $echo "local: *; };" >> $output_objdir/$libname.ver~
14475           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14476         fi
14477       else
14478         ld_shlibs_F77=no
14479       fi
14480       ;;
14481
14482     netbsd*)
14483       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14484         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14485         wlarc=
14486       else
14487         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14488         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14489       fi
14490       ;;
14491
14492     solaris*)
14493       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14494         ld_shlibs_F77=no
14495         cat <<EOF 1>&2
14496
14497 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14498 *** create shared libraries on Solaris systems.  Therefore, libtool
14499 *** is disabling shared libraries support.  We urge you to upgrade GNU
14500 *** binutils to release 2.9.1 or newer.  Another option is to modify
14501 *** your PATH or compiler configuration so that the native linker is
14502 *** used, and then restart.
14503
14504 EOF
14505       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14506         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14507         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14508       else
14509         ld_shlibs_F77=no
14510       fi
14511       ;;
14512
14513     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14514       case `$LD -v 2>&1` in
14515         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14516         ld_shlibs_F77=no
14517         cat <<_LT_EOF 1>&2
14518
14519 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14520 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14521 *** is disabling shared libraries support.  We urge you to upgrade GNU
14522 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14523 *** your PATH or compiler configuration so that the native linker is
14524 *** used, and then restart.
14525
14526 _LT_EOF
14527         ;;
14528         *)
14529           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14530             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14531             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14532             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14533           else
14534             ld_shlibs_F77=no
14535           fi
14536         ;;
14537       esac
14538       ;;
14539
14540     sunos4*)
14541       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14542       wlarc=
14543       hardcode_direct_F77=yes
14544       hardcode_shlibpath_var_F77=no
14545       ;;
14546
14547     *)
14548       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14549         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14550         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14551       else
14552         ld_shlibs_F77=no
14553       fi
14554       ;;
14555     esac
14556
14557     if test "$ld_shlibs_F77" = no; then
14558       runpath_var=
14559       hardcode_libdir_flag_spec_F77=
14560       export_dynamic_flag_spec_F77=
14561       whole_archive_flag_spec_F77=
14562     fi
14563   else
14564     # PORTME fill in a description of your system's linker (not GNU ld)
14565     case $host_os in
14566     aix3*)
14567       allow_undefined_flag_F77=unsupported
14568       always_export_symbols_F77=yes
14569       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'
14570       # Note: this linker hardcodes the directories in LIBPATH if there
14571       # are no directories specified by -L.
14572       hardcode_minus_L_F77=yes
14573       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14574         # Neither direct hardcoding nor static linking is supported with a
14575         # broken collect2.
14576         hardcode_direct_F77=unsupported
14577       fi
14578       ;;
14579
14580     aix4* | aix5*)
14581       if test "$host_cpu" = ia64; then
14582         # On IA64, the linker does run time linking by default, so we don't
14583         # have to do anything special.
14584         aix_use_runtimelinking=no
14585         exp_sym_flag='-Bexport'
14586         no_entry_flag=""
14587       else
14588         # If we're using GNU nm, then we don't want the "-C" option.
14589         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14590         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14591           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'
14592         else
14593           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'
14594         fi
14595         aix_use_runtimelinking=no
14596
14597         # Test if we are trying to use run time linking or normal
14598         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14599         # need to do runtime linking.
14600         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14601           for ld_flag in $LDFLAGS; do
14602           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14603             aix_use_runtimelinking=yes
14604             break
14605           fi
14606           done
14607           ;;
14608         esac
14609
14610         exp_sym_flag='-bexport'
14611         no_entry_flag='-bnoentry'
14612       fi
14613
14614       # When large executables or shared objects are built, AIX ld can
14615       # have problems creating the table of contents.  If linking a library
14616       # or program results in "error TOC overflow" add -mminimal-toc to
14617       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14618       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14619
14620       archive_cmds_F77=''
14621       hardcode_direct_F77=yes
14622       hardcode_libdir_separator_F77=':'
14623       link_all_deplibs_F77=yes
14624
14625       if test "$GCC" = yes; then
14626         case $host_os in aix4.[012]|aix4.[012].*)
14627         # We only want to do this on AIX 4.2 and lower, the check
14628         # below for broken collect2 doesn't work under 4.3+
14629           collect2name=`${CC} -print-prog-name=collect2`
14630           if test -f "$collect2name" && \
14631            strings "$collect2name" | grep resolve_lib_name >/dev/null
14632           then
14633           # We have reworked collect2
14634           hardcode_direct_F77=yes
14635           else
14636           # We have old collect2
14637           hardcode_direct_F77=unsupported
14638           # It fails to find uninstalled libraries when the uninstalled
14639           # path is not listed in the libpath.  Setting hardcode_minus_L
14640           # to unsupported forces relinking
14641           hardcode_minus_L_F77=yes
14642           hardcode_libdir_flag_spec_F77='-L$libdir'
14643           hardcode_libdir_separator_F77=
14644           fi
14645           ;;
14646         esac
14647         shared_flag='-shared'
14648         if test "$aix_use_runtimelinking" = yes; then
14649           shared_flag="$shared_flag "'${wl}-G'
14650         fi
14651       else
14652         # not using gcc
14653         if test "$host_cpu" = ia64; then
14654         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14655         # chokes on -Wl,-G. The following line is correct:
14656           shared_flag='-G'
14657         else
14658           if test "$aix_use_runtimelinking" = yes; then
14659             shared_flag='${wl}-G'
14660           else
14661             shared_flag='${wl}-bM:SRE'
14662           fi
14663         fi
14664       fi
14665
14666       # It seems that -bexpall does not export symbols beginning with
14667       # underscore (_), so it is better to generate a list of symbols to export.
14668       always_export_symbols_F77=yes
14669       if test "$aix_use_runtimelinking" = yes; then
14670         # Warning - without using the other runtime loading flags (-brtl),
14671         # -berok will link without error, but may produce a broken library.
14672         allow_undefined_flag_F77='-berok'
14673        # Determine the default libpath from the value encoded in an empty executable.
14674        cat >conftest.$ac_ext <<_ACEOF
14675       program main
14676
14677       end
14678 _ACEOF
14679 rm -f conftest.$ac_objext conftest$ac_exeext
14680 if { (ac_try="$ac_link"
14681 case "(($ac_try" in
14682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683   *) ac_try_echo=$ac_try;;
14684 esac
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686   (eval "$ac_link") 2>conftest.er1
14687   ac_status=$?
14688   grep -v '^ *+' conftest.er1 >conftest.err
14689   rm -f conftest.er1
14690   cat conftest.err >&5
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); } && {
14693          test -z "$ac_f77_werror_flag" ||
14694          test ! -s conftest.err
14695        } && test -s conftest$ac_exeext &&
14696        $as_test_x conftest$ac_exeext; then
14697
14698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14699 }'`
14700 # Check for a 64-bit object if we didn't find anything.
14701 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; }
14702 }'`; fi
14703 else
14704   echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707
14708 fi
14709
14710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14711       conftest$ac_exeext conftest.$ac_ext
14712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14713
14714        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14715         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"
14716        else
14717         if test "$host_cpu" = ia64; then
14718           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14719           allow_undefined_flag_F77="-z nodefs"
14720           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"
14721         else
14722          # Determine the default libpath from the value encoded in an empty executable.
14723          cat >conftest.$ac_ext <<_ACEOF
14724       program main
14725
14726       end
14727 _ACEOF
14728 rm -f conftest.$ac_objext conftest$ac_exeext
14729 if { (ac_try="$ac_link"
14730 case "(($ac_try" in
14731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732   *) ac_try_echo=$ac_try;;
14733 esac
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735   (eval "$ac_link") 2>conftest.er1
14736   ac_status=$?
14737   grep -v '^ *+' conftest.er1 >conftest.err
14738   rm -f conftest.er1
14739   cat conftest.err >&5
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } && {
14742          test -z "$ac_f77_werror_flag" ||
14743          test ! -s conftest.err
14744        } && test -s conftest$ac_exeext &&
14745        $as_test_x conftest$ac_exeext; then
14746
14747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14748 }'`
14749 # Check for a 64-bit object if we didn't find anything.
14750 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; }
14751 }'`; fi
14752 else
14753   echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14755
14756
14757 fi
14758
14759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14760       conftest$ac_exeext conftest.$ac_ext
14761 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14762
14763          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14764           # Warning - without using the other run time loading flags,
14765           # -berok will link without error, but may produce a broken library.
14766           no_undefined_flag_F77=' ${wl}-bernotok'
14767           allow_undefined_flag_F77=' ${wl}-berok'
14768           # Exported symbols can be pulled into shared objects from archives
14769           whole_archive_flag_spec_F77='$convenience'
14770           archive_cmds_need_lc_F77=yes
14771           # This is similar to how AIX traditionally builds its shared libraries.
14772           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'
14773         fi
14774       fi
14775       ;;
14776
14777     amigaos*)
14778       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)'
14779       hardcode_libdir_flag_spec_F77='-L$libdir'
14780       hardcode_minus_L_F77=yes
14781       # see comment about different semantics on the GNU ld section
14782       ld_shlibs_F77=no
14783       ;;
14784
14785     bsdi[45]*)
14786       export_dynamic_flag_spec_F77=-rdynamic
14787       ;;
14788
14789     cygwin* | mingw* | pw32*)
14790       # When not using gcc, we currently assume that we are using
14791       # Microsoft Visual C++.
14792       # hardcode_libdir_flag_spec is actually meaningless, as there is
14793       # no search path for DLLs.
14794       hardcode_libdir_flag_spec_F77=' '
14795       allow_undefined_flag_F77=unsupported
14796       # Tell ltmain to make .lib files, not .a files.
14797       libext=lib
14798       # Tell ltmain to make .dll files, not .so files.
14799       shrext_cmds=".dll"
14800       # FIXME: Setting linknames here is a bad hack.
14801       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14802       # The linker will automatically build a .lib file if we build a DLL.
14803       old_archive_From_new_cmds_F77='true'
14804       # FIXME: Should let the user specify the lib program.
14805       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14806       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14807       enable_shared_with_static_runtimes_F77=yes
14808       ;;
14809
14810     darwin* | rhapsody*)
14811       case $host_os in
14812         rhapsody* | darwin1.[012])
14813          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14814          ;;
14815        *) # Darwin 1.3 on
14816          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14817            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14818          else
14819            case ${MACOSX_DEPLOYMENT_TARGET} in
14820              10.[012])
14821                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14822                ;;
14823              10.*)
14824                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14825                ;;
14826            esac
14827          fi
14828          ;;
14829       esac
14830       archive_cmds_need_lc_F77=no
14831       hardcode_direct_F77=no
14832       hardcode_automatic_F77=yes
14833       hardcode_shlibpath_var_F77=unsupported
14834       whole_archive_flag_spec_F77=''
14835       link_all_deplibs_F77=yes
14836     if test "$GCC" = yes ; then
14837         output_verbose_link_cmd='echo'
14838         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14839       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14840       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14841       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}'
14842       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}'
14843     else
14844       case $cc_basename in
14845         xlc*)
14846          output_verbose_link_cmd='echo'
14847          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14848          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14849           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14850          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}'
14851           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}'
14852           ;;
14853        *)
14854          ld_shlibs_F77=no
14855           ;;
14856       esac
14857     fi
14858       ;;
14859
14860     dgux*)
14861       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14862       hardcode_libdir_flag_spec_F77='-L$libdir'
14863       hardcode_shlibpath_var_F77=no
14864       ;;
14865
14866     freebsd1*)
14867       ld_shlibs_F77=no
14868       ;;
14869
14870     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14871     # support.  Future versions do this automatically, but an explicit c++rt0.o
14872     # does not break anything, and helps significantly (at the cost of a little
14873     # extra space).
14874     freebsd2.2*)
14875       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14876       hardcode_libdir_flag_spec_F77='-R$libdir'
14877       hardcode_direct_F77=yes
14878       hardcode_shlibpath_var_F77=no
14879       ;;
14880
14881     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14882     freebsd2*)
14883       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14884       hardcode_direct_F77=yes
14885       hardcode_minus_L_F77=yes
14886       hardcode_shlibpath_var_F77=no
14887       ;;
14888
14889     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14890     freebsd* | kfreebsd*-gnu | dragonfly*)
14891       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14892       hardcode_libdir_flag_spec_F77='-R$libdir'
14893       hardcode_direct_F77=yes
14894       hardcode_shlibpath_var_F77=no
14895       ;;
14896
14897     hpux9*)
14898       if test "$GCC" = yes; then
14899         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'
14900       else
14901         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'
14902       fi
14903       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14904       hardcode_libdir_separator_F77=:
14905       hardcode_direct_F77=yes
14906
14907       # hardcode_minus_L: Not really in the search PATH,
14908       # but as the default location of the library.
14909       hardcode_minus_L_F77=yes
14910       export_dynamic_flag_spec_F77='${wl}-E'
14911       ;;
14912
14913     hpux10*)
14914       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14915         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14916       else
14917         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14918       fi
14919       if test "$with_gnu_ld" = no; then
14920         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14921         hardcode_libdir_separator_F77=:
14922
14923         hardcode_direct_F77=yes
14924         export_dynamic_flag_spec_F77='${wl}-E'
14925
14926         # hardcode_minus_L: Not really in the search PATH,
14927         # but as the default location of the library.
14928         hardcode_minus_L_F77=yes
14929       fi
14930       ;;
14931
14932     hpux11*)
14933       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14934         case $host_cpu in
14935         hppa*64*)
14936           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14937           ;;
14938         ia64*)
14939           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14940           ;;
14941         *)
14942           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14943           ;;
14944         esac
14945       else
14946         case $host_cpu in
14947         hppa*64*)
14948           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14949           ;;
14950         ia64*)
14951           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14952           ;;
14953         *)
14954           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14955           ;;
14956         esac
14957       fi
14958       if test "$with_gnu_ld" = no; then
14959         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14960         hardcode_libdir_separator_F77=:
14961
14962         case $host_cpu in
14963         hppa*64*|ia64*)
14964           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14965           hardcode_direct_F77=no
14966           hardcode_shlibpath_var_F77=no
14967           ;;
14968         *)
14969           hardcode_direct_F77=yes
14970           export_dynamic_flag_spec_F77='${wl}-E'
14971
14972           # hardcode_minus_L: Not really in the search PATH,
14973           # but as the default location of the library.
14974           hardcode_minus_L_F77=yes
14975           ;;
14976         esac
14977       fi
14978       ;;
14979
14980     irix5* | irix6* | nonstopux*)
14981       if test "$GCC" = yes; then
14982         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'
14983       else
14984         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'
14985         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14986       fi
14987       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14988       hardcode_libdir_separator_F77=:
14989       link_all_deplibs_F77=yes
14990       ;;
14991
14992     netbsd*)
14993       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14994         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14995       else
14996         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14997       fi
14998       hardcode_libdir_flag_spec_F77='-R$libdir'
14999       hardcode_direct_F77=yes
15000       hardcode_shlibpath_var_F77=no
15001       ;;
15002
15003     newsos6)
15004       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15005       hardcode_direct_F77=yes
15006       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15007       hardcode_libdir_separator_F77=:
15008       hardcode_shlibpath_var_F77=no
15009       ;;
15010
15011     openbsd*)
15012       hardcode_direct_F77=yes
15013       hardcode_shlibpath_var_F77=no
15014       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15015         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15016         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15017         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15018         export_dynamic_flag_spec_F77='${wl}-E'
15019       else
15020        case $host_os in
15021          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15022            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15023            hardcode_libdir_flag_spec_F77='-R$libdir'
15024            ;;
15025          *)
15026            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15027            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15028            ;;
15029        esac
15030       fi
15031       ;;
15032
15033     os2*)
15034       hardcode_libdir_flag_spec_F77='-L$libdir'
15035       hardcode_minus_L_F77=yes
15036       allow_undefined_flag_F77=unsupported
15037       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'
15038       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15039       ;;
15040
15041     osf3*)
15042       if test "$GCC" = yes; then
15043         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15044         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'
15045       else
15046         allow_undefined_flag_F77=' -expect_unresolved \*'
15047         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'
15048       fi
15049       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15050       hardcode_libdir_separator_F77=:
15051       ;;
15052
15053     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15054       if test "$GCC" = yes; then
15055         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15056         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'
15057         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15058       else
15059         allow_undefined_flag_F77=' -expect_unresolved \*'
15060         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'
15061         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~
15062         $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'
15063
15064         # Both c and cxx compiler support -rpath directly
15065         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15066       fi
15067       hardcode_libdir_separator_F77=:
15068       ;;
15069
15070     solaris*)
15071       no_undefined_flag_F77=' -z text'
15072       if test "$GCC" = yes; then
15073         wlarc='${wl}'
15074         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15075         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15076           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15077       else
15078         wlarc=''
15079         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15080         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15081         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15082       fi
15083       hardcode_libdir_flag_spec_F77='-R$libdir'
15084       hardcode_shlibpath_var_F77=no
15085       case $host_os in
15086       solaris2.[0-5] | solaris2.[0-5].*) ;;
15087       *)
15088         # The compiler driver will combine linker options so we
15089         # cannot just pass the convience library names through
15090         # without $wl, iff we do not link with $LD.
15091         # Luckily, gcc supports the same syntax we need for Sun Studio.
15092         # Supported since Solaris 2.6 (maybe 2.5.1?)
15093         case $wlarc in
15094         '')
15095           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15096         *)
15097           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' ;;
15098         esac ;;
15099       esac
15100       link_all_deplibs_F77=yes
15101       ;;
15102
15103     sunos4*)
15104       if test "x$host_vendor" = xsequent; then
15105         # Use $CC to link under sequent, because it throws in some extra .o
15106         # files that make .init and .fini sections work.
15107         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15108       else
15109         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15110       fi
15111       hardcode_libdir_flag_spec_F77='-L$libdir'
15112       hardcode_direct_F77=yes
15113       hardcode_minus_L_F77=yes
15114       hardcode_shlibpath_var_F77=no
15115       ;;
15116
15117     sysv4)
15118       case $host_vendor in
15119         sni)
15120           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15121           hardcode_direct_F77=yes # is this really true???
15122         ;;
15123         siemens)
15124           ## LD is ld it makes a PLAMLIB
15125           ## CC just makes a GrossModule.
15126           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15127           reload_cmds_F77='$CC -r -o $output$reload_objs'
15128           hardcode_direct_F77=no
15129         ;;
15130         motorola)
15131           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15132           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15133         ;;
15134       esac
15135       runpath_var='LD_RUN_PATH'
15136       hardcode_shlibpath_var_F77=no
15137       ;;
15138
15139     sysv4.3*)
15140       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15141       hardcode_shlibpath_var_F77=no
15142       export_dynamic_flag_spec_F77='-Bexport'
15143       ;;
15144
15145     sysv4*MP*)
15146       if test -d /usr/nec; then
15147         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15148         hardcode_shlibpath_var_F77=no
15149         runpath_var=LD_RUN_PATH
15150         hardcode_runpath_var=yes
15151         ld_shlibs_F77=yes
15152       fi
15153       ;;
15154
15155     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15156       no_undefined_flag_F77='${wl}-z,text'
15157       archive_cmds_need_lc_F77=no
15158       hardcode_shlibpath_var_F77=no
15159       runpath_var='LD_RUN_PATH'
15160
15161       if test "$GCC" = yes; then
15162         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15163         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15164       else
15165         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15166         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15167       fi
15168       ;;
15169
15170     sysv5* | sco3.2v5* | sco5v6*)
15171       # Note: We can NOT use -z defs as we might desire, because we do not
15172       # link with -lc, and that would cause any symbols used from libc to
15173       # always be unresolved, which means just about no library would
15174       # ever link correctly.  If we're not using GNU ld we use -z text
15175       # though, which does catch some bad symbols but isn't as heavy-handed
15176       # as -z defs.
15177       no_undefined_flag_F77='${wl}-z,text'
15178       allow_undefined_flag_F77='${wl}-z,nodefs'
15179       archive_cmds_need_lc_F77=no
15180       hardcode_shlibpath_var_F77=no
15181       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15182       hardcode_libdir_separator_F77=':'
15183       link_all_deplibs_F77=yes
15184       export_dynamic_flag_spec_F77='${wl}-Bexport'
15185       runpath_var='LD_RUN_PATH'
15186
15187       if test "$GCC" = yes; then
15188         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15189         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15190       else
15191         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193       fi
15194       ;;
15195
15196     uts4*)
15197       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15198       hardcode_libdir_flag_spec_F77='-L$libdir'
15199       hardcode_shlibpath_var_F77=no
15200       ;;
15201
15202     *)
15203       ld_shlibs_F77=no
15204       ;;
15205     esac
15206   fi
15207
15208 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15209 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15210 test "$ld_shlibs_F77" = no && can_build_shared=no
15211
15212 #
15213 # Do we need to explicitly link libc?
15214 #
15215 case "x$archive_cmds_need_lc_F77" in
15216 x|xyes)
15217   # Assume -lc should be added
15218   archive_cmds_need_lc_F77=yes
15219
15220   if test "$enable_shared" = yes && test "$GCC" = yes; then
15221     case $archive_cmds_F77 in
15222     *'~'*)
15223       # FIXME: we may have to deal with multi-command sequences.
15224       ;;
15225     '$CC '*)
15226       # Test whether the compiler implicitly links with -lc since on some
15227       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15228       # to ld, don't add -lc before -lgcc.
15229       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15230 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15231       $rm conftest*
15232       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15233
15234       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15235   (eval $ac_compile) 2>&5
15236   ac_status=$?
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } 2>conftest.err; then
15239         soname=conftest
15240         lib=conftest
15241         libobjs=conftest.$ac_objext
15242         deplibs=
15243         wl=$lt_prog_compiler_wl_F77
15244         pic_flag=$lt_prog_compiler_pic_F77
15245         compiler_flags=-v
15246         linker_flags=-v
15247         verstring=
15248         output_objdir=.
15249         libname=conftest
15250         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15251         allow_undefined_flag_F77=
15252         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15253   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15254   ac_status=$?
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); }
15257         then
15258           archive_cmds_need_lc_F77=no
15259         else
15260           archive_cmds_need_lc_F77=yes
15261         fi
15262         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15263       else
15264         cat conftest.err 1>&5
15265       fi
15266       $rm conftest*
15267       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15268 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15269       ;;
15270     esac
15271   fi
15272   ;;
15273 esac
15274
15275 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15276 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15277 library_names_spec=
15278 libname_spec='lib$name'
15279 soname_spec=
15280 shrext_cmds=".so"
15281 postinstall_cmds=
15282 postuninstall_cmds=
15283 finish_cmds=
15284 finish_eval=
15285 shlibpath_var=
15286 shlibpath_overrides_runpath=unknown
15287 version_type=none
15288 dynamic_linker="$host_os ld.so"
15289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15290 if test "$GCC" = yes; then
15291   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15292   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15293     # if the path contains ";" then we assume it to be the separator
15294     # otherwise default to the standard path separator (i.e. ":") - it is
15295     # assumed that no part of a normal pathname contains ";" but that should
15296     # okay in the real world where ";" in dirpaths is itself problematic.
15297     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15298   else
15299     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15300   fi
15301 else
15302   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15303 fi
15304 need_lib_prefix=unknown
15305 hardcode_into_libs=no
15306
15307 # when you set need_version to no, make sure it does not cause -set_version
15308 # flags to be left without arguments
15309 need_version=unknown
15310
15311 case $host_os in
15312 aix3*)
15313   version_type=linux
15314   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15315   shlibpath_var=LIBPATH
15316
15317   # AIX 3 has no versioning support, so we append a major version to the name.
15318   soname_spec='${libname}${release}${shared_ext}$major'
15319   ;;
15320
15321 aix4* | aix5*)
15322   version_type=linux
15323   need_lib_prefix=no
15324   need_version=no
15325   hardcode_into_libs=yes
15326   if test "$host_cpu" = ia64; then
15327     # AIX 5 supports IA64
15328     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15329     shlibpath_var=LD_LIBRARY_PATH
15330   else
15331     # With GCC up to 2.95.x, collect2 would create an import file
15332     # for dependence libraries.  The import file would start with
15333     # the line `#! .'.  This would cause the generated library to
15334     # depend on `.', always an invalid library.  This was fixed in
15335     # development snapshots of GCC prior to 3.0.
15336     case $host_os in
15337       aix4 | aix4.[01] | aix4.[01].*)
15338       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15339            echo ' yes '
15340            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15341         :
15342       else
15343         can_build_shared=no
15344       fi
15345       ;;
15346     esac
15347     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15348     # soname into executable. Probably we can add versioning support to
15349     # collect2, so additional links can be useful in future.
15350     if test "$aix_use_runtimelinking" = yes; then
15351       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15352       # instead of lib<name>.a to let people know that these are not
15353       # typical AIX shared libraries.
15354       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15355     else
15356       # We preserve .a as extension for shared libraries through AIX4.2
15357       # and later when we are not doing run time linking.
15358       library_names_spec='${libname}${release}.a $libname.a'
15359       soname_spec='${libname}${release}${shared_ext}$major'
15360     fi
15361     shlibpath_var=LIBPATH
15362   fi
15363   ;;
15364
15365 amigaos*)
15366   library_names_spec='$libname.ixlibrary $libname.a'
15367   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15368   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'
15369   ;;
15370
15371 beos*)
15372   library_names_spec='${libname}${shared_ext}'
15373   dynamic_linker="$host_os ld.so"
15374   shlibpath_var=LIBRARY_PATH
15375   ;;
15376
15377 bsdi[45]*)
15378   version_type=linux
15379   need_version=no
15380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381   soname_spec='${libname}${release}${shared_ext}$major'
15382   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15383   shlibpath_var=LD_LIBRARY_PATH
15384   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15385   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15386   # the default ld.so.conf also contains /usr/contrib/lib and
15387   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15388   # libtool to hard-code these into programs
15389   ;;
15390
15391 cygwin* | mingw* | pw32*)
15392   version_type=windows
15393   shrext_cmds=".dll"
15394   need_version=no
15395   need_lib_prefix=no
15396
15397   case $GCC,$host_os in
15398   yes,cygwin* | yes,mingw* | yes,pw32*)
15399     library_names_spec='$libname.dll.a'
15400     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15401     postinstall_cmds='base_file=`basename \${file}`~
15402       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15403       dldir=$destdir/`dirname \$dlpath`~
15404       test -d \$dldir || mkdir -p \$dldir~
15405       $install_prog $dir/$dlname \$dldir/$dlname~
15406       chmod a+x \$dldir/$dlname'
15407     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15408       dlpath=$dir/\$dldll~
15409        $rm \$dlpath'
15410     shlibpath_overrides_runpath=yes
15411
15412     case $host_os in
15413     cygwin*)
15414       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15415       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15416       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15417       ;;
15418     mingw*)
15419       # MinGW DLLs use traditional 'lib' prefix
15420       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15421       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15422       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15423         # It is most probably a Windows format PATH printed by
15424         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15425         # path with ; separators, and with drive letters. We can handle the
15426         # drive letters (cygwin fileutils understands them), so leave them,
15427         # especially as we might pass files found there to a mingw objdump,
15428         # which wouldn't understand a cygwinified path. Ahh.
15429         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15430       else
15431         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15432       fi
15433       ;;
15434     pw32*)
15435       # pw32 DLLs use 'pw' prefix rather than 'lib'
15436       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15437       ;;
15438     esac
15439     ;;
15440
15441   *)
15442     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15443     ;;
15444   esac
15445   dynamic_linker='Win32 ld.exe'
15446   # FIXME: first we should search . and the directory the executable is in
15447   shlibpath_var=PATH
15448   ;;
15449
15450 darwin* | rhapsody*)
15451   dynamic_linker="$host_os dyld"
15452   version_type=darwin
15453   need_lib_prefix=no
15454   need_version=no
15455   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15456   soname_spec='${libname}${release}${major}$shared_ext'
15457   shlibpath_overrides_runpath=yes
15458   shlibpath_var=DYLD_LIBRARY_PATH
15459   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15460   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15461   if test "$GCC" = yes; then
15462     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"`
15463   else
15464     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15465   fi
15466   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15467   ;;
15468
15469 dgux*)
15470   version_type=linux
15471   need_lib_prefix=no
15472   need_version=no
15473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15474   soname_spec='${libname}${release}${shared_ext}$major'
15475   shlibpath_var=LD_LIBRARY_PATH
15476   ;;
15477
15478 freebsd1*)
15479   dynamic_linker=no
15480   ;;
15481
15482 kfreebsd*-gnu)
15483   version_type=linux
15484   need_lib_prefix=no
15485   need_version=no
15486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15487   soname_spec='${libname}${release}${shared_ext}$major'
15488   shlibpath_var=LD_LIBRARY_PATH
15489   shlibpath_overrides_runpath=no
15490   hardcode_into_libs=yes
15491   dynamic_linker='GNU ld.so'
15492   ;;
15493
15494 freebsd* | dragonfly*)
15495   # DragonFly does not have aout.  When/if they implement a new
15496   # versioning mechanism, adjust this.
15497   if test -x /usr/bin/objformat; then
15498     objformat=`/usr/bin/objformat`
15499   else
15500     case $host_os in
15501     freebsd[123]*) objformat=aout ;;
15502     *) objformat=elf ;;
15503     esac
15504   fi
15505   version_type=freebsd-$objformat
15506   case $version_type in
15507     freebsd-elf*)
15508       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15509       need_version=no
15510       need_lib_prefix=no
15511       ;;
15512     freebsd-*)
15513       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15514       need_version=yes
15515       ;;
15516   esac
15517   shlibpath_var=LD_LIBRARY_PATH
15518   case $host_os in
15519   freebsd2*)
15520     shlibpath_overrides_runpath=yes
15521     ;;
15522   freebsd3.[01]* | freebsdelf3.[01]*)
15523     shlibpath_overrides_runpath=yes
15524     hardcode_into_libs=yes
15525     ;;
15526   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15527   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15528     shlibpath_overrides_runpath=no
15529     hardcode_into_libs=yes
15530     ;;
15531   freebsd*) # from 4.6 on
15532     shlibpath_overrides_runpath=yes
15533     hardcode_into_libs=yes
15534     ;;
15535   esac
15536   ;;
15537
15538 gnu*)
15539   version_type=linux
15540   need_lib_prefix=no
15541   need_version=no
15542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15543   soname_spec='${libname}${release}${shared_ext}$major'
15544   shlibpath_var=LD_LIBRARY_PATH
15545   hardcode_into_libs=yes
15546   ;;
15547
15548 hpux9* | hpux10* | hpux11*)
15549   # Give a soname corresponding to the major version so that dld.sl refuses to
15550   # link against other versions.
15551   version_type=sunos
15552   need_lib_prefix=no
15553   need_version=no
15554   case $host_cpu in
15555   ia64*)
15556     shrext_cmds='.so'
15557     hardcode_into_libs=yes
15558     dynamic_linker="$host_os dld.so"
15559     shlibpath_var=LD_LIBRARY_PATH
15560     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15561     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15562     soname_spec='${libname}${release}${shared_ext}$major'
15563     if test "X$HPUX_IA64_MODE" = X32; then
15564       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15565     else
15566       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15567     fi
15568     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15569     ;;
15570    hppa*64*)
15571      shrext_cmds='.sl'
15572      hardcode_into_libs=yes
15573      dynamic_linker="$host_os dld.sl"
15574      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15575      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15576      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577      soname_spec='${libname}${release}${shared_ext}$major'
15578      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15579      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15580      ;;
15581    *)
15582     shrext_cmds='.sl'
15583     dynamic_linker="$host_os dld.sl"
15584     shlibpath_var=SHLIB_PATH
15585     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15586     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587     soname_spec='${libname}${release}${shared_ext}$major'
15588     ;;
15589   esac
15590   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15591   postinstall_cmds='chmod 555 $lib'
15592   ;;
15593
15594 interix3*)
15595   version_type=linux
15596   need_lib_prefix=no
15597   need_version=no
15598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15599   soname_spec='${libname}${release}${shared_ext}$major'
15600   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15601   shlibpath_var=LD_LIBRARY_PATH
15602   shlibpath_overrides_runpath=no
15603   hardcode_into_libs=yes
15604   ;;
15605
15606 irix5* | irix6* | nonstopux*)
15607   case $host_os in
15608     nonstopux*) version_type=nonstopux ;;
15609     *)
15610         if test "$lt_cv_prog_gnu_ld" = yes; then
15611                 version_type=linux
15612         else
15613                 version_type=irix
15614         fi ;;
15615   esac
15616   need_lib_prefix=no
15617   need_version=no
15618   soname_spec='${libname}${release}${shared_ext}$major'
15619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15620   case $host_os in
15621   irix5* | nonstopux*)
15622     libsuff= shlibsuff=
15623     ;;
15624   *)
15625     case $LD in # libtool.m4 will add one of these switches to LD
15626     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15627       libsuff= shlibsuff= libmagic=32-bit;;
15628     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15629       libsuff=32 shlibsuff=N32 libmagic=N32;;
15630     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15631       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15632     *) libsuff= shlibsuff= libmagic=never-match;;
15633     esac
15634     ;;
15635   esac
15636   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15637   shlibpath_overrides_runpath=no
15638   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15639   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15640   hardcode_into_libs=yes
15641   ;;
15642
15643 # No shared lib support for Linux oldld, aout, or coff.
15644 linux*oldld* | linux*aout* | linux*coff*)
15645   dynamic_linker=no
15646   ;;
15647
15648 # This must be Linux ELF.
15649 linux*)
15650   version_type=linux
15651   need_lib_prefix=no
15652   need_version=no
15653   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15654   soname_spec='${libname}${release}${shared_ext}$major'
15655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15656   shlibpath_var=LD_LIBRARY_PATH
15657   shlibpath_overrides_runpath=no
15658   # This implies no fast_install, which is unacceptable.
15659   # Some rework will be needed to allow for fast_install
15660   # before this can be enabled.
15661   hardcode_into_libs=yes
15662
15663   # Append ld.so.conf contents to the search path
15664   if test -f /etc/ld.so.conf; then
15665     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' ' '`
15666     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15667   fi
15668
15669   # We used to test for /lib/ld.so.1 and disable shared libraries on
15670   # powerpc, because MkLinux only supported shared libraries with the
15671   # GNU dynamic linker.  Since this was broken with cross compilers,
15672   # most powerpc-linux boxes support dynamic linking these days and
15673   # people can always --disable-shared, the test was removed, and we
15674   # assume the GNU/Linux dynamic linker is in use.
15675   dynamic_linker='GNU/Linux ld.so'
15676   ;;
15677
15678 knetbsd*-gnu)
15679   version_type=linux
15680   need_lib_prefix=no
15681   need_version=no
15682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15683   soname_spec='${libname}${release}${shared_ext}$major'
15684   shlibpath_var=LD_LIBRARY_PATH
15685   shlibpath_overrides_runpath=no
15686   hardcode_into_libs=yes
15687   dynamic_linker='GNU ld.so'
15688   ;;
15689
15690 netbsd*)
15691   version_type=sunos
15692   need_lib_prefix=no
15693   need_version=no
15694   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15695     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15696     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15697     dynamic_linker='NetBSD (a.out) ld.so'
15698   else
15699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15700     soname_spec='${libname}${release}${shared_ext}$major'
15701     dynamic_linker='NetBSD ld.elf_so'
15702   fi
15703   shlibpath_var=LD_LIBRARY_PATH
15704   shlibpath_overrides_runpath=yes
15705   hardcode_into_libs=yes
15706   ;;
15707
15708 newsos6)
15709   version_type=linux
15710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711   shlibpath_var=LD_LIBRARY_PATH
15712   shlibpath_overrides_runpath=yes
15713   ;;
15714
15715 nto-qnx*)
15716   version_type=linux
15717   need_lib_prefix=no
15718   need_version=no
15719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720   soname_spec='${libname}${release}${shared_ext}$major'
15721   shlibpath_var=LD_LIBRARY_PATH
15722   shlibpath_overrides_runpath=yes
15723   ;;
15724
15725 openbsd*)
15726   version_type=sunos
15727   sys_lib_dlsearch_path_spec="/usr/lib"
15728   need_lib_prefix=no
15729   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15730   case $host_os in
15731     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15732     *)                         need_version=no  ;;
15733   esac
15734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15735   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15736   shlibpath_var=LD_LIBRARY_PATH
15737   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15738     case $host_os in
15739       openbsd2.[89] | openbsd2.[89].*)
15740         shlibpath_overrides_runpath=no
15741         ;;
15742       *)
15743         shlibpath_overrides_runpath=yes
15744         ;;
15745       esac
15746   else
15747     shlibpath_overrides_runpath=yes
15748   fi
15749   ;;
15750
15751 os2*)
15752   libname_spec='$name'
15753   shrext_cmds=".dll"
15754   need_lib_prefix=no
15755   library_names_spec='$libname${shared_ext} $libname.a'
15756   dynamic_linker='OS/2 ld.exe'
15757   shlibpath_var=LIBPATH
15758   ;;
15759
15760 osf3* | osf4* | osf5*)
15761   version_type=osf
15762   need_lib_prefix=no
15763   need_version=no
15764   soname_spec='${libname}${release}${shared_ext}$major'
15765   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766   shlibpath_var=LD_LIBRARY_PATH
15767   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15768   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15769   ;;
15770
15771 solaris*)
15772   version_type=linux
15773   need_lib_prefix=no
15774   need_version=no
15775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776   soname_spec='${libname}${release}${shared_ext}$major'
15777   shlibpath_var=LD_LIBRARY_PATH
15778   shlibpath_overrides_runpath=yes
15779   hardcode_into_libs=yes
15780   # ldd complains unless libraries are executable
15781   postinstall_cmds='chmod +x $lib'
15782   ;;
15783
15784 sunos4*)
15785   version_type=sunos
15786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15787   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15788   shlibpath_var=LD_LIBRARY_PATH
15789   shlibpath_overrides_runpath=yes
15790   if test "$with_gnu_ld" = yes; then
15791     need_lib_prefix=no
15792   fi
15793   need_version=yes
15794   ;;
15795
15796 sysv4 | sysv4.3*)
15797   version_type=linux
15798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799   soname_spec='${libname}${release}${shared_ext}$major'
15800   shlibpath_var=LD_LIBRARY_PATH
15801   case $host_vendor in
15802     sni)
15803       shlibpath_overrides_runpath=no
15804       need_lib_prefix=no
15805       export_dynamic_flag_spec='${wl}-Blargedynsym'
15806       runpath_var=LD_RUN_PATH
15807       ;;
15808     siemens)
15809       need_lib_prefix=no
15810       ;;
15811     motorola)
15812       need_lib_prefix=no
15813       need_version=no
15814       shlibpath_overrides_runpath=no
15815       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15816       ;;
15817   esac
15818   ;;
15819
15820 sysv4*MP*)
15821   if test -d /usr/nec ;then
15822     version_type=linux
15823     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15824     soname_spec='$libname${shared_ext}.$major'
15825     shlibpath_var=LD_LIBRARY_PATH
15826   fi
15827   ;;
15828
15829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15830   version_type=freebsd-elf
15831   need_lib_prefix=no
15832   need_version=no
15833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15834   soname_spec='${libname}${release}${shared_ext}$major'
15835   shlibpath_var=LD_LIBRARY_PATH
15836   hardcode_into_libs=yes
15837   if test "$with_gnu_ld" = yes; then
15838     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15839     shlibpath_overrides_runpath=no
15840   else
15841     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15842     shlibpath_overrides_runpath=yes
15843     case $host_os in
15844       sco3.2v5*)
15845         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15846         ;;
15847     esac
15848   fi
15849   sys_lib_dlsearch_path_spec='/usr/lib'
15850   ;;
15851
15852 uts4*)
15853   version_type=linux
15854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855   soname_spec='${libname}${release}${shared_ext}$major'
15856   shlibpath_var=LD_LIBRARY_PATH
15857   ;;
15858
15859 *)
15860   dynamic_linker=no
15861   ;;
15862 esac
15863 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15864 echo "${ECHO_T}$dynamic_linker" >&6; }
15865 test "$dynamic_linker" = no && can_build_shared=no
15866
15867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15868 if test "$GCC" = yes; then
15869   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15870 fi
15871
15872 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15873 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15874 hardcode_action_F77=
15875 if test -n "$hardcode_libdir_flag_spec_F77" || \
15876    test -n "$runpath_var_F77" || \
15877    test "X$hardcode_automatic_F77" = "Xyes" ; then
15878
15879   # We can hardcode non-existant directories.
15880   if test "$hardcode_direct_F77" != no &&
15881      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15882      # have to relink, otherwise we might link with an installed library
15883      # when we should be linking with a yet-to-be-installed one
15884      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15885      test "$hardcode_minus_L_F77" != no; then
15886     # Linking always hardcodes the temporary library directory.
15887     hardcode_action_F77=relink
15888   else
15889     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15890     hardcode_action_F77=immediate
15891   fi
15892 else
15893   # We cannot hardcode anything, or else we can only hardcode existing
15894   # directories.
15895   hardcode_action_F77=unsupported
15896 fi
15897 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15898 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15899
15900 if test "$hardcode_action_F77" = relink; then
15901   # Fast installation is not supported
15902   enable_fast_install=no
15903 elif test "$shlibpath_overrides_runpath" = yes ||
15904      test "$enable_shared" = no; then
15905   # Fast installation is not necessary
15906   enable_fast_install=needless
15907 fi
15908
15909
15910 # The else clause should only fire when bootstrapping the
15911 # libtool distribution, otherwise you forgot to ship ltmain.sh
15912 # with your package, and you will get complaints that there are
15913 # no rules to generate ltmain.sh.
15914 if test -f "$ltmain"; then
15915   # See if we are running on zsh, and set the options which allow our commands through
15916   # without removal of \ escapes.
15917   if test -n "${ZSH_VERSION+set}" ; then
15918     setopt NO_GLOB_SUBST
15919   fi
15920   # Now quote all the things that may contain metacharacters while being
15921   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15922   # variables and quote the copies for generation of the libtool script.
15923   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15924     SED SHELL STRIP \
15925     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15926     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15927     deplibs_check_method reload_flag reload_cmds need_locks \
15928     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15929     lt_cv_sys_global_symbol_to_c_name_address \
15930     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15931     old_postinstall_cmds old_postuninstall_cmds \
15932     compiler_F77 \
15933     CC_F77 \
15934     LD_F77 \
15935     lt_prog_compiler_wl_F77 \
15936     lt_prog_compiler_pic_F77 \
15937     lt_prog_compiler_static_F77 \
15938     lt_prog_compiler_no_builtin_flag_F77 \
15939     export_dynamic_flag_spec_F77 \
15940     thread_safe_flag_spec_F77 \
15941     whole_archive_flag_spec_F77 \
15942     enable_shared_with_static_runtimes_F77 \
15943     old_archive_cmds_F77 \
15944     old_archive_from_new_cmds_F77 \
15945     predep_objects_F77 \
15946     postdep_objects_F77 \
15947     predeps_F77 \
15948     postdeps_F77 \
15949     compiler_lib_search_path_F77 \
15950     archive_cmds_F77 \
15951     archive_expsym_cmds_F77 \
15952     postinstall_cmds_F77 \
15953     postuninstall_cmds_F77 \
15954     old_archive_from_expsyms_cmds_F77 \
15955     allow_undefined_flag_F77 \
15956     no_undefined_flag_F77 \
15957     export_symbols_cmds_F77 \
15958     hardcode_libdir_flag_spec_F77 \
15959     hardcode_libdir_flag_spec_ld_F77 \
15960     hardcode_libdir_separator_F77 \
15961     hardcode_automatic_F77 \
15962     module_cmds_F77 \
15963     module_expsym_cmds_F77 \
15964     lt_cv_prog_compiler_c_o_F77 \
15965     exclude_expsyms_F77 \
15966     include_expsyms_F77; do
15967
15968     case $var in
15969     old_archive_cmds_F77 | \
15970     old_archive_from_new_cmds_F77 | \
15971     archive_cmds_F77 | \
15972     archive_expsym_cmds_F77 | \
15973     module_cmds_F77 | \
15974     module_expsym_cmds_F77 | \
15975     old_archive_from_expsyms_cmds_F77 | \
15976     export_symbols_cmds_F77 | \
15977     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15978     postinstall_cmds | postuninstall_cmds | \
15979     old_postinstall_cmds | old_postuninstall_cmds | \
15980     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15981       # Double-quote double-evaled strings.
15982       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15983       ;;
15984     *)
15985       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15986       ;;
15987     esac
15988   done
15989
15990   case $lt_echo in
15991   *'\$0 --fallback-echo"')
15992     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15993     ;;
15994   esac
15995
15996 cfgfile="$ofile"
15997
15998   cat <<__EOF__ >> "$cfgfile"
15999 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16000
16001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16002
16003 # Shell to use when invoking shell scripts.
16004 SHELL=$lt_SHELL
16005
16006 # Whether or not to build shared libraries.
16007 build_libtool_libs=$enable_shared
16008
16009 # Whether or not to build static libraries.
16010 build_old_libs=$enable_static
16011
16012 # Whether or not to add -lc for building shared libraries.
16013 build_libtool_need_lc=$archive_cmds_need_lc_F77
16014
16015 # Whether or not to disallow shared libs when runtime libs are static
16016 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16017
16018 # Whether or not to optimize for fast installation.
16019 fast_install=$enable_fast_install
16020
16021 # The host system.
16022 host_alias=$host_alias
16023 host=$host
16024 host_os=$host_os
16025
16026 # The build system.
16027 build_alias=$build_alias
16028 build=$build
16029 build_os=$build_os
16030
16031 # An echo program that does not interpret backslashes.
16032 echo=$lt_echo
16033
16034 # The archiver.
16035 AR=$lt_AR
16036 AR_FLAGS=$lt_AR_FLAGS
16037
16038 # A C compiler.
16039 LTCC=$lt_LTCC
16040
16041 # LTCC compiler flags.
16042 LTCFLAGS=$lt_LTCFLAGS
16043
16044 # A language-specific compiler.
16045 CC=$lt_compiler_F77
16046
16047 # Is the compiler the GNU C compiler?
16048 with_gcc=$GCC_F77
16049
16050 # An ERE matcher.
16051 EGREP=$lt_EGREP
16052
16053 # The linker used to build libraries.
16054 LD=$lt_LD_F77
16055
16056 # Whether we need hard or soft links.
16057 LN_S=$lt_LN_S
16058
16059 # A BSD-compatible nm program.
16060 NM=$lt_NM
16061
16062 # A symbol stripping program
16063 STRIP=$lt_STRIP
16064
16065 # Used to examine libraries when file_magic_cmd begins "file"
16066 MAGIC_CMD=$MAGIC_CMD
16067
16068 # Used on cygwin: DLL creation program.
16069 DLLTOOL="$DLLTOOL"
16070
16071 # Used on cygwin: object dumper.
16072 OBJDUMP="$OBJDUMP"
16073
16074 # Used on cygwin: assembler.
16075 AS="$AS"
16076
16077 # The name of the directory that contains temporary libtool files.
16078 objdir=$objdir
16079
16080 # How to create reloadable object files.
16081 reload_flag=$lt_reload_flag
16082 reload_cmds=$lt_reload_cmds
16083
16084 # How to pass a linker flag through the compiler.
16085 wl=$lt_lt_prog_compiler_wl_F77
16086
16087 # Object file suffix (normally "o").
16088 objext="$ac_objext"
16089
16090 # Old archive suffix (normally "a").
16091 libext="$libext"
16092
16093 # Shared library suffix (normally ".so").
16094 shrext_cmds='$shrext_cmds'
16095
16096 # Executable file suffix (normally "").
16097 exeext="$exeext"
16098
16099 # Additional compiler flags for building library objects.
16100 pic_flag=$lt_lt_prog_compiler_pic_F77
16101 pic_mode=$pic_mode
16102
16103 # What is the maximum length of a command?
16104 max_cmd_len=$lt_cv_sys_max_cmd_len
16105
16106 # Does compiler simultaneously support -c and -o options?
16107 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16108
16109 # Must we lock files when doing compilation?
16110 need_locks=$lt_need_locks
16111
16112 # Do we need the lib prefix for modules?
16113 need_lib_prefix=$need_lib_prefix
16114
16115 # Do we need a version for libraries?
16116 need_version=$need_version
16117
16118 # Whether dlopen is supported.
16119 dlopen_support=$enable_dlopen
16120
16121 # Whether dlopen of programs is supported.
16122 dlopen_self=$enable_dlopen_self
16123
16124 # Whether dlopen of statically linked programs is supported.
16125 dlopen_self_static=$enable_dlopen_self_static
16126
16127 # Compiler flag to prevent dynamic linking.
16128 link_static_flag=$lt_lt_prog_compiler_static_F77
16129
16130 # Compiler flag to turn off builtin functions.
16131 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16132
16133 # Compiler flag to allow reflexive dlopens.
16134 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16135
16136 # Compiler flag to generate shared objects directly from archives.
16137 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16138
16139 # Compiler flag to generate thread-safe objects.
16140 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16141
16142 # Library versioning type.
16143 version_type=$version_type
16144
16145 # Format of library name prefix.
16146 libname_spec=$lt_libname_spec
16147
16148 # List of archive names.  First name is the real one, the rest are links.
16149 # The last name is the one that the linker finds with -lNAME.
16150 library_names_spec=$lt_library_names_spec
16151
16152 # The coded name of the library, if different from the real name.
16153 soname_spec=$lt_soname_spec
16154
16155 # Commands used to build and install an old-style archive.
16156 RANLIB=$lt_RANLIB
16157 old_archive_cmds=$lt_old_archive_cmds_F77
16158 old_postinstall_cmds=$lt_old_postinstall_cmds
16159 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16160
16161 # Create an old-style archive from a shared archive.
16162 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16163
16164 # Create a temporary old-style archive to link instead of a shared archive.
16165 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16166
16167 # Commands used to build and install a shared archive.
16168 archive_cmds=$lt_archive_cmds_F77
16169 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16170 postinstall_cmds=$lt_postinstall_cmds
16171 postuninstall_cmds=$lt_postuninstall_cmds
16172
16173 # Commands used to build a loadable module (assumed same as above if empty)
16174 module_cmds=$lt_module_cmds_F77
16175 module_expsym_cmds=$lt_module_expsym_cmds_F77
16176
16177 # Commands to strip libraries.
16178 old_striplib=$lt_old_striplib
16179 striplib=$lt_striplib
16180
16181 # Dependencies to place before the objects being linked to create a
16182 # shared library.
16183 predep_objects=$lt_predep_objects_F77
16184
16185 # Dependencies to place after the objects being linked to create a
16186 # shared library.
16187 postdep_objects=$lt_postdep_objects_F77
16188
16189 # Dependencies to place before the objects being linked to create a
16190 # shared library.
16191 predeps=$lt_predeps_F77
16192
16193 # Dependencies to place after the objects being linked to create a
16194 # shared library.
16195 postdeps=$lt_postdeps_F77
16196
16197 # The library search path used internally by the compiler when linking
16198 # a shared library.
16199 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16200
16201 # Method to check whether dependent libraries are shared objects.
16202 deplibs_check_method=$lt_deplibs_check_method
16203
16204 # Command to use when deplibs_check_method == file_magic.
16205 file_magic_cmd=$lt_file_magic_cmd
16206
16207 # Flag that allows shared libraries with undefined symbols to be built.
16208 allow_undefined_flag=$lt_allow_undefined_flag_F77
16209
16210 # Flag that forces no undefined symbols.
16211 no_undefined_flag=$lt_no_undefined_flag_F77
16212
16213 # Commands used to finish a libtool library installation in a directory.
16214 finish_cmds=$lt_finish_cmds
16215
16216 # Same as above, but a single script fragment to be evaled but not shown.
16217 finish_eval=$lt_finish_eval
16218
16219 # Take the output of nm and produce a listing of raw symbols and C names.
16220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16221
16222 # Transform the output of nm in a proper C declaration
16223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16224
16225 # Transform the output of nm in a C name address pair
16226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16227
16228 # This is the shared library runtime path variable.
16229 runpath_var=$runpath_var
16230
16231 # This is the shared library path variable.
16232 shlibpath_var=$shlibpath_var
16233
16234 # Is shlibpath searched before the hard-coded library search path?
16235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16236
16237 # How to hardcode a shared library path into an executable.
16238 hardcode_action=$hardcode_action_F77
16239
16240 # Whether we should hardcode library paths into libraries.
16241 hardcode_into_libs=$hardcode_into_libs
16242
16243 # Flag to hardcode \$libdir into a binary during linking.
16244 # This must work even if \$libdir does not exist.
16245 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16246
16247 # If ld is used when linking, flag to hardcode \$libdir into
16248 # a binary during linking. This must work even if \$libdir does
16249 # not exist.
16250 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16251
16252 # Whether we need a single -rpath flag with a separated argument.
16253 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16254
16255 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16256 # resulting binary.
16257 hardcode_direct=$hardcode_direct_F77
16258
16259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16260 # resulting binary.
16261 hardcode_minus_L=$hardcode_minus_L_F77
16262
16263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16264 # the resulting binary.
16265 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16266
16267 # Set to yes if building a shared library automatically hardcodes DIR into the library
16268 # and all subsequent libraries and executables linked against it.
16269 hardcode_automatic=$hardcode_automatic_F77
16270
16271 # Variables whose values should be saved in libtool wrapper scripts and
16272 # restored at relink time.
16273 variables_saved_for_relink="$variables_saved_for_relink"
16274
16275 # Whether libtool must link a program against all its dependency libraries.
16276 link_all_deplibs=$link_all_deplibs_F77
16277
16278 # Compile-time system search path for libraries
16279 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16280
16281 # Run-time system search path for libraries
16282 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16283
16284 # Fix the shell variable \$srcfile for the compiler.
16285 fix_srcfile_path="$fix_srcfile_path_F77"
16286
16287 # Set to yes if exported symbols are required.
16288 always_export_symbols=$always_export_symbols_F77
16289
16290 # The commands to list exported symbols.
16291 export_symbols_cmds=$lt_export_symbols_cmds_F77
16292
16293 # The commands to extract the exported symbol list from a shared archive.
16294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16295
16296 # Symbols that should not be listed in the preloaded symbols.
16297 exclude_expsyms=$lt_exclude_expsyms_F77
16298
16299 # Symbols that must always be exported.
16300 include_expsyms=$lt_include_expsyms_F77
16301
16302 # ### END LIBTOOL TAG CONFIG: $tagname
16303
16304 __EOF__
16305
16306
16307 else
16308   # If there is no Makefile yet, we rely on a make rule to execute
16309   # `config.status --recheck' to rerun these tests and create the
16310   # libtool script then.
16311   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16312   if test -f "$ltmain_in"; then
16313     test -f Makefile && make "$ltmain"
16314   fi
16315 fi
16316
16317
16318 ac_ext=c
16319 ac_cpp='$CPP $CPPFLAGS'
16320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16323
16324 CC="$lt_save_CC"
16325
16326         else
16327           tagname=""
16328         fi
16329         ;;
16330
16331       GCJ)
16332         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16333
16334
16335 # Source file extension for Java test sources.
16336 ac_ext=java
16337
16338 # Object file extension for compiled Java test sources.
16339 objext=o
16340 objext_GCJ=$objext
16341
16342 # Code to be used in simple compile tests
16343 lt_simple_compile_test_code="class foo {}\n"
16344
16345 # Code to be used in simple link tests
16346 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16347
16348 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16349
16350 # If no C compiler was specified, use CC.
16351 LTCC=${LTCC-"$CC"}
16352
16353 # If no C compiler flags were specified, use CFLAGS.
16354 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16355
16356 # Allow CC to be a program name with arguments.
16357 compiler=$CC
16358
16359
16360 # save warnings/boilerplate of simple test code
16361 ac_outfile=conftest.$ac_objext
16362 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16363 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16364 _lt_compiler_boilerplate=`cat conftest.err`
16365 $rm conftest*
16366
16367 ac_outfile=conftest.$ac_objext
16368 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16369 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16370 _lt_linker_boilerplate=`cat conftest.err`
16371 $rm conftest*
16372
16373
16374 # Allow CC to be a program name with arguments.
16375 lt_save_CC="$CC"
16376 CC=${GCJ-"gcj"}
16377 compiler=$CC
16378 compiler_GCJ=$CC
16379 for cc_temp in $compiler""; do
16380   case $cc_temp in
16381     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16382     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16383     \-*) ;;
16384     *) break;;
16385   esac
16386 done
16387 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16388
16389
16390 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16391 archive_cmds_need_lc_GCJ=no
16392
16393 old_archive_cmds_GCJ=$old_archive_cmds
16394
16395 ## CAVEAT EMPTOR:
16396 ## There is no encapsulation within the following macros, do not change
16397 ## the running order or otherwise move them around unless you know exactly
16398 ## what you are doing...
16399
16400 lt_prog_compiler_no_builtin_flag_GCJ=
16401
16402 if test "$GCC" = yes; then
16403   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16404
16405
16406 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16407 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16408 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16409   echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411   lt_cv_prog_compiler_rtti_exceptions=no
16412   ac_outfile=conftest.$ac_objext
16413    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16414    lt_compiler_flag="-fno-rtti -fno-exceptions"
16415    # Insert the option either (1) after the last *FLAGS variable, or
16416    # (2) before a word containing "conftest.", or (3) at the end.
16417    # Note that $ac_compile itself does not contain backslashes and begins
16418    # with a dollar sign (not a hyphen), so the echo should work correctly.
16419    # The option is referenced via a variable to avoid confusing sed.
16420    lt_compile=`echo "$ac_compile" | $SED \
16421    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16423    -e 's:$: $lt_compiler_flag:'`
16424    (eval echo "\"\$as_me:16424: $lt_compile\"" >&5)
16425    (eval "$lt_compile" 2>conftest.err)
16426    ac_status=$?
16427    cat conftest.err >&5
16428    echo "$as_me:16428: \$? = $ac_status" >&5
16429    if (exit $ac_status) && test -s "$ac_outfile"; then
16430      # The compiler can only warn and ignore the option if not recognized
16431      # So say no if there are warnings other than the usual output.
16432      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16433      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16434      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16435        lt_cv_prog_compiler_rtti_exceptions=yes
16436      fi
16437    fi
16438    $rm conftest*
16439
16440 fi
16441 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16442 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16443
16444 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16445     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16446 else
16447     :
16448 fi
16449
16450 fi
16451
16452 lt_prog_compiler_wl_GCJ=
16453 lt_prog_compiler_pic_GCJ=
16454 lt_prog_compiler_static_GCJ=
16455
16456 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16457 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16458
16459   if test "$GCC" = yes; then
16460     lt_prog_compiler_wl_GCJ='-Wl,'
16461     lt_prog_compiler_static_GCJ='-static'
16462
16463     case $host_os in
16464       aix*)
16465       # All AIX code is PIC.
16466       if test "$host_cpu" = ia64; then
16467         # AIX 5 now supports IA64 processor
16468         lt_prog_compiler_static_GCJ='-Bstatic'
16469       fi
16470       ;;
16471
16472     amigaos*)
16473       # FIXME: we need at least 68020 code to build shared libraries, but
16474       # adding the `-m68020' flag to GCC prevents building anything better,
16475       # like `-m68040'.
16476       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16477       ;;
16478
16479     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16480       # PIC is the default for these OSes.
16481       ;;
16482
16483     mingw* | pw32* | os2*)
16484       # This hack is so that the source file can tell whether it is being
16485       # built for inclusion in a dll (and should export symbols for example).
16486       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16487       ;;
16488
16489     darwin* | rhapsody*)
16490       # PIC is the default on this platform
16491       # Common symbols not allowed in MH_DYLIB files
16492       lt_prog_compiler_pic_GCJ='-fno-common'
16493       ;;
16494
16495     interix3*)
16496       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16497       # Instead, we relocate shared libraries at runtime.
16498       ;;
16499
16500     msdosdjgpp*)
16501       # Just because we use GCC doesn't mean we suddenly get shared libraries
16502       # on systems that don't support them.
16503       lt_prog_compiler_can_build_shared_GCJ=no
16504       enable_shared=no
16505       ;;
16506
16507     sysv4*MP*)
16508       if test -d /usr/nec; then
16509         lt_prog_compiler_pic_GCJ=-Kconform_pic
16510       fi
16511       ;;
16512
16513     hpux*)
16514       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16515       # not for PA HP-UX.
16516       case $host_cpu in
16517       hppa*64*|ia64*)
16518         # +Z the default
16519         ;;
16520       *)
16521         lt_prog_compiler_pic_GCJ='-fPIC'
16522         ;;
16523       esac
16524       ;;
16525
16526     *)
16527       lt_prog_compiler_pic_GCJ='-fPIC'
16528       ;;
16529     esac
16530   else
16531     # PORTME Check for flag to pass linker flags through the system compiler.
16532     case $host_os in
16533     aix*)
16534       lt_prog_compiler_wl_GCJ='-Wl,'
16535       if test "$host_cpu" = ia64; then
16536         # AIX 5 now supports IA64 processor
16537         lt_prog_compiler_static_GCJ='-Bstatic'
16538       else
16539         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16540       fi
16541       ;;
16542       darwin*)
16543         # PIC is the default on this platform
16544         # Common symbols not allowed in MH_DYLIB files
16545        case $cc_basename in
16546          xlc*)
16547          lt_prog_compiler_pic_GCJ='-qnocommon'
16548          lt_prog_compiler_wl_GCJ='-Wl,'
16549          ;;
16550        esac
16551        ;;
16552
16553     mingw* | pw32* | os2*)
16554       # This hack is so that the source file can tell whether it is being
16555       # built for inclusion in a dll (and should export symbols for example).
16556       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16557       ;;
16558
16559     hpux9* | hpux10* | hpux11*)
16560       lt_prog_compiler_wl_GCJ='-Wl,'
16561       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16562       # not for PA HP-UX.
16563       case $host_cpu in
16564       hppa*64*|ia64*)
16565         # +Z the default
16566         ;;
16567       *)
16568         lt_prog_compiler_pic_GCJ='+Z'
16569         ;;
16570       esac
16571       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16572       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16573       ;;
16574
16575     irix5* | irix6* | nonstopux*)
16576       lt_prog_compiler_wl_GCJ='-Wl,'
16577       # PIC (with -KPIC) is the default.
16578       lt_prog_compiler_static_GCJ='-non_shared'
16579       ;;
16580
16581     newsos6)
16582       lt_prog_compiler_pic_GCJ='-KPIC'
16583       lt_prog_compiler_static_GCJ='-Bstatic'
16584       ;;
16585
16586     linux*)
16587       case $cc_basename in
16588       icc* | ecc*)
16589         lt_prog_compiler_wl_GCJ='-Wl,'
16590         lt_prog_compiler_pic_GCJ='-KPIC'
16591         lt_prog_compiler_static_GCJ='-static'
16592         ;;
16593       pgcc* | pgf77* | pgf90* | pgf95*)
16594         # Portland Group compilers (*not* the Pentium gcc compiler,
16595         # which looks to be a dead project)
16596         lt_prog_compiler_wl_GCJ='-Wl,'
16597         lt_prog_compiler_pic_GCJ='-fpic'
16598         lt_prog_compiler_static_GCJ='-Bstatic'
16599         ;;
16600       ccc*)
16601         lt_prog_compiler_wl_GCJ='-Wl,'
16602         # All Alpha code is PIC.
16603         lt_prog_compiler_static_GCJ='-non_shared'
16604         ;;
16605       esac
16606       ;;
16607
16608     osf3* | osf4* | osf5*)
16609       lt_prog_compiler_wl_GCJ='-Wl,'
16610       # All OSF/1 code is PIC.
16611       lt_prog_compiler_static_GCJ='-non_shared'
16612       ;;
16613
16614     solaris*)
16615       lt_prog_compiler_pic_GCJ='-KPIC'
16616       lt_prog_compiler_static_GCJ='-Bstatic'
16617       case $cc_basename in
16618       f77* | f90* | f95*)
16619         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16620       *)
16621         lt_prog_compiler_wl_GCJ='-Wl,';;
16622       esac
16623       ;;
16624
16625     sunos4*)
16626       lt_prog_compiler_wl_GCJ='-Qoption ld '
16627       lt_prog_compiler_pic_GCJ='-PIC'
16628       lt_prog_compiler_static_GCJ='-Bstatic'
16629       ;;
16630
16631     sysv4 | sysv4.2uw2* | sysv4.3*)
16632       lt_prog_compiler_wl_GCJ='-Wl,'
16633       lt_prog_compiler_pic_GCJ='-KPIC'
16634       lt_prog_compiler_static_GCJ='-Bstatic'
16635       ;;
16636
16637     sysv4*MP*)
16638       if test -d /usr/nec ;then
16639         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16640         lt_prog_compiler_static_GCJ='-Bstatic'
16641       fi
16642       ;;
16643
16644     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16645       lt_prog_compiler_wl_GCJ='-Wl,'
16646       lt_prog_compiler_pic_GCJ='-KPIC'
16647       lt_prog_compiler_static_GCJ='-Bstatic'
16648       ;;
16649
16650     unicos*)
16651       lt_prog_compiler_wl_GCJ='-Wl,'
16652       lt_prog_compiler_can_build_shared_GCJ=no
16653       ;;
16654
16655     uts4*)
16656       lt_prog_compiler_pic_GCJ='-pic'
16657       lt_prog_compiler_static_GCJ='-Bstatic'
16658       ;;
16659
16660     *)
16661       lt_prog_compiler_can_build_shared_GCJ=no
16662       ;;
16663     esac
16664   fi
16665
16666 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16667 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16668
16669 #
16670 # Check to make sure the PIC flag actually works.
16671 #
16672 if test -n "$lt_prog_compiler_pic_GCJ"; then
16673
16674 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16675 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16676 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16677   echo $ECHO_N "(cached) $ECHO_C" >&6
16678 else
16679   lt_prog_compiler_pic_works_GCJ=no
16680   ac_outfile=conftest.$ac_objext
16681    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16682    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16683    # Insert the option either (1) after the last *FLAGS variable, or
16684    # (2) before a word containing "conftest.", or (3) at the end.
16685    # Note that $ac_compile itself does not contain backslashes and begins
16686    # with a dollar sign (not a hyphen), so the echo should work correctly.
16687    # The option is referenced via a variable to avoid confusing sed.
16688    lt_compile=`echo "$ac_compile" | $SED \
16689    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16690    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16691    -e 's:$: $lt_compiler_flag:'`
16692    (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
16693    (eval "$lt_compile" 2>conftest.err)
16694    ac_status=$?
16695    cat conftest.err >&5
16696    echo "$as_me:16696: \$? = $ac_status" >&5
16697    if (exit $ac_status) && test -s "$ac_outfile"; then
16698      # The compiler can only warn and ignore the option if not recognized
16699      # So say no if there are warnings other than the usual output.
16700      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16701      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16702      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16703        lt_prog_compiler_pic_works_GCJ=yes
16704      fi
16705    fi
16706    $rm conftest*
16707
16708 fi
16709 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16710 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16711
16712 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16713     case $lt_prog_compiler_pic_GCJ in
16714      "" | " "*) ;;
16715      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16716      esac
16717 else
16718     lt_prog_compiler_pic_GCJ=
16719      lt_prog_compiler_can_build_shared_GCJ=no
16720 fi
16721
16722 fi
16723 case $host_os in
16724   # For platforms which do not support PIC, -DPIC is meaningless:
16725   *djgpp*)
16726     lt_prog_compiler_pic_GCJ=
16727     ;;
16728   *)
16729     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16730     ;;
16731 esac
16732
16733 #
16734 # Check to make sure the static flag actually works.
16735 #
16736 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16737 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16738 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16739 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16740   echo $ECHO_N "(cached) $ECHO_C" >&6
16741 else
16742   lt_prog_compiler_static_works_GCJ=no
16743    save_LDFLAGS="$LDFLAGS"
16744    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16745    printf "$lt_simple_link_test_code" > conftest.$ac_ext
16746    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16747      # The linker can only warn and ignore the option if not recognized
16748      # So say no if there are warnings
16749      if test -s conftest.err; then
16750        # Append any errors to the config.log.
16751        cat conftest.err 1>&5
16752        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16753        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16754        if diff conftest.exp conftest.er2 >/dev/null; then
16755          lt_prog_compiler_static_works_GCJ=yes
16756        fi
16757      else
16758        lt_prog_compiler_static_works_GCJ=yes
16759      fi
16760    fi
16761    $rm conftest*
16762    LDFLAGS="$save_LDFLAGS"
16763
16764 fi
16765 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16766 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16767
16768 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16769     :
16770 else
16771     lt_prog_compiler_static_GCJ=
16772 fi
16773
16774
16775 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16776 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16777 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16778   echo $ECHO_N "(cached) $ECHO_C" >&6
16779 else
16780   lt_cv_prog_compiler_c_o_GCJ=no
16781    $rm -r conftest 2>/dev/null
16782    mkdir conftest
16783    cd conftest
16784    mkdir out
16785    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16786
16787    lt_compiler_flag="-o out/conftest2.$ac_objext"
16788    # Insert the option either (1) after the last *FLAGS variable, or
16789    # (2) before a word containing "conftest.", or (3) at the end.
16790    # Note that $ac_compile itself does not contain backslashes and begins
16791    # with a dollar sign (not a hyphen), so the echo should work correctly.
16792    lt_compile=`echo "$ac_compile" | $SED \
16793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16795    -e 's:$: $lt_compiler_flag:'`
16796    (eval echo "\"\$as_me:16796: $lt_compile\"" >&5)
16797    (eval "$lt_compile" 2>out/conftest.err)
16798    ac_status=$?
16799    cat out/conftest.err >&5
16800    echo "$as_me:16800: \$? = $ac_status" >&5
16801    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16802    then
16803      # The compiler can only warn and ignore the option if not recognized
16804      # So say no if there are warnings
16805      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16806      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16807      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16808        lt_cv_prog_compiler_c_o_GCJ=yes
16809      fi
16810    fi
16811    chmod u+w . 2>&5
16812    $rm conftest*
16813    # SGI C++ compiler will create directory out/ii_files/ for
16814    # template instantiation
16815    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16816    $rm out/* && rmdir out
16817    cd ..
16818    rmdir conftest
16819    $rm conftest*
16820
16821 fi
16822 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16823 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16824
16825
16826 hard_links="nottested"
16827 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16828   # do not overwrite the value of need_locks provided by the user
16829   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16830 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16831   hard_links=yes
16832   $rm conftest*
16833   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16834   touch conftest.a
16835   ln conftest.a conftest.b 2>&5 || hard_links=no
16836   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16837   { echo "$as_me:$LINENO: result: $hard_links" >&5
16838 echo "${ECHO_T}$hard_links" >&6; }
16839   if test "$hard_links" = no; then
16840     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16841 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16842     need_locks=warn
16843   fi
16844 else
16845   need_locks=no
16846 fi
16847
16848 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16849 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16850
16851   runpath_var=
16852   allow_undefined_flag_GCJ=
16853   enable_shared_with_static_runtimes_GCJ=no
16854   archive_cmds_GCJ=
16855   archive_expsym_cmds_GCJ=
16856   old_archive_From_new_cmds_GCJ=
16857   old_archive_from_expsyms_cmds_GCJ=
16858   export_dynamic_flag_spec_GCJ=
16859   whole_archive_flag_spec_GCJ=
16860   thread_safe_flag_spec_GCJ=
16861   hardcode_libdir_flag_spec_GCJ=
16862   hardcode_libdir_flag_spec_ld_GCJ=
16863   hardcode_libdir_separator_GCJ=
16864   hardcode_direct_GCJ=no
16865   hardcode_minus_L_GCJ=no
16866   hardcode_shlibpath_var_GCJ=unsupported
16867   link_all_deplibs_GCJ=unknown
16868   hardcode_automatic_GCJ=no
16869   module_cmds_GCJ=
16870   module_expsym_cmds_GCJ=
16871   always_export_symbols_GCJ=no
16872   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16873   # include_expsyms should be a list of space-separated symbols to be *always*
16874   # included in the symbol list
16875   include_expsyms_GCJ=
16876   # exclude_expsyms can be an extended regexp of symbols to exclude
16877   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16878   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16879   # as well as any symbol that contains `d'.
16880   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16881   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16882   # platforms (ab)use it in PIC code, but their linkers get confused if
16883   # the symbol is explicitly referenced.  Since portable code cannot
16884   # rely on this symbol name, it's probably fine to never include it in
16885   # preloaded symbol tables.
16886   extract_expsyms_cmds=
16887   # Just being paranoid about ensuring that cc_basename is set.
16888   for cc_temp in $compiler""; do
16889   case $cc_temp in
16890     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16891     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16892     \-*) ;;
16893     *) break;;
16894   esac
16895 done
16896 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16897
16898   case $host_os in
16899   cygwin* | mingw* | pw32*)
16900     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16901     # When not using gcc, we currently assume that we are using
16902     # Microsoft Visual C++.
16903     if test "$GCC" != yes; then
16904       with_gnu_ld=no
16905     fi
16906     ;;
16907   interix*)
16908     # we just hope/assume this is gcc and not c89 (= MSVC++)
16909     with_gnu_ld=yes
16910     ;;
16911   openbsd*)
16912     with_gnu_ld=no
16913     ;;
16914   esac
16915
16916   ld_shlibs_GCJ=yes
16917   if test "$with_gnu_ld" = yes; then
16918     # If archive_cmds runs LD, not CC, wlarc should be empty
16919     wlarc='${wl}'
16920
16921     # Set some defaults for GNU ld with shared library support. These
16922     # are reset later if shared libraries are not supported. Putting them
16923     # here allows them to be overridden if necessary.
16924     runpath_var=LD_RUN_PATH
16925     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16926     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16927     # ancient GNU ld didn't support --whole-archive et. al.
16928     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16929         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16930       else
16931         whole_archive_flag_spec_GCJ=
16932     fi
16933     supports_anon_versioning=no
16934     case `$LD -v 2>/dev/null` in
16935       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16936       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16937       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16938       *\ 2.11.*) ;; # other 2.11 versions
16939       *) supports_anon_versioning=yes ;;
16940     esac
16941
16942     # See if GNU ld supports shared libraries.
16943     case $host_os in
16944     aix3* | aix4* | aix5*)
16945       # On AIX/PPC, the GNU linker is very broken
16946       if test "$host_cpu" != ia64; then
16947         ld_shlibs_GCJ=no
16948         cat <<EOF 1>&2
16949
16950 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16951 *** to be unable to reliably create shared libraries on AIX.
16952 *** Therefore, libtool is disabling shared libraries support.  If you
16953 *** really care for shared libraries, you may want to modify your PATH
16954 *** so that a non-GNU linker is found, and then restart.
16955
16956 EOF
16957       fi
16958       ;;
16959
16960     amigaos*)
16961       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)'
16962       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16963       hardcode_minus_L_GCJ=yes
16964
16965       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16966       # that the semantics of dynamic libraries on AmigaOS, at least up
16967       # to version 4, is to share data among multiple programs linked
16968       # with the same dynamic library.  Since this doesn't match the
16969       # behavior of shared libraries on other platforms, we can't use
16970       # them.
16971       ld_shlibs_GCJ=no
16972       ;;
16973
16974     beos*)
16975       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16976         allow_undefined_flag_GCJ=unsupported
16977         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16978         # support --undefined.  This deserves some investigation.  FIXME
16979         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16980       else
16981         ld_shlibs_GCJ=no
16982       fi
16983       ;;
16984
16985     cygwin* | mingw* | pw32*)
16986       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16987       # as there is no search path for DLLs.
16988       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16989       allow_undefined_flag_GCJ=unsupported
16990       always_export_symbols_GCJ=no
16991       enable_shared_with_static_runtimes_GCJ=yes
16992       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16993
16994       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16995         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16996         # If the export-symbols file already is a .def file (1st line
16997         # is EXPORTS), use it as is; otherwise, prepend...
16998         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16999           cp $export_symbols $output_objdir/$soname.def;
17000         else
17001           echo EXPORTS > $output_objdir/$soname.def;
17002           cat $export_symbols >> $output_objdir/$soname.def;
17003         fi~
17004         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17005       else
17006         ld_shlibs_GCJ=no
17007       fi
17008       ;;
17009
17010     interix3*)
17011       hardcode_direct_GCJ=no
17012       hardcode_shlibpath_var_GCJ=no
17013       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17014       export_dynamic_flag_spec_GCJ='${wl}-E'
17015       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17016       # Instead, shared libraries are loaded at an image base (0x10000000 by
17017       # default) and relocated if they conflict, which is a slow very memory
17018       # consuming and fragmenting process.  To avoid this, we pick a random,
17019       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17020       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17021       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'
17022       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'
17023       ;;
17024
17025     linux*)
17026       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17027         tmp_addflag=
17028         case $cc_basename,$host_cpu in
17029         pgcc*)                          # Portland Group C compiler
17030           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'
17031           tmp_addflag=' $pic_flag'
17032           ;;
17033         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17034           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'
17035           tmp_addflag=' $pic_flag -Mnomain' ;;
17036         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17037           tmp_addflag=' -i_dynamic' ;;
17038         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17039           tmp_addflag=' -i_dynamic -nofor_main' ;;
17040         ifc* | ifort*)                  # Intel Fortran compiler
17041           tmp_addflag=' -nofor_main' ;;
17042         esac
17043         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17044
17045         if test $supports_anon_versioning = yes; then
17046           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17047   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17048   $echo "local: *; };" >> $output_objdir/$libname.ver~
17049           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17050         fi
17051       else
17052         ld_shlibs_GCJ=no
17053       fi
17054       ;;
17055
17056     netbsd*)
17057       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17058         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17059         wlarc=
17060       else
17061         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17062         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17063       fi
17064       ;;
17065
17066     solaris*)
17067       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17068         ld_shlibs_GCJ=no
17069         cat <<EOF 1>&2
17070
17071 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17072 *** create shared libraries on Solaris systems.  Therefore, libtool
17073 *** is disabling shared libraries support.  We urge you to upgrade GNU
17074 *** binutils to release 2.9.1 or newer.  Another option is to modify
17075 *** your PATH or compiler configuration so that the native linker is
17076 *** used, and then restart.
17077
17078 EOF
17079       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17080         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17081         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17082       else
17083         ld_shlibs_GCJ=no
17084       fi
17085       ;;
17086
17087     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17088       case `$LD -v 2>&1` in
17089         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17090         ld_shlibs_GCJ=no
17091         cat <<_LT_EOF 1>&2
17092
17093 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17094 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17095 *** is disabling shared libraries support.  We urge you to upgrade GNU
17096 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17097 *** your PATH or compiler configuration so that the native linker is
17098 *** used, and then restart.
17099
17100 _LT_EOF
17101         ;;
17102         *)
17103           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17104             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17105             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17106             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17107           else
17108             ld_shlibs_GCJ=no
17109           fi
17110         ;;
17111       esac
17112       ;;
17113
17114     sunos4*)
17115       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17116       wlarc=
17117       hardcode_direct_GCJ=yes
17118       hardcode_shlibpath_var_GCJ=no
17119       ;;
17120
17121     *)
17122       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17123         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17124         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17125       else
17126         ld_shlibs_GCJ=no
17127       fi
17128       ;;
17129     esac
17130
17131     if test "$ld_shlibs_GCJ" = no; then
17132       runpath_var=
17133       hardcode_libdir_flag_spec_GCJ=
17134       export_dynamic_flag_spec_GCJ=
17135       whole_archive_flag_spec_GCJ=
17136     fi
17137   else
17138     # PORTME fill in a description of your system's linker (not GNU ld)
17139     case $host_os in
17140     aix3*)
17141       allow_undefined_flag_GCJ=unsupported
17142       always_export_symbols_GCJ=yes
17143       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'
17144       # Note: this linker hardcodes the directories in LIBPATH if there
17145       # are no directories specified by -L.
17146       hardcode_minus_L_GCJ=yes
17147       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17148         # Neither direct hardcoding nor static linking is supported with a
17149         # broken collect2.
17150         hardcode_direct_GCJ=unsupported
17151       fi
17152       ;;
17153
17154     aix4* | aix5*)
17155       if test "$host_cpu" = ia64; then
17156         # On IA64, the linker does run time linking by default, so we don't
17157         # have to do anything special.
17158         aix_use_runtimelinking=no
17159         exp_sym_flag='-Bexport'
17160         no_entry_flag=""
17161       else
17162         # If we're using GNU nm, then we don't want the "-C" option.
17163         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17164         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17165           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'
17166         else
17167           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'
17168         fi
17169         aix_use_runtimelinking=no
17170
17171         # Test if we are trying to use run time linking or normal
17172         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17173         # need to do runtime linking.
17174         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17175           for ld_flag in $LDFLAGS; do
17176           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17177             aix_use_runtimelinking=yes
17178             break
17179           fi
17180           done
17181           ;;
17182         esac
17183
17184         exp_sym_flag='-bexport'
17185         no_entry_flag='-bnoentry'
17186       fi
17187
17188       # When large executables or shared objects are built, AIX ld can
17189       # have problems creating the table of contents.  If linking a library
17190       # or program results in "error TOC overflow" add -mminimal-toc to
17191       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17192       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17193
17194       archive_cmds_GCJ=''
17195       hardcode_direct_GCJ=yes
17196       hardcode_libdir_separator_GCJ=':'
17197       link_all_deplibs_GCJ=yes
17198
17199       if test "$GCC" = yes; then
17200         case $host_os in aix4.[012]|aix4.[012].*)
17201         # We only want to do this on AIX 4.2 and lower, the check
17202         # below for broken collect2 doesn't work under 4.3+
17203           collect2name=`${CC} -print-prog-name=collect2`
17204           if test -f "$collect2name" && \
17205            strings "$collect2name" | grep resolve_lib_name >/dev/null
17206           then
17207           # We have reworked collect2
17208           hardcode_direct_GCJ=yes
17209           else
17210           # We have old collect2
17211           hardcode_direct_GCJ=unsupported
17212           # It fails to find uninstalled libraries when the uninstalled
17213           # path is not listed in the libpath.  Setting hardcode_minus_L
17214           # to unsupported forces relinking
17215           hardcode_minus_L_GCJ=yes
17216           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17217           hardcode_libdir_separator_GCJ=
17218           fi
17219           ;;
17220         esac
17221         shared_flag='-shared'
17222         if test "$aix_use_runtimelinking" = yes; then
17223           shared_flag="$shared_flag "'${wl}-G'
17224         fi
17225       else
17226         # not using gcc
17227         if test "$host_cpu" = ia64; then
17228         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17229         # chokes on -Wl,-G. The following line is correct:
17230           shared_flag='-G'
17231         else
17232           if test "$aix_use_runtimelinking" = yes; then
17233             shared_flag='${wl}-G'
17234           else
17235             shared_flag='${wl}-bM:SRE'
17236           fi
17237         fi
17238       fi
17239
17240       # It seems that -bexpall does not export symbols beginning with
17241       # underscore (_), so it is better to generate a list of symbols to export.
17242       always_export_symbols_GCJ=yes
17243       if test "$aix_use_runtimelinking" = yes; then
17244         # Warning - without using the other runtime loading flags (-brtl),
17245         # -berok will link without error, but may produce a broken library.
17246         allow_undefined_flag_GCJ='-berok'
17247        # Determine the default libpath from the value encoded in an empty executable.
17248        cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254
17255 int
17256 main ()
17257 {
17258
17259   ;
17260   return 0;
17261 }
17262 _ACEOF
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267   *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270   (eval "$ac_link") 2>conftest.er1
17271   ac_status=$?
17272   grep -v '^ *+' conftest.er1 >conftest.err
17273   rm -f conftest.er1
17274   cat conftest.err >&5
17275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276   (exit $ac_status); } && {
17277          test -z "$ac_c_werror_flag" ||
17278          test ! -s conftest.err
17279        } && test -s conftest$ac_exeext &&
17280        $as_test_x conftest$ac_exeext; then
17281
17282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17283 }'`
17284 # Check for a 64-bit object if we didn't find anything.
17285 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; }
17286 }'`; fi
17287 else
17288   echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291
17292 fi
17293
17294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17295       conftest$ac_exeext conftest.$ac_ext
17296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17297
17298        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17299         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"
17300        else
17301         if test "$host_cpu" = ia64; then
17302           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17303           allow_undefined_flag_GCJ="-z nodefs"
17304           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"
17305         else
17306          # Determine the default libpath from the value encoded in an empty executable.
17307          cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h.  */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h.  */
17313
17314 int
17315 main ()
17316 {
17317
17318   ;
17319   return 0;
17320 }
17321 _ACEOF
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (ac_try="$ac_link"
17324 case "(($ac_try" in
17325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326   *) ac_try_echo=$ac_try;;
17327 esac
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329   (eval "$ac_link") 2>conftest.er1
17330   ac_status=$?
17331   grep -v '^ *+' conftest.er1 >conftest.err
17332   rm -f conftest.er1
17333   cat conftest.err >&5
17334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335   (exit $ac_status); } && {
17336          test -z "$ac_c_werror_flag" ||
17337          test ! -s conftest.err
17338        } && test -s conftest$ac_exeext &&
17339        $as_test_x conftest$ac_exeext; then
17340
17341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17342 }'`
17343 # Check for a 64-bit object if we didn't find anything.
17344 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; }
17345 }'`; fi
17346 else
17347   echo "$as_me: failed program was:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17349
17350
17351 fi
17352
17353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17354       conftest$ac_exeext conftest.$ac_ext
17355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17356
17357          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17358           # Warning - without using the other run time loading flags,
17359           # -berok will link without error, but may produce a broken library.
17360           no_undefined_flag_GCJ=' ${wl}-bernotok'
17361           allow_undefined_flag_GCJ=' ${wl}-berok'
17362           # Exported symbols can be pulled into shared objects from archives
17363           whole_archive_flag_spec_GCJ='$convenience'
17364           archive_cmds_need_lc_GCJ=yes
17365           # This is similar to how AIX traditionally builds its shared libraries.
17366           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'
17367         fi
17368       fi
17369       ;;
17370
17371     amigaos*)
17372       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)'
17373       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17374       hardcode_minus_L_GCJ=yes
17375       # see comment about different semantics on the GNU ld section
17376       ld_shlibs_GCJ=no
17377       ;;
17378
17379     bsdi[45]*)
17380       export_dynamic_flag_spec_GCJ=-rdynamic
17381       ;;
17382
17383     cygwin* | mingw* | pw32*)
17384       # When not using gcc, we currently assume that we are using
17385       # Microsoft Visual C++.
17386       # hardcode_libdir_flag_spec is actually meaningless, as there is
17387       # no search path for DLLs.
17388       hardcode_libdir_flag_spec_GCJ=' '
17389       allow_undefined_flag_GCJ=unsupported
17390       # Tell ltmain to make .lib files, not .a files.
17391       libext=lib
17392       # Tell ltmain to make .dll files, not .so files.
17393       shrext_cmds=".dll"
17394       # FIXME: Setting linknames here is a bad hack.
17395       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17396       # The linker will automatically build a .lib file if we build a DLL.
17397       old_archive_From_new_cmds_GCJ='true'
17398       # FIXME: Should let the user specify the lib program.
17399       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17400       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17401       enable_shared_with_static_runtimes_GCJ=yes
17402       ;;
17403
17404     darwin* | rhapsody*)
17405       case $host_os in
17406         rhapsody* | darwin1.[012])
17407          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17408          ;;
17409        *) # Darwin 1.3 on
17410          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17411            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17412          else
17413            case ${MACOSX_DEPLOYMENT_TARGET} in
17414              10.[012])
17415                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17416                ;;
17417              10.*)
17418                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17419                ;;
17420            esac
17421          fi
17422          ;;
17423       esac
17424       archive_cmds_need_lc_GCJ=no
17425       hardcode_direct_GCJ=no
17426       hardcode_automatic_GCJ=yes
17427       hardcode_shlibpath_var_GCJ=unsupported
17428       whole_archive_flag_spec_GCJ=''
17429       link_all_deplibs_GCJ=yes
17430     if test "$GCC" = yes ; then
17431         output_verbose_link_cmd='echo'
17432         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17433       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17434       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17435       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}'
17436       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}'
17437     else
17438       case $cc_basename in
17439         xlc*)
17440          output_verbose_link_cmd='echo'
17441          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17442          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17443           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17444          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}'
17445           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}'
17446           ;;
17447        *)
17448          ld_shlibs_GCJ=no
17449           ;;
17450       esac
17451     fi
17452       ;;
17453
17454     dgux*)
17455       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17456       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17457       hardcode_shlibpath_var_GCJ=no
17458       ;;
17459
17460     freebsd1*)
17461       ld_shlibs_GCJ=no
17462       ;;
17463
17464     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17465     # support.  Future versions do this automatically, but an explicit c++rt0.o
17466     # does not break anything, and helps significantly (at the cost of a little
17467     # extra space).
17468     freebsd2.2*)
17469       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17470       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17471       hardcode_direct_GCJ=yes
17472       hardcode_shlibpath_var_GCJ=no
17473       ;;
17474
17475     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17476     freebsd2*)
17477       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17478       hardcode_direct_GCJ=yes
17479       hardcode_minus_L_GCJ=yes
17480       hardcode_shlibpath_var_GCJ=no
17481       ;;
17482
17483     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17484     freebsd* | kfreebsd*-gnu | dragonfly*)
17485       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17486       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17487       hardcode_direct_GCJ=yes
17488       hardcode_shlibpath_var_GCJ=no
17489       ;;
17490
17491     hpux9*)
17492       if test "$GCC" = yes; then
17493         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'
17494       else
17495         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'
17496       fi
17497       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17498       hardcode_libdir_separator_GCJ=:
17499       hardcode_direct_GCJ=yes
17500
17501       # hardcode_minus_L: Not really in the search PATH,
17502       # but as the default location of the library.
17503       hardcode_minus_L_GCJ=yes
17504       export_dynamic_flag_spec_GCJ='${wl}-E'
17505       ;;
17506
17507     hpux10*)
17508       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17509         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17510       else
17511         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17512       fi
17513       if test "$with_gnu_ld" = no; then
17514         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17515         hardcode_libdir_separator_GCJ=:
17516
17517         hardcode_direct_GCJ=yes
17518         export_dynamic_flag_spec_GCJ='${wl}-E'
17519
17520         # hardcode_minus_L: Not really in the search PATH,
17521         # but as the default location of the library.
17522         hardcode_minus_L_GCJ=yes
17523       fi
17524       ;;
17525
17526     hpux11*)
17527       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17528         case $host_cpu in
17529         hppa*64*)
17530           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17531           ;;
17532         ia64*)
17533           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17534           ;;
17535         *)
17536           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17537           ;;
17538         esac
17539       else
17540         case $host_cpu in
17541         hppa*64*)
17542           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17543           ;;
17544         ia64*)
17545           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17546           ;;
17547         *)
17548           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17549           ;;
17550         esac
17551       fi
17552       if test "$with_gnu_ld" = no; then
17553         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17554         hardcode_libdir_separator_GCJ=:
17555
17556         case $host_cpu in
17557         hppa*64*|ia64*)
17558           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17559           hardcode_direct_GCJ=no
17560           hardcode_shlibpath_var_GCJ=no
17561           ;;
17562         *)
17563           hardcode_direct_GCJ=yes
17564           export_dynamic_flag_spec_GCJ='${wl}-E'
17565
17566           # hardcode_minus_L: Not really in the search PATH,
17567           # but as the default location of the library.
17568           hardcode_minus_L_GCJ=yes
17569           ;;
17570         esac
17571       fi
17572       ;;
17573
17574     irix5* | irix6* | nonstopux*)
17575       if test "$GCC" = yes; then
17576         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'
17577       else
17578         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'
17579         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17580       fi
17581       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17582       hardcode_libdir_separator_GCJ=:
17583       link_all_deplibs_GCJ=yes
17584       ;;
17585
17586     netbsd*)
17587       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17588         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17589       else
17590         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17591       fi
17592       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17593       hardcode_direct_GCJ=yes
17594       hardcode_shlibpath_var_GCJ=no
17595       ;;
17596
17597     newsos6)
17598       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17599       hardcode_direct_GCJ=yes
17600       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17601       hardcode_libdir_separator_GCJ=:
17602       hardcode_shlibpath_var_GCJ=no
17603       ;;
17604
17605     openbsd*)
17606       hardcode_direct_GCJ=yes
17607       hardcode_shlibpath_var_GCJ=no
17608       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17609         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17610         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17611         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612         export_dynamic_flag_spec_GCJ='${wl}-E'
17613       else
17614        case $host_os in
17615          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17616            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17617            hardcode_libdir_flag_spec_GCJ='-R$libdir'
17618            ;;
17619          *)
17620            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17621            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17622            ;;
17623        esac
17624       fi
17625       ;;
17626
17627     os2*)
17628       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17629       hardcode_minus_L_GCJ=yes
17630       allow_undefined_flag_GCJ=unsupported
17631       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'
17632       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17633       ;;
17634
17635     osf3*)
17636       if test "$GCC" = yes; then
17637         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17638         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'
17639       else
17640         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17641         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'
17642       fi
17643       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17644       hardcode_libdir_separator_GCJ=:
17645       ;;
17646
17647     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17648       if test "$GCC" = yes; then
17649         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17650         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'
17651         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17652       else
17653         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17654         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'
17655         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~
17656         $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'
17657
17658         # Both c and cxx compiler support -rpath directly
17659         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17660       fi
17661       hardcode_libdir_separator_GCJ=:
17662       ;;
17663
17664     solaris*)
17665       no_undefined_flag_GCJ=' -z text'
17666       if test "$GCC" = yes; then
17667         wlarc='${wl}'
17668         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17669         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17670           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17671       else
17672         wlarc=''
17673         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17674         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17675         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17676       fi
17677       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17678       hardcode_shlibpath_var_GCJ=no
17679       case $host_os in
17680       solaris2.[0-5] | solaris2.[0-5].*) ;;
17681       *)
17682         # The compiler driver will combine linker options so we
17683         # cannot just pass the convience library names through
17684         # without $wl, iff we do not link with $LD.
17685         # Luckily, gcc supports the same syntax we need for Sun Studio.
17686         # Supported since Solaris 2.6 (maybe 2.5.1?)
17687         case $wlarc in
17688         '')
17689           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17690         *)
17691           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' ;;
17692         esac ;;
17693       esac
17694       link_all_deplibs_GCJ=yes
17695       ;;
17696
17697     sunos4*)
17698       if test "x$host_vendor" = xsequent; then
17699         # Use $CC to link under sequent, because it throws in some extra .o
17700         # files that make .init and .fini sections work.
17701         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17702       else
17703         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17704       fi
17705       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17706       hardcode_direct_GCJ=yes
17707       hardcode_minus_L_GCJ=yes
17708       hardcode_shlibpath_var_GCJ=no
17709       ;;
17710
17711     sysv4)
17712       case $host_vendor in
17713         sni)
17714           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715           hardcode_direct_GCJ=yes # is this really true???
17716         ;;
17717         siemens)
17718           ## LD is ld it makes a PLAMLIB
17719           ## CC just makes a GrossModule.
17720           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17721           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17722           hardcode_direct_GCJ=no
17723         ;;
17724         motorola)
17725           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17726           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17727         ;;
17728       esac
17729       runpath_var='LD_RUN_PATH'
17730       hardcode_shlibpath_var_GCJ=no
17731       ;;
17732
17733     sysv4.3*)
17734       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17735       hardcode_shlibpath_var_GCJ=no
17736       export_dynamic_flag_spec_GCJ='-Bexport'
17737       ;;
17738
17739     sysv4*MP*)
17740       if test -d /usr/nec; then
17741         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17742         hardcode_shlibpath_var_GCJ=no
17743         runpath_var=LD_RUN_PATH
17744         hardcode_runpath_var=yes
17745         ld_shlibs_GCJ=yes
17746       fi
17747       ;;
17748
17749     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17750       no_undefined_flag_GCJ='${wl}-z,text'
17751       archive_cmds_need_lc_GCJ=no
17752       hardcode_shlibpath_var_GCJ=no
17753       runpath_var='LD_RUN_PATH'
17754
17755       if test "$GCC" = yes; then
17756         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17757         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17758       else
17759         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17760         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761       fi
17762       ;;
17763
17764     sysv5* | sco3.2v5* | sco5v6*)
17765       # Note: We can NOT use -z defs as we might desire, because we do not
17766       # link with -lc, and that would cause any symbols used from libc to
17767       # always be unresolved, which means just about no library would
17768       # ever link correctly.  If we're not using GNU ld we use -z text
17769       # though, which does catch some bad symbols but isn't as heavy-handed
17770       # as -z defs.
17771       no_undefined_flag_GCJ='${wl}-z,text'
17772       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17773       archive_cmds_need_lc_GCJ=no
17774       hardcode_shlibpath_var_GCJ=no
17775       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17776       hardcode_libdir_separator_GCJ=':'
17777       link_all_deplibs_GCJ=yes
17778       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17779       runpath_var='LD_RUN_PATH'
17780
17781       if test "$GCC" = yes; then
17782         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17783         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17784       else
17785         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17786         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17787       fi
17788       ;;
17789
17790     uts4*)
17791       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17792       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17793       hardcode_shlibpath_var_GCJ=no
17794       ;;
17795
17796     *)
17797       ld_shlibs_GCJ=no
17798       ;;
17799     esac
17800   fi
17801
17802 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17803 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17804 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17805
17806 #
17807 # Do we need to explicitly link libc?
17808 #
17809 case "x$archive_cmds_need_lc_GCJ" in
17810 x|xyes)
17811   # Assume -lc should be added
17812   archive_cmds_need_lc_GCJ=yes
17813
17814   if test "$enable_shared" = yes && test "$GCC" = yes; then
17815     case $archive_cmds_GCJ in
17816     *'~'*)
17817       # FIXME: we may have to deal with multi-command sequences.
17818       ;;
17819     '$CC '*)
17820       # Test whether the compiler implicitly links with -lc since on some
17821       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17822       # to ld, don't add -lc before -lgcc.
17823       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17824 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17825       $rm conftest*
17826       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17827
17828       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17829   (eval $ac_compile) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); } 2>conftest.err; then
17833         soname=conftest
17834         lib=conftest
17835         libobjs=conftest.$ac_objext
17836         deplibs=
17837         wl=$lt_prog_compiler_wl_GCJ
17838         pic_flag=$lt_prog_compiler_pic_GCJ
17839         compiler_flags=-v
17840         linker_flags=-v
17841         verstring=
17842         output_objdir=.
17843         libname=conftest
17844         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17845         allow_undefined_flag_GCJ=
17846         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17847   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17848   ac_status=$?
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); }
17851         then
17852           archive_cmds_need_lc_GCJ=no
17853         else
17854           archive_cmds_need_lc_GCJ=yes
17855         fi
17856         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17857       else
17858         cat conftest.err 1>&5
17859       fi
17860       $rm conftest*
17861       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17862 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17863       ;;
17864     esac
17865   fi
17866   ;;
17867 esac
17868
17869 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17870 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17871 library_names_spec=
17872 libname_spec='lib$name'
17873 soname_spec=
17874 shrext_cmds=".so"
17875 postinstall_cmds=
17876 postuninstall_cmds=
17877 finish_cmds=
17878 finish_eval=
17879 shlibpath_var=
17880 shlibpath_overrides_runpath=unknown
17881 version_type=none
17882 dynamic_linker="$host_os ld.so"
17883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17884 if test "$GCC" = yes; then
17885   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17886   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17887     # if the path contains ";" then we assume it to be the separator
17888     # otherwise default to the standard path separator (i.e. ":") - it is
17889     # assumed that no part of a normal pathname contains ";" but that should
17890     # okay in the real world where ";" in dirpaths is itself problematic.
17891     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17892   else
17893     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17894   fi
17895 else
17896   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17897 fi
17898 need_lib_prefix=unknown
17899 hardcode_into_libs=no
17900
17901 # when you set need_version to no, make sure it does not cause -set_version
17902 # flags to be left without arguments
17903 need_version=unknown
17904
17905 case $host_os in
17906 aix3*)
17907   version_type=linux
17908   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17909   shlibpath_var=LIBPATH
17910
17911   # AIX 3 has no versioning support, so we append a major version to the name.
17912   soname_spec='${libname}${release}${shared_ext}$major'
17913   ;;
17914
17915 aix4* | aix5*)
17916   version_type=linux
17917   need_lib_prefix=no
17918   need_version=no
17919   hardcode_into_libs=yes
17920   if test "$host_cpu" = ia64; then
17921     # AIX 5 supports IA64
17922     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17923     shlibpath_var=LD_LIBRARY_PATH
17924   else
17925     # With GCC up to 2.95.x, collect2 would create an import file
17926     # for dependence libraries.  The import file would start with
17927     # the line `#! .'.  This would cause the generated library to
17928     # depend on `.', always an invalid library.  This was fixed in
17929     # development snapshots of GCC prior to 3.0.
17930     case $host_os in
17931       aix4 | aix4.[01] | aix4.[01].*)
17932       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17933            echo ' yes '
17934            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17935         :
17936       else
17937         can_build_shared=no
17938       fi
17939       ;;
17940     esac
17941     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17942     # soname into executable. Probably we can add versioning support to
17943     # collect2, so additional links can be useful in future.
17944     if test "$aix_use_runtimelinking" = yes; then
17945       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17946       # instead of lib<name>.a to let people know that these are not
17947       # typical AIX shared libraries.
17948       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949     else
17950       # We preserve .a as extension for shared libraries through AIX4.2
17951       # and later when we are not doing run time linking.
17952       library_names_spec='${libname}${release}.a $libname.a'
17953       soname_spec='${libname}${release}${shared_ext}$major'
17954     fi
17955     shlibpath_var=LIBPATH
17956   fi
17957   ;;
17958
17959 amigaos*)
17960   library_names_spec='$libname.ixlibrary $libname.a'
17961   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17962   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'
17963   ;;
17964
17965 beos*)
17966   library_names_spec='${libname}${shared_ext}'
17967   dynamic_linker="$host_os ld.so"
17968   shlibpath_var=LIBRARY_PATH
17969   ;;
17970
17971 bsdi[45]*)
17972   version_type=linux
17973   need_version=no
17974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975   soname_spec='${libname}${release}${shared_ext}$major'
17976   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17977   shlibpath_var=LD_LIBRARY_PATH
17978   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17979   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17980   # the default ld.so.conf also contains /usr/contrib/lib and
17981   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17982   # libtool to hard-code these into programs
17983   ;;
17984
17985 cygwin* | mingw* | pw32*)
17986   version_type=windows
17987   shrext_cmds=".dll"
17988   need_version=no
17989   need_lib_prefix=no
17990
17991   case $GCC,$host_os in
17992   yes,cygwin* | yes,mingw* | yes,pw32*)
17993     library_names_spec='$libname.dll.a'
17994     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17995     postinstall_cmds='base_file=`basename \${file}`~
17996       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17997       dldir=$destdir/`dirname \$dlpath`~
17998       test -d \$dldir || mkdir -p \$dldir~
17999       $install_prog $dir/$dlname \$dldir/$dlname~
18000       chmod a+x \$dldir/$dlname'
18001     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18002       dlpath=$dir/\$dldll~
18003        $rm \$dlpath'
18004     shlibpath_overrides_runpath=yes
18005
18006     case $host_os in
18007     cygwin*)
18008       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18009       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18010       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18011       ;;
18012     mingw*)
18013       # MinGW DLLs use traditional 'lib' prefix
18014       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18015       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18016       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18017         # It is most probably a Windows format PATH printed by
18018         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18019         # path with ; separators, and with drive letters. We can handle the
18020         # drive letters (cygwin fileutils understands them), so leave them,
18021         # especially as we might pass files found there to a mingw objdump,
18022         # which wouldn't understand a cygwinified path. Ahh.
18023         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18024       else
18025         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18026       fi
18027       ;;
18028     pw32*)
18029       # pw32 DLLs use 'pw' prefix rather than 'lib'
18030       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18031       ;;
18032     esac
18033     ;;
18034
18035   *)
18036     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18037     ;;
18038   esac
18039   dynamic_linker='Win32 ld.exe'
18040   # FIXME: first we should search . and the directory the executable is in
18041   shlibpath_var=PATH
18042   ;;
18043
18044 darwin* | rhapsody*)
18045   dynamic_linker="$host_os dyld"
18046   version_type=darwin
18047   need_lib_prefix=no
18048   need_version=no
18049   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18050   soname_spec='${libname}${release}${major}$shared_ext'
18051   shlibpath_overrides_runpath=yes
18052   shlibpath_var=DYLD_LIBRARY_PATH
18053   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18054   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18055   if test "$GCC" = yes; then
18056     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"`
18057   else
18058     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18059   fi
18060   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18061   ;;
18062
18063 dgux*)
18064   version_type=linux
18065   need_lib_prefix=no
18066   need_version=no
18067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18068   soname_spec='${libname}${release}${shared_ext}$major'
18069   shlibpath_var=LD_LIBRARY_PATH
18070   ;;
18071
18072 freebsd1*)
18073   dynamic_linker=no
18074   ;;
18075
18076 kfreebsd*-gnu)
18077   version_type=linux
18078   need_lib_prefix=no
18079   need_version=no
18080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18081   soname_spec='${libname}${release}${shared_ext}$major'
18082   shlibpath_var=LD_LIBRARY_PATH
18083   shlibpath_overrides_runpath=no
18084   hardcode_into_libs=yes
18085   dynamic_linker='GNU ld.so'
18086   ;;
18087
18088 freebsd* | dragonfly*)
18089   # DragonFly does not have aout.  When/if they implement a new
18090   # versioning mechanism, adjust this.
18091   if test -x /usr/bin/objformat; then
18092     objformat=`/usr/bin/objformat`
18093   else
18094     case $host_os in
18095     freebsd[123]*) objformat=aout ;;
18096     *) objformat=elf ;;
18097     esac
18098   fi
18099   version_type=freebsd-$objformat
18100   case $version_type in
18101     freebsd-elf*)
18102       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18103       need_version=no
18104       need_lib_prefix=no
18105       ;;
18106     freebsd-*)
18107       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18108       need_version=yes
18109       ;;
18110   esac
18111   shlibpath_var=LD_LIBRARY_PATH
18112   case $host_os in
18113   freebsd2*)
18114     shlibpath_overrides_runpath=yes
18115     ;;
18116   freebsd3.[01]* | freebsdelf3.[01]*)
18117     shlibpath_overrides_runpath=yes
18118     hardcode_into_libs=yes
18119     ;;
18120   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18121   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18122     shlibpath_overrides_runpath=no
18123     hardcode_into_libs=yes
18124     ;;
18125   freebsd*) # from 4.6 on
18126     shlibpath_overrides_runpath=yes
18127     hardcode_into_libs=yes
18128     ;;
18129   esac
18130   ;;
18131
18132 gnu*)
18133   version_type=linux
18134   need_lib_prefix=no
18135   need_version=no
18136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18137   soname_spec='${libname}${release}${shared_ext}$major'
18138   shlibpath_var=LD_LIBRARY_PATH
18139   hardcode_into_libs=yes
18140   ;;
18141
18142 hpux9* | hpux10* | hpux11*)
18143   # Give a soname corresponding to the major version so that dld.sl refuses to
18144   # link against other versions.
18145   version_type=sunos
18146   need_lib_prefix=no
18147   need_version=no
18148   case $host_cpu in
18149   ia64*)
18150     shrext_cmds='.so'
18151     hardcode_into_libs=yes
18152     dynamic_linker="$host_os dld.so"
18153     shlibpath_var=LD_LIBRARY_PATH
18154     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156     soname_spec='${libname}${release}${shared_ext}$major'
18157     if test "X$HPUX_IA64_MODE" = X32; then
18158       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18159     else
18160       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18161     fi
18162     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18163     ;;
18164    hppa*64*)
18165      shrext_cmds='.sl'
18166      hardcode_into_libs=yes
18167      dynamic_linker="$host_os dld.sl"
18168      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18169      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18170      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171      soname_spec='${libname}${release}${shared_ext}$major'
18172      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18173      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18174      ;;
18175    *)
18176     shrext_cmds='.sl'
18177     dynamic_linker="$host_os dld.sl"
18178     shlibpath_var=SHLIB_PATH
18179     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18181     soname_spec='${libname}${release}${shared_ext}$major'
18182     ;;
18183   esac
18184   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18185   postinstall_cmds='chmod 555 $lib'
18186   ;;
18187
18188 interix3*)
18189   version_type=linux
18190   need_lib_prefix=no
18191   need_version=no
18192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18193   soname_spec='${libname}${release}${shared_ext}$major'
18194   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18195   shlibpath_var=LD_LIBRARY_PATH
18196   shlibpath_overrides_runpath=no
18197   hardcode_into_libs=yes
18198   ;;
18199
18200 irix5* | irix6* | nonstopux*)
18201   case $host_os in
18202     nonstopux*) version_type=nonstopux ;;
18203     *)
18204         if test "$lt_cv_prog_gnu_ld" = yes; then
18205                 version_type=linux
18206         else
18207                 version_type=irix
18208         fi ;;
18209   esac
18210   need_lib_prefix=no
18211   need_version=no
18212   soname_spec='${libname}${release}${shared_ext}$major'
18213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18214   case $host_os in
18215   irix5* | nonstopux*)
18216     libsuff= shlibsuff=
18217     ;;
18218   *)
18219     case $LD in # libtool.m4 will add one of these switches to LD
18220     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18221       libsuff= shlibsuff= libmagic=32-bit;;
18222     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18223       libsuff=32 shlibsuff=N32 libmagic=N32;;
18224     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18225       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18226     *) libsuff= shlibsuff= libmagic=never-match;;
18227     esac
18228     ;;
18229   esac
18230   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18231   shlibpath_overrides_runpath=no
18232   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18233   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18234   hardcode_into_libs=yes
18235   ;;
18236
18237 # No shared lib support for Linux oldld, aout, or coff.
18238 linux*oldld* | linux*aout* | linux*coff*)
18239   dynamic_linker=no
18240   ;;
18241
18242 # This must be Linux ELF.
18243 linux*)
18244   version_type=linux
18245   need_lib_prefix=no
18246   need_version=no
18247   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18248   soname_spec='${libname}${release}${shared_ext}$major'
18249   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18250   shlibpath_var=LD_LIBRARY_PATH
18251   shlibpath_overrides_runpath=no
18252   # This implies no fast_install, which is unacceptable.
18253   # Some rework will be needed to allow for fast_install
18254   # before this can be enabled.
18255   hardcode_into_libs=yes
18256
18257   # Append ld.so.conf contents to the search path
18258   if test -f /etc/ld.so.conf; then
18259     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' ' '`
18260     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18261   fi
18262
18263   # We used to test for /lib/ld.so.1 and disable shared libraries on
18264   # powerpc, because MkLinux only supported shared libraries with the
18265   # GNU dynamic linker.  Since this was broken with cross compilers,
18266   # most powerpc-linux boxes support dynamic linking these days and
18267   # people can always --disable-shared, the test was removed, and we
18268   # assume the GNU/Linux dynamic linker is in use.
18269   dynamic_linker='GNU/Linux ld.so'
18270   ;;
18271
18272 knetbsd*-gnu)
18273   version_type=linux
18274   need_lib_prefix=no
18275   need_version=no
18276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18277   soname_spec='${libname}${release}${shared_ext}$major'
18278   shlibpath_var=LD_LIBRARY_PATH
18279   shlibpath_overrides_runpath=no
18280   hardcode_into_libs=yes
18281   dynamic_linker='GNU ld.so'
18282   ;;
18283
18284 netbsd*)
18285   version_type=sunos
18286   need_lib_prefix=no
18287   need_version=no
18288   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18290     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18291     dynamic_linker='NetBSD (a.out) ld.so'
18292   else
18293     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18294     soname_spec='${libname}${release}${shared_ext}$major'
18295     dynamic_linker='NetBSD ld.elf_so'
18296   fi
18297   shlibpath_var=LD_LIBRARY_PATH
18298   shlibpath_overrides_runpath=yes
18299   hardcode_into_libs=yes
18300   ;;
18301
18302 newsos6)
18303   version_type=linux
18304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18305   shlibpath_var=LD_LIBRARY_PATH
18306   shlibpath_overrides_runpath=yes
18307   ;;
18308
18309 nto-qnx*)
18310   version_type=linux
18311   need_lib_prefix=no
18312   need_version=no
18313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314   soname_spec='${libname}${release}${shared_ext}$major'
18315   shlibpath_var=LD_LIBRARY_PATH
18316   shlibpath_overrides_runpath=yes
18317   ;;
18318
18319 openbsd*)
18320   version_type=sunos
18321   sys_lib_dlsearch_path_spec="/usr/lib"
18322   need_lib_prefix=no
18323   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18324   case $host_os in
18325     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18326     *)                         need_version=no  ;;
18327   esac
18328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18329   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18330   shlibpath_var=LD_LIBRARY_PATH
18331   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18332     case $host_os in
18333       openbsd2.[89] | openbsd2.[89].*)
18334         shlibpath_overrides_runpath=no
18335         ;;
18336       *)
18337         shlibpath_overrides_runpath=yes
18338         ;;
18339       esac
18340   else
18341     shlibpath_overrides_runpath=yes
18342   fi
18343   ;;
18344
18345 os2*)
18346   libname_spec='$name'
18347   shrext_cmds=".dll"
18348   need_lib_prefix=no
18349   library_names_spec='$libname${shared_ext} $libname.a'
18350   dynamic_linker='OS/2 ld.exe'
18351   shlibpath_var=LIBPATH
18352   ;;
18353
18354 osf3* | osf4* | osf5*)
18355   version_type=osf
18356   need_lib_prefix=no
18357   need_version=no
18358   soname_spec='${libname}${release}${shared_ext}$major'
18359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18360   shlibpath_var=LD_LIBRARY_PATH
18361   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18362   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18363   ;;
18364
18365 solaris*)
18366   version_type=linux
18367   need_lib_prefix=no
18368   need_version=no
18369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370   soname_spec='${libname}${release}${shared_ext}$major'
18371   shlibpath_var=LD_LIBRARY_PATH
18372   shlibpath_overrides_runpath=yes
18373   hardcode_into_libs=yes
18374   # ldd complains unless libraries are executable
18375   postinstall_cmds='chmod +x $lib'
18376   ;;
18377
18378 sunos4*)
18379   version_type=sunos
18380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18381   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18382   shlibpath_var=LD_LIBRARY_PATH
18383   shlibpath_overrides_runpath=yes
18384   if test "$with_gnu_ld" = yes; then
18385     need_lib_prefix=no
18386   fi
18387   need_version=yes
18388   ;;
18389
18390 sysv4 | sysv4.3*)
18391   version_type=linux
18392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18393   soname_spec='${libname}${release}${shared_ext}$major'
18394   shlibpath_var=LD_LIBRARY_PATH
18395   case $host_vendor in
18396     sni)
18397       shlibpath_overrides_runpath=no
18398       need_lib_prefix=no
18399       export_dynamic_flag_spec='${wl}-Blargedynsym'
18400       runpath_var=LD_RUN_PATH
18401       ;;
18402     siemens)
18403       need_lib_prefix=no
18404       ;;
18405     motorola)
18406       need_lib_prefix=no
18407       need_version=no
18408       shlibpath_overrides_runpath=no
18409       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18410       ;;
18411   esac
18412   ;;
18413
18414 sysv4*MP*)
18415   if test -d /usr/nec ;then
18416     version_type=linux
18417     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18418     soname_spec='$libname${shared_ext}.$major'
18419     shlibpath_var=LD_LIBRARY_PATH
18420   fi
18421   ;;
18422
18423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18424   version_type=freebsd-elf
18425   need_lib_prefix=no
18426   need_version=no
18427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18428   soname_spec='${libname}${release}${shared_ext}$major'
18429   shlibpath_var=LD_LIBRARY_PATH
18430   hardcode_into_libs=yes
18431   if test "$with_gnu_ld" = yes; then
18432     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18433     shlibpath_overrides_runpath=no
18434   else
18435     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18436     shlibpath_overrides_runpath=yes
18437     case $host_os in
18438       sco3.2v5*)
18439         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18440         ;;
18441     esac
18442   fi
18443   sys_lib_dlsearch_path_spec='/usr/lib'
18444   ;;
18445
18446 uts4*)
18447   version_type=linux
18448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449   soname_spec='${libname}${release}${shared_ext}$major'
18450   shlibpath_var=LD_LIBRARY_PATH
18451   ;;
18452
18453 *)
18454   dynamic_linker=no
18455   ;;
18456 esac
18457 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18458 echo "${ECHO_T}$dynamic_linker" >&6; }
18459 test "$dynamic_linker" = no && can_build_shared=no
18460
18461 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18462 if test "$GCC" = yes; then
18463   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18464 fi
18465
18466 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18467 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18468 hardcode_action_GCJ=
18469 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18470    test -n "$runpath_var_GCJ" || \
18471    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18472
18473   # We can hardcode non-existant directories.
18474   if test "$hardcode_direct_GCJ" != no &&
18475      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18476      # have to relink, otherwise we might link with an installed library
18477      # when we should be linking with a yet-to-be-installed one
18478      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18479      test "$hardcode_minus_L_GCJ" != no; then
18480     # Linking always hardcodes the temporary library directory.
18481     hardcode_action_GCJ=relink
18482   else
18483     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18484     hardcode_action_GCJ=immediate
18485   fi
18486 else
18487   # We cannot hardcode anything, or else we can only hardcode existing
18488   # directories.
18489   hardcode_action_GCJ=unsupported
18490 fi
18491 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18492 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18493
18494 if test "$hardcode_action_GCJ" = relink; then
18495   # Fast installation is not supported
18496   enable_fast_install=no
18497 elif test "$shlibpath_overrides_runpath" = yes ||
18498      test "$enable_shared" = no; then
18499   # Fast installation is not necessary
18500   enable_fast_install=needless
18501 fi
18502
18503
18504 # The else clause should only fire when bootstrapping the
18505 # libtool distribution, otherwise you forgot to ship ltmain.sh
18506 # with your package, and you will get complaints that there are
18507 # no rules to generate ltmain.sh.
18508 if test -f "$ltmain"; then
18509   # See if we are running on zsh, and set the options which allow our commands through
18510   # without removal of \ escapes.
18511   if test -n "${ZSH_VERSION+set}" ; then
18512     setopt NO_GLOB_SUBST
18513   fi
18514   # Now quote all the things that may contain metacharacters while being
18515   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18516   # variables and quote the copies for generation of the libtool script.
18517   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18518     SED SHELL STRIP \
18519     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18520     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18521     deplibs_check_method reload_flag reload_cmds need_locks \
18522     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18523     lt_cv_sys_global_symbol_to_c_name_address \
18524     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18525     old_postinstall_cmds old_postuninstall_cmds \
18526     compiler_GCJ \
18527     CC_GCJ \
18528     LD_GCJ \
18529     lt_prog_compiler_wl_GCJ \
18530     lt_prog_compiler_pic_GCJ \
18531     lt_prog_compiler_static_GCJ \
18532     lt_prog_compiler_no_builtin_flag_GCJ \
18533     export_dynamic_flag_spec_GCJ \
18534     thread_safe_flag_spec_GCJ \
18535     whole_archive_flag_spec_GCJ \
18536     enable_shared_with_static_runtimes_GCJ \
18537     old_archive_cmds_GCJ \
18538     old_archive_from_new_cmds_GCJ \
18539     predep_objects_GCJ \
18540     postdep_objects_GCJ \
18541     predeps_GCJ \
18542     postdeps_GCJ \
18543     compiler_lib_search_path_GCJ \
18544     archive_cmds_GCJ \
18545     archive_expsym_cmds_GCJ \
18546     postinstall_cmds_GCJ \
18547     postuninstall_cmds_GCJ \
18548     old_archive_from_expsyms_cmds_GCJ \
18549     allow_undefined_flag_GCJ \
18550     no_undefined_flag_GCJ \
18551     export_symbols_cmds_GCJ \
18552     hardcode_libdir_flag_spec_GCJ \
18553     hardcode_libdir_flag_spec_ld_GCJ \
18554     hardcode_libdir_separator_GCJ \
18555     hardcode_automatic_GCJ \
18556     module_cmds_GCJ \
18557     module_expsym_cmds_GCJ \
18558     lt_cv_prog_compiler_c_o_GCJ \
18559     exclude_expsyms_GCJ \
18560     include_expsyms_GCJ; do
18561
18562     case $var in
18563     old_archive_cmds_GCJ | \
18564     old_archive_from_new_cmds_GCJ | \
18565     archive_cmds_GCJ | \
18566     archive_expsym_cmds_GCJ | \
18567     module_cmds_GCJ | \
18568     module_expsym_cmds_GCJ | \
18569     old_archive_from_expsyms_cmds_GCJ | \
18570     export_symbols_cmds_GCJ | \
18571     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18572     postinstall_cmds | postuninstall_cmds | \
18573     old_postinstall_cmds | old_postuninstall_cmds | \
18574     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18575       # Double-quote double-evaled strings.
18576       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18577       ;;
18578     *)
18579       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18580       ;;
18581     esac
18582   done
18583
18584   case $lt_echo in
18585   *'\$0 --fallback-echo"')
18586     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18587     ;;
18588   esac
18589
18590 cfgfile="$ofile"
18591
18592   cat <<__EOF__ >> "$cfgfile"
18593 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18594
18595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18596
18597 # Shell to use when invoking shell scripts.
18598 SHELL=$lt_SHELL
18599
18600 # Whether or not to build shared libraries.
18601 build_libtool_libs=$enable_shared
18602
18603 # Whether or not to build static libraries.
18604 build_old_libs=$enable_static
18605
18606 # Whether or not to add -lc for building shared libraries.
18607 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18608
18609 # Whether or not to disallow shared libs when runtime libs are static
18610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18611
18612 # Whether or not to optimize for fast installation.
18613 fast_install=$enable_fast_install
18614
18615 # The host system.
18616 host_alias=$host_alias
18617 host=$host
18618 host_os=$host_os
18619
18620 # The build system.
18621 build_alias=$build_alias
18622 build=$build
18623 build_os=$build_os
18624
18625 # An echo program that does not interpret backslashes.
18626 echo=$lt_echo
18627
18628 # The archiver.
18629 AR=$lt_AR
18630 AR_FLAGS=$lt_AR_FLAGS
18631
18632 # A C compiler.
18633 LTCC=$lt_LTCC
18634
18635 # LTCC compiler flags.
18636 LTCFLAGS=$lt_LTCFLAGS
18637
18638 # A language-specific compiler.
18639 CC=$lt_compiler_GCJ
18640
18641 # Is the compiler the GNU C compiler?
18642 with_gcc=$GCC_GCJ
18643
18644 # An ERE matcher.
18645 EGREP=$lt_EGREP
18646
18647 # The linker used to build libraries.
18648 LD=$lt_LD_GCJ
18649
18650 # Whether we need hard or soft links.
18651 LN_S=$lt_LN_S
18652
18653 # A BSD-compatible nm program.
18654 NM=$lt_NM
18655
18656 # A symbol stripping program
18657 STRIP=$lt_STRIP
18658
18659 # Used to examine libraries when file_magic_cmd begins "file"
18660 MAGIC_CMD=$MAGIC_CMD
18661
18662 # Used on cygwin: DLL creation program.
18663 DLLTOOL="$DLLTOOL"
18664
18665 # Used on cygwin: object dumper.
18666 OBJDUMP="$OBJDUMP"
18667
18668 # Used on cygwin: assembler.
18669 AS="$AS"
18670
18671 # The name of the directory that contains temporary libtool files.
18672 objdir=$objdir
18673
18674 # How to create reloadable object files.
18675 reload_flag=$lt_reload_flag
18676 reload_cmds=$lt_reload_cmds
18677
18678 # How to pass a linker flag through the compiler.
18679 wl=$lt_lt_prog_compiler_wl_GCJ
18680
18681 # Object file suffix (normally "o").
18682 objext="$ac_objext"
18683
18684 # Old archive suffix (normally "a").
18685 libext="$libext"
18686
18687 # Shared library suffix (normally ".so").
18688 shrext_cmds='$shrext_cmds'
18689
18690 # Executable file suffix (normally "").
18691 exeext="$exeext"
18692
18693 # Additional compiler flags for building library objects.
18694 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18695 pic_mode=$pic_mode
18696
18697 # What is the maximum length of a command?
18698 max_cmd_len=$lt_cv_sys_max_cmd_len
18699
18700 # Does compiler simultaneously support -c and -o options?
18701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18702
18703 # Must we lock files when doing compilation?
18704 need_locks=$lt_need_locks
18705
18706 # Do we need the lib prefix for modules?
18707 need_lib_prefix=$need_lib_prefix
18708
18709 # Do we need a version for libraries?
18710 need_version=$need_version
18711
18712 # Whether dlopen is supported.
18713 dlopen_support=$enable_dlopen
18714
18715 # Whether dlopen of programs is supported.
18716 dlopen_self=$enable_dlopen_self
18717
18718 # Whether dlopen of statically linked programs is supported.
18719 dlopen_self_static=$enable_dlopen_self_static
18720
18721 # Compiler flag to prevent dynamic linking.
18722 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18723
18724 # Compiler flag to turn off builtin functions.
18725 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18726
18727 # Compiler flag to allow reflexive dlopens.
18728 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18729
18730 # Compiler flag to generate shared objects directly from archives.
18731 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18732
18733 # Compiler flag to generate thread-safe objects.
18734 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18735
18736 # Library versioning type.
18737 version_type=$version_type
18738
18739 # Format of library name prefix.
18740 libname_spec=$lt_libname_spec
18741
18742 # List of archive names.  First name is the real one, the rest are links.
18743 # The last name is the one that the linker finds with -lNAME.
18744 library_names_spec=$lt_library_names_spec
18745
18746 # The coded name of the library, if different from the real name.
18747 soname_spec=$lt_soname_spec
18748
18749 # Commands used to build and install an old-style archive.
18750 RANLIB=$lt_RANLIB
18751 old_archive_cmds=$lt_old_archive_cmds_GCJ
18752 old_postinstall_cmds=$lt_old_postinstall_cmds
18753 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18754
18755 # Create an old-style archive from a shared archive.
18756 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18757
18758 # Create a temporary old-style archive to link instead of a shared archive.
18759 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18760
18761 # Commands used to build and install a shared archive.
18762 archive_cmds=$lt_archive_cmds_GCJ
18763 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18764 postinstall_cmds=$lt_postinstall_cmds
18765 postuninstall_cmds=$lt_postuninstall_cmds
18766
18767 # Commands used to build a loadable module (assumed same as above if empty)
18768 module_cmds=$lt_module_cmds_GCJ
18769 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18770
18771 # Commands to strip libraries.
18772 old_striplib=$lt_old_striplib
18773 striplib=$lt_striplib
18774
18775 # Dependencies to place before the objects being linked to create a
18776 # shared library.
18777 predep_objects=$lt_predep_objects_GCJ
18778
18779 # Dependencies to place after the objects being linked to create a
18780 # shared library.
18781 postdep_objects=$lt_postdep_objects_GCJ
18782
18783 # Dependencies to place before the objects being linked to create a
18784 # shared library.
18785 predeps=$lt_predeps_GCJ
18786
18787 # Dependencies to place after the objects being linked to create a
18788 # shared library.
18789 postdeps=$lt_postdeps_GCJ
18790
18791 # The library search path used internally by the compiler when linking
18792 # a shared library.
18793 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18794
18795 # Method to check whether dependent libraries are shared objects.
18796 deplibs_check_method=$lt_deplibs_check_method
18797
18798 # Command to use when deplibs_check_method == file_magic.
18799 file_magic_cmd=$lt_file_magic_cmd
18800
18801 # Flag that allows shared libraries with undefined symbols to be built.
18802 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18803
18804 # Flag that forces no undefined symbols.
18805 no_undefined_flag=$lt_no_undefined_flag_GCJ
18806
18807 # Commands used to finish a libtool library installation in a directory.
18808 finish_cmds=$lt_finish_cmds
18809
18810 # Same as above, but a single script fragment to be evaled but not shown.
18811 finish_eval=$lt_finish_eval
18812
18813 # Take the output of nm and produce a listing of raw symbols and C names.
18814 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18815
18816 # Transform the output of nm in a proper C declaration
18817 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18818
18819 # Transform the output of nm in a C name address pair
18820 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18821
18822 # This is the shared library runtime path variable.
18823 runpath_var=$runpath_var
18824
18825 # This is the shared library path variable.
18826 shlibpath_var=$shlibpath_var
18827
18828 # Is shlibpath searched before the hard-coded library search path?
18829 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18830
18831 # How to hardcode a shared library path into an executable.
18832 hardcode_action=$hardcode_action_GCJ
18833
18834 # Whether we should hardcode library paths into libraries.
18835 hardcode_into_libs=$hardcode_into_libs
18836
18837 # Flag to hardcode \$libdir into a binary during linking.
18838 # This must work even if \$libdir does not exist.
18839 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18840
18841 # If ld is used when linking, flag to hardcode \$libdir into
18842 # a binary during linking. This must work even if \$libdir does
18843 # not exist.
18844 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18845
18846 # Whether we need a single -rpath flag with a separated argument.
18847 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18848
18849 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18850 # resulting binary.
18851 hardcode_direct=$hardcode_direct_GCJ
18852
18853 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18854 # resulting binary.
18855 hardcode_minus_L=$hardcode_minus_L_GCJ
18856
18857 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18858 # the resulting binary.
18859 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18860
18861 # Set to yes if building a shared library automatically hardcodes DIR into the library
18862 # and all subsequent libraries and executables linked against it.
18863 hardcode_automatic=$hardcode_automatic_GCJ
18864
18865 # Variables whose values should be saved in libtool wrapper scripts and
18866 # restored at relink time.
18867 variables_saved_for_relink="$variables_saved_for_relink"
18868
18869 # Whether libtool must link a program against all its dependency libraries.
18870 link_all_deplibs=$link_all_deplibs_GCJ
18871
18872 # Compile-time system search path for libraries
18873 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18874
18875 # Run-time system search path for libraries
18876 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18877
18878 # Fix the shell variable \$srcfile for the compiler.
18879 fix_srcfile_path="$fix_srcfile_path_GCJ"
18880
18881 # Set to yes if exported symbols are required.
18882 always_export_symbols=$always_export_symbols_GCJ
18883
18884 # The commands to list exported symbols.
18885 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18886
18887 # The commands to extract the exported symbol list from a shared archive.
18888 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18889
18890 # Symbols that should not be listed in the preloaded symbols.
18891 exclude_expsyms=$lt_exclude_expsyms_GCJ
18892
18893 # Symbols that must always be exported.
18894 include_expsyms=$lt_include_expsyms_GCJ
18895
18896 # ### END LIBTOOL TAG CONFIG: $tagname
18897
18898 __EOF__
18899
18900
18901 else
18902   # If there is no Makefile yet, we rely on a make rule to execute
18903   # `config.status --recheck' to rerun these tests and create the
18904   # libtool script then.
18905   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18906   if test -f "$ltmain_in"; then
18907     test -f Makefile && make "$ltmain"
18908   fi
18909 fi
18910
18911
18912 ac_ext=c
18913 ac_cpp='$CPP $CPPFLAGS'
18914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18917
18918 CC="$lt_save_CC"
18919
18920         else
18921           tagname=""
18922         fi
18923         ;;
18924
18925       RC)
18926
18927
18928 # Source file extension for RC test sources.
18929 ac_ext=rc
18930
18931 # Object file extension for compiled RC test sources.
18932 objext=o
18933 objext_RC=$objext
18934
18935 # Code to be used in simple compile tests
18936 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18937
18938 # Code to be used in simple link tests
18939 lt_simple_link_test_code="$lt_simple_compile_test_code"
18940
18941 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18942
18943 # If no C compiler was specified, use CC.
18944 LTCC=${LTCC-"$CC"}
18945
18946 # If no C compiler flags were specified, use CFLAGS.
18947 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18948
18949 # Allow CC to be a program name with arguments.
18950 compiler=$CC
18951
18952
18953 # save warnings/boilerplate of simple test code
18954 ac_outfile=conftest.$ac_objext
18955 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18957 _lt_compiler_boilerplate=`cat conftest.err`
18958 $rm conftest*
18959
18960 ac_outfile=conftest.$ac_objext
18961 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18963 _lt_linker_boilerplate=`cat conftest.err`
18964 $rm conftest*
18965
18966
18967 # Allow CC to be a program name with arguments.
18968 lt_save_CC="$CC"
18969 CC=${RC-"windres"}
18970 compiler=$CC
18971 compiler_RC=$CC
18972 for cc_temp in $compiler""; do
18973   case $cc_temp in
18974     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18975     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18976     \-*) ;;
18977     *) break;;
18978   esac
18979 done
18980 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18981
18982 lt_cv_prog_compiler_c_o_RC=yes
18983
18984 # The else clause should only fire when bootstrapping the
18985 # libtool distribution, otherwise you forgot to ship ltmain.sh
18986 # with your package, and you will get complaints that there are
18987 # no rules to generate ltmain.sh.
18988 if test -f "$ltmain"; then
18989   # See if we are running on zsh, and set the options which allow our commands through
18990   # without removal of \ escapes.
18991   if test -n "${ZSH_VERSION+set}" ; then
18992     setopt NO_GLOB_SUBST
18993   fi
18994   # Now quote all the things that may contain metacharacters while being
18995   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18996   # variables and quote the copies for generation of the libtool script.
18997   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18998     SED SHELL STRIP \
18999     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19000     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19001     deplibs_check_method reload_flag reload_cmds need_locks \
19002     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19003     lt_cv_sys_global_symbol_to_c_name_address \
19004     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19005     old_postinstall_cmds old_postuninstall_cmds \
19006     compiler_RC \
19007     CC_RC \
19008     LD_RC \
19009     lt_prog_compiler_wl_RC \
19010     lt_prog_compiler_pic_RC \
19011     lt_prog_compiler_static_RC \
19012     lt_prog_compiler_no_builtin_flag_RC \
19013     export_dynamic_flag_spec_RC \
19014     thread_safe_flag_spec_RC \
19015     whole_archive_flag_spec_RC \
19016     enable_shared_with_static_runtimes_RC \
19017     old_archive_cmds_RC \
19018     old_archive_from_new_cmds_RC \
19019     predep_objects_RC \
19020     postdep_objects_RC \
19021     predeps_RC \
19022     postdeps_RC \
19023     compiler_lib_search_path_RC \
19024     archive_cmds_RC \
19025     archive_expsym_cmds_RC \
19026     postinstall_cmds_RC \
19027     postuninstall_cmds_RC \
19028     old_archive_from_expsyms_cmds_RC \
19029     allow_undefined_flag_RC \
19030     no_undefined_flag_RC \
19031     export_symbols_cmds_RC \
19032     hardcode_libdir_flag_spec_RC \
19033     hardcode_libdir_flag_spec_ld_RC \
19034     hardcode_libdir_separator_RC \
19035     hardcode_automatic_RC \
19036     module_cmds_RC \
19037     module_expsym_cmds_RC \
19038     lt_cv_prog_compiler_c_o_RC \
19039     exclude_expsyms_RC \
19040     include_expsyms_RC; do
19041
19042     case $var in
19043     old_archive_cmds_RC | \
19044     old_archive_from_new_cmds_RC | \
19045     archive_cmds_RC | \
19046     archive_expsym_cmds_RC | \
19047     module_cmds_RC | \
19048     module_expsym_cmds_RC | \
19049     old_archive_from_expsyms_cmds_RC | \
19050     export_symbols_cmds_RC | \
19051     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19052     postinstall_cmds | postuninstall_cmds | \
19053     old_postinstall_cmds | old_postuninstall_cmds | \
19054     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19055       # Double-quote double-evaled strings.
19056       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19057       ;;
19058     *)
19059       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19060       ;;
19061     esac
19062   done
19063
19064   case $lt_echo in
19065   *'\$0 --fallback-echo"')
19066     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19067     ;;
19068   esac
19069
19070 cfgfile="$ofile"
19071
19072   cat <<__EOF__ >> "$cfgfile"
19073 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19074
19075 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19076
19077 # Shell to use when invoking shell scripts.
19078 SHELL=$lt_SHELL
19079
19080 # Whether or not to build shared libraries.
19081 build_libtool_libs=$enable_shared
19082
19083 # Whether or not to build static libraries.
19084 build_old_libs=$enable_static
19085
19086 # Whether or not to add -lc for building shared libraries.
19087 build_libtool_need_lc=$archive_cmds_need_lc_RC
19088
19089 # Whether or not to disallow shared libs when runtime libs are static
19090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19091
19092 # Whether or not to optimize for fast installation.
19093 fast_install=$enable_fast_install
19094
19095 # The host system.
19096 host_alias=$host_alias
19097 host=$host
19098 host_os=$host_os
19099
19100 # The build system.
19101 build_alias=$build_alias
19102 build=$build
19103 build_os=$build_os
19104
19105 # An echo program that does not interpret backslashes.
19106 echo=$lt_echo
19107
19108 # The archiver.
19109 AR=$lt_AR
19110 AR_FLAGS=$lt_AR_FLAGS
19111
19112 # A C compiler.
19113 LTCC=$lt_LTCC
19114
19115 # LTCC compiler flags.
19116 LTCFLAGS=$lt_LTCFLAGS
19117
19118 # A language-specific compiler.
19119 CC=$lt_compiler_RC
19120
19121 # Is the compiler the GNU C compiler?
19122 with_gcc=$GCC_RC
19123
19124 # An ERE matcher.
19125 EGREP=$lt_EGREP
19126
19127 # The linker used to build libraries.
19128 LD=$lt_LD_RC
19129
19130 # Whether we need hard or soft links.
19131 LN_S=$lt_LN_S
19132
19133 # A BSD-compatible nm program.
19134 NM=$lt_NM
19135
19136 # A symbol stripping program
19137 STRIP=$lt_STRIP
19138
19139 # Used to examine libraries when file_magic_cmd begins "file"
19140 MAGIC_CMD=$MAGIC_CMD
19141
19142 # Used on cygwin: DLL creation program.
19143 DLLTOOL="$DLLTOOL"
19144
19145 # Used on cygwin: object dumper.
19146 OBJDUMP="$OBJDUMP"
19147
19148 # Used on cygwin: assembler.
19149 AS="$AS"
19150
19151 # The name of the directory that contains temporary libtool files.
19152 objdir=$objdir
19153
19154 # How to create reloadable object files.
19155 reload_flag=$lt_reload_flag
19156 reload_cmds=$lt_reload_cmds
19157
19158 # How to pass a linker flag through the compiler.
19159 wl=$lt_lt_prog_compiler_wl_RC
19160
19161 # Object file suffix (normally "o").
19162 objext="$ac_objext"
19163
19164 # Old archive suffix (normally "a").
19165 libext="$libext"
19166
19167 # Shared library suffix (normally ".so").
19168 shrext_cmds='$shrext_cmds'
19169
19170 # Executable file suffix (normally "").
19171 exeext="$exeext"
19172
19173 # Additional compiler flags for building library objects.
19174 pic_flag=$lt_lt_prog_compiler_pic_RC
19175 pic_mode=$pic_mode
19176
19177 # What is the maximum length of a command?
19178 max_cmd_len=$lt_cv_sys_max_cmd_len
19179
19180 # Does compiler simultaneously support -c and -o options?
19181 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19182
19183 # Must we lock files when doing compilation?
19184 need_locks=$lt_need_locks
19185
19186 # Do we need the lib prefix for modules?
19187 need_lib_prefix=$need_lib_prefix
19188
19189 # Do we need a version for libraries?
19190 need_version=$need_version
19191
19192 # Whether dlopen is supported.
19193 dlopen_support=$enable_dlopen
19194
19195 # Whether dlopen of programs is supported.
19196 dlopen_self=$enable_dlopen_self
19197
19198 # Whether dlopen of statically linked programs is supported.
19199 dlopen_self_static=$enable_dlopen_self_static
19200
19201 # Compiler flag to prevent dynamic linking.
19202 link_static_flag=$lt_lt_prog_compiler_static_RC
19203
19204 # Compiler flag to turn off builtin functions.
19205 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19206
19207 # Compiler flag to allow reflexive dlopens.
19208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19209
19210 # Compiler flag to generate shared objects directly from archives.
19211 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19212
19213 # Compiler flag to generate thread-safe objects.
19214 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19215
19216 # Library versioning type.
19217 version_type=$version_type
19218
19219 # Format of library name prefix.
19220 libname_spec=$lt_libname_spec
19221
19222 # List of archive names.  First name is the real one, the rest are links.
19223 # The last name is the one that the linker finds with -lNAME.
19224 library_names_spec=$lt_library_names_spec
19225
19226 # The coded name of the library, if different from the real name.
19227 soname_spec=$lt_soname_spec
19228
19229 # Commands used to build and install an old-style archive.
19230 RANLIB=$lt_RANLIB
19231 old_archive_cmds=$lt_old_archive_cmds_RC
19232 old_postinstall_cmds=$lt_old_postinstall_cmds
19233 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19234
19235 # Create an old-style archive from a shared archive.
19236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19237
19238 # Create a temporary old-style archive to link instead of a shared archive.
19239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19240
19241 # Commands used to build and install a shared archive.
19242 archive_cmds=$lt_archive_cmds_RC
19243 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19244 postinstall_cmds=$lt_postinstall_cmds
19245 postuninstall_cmds=$lt_postuninstall_cmds
19246
19247 # Commands used to build a loadable module (assumed same as above if empty)
19248 module_cmds=$lt_module_cmds_RC
19249 module_expsym_cmds=$lt_module_expsym_cmds_RC
19250
19251 # Commands to strip libraries.
19252 old_striplib=$lt_old_striplib
19253 striplib=$lt_striplib
19254
19255 # Dependencies to place before the objects being linked to create a
19256 # shared library.
19257 predep_objects=$lt_predep_objects_RC
19258
19259 # Dependencies to place after the objects being linked to create a
19260 # shared library.
19261 postdep_objects=$lt_postdep_objects_RC
19262
19263 # Dependencies to place before the objects being linked to create a
19264 # shared library.
19265 predeps=$lt_predeps_RC
19266
19267 # Dependencies to place after the objects being linked to create a
19268 # shared library.
19269 postdeps=$lt_postdeps_RC
19270
19271 # The library search path used internally by the compiler when linking
19272 # a shared library.
19273 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19274
19275 # Method to check whether dependent libraries are shared objects.
19276 deplibs_check_method=$lt_deplibs_check_method
19277
19278 # Command to use when deplibs_check_method == file_magic.
19279 file_magic_cmd=$lt_file_magic_cmd
19280
19281 # Flag that allows shared libraries with undefined symbols to be built.
19282 allow_undefined_flag=$lt_allow_undefined_flag_RC
19283
19284 # Flag that forces no undefined symbols.
19285 no_undefined_flag=$lt_no_undefined_flag_RC
19286
19287 # Commands used to finish a libtool library installation in a directory.
19288 finish_cmds=$lt_finish_cmds
19289
19290 # Same as above, but a single script fragment to be evaled but not shown.
19291 finish_eval=$lt_finish_eval
19292
19293 # Take the output of nm and produce a listing of raw symbols and C names.
19294 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19295
19296 # Transform the output of nm in a proper C declaration
19297 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19298
19299 # Transform the output of nm in a C name address pair
19300 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19301
19302 # This is the shared library runtime path variable.
19303 runpath_var=$runpath_var
19304
19305 # This is the shared library path variable.
19306 shlibpath_var=$shlibpath_var
19307
19308 # Is shlibpath searched before the hard-coded library search path?
19309 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19310
19311 # How to hardcode a shared library path into an executable.
19312 hardcode_action=$hardcode_action_RC
19313
19314 # Whether we should hardcode library paths into libraries.
19315 hardcode_into_libs=$hardcode_into_libs
19316
19317 # Flag to hardcode \$libdir into a binary during linking.
19318 # This must work even if \$libdir does not exist.
19319 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19320
19321 # If ld is used when linking, flag to hardcode \$libdir into
19322 # a binary during linking. This must work even if \$libdir does
19323 # not exist.
19324 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19325
19326 # Whether we need a single -rpath flag with a separated argument.
19327 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19328
19329 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19330 # resulting binary.
19331 hardcode_direct=$hardcode_direct_RC
19332
19333 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19334 # resulting binary.
19335 hardcode_minus_L=$hardcode_minus_L_RC
19336
19337 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19338 # the resulting binary.
19339 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19340
19341 # Set to yes if building a shared library automatically hardcodes DIR into the library
19342 # and all subsequent libraries and executables linked against it.
19343 hardcode_automatic=$hardcode_automatic_RC
19344
19345 # Variables whose values should be saved in libtool wrapper scripts and
19346 # restored at relink time.
19347 variables_saved_for_relink="$variables_saved_for_relink"
19348
19349 # Whether libtool must link a program against all its dependency libraries.
19350 link_all_deplibs=$link_all_deplibs_RC
19351
19352 # Compile-time system search path for libraries
19353 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19354
19355 # Run-time system search path for libraries
19356 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19357
19358 # Fix the shell variable \$srcfile for the compiler.
19359 fix_srcfile_path="$fix_srcfile_path_RC"
19360
19361 # Set to yes if exported symbols are required.
19362 always_export_symbols=$always_export_symbols_RC
19363
19364 # The commands to list exported symbols.
19365 export_symbols_cmds=$lt_export_symbols_cmds_RC
19366
19367 # The commands to extract the exported symbol list from a shared archive.
19368 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19369
19370 # Symbols that should not be listed in the preloaded symbols.
19371 exclude_expsyms=$lt_exclude_expsyms_RC
19372
19373 # Symbols that must always be exported.
19374 include_expsyms=$lt_include_expsyms_RC
19375
19376 # ### END LIBTOOL TAG CONFIG: $tagname
19377
19378 __EOF__
19379
19380
19381 else
19382   # If there is no Makefile yet, we rely on a make rule to execute
19383   # `config.status --recheck' to rerun these tests and create the
19384   # libtool script then.
19385   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19386   if test -f "$ltmain_in"; then
19387     test -f Makefile && make "$ltmain"
19388   fi
19389 fi
19390
19391
19392 ac_ext=c
19393 ac_cpp='$CPP $CPPFLAGS'
19394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19397
19398 CC="$lt_save_CC"
19399
19400         ;;
19401
19402       *)
19403         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19404 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19405    { (exit 1); exit 1; }; }
19406         ;;
19407       esac
19408
19409       # Append the new tag name to the list of available tags.
19410       if test -n "$tagname" ; then
19411       available_tags="$available_tags $tagname"
19412     fi
19413     fi
19414   done
19415   IFS="$lt_save_ifs"
19416
19417   # Now substitute the updated list of available tags.
19418   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19419     mv "${ofile}T" "$ofile"
19420     chmod +x "$ofile"
19421   else
19422     rm -f "${ofile}T"
19423     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19424 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19425    { (exit 1); exit 1; }; }
19426   fi
19427 fi
19428
19429
19430
19431 # This can be used to rebuild libtool when needed
19432 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19433
19434 # Always use our own libtool.
19435 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19436
19437 # Prevent multiple expansion
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450 # Check whether --with-system-libtool was given.
19451 if test "${with_system_libtool+set}" = set; then
19452   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
19453 set dummy libtool; ac_word=$2
19454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19456 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19457   echo $ECHO_N "(cached) $ECHO_C" >&6
19458 else
19459   case $LIBTOOL in
19460   [\\/]* | ?:[\\/]*)
19461   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19462   ;;
19463   *)
19464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19465 as_dummy="$PATH:/usr/local/bin"
19466 for as_dir in $as_dummy
19467 do
19468   IFS=$as_save_IFS
19469   test -z "$as_dir" && as_dir=.
19470   for ac_exec_ext in '' $ac_executable_extensions; do
19471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19472     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19474     break 2
19475   fi
19476 done
19477 done
19478 IFS=$as_save_IFS
19479
19480   ;;
19481 esac
19482 fi
19483 LIBTOOL=$ac_cv_path_LIBTOOL
19484 if test -n "$LIBTOOL"; then
19485   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19486 echo "${ECHO_T}$LIBTOOL" >&6; }
19487 else
19488   { echo "$as_me:$LINENO: result: no" >&5
19489 echo "${ECHO_T}no" >&6; }
19490 fi
19491
19492
19493 else
19494
19495   LIBTOOL="`pwd`/libtool"
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510 fi
19511
19512
19513
19514
19515 # Check whether --enable-strict-dependencies was given.
19516 if test "${enable_strict_dependencies+set}" = set; then
19517   enableval=$enable_strict_dependencies;
19518 fi
19519
19520
19521 docdir='${datadir}/doc/freeradius'
19522 { echo "$as_me:$LINENO: checking docdir" >&5
19523 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
19524
19525 # Check whether --with-docdir was given.
19526 if test "${with_docdir+set}" = set; then
19527   withval=$with_docdir;  case "$withval" in
19528     no)
19529         docdir=no
19530         ;;
19531     yes)
19532         ;;
19533     [\\/$]* | ?:[\\/]* )
19534         docdir="$withval"
19535         ;;
19536     *)
19537         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
19538 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
19539    { (exit 1); exit 1; }; }
19540         ;;
19541   esac
19542
19543 fi
19544
19545
19546 { echo "$as_me:$LINENO: result: $docdir" >&5
19547 echo "${ECHO_T}$docdir" >&6; }
19548 if test "x$docdir" = xno; then
19549         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
19550 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
19551 fi
19552
19553 logdir='${localstatedir}/log/radius'
19554 { echo "$as_me:$LINENO: checking logdir" >&5
19555 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
19556
19557 # Check whether --with-logdir was given.
19558 if test "${with_logdir+set}" = set; then
19559   withval=$with_logdir;  case "$withval" in
19560     no)
19561         { { echo "$as_me:$LINENO: error: Need logdir" >&5
19562 echo "$as_me: error: Need logdir" >&2;}
19563    { (exit 1); exit 1; }; }
19564         ;;
19565     yes)
19566         ;;
19567     [\\/$]* | ?:[\\/]* )
19568         logdir="$withval"
19569         ;;
19570     *)
19571         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
19572 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
19573    { (exit 1); exit 1; }; }
19574         ;;
19575   esac
19576
19577 fi
19578
19579
19580 { echo "$as_me:$LINENO: result: $logdir" >&5
19581 echo "${ECHO_T}$logdir" >&6; }
19582
19583 radacctdir='${logdir}/radacct'
19584 { echo "$as_me:$LINENO: checking radacctdir" >&5
19585 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
19586
19587 # Check whether --with-radacctdir was given.
19588 if test "${with_radacctdir+set}" = set; then
19589   withval=$with_radacctdir;  case "$withval" in
19590     no)
19591         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19592 echo "$as_me: error: Need radacctdir" >&2;}
19593    { (exit 1); exit 1; }; }
19594         ;;
19595     yes)
19596         ;;
19597     [\\/$]* | ?:[\\/]* )
19598         radacctdir="$withval"
19599         ;;
19600     *)
19601         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
19602 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
19603    { (exit 1); exit 1; }; }
19604         ;;
19605   esac
19606
19607 fi
19608
19609
19610 { echo "$as_me:$LINENO: result: $radacctdir" >&5
19611 echo "${ECHO_T}$radacctdir" >&6; }
19612
19613 raddbdir='${sysconfdir}/raddb'
19614 { echo "$as_me:$LINENO: checking raddbdir" >&5
19615 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
19616
19617 # Check whether --with-raddbdir was given.
19618 if test "${with_raddbdir+set}" = set; then
19619   withval=$with_raddbdir;  case "$withval" in
19620     no)
19621         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19622 echo "$as_me: error: Need raddbdir" >&2;}
19623    { (exit 1); exit 1; }; }
19624         ;;
19625     yes)
19626         ;;
19627     [\\/$]* | ?:[\\/]* )
19628         raddbdir="$withval"
19629         ;;
19630     *)
19631         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
19632 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
19633    { (exit 1); exit 1; }; }
19634         ;;
19635   esac
19636
19637 fi
19638
19639
19640 { echo "$as_me:$LINENO: result: $raddbdir" >&5
19641 echo "${ECHO_T}$raddbdir" >&6; }
19642
19643 ASCEND_BINARY=yes
19644
19645 # Check whether --with-ascend-binary was given.
19646 if test "${with_ascend_binary+set}" = set; then
19647   withval=$with_ascend_binary;  case "$withval" in
19648     yes)
19649         ;;
19650     *)
19651         ASCEND_BINARY=""
19652   esac
19653
19654 fi
19655
19656 if test "X$ASCEND_BINARY" = "Xyes"; then
19657
19658 cat >>confdefs.h <<\_ACEOF
19659 #define ASCEND_BINARY
19660 _ACEOF
19661
19662 fi
19663
19664 WITH_THREADS=yes
19665
19666 # Check whether --with-threads was given.
19667 if test "${with_threads+set}" = set; then
19668   withval=$with_threads;  case "$withval" in
19669     yes)
19670         ;;
19671     *)
19672         WITH_THREADS=""
19673   esac
19674
19675 fi
19676
19677
19678 WITH_VMPS=yes
19679
19680 # Check whether --with-vmps was given.
19681 if test "${with_vmps+set}" = set; then
19682   withval=$with_vmps;  case "$withval" in
19683     yes)
19684         ;;
19685     *)
19686         WITH_VMPS=no
19687   esac
19688
19689 fi
19690
19691 if test "x$WITH_VMPS" = "xyes"; then
19692
19693 cat >>confdefs.h <<\_ACEOF
19694 #define WITH_VMPS 1
19695 _ACEOF
19696
19697 fi
19698
19699
19700 # Check whether --with-dhcp was given.
19701 if test "${with_dhcp+set}" = set; then
19702   withval=$with_dhcp;  case "$withval" in
19703     yes)
19704
19705 cat >>confdefs.h <<\_ACEOF
19706 #define WITH_DHCP 1
19707 _ACEOF
19708
19709         ;;
19710     *)
19711         ;;
19712   esac
19713
19714 fi
19715
19716
19717
19718 STATIC_MODULES=
19719
19720 # Check whether --with-static_modules was given.
19721 if test "${with_static_modules+set}" = set; then
19722   withval=$with_static_modules;
19723   for i in $withval; do
19724     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19725   done
19726
19727 fi
19728
19729
19730 MODULES=
19731
19732 # Check whether --with-modules was given.
19733 if test "${with_modules+set}" = set; then
19734   withval=$with_modules;
19735  for i in $withval; do
19736    MODULES="$MODULES $i"
19737  done
19738
19739 fi
19740
19741
19742 # Check whether --enable-developer was given.
19743 if test "${enable_developer+set}" = set; then
19744   enableval=$enable_developer;  case "$enableval" in
19745     no)
19746         developer=no
19747         ;;
19748     *)
19749         developer=yes
19750   esac
19751
19752 fi
19753
19754
19755 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19756     developer="yes"
19757 fi
19758
19759 EXPERIMENTAL=
19760
19761 # Check whether --with-experimental-modules was given.
19762 if test "${with_experimental_modules+set}" = set; then
19763   withval=$with_experimental_modules;  case "$withval" in
19764     yes)
19765         EXPERIMENTAL=yes
19766         ;;
19767     *)
19768   esac
19769
19770 fi
19771
19772
19773 WITH_OPENSSL=yes
19774
19775 # Check whether --with-openssl was given.
19776 if test "${with_openssl+set}" = set; then
19777   withval=$with_openssl;  case "$withval" in
19778     no)
19779         WITH_OPENSSL=no
19780         ;;
19781     *)
19782         WITH_OPENSSL=yes
19783         ;;
19784   esac
19785
19786 fi
19787
19788
19789 OPENSSL_INCLUDE_DIR=
19790
19791 # Check whether --with-openssl-includes was given.
19792 if test "${with_openssl_includes+set}" = set; then
19793   withval=$with_openssl_includes;  case "$withval" in
19794     *) OPENSSL_INCLUDE_DIR="$withval"
19795         ;;
19796   esac
19797
19798 fi
19799
19800
19801 OPENSSL_LIB_DIR=
19802
19803 # Check whether --with-openssl-libraries was given.
19804 if test "${with_openssl_libraries+set}" = set; then
19805   withval=$with_openssl_libraries;  case "$withval" in
19806     *) OPENSSL_LIB_DIR="$withval"
19807         ;;
19808   esac
19809
19810 fi
19811
19812
19813
19814
19815 # Check whether --with-rlm-FOO-lib-dir was given.
19816 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19817   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
19818     *)
19819         ;;
19820   esac
19821
19822 fi
19823
19824
19825
19826 # Check whether --with-rlm-FOO-include-dir was given.
19827 if test "${with_rlm_FOO_include_dir+set}" = set; then
19828   withval=$with_rlm_FOO_include_dir;  case "$withval" in
19829     *)
19830         ;;
19831   esac
19832
19833 fi
19834
19835
19836
19837 WITH_UDPFROMTO=no
19838
19839 # Check whether --with-udpfromto was given.
19840 if test "${with_udpfromto+set}" = set; then
19841   withval=$with_udpfromto;  case "$withval" in
19842     yes)
19843         WITH_UDPFROMTO=yes
19844         ;;
19845     *)
19846         WITH_UDPFROMTO=no
19847   esac
19848
19849 fi
19850
19851
19852 if test "x$WITH_UDPFROMTO" = "xyes"; then
19853
19854 cat >>confdefs.h <<\_ACEOF
19855 #define WITH_UDPFROMTO
19856 _ACEOF
19857
19858 fi
19859
19860
19861 CHECKRAD=checkrad.pl
19862 # Extract the first word of "perl", so it can be a program name with args.
19863 set dummy perl; ac_word=$2
19864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19866 if test "${ac_cv_path_PERL+set}" = set; then
19867   echo $ECHO_N "(cached) $ECHO_C" >&6
19868 else
19869   case $PERL in
19870   [\\/]* | ?:[\\/]*)
19871   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19872   ;;
19873   *)
19874   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19875 for as_dir in $PATH
19876 do
19877   IFS=$as_save_IFS
19878   test -z "$as_dir" && as_dir=.
19879   for ac_exec_ext in '' $ac_executable_extensions; do
19880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19881     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19883     break 2
19884   fi
19885 done
19886 done
19887 IFS=$as_save_IFS
19888
19889   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19890   ;;
19891 esac
19892 fi
19893 PERL=$ac_cv_path_PERL
19894 if test -n "$PERL"; then
19895   { echo "$as_me:$LINENO: result: $PERL" >&5
19896 echo "${ECHO_T}$PERL" >&6; }
19897 else
19898   { echo "$as_me:$LINENO: result: no" >&5
19899 echo "${ECHO_T}no" >&6; }
19900 fi
19901
19902
19903 if test "x$ac_cv_path_PERL" = "x"; then
19904   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19905 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19906 fi
19907 # Extract the first word of "snmpget", so it can be a program name with args.
19908 set dummy snmpget; ac_word=$2
19909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19911 if test "${ac_cv_path_SNMPGET+set}" = set; then
19912   echo $ECHO_N "(cached) $ECHO_C" >&6
19913 else
19914   case $SNMPGET in
19915   [\\/]* | ?:[\\/]*)
19916   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19917   ;;
19918   *)
19919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19920 for as_dir in $PATH
19921 do
19922   IFS=$as_save_IFS
19923   test -z "$as_dir" && as_dir=.
19924   for ac_exec_ext in '' $ac_executable_extensions; do
19925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19926     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19928     break 2
19929   fi
19930 done
19931 done
19932 IFS=$as_save_IFS
19933
19934   ;;
19935 esac
19936 fi
19937 SNMPGET=$ac_cv_path_SNMPGET
19938 if test -n "$SNMPGET"; then
19939   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
19940 echo "${ECHO_T}$SNMPGET" >&6; }
19941 else
19942   { echo "$as_me:$LINENO: result: no" >&5
19943 echo "${ECHO_T}no" >&6; }
19944 fi
19945
19946
19947 if test "x$ac_cv_path_SNMPGET" = "x"; then
19948   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19949 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19950 fi
19951
19952 # Extract the first word of "snmpwalk", so it can be a program name with args.
19953 set dummy snmpwalk; ac_word=$2
19954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19956 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19957   echo $ECHO_N "(cached) $ECHO_C" >&6
19958 else
19959   case $SNMPWALK in
19960   [\\/]* | ?:[\\/]*)
19961   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19962   ;;
19963   *)
19964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19965 for as_dir in $PATH
19966 do
19967   IFS=$as_save_IFS
19968   test -z "$as_dir" && as_dir=.
19969   for ac_exec_ext in '' $ac_executable_extensions; do
19970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19971     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19973     break 2
19974   fi
19975 done
19976 done
19977 IFS=$as_save_IFS
19978
19979   ;;
19980 esac
19981 fi
19982 SNMPWALK=$ac_cv_path_SNMPWALK
19983 if test -n "$SNMPWALK"; then
19984   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19985 echo "${ECHO_T}$SNMPWALK" >&6; }
19986 else
19987   { echo "$as_me:$LINENO: result: no" >&5
19988 echo "${ECHO_T}no" >&6; }
19989 fi
19990
19991
19992 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19993   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19994 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19995 fi
19996
19997 # Extract the first word of "rusers", so it can be a program name with args.
19998 set dummy rusers; ac_word=$2
19999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20001 if test "${ac_cv_path_RUSERS+set}" = set; then
20002   echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004   case $RUSERS in
20005   [\\/]* | ?:[\\/]*)
20006   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20007   ;;
20008   *)
20009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20010 for as_dir in $PATH
20011 do
20012   IFS=$as_save_IFS
20013   test -z "$as_dir" && as_dir=.
20014   for ac_exec_ext in '' $ac_executable_extensions; do
20015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20016     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20018     break 2
20019   fi
20020 done
20021 done
20022 IFS=$as_save_IFS
20023
20024   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20025   ;;
20026 esac
20027 fi
20028 RUSERS=$ac_cv_path_RUSERS
20029 if test -n "$RUSERS"; then
20030   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20031 echo "${ECHO_T}$RUSERS" >&6; }
20032 else
20033   { echo "$as_me:$LINENO: result: no" >&5
20034 echo "${ECHO_T}no" >&6; }
20035 fi
20036
20037
20038
20039 missing_dir=`cd $ac_aux_dir && pwd`
20040 # expand $ac_aux_dir to an absolute path
20041 am_aux_dir=`cd $ac_aux_dir && pwd`
20042
20043 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20044 # Use eval to expand $SHELL
20045 if eval "$MISSING --run true"; then
20046   am_missing_run="$MISSING --run "
20047 else
20048   am_missing_run=
20049   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20050 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20051 fi
20052
20053
20054 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20055
20056
20057 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20058
20059
20060 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20061
20062
20063 # Extract the first word of "locate", so it can be a program name with args.
20064 set dummy locate; ac_word=$2
20065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20067 if test "${ac_cv_path_LOCATE+set}" = set; then
20068   echo $ECHO_N "(cached) $ECHO_C" >&6
20069 else
20070   case $LOCATE in
20071   [\\/]* | ?:[\\/]*)
20072   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20073   ;;
20074   *)
20075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20076 for as_dir in $PATH
20077 do
20078   IFS=$as_save_IFS
20079   test -z "$as_dir" && as_dir=.
20080   for ac_exec_ext in '' $ac_executable_extensions; do
20081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20082     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20084     break 2
20085   fi
20086 done
20087 done
20088 IFS=$as_save_IFS
20089
20090   ;;
20091 esac
20092 fi
20093 LOCATE=$ac_cv_path_LOCATE
20094 if test -n "$LOCATE"; then
20095   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20096 echo "${ECHO_T}$LOCATE" >&6; }
20097 else
20098   { echo "$as_me:$LINENO: result: no" >&5
20099 echo "${ECHO_T}no" >&6; }
20100 fi
20101
20102
20103 # Extract the first word of "dirname", so it can be a program name with args.
20104 set dummy dirname; ac_word=$2
20105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20107 if test "${ac_cv_path_DIRNAME+set}" = set; then
20108   echo $ECHO_N "(cached) $ECHO_C" >&6
20109 else
20110   case $DIRNAME in
20111   [\\/]* | ?:[\\/]*)
20112   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20113   ;;
20114   *)
20115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20116 for as_dir in $PATH
20117 do
20118   IFS=$as_save_IFS
20119   test -z "$as_dir" && as_dir=.
20120   for ac_exec_ext in '' $ac_executable_extensions; do
20121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20122     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20124     break 2
20125   fi
20126 done
20127 done
20128 IFS=$as_save_IFS
20129
20130   ;;
20131 esac
20132 fi
20133 DIRNAME=$ac_cv_path_DIRNAME
20134 if test -n "$DIRNAME"; then
20135   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20136 echo "${ECHO_T}$DIRNAME" >&6; }
20137 else
20138   { echo "$as_me:$LINENO: result: no" >&5
20139 echo "${ECHO_T}no" >&6; }
20140 fi
20141
20142
20143 # Extract the first word of "grep", so it can be a program name with args.
20144 set dummy grep; ac_word=$2
20145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20147 if test "${ac_cv_path_GREP+set}" = set; then
20148   echo $ECHO_N "(cached) $ECHO_C" >&6
20149 else
20150   case $GREP in
20151   [\\/]* | ?:[\\/]*)
20152   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20153   ;;
20154   *)
20155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20156 for as_dir in $PATH
20157 do
20158   IFS=$as_save_IFS
20159   test -z "$as_dir" && as_dir=.
20160   for ac_exec_ext in '' $ac_executable_extensions; do
20161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20162     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20164     break 2
20165   fi
20166 done
20167 done
20168 IFS=$as_save_IFS
20169
20170   ;;
20171 esac
20172 fi
20173 GREP=$ac_cv_path_GREP
20174 if test -n "$GREP"; then
20175   { echo "$as_me:$LINENO: result: $GREP" >&5
20176 echo "${ECHO_T}$GREP" >&6; }
20177 else
20178   { echo "$as_me:$LINENO: result: no" >&5
20179 echo "${ECHO_T}no" >&6; }
20180 fi
20181
20182
20183
20184
20185 old_CFLAGS=$CFLAGS
20186 if test "x$WITH_THREADS" = "xyes"; then
20187   if test $ac_cv_prog_suncc = "yes"; then
20188     CFLAGS="$CFLAGS -mt"
20189   fi
20190
20191
20192 for ac_header in pthread.h
20193 do
20194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20196   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20199   echo $ECHO_N "(cached) $ECHO_C" >&6
20200 fi
20201 ac_res=`eval echo '${'$as_ac_Header'}'`
20202                { echo "$as_me:$LINENO: result: $ac_res" >&5
20203 echo "${ECHO_T}$ac_res" >&6; }
20204 else
20205   # Is the header compilable?
20206 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20207 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20208 cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h.  */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h.  */
20214 $ac_includes_default
20215 #include <$ac_header>
20216 _ACEOF
20217 rm -f conftest.$ac_objext
20218 if { (ac_try="$ac_compile"
20219 case "(($ac_try" in
20220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221   *) ac_try_echo=$ac_try;;
20222 esac
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224   (eval "$ac_compile") 2>conftest.er1
20225   ac_status=$?
20226   grep -v '^ *+' conftest.er1 >conftest.err
20227   rm -f conftest.er1
20228   cat conftest.err >&5
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); } && {
20231          test -z "$ac_c_werror_flag" ||
20232          test ! -s conftest.err
20233        } && test -s conftest.$ac_objext; then
20234   ac_header_compiler=yes
20235 else
20236   echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20238
20239         ac_header_compiler=no
20240 fi
20241
20242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20244 echo "${ECHO_T}$ac_header_compiler" >&6; }
20245
20246 # Is the header present?
20247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255 #include <$ac_header>
20256 _ACEOF
20257 if { (ac_try="$ac_cpp conftest.$ac_ext"
20258 case "(($ac_try" in
20259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260   *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } >/dev/null && {
20270          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20271          test ! -s conftest.err
20272        }; then
20273   ac_header_preproc=yes
20274 else
20275   echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278   ac_header_preproc=no
20279 fi
20280
20281 rm -f conftest.err conftest.$ac_ext
20282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20283 echo "${ECHO_T}$ac_header_preproc" >&6; }
20284
20285 # So?  What about this header?
20286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20287   yes:no: )
20288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20292     ac_header_preproc=yes
20293     ;;
20294   no:yes:* )
20295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20307
20308     ;;
20309 esac
20310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20313   echo $ECHO_N "(cached) $ECHO_C" >&6
20314 else
20315   eval "$as_ac_Header=\$ac_header_preproc"
20316 fi
20317 ac_res=`eval echo '${'$as_ac_Header'}'`
20318                { echo "$as_me:$LINENO: result: $ac_res" >&5
20319 echo "${ECHO_T}$ac_res" >&6; }
20320
20321 fi
20322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20323   cat >>confdefs.h <<_ACEOF
20324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20325 _ACEOF
20326
20327 else
20328    WITH_THREADS="no"
20329 fi
20330
20331 done
20332
20333
20334   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20335 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20336 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339   ac_check_lib_save_LIBS=$LIBS
20340 LIBS="-lpthread  $LIBS"
20341 cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h.  */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h.  */
20347
20348 /* Override any GCC internal prototype to avoid an error.
20349    Use char because int might match the return type of a GCC
20350    builtin and then its argument prototype would still apply.  */
20351 #ifdef __cplusplus
20352 extern "C"
20353 #endif
20354 char pthread_create ();
20355 int
20356 main ()
20357 {
20358 return pthread_create ();
20359   ;
20360   return 0;
20361 }
20362 _ACEOF
20363 rm -f conftest.$ac_objext conftest$ac_exeext
20364 if { (ac_try="$ac_link"
20365 case "(($ac_try" in
20366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367   *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370   (eval "$ac_link") 2>conftest.er1
20371   ac_status=$?
20372   grep -v '^ *+' conftest.er1 >conftest.err
20373   rm -f conftest.er1
20374   cat conftest.err >&5
20375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376   (exit $ac_status); } && {
20377          test -z "$ac_c_werror_flag" ||
20378          test ! -s conftest.err
20379        } && test -s conftest$ac_exeext &&
20380        $as_test_x conftest$ac_exeext; then
20381   ac_cv_lib_pthread_pthread_create=yes
20382 else
20383   echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20385
20386         ac_cv_lib_pthread_pthread_create=no
20387 fi
20388
20389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20390       conftest$ac_exeext conftest.$ac_ext
20391 LIBS=$ac_check_lib_save_LIBS
20392 fi
20393 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20394 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20395 if test $ac_cv_lib_pthread_pthread_create = yes; then
20396    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20397                   LIBS="$LIBS -lpthread"
20398 else
20399   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20400 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20401 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20402   echo $ECHO_N "(cached) $ECHO_C" >&6
20403 else
20404   ac_check_lib_save_LIBS=$LIBS
20405 LIBS="-lc_r  $LIBS"
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h.  */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h.  */
20412
20413 /* Override any GCC internal prototype to avoid an error.
20414    Use char because int might match the return type of a GCC
20415    builtin and then its argument prototype would still apply.  */
20416 #ifdef __cplusplus
20417 extern "C"
20418 #endif
20419 char pthread_create ();
20420 int
20421 main ()
20422 {
20423 return pthread_create ();
20424   ;
20425   return 0;
20426 }
20427 _ACEOF
20428 rm -f conftest.$ac_objext conftest$ac_exeext
20429 if { (ac_try="$ac_link"
20430 case "(($ac_try" in
20431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432   *) ac_try_echo=$ac_try;;
20433 esac
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435   (eval "$ac_link") 2>conftest.er1
20436   ac_status=$?
20437   grep -v '^ *+' conftest.er1 >conftest.err
20438   rm -f conftest.er1
20439   cat conftest.err >&5
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); } && {
20442          test -z "$ac_c_werror_flag" ||
20443          test ! -s conftest.err
20444        } && test -s conftest$ac_exeext &&
20445        $as_test_x conftest$ac_exeext; then
20446   ac_cv_lib_c_r_pthread_create=yes
20447 else
20448   echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20450
20451         ac_cv_lib_c_r_pthread_create=no
20452 fi
20453
20454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20455       conftest$ac_exeext conftest.$ac_ext
20456 LIBS=$ac_check_lib_save_LIBS
20457 fi
20458 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20459 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
20460 if test $ac_cv_lib_c_r_pthread_create = yes; then
20461    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20462 else
20463    WITH_THREADS="no"
20464
20465 fi
20466
20467
20468 fi
20469
20470 fi
20471
20472 if test "x$WITH_THREADS" != "xyes"; then
20473   CFLAGS=$old_CFLAGS
20474   ac_cv_header_pthread_h="no"
20475   WITH_THREADS=no
20476 else
20477
20478   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20479 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
20480 if test "${ac_cv_search_sem_init+set}" = set; then
20481   echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483   ac_func_search_save_LIBS=$LIBS
20484 cat >conftest.$ac_ext <<_ACEOF
20485 /* confdefs.h.  */
20486 _ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h.  */
20490
20491 /* Override any GCC internal prototype to avoid an error.
20492    Use char because int might match the return type of a GCC
20493    builtin and then its argument prototype would still apply.  */
20494 #ifdef __cplusplus
20495 extern "C"
20496 #endif
20497 char sem_init ();
20498 int
20499 main ()
20500 {
20501 return sem_init ();
20502   ;
20503   return 0;
20504 }
20505 _ACEOF
20506 for ac_lib in '' pthread sem posix4 rt semaphore; do
20507   if test -z "$ac_lib"; then
20508     ac_res="none required"
20509   else
20510     ac_res=-l$ac_lib
20511     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20512   fi
20513   rm -f conftest.$ac_objext conftest$ac_exeext
20514 if { (ac_try="$ac_link"
20515 case "(($ac_try" in
20516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517   *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520   (eval "$ac_link") 2>conftest.er1
20521   ac_status=$?
20522   grep -v '^ *+' conftest.er1 >conftest.err
20523   rm -f conftest.er1
20524   cat conftest.err >&5
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); } && {
20527          test -z "$ac_c_werror_flag" ||
20528          test ! -s conftest.err
20529        } && test -s conftest$ac_exeext &&
20530        $as_test_x conftest$ac_exeext; then
20531   ac_cv_search_sem_init=$ac_res
20532 else
20533   echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20535
20536
20537 fi
20538
20539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20540       conftest$ac_exeext
20541   if test "${ac_cv_search_sem_init+set}" = set; then
20542   break
20543 fi
20544 done
20545 if test "${ac_cv_search_sem_init+set}" = set; then
20546   :
20547 else
20548   ac_cv_search_sem_init=no
20549 fi
20550 rm conftest.$ac_ext
20551 LIBS=$ac_func_search_save_LIBS
20552 fi
20553 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20554 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
20555 ac_res=$ac_cv_search_sem_init
20556 if test "$ac_res" != no; then
20557   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20558
20559 else
20560   { { 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
20561 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;}
20562    { (exit 1); exit 1; }; }
20563
20564 fi
20565
20566 fi
20567
20568
20569 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20570 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
20571 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20572   echo $ECHO_N "(cached) $ECHO_C" >&6
20573 else
20574   ac_check_lib_save_LIBS=$LIBS
20575 LIBS="-lsocket  $LIBS"
20576 cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582
20583 /* Override any GCC internal prototype to avoid an error.
20584    Use char because int might match the return type of a GCC
20585    builtin and then its argument prototype would still apply.  */
20586 #ifdef __cplusplus
20587 extern "C"
20588 #endif
20589 char getsockname ();
20590 int
20591 main ()
20592 {
20593 return getsockname ();
20594   ;
20595   return 0;
20596 }
20597 _ACEOF
20598 rm -f conftest.$ac_objext conftest$ac_exeext
20599 if { (ac_try="$ac_link"
20600 case "(($ac_try" in
20601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602   *) ac_try_echo=$ac_try;;
20603 esac
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605   (eval "$ac_link") 2>conftest.er1
20606   ac_status=$?
20607   grep -v '^ *+' conftest.er1 >conftest.err
20608   rm -f conftest.er1
20609   cat conftest.err >&5
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); } && {
20612          test -z "$ac_c_werror_flag" ||
20613          test ! -s conftest.err
20614        } && test -s conftest$ac_exeext &&
20615        $as_test_x conftest$ac_exeext; then
20616   ac_cv_lib_socket_getsockname=yes
20617 else
20618   echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20620
20621         ac_cv_lib_socket_getsockname=no
20622 fi
20623
20624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20625       conftest$ac_exeext conftest.$ac_ext
20626 LIBS=$ac_check_lib_save_LIBS
20627 fi
20628 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20629 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
20630 if test $ac_cv_lib_socket_getsockname = yes; then
20631   cat >>confdefs.h <<_ACEOF
20632 #define HAVE_LIBSOCKET 1
20633 _ACEOF
20634
20635   LIBS="-lsocket $LIBS"
20636
20637 fi
20638
20639
20640
20641 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20642 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
20643 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646   ac_check_lib_save_LIBS=$LIBS
20647 LIBS="-lresolv  $LIBS"
20648 cat >conftest.$ac_ext <<_ACEOF
20649 /* confdefs.h.  */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h.  */
20654
20655 /* Override any GCC internal prototype to avoid an error.
20656    Use char because int might match the return type of a GCC
20657    builtin and then its argument prototype would still apply.  */
20658 #ifdef __cplusplus
20659 extern "C"
20660 #endif
20661 char inet_aton ();
20662 int
20663 main ()
20664 {
20665 return inet_aton ();
20666   ;
20667   return 0;
20668 }
20669 _ACEOF
20670 rm -f conftest.$ac_objext conftest$ac_exeext
20671 if { (ac_try="$ac_link"
20672 case "(($ac_try" in
20673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674   *) ac_try_echo=$ac_try;;
20675 esac
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677   (eval "$ac_link") 2>conftest.er1
20678   ac_status=$?
20679   grep -v '^ *+' conftest.er1 >conftest.err
20680   rm -f conftest.er1
20681   cat conftest.err >&5
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); } && {
20684          test -z "$ac_c_werror_flag" ||
20685          test ! -s conftest.err
20686        } && test -s conftest$ac_exeext &&
20687        $as_test_x conftest$ac_exeext; then
20688   ac_cv_lib_resolv_inet_aton=yes
20689 else
20690   echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693         ac_cv_lib_resolv_inet_aton=no
20694 fi
20695
20696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20697       conftest$ac_exeext conftest.$ac_ext
20698 LIBS=$ac_check_lib_save_LIBS
20699 fi
20700 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20701 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
20702 if test $ac_cv_lib_resolv_inet_aton = yes; then
20703   cat >>confdefs.h <<_ACEOF
20704 #define HAVE_LIBRESOLV 1
20705 _ACEOF
20706
20707   LIBS="-lresolv $LIBS"
20708
20709 fi
20710
20711
20712
20713 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20714 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
20715 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20716   echo $ECHO_N "(cached) $ECHO_C" >&6
20717 else
20718   ac_check_lib_save_LIBS=$LIBS
20719 LIBS="-lnsl  $LIBS"
20720 cat >conftest.$ac_ext <<_ACEOF
20721 /* confdefs.h.  */
20722 _ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h.  */
20726
20727 /* Override any GCC internal prototype to avoid an error.
20728    Use char because int might match the return type of a GCC
20729    builtin and then its argument prototype would still apply.  */
20730 #ifdef __cplusplus
20731 extern "C"
20732 #endif
20733 char inet_ntoa ();
20734 int
20735 main ()
20736 {
20737 return inet_ntoa ();
20738   ;
20739   return 0;
20740 }
20741 _ACEOF
20742 rm -f conftest.$ac_objext conftest$ac_exeext
20743 if { (ac_try="$ac_link"
20744 case "(($ac_try" in
20745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746   *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749   (eval "$ac_link") 2>conftest.er1
20750   ac_status=$?
20751   grep -v '^ *+' conftest.er1 >conftest.err
20752   rm -f conftest.er1
20753   cat conftest.err >&5
20754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755   (exit $ac_status); } && {
20756          test -z "$ac_c_werror_flag" ||
20757          test ! -s conftest.err
20758        } && test -s conftest$ac_exeext &&
20759        $as_test_x conftest$ac_exeext; then
20760   ac_cv_lib_nsl_inet_ntoa=yes
20761 else
20762   echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765         ac_cv_lib_nsl_inet_ntoa=no
20766 fi
20767
20768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20769       conftest$ac_exeext conftest.$ac_ext
20770 LIBS=$ac_check_lib_save_LIBS
20771 fi
20772 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20773 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
20774 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20775   cat >>confdefs.h <<_ACEOF
20776 #define HAVE_LIBNSL 1
20777 _ACEOF
20778
20779   LIBS="-lnsl $LIBS"
20780
20781 fi
20782
20783
20784 OPENSSL_LIBS=
20785 if test "x$WITH_OPENSSL" = xyes; then
20786   old_LIBS=$LIBS
20787   if test "x$OPENSSL_LIB_DIR" != "x"; then
20788     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
20789   fi
20790   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20791 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
20792 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795   ac_check_lib_save_LIBS=$LIBS
20796 LIBS="-lcrypto  $LIBS"
20797 cat >conftest.$ac_ext <<_ACEOF
20798 /* confdefs.h.  */
20799 _ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h.  */
20803
20804 /* Override any GCC internal prototype to avoid an error.
20805    Use char because int might match the return type of a GCC
20806    builtin and then its argument prototype would still apply.  */
20807 #ifdef __cplusplus
20808 extern "C"
20809 #endif
20810 char DH_new ();
20811 int
20812 main ()
20813 {
20814 return DH_new ();
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext conftest$ac_exeext
20820 if { (ac_try="$ac_link"
20821 case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826   (eval "$ac_link") 2>conftest.er1
20827   ac_status=$?
20828   grep -v '^ *+' conftest.er1 >conftest.err
20829   rm -f conftest.er1
20830   cat conftest.err >&5
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); } && {
20833          test -z "$ac_c_werror_flag" ||
20834          test ! -s conftest.err
20835        } && test -s conftest$ac_exeext &&
20836        $as_test_x conftest$ac_exeext; then
20837   ac_cv_lib_crypto_DH_new=yes
20838 else
20839   echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842         ac_cv_lib_crypto_DH_new=no
20843 fi
20844
20845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20846       conftest$ac_exeext conftest.$ac_ext
20847 LIBS=$ac_check_lib_save_LIBS
20848 fi
20849 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
20850 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
20851 if test $ac_cv_lib_crypto_DH_new = yes; then
20852
20853         LIBS="-lcrypto $LIBS"
20854
20855 cat >>confdefs.h <<\_ACEOF
20856 #define HAVE_LIBCRYPTO 1
20857 _ACEOF
20858
20859         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20860 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
20861 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
20862   echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864   ac_check_lib_save_LIBS=$LIBS
20865 LIBS="-lssl  $LIBS"
20866 cat >conftest.$ac_ext <<_ACEOF
20867 /* confdefs.h.  */
20868 _ACEOF
20869 cat confdefs.h >>conftest.$ac_ext
20870 cat >>conftest.$ac_ext <<_ACEOF
20871 /* end confdefs.h.  */
20872
20873 /* Override any GCC internal prototype to avoid an error.
20874    Use char because int might match the return type of a GCC
20875    builtin and then its argument prototype would still apply.  */
20876 #ifdef __cplusplus
20877 extern "C"
20878 #endif
20879 char SSL_new ();
20880 int
20881 main ()
20882 {
20883 return SSL_new ();
20884   ;
20885   return 0;
20886 }
20887 _ACEOF
20888 rm -f conftest.$ac_objext conftest$ac_exeext
20889 if { (ac_try="$ac_link"
20890 case "(($ac_try" in
20891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892   *) ac_try_echo=$ac_try;;
20893 esac
20894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895   (eval "$ac_link") 2>conftest.er1
20896   ac_status=$?
20897   grep -v '^ *+' conftest.er1 >conftest.err
20898   rm -f conftest.er1
20899   cat conftest.err >&5
20900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901   (exit $ac_status); } && {
20902          test -z "$ac_c_werror_flag" ||
20903          test ! -s conftest.err
20904        } && test -s conftest$ac_exeext &&
20905        $as_test_x conftest$ac_exeext; then
20906   ac_cv_lib_ssl_SSL_new=yes
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911         ac_cv_lib_ssl_SSL_new=no
20912 fi
20913
20914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20915       conftest$ac_exeext conftest.$ac_ext
20916 LIBS=$ac_check_lib_save_LIBS
20917 fi
20918 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
20919 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
20920 if test $ac_cv_lib_ssl_SSL_new = yes; then
20921
20922
20923 cat >>confdefs.h <<\_ACEOF
20924 #define HAVE_LIBSSL 1
20925 _ACEOF
20926
20927                 if test "x$OPENSSL_LIB_DIR" != "x"; then
20928                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
20929                 fi
20930                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
20931
20932 fi
20933
20934
20935 fi
20936
20937   LIBS=$old_LIBS
20938 fi
20939
20940
20941 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
20942 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
20943 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
20944   echo $ECHO_N "(cached) $ECHO_C" >&6
20945 else
20946   ac_check_lib_save_LIBS=$LIBS
20947 LIBS="-lws2_32  $LIBS"
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
20955 /* Override any GCC internal prototype to avoid an error.
20956    Use char because int might match the return type of a GCC
20957    builtin and then its argument prototype would still apply.  */
20958 #ifdef __cplusplus
20959 extern "C"
20960 #endif
20961 char htonl ();
20962 int
20963 main ()
20964 {
20965 return htonl ();
20966   ;
20967   return 0;
20968 }
20969 _ACEOF
20970 rm -f conftest.$ac_objext conftest$ac_exeext
20971 if { (ac_try="$ac_link"
20972 case "(($ac_try" in
20973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974   *) ac_try_echo=$ac_try;;
20975 esac
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977   (eval "$ac_link") 2>conftest.er1
20978   ac_status=$?
20979   grep -v '^ *+' conftest.er1 >conftest.err
20980   rm -f conftest.er1
20981   cat conftest.err >&5
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); } && {
20984          test -z "$ac_c_werror_flag" ||
20985          test ! -s conftest.err
20986        } && test -s conftest$ac_exeext &&
20987        $as_test_x conftest$ac_exeext; then
20988   ac_cv_lib_ws2_32_htonl=yes
20989 else
20990   echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20992
20993         ac_cv_lib_ws2_32_htonl=no
20994 fi
20995
20996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20997       conftest$ac_exeext conftest.$ac_ext
20998 LIBS=$ac_check_lib_save_LIBS
20999 fi
21000 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21001 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21002 if test $ac_cv_lib_ws2_32_htonl = yes; then
21003   cat >>confdefs.h <<_ACEOF
21004 #define HAVE_LIBWS2_32 1
21005 _ACEOF
21006
21007   LIBS="-lws2_32 $LIBS"
21008
21009 fi
21010
21011
21012 PCAP_LIBS=
21013 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21014 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21015 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21016   echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018   ac_check_lib_save_LIBS=$LIBS
21019 LIBS="-lpcap  $LIBS"
21020 cat >conftest.$ac_ext <<_ACEOF
21021 /* confdefs.h.  */
21022 _ACEOF
21023 cat confdefs.h >>conftest.$ac_ext
21024 cat >>conftest.$ac_ext <<_ACEOF
21025 /* end confdefs.h.  */
21026
21027 /* Override any GCC internal prototype to avoid an error.
21028    Use char because int might match the return type of a GCC
21029    builtin and then its argument prototype would still apply.  */
21030 #ifdef __cplusplus
21031 extern "C"
21032 #endif
21033 char pcap_open_live ();
21034 int
21035 main ()
21036 {
21037 return pcap_open_live ();
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 rm -f conftest.$ac_objext conftest$ac_exeext
21043 if { (ac_try="$ac_link"
21044 case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_link") 2>conftest.er1
21050   ac_status=$?
21051   grep -v '^ *+' conftest.er1 >conftest.err
21052   rm -f conftest.er1
21053   cat conftest.err >&5
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } && {
21056          test -z "$ac_c_werror_flag" ||
21057          test ! -s conftest.err
21058        } && test -s conftest$ac_exeext &&
21059        $as_test_x conftest$ac_exeext; then
21060   ac_cv_lib_pcap_pcap_open_live=yes
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065         ac_cv_lib_pcap_pcap_open_live=no
21066 fi
21067
21068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21069       conftest$ac_exeext conftest.$ac_ext
21070 LIBS=$ac_check_lib_save_LIBS
21071 fi
21072 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21073 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21074 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21075    PCAP_LIBS="-lpcap"
21076
21077 cat >>confdefs.h <<\_ACEOF
21078 #define HAVE_LIBPCAP 1
21079 _ACEOF
21080
21081
21082 else
21083    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21084 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21085 fi
21086
21087
21088
21089 case "$host" in
21090 *-interix*)
21091         CFLAGS="$CFLAGS -D_ALL_SOURCE"
21092         ;;
21093 *-darwin*)
21094         CFLAGS="$CFLAGS -DDARWIN"
21095         LIBS="-framework DirectoryService $LIBS"
21096         ;;
21097 esac
21098
21099
21100
21101
21102
21103
21104 ac_header_dirent=no
21105 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21106   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21107 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21108 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
21109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21110   echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112   cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h.  */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h.  */
21118 #include <sys/types.h>
21119 #include <$ac_hdr>
21120
21121 int
21122 main ()
21123 {
21124 if ((DIR *) 0)
21125 return 0;
21126   ;
21127   return 0;
21128 }
21129 _ACEOF
21130 rm -f conftest.$ac_objext
21131 if { (ac_try="$ac_compile"
21132 case "(($ac_try" in
21133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134   *) ac_try_echo=$ac_try;;
21135 esac
21136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21137   (eval "$ac_compile") 2>conftest.er1
21138   ac_status=$?
21139   grep -v '^ *+' conftest.er1 >conftest.err
21140   rm -f conftest.er1
21141   cat conftest.err >&5
21142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143   (exit $ac_status); } && {
21144          test -z "$ac_c_werror_flag" ||
21145          test ! -s conftest.err
21146        } && test -s conftest.$ac_objext; then
21147   eval "$as_ac_Header=yes"
21148 else
21149   echo "$as_me: failed program was:" >&5
21150 sed 's/^/| /' conftest.$ac_ext >&5
21151
21152         eval "$as_ac_Header=no"
21153 fi
21154
21155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21156 fi
21157 ac_res=`eval echo '${'$as_ac_Header'}'`
21158                { echo "$as_me:$LINENO: result: $ac_res" >&5
21159 echo "${ECHO_T}$ac_res" >&6; }
21160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21161   cat >>confdefs.h <<_ACEOF
21162 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21163 _ACEOF
21164
21165 ac_header_dirent=$ac_hdr; break
21166 fi
21167
21168 done
21169 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21170 if test $ac_header_dirent = dirent.h; then
21171   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21172 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21173 if test "${ac_cv_search_opendir+set}" = set; then
21174   echo $ECHO_N "(cached) $ECHO_C" >&6
21175 else
21176   ac_func_search_save_LIBS=$LIBS
21177 cat >conftest.$ac_ext <<_ACEOF
21178 /* confdefs.h.  */
21179 _ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h.  */
21183
21184 /* Override any GCC internal prototype to avoid an error.
21185    Use char because int might match the return type of a GCC
21186    builtin and then its argument prototype would still apply.  */
21187 #ifdef __cplusplus
21188 extern "C"
21189 #endif
21190 char opendir ();
21191 int
21192 main ()
21193 {
21194 return opendir ();
21195   ;
21196   return 0;
21197 }
21198 _ACEOF
21199 for ac_lib in '' dir; do
21200   if test -z "$ac_lib"; then
21201     ac_res="none required"
21202   else
21203     ac_res=-l$ac_lib
21204     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21205   fi
21206   rm -f conftest.$ac_objext conftest$ac_exeext
21207 if { (ac_try="$ac_link"
21208 case "(($ac_try" in
21209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210   *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213   (eval "$ac_link") 2>conftest.er1
21214   ac_status=$?
21215   grep -v '^ *+' conftest.er1 >conftest.err
21216   rm -f conftest.er1
21217   cat conftest.err >&5
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); } && {
21220          test -z "$ac_c_werror_flag" ||
21221          test ! -s conftest.err
21222        } && test -s conftest$ac_exeext &&
21223        $as_test_x conftest$ac_exeext; then
21224   ac_cv_search_opendir=$ac_res
21225 else
21226   echo "$as_me: failed program was:" >&5
21227 sed 's/^/| /' conftest.$ac_ext >&5
21228
21229
21230 fi
21231
21232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21233       conftest$ac_exeext
21234   if test "${ac_cv_search_opendir+set}" = set; then
21235   break
21236 fi
21237 done
21238 if test "${ac_cv_search_opendir+set}" = set; then
21239   :
21240 else
21241   ac_cv_search_opendir=no
21242 fi
21243 rm conftest.$ac_ext
21244 LIBS=$ac_func_search_save_LIBS
21245 fi
21246 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21247 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21248 ac_res=$ac_cv_search_opendir
21249 if test "$ac_res" != no; then
21250   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21251
21252 fi
21253
21254 else
21255   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
21256 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
21257 if test "${ac_cv_search_opendir+set}" = set; then
21258   echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260   ac_func_search_save_LIBS=$LIBS
21261 cat >conftest.$ac_ext <<_ACEOF
21262 /* confdefs.h.  */
21263 _ACEOF
21264 cat confdefs.h >>conftest.$ac_ext
21265 cat >>conftest.$ac_ext <<_ACEOF
21266 /* end confdefs.h.  */
21267
21268 /* Override any GCC internal prototype to avoid an error.
21269    Use char because int might match the return type of a GCC
21270    builtin and then its argument prototype would still apply.  */
21271 #ifdef __cplusplus
21272 extern "C"
21273 #endif
21274 char opendir ();
21275 int
21276 main ()
21277 {
21278 return opendir ();
21279   ;
21280   return 0;
21281 }
21282 _ACEOF
21283 for ac_lib in '' x; do
21284   if test -z "$ac_lib"; then
21285     ac_res="none required"
21286   else
21287     ac_res=-l$ac_lib
21288     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21289   fi
21290   rm -f conftest.$ac_objext conftest$ac_exeext
21291 if { (ac_try="$ac_link"
21292 case "(($ac_try" in
21293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294   *) ac_try_echo=$ac_try;;
21295 esac
21296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21297   (eval "$ac_link") 2>conftest.er1
21298   ac_status=$?
21299   grep -v '^ *+' conftest.er1 >conftest.err
21300   rm -f conftest.er1
21301   cat conftest.err >&5
21302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303   (exit $ac_status); } && {
21304          test -z "$ac_c_werror_flag" ||
21305          test ! -s conftest.err
21306        } && test -s conftest$ac_exeext &&
21307        $as_test_x conftest$ac_exeext; then
21308   ac_cv_search_opendir=$ac_res
21309 else
21310   echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313
21314 fi
21315
21316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21317       conftest$ac_exeext
21318   if test "${ac_cv_search_opendir+set}" = set; then
21319   break
21320 fi
21321 done
21322 if test "${ac_cv_search_opendir+set}" = set; then
21323   :
21324 else
21325   ac_cv_search_opendir=no
21326 fi
21327 rm conftest.$ac_ext
21328 LIBS=$ac_func_search_save_LIBS
21329 fi
21330 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21331 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
21332 ac_res=$ac_cv_search_opendir
21333 if test "$ac_res" != no; then
21334   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21335
21336 fi
21337
21338 fi
21339
21340 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21342 if test "${ac_cv_header_stdc+set}" = set; then
21343   echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345   cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h.  */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h.  */
21351 #include <stdlib.h>
21352 #include <stdarg.h>
21353 #include <string.h>
21354 #include <float.h>
21355
21356 int
21357 main ()
21358 {
21359
21360   ;
21361   return 0;
21362 }
21363 _ACEOF
21364 rm -f conftest.$ac_objext
21365 if { (ac_try="$ac_compile"
21366 case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_compile") 2>conftest.er1
21372   ac_status=$?
21373   grep -v '^ *+' conftest.er1 >conftest.err
21374   rm -f conftest.er1
21375   cat conftest.err >&5
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } && {
21378          test -z "$ac_c_werror_flag" ||
21379          test ! -s conftest.err
21380        } && test -s conftest.$ac_objext; then
21381   ac_cv_header_stdc=yes
21382 else
21383   echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21385
21386         ac_cv_header_stdc=no
21387 fi
21388
21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390
21391 if test $ac_cv_header_stdc = yes; then
21392   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21393   cat >conftest.$ac_ext <<_ACEOF
21394 /* confdefs.h.  */
21395 _ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h.  */
21399 #include <string.h>
21400
21401 _ACEOF
21402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21403   $EGREP "memchr" >/dev/null 2>&1; then
21404   :
21405 else
21406   ac_cv_header_stdc=no
21407 fi
21408 rm -f conftest*
21409
21410 fi
21411
21412 if test $ac_cv_header_stdc = yes; then
21413   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21414   cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 #include <stdlib.h>
21421
21422 _ACEOF
21423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21424   $EGREP "free" >/dev/null 2>&1; then
21425   :
21426 else
21427   ac_cv_header_stdc=no
21428 fi
21429 rm -f conftest*
21430
21431 fi
21432
21433 if test $ac_cv_header_stdc = yes; then
21434   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21435   if test "$cross_compiling" = yes; then
21436   :
21437 else
21438   cat >conftest.$ac_ext <<_ACEOF
21439 /* confdefs.h.  */
21440 _ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h.  */
21444 #include <ctype.h>
21445 #include <stdlib.h>
21446 #if ((' ' & 0x0FF) == 0x020)
21447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21449 #else
21450 # define ISLOWER(c) \
21451                    (('a' <= (c) && (c) <= 'i') \
21452                      || ('j' <= (c) && (c) <= 'r') \
21453                      || ('s' <= (c) && (c) <= 'z'))
21454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21455 #endif
21456
21457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21458 int
21459 main ()
21460 {
21461   int i;
21462   for (i = 0; i < 256; i++)
21463     if (XOR (islower (i), ISLOWER (i))
21464         || toupper (i) != TOUPPER (i))
21465       return 2;
21466   return 0;
21467 }
21468 _ACEOF
21469 rm -f conftest$ac_exeext
21470 if { (ac_try="$ac_link"
21471 case "(($ac_try" in
21472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473   *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476   (eval "$ac_link") 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21480   { (case "(($ac_try" in
21481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482   *) ac_try_echo=$ac_try;;
21483 esac
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485   (eval "$ac_try") 2>&5
21486   ac_status=$?
21487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488   (exit $ac_status); }; }; then
21489   :
21490 else
21491   echo "$as_me: program exited with status $ac_status" >&5
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21494
21495 ( exit $ac_status )
21496 ac_cv_header_stdc=no
21497 fi
21498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21499 fi
21500
21501
21502 fi
21503 fi
21504 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21505 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21506 if test $ac_cv_header_stdc = yes; then
21507
21508 cat >>confdefs.h <<\_ACEOF
21509 #define STDC_HEADERS 1
21510 _ACEOF
21511
21512 fi
21513
21514 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21515 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21516 if test "${ac_cv_header_time+set}" = set; then
21517   echo $ECHO_N "(cached) $ECHO_C" >&6
21518 else
21519   cat >conftest.$ac_ext <<_ACEOF
21520 /* confdefs.h.  */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h.  */
21525 #include <sys/types.h>
21526 #include <sys/time.h>
21527 #include <time.h>
21528
21529 int
21530 main ()
21531 {
21532 if ((struct tm *) 0)
21533 return 0;
21534   ;
21535   return 0;
21536 }
21537 _ACEOF
21538 rm -f conftest.$ac_objext
21539 if { (ac_try="$ac_compile"
21540 case "(($ac_try" in
21541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542   *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545   (eval "$ac_compile") 2>conftest.er1
21546   ac_status=$?
21547   grep -v '^ *+' conftest.er1 >conftest.err
21548   rm -f conftest.er1
21549   cat conftest.err >&5
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); } && {
21552          test -z "$ac_c_werror_flag" ||
21553          test ! -s conftest.err
21554        } && test -s conftest.$ac_objext; then
21555   ac_cv_header_time=yes
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560         ac_cv_header_time=no
21561 fi
21562
21563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21564 fi
21565 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21566 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21567 if test $ac_cv_header_time = yes; then
21568
21569 cat >>confdefs.h <<\_ACEOF
21570 #define TIME_WITH_SYS_TIME 1
21571 _ACEOF
21572
21573 fi
21574
21575 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21576 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21577 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21578   echo $ECHO_N "(cached) $ECHO_C" >&6
21579 else
21580   cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h.  */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h.  */
21586 #include <sys/types.h>
21587 #include <sys/wait.h>
21588 #ifndef WEXITSTATUS
21589 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21590 #endif
21591 #ifndef WIFEXITED
21592 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21593 #endif
21594
21595 int
21596 main ()
21597 {
21598   int s;
21599   wait (&s);
21600   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21601   ;
21602   return 0;
21603 }
21604 _ACEOF
21605 rm -f conftest.$ac_objext
21606 if { (ac_try="$ac_compile"
21607 case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_compile") 2>conftest.er1
21613   ac_status=$?
21614   grep -v '^ *+' conftest.er1 >conftest.err
21615   rm -f conftest.er1
21616   cat conftest.err >&5
21617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618   (exit $ac_status); } && {
21619          test -z "$ac_c_werror_flag" ||
21620          test ! -s conftest.err
21621        } && test -s conftest.$ac_objext; then
21622   ac_cv_header_sys_wait_h=yes
21623 else
21624   echo "$as_me: failed program was:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21626
21627         ac_cv_header_sys_wait_h=no
21628 fi
21629
21630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21631 fi
21632 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21633 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21634 if test $ac_cv_header_sys_wait_h = yes; then
21635
21636 cat >>confdefs.h <<\_ACEOF
21637 #define HAVE_SYS_WAIT_H 1
21638 _ACEOF
21639
21640 fi
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677 for ac_header in \
21678         unistd.h \
21679         crypt.h \
21680         errno.h \
21681         resource.h \
21682         sys/resource.h \
21683         getopt.h \
21684         malloc.h \
21685         utmp.h \
21686         utmpx.h \
21687         signal.h \
21688         sys/select.h \
21689         syslog.h \
21690         inttypes.h \
21691         stdint.h \
21692         stdio.h \
21693         netdb.h \
21694         semaphore.h \
21695         arpa/inet.h \
21696         netinet/in.h \
21697         sys/types.h \
21698         sys/socket.h \
21699         winsock.h \
21700         sys/time.h \
21701         sys/wait.h \
21702         sys/security.h \
21703         fcntl.h \
21704         sys/fcntl.h \
21705         sys/prctl.h \
21706         glob.h \
21707         prot.h \
21708         pwd.h \
21709         grp.h \
21710         sia.h \
21711         siad.h
21712
21713 do
21714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21716   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21719   echo $ECHO_N "(cached) $ECHO_C" >&6
21720 fi
21721 ac_res=`eval echo '${'$as_ac_Header'}'`
21722                { echo "$as_me:$LINENO: result: $ac_res" >&5
21723 echo "${ECHO_T}$ac_res" >&6; }
21724 else
21725   # Is the header compilable?
21726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21728 cat >conftest.$ac_ext <<_ACEOF
21729 /* confdefs.h.  */
21730 _ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h.  */
21734 $ac_includes_default
21735 #include <$ac_header>
21736 _ACEOF
21737 rm -f conftest.$ac_objext
21738 if { (ac_try="$ac_compile"
21739 case "(($ac_try" in
21740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741   *) ac_try_echo=$ac_try;;
21742 esac
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744   (eval "$ac_compile") 2>conftest.er1
21745   ac_status=$?
21746   grep -v '^ *+' conftest.er1 >conftest.err
21747   rm -f conftest.er1
21748   cat conftest.err >&5
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); } && {
21751          test -z "$ac_c_werror_flag" ||
21752          test ! -s conftest.err
21753        } && test -s conftest.$ac_objext; then
21754   ac_header_compiler=yes
21755 else
21756   echo "$as_me: failed program was:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21758
21759         ac_header_compiler=no
21760 fi
21761
21762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21764 echo "${ECHO_T}$ac_header_compiler" >&6; }
21765
21766 # Is the header present?
21767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21769 cat >conftest.$ac_ext <<_ACEOF
21770 /* confdefs.h.  */
21771 _ACEOF
21772 cat confdefs.h >>conftest.$ac_ext
21773 cat >>conftest.$ac_ext <<_ACEOF
21774 /* end confdefs.h.  */
21775 #include <$ac_header>
21776 _ACEOF
21777 if { (ac_try="$ac_cpp conftest.$ac_ext"
21778 case "(($ac_try" in
21779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780   *) ac_try_echo=$ac_try;;
21781 esac
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21784   ac_status=$?
21785   grep -v '^ *+' conftest.er1 >conftest.err
21786   rm -f conftest.er1
21787   cat conftest.err >&5
21788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789   (exit $ac_status); } >/dev/null && {
21790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21791          test ! -s conftest.err
21792        }; then
21793   ac_header_preproc=yes
21794 else
21795   echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798   ac_header_preproc=no
21799 fi
21800
21801 rm -f conftest.err conftest.$ac_ext
21802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21803 echo "${ECHO_T}$ac_header_preproc" >&6; }
21804
21805 # So?  What about this header?
21806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21807   yes:no: )
21808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21812     ac_header_preproc=yes
21813     ;;
21814   no:yes:* )
21815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21827
21828     ;;
21829 esac
21830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21833   echo $ECHO_N "(cached) $ECHO_C" >&6
21834 else
21835   eval "$as_ac_Header=\$ac_header_preproc"
21836 fi
21837 ac_res=`eval echo '${'$as_ac_Header'}'`
21838                { echo "$as_me:$LINENO: result: $ac_res" >&5
21839 echo "${ECHO_T}$ac_res" >&6; }
21840
21841 fi
21842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21843   cat >>confdefs.h <<_ACEOF
21844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21845 _ACEOF
21846
21847 fi
21848
21849 done
21850
21851
21852
21853 for ac_header in net/if.h
21854 do
21855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21859   echo $ECHO_N "(cached) $ECHO_C" >&6
21860 else
21861   cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h.  */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h.  */
21867 #ifdef HAVE_SYS_SOCKET_H
21868 # include <sys/socket.h>
21869 # endif
21870
21871
21872 #include <$ac_header>
21873 _ACEOF
21874 rm -f conftest.$ac_objext
21875 if { (ac_try="$ac_compile"
21876 case "(($ac_try" in
21877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21878   *) ac_try_echo=$ac_try;;
21879 esac
21880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21881   (eval "$ac_compile") 2>conftest.er1
21882   ac_status=$?
21883   grep -v '^ *+' conftest.er1 >conftest.err
21884   rm -f conftest.er1
21885   cat conftest.err >&5
21886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21887   (exit $ac_status); } && {
21888          test -z "$ac_c_werror_flag" ||
21889          test ! -s conftest.err
21890        } && test -s conftest.$ac_objext; then
21891   eval "$as_ac_Header=yes"
21892 else
21893   echo "$as_me: failed program was:" >&5
21894 sed 's/^/| /' conftest.$ac_ext >&5
21895
21896         eval "$as_ac_Header=no"
21897 fi
21898
21899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 fi
21901 ac_res=`eval echo '${'$as_ac_Header'}'`
21902                { echo "$as_me:$LINENO: result: $ac_res" >&5
21903 echo "${ECHO_T}$ac_res" >&6; }
21904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21905   cat >>confdefs.h <<_ACEOF
21906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21907 _ACEOF
21908
21909 fi
21910
21911 done
21912
21913
21914 REGEX=no
21915 if test "${ac_cv_header_regex_h+set}" = set; then
21916   { echo "$as_me:$LINENO: checking for regex.h" >&5
21917 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
21918 if test "${ac_cv_header_regex_h+set}" = set; then
21919   echo $ECHO_N "(cached) $ECHO_C" >&6
21920 fi
21921 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21922 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
21923 else
21924   # Is the header compilable?
21925 { echo "$as_me:$LINENO: checking regex.h usability" >&5
21926 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
21927 cat >conftest.$ac_ext <<_ACEOF
21928 /* confdefs.h.  */
21929 _ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h.  */
21933 $ac_includes_default
21934 #include <regex.h>
21935 _ACEOF
21936 rm -f conftest.$ac_objext
21937 if { (ac_try="$ac_compile"
21938 case "(($ac_try" in
21939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940   *) ac_try_echo=$ac_try;;
21941 esac
21942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943   (eval "$ac_compile") 2>conftest.er1
21944   ac_status=$?
21945   grep -v '^ *+' conftest.er1 >conftest.err
21946   rm -f conftest.er1
21947   cat conftest.err >&5
21948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949   (exit $ac_status); } && {
21950          test -z "$ac_c_werror_flag" ||
21951          test ! -s conftest.err
21952        } && test -s conftest.$ac_objext; then
21953   ac_header_compiler=yes
21954 else
21955   echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958         ac_header_compiler=no
21959 fi
21960
21961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21963 echo "${ECHO_T}$ac_header_compiler" >&6; }
21964
21965 # Is the header present?
21966 { echo "$as_me:$LINENO: checking regex.h presence" >&5
21967 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
21968 cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h.  */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h.  */
21974 #include <regex.h>
21975 _ACEOF
21976 if { (ac_try="$ac_cpp conftest.$ac_ext"
21977 case "(($ac_try" in
21978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979   *) ac_try_echo=$ac_try;;
21980 esac
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21983   ac_status=$?
21984   grep -v '^ *+' conftest.er1 >conftest.err
21985   rm -f conftest.er1
21986   cat conftest.err >&5
21987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988   (exit $ac_status); } >/dev/null && {
21989          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21990          test ! -s conftest.err
21991        }; then
21992   ac_header_preproc=yes
21993 else
21994   echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21996
21997   ac_header_preproc=no
21998 fi
21999
22000 rm -f conftest.err conftest.$ac_ext
22001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22002 echo "${ECHO_T}$ac_header_preproc" >&6; }
22003
22004 # So?  What about this header?
22005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22006   yes:no: )
22007     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22008 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22009     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22010 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22011     ac_header_preproc=yes
22012     ;;
22013   no:yes:* )
22014     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22015 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
22016     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
22017 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
22018     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22019 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22020     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
22021 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22022     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22023 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
22024     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22025 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
22026
22027     ;;
22028 esac
22029 { echo "$as_me:$LINENO: checking for regex.h" >&5
22030 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22031 if test "${ac_cv_header_regex_h+set}" = set; then
22032   echo $ECHO_N "(cached) $ECHO_C" >&6
22033 else
22034   ac_cv_header_regex_h=$ac_header_preproc
22035 fi
22036 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22037 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22038
22039 fi
22040 if test $ac_cv_header_regex_h = yes; then
22041
22042 cat >>confdefs.h <<\_ACEOF
22043 #define HAVE_REGEX_H
22044 _ACEOF
22045
22046 fi
22047
22048
22049 if test "x$ac_cv_header_regex_h" = "xyes"; then
22050   REGEX_EXTENDED=no
22051   REGEX=yes
22052   cat >conftest.$ac_ext <<_ACEOF
22053 /* confdefs.h.  */
22054 _ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h.  */
22058 #include <regex.h>
22059      #ifdef REG_EXTENDED
22060        yes
22061      #endif
22062
22063 _ACEOF
22064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22065   $EGREP "yes" >/dev/null 2>&1; then
22066
22067 cat >>confdefs.h <<\_ACEOF
22068 #define HAVE_REG_EXTENDED
22069 _ACEOF
22070  REGEX_EXTENDED=yes
22071 fi
22072 rm -f conftest*
22073
22074 fi
22075
22076
22077
22078 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
22079 then
22080
22081 cat >>confdefs.h <<\_ACEOF
22082 #define OSFC2
22083 _ACEOF
22084
22085 fi
22086
22087 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
22088 then
22089
22090 cat >>confdefs.h <<\_ACEOF
22091 #define OSFSIA
22092 _ACEOF
22093
22094 fi
22095
22096 OPENSSL_INCLUDE="-DNO_OPENSSL"
22097 if test "x$WITH_OPENSSL" = xyes; then
22098   if test "x$OPENSSL_LIBS" = "x"; then
22099     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
22100 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
22101   else
22102     old_CPPFLAGS=$CPPFLAGS
22103     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22104         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
22105     fi
22106         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
22107
22108
22109
22110
22111
22112 for ac_header in \
22113         openssl/ssl.h \
22114         openssl/crypto.h \
22115         openssl/err.h \
22116         openssl/evp.h \
22117         openssl/engine.h
22118 do
22119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22121   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22124   echo $ECHO_N "(cached) $ECHO_C" >&6
22125 fi
22126 ac_res=`eval echo '${'$as_ac_Header'}'`
22127                { echo "$as_me:$LINENO: result: $ac_res" >&5
22128 echo "${ECHO_T}$ac_res" >&6; }
22129 else
22130   # Is the header compilable?
22131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22133 cat >conftest.$ac_ext <<_ACEOF
22134 /* confdefs.h.  */
22135 _ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h.  */
22139 $ac_includes_default
22140 #include <$ac_header>
22141 _ACEOF
22142 rm -f conftest.$ac_objext
22143 if { (ac_try="$ac_compile"
22144 case "(($ac_try" in
22145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146   *) ac_try_echo=$ac_try;;
22147 esac
22148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22149   (eval "$ac_compile") 2>conftest.er1
22150   ac_status=$?
22151   grep -v '^ *+' conftest.er1 >conftest.err
22152   rm -f conftest.er1
22153   cat conftest.err >&5
22154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155   (exit $ac_status); } && {
22156          test -z "$ac_c_werror_flag" ||
22157          test ! -s conftest.err
22158        } && test -s conftest.$ac_objext; then
22159   ac_header_compiler=yes
22160 else
22161   echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22163
22164         ac_header_compiler=no
22165 fi
22166
22167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22169 echo "${ECHO_T}$ac_header_compiler" >&6; }
22170
22171 # Is the header present?
22172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22174 cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h.  */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h.  */
22180 #include <$ac_header>
22181 _ACEOF
22182 if { (ac_try="$ac_cpp conftest.$ac_ext"
22183 case "(($ac_try" in
22184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22185   *) ac_try_echo=$ac_try;;
22186 esac
22187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22189   ac_status=$?
22190   grep -v '^ *+' conftest.er1 >conftest.err
22191   rm -f conftest.er1
22192   cat conftest.err >&5
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); } >/dev/null && {
22195          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22196          test ! -s conftest.err
22197        }; then
22198   ac_header_preproc=yes
22199 else
22200   echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.$ac_ext >&5
22202
22203   ac_header_preproc=no
22204 fi
22205
22206 rm -f conftest.err conftest.$ac_ext
22207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22208 echo "${ECHO_T}$ac_header_preproc" >&6; }
22209
22210 # So?  What about this header?
22211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22212   yes:no: )
22213     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22215     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22217     ac_header_preproc=yes
22218     ;;
22219   no:yes:* )
22220     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22222     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22223 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22224     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22226     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22227 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22230     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22232
22233     ;;
22234 esac
22235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22238   echo $ECHO_N "(cached) $ECHO_C" >&6
22239 else
22240   eval "$as_ac_Header=\$ac_header_preproc"
22241 fi
22242 ac_res=`eval echo '${'$as_ac_Header'}'`
22243                { echo "$as_me:$LINENO: result: $ac_res" >&5
22244 echo "${ECHO_T}$ac_res" >&6; }
22245
22246 fi
22247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22248   cat >>confdefs.h <<_ACEOF
22249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22250 _ACEOF
22251
22252 else
22253   OPENSSL_LIBS=
22254
22255 fi
22256
22257 done
22258
22259     if test "x$OPENSSL_LIBS" != "x"; then
22260         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22261 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
22262         cat >conftest.$ac_ext <<_ACEOF
22263 /* confdefs.h.  */
22264 _ACEOF
22265 cat confdefs.h >>conftest.$ac_ext
22266 cat >>conftest.$ac_ext <<_ACEOF
22267 /* end confdefs.h.  */
22268 #include <openssl/crypto.h>
22269              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22270              yes
22271              #endif
22272
22273 _ACEOF
22274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22275   $EGREP "yes" >/dev/null 2>&1; then
22276   goodssl="yes"
22277 fi
22278 rm -f conftest*
22279
22280         if test "x$goodssl" != "xyes"; then
22281             { echo "$as_me:$LINENO: result: no" >&5
22282 echo "${ECHO_T}no" >&6; }
22283             OPENSSL_LIBS=
22284         else
22285             { echo "$as_me:$LINENO: result: yes" >&5
22286 echo "${ECHO_T}yes" >&6; }
22287             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22288                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
22289             else
22290                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
22291             fi
22292         fi
22293     fi
22294     CPPFLAGS=$old_CPPFLAGS
22295   fi
22296 fi
22297
22298
22299 export OPENSSL_LIBS
22300
22301 if test "x$PCAP_LIBS" = x; then
22302     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
22303 echo "$as_me: skipping test for pcap.h." >&6;}
22304 else
22305     if test "${ac_cv_header_pcap_h+set}" = set; then
22306   { echo "$as_me:$LINENO: checking for pcap.h" >&5
22307 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22308 if test "${ac_cv_header_pcap_h+set}" = set; then
22309   echo $ECHO_N "(cached) $ECHO_C" >&6
22310 fi
22311 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22312 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22313 else
22314   # Is the header compilable?
22315 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
22316 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
22317 cat >conftest.$ac_ext <<_ACEOF
22318 /* confdefs.h.  */
22319 _ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h.  */
22323 $ac_includes_default
22324 #include <pcap.h>
22325 _ACEOF
22326 rm -f conftest.$ac_objext
22327 if { (ac_try="$ac_compile"
22328 case "(($ac_try" in
22329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22330   *) ac_try_echo=$ac_try;;
22331 esac
22332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22333   (eval "$ac_compile") 2>conftest.er1
22334   ac_status=$?
22335   grep -v '^ *+' conftest.er1 >conftest.err
22336   rm -f conftest.er1
22337   cat conftest.err >&5
22338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); } && {
22340          test -z "$ac_c_werror_flag" ||
22341          test ! -s conftest.err
22342        } && test -s conftest.$ac_objext; then
22343   ac_header_compiler=yes
22344 else
22345   echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348         ac_header_compiler=no
22349 fi
22350
22351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22353 echo "${ECHO_T}$ac_header_compiler" >&6; }
22354
22355 # Is the header present?
22356 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
22357 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
22358 cat >conftest.$ac_ext <<_ACEOF
22359 /* confdefs.h.  */
22360 _ACEOF
22361 cat confdefs.h >>conftest.$ac_ext
22362 cat >>conftest.$ac_ext <<_ACEOF
22363 /* end confdefs.h.  */
22364 #include <pcap.h>
22365 _ACEOF
22366 if { (ac_try="$ac_cpp conftest.$ac_ext"
22367 case "(($ac_try" in
22368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369   *) ac_try_echo=$ac_try;;
22370 esac
22371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22373   ac_status=$?
22374   grep -v '^ *+' conftest.er1 >conftest.err
22375   rm -f conftest.er1
22376   cat conftest.err >&5
22377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378   (exit $ac_status); } >/dev/null && {
22379          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22380          test ! -s conftest.err
22381        }; then
22382   ac_header_preproc=yes
22383 else
22384   echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387   ac_header_preproc=no
22388 fi
22389
22390 rm -f conftest.err conftest.$ac_ext
22391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22392 echo "${ECHO_T}$ac_header_preproc" >&6; }
22393
22394 # So?  What about this header?
22395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22396   yes:no: )
22397     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
22398 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22399     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
22400 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
22401     ac_header_preproc=yes
22402     ;;
22403   no:yes:* )
22404     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
22405 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
22406     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
22407 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
22408     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
22409 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
22410     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
22411 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22412     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
22413 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
22414     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
22415 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
22416
22417     ;;
22418 esac
22419 { echo "$as_me:$LINENO: checking for pcap.h" >&5
22420 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
22421 if test "${ac_cv_header_pcap_h+set}" = set; then
22422   echo $ECHO_N "(cached) $ECHO_C" >&6
22423 else
22424   ac_cv_header_pcap_h=$ac_header_preproc
22425 fi
22426 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
22427 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
22428
22429 fi
22430 if test $ac_cv_header_pcap_h = yes; then
22431
22432 cat >>confdefs.h <<\_ACEOF
22433 #define HAVE_PCAP_H 1
22434 _ACEOF
22435
22436 else
22437    PCAP_LIBS=
22438         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
22439 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
22440
22441 fi
22442
22443
22444 fi
22445
22446
22447
22448 { echo "$as_me:$LINENO: checking for off_t" >&5
22449 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22450 if test "${ac_cv_type_off_t+set}" = set; then
22451   echo $ECHO_N "(cached) $ECHO_C" >&6
22452 else
22453   cat >conftest.$ac_ext <<_ACEOF
22454 /* confdefs.h.  */
22455 _ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h.  */
22459 $ac_includes_default
22460 typedef off_t ac__type_new_;
22461 int
22462 main ()
22463 {
22464 if ((ac__type_new_ *) 0)
22465   return 0;
22466 if (sizeof (ac__type_new_))
22467   return 0;
22468   ;
22469   return 0;
22470 }
22471 _ACEOF
22472 rm -f conftest.$ac_objext
22473 if { (ac_try="$ac_compile"
22474 case "(($ac_try" in
22475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476   *) ac_try_echo=$ac_try;;
22477 esac
22478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22479   (eval "$ac_compile") 2>conftest.er1
22480   ac_status=$?
22481   grep -v '^ *+' conftest.er1 >conftest.err
22482   rm -f conftest.er1
22483   cat conftest.err >&5
22484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22485   (exit $ac_status); } && {
22486          test -z "$ac_c_werror_flag" ||
22487          test ! -s conftest.err
22488        } && test -s conftest.$ac_objext; then
22489   ac_cv_type_off_t=yes
22490 else
22491   echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494         ac_cv_type_off_t=no
22495 fi
22496
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498 fi
22499 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22500 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22501 if test $ac_cv_type_off_t = yes; then
22502   :
22503 else
22504
22505 cat >>confdefs.h <<_ACEOF
22506 #define off_t long int
22507 _ACEOF
22508
22509 fi
22510
22511 { echo "$as_me:$LINENO: checking for pid_t" >&5
22512 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22513 if test "${ac_cv_type_pid_t+set}" = set; then
22514   echo $ECHO_N "(cached) $ECHO_C" >&6
22515 else
22516   cat >conftest.$ac_ext <<_ACEOF
22517 /* confdefs.h.  */
22518 _ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h.  */
22522 $ac_includes_default
22523 typedef pid_t ac__type_new_;
22524 int
22525 main ()
22526 {
22527 if ((ac__type_new_ *) 0)
22528   return 0;
22529 if (sizeof (ac__type_new_))
22530   return 0;
22531   ;
22532   return 0;
22533 }
22534 _ACEOF
22535 rm -f conftest.$ac_objext
22536 if { (ac_try="$ac_compile"
22537 case "(($ac_try" in
22538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539   *) ac_try_echo=$ac_try;;
22540 esac
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542   (eval "$ac_compile") 2>conftest.er1
22543   ac_status=$?
22544   grep -v '^ *+' conftest.er1 >conftest.err
22545   rm -f conftest.er1
22546   cat conftest.err >&5
22547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548   (exit $ac_status); } && {
22549          test -z "$ac_c_werror_flag" ||
22550          test ! -s conftest.err
22551        } && test -s conftest.$ac_objext; then
22552   ac_cv_type_pid_t=yes
22553 else
22554   echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22556
22557         ac_cv_type_pid_t=no
22558 fi
22559
22560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561 fi
22562 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22563 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22564 if test $ac_cv_type_pid_t = yes; then
22565   :
22566 else
22567
22568 cat >>confdefs.h <<_ACEOF
22569 #define pid_t int
22570 _ACEOF
22571
22572 fi
22573
22574 { echo "$as_me:$LINENO: checking for size_t" >&5
22575 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22576 if test "${ac_cv_type_size_t+set}" = set; then
22577   echo $ECHO_N "(cached) $ECHO_C" >&6
22578 else
22579   cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h.  */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h.  */
22585 $ac_includes_default
22586 typedef size_t ac__type_new_;
22587 int
22588 main ()
22589 {
22590 if ((ac__type_new_ *) 0)
22591   return 0;
22592 if (sizeof (ac__type_new_))
22593   return 0;
22594   ;
22595   return 0;
22596 }
22597 _ACEOF
22598 rm -f conftest.$ac_objext
22599 if { (ac_try="$ac_compile"
22600 case "(($ac_try" in
22601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602   *) ac_try_echo=$ac_try;;
22603 esac
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605   (eval "$ac_compile") 2>conftest.er1
22606   ac_status=$?
22607   grep -v '^ *+' conftest.er1 >conftest.err
22608   rm -f conftest.er1
22609   cat conftest.err >&5
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); } && {
22612          test -z "$ac_c_werror_flag" ||
22613          test ! -s conftest.err
22614        } && test -s conftest.$ac_objext; then
22615   ac_cv_type_size_t=yes
22616 else
22617   echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620         ac_cv_type_size_t=no
22621 fi
22622
22623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 fi
22625 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22626 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22627 if test $ac_cv_type_size_t = yes; then
22628   :
22629 else
22630
22631 cat >>confdefs.h <<_ACEOF
22632 #define size_t unsigned int
22633 _ACEOF
22634
22635 fi
22636
22637 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22638 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22639 if test "${ac_cv_type_uid_t+set}" = set; then
22640   echo $ECHO_N "(cached) $ECHO_C" >&6
22641 else
22642   cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h.  */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h.  */
22648 #include <sys/types.h>
22649
22650 _ACEOF
22651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22652   $EGREP "uid_t" >/dev/null 2>&1; then
22653   ac_cv_type_uid_t=yes
22654 else
22655   ac_cv_type_uid_t=no
22656 fi
22657 rm -f conftest*
22658
22659 fi
22660 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22661 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22662 if test $ac_cv_type_uid_t = no; then
22663
22664 cat >>confdefs.h <<\_ACEOF
22665 #define uid_t int
22666 _ACEOF
22667
22668
22669 cat >>confdefs.h <<\_ACEOF
22670 #define gid_t int
22671 _ACEOF
22672
22673 fi
22674
22675
22676
22677   { echo "$as_me:$LINENO: checking for socklen_t" >&5
22678 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
22679 if test "${ac_cv_type_socklen_t+set}" = set; then
22680   echo $ECHO_N "(cached) $ECHO_C" >&6
22681 else
22682    ac_cv_type_socklen_t=no
22683       cat >conftest.$ac_ext <<_ACEOF
22684 /* confdefs.h.  */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h.  */
22689 #ifdef HAVE_SYS_TYPES_H
22690 #include <sys/types.h>
22691 #endif
22692 #ifdef HAVE_SYS_SOCKET_H
22693 #include <sys/socket.h>
22694 #endif
22695
22696 int
22697 main ()
22698 {
22699 socklen_t foo
22700   ;
22701   return 0;
22702 }
22703 _ACEOF
22704 rm -f conftest.$ac_objext
22705 if { (ac_try="$ac_compile"
22706 case "(($ac_try" in
22707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22708   *) ac_try_echo=$ac_try;;
22709 esac
22710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22711   (eval "$ac_compile") 2>conftest.er1
22712   ac_status=$?
22713   grep -v '^ *+' conftest.er1 >conftest.err
22714   rm -f conftest.er1
22715   cat conftest.err >&5
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); } && {
22718          test -z "$ac_c_werror_flag" ||
22719          test ! -s conftest.err
22720        } && test -s conftest.$ac_objext; then
22721   ac_cv_type_socklen_t=yes
22722 else
22723   echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22725
22726
22727 fi
22728
22729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22730
22731
22732 fi
22733 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22734 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22735
22736   if test "$ac_cv_type_socklen_t" != "yes"; then
22737
22738 cat >>confdefs.h <<\_ACEOF
22739 #define socklen_t int
22740 _ACEOF
22741
22742   fi
22743
22744
22745
22746   { echo "$as_me:$LINENO: checking for uint8_t" >&5
22747 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22748 if test "${ac_cv_type_uint8_t+set}" = set; then
22749   echo $ECHO_N "(cached) $ECHO_C" >&6
22750 else
22751    ac_cv_type_uint8_t=no
22752       cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h.  */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h.  */
22758 #ifdef HAVE_INTTYPES_H
22759 #include <inttypes.h>
22760 #endif
22761 #ifdef HAVE_STDINT_H
22762 #include <stdint.h>
22763 #endif
22764
22765 int
22766 main ()
22767 {
22768 uint8_t foo
22769   ;
22770   return 0;
22771 }
22772 _ACEOF
22773 rm -f conftest.$ac_objext
22774 if { (ac_try="$ac_compile"
22775 case "(($ac_try" in
22776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777   *) ac_try_echo=$ac_try;;
22778 esac
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780   (eval "$ac_compile") 2>conftest.er1
22781   ac_status=$?
22782   grep -v '^ *+' conftest.er1 >conftest.err
22783   rm -f conftest.er1
22784   cat conftest.err >&5
22785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786   (exit $ac_status); } && {
22787          test -z "$ac_c_werror_flag" ||
22788          test ! -s conftest.err
22789        } && test -s conftest.$ac_objext; then
22790   ac_cv_type_uint8_t=yes
22791 else
22792   echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22794
22795
22796 fi
22797
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799
22800
22801 fi
22802 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22803 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22804
22805   if test "$ac_cv_type_uint8_t" != "yes"; then
22806
22807 cat >>confdefs.h <<\_ACEOF
22808 #define uint8_t unsigned char
22809 _ACEOF
22810
22811   fi
22812
22813
22814
22815   { echo "$as_me:$LINENO: checking for uint16_t" >&5
22816 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22817 if test "${ac_cv_type_uint16_t+set}" = set; then
22818   echo $ECHO_N "(cached) $ECHO_C" >&6
22819 else
22820    ac_cv_type_uint16_t=no
22821       cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h.  */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h.  */
22827 #ifdef HAVE_INTTYPES_H
22828 #include <inttypes.h>
22829 #endif
22830 #ifdef HAVE_STDINT_H
22831 #include <stdint.h>
22832 #endif
22833
22834 int
22835 main ()
22836 {
22837 uint16_t foo
22838   ;
22839   return 0;
22840 }
22841 _ACEOF
22842 rm -f conftest.$ac_objext
22843 if { (ac_try="$ac_compile"
22844 case "(($ac_try" in
22845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22846   *) ac_try_echo=$ac_try;;
22847 esac
22848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22849   (eval "$ac_compile") 2>conftest.er1
22850   ac_status=$?
22851   grep -v '^ *+' conftest.er1 >conftest.err
22852   rm -f conftest.er1
22853   cat conftest.err >&5
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); } && {
22856          test -z "$ac_c_werror_flag" ||
22857          test ! -s conftest.err
22858        } && test -s conftest.$ac_objext; then
22859   ac_cv_type_uint16_t=yes
22860 else
22861   echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22863
22864
22865 fi
22866
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868
22869
22870 fi
22871 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22872 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22873
22874   if test "$ac_cv_type_uint16_t" != "yes"; then
22875
22876 cat >>confdefs.h <<\_ACEOF
22877 #define uint16_t unsigned short
22878 _ACEOF
22879
22880   fi
22881
22882
22883
22884   { echo "$as_me:$LINENO: checking for uint32_t" >&5
22885 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22886 if test "${ac_cv_type_uint32_t+set}" = set; then
22887   echo $ECHO_N "(cached) $ECHO_C" >&6
22888 else
22889    ac_cv_type_uint32_t=no
22890       cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h.  */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h.  */
22896 #ifdef HAVE_INTTYPES_H
22897 #include <inttypes.h>
22898 #endif
22899 #ifdef HAVE_STDINT_H
22900 #include <stdint.h>
22901 #endif
22902
22903 int
22904 main ()
22905 {
22906 uint32_t foo
22907   ;
22908   return 0;
22909 }
22910 _ACEOF
22911 rm -f conftest.$ac_objext
22912 if { (ac_try="$ac_compile"
22913 case "(($ac_try" in
22914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915   *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918   (eval "$ac_compile") 2>conftest.er1
22919   ac_status=$?
22920   grep -v '^ *+' conftest.er1 >conftest.err
22921   rm -f conftest.er1
22922   cat conftest.err >&5
22923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924   (exit $ac_status); } && {
22925          test -z "$ac_c_werror_flag" ||
22926          test ! -s conftest.err
22927        } && test -s conftest.$ac_objext; then
22928   ac_cv_type_uint32_t=yes
22929 else
22930   echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22932
22933
22934 fi
22935
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937
22938
22939 fi
22940 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22941 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22942
22943   if test "$ac_cv_type_uint32_t" != "yes"; then
22944
22945 cat >>confdefs.h <<\_ACEOF
22946 #define uint32_t unsigned int
22947 _ACEOF
22948
22949   fi
22950
22951
22952 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22953 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
22954 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22955   echo $ECHO_N "(cached) $ECHO_C" >&6
22956 else
22957   cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h.  */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h.  */
22963
22964 #ifdef HAVE_NETINET_IN_H
22965 #include <netinet/in.h>
22966 #endif
22967
22968
22969 typedef struct in6_addr ac__type_new_;
22970 int
22971 main ()
22972 {
22973 if ((ac__type_new_ *) 0)
22974   return 0;
22975 if (sizeof (ac__type_new_))
22976   return 0;
22977   ;
22978   return 0;
22979 }
22980 _ACEOF
22981 rm -f conftest.$ac_objext
22982 if { (ac_try="$ac_compile"
22983 case "(($ac_try" in
22984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985   *) ac_try_echo=$ac_try;;
22986 esac
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988   (eval "$ac_compile") 2>conftest.er1
22989   ac_status=$?
22990   grep -v '^ *+' conftest.er1 >conftest.err
22991   rm -f conftest.er1
22992   cat conftest.err >&5
22993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994   (exit $ac_status); } && {
22995          test -z "$ac_c_werror_flag" ||
22996          test ! -s conftest.err
22997        } && test -s conftest.$ac_objext; then
22998   ac_cv_type_struct_in6_addr=yes
22999 else
23000   echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003         ac_cv_type_struct_in6_addr=no
23004 fi
23005
23006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23007 fi
23008 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
23009 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
23010 if test $ac_cv_type_struct_in6_addr = yes; then
23011
23012 cat >>confdefs.h <<\_ACEOF
23013 #define HAVE_STRUCT_IN6_ADDR 1
23014 _ACEOF
23015
23016 fi
23017
23018
23019 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
23020 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
23021 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
23022   echo $ECHO_N "(cached) $ECHO_C" >&6
23023 else
23024   cat >conftest.$ac_ext <<_ACEOF
23025 /* confdefs.h.  */
23026 _ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h.  */
23030
23031 #ifdef HAVE_NETINET_IN_H
23032 #include <netinet/in.h>
23033 #endif
23034 #ifdef HAVE_SYS_SOCKET_H
23035 #include <sys/socket.h>
23036 #endif
23037
23038
23039 typedef struct sockaddr_storage ac__type_new_;
23040 int
23041 main ()
23042 {
23043 if ((ac__type_new_ *) 0)
23044   return 0;
23045 if (sizeof (ac__type_new_))
23046   return 0;
23047   ;
23048   return 0;
23049 }
23050 _ACEOF
23051 rm -f conftest.$ac_objext
23052 if { (ac_try="$ac_compile"
23053 case "(($ac_try" in
23054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055   *) ac_try_echo=$ac_try;;
23056 esac
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058   (eval "$ac_compile") 2>conftest.er1
23059   ac_status=$?
23060   grep -v '^ *+' conftest.er1 >conftest.err
23061   rm -f conftest.er1
23062   cat conftest.err >&5
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); } && {
23065          test -z "$ac_c_werror_flag" ||
23066          test ! -s conftest.err
23067        } && test -s conftest.$ac_objext; then
23068   ac_cv_type_struct_sockaddr_storage=yes
23069 else
23070   echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23072
23073         ac_cv_type_struct_sockaddr_storage=no
23074 fi
23075
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23077 fi
23078 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
23079 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
23080 if test $ac_cv_type_struct_sockaddr_storage = yes; then
23081
23082 cat >>confdefs.h <<\_ACEOF
23083 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
23084 _ACEOF
23085
23086 fi
23087
23088
23089 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
23090 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
23091 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
23092   echo $ECHO_N "(cached) $ECHO_C" >&6
23093 else
23094   cat >conftest.$ac_ext <<_ACEOF
23095 /* confdefs.h.  */
23096 _ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h.  */
23100
23101 #ifdef HAVE_NETINET_IN_H
23102 #include <netinet/in.h>
23103 #endif
23104
23105
23106 typedef struct sockaddr_in6 ac__type_new_;
23107 int
23108 main ()
23109 {
23110 if ((ac__type_new_ *) 0)
23111   return 0;
23112 if (sizeof (ac__type_new_))
23113   return 0;
23114   ;
23115   return 0;
23116 }
23117 _ACEOF
23118 rm -f conftest.$ac_objext
23119 if { (ac_try="$ac_compile"
23120 case "(($ac_try" in
23121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122   *) ac_try_echo=$ac_try;;
23123 esac
23124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23125   (eval "$ac_compile") 2>conftest.er1
23126   ac_status=$?
23127   grep -v '^ *+' conftest.er1 >conftest.err
23128   rm -f conftest.er1
23129   cat conftest.err >&5
23130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131   (exit $ac_status); } && {
23132          test -z "$ac_c_werror_flag" ||
23133          test ! -s conftest.err
23134        } && test -s conftest.$ac_objext; then
23135   ac_cv_type_struct_sockaddr_in6=yes
23136 else
23137   echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23139
23140         ac_cv_type_struct_sockaddr_in6=no
23141 fi
23142
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 fi
23145 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
23146 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
23147 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
23148
23149 cat >>confdefs.h <<\_ACEOF
23150 #define HAVE_STRUCT_SOCKADDR_IN6 1
23151 _ACEOF
23152
23153 fi
23154
23155
23156 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
23157 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
23158 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
23159   echo $ECHO_N "(cached) $ECHO_C" >&6
23160 else
23161   cat >conftest.$ac_ext <<_ACEOF
23162 /* confdefs.h.  */
23163 _ACEOF
23164 cat confdefs.h >>conftest.$ac_ext
23165 cat >>conftest.$ac_ext <<_ACEOF
23166 /* end confdefs.h.  */
23167
23168 #ifdef HAVE_SYS_TYPES_H
23169 #include <sys/types.h>
23170 #endif
23171 #ifdef HAVE_SYS_SOCKET_H
23172 #include <sys/socket.h>
23173 #endif
23174 #ifdef HAVE_NETDB_H
23175 #include <netdb.h>
23176 #endif
23177
23178
23179 typedef struct addrinfo ac__type_new_;
23180 int
23181 main ()
23182 {
23183 if ((ac__type_new_ *) 0)
23184   return 0;
23185 if (sizeof (ac__type_new_))
23186   return 0;
23187   ;
23188   return 0;
23189 }
23190 _ACEOF
23191 rm -f conftest.$ac_objext
23192 if { (ac_try="$ac_compile"
23193 case "(($ac_try" in
23194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195   *) ac_try_echo=$ac_try;;
23196 esac
23197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23198   (eval "$ac_compile") 2>conftest.er1
23199   ac_status=$?
23200   grep -v '^ *+' conftest.er1 >conftest.err
23201   rm -f conftest.er1
23202   cat conftest.err >&5
23203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204   (exit $ac_status); } && {
23205          test -z "$ac_c_werror_flag" ||
23206          test ! -s conftest.err
23207        } && test -s conftest.$ac_objext; then
23208   ac_cv_type_struct_addrinfo=yes
23209 else
23210   echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213         ac_cv_type_struct_addrinfo=no
23214 fi
23215
23216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23217 fi
23218 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
23219 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
23220 if test $ac_cv_type_struct_addrinfo = yes; then
23221
23222 cat >>confdefs.h <<\_ACEOF
23223 #define HAVE_STRUCT_ADDRINFO 1
23224 _ACEOF
23225
23226 fi
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257 for ac_func in \
23258         getopt_long \
23259         lockf \
23260         strsignal \
23261         sigaction \
23262         sigprocmask \
23263         pthread_sigmask \
23264         snprintf \
23265         vsnprintf \
23266         setsid \
23267         strncasecmp \
23268         strcasecmp \
23269         localtime_r \
23270         ctime_r \
23271         gmtime_r \
23272         strsep \
23273         inet_aton \
23274         inet_pton \
23275         inet_ntop \
23276         setlinebuf \
23277         setvbuf \
23278         getusershell \
23279         initgroups \
23280         getaddrinfo \
23281         getnameinfo \
23282         closefrom \
23283         gettimeofday \
23284         strlcat \
23285         strlcpy
23286
23287 do
23288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23292   echo $ECHO_N "(cached) $ECHO_C" >&6
23293 else
23294   cat >conftest.$ac_ext <<_ACEOF
23295 /* confdefs.h.  */
23296 _ACEOF
23297 cat confdefs.h >>conftest.$ac_ext
23298 cat >>conftest.$ac_ext <<_ACEOF
23299 /* end confdefs.h.  */
23300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23302 #define $ac_func innocuous_$ac_func
23303
23304 /* System header to define __stub macros and hopefully few prototypes,
23305     which can conflict with char $ac_func (); below.
23306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23307     <limits.h> exists even on freestanding compilers.  */
23308
23309 #ifdef __STDC__
23310 # include <limits.h>
23311 #else
23312 # include <assert.h>
23313 #endif
23314
23315 #undef $ac_func
23316
23317 /* Override any GCC internal prototype to avoid an error.
23318    Use char because int might match the return type of a GCC
23319    builtin and then its argument prototype would still apply.  */
23320 #ifdef __cplusplus
23321 extern "C"
23322 #endif
23323 char $ac_func ();
23324 /* The GNU C library defines this for functions which it implements
23325     to always fail with ENOSYS.  Some functions are actually named
23326     something starting with __ and the normal name is an alias.  */
23327 #if defined __stub_$ac_func || defined __stub___$ac_func
23328 choke me
23329 #endif
23330
23331 int
23332 main ()
23333 {
23334 return $ac_func ();
23335   ;
23336   return 0;
23337 }
23338 _ACEOF
23339 rm -f conftest.$ac_objext conftest$ac_exeext
23340 if { (ac_try="$ac_link"
23341 case "(($ac_try" in
23342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343   *) ac_try_echo=$ac_try;;
23344 esac
23345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23346   (eval "$ac_link") 2>conftest.er1
23347   ac_status=$?
23348   grep -v '^ *+' conftest.er1 >conftest.err
23349   rm -f conftest.er1
23350   cat conftest.err >&5
23351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352   (exit $ac_status); } && {
23353          test -z "$ac_c_werror_flag" ||
23354          test ! -s conftest.err
23355        } && test -s conftest$ac_exeext &&
23356        $as_test_x conftest$ac_exeext; then
23357   eval "$as_ac_var=yes"
23358 else
23359   echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23361
23362         eval "$as_ac_var=no"
23363 fi
23364
23365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23366       conftest$ac_exeext conftest.$ac_ext
23367 fi
23368 ac_res=`eval echo '${'$as_ac_var'}'`
23369                { echo "$as_me:$LINENO: result: $ac_res" >&5
23370 echo "${ECHO_T}$ac_res" >&6; }
23371 if test `eval echo '${'$as_ac_var'}'` = yes; then
23372   cat >>confdefs.h <<_ACEOF
23373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23374 _ACEOF
23375
23376 fi
23377 done
23378
23379 for ac_func in \
23380         crypt \
23381         strncasecmp \
23382         strcasecmp \
23383         inet_aton \
23384         setlinebuf \
23385         getusershell \
23386         endusershell
23387
23388 do
23389 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23390 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
23391 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
23392   echo $ECHO_N "(cached) $ECHO_C" >&6
23393 else
23394   cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h.  */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h.  */
23400
23401 #include <stdio.h>
23402 #include <string.h>
23403 #ifdef HAVE_UNISTD_H
23404 #include <unistd.h>
23405 #endif
23406 #ifdef HAVE_CRYPT_H
23407 #include <crypt.h>
23408 #endif
23409 #ifdef HAVE_ERRNO_H
23410 #include <errno.h>
23411 #endif
23412 #ifdef HAVE_RESOURCE_H
23413 #include <resource.h>
23414 #endif
23415 #ifdef HAVE_GETOPT_H
23416 #include <getopt.h>
23417 #endif
23418 #ifdef HAVE_MALLOC_H
23419 #include <malloc.h>
23420 #endif
23421 #ifdef HAVE_UTMP_H
23422 #include <utmp.h>
23423 #endif
23424 #ifdef HAVE_UTMPX_H
23425 #include <utmpx.h>
23426 #endif
23427 #ifdef HAVE_SYS_SELECT_H
23428 #include <sys/select.h>
23429 #endif
23430 #ifdef HAVE_DLFCN_H
23431 #include <dlfcn.h>
23432 #endif
23433 #ifdef HAVE_REGEX_H
23434 #include <regex.h>
23435 #endif
23436 #ifdef HAVE_SYSLOG_H
23437 #include <syslog.h>
23438 #endif
23439 #ifdef HAVE_INTTYPES_H
23440 #include <inttypes.h>
23441 #endif
23442 #ifdef HAVE_STDINT_H
23443 #include <stdint.h>
23444 #endif
23445 #ifdef HAVE_ARPA_INET_H
23446 #include <arpa/inet.h>
23447 #endif
23448
23449 int
23450 main ()
23451 {
23452 char *(*pfn) = (char *(*)) $ac_func
23453   ;
23454   return 0;
23455 }
23456 _ACEOF
23457 rm -f conftest.$ac_objext
23458 if { (ac_try="$ac_compile"
23459 case "(($ac_try" in
23460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461   *) ac_try_echo=$ac_try;;
23462 esac
23463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23464   (eval "$ac_compile") 2>conftest.er1
23465   ac_status=$?
23466   grep -v '^ *+' conftest.er1 >conftest.err
23467   rm -f conftest.er1
23468   cat conftest.err >&5
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); } && {
23471          test -z "$ac_c_werror_flag" ||
23472          test ! -s conftest.err
23473        } && test -s conftest.$ac_objext; then
23474   eval "radius_cv_decl_needed_$ac_func=no"
23475 else
23476   echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23478
23479         eval "radius_cv_decl_needed_$ac_func=yes"
23480 fi
23481
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483 fi
23484
23485 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23486   { echo "$as_me:$LINENO: result: yes" >&5
23487 echo "${ECHO_T}yes" >&6; }
23488   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23489   cat >>confdefs.h <<_ACEOF
23490 #define $radius_tr_decl 1
23491 _ACEOF
23492
23493 else
23494   { echo "$as_me:$LINENO: result: no" >&5
23495 echo "${ECHO_T}no" >&6; }
23496 fi
23497
23498 done
23499
23500
23501 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23502 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
23503 if test "${ac_cv_type_signal+set}" = set; then
23504   echo $ECHO_N "(cached) $ECHO_C" >&6
23505 else
23506   cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512 #include <sys/types.h>
23513 #include <signal.h>
23514
23515 int
23516 main ()
23517 {
23518 return *(signal (0, 0)) (0) == 1;
23519   ;
23520   return 0;
23521 }
23522 _ACEOF
23523 rm -f conftest.$ac_objext
23524 if { (ac_try="$ac_compile"
23525 case "(($ac_try" in
23526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23527   *) ac_try_echo=$ac_try;;
23528 esac
23529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23530   (eval "$ac_compile") 2>conftest.er1
23531   ac_status=$?
23532   grep -v '^ *+' conftest.er1 >conftest.err
23533   rm -f conftest.er1
23534   cat conftest.err >&5
23535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536   (exit $ac_status); } && {
23537          test -z "$ac_c_werror_flag" ||
23538          test ! -s conftest.err
23539        } && test -s conftest.$ac_objext; then
23540   ac_cv_type_signal=int
23541 else
23542   echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23544
23545         ac_cv_type_signal=void
23546 fi
23547
23548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23549 fi
23550 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23551 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
23552
23553 cat >>confdefs.h <<_ACEOF
23554 #define RETSIGTYPE $ac_cv_type_signal
23555 _ACEOF
23556
23557
23558
23559 if test "x$ac_cv_header_utmpx_h" = "xyes"
23560 then
23561
23562   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23563 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
23564
23565
23566   cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h.  */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h.  */
23572
23573 #include <utmpx.h>
23574 #ifndef offsetof
23575 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23576 #endif
23577
23578 int
23579 main ()
23580 {
23581  int foo = offsetof(struct utmpx, ut_xtime)
23582   ;
23583   return 0;
23584 }
23585 _ACEOF
23586 rm -f conftest.$ac_objext
23587 if { (ac_try="$ac_compile"
23588 case "(($ac_try" in
23589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23590   *) ac_try_echo=$ac_try;;
23591 esac
23592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23593   (eval "$ac_compile") 2>conftest.er1
23594   ac_status=$?
23595   grep -v '^ *+' conftest.er1 >conftest.err
23596   rm -f conftest.er1
23597   cat conftest.err >&5
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); } && {
23600          test -z "$ac_c_werror_flag" ||
23601          test ! -s conftest.err
23602        } && test -s conftest.$ac_objext; then
23603   has_element=" "
23604 else
23605   echo "$as_me: failed program was:" >&5
23606 sed 's/^/| /' conftest.$ac_ext >&5
23607
23608         has_element=
23609 fi
23610
23611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612
23613   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23614   if test "x$has_element" != "x"; then
23615     { echo "$as_me:$LINENO: result: yes" >&5
23616 echo "${ECHO_T}yes" >&6; }
23617     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23618   else
23619     { echo "$as_me:$LINENO: result: no" >&5
23620 echo "${ECHO_T}no" >&6; }
23621     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23622  fi
23623
23624  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23625  then
23626
23627 cat >>confdefs.h <<\_ACEOF
23628 #define ut_xtime ut_tv.tv_sec
23629 _ACEOF
23630
23631  fi
23632 fi
23633
23634
23635   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23636 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
23637
23638
23639   cat >conftest.$ac_ext <<_ACEOF
23640 /* confdefs.h.  */
23641 _ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h.  */
23645
23646 #include <netinet/in.h>
23647 #ifndef offsetof
23648 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23649 #endif
23650
23651 int
23652 main ()
23653 {
23654  int foo = offsetof(struct in_pktinfo, ipi_addr)
23655   ;
23656   return 0;
23657 }
23658 _ACEOF
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663   *) ac_try_echo=$ac_try;;
23664 esac
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666   (eval "$ac_compile") 2>conftest.er1
23667   ac_status=$?
23668   grep -v '^ *+' conftest.er1 >conftest.err
23669   rm -f conftest.er1
23670   cat conftest.err >&5
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); } && {
23673          test -z "$ac_c_werror_flag" ||
23674          test ! -s conftest.err
23675        } && test -s conftest.$ac_objext; then
23676   has_element=" "
23677 else
23678   echo "$as_me: failed program was:" >&5
23679 sed 's/^/| /' conftest.$ac_ext >&5
23680
23681         has_element=
23682 fi
23683
23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685
23686   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23687   if test "x$has_element" != "x"; then
23688     { echo "$as_me:$LINENO: result: yes" >&5
23689 echo "${ECHO_T}yes" >&6; }
23690     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23691   else
23692     { echo "$as_me:$LINENO: result: no" >&5
23693 echo "${ECHO_T}no" >&6; }
23694     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23695  fi
23696
23697 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23698 then
23699
23700 cat >>confdefs.h <<\_ACEOF
23701 #define HAVE_IP_PKTINFO
23702 _ACEOF
23703
23704 fi
23705
23706
23707   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
23708 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
23709
23710
23711   cat >conftest.$ac_ext <<_ACEOF
23712 /* confdefs.h.  */
23713 _ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h.  */
23717
23718 #include <netinet/in.h>
23719 #ifndef offsetof
23720 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23721 #endif
23722
23723 int
23724 main ()
23725 {
23726  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
23727   ;
23728   return 0;
23729 }
23730 _ACEOF
23731 rm -f conftest.$ac_objext
23732 if { (ac_try="$ac_compile"
23733 case "(($ac_try" in
23734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735   *) ac_try_echo=$ac_try;;
23736 esac
23737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23738   (eval "$ac_compile") 2>conftest.er1
23739   ac_status=$?
23740   grep -v '^ *+' conftest.er1 >conftest.err
23741   rm -f conftest.er1
23742   cat conftest.err >&5
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); } && {
23745          test -z "$ac_c_werror_flag" ||
23746          test ! -s conftest.err
23747        } && test -s conftest.$ac_objext; then
23748   has_element=" "
23749 else
23750   echo "$as_me: failed program was:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23752
23753         has_element=
23754 fi
23755
23756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23757
23758   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
23759   if test "x$has_element" != "x"; then
23760     { echo "$as_me:$LINENO: result: yes" >&5
23761 echo "${ECHO_T}yes" >&6; }
23762     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
23763   else
23764     { echo "$as_me:$LINENO: result: no" >&5
23765 echo "${ECHO_T}no" >&6; }
23766     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
23767  fi
23768
23769 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
23770 then
23771
23772 cat >>confdefs.h <<\_ACEOF
23773 #define HAVE_IN6_PKTINFO
23774 _ACEOF
23775
23776 fi
23777
23778
23779 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23780 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23781 if test "${ac_cv_c_const+set}" = set; then
23782   echo $ECHO_N "(cached) $ECHO_C" >&6
23783 else
23784   cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h.  */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h.  */
23790
23791 int
23792 main ()
23793 {
23794 /* FIXME: Include the comments suggested by Paul. */
23795 #ifndef __cplusplus
23796   /* Ultrix mips cc rejects this.  */
23797   typedef int charset[2];
23798   const charset cs;
23799   /* SunOS 4.1.1 cc rejects this.  */
23800   char const *const *pcpcc;
23801   char **ppc;
23802   /* NEC SVR4.0.2 mips cc rejects this.  */
23803   struct point {int x, y;};
23804   static struct point const zero = {0,0};
23805   /* AIX XL C 1.02.0.0 rejects this.
23806      It does not let you subtract one const X* pointer from another in
23807      an arm of an if-expression whose if-part is not a constant
23808      expression */
23809   const char *g = "string";
23810   pcpcc = &g + (g ? g-g : 0);
23811   /* HPUX 7.0 cc rejects these. */
23812   ++pcpcc;
23813   ppc = (char**) pcpcc;
23814   pcpcc = (char const *const *) ppc;
23815   { /* SCO 3.2v4 cc rejects this.  */
23816     char *t;
23817     char const *s = 0 ? (char *) 0 : (char const *) 0;
23818
23819     *t++ = 0;
23820     if (s) return 0;
23821   }
23822   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23823     int x[] = {25, 17};
23824     const int *foo = &x[0];
23825     ++foo;
23826   }
23827   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23828     typedef const int *iptr;
23829     iptr p = 0;
23830     ++p;
23831   }
23832   { /* AIX XL C 1.02.0.0 rejects this saying
23833        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23834     struct s { int j; const int *ap[3]; };
23835     struct s *b; b->j = 5;
23836   }
23837   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23838     const int foo = 10;
23839     if (!foo) return 0;
23840   }
23841   return !cs[0] && !zero.x;
23842 #endif
23843
23844   ;
23845   return 0;
23846 }
23847 _ACEOF
23848 rm -f conftest.$ac_objext
23849 if { (ac_try="$ac_compile"
23850 case "(($ac_try" in
23851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852   *) ac_try_echo=$ac_try;;
23853 esac
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855   (eval "$ac_compile") 2>conftest.er1
23856   ac_status=$?
23857   grep -v '^ *+' conftest.er1 >conftest.err
23858   rm -f conftest.er1
23859   cat conftest.err >&5
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); } && {
23862          test -z "$ac_c_werror_flag" ||
23863          test ! -s conftest.err
23864        } && test -s conftest.$ac_objext; then
23865   ac_cv_c_const=yes
23866 else
23867   echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23869
23870         ac_cv_c_const=no
23871 fi
23872
23873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23874 fi
23875 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23876 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23877 if test $ac_cv_c_const = no; then
23878
23879 cat >>confdefs.h <<\_ACEOF
23880 #define const
23881 _ACEOF
23882
23883 fi
23884
23885
23886 { echo "$as_me:$LINENO: checking type of OS" >&5
23887 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
23888 OS=`uname -s`
23889 { echo "$as_me:$LINENO: result: $OS" >&5
23890 echo "${ECHO_T}$OS" >&6; }
23891 if test "$OS" = "OS/2"; then
23892         LIBPREFIX=
23893 else
23894         LIBPREFIX=lib
23895 fi
23896
23897
23898 if test "x$GCC" = "xyes"; then
23899     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23900 fi
23901
23902 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23903 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
23904 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23905   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23906   CFLAGS="$CFLAGS $devflags"
23907   INSTALLSTRIP=""
23908   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
23909 echo "${ECHO_T}yes.  Using $devflags" >&6; }
23910 else
23911   devflags=""
23912   CFLAGS="$CFLAGS -DNDEBUG"
23913   INSTALLSTRIP=""
23914   { echo "$as_me:$LINENO: result: no." >&5
23915 echo "${ECHO_T}no." >&6; }
23916 fi
23917
23918
23919 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23920 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23921 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23922   echo $ECHO_N "(cached) $ECHO_C" >&6
23923 else
23924   ac_check_lib_save_LIBS=$LIBS
23925 LIBS="-lcrypt  $LIBS"
23926 cat >conftest.$ac_ext <<_ACEOF
23927 /* confdefs.h.  */
23928 _ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h.  */
23932
23933 /* Override any GCC internal prototype to avoid an error.
23934    Use char because int might match the return type of a GCC
23935    builtin and then its argument prototype would still apply.  */
23936 #ifdef __cplusplus
23937 extern "C"
23938 #endif
23939 char crypt ();
23940 int
23941 main ()
23942 {
23943 return crypt ();
23944   ;
23945   return 0;
23946 }
23947 _ACEOF
23948 rm -f conftest.$ac_objext conftest$ac_exeext
23949 if { (ac_try="$ac_link"
23950 case "(($ac_try" in
23951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23952   *) ac_try_echo=$ac_try;;
23953 esac
23954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23955   (eval "$ac_link") 2>conftest.er1
23956   ac_status=$?
23957   grep -v '^ *+' conftest.er1 >conftest.err
23958   rm -f conftest.er1
23959   cat conftest.err >&5
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); } && {
23962          test -z "$ac_c_werror_flag" ||
23963          test ! -s conftest.err
23964        } && test -s conftest$ac_exeext &&
23965        $as_test_x conftest$ac_exeext; then
23966   ac_cv_lib_crypt_crypt=yes
23967 else
23968   echo "$as_me: failed program was:" >&5
23969 sed 's/^/| /' conftest.$ac_ext >&5
23970
23971         ac_cv_lib_crypt_crypt=no
23972 fi
23973
23974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23975       conftest$ac_exeext conftest.$ac_ext
23976 LIBS=$ac_check_lib_save_LIBS
23977 fi
23978 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23979 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
23980 if test $ac_cv_lib_crypt_crypt = yes; then
23981   CRYPTLIB="-lcrypt"
23982
23983 fi
23984
23985 if test "$CRYPTLIB" != ""; then
23986
23987 cat >>confdefs.h <<\_ACEOF
23988 #define HAVE_CRYPT
23989 _ACEOF
23990
23991 else
23992   { echo "$as_me:$LINENO: checking for crypt" >&5
23993 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
23994 if test "${ac_cv_func_crypt+set}" = set; then
23995   echo $ECHO_N "(cached) $ECHO_C" >&6
23996 else
23997   cat >conftest.$ac_ext <<_ACEOF
23998 /* confdefs.h.  */
23999 _ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h.  */
24003 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
24004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24005 #define crypt innocuous_crypt
24006
24007 /* System header to define __stub macros and hopefully few prototypes,
24008     which can conflict with char crypt (); below.
24009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24010     <limits.h> exists even on freestanding compilers.  */
24011
24012 #ifdef __STDC__
24013 # include <limits.h>
24014 #else
24015 # include <assert.h>
24016 #endif
24017
24018 #undef crypt
24019
24020 /* Override any GCC internal prototype to avoid an error.
24021    Use char because int might match the return type of a GCC
24022    builtin and then its argument prototype would still apply.  */
24023 #ifdef __cplusplus
24024 extern "C"
24025 #endif
24026 char crypt ();
24027 /* The GNU C library defines this for functions which it implements
24028     to always fail with ENOSYS.  Some functions are actually named
24029     something starting with __ and the normal name is an alias.  */
24030 #if defined __stub_crypt || defined __stub___crypt
24031 choke me
24032 #endif
24033
24034 int
24035 main ()
24036 {
24037 return crypt ();
24038   ;
24039   return 0;
24040 }
24041 _ACEOF
24042 rm -f conftest.$ac_objext conftest$ac_exeext
24043 if { (ac_try="$ac_link"
24044 case "(($ac_try" in
24045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046   *) ac_try_echo=$ac_try;;
24047 esac
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049   (eval "$ac_link") 2>conftest.er1
24050   ac_status=$?
24051   grep -v '^ *+' conftest.er1 >conftest.err
24052   rm -f conftest.er1
24053   cat conftest.err >&5
24054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055   (exit $ac_status); } && {
24056          test -z "$ac_c_werror_flag" ||
24057          test ! -s conftest.err
24058        } && test -s conftest$ac_exeext &&
24059        $as_test_x conftest$ac_exeext; then
24060   ac_cv_func_crypt=yes
24061 else
24062   echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24064
24065         ac_cv_func_crypt=no
24066 fi
24067
24068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24069       conftest$ac_exeext conftest.$ac_ext
24070 fi
24071 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
24072 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
24073 if test $ac_cv_func_crypt = yes; then
24074
24075 cat >>confdefs.h <<\_ACEOF
24076 #define HAVE_CRYPT
24077 _ACEOF
24078
24079 fi
24080
24081 fi
24082
24083 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
24084 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
24085 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
24086   echo $ECHO_N "(cached) $ECHO_C" >&6
24087 else
24088   ac_check_lib_save_LIBS=$LIBS
24089 LIBS="-lcipher  $LIBS"
24090 cat >conftest.$ac_ext <<_ACEOF
24091 /* confdefs.h.  */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h.  */
24096
24097 /* Override any GCC internal prototype to avoid an error.
24098    Use char because int might match the return type of a GCC
24099    builtin and then its argument prototype would still apply.  */
24100 #ifdef __cplusplus
24101 extern "C"
24102 #endif
24103 char setkey ();
24104 int
24105 main ()
24106 {
24107 return setkey ();
24108   ;
24109   return 0;
24110 }
24111 _ACEOF
24112 rm -f conftest.$ac_objext conftest$ac_exeext
24113 if { (ac_try="$ac_link"
24114 case "(($ac_try" in
24115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116   *) ac_try_echo=$ac_try;;
24117 esac
24118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24119   (eval "$ac_link") 2>conftest.er1
24120   ac_status=$?
24121   grep -v '^ *+' conftest.er1 >conftest.err
24122   rm -f conftest.er1
24123   cat conftest.err >&5
24124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24125   (exit $ac_status); } && {
24126          test -z "$ac_c_werror_flag" ||
24127          test ! -s conftest.err
24128        } && test -s conftest$ac_exeext &&
24129        $as_test_x conftest$ac_exeext; then
24130   ac_cv_lib_cipher_setkey=yes
24131 else
24132   echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.$ac_ext >&5
24134
24135         ac_cv_lib_cipher_setkey=no
24136 fi
24137
24138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24139       conftest$ac_exeext conftest.$ac_ext
24140 LIBS=$ac_check_lib_save_LIBS
24141 fi
24142 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
24143 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
24144 if test $ac_cv_lib_cipher_setkey = yes; then
24145   CRYPTLIB="${CRYPTLIB} -lcipher"
24146
24147 fi
24148
24149
24150
24151
24152 cat >>confdefs.h <<\_ACEOF
24153 #define GNUSTYLE 1
24154 _ACEOF
24155
24156
24157 cat >>confdefs.h <<\_ACEOF
24158 #define SYSVSTYLE 2
24159 _ACEOF
24160
24161
24162 cat >>confdefs.h <<\_ACEOF
24163 #define BSDSTYLE 3
24164 _ACEOF
24165
24166 gethostbyaddrrstyle=""
24167 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24168 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
24169 case "$host" in
24170 *-freebsd*)
24171         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
24172 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
24173 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
24174   echo $ECHO_N "(cached) $ECHO_C" >&6
24175 else
24176   cat >conftest.$ac_ext <<_ACEOF
24177 /* confdefs.h.  */
24178 _ACEOF
24179 cat confdefs.h >>conftest.$ac_ext
24180 cat >>conftest.$ac_ext <<_ACEOF
24181 /* end confdefs.h.  */
24182
24183 #ifdef HAVE_NETDB_H
24184 #include <netdb.h>
24185 #endif
24186
24187
24188 int
24189 main ()
24190 {
24191 #ifndef gethostbyaddr_r
24192   (void) gethostbyaddr_r;
24193 #endif
24194
24195   ;
24196   return 0;
24197 }
24198 _ACEOF
24199 rm -f conftest.$ac_objext
24200 if { (ac_try="$ac_compile"
24201 case "(($ac_try" in
24202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24203   *) ac_try_echo=$ac_try;;
24204 esac
24205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24206   (eval "$ac_compile") 2>conftest.er1
24207   ac_status=$?
24208   grep -v '^ *+' conftest.er1 >conftest.err
24209   rm -f conftest.er1
24210   cat conftest.err >&5
24211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212   (exit $ac_status); } && {
24213          test -z "$ac_c_werror_flag" ||
24214          test ! -s conftest.err
24215        } && test -s conftest.$ac_objext; then
24216   ac_cv_have_decl_gethostbyaddr_r=yes
24217 else
24218   echo "$as_me: failed program was:" >&5
24219 sed 's/^/| /' conftest.$ac_ext >&5
24220
24221         ac_cv_have_decl_gethostbyaddr_r=no
24222 fi
24223
24224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24225 fi
24226 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
24227 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
24228 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
24229
24230 cat >>confdefs.h <<_ACEOF
24231 #define HAVE_DECL_GETHOSTBYADDR_R 1
24232 _ACEOF
24233
24234
24235 else
24236   cat >>confdefs.h <<_ACEOF
24237 #define HAVE_DECL_GETHOSTBYADDR_R 0
24238 _ACEOF
24239
24240
24241
24242 cat >>confdefs.h <<\_ACEOF
24243 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24244 _ACEOF
24245
24246                 gethostbyaddrrstyle=BSD
24247                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24248 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24249
24250 fi
24251
24252
24253         ;;
24254 esac
24255 if test "x$gethostbyaddrrstyle" = "x"; then
24256         cat >conftest.$ac_ext <<_ACEOF
24257 /* confdefs.h.  */
24258 _ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h.  */
24262
24263 #include <stdio.h>
24264 #include <netdb.h>
24265
24266 int
24267 main ()
24268 {
24269  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24270   ;
24271   return 0;
24272 }
24273 _ACEOF
24274 rm -f conftest.$ac_objext conftest$ac_exeext
24275 if { (ac_try="$ac_link"
24276 case "(($ac_try" in
24277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24278   *) ac_try_echo=$ac_try;;
24279 esac
24280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24281   (eval "$ac_link") 2>conftest.er1
24282   ac_status=$?
24283   grep -v '^ *+' conftest.er1 >conftest.err
24284   rm -f conftest.er1
24285   cat conftest.err >&5
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } && {
24288          test -z "$ac_c_werror_flag" ||
24289          test ! -s conftest.err
24290        } && test -s conftest$ac_exeext &&
24291        $as_test_x conftest$ac_exeext; then
24292
24293
24294 cat >>confdefs.h <<\_ACEOF
24295 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24296 _ACEOF
24297
24298         gethostbyaddrrstyle=GNU
24299
24300 else
24301   echo "$as_me: failed program was:" >&5
24302 sed 's/^/| /' conftest.$ac_ext >&5
24303
24304
24305 fi
24306
24307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24308       conftest$ac_exeext conftest.$ac_ext
24309 fi
24310 if test "x$gethostbyaddrrstyle" = "x"; then
24311         cat >conftest.$ac_ext <<_ACEOF
24312 /* confdefs.h.  */
24313 _ACEOF
24314 cat confdefs.h >>conftest.$ac_ext
24315 cat >>conftest.$ac_ext <<_ACEOF
24316 /* end confdefs.h.  */
24317
24318 #include <stdio.h>
24319 #include <netdb.h>
24320
24321 int
24322 main ()
24323 {
24324  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24325   ;
24326   return 0;
24327 }
24328 _ACEOF
24329 rm -f conftest.$ac_objext conftest$ac_exeext
24330 if { (ac_try="$ac_link"
24331 case "(($ac_try" in
24332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333   *) ac_try_echo=$ac_try;;
24334 esac
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336   (eval "$ac_link") 2>conftest.er1
24337   ac_status=$?
24338   grep -v '^ *+' conftest.er1 >conftest.err
24339   rm -f conftest.er1
24340   cat conftest.err >&5
24341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24342   (exit $ac_status); } && {
24343          test -z "$ac_c_werror_flag" ||
24344          test ! -s conftest.err
24345        } && test -s conftest$ac_exeext &&
24346        $as_test_x conftest$ac_exeext; then
24347
24348
24349 cat >>confdefs.h <<\_ACEOF
24350 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24351 _ACEOF
24352
24353                 gethostbyaddrrstyle=SYSV
24354
24355 else
24356   echo "$as_me: failed program was:" >&5
24357 sed 's/^/| /' conftest.$ac_ext >&5
24358
24359
24360 fi
24361
24362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24363       conftest$ac_exeext conftest.$ac_ext
24364 fi
24365 if test "x$gethostbyaddrrstyle" = "x"; then
24366         cat >conftest.$ac_ext <<_ACEOF
24367 /* confdefs.h.  */
24368 _ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h.  */
24372
24373 #include <stdio.h>
24374 #include <netdb.h>
24375
24376 int
24377 main ()
24378 {
24379  gethostbyaddr(NULL, 0, 0)
24380   ;
24381   return 0;
24382 }
24383 _ACEOF
24384 rm -f conftest.$ac_objext conftest$ac_exeext
24385 if { (ac_try="$ac_link"
24386 case "(($ac_try" in
24387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24388   *) ac_try_echo=$ac_try;;
24389 esac
24390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24391   (eval "$ac_link") 2>conftest.er1
24392   ac_status=$?
24393   grep -v '^ *+' conftest.er1 >conftest.err
24394   rm -f conftest.er1
24395   cat conftest.err >&5
24396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397   (exit $ac_status); } && {
24398          test -z "$ac_c_werror_flag" ||
24399          test ! -s conftest.err
24400        } && test -s conftest$ac_exeext &&
24401        $as_test_x conftest$ac_exeext; then
24402
24403
24404 cat >>confdefs.h <<\_ACEOF
24405 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24406 _ACEOF
24407
24408                 gethostbyaddrrstyle=BSD
24409
24410 else
24411   echo "$as_me: failed program was:" >&5
24412 sed 's/^/| /' conftest.$ac_ext >&5
24413
24414
24415 fi
24416
24417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24418       conftest$ac_exeext conftest.$ac_ext
24419 fi
24420
24421 if test "x$gethostbyaddrrstyle" = "x"; then
24422         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24423 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24424 else
24425         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24426 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
24427 fi
24428
24429 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24430         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24431 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24432 fi
24433
24434 gethostbynamerstyle=""
24435 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24436 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
24437 cat >conftest.$ac_ext <<_ACEOF
24438 /* confdefs.h.  */
24439 _ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h.  */
24443
24444 #include <stdio.h>
24445 #include <netdb.h>
24446
24447 int
24448 main ()
24449 {
24450  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24451   ;
24452   return 0;
24453 }
24454 _ACEOF
24455 rm -f conftest.$ac_objext conftest$ac_exeext
24456 if { (ac_try="$ac_link"
24457 case "(($ac_try" in
24458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459   *) ac_try_echo=$ac_try;;
24460 esac
24461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462   (eval "$ac_link") 2>conftest.er1
24463   ac_status=$?
24464   grep -v '^ *+' conftest.er1 >conftest.err
24465   rm -f conftest.er1
24466   cat conftest.err >&5
24467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468   (exit $ac_status); } && {
24469          test -z "$ac_c_werror_flag" ||
24470          test ! -s conftest.err
24471        } && test -s conftest$ac_exeext &&
24472        $as_test_x conftest$ac_exeext; then
24473
24474
24475 cat >>confdefs.h <<\_ACEOF
24476 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24477 _ACEOF
24478
24479         gethostbynamerstyle=GNU
24480
24481 else
24482   echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24484
24485
24486 fi
24487
24488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24489       conftest$ac_exeext conftest.$ac_ext
24490 if test "x$gethostbynamerstyle" = "x"; then
24491         cat >conftest.$ac_ext <<_ACEOF
24492 /* confdefs.h.  */
24493 _ACEOF
24494 cat confdefs.h >>conftest.$ac_ext
24495 cat >>conftest.$ac_ext <<_ACEOF
24496 /* end confdefs.h.  */
24497
24498 #include <stdio.h>
24499 #include <netdb.h>
24500
24501 int
24502 main ()
24503 {
24504  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24505   ;
24506   return 0;
24507 }
24508 _ACEOF
24509 rm -f conftest.$ac_objext conftest$ac_exeext
24510 if { (ac_try="$ac_link"
24511 case "(($ac_try" in
24512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24513   *) ac_try_echo=$ac_try;;
24514 esac
24515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24516   (eval "$ac_link") 2>conftest.er1
24517   ac_status=$?
24518   grep -v '^ *+' conftest.er1 >conftest.err
24519   rm -f conftest.er1
24520   cat conftest.err >&5
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); } && {
24523          test -z "$ac_c_werror_flag" ||
24524          test ! -s conftest.err
24525        } && test -s conftest$ac_exeext &&
24526        $as_test_x conftest$ac_exeext; then
24527
24528
24529 cat >>confdefs.h <<\_ACEOF
24530 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24531 _ACEOF
24532
24533                 gethostbynamerstyle=SYSV
24534
24535 else
24536   echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24538
24539
24540 fi
24541
24542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24543       conftest$ac_exeext conftest.$ac_ext
24544 fi
24545 if test "x$gethostbynamerstyle" = "x"; then
24546         cat >conftest.$ac_ext <<_ACEOF
24547 /* confdefs.h.  */
24548 _ACEOF
24549 cat confdefs.h >>conftest.$ac_ext
24550 cat >>conftest.$ac_ext <<_ACEOF
24551 /* end confdefs.h.  */
24552
24553 #include <stdio.h>
24554 #include <netdb.h>
24555
24556 int
24557 main ()
24558 {
24559  gethostbyname(NULL)
24560   ;
24561   return 0;
24562 }
24563 _ACEOF
24564 rm -f conftest.$ac_objext conftest$ac_exeext
24565 if { (ac_try="$ac_link"
24566 case "(($ac_try" in
24567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24568   *) ac_try_echo=$ac_try;;
24569 esac
24570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24571   (eval "$ac_link") 2>conftest.er1
24572   ac_status=$?
24573   grep -v '^ *+' conftest.er1 >conftest.err
24574   rm -f conftest.er1
24575   cat conftest.err >&5
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); } && {
24578          test -z "$ac_c_werror_flag" ||
24579          test ! -s conftest.err
24580        } && test -s conftest$ac_exeext &&
24581        $as_test_x conftest$ac_exeext; then
24582
24583
24584 cat >>confdefs.h <<\_ACEOF
24585 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24586 _ACEOF
24587
24588                 gethostbynamerstyle=BSD
24589
24590 else
24591   echo "$as_me: failed program was:" >&5
24592 sed 's/^/| /' conftest.$ac_ext >&5
24593
24594
24595 fi
24596
24597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24598       conftest$ac_exeext conftest.$ac_ext
24599 fi
24600
24601 if test "x$gethostbynamerstyle" = "x"; then
24602         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24603 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24604 else
24605         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24606 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
24607 fi
24608
24609 if test "x$gethostbynamerstyle" = "xBSD"; then
24610         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24611 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24612 fi
24613
24614
24615 cat >>confdefs.h <<\_ACEOF
24616 #define POSIXSTYLE 1
24617 _ACEOF
24618
24619
24620 cat >>confdefs.h <<\_ACEOF
24621 #define SOLARISSTYLE 2
24622 _ACEOF
24623
24624 ctimerstyle=""
24625 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24626 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
24627 cat >conftest.$ac_ext <<_ACEOF
24628 /* confdefs.h.  */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h.  */
24633
24634 #include <time.h>
24635
24636 int
24637 main ()
24638 {
24639  ctime_r(NULL, NULL, 0)
24640   ;
24641   return 0;
24642 }
24643 _ACEOF
24644 rm -f conftest.$ac_objext conftest$ac_exeext
24645 if { (ac_try="$ac_link"
24646 case "(($ac_try" in
24647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648   *) ac_try_echo=$ac_try;;
24649 esac
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651   (eval "$ac_link") 2>conftest.er1
24652   ac_status=$?
24653   grep -v '^ *+' conftest.er1 >conftest.err
24654   rm -f conftest.er1
24655   cat conftest.err >&5
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); } && {
24658          test -z "$ac_c_werror_flag" ||
24659          test ! -s conftest.err
24660        } && test -s conftest$ac_exeext &&
24661        $as_test_x conftest$ac_exeext; then
24662
24663
24664 cat >>confdefs.h <<\_ACEOF
24665 #define CTIMERSTYLE SOLARISSTYLE
24666 _ACEOF
24667
24668         ctimerstyle="SOLARIS"
24669
24670 else
24671   echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24673
24674
24675 fi
24676
24677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24678       conftest$ac_exeext conftest.$ac_ext
24679 if test "x$ctimerstyle" = "x"; then
24680         cat >conftest.$ac_ext <<_ACEOF
24681 /* confdefs.h.  */
24682 _ACEOF
24683 cat confdefs.h >>conftest.$ac_ext
24684 cat >>conftest.$ac_ext <<_ACEOF
24685 /* end confdefs.h.  */
24686
24687 #include <time.h>
24688
24689 int
24690 main ()
24691 {
24692  ctime_r(NULL, NULL)
24693   ;
24694   return 0;
24695 }
24696 _ACEOF
24697 rm -f conftest.$ac_objext conftest$ac_exeext
24698 if { (ac_try="$ac_link"
24699 case "(($ac_try" in
24700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701   *) ac_try_echo=$ac_try;;
24702 esac
24703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24704   (eval "$ac_link") 2>conftest.er1
24705   ac_status=$?
24706   grep -v '^ *+' conftest.er1 >conftest.err
24707   rm -f conftest.er1
24708   cat conftest.err >&5
24709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24710   (exit $ac_status); } && {
24711          test -z "$ac_c_werror_flag" ||
24712          test ! -s conftest.err
24713        } && test -s conftest$ac_exeext &&
24714        $as_test_x conftest$ac_exeext; then
24715
24716
24717 cat >>confdefs.h <<\_ACEOF
24718 #define CTIMERSTYLE POSIXSTYLE
24719 _ACEOF
24720
24721                 ctimerstyle="POSIX"
24722
24723 else
24724   echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24726
24727
24728 fi
24729
24730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24731       conftest$ac_exeext conftest.$ac_ext
24732 fi
24733
24734 if test "x$ctimerstyle" = "x"; then
24735         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
24736 echo "${ECHO_T}none!  It must not exist, here." >&6; }
24737 else
24738         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24739 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
24740 fi
24741
24742 HOSTINFO=$host
24743
24744
24745
24746 top_builddir=`pwd`
24747 export top_builddir
24748 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24749 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
24750
24751
24752
24753
24754
24755 mysubdirs="$LIBLTDLPATH"
24756 if test "x$EXPERIMENTAL" = "xyes"; then
24757   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
24758     mysubdirs=`echo $mysubdirs $bar`
24759 else
24760         for bar in `cat "${srcdir}"/src/modules/stable`; do
24761     if test -f "${srcdir}"/src/modules/$bar/configure; then
24762       mysubdirs="$mysubdirs src/modules/$bar"
24763     fi
24764   done
24765 fi
24766
24767 if test "x$EXPERIMENTAL" = "xyes"; then
24768   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
24769     MODULES="$MODULES $foo"
24770   done
24771 else
24772             for foo in `cat "${srcdir}"/src/modules/stable`; do
24773     MODULES="$MODULES $foo"
24774    done
24775 fi
24776
24777 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
24778
24779
24780
24781
24782 ac_config_commands="$ac_config_commands stamp-h"
24783
24784 ac_config_commands="$ac_config_commands build-radpaths-h"
24785
24786 ac_config_commands="$ac_config_commands main-chmod"
24787
24788 ac_config_commands="$ac_config_commands scripts-chmod"
24789
24790
24791
24792
24793
24794 USE_SHARED_LIBS=$enable_shared
24795
24796 USE_STATIC_LIBS=$enable_static
24797
24798
24799
24800
24801
24802
24803
24804   unset ac_cv_env_LIBS_set
24805   unset ac_cv_env_LIBS_value
24806
24807   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/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
24808
24809 cat >confcache <<\_ACEOF
24810 # This file is a shell script that caches the results of configure
24811 # tests run on this system so they can be shared between configure
24812 # scripts and configure runs, see configure's option --config-cache.
24813 # It is not useful on other systems.  If it contains results you don't
24814 # want to keep, you may remove or edit it.
24815 #
24816 # config.status only pays attention to the cache file if you give it
24817 # the --recheck option to rerun configure.
24818 #
24819 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24820 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24821 # following values.
24822
24823 _ACEOF
24824
24825 # The following way of writing the cache mishandles newlines in values,
24826 # but we know of no workaround that is simple, portable, and efficient.
24827 # So, we kill variables containing newlines.
24828 # Ultrix sh set writes to stderr and can't be redirected directly,
24829 # and sets the high bit in the cache file unless we assign to the vars.
24830 (
24831   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24832     eval ac_val=\$$ac_var
24833     case $ac_val in #(
24834     *${as_nl}*)
24835       case $ac_var in #(
24836       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24837 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24838       esac
24839       case $ac_var in #(
24840       _ | IFS | as_nl) ;; #(
24841       *) $as_unset $ac_var ;;
24842       esac ;;
24843     esac
24844   done
24845
24846   (set) 2>&1 |
24847     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24848     *${as_nl}ac_space=\ *)
24849       # `set' does not quote correctly, so add quotes (double-quote
24850       # substitution turns \\\\ into \\, and sed turns \\ into \).
24851       sed -n \
24852         "s/'/'\\\\''/g;
24853           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24854       ;; #(
24855     *)
24856       # `set' quotes correctly as required by POSIX, so do not add quotes.
24857       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24858       ;;
24859     esac |
24860     sort
24861 ) |
24862   sed '
24863      /^ac_cv_env_/b end
24864      t clear
24865      :clear
24866      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24867      t end
24868      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24869      :end' >>confcache
24870 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24871   if test -w "$cache_file"; then
24872     test "x$cache_file" != "x/dev/null" &&
24873       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24874 echo "$as_me: updating cache $cache_file" >&6;}
24875     cat confcache >$cache_file
24876   else
24877     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24878 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24879   fi
24880 fi
24881 rm -f confcache
24882
24883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24884 # Let make expand exec_prefix.
24885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24886
24887 DEFS=-DHAVE_CONFIG_H
24888
24889 ac_libobjs=
24890 ac_ltlibobjs=
24891 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24892   # 1. Remove the extension, and $U if already installed.
24893   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24894   ac_i=`echo "$ac_i" | sed "$ac_script"`
24895   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24896   #    will be set to the directory where LIBOBJS objects are built.
24897   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24898   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24899 done
24900 LIBOBJS=$ac_libobjs
24901
24902 LTLIBOBJS=$ac_ltlibobjs
24903
24904
24905
24906 : ${CONFIG_STATUS=./config.status}
24907 ac_clean_files_save=$ac_clean_files
24908 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24909 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24910 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24911 cat >$CONFIG_STATUS <<_ACEOF
24912 #! $SHELL
24913 # Generated by $as_me.
24914 # Run this file to recreate the current configuration.
24915 # Compiler output produced by configure, useful for debugging
24916 # configure, is in config.log if it exists.
24917
24918 debug=false
24919 ac_cs_recheck=false
24920 ac_cs_silent=false
24921 SHELL=\${CONFIG_SHELL-$SHELL}
24922 _ACEOF
24923
24924 cat >>$CONFIG_STATUS <<\_ACEOF
24925 ## --------------------- ##
24926 ## M4sh Initialization.  ##
24927 ## --------------------- ##
24928
24929 # Be more Bourne compatible
24930 DUALCASE=1; export DUALCASE # for MKS sh
24931 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24932   emulate sh
24933   NULLCMD=:
24934   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24935   # is contrary to our usage.  Disable this feature.
24936   alias -g '${1+"$@"}'='"$@"'
24937   setopt NO_GLOB_SUBST
24938 else
24939   case `(set -o) 2>/dev/null` in
24940   *posix*) set -o posix ;;
24941 esac
24942
24943 fi
24944
24945
24946
24947
24948 # PATH needs CR
24949 # Avoid depending upon Character Ranges.
24950 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24951 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24952 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24953 as_cr_digits='0123456789'
24954 as_cr_alnum=$as_cr_Letters$as_cr_digits
24955
24956 # The user is always right.
24957 if test "${PATH_SEPARATOR+set}" != set; then
24958   echo "#! /bin/sh" >conf$$.sh
24959   echo  "exit 0"   >>conf$$.sh
24960   chmod +x conf$$.sh
24961   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24962     PATH_SEPARATOR=';'
24963   else
24964     PATH_SEPARATOR=:
24965   fi
24966   rm -f conf$$.sh
24967 fi
24968
24969 # Support unset when possible.
24970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24971   as_unset=unset
24972 else
24973   as_unset=false
24974 fi
24975
24976
24977 # IFS
24978 # We need space, tab and new line, in precisely that order.  Quoting is
24979 # there to prevent editors from complaining about space-tab.
24980 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24981 # splitting by setting IFS to empty value.)
24982 as_nl='
24983 '
24984 IFS=" ""        $as_nl"
24985
24986 # Find who we are.  Look in the path if we contain no directory separator.
24987 case $0 in
24988   *[\\/]* ) as_myself=$0 ;;
24989   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24990 for as_dir in $PATH
24991 do
24992   IFS=$as_save_IFS
24993   test -z "$as_dir" && as_dir=.
24994   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24995 done
24996 IFS=$as_save_IFS
24997
24998      ;;
24999 esac
25000 # We did not find ourselves, most probably we were run as `sh COMMAND'
25001 # in which case we are not to be found in the path.
25002 if test "x$as_myself" = x; then
25003   as_myself=$0
25004 fi
25005 if test ! -f "$as_myself"; then
25006   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25007   { (exit 1); exit 1; }
25008 fi
25009
25010 # Work around bugs in pre-3.0 UWIN ksh.
25011 for as_var in ENV MAIL MAILPATH
25012 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25013 done
25014 PS1='$ '
25015 PS2='> '
25016 PS4='+ '
25017
25018 # NLS nuisances.
25019 for as_var in \
25020   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25021   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25022   LC_TELEPHONE LC_TIME
25023 do
25024   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25025     eval $as_var=C; export $as_var
25026   else
25027     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
25028   fi
25029 done
25030
25031 # Required to use basename.
25032 if expr a : '\(a\)' >/dev/null 2>&1 &&
25033    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25034   as_expr=expr
25035 else
25036   as_expr=false
25037 fi
25038
25039 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25040   as_basename=basename
25041 else
25042   as_basename=false
25043 fi
25044
25045
25046 # Name of the executable.
25047 as_me=`$as_basename -- "$0" ||
25048 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25049          X"$0" : 'X\(//\)$' \| \
25050          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25051 echo X/"$0" |
25052     sed '/^.*\/\([^/][^/]*\)\/*$/{
25053             s//\1/
25054             q
25055           }
25056           /^X\/\(\/\/\)$/{
25057             s//\1/
25058             q
25059           }
25060           /^X\/\(\/\).*/{
25061             s//\1/
25062             q
25063           }
25064           s/.*/./; q'`
25065
25066 # CDPATH.
25067 $as_unset CDPATH
25068
25069
25070
25071   as_lineno_1=$LINENO
25072   as_lineno_2=$LINENO
25073   test "x$as_lineno_1" != "x$as_lineno_2" &&
25074   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
25075
25076   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25077   # uniformly replaced by the line number.  The first 'sed' inserts a
25078   # line-number line after each line using $LINENO; the second 'sed'
25079   # does the real work.  The second script uses 'N' to pair each
25080   # line-number line with the line containing $LINENO, and appends
25081   # trailing '-' during substitution so that $LINENO is not a special
25082   # case at line end.
25083   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25084   # scripts with optimization help from Paolo Bonzini.  Blame Lee
25085   # E. McMahon (1931-1989) for sed's syntax.  :-)
25086   sed -n '
25087     p
25088     /[$]LINENO/=
25089   ' <$as_myself |
25090     sed '
25091       s/[$]LINENO.*/&-/
25092       t lineno
25093       b
25094       :lineno
25095       N
25096       :loop
25097       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
25098       t loop
25099       s/-\n.*//
25100     ' >$as_me.lineno &&
25101   chmod +x "$as_me.lineno" ||
25102     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
25103    { (exit 1); exit 1; }; }
25104
25105   # Don't try to exec as it changes $[0], causing all sort of problems
25106   # (the dirname of $[0] is not the place where we might find the
25107   # original and so on.  Autoconf is especially sensitive to this).
25108   . "./$as_me.lineno"
25109   # Exit status is that of the last command.
25110   exit
25111 }
25112
25113
25114 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25115   as_dirname=dirname
25116 else
25117   as_dirname=false
25118 fi
25119
25120 ECHO_C= ECHO_N= ECHO_T=
25121 case `echo -n x` in
25122 -n*)
25123   case `echo 'x\c'` in
25124   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25125   *)   ECHO_C='\c';;
25126   esac;;
25127 *)
25128   ECHO_N='-n';;
25129 esac
25130
25131 if expr a : '\(a\)' >/dev/null 2>&1 &&
25132    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25133   as_expr=expr
25134 else
25135   as_expr=false
25136 fi
25137
25138 rm -f conf$$ conf$$.exe conf$$.file
25139 if test -d conf$$.dir; then
25140   rm -f conf$$.dir/conf$$.file
25141 else
25142   rm -f conf$$.dir
25143   mkdir conf$$.dir
25144 fi
25145 echo >conf$$.file
25146 if ln -s conf$$.file conf$$ 2>/dev/null; then
25147   as_ln_s='ln -s'
25148   # ... but there are two gotchas:
25149   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25150   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25151   # In both cases, we have to default to `cp -p'.
25152   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25153     as_ln_s='cp -p'
25154 elif ln conf$$.file conf$$ 2>/dev/null; then
25155   as_ln_s=ln
25156 else
25157   as_ln_s='cp -p'
25158 fi
25159 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25160 rmdir conf$$.dir 2>/dev/null
25161
25162 if mkdir -p . 2>/dev/null; then
25163   as_mkdir_p=:
25164 else
25165   test -d ./-p && rmdir ./-p
25166   as_mkdir_p=false
25167 fi
25168
25169 if test -x / >/dev/null 2>&1; then
25170   as_test_x='test -x'
25171 else
25172   if ls -dL / >/dev/null 2>&1; then
25173     as_ls_L_option=L
25174   else
25175     as_ls_L_option=
25176   fi
25177   as_test_x='
25178     eval sh -c '\''
25179       if test -d "$1"; then
25180         test -d "$1/.";
25181       else
25182         case $1 in
25183         -*)set "./$1";;
25184         esac;
25185         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
25186         ???[sx]*):;;*)false;;esac;fi
25187     '\'' sh
25188   '
25189 fi
25190 as_executable_p=$as_test_x
25191
25192 # Sed expression to map a string onto a valid CPP name.
25193 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25194
25195 # Sed expression to map a string onto a valid variable name.
25196 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25197
25198
25199 exec 6>&1
25200
25201 # Save the log message, to keep $[0] and so on meaningful, and to
25202 # report actual input values of CONFIG_FILES etc. instead of their
25203 # values after options handling.
25204 ac_log="
25205 This file was extended by $as_me, which was
25206 generated by GNU Autoconf 2.61.  Invocation command line was
25207
25208   CONFIG_FILES    = $CONFIG_FILES
25209   CONFIG_HEADERS  = $CONFIG_HEADERS
25210   CONFIG_LINKS    = $CONFIG_LINKS
25211   CONFIG_COMMANDS = $CONFIG_COMMANDS
25212   $ $0 $@
25213
25214 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25215 "
25216
25217 _ACEOF
25218
25219 cat >>$CONFIG_STATUS <<_ACEOF
25220 # Files that config.status was made for.
25221 config_files="$ac_config_files"
25222 config_headers="$ac_config_headers"
25223 config_commands="$ac_config_commands"
25224
25225 _ACEOF
25226
25227 cat >>$CONFIG_STATUS <<\_ACEOF
25228 ac_cs_usage="\
25229 \`$as_me' instantiates files from templates according to the
25230 current configuration.
25231
25232 Usage: $0 [OPTIONS] [FILE]...
25233
25234   -h, --help       print this help, then exit
25235   -V, --version    print version number and configuration settings, then exit
25236   -q, --quiet      do not print progress messages
25237   -d, --debug      don't remove temporary files
25238       --recheck    update $as_me by reconfiguring in the same conditions
25239   --file=FILE[:TEMPLATE]
25240                    instantiate the configuration file FILE
25241   --header=FILE[:TEMPLATE]
25242                    instantiate the configuration header FILE
25243
25244 Configuration files:
25245 $config_files
25246
25247 Configuration headers:
25248 $config_headers
25249
25250 Configuration commands:
25251 $config_commands
25252
25253 Report bugs to <bug-autoconf@gnu.org>."
25254
25255 _ACEOF
25256 cat >>$CONFIG_STATUS <<_ACEOF
25257 ac_cs_version="\\
25258 config.status
25259 configured by $0, generated by GNU Autoconf 2.61,
25260   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25261
25262 Copyright (C) 2006 Free Software Foundation, Inc.
25263 This config.status script is free software; the Free Software Foundation
25264 gives unlimited permission to copy, distribute and modify it."
25265
25266 ac_pwd='$ac_pwd'
25267 srcdir='$srcdir'
25268 _ACEOF
25269
25270 cat >>$CONFIG_STATUS <<\_ACEOF
25271 # If no file are specified by the user, then we need to provide default
25272 # value.  By we need to know if files were specified by the user.
25273 ac_need_defaults=:
25274 while test $# != 0
25275 do
25276   case $1 in
25277   --*=*)
25278     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25279     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25280     ac_shift=:
25281     ;;
25282   *)
25283     ac_option=$1
25284     ac_optarg=$2
25285     ac_shift=shift
25286     ;;
25287   esac
25288
25289   case $ac_option in
25290   # Handling of the options.
25291   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25292     ac_cs_recheck=: ;;
25293   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25294     echo "$ac_cs_version"; exit ;;
25295   --debug | --debu | --deb | --de | --d | -d )
25296     debug=: ;;
25297   --file | --fil | --fi | --f )
25298     $ac_shift
25299     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25300     ac_need_defaults=false;;
25301   --header | --heade | --head | --hea )
25302     $ac_shift
25303     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25304     ac_need_defaults=false;;
25305   --he | --h)
25306     # Conflict between --help and --header
25307     { echo "$as_me: error: ambiguous option: $1
25308 Try \`$0 --help' for more information." >&2
25309    { (exit 1); exit 1; }; };;
25310   --help | --hel | -h )
25311     echo "$ac_cs_usage"; exit ;;
25312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25313   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25314     ac_cs_silent=: ;;
25315
25316   # This is an error.
25317   -*) { echo "$as_me: error: unrecognized option: $1
25318 Try \`$0 --help' for more information." >&2
25319    { (exit 1); exit 1; }; } ;;
25320
25321   *) ac_config_targets="$ac_config_targets $1"
25322      ac_need_defaults=false ;;
25323
25324   esac
25325   shift
25326 done
25327
25328 ac_configure_extra_args=
25329
25330 if $ac_cs_silent; then
25331   exec 6>/dev/null
25332   ac_configure_extra_args="$ac_configure_extra_args --silent"
25333 fi
25334
25335 _ACEOF
25336 cat >>$CONFIG_STATUS <<_ACEOF
25337 if \$ac_cs_recheck; then
25338   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25339   CONFIG_SHELL=$SHELL
25340   export CONFIG_SHELL
25341   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25342 fi
25343
25344 _ACEOF
25345 cat >>$CONFIG_STATUS <<\_ACEOF
25346 exec 5>>config.log
25347 {
25348   echo
25349   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25350 ## Running $as_me. ##
25351 _ASBOX
25352   echo "$ac_log"
25353 } >&5
25354
25355 _ACEOF
25356 cat >>$CONFIG_STATUS <<_ACEOF
25357 _ACEOF
25358
25359 cat >>$CONFIG_STATUS <<\_ACEOF
25360
25361 # Handling of arguments.
25362 for ac_config_target in $ac_config_targets
25363 do
25364   case $ac_config_target in
25365     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25366     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25367     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25368     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25369     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25370     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25371     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25372     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25373     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25374     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25375     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25376     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25377     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25378     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25379     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25380     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25381     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25382     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25383
25384   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25385 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25386    { (exit 1); exit 1; }; };;
25387   esac
25388 done
25389
25390
25391 # If the user did not use the arguments to specify the items to instantiate,
25392 # then the envvar interface is used.  Set only those that are not.
25393 # We use the long form for the default assignment because of an extremely
25394 # bizarre bug on SunOS 4.1.3.
25395 if $ac_need_defaults; then
25396   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25397   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25398   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25399 fi
25400
25401 # Have a temporary directory for convenience.  Make it in the build tree
25402 # simply because there is no reason against having it here, and in addition,
25403 # creating and moving files from /tmp can sometimes cause problems.
25404 # Hook for its removal unless debugging.
25405 # Note that there is a small window in which the directory will not be cleaned:
25406 # after its creation but before its name has been assigned to `$tmp'.
25407 $debug ||
25408 {
25409   tmp=
25410   trap 'exit_status=$?
25411   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25412 ' 0
25413   trap '{ (exit 1); exit 1; }' 1 2 13 15
25414 }
25415 # Create a (secure) tmp directory for tmp files.
25416
25417 {
25418   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25419   test -n "$tmp" && test -d "$tmp"
25420 }  ||
25421 {
25422   tmp=./conf$$-$RANDOM
25423   (umask 077 && mkdir "$tmp")
25424 } ||
25425 {
25426    echo "$me: cannot create a temporary directory in ." >&2
25427    { (exit 1); exit 1; }
25428 }
25429
25430 #
25431 # Set up the sed scripts for CONFIG_FILES section.
25432 #
25433
25434 # No need to generate the scripts if there are no CONFIG_FILES.
25435 # This happens for instance when ./config.status config.h
25436 if test -n "$CONFIG_FILES"; then
25437
25438 _ACEOF
25439
25440
25441
25442 ac_delim='%!_!# '
25443 for ac_last_try in false false false false false :; do
25444   cat >conf$$subs.sed <<_ACEOF
25445 SHELL!$SHELL$ac_delim
25446 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25447 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25448 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25449 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25450 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25451 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25452 exec_prefix!$exec_prefix$ac_delim
25453 prefix!$prefix$ac_delim
25454 program_transform_name!$program_transform_name$ac_delim
25455 bindir!$bindir$ac_delim
25456 sbindir!$sbindir$ac_delim
25457 libexecdir!$libexecdir$ac_delim
25458 datarootdir!$datarootdir$ac_delim
25459 datadir!$datadir$ac_delim
25460 sysconfdir!$sysconfdir$ac_delim
25461 sharedstatedir!$sharedstatedir$ac_delim
25462 localstatedir!$localstatedir$ac_delim
25463 includedir!$includedir$ac_delim
25464 oldincludedir!$oldincludedir$ac_delim
25465 docdir!$docdir$ac_delim
25466 infodir!$infodir$ac_delim
25467 htmldir!$htmldir$ac_delim
25468 dvidir!$dvidir$ac_delim
25469 pdfdir!$pdfdir$ac_delim
25470 psdir!$psdir$ac_delim
25471 libdir!$libdir$ac_delim
25472 localedir!$localedir$ac_delim
25473 mandir!$mandir$ac_delim
25474 DEFS!$DEFS$ac_delim
25475 ECHO_C!$ECHO_C$ac_delim
25476 ECHO_N!$ECHO_N$ac_delim
25477 ECHO_T!$ECHO_T$ac_delim
25478 LIBS!$LIBS$ac_delim
25479 build_alias!$build_alias$ac_delim
25480 host_alias!$host_alias$ac_delim
25481 target_alias!$target_alias$ac_delim
25482 CC!$CC$ac_delim
25483 CFLAGS!$CFLAGS$ac_delim
25484 LDFLAGS!$LDFLAGS$ac_delim
25485 CPPFLAGS!$CPPFLAGS$ac_delim
25486 ac_ct_CC!$ac_ct_CC$ac_delim
25487 EXEEXT!$EXEEXT$ac_delim
25488 OBJEXT!$OBJEXT$ac_delim
25489 CXX!$CXX$ac_delim
25490 CXXFLAGS!$CXXFLAGS$ac_delim
25491 ac_ct_CXX!$ac_ct_CXX$ac_delim
25492 CPP!$CPP$ac_delim
25493 GREP!$GREP$ac_delim
25494 EGREP!$EGREP$ac_delim
25495 RANLIB!$RANLIB$ac_delim
25496 GMAKE!$GMAKE$ac_delim
25497 MAKE!$MAKE$ac_delim
25498 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
25499 LIBTOOL!$LIBTOOL$ac_delim
25500 build!$build$ac_delim
25501 build_cpu!$build_cpu$ac_delim
25502 build_vendor!$build_vendor$ac_delim
25503 build_os!$build_os$ac_delim
25504 host!$host$ac_delim
25505 host_cpu!$host_cpu$ac_delim
25506 host_vendor!$host_vendor$ac_delim
25507 host_os!$host_os$ac_delim
25508 LN_S!$LN_S$ac_delim
25509 ECHO!$ECHO$ac_delim
25510 AR!$AR$ac_delim
25511 STRIP!$STRIP$ac_delim
25512 CXXCPP!$CXXCPP$ac_delim
25513 F77!$F77$ac_delim
25514 FFLAGS!$FFLAGS$ac_delim
25515 ac_ct_F77!$ac_ct_F77$ac_delim
25516 logdir!$logdir$ac_delim
25517 radacctdir!$radacctdir$ac_delim
25518 raddbdir!$raddbdir$ac_delim
25519 PERL!$PERL$ac_delim
25520 SNMPGET!$SNMPGET$ac_delim
25521 SNMPWALK!$SNMPWALK$ac_delim
25522 RUSERS!$RUSERS$ac_delim
25523 ACLOCAL!$ACLOCAL$ac_delim
25524 AUTOCONF!$AUTOCONF$ac_delim
25525 AUTOHEADER!$AUTOHEADER$ac_delim
25526 LOCATE!$LOCATE$ac_delim
25527 DIRNAME!$DIRNAME$ac_delim
25528 REGEX!$REGEX$ac_delim
25529 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
25530 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
25531 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
25532 PCAP_LIBS!$PCAP_LIBS$ac_delim
25533 LIBPREFIX!$LIBPREFIX$ac_delim
25534 CRYPTLIB!$CRYPTLIB$ac_delim
25535 HOSTINFO!$HOSTINFO$ac_delim
25536 LIBLTDL!$LIBLTDL$ac_delim
25537 INCLTDL!$INCLTDL$ac_delim
25538 subdirs!$subdirs$ac_delim
25539 MODULES!$MODULES$ac_delim
25540 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
25541 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
25542 _ACEOF
25543
25544   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25545     break
25546   elif $ac_last_try; then
25547     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25548 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25549    { (exit 1); exit 1; }; }
25550   else
25551     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25552   fi
25553 done
25554
25555 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25556 if test -n "$ac_eof"; then
25557   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25558   ac_eof=`expr $ac_eof + 1`
25559 fi
25560
25561 cat >>$CONFIG_STATUS <<_ACEOF
25562 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25564 _ACEOF
25565 sed '
25566 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25567 s/^/s,@/; s/!/@,|#_!!_#|/
25568 :n
25569 t n
25570 s/'"$ac_delim"'$/,g/; t
25571 s/$/\\/; p
25572 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25573 ' >>$CONFIG_STATUS <conf$$subs.sed
25574 rm -f conf$$subs.sed
25575 cat >>$CONFIG_STATUS <<_ACEOF
25576 CEOF$ac_eof
25577 _ACEOF
25578
25579
25580 ac_delim='%!_!# '
25581 for ac_last_try in false false false false false :; do
25582   cat >conf$$subs.sed <<_ACEOF
25583 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
25584 STATIC_MODULES!$STATIC_MODULES$ac_delim
25585 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
25586 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
25587 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
25588 LIBOBJS!$LIBOBJS$ac_delim
25589 LTLIBOBJS!$LTLIBOBJS$ac_delim
25590 _ACEOF
25591
25592   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
25593     break
25594   elif $ac_last_try; then
25595     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25596 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25597    { (exit 1); exit 1; }; }
25598   else
25599     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25600   fi
25601 done
25602
25603 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25604 if test -n "$ac_eof"; then
25605   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25606   ac_eof=`expr $ac_eof + 1`
25607 fi
25608
25609 cat >>$CONFIG_STATUS <<_ACEOF
25610 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25612 _ACEOF
25613 sed '
25614 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25615 s/^/s,@/; s/!/@,|#_!!_#|/
25616 :n
25617 t n
25618 s/'"$ac_delim"'$/,g/; t
25619 s/$/\\/; p
25620 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25621 ' >>$CONFIG_STATUS <conf$$subs.sed
25622 rm -f conf$$subs.sed
25623 cat >>$CONFIG_STATUS <<_ACEOF
25624 :end
25625 s/|#_!!_#|//g
25626 CEOF$ac_eof
25627 _ACEOF
25628
25629
25630 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25631 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25632 # trailing colons and then remove the whole line if VPATH becomes empty
25633 # (actually we leave an empty line to preserve line numbers).
25634 if test "x$srcdir" = x.; then
25635   ac_vpsub='/^[  ]*VPATH[        ]*=/{
25636 s/:*\$(srcdir):*/:/
25637 s/:*\${srcdir}:*/:/
25638 s/:*@srcdir@:*/:/
25639 s/^\([^=]*=[     ]*\):*/\1/
25640 s/:*$//
25641 s/^[^=]*=[       ]*$//
25642 }'
25643 fi
25644
25645 cat >>$CONFIG_STATUS <<\_ACEOF
25646 fi # test -n "$CONFIG_FILES"
25647
25648
25649 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
25650 do
25651   case $ac_tag in
25652   :[FHLC]) ac_mode=$ac_tag; continue;;
25653   esac
25654   case $ac_mode$ac_tag in
25655   :[FHL]*:*);;
25656   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25657 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25658    { (exit 1); exit 1; }; };;
25659   :[FH]-) ac_tag=-:-;;
25660   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25661   esac
25662   ac_save_IFS=$IFS
25663   IFS=:
25664   set x $ac_tag
25665   IFS=$ac_save_IFS
25666   shift
25667   ac_file=$1
25668   shift
25669
25670   case $ac_mode in
25671   :L) ac_source=$1;;
25672   :[FH])
25673     ac_file_inputs=
25674     for ac_f
25675     do
25676       case $ac_f in
25677       -) ac_f="$tmp/stdin";;
25678       *) # Look for the file first in the build tree, then in the source tree
25679          # (if the path is not absolute).  The absolute path cannot be DOS-style,
25680          # because $ac_f cannot contain `:'.
25681          test -f "$ac_f" ||
25682            case $ac_f in
25683            [\\/$]*) false;;
25684            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25685            esac ||
25686            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25687 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25688    { (exit 1); exit 1; }; };;
25689       esac
25690       ac_file_inputs="$ac_file_inputs $ac_f"
25691     done
25692
25693     # Let's still pretend it is `configure' which instantiates (i.e., don't
25694     # use $as_me), people would be surprised to read:
25695     #    /* config.h.  Generated by config.status.  */
25696     configure_input="Generated from "`IFS=:
25697           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25698     if test x"$ac_file" != x-; then
25699       configure_input="$ac_file.  $configure_input"
25700       { echo "$as_me:$LINENO: creating $ac_file" >&5
25701 echo "$as_me: creating $ac_file" >&6;}
25702     fi
25703
25704     case $ac_tag in
25705     *:-:* | *:-) cat >"$tmp/stdin";;
25706     esac
25707     ;;
25708   esac
25709
25710   ac_dir=`$as_dirname -- "$ac_file" ||
25711 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25712          X"$ac_file" : 'X\(//\)[^/]' \| \
25713          X"$ac_file" : 'X\(//\)$' \| \
25714          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25715 echo X"$ac_file" |
25716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25717             s//\1/
25718             q
25719           }
25720           /^X\(\/\/\)[^/].*/{
25721             s//\1/
25722             q
25723           }
25724           /^X\(\/\/\)$/{
25725             s//\1/
25726             q
25727           }
25728           /^X\(\/\).*/{
25729             s//\1/
25730             q
25731           }
25732           s/.*/./; q'`
25733   { as_dir="$ac_dir"
25734   case $as_dir in #(
25735   -*) as_dir=./$as_dir;;
25736   esac
25737   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25738     as_dirs=
25739     while :; do
25740       case $as_dir in #(
25741       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25742       *) as_qdir=$as_dir;;
25743       esac
25744       as_dirs="'$as_qdir' $as_dirs"
25745       as_dir=`$as_dirname -- "$as_dir" ||
25746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25747          X"$as_dir" : 'X\(//\)[^/]' \| \
25748          X"$as_dir" : 'X\(//\)$' \| \
25749          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25750 echo X"$as_dir" |
25751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25752             s//\1/
25753             q
25754           }
25755           /^X\(\/\/\)[^/].*/{
25756             s//\1/
25757             q
25758           }
25759           /^X\(\/\/\)$/{
25760             s//\1/
25761             q
25762           }
25763           /^X\(\/\).*/{
25764             s//\1/
25765             q
25766           }
25767           s/.*/./; q'`
25768       test -d "$as_dir" && break
25769     done
25770     test -z "$as_dirs" || eval "mkdir $as_dirs"
25771   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25772 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25773    { (exit 1); exit 1; }; }; }
25774   ac_builddir=.
25775
25776 case "$ac_dir" in
25777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25778 *)
25779   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25780   # A ".." for each directory in $ac_dir_suffix.
25781   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25782   case $ac_top_builddir_sub in
25783   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25784   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25785   esac ;;
25786 esac
25787 ac_abs_top_builddir=$ac_pwd
25788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25789 # for backward compatibility:
25790 ac_top_builddir=$ac_top_build_prefix
25791
25792 case $srcdir in
25793   .)  # We are building in place.
25794     ac_srcdir=.
25795     ac_top_srcdir=$ac_top_builddir_sub
25796     ac_abs_top_srcdir=$ac_pwd ;;
25797   [\\/]* | ?:[\\/]* )  # Absolute name.
25798     ac_srcdir=$srcdir$ac_dir_suffix;
25799     ac_top_srcdir=$srcdir
25800     ac_abs_top_srcdir=$srcdir ;;
25801   *) # Relative name.
25802     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25803     ac_top_srcdir=$ac_top_build_prefix$srcdir
25804     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25805 esac
25806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25807
25808
25809   case $ac_mode in
25810   :F)
25811   #
25812   # CONFIG_FILE
25813   #
25814
25815 _ACEOF
25816
25817 cat >>$CONFIG_STATUS <<\_ACEOF
25818 # If the template does not know about datarootdir, expand it.
25819 # FIXME: This hack should be removed a few years after 2.60.
25820 ac_datarootdir_hack=; ac_datarootdir_seen=
25821
25822 case `sed -n '/datarootdir/ {
25823   p
25824   q
25825 }
25826 /@datadir@/p
25827 /@docdir@/p
25828 /@infodir@/p
25829 /@localedir@/p
25830 /@mandir@/p
25831 ' $ac_file_inputs` in
25832 *datarootdir*) ac_datarootdir_seen=yes;;
25833 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25834   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25835 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25836 _ACEOF
25837 cat >>$CONFIG_STATUS <<_ACEOF
25838   ac_datarootdir_hack='
25839   s&@datadir@&$datadir&g
25840   s&@docdir@&$docdir&g
25841   s&@infodir@&$infodir&g
25842   s&@localedir@&$localedir&g
25843   s&@mandir@&$mandir&g
25844     s&\\\${datarootdir}&$datarootdir&g' ;;
25845 esac
25846 _ACEOF
25847
25848 # Neutralize VPATH when `$srcdir' = `.'.
25849 # Shell code in configure.ac might set extrasub.
25850 # FIXME: do we really want to maintain this feature?
25851 cat >>$CONFIG_STATUS <<_ACEOF
25852   sed "$ac_vpsub
25853 $extrasub
25854 _ACEOF
25855 cat >>$CONFIG_STATUS <<\_ACEOF
25856 :t
25857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25858 s&@configure_input@&$configure_input&;t t
25859 s&@top_builddir@&$ac_top_builddir_sub&;t t
25860 s&@srcdir@&$ac_srcdir&;t t
25861 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25862 s&@top_srcdir@&$ac_top_srcdir&;t t
25863 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25864 s&@builddir@&$ac_builddir&;t t
25865 s&@abs_builddir@&$ac_abs_builddir&;t t
25866 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25867 $ac_datarootdir_hack
25868 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25869
25870 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25871   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25872   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25873   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25874 which seems to be undefined.  Please make sure it is defined." >&5
25875 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25876 which seems to be undefined.  Please make sure it is defined." >&2;}
25877
25878   rm -f "$tmp/stdin"
25879   case $ac_file in
25880   -) cat "$tmp/out"; rm -f "$tmp/out";;
25881   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25882   esac
25883  ;;
25884   :H)
25885   #
25886   # CONFIG_HEADER
25887   #
25888 _ACEOF
25889
25890 # Transform confdefs.h into a sed script `conftest.defines', that
25891 # substitutes the proper values into config.h.in to produce config.h.
25892 rm -f conftest.defines conftest.tail
25893 # First, append a space to every undef/define line, to ease matching.
25894 echo 's/$/ /' >conftest.defines
25895 # Then, protect against being on the right side of a sed subst, or in
25896 # an unquoted here document, in config.status.  If some macros were
25897 # called several times there might be several #defines for the same
25898 # symbol, which is useless.  But do not sort them, since the last
25899 # AC_DEFINE must be honored.
25900 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25901 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25902 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25903 # PARAMS is the parameter list in the macro definition--in most cases, it's
25904 # just an empty string.
25905 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
25906 ac_dB='\\)[      (].*,\\1define\\2'
25907 ac_dC=' '
25908 ac_dD=' ,'
25909
25910 uniq confdefs.h |
25911   sed -n '
25912         t rset
25913         :rset
25914         s/^[     ]*#[    ]*define[       ][      ]*//
25915         t ok
25916         d
25917         :ok
25918         s/[\\&,]/\\&/g
25919         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25920         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25921   ' >>conftest.defines
25922
25923 # Remove the space that was appended to ease matching.
25924 # Then replace #undef with comments.  This is necessary, for
25925 # example, in the case of _POSIX_SOURCE, which is predefined and required
25926 # on some systems where configure will not decide to define it.
25927 # (The regexp can be short, since the line contains either #define or #undef.)
25928 echo 's/ $//
25929 s,^[     #]*u.*,/* & */,' >>conftest.defines
25930
25931 # Break up conftest.defines:
25932 ac_max_sed_lines=50
25933
25934 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25935 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25936 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25937 # et cetera.
25938 ac_in='$ac_file_inputs'
25939 ac_out='"$tmp/out1"'
25940 ac_nxt='"$tmp/out2"'
25941
25942 while :
25943 do
25944   # Write a here document:
25945     cat >>$CONFIG_STATUS <<_ACEOF
25946     # First, check the format of the line:
25947     cat >"\$tmp/defines.sed" <<\\CEOF
25948 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
25949 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
25950 b
25951 :def
25952 _ACEOF
25953   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25954   echo 'CEOF
25955     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25956   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25957   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25958   grep . conftest.tail >/dev/null || break
25959   rm -f conftest.defines
25960   mv conftest.tail conftest.defines
25961 done
25962 rm -f conftest.defines conftest.tail
25963
25964 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25965 cat >>$CONFIG_STATUS <<\_ACEOF
25966   if test x"$ac_file" != x-; then
25967     echo "/* $configure_input  */" >"$tmp/config.h"
25968     cat "$ac_result" >>"$tmp/config.h"
25969     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25970       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25971 echo "$as_me: $ac_file is unchanged" >&6;}
25972     else
25973       rm -f $ac_file
25974       mv "$tmp/config.h" $ac_file
25975     fi
25976   else
25977     echo "/* $configure_input  */"
25978     cat "$ac_result"
25979   fi
25980   rm -f "$tmp/out12"
25981  ;;
25982
25983   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25984 echo "$as_me: executing $ac_file commands" >&6;}
25985  ;;
25986   esac
25987
25988
25989   case $ac_file$ac_mode in
25990     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
25991     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
25992     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
25993     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
25994
25995   esac
25996 done # for ac_tag
25997
25998
25999 { (exit 0); exit 0; }
26000 _ACEOF
26001 chmod +x $CONFIG_STATUS
26002 ac_clean_files=$ac_clean_files_save
26003
26004
26005 # configure is writing to config.log, and then calls config.status.
26006 # config.status does its own redirection, appending to config.log.
26007 # Unfortunately, on DOS this fails, as config.log is still kept open
26008 # by configure, so config.status won't be able to write to it; its
26009 # output is simply discarded.  So we exec the FD to /dev/null,
26010 # effectively closing config.log, so it can be properly (re)opened and
26011 # appended to by config.status.  When coming back to configure, we
26012 # need to make the FD available again.
26013 if test "$no_create" != yes; then
26014   ac_cs_success=:
26015   ac_config_status_args=
26016   test "$silent" = yes &&
26017     ac_config_status_args="$ac_config_status_args --quiet"
26018   exec 5>/dev/null
26019   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26020   exec 5>>config.log
26021   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26022   # would make configure fail if this is the last instruction.
26023   $ac_cs_success || { (exit 1); exit 1; }
26024 fi
26025
26026 #
26027 # CONFIG_SUBDIRS section.
26028 #
26029 if test "$no_recursion" != yes; then
26030
26031   # Remove --cache-file and --srcdir arguments so they do not pile up.
26032   ac_sub_configure_args=
26033   ac_prev=
26034   eval "set x $ac_configure_args"
26035   shift
26036   for ac_arg
26037   do
26038     if test -n "$ac_prev"; then
26039       ac_prev=
26040       continue
26041     fi
26042     case $ac_arg in
26043     -cache-file | --cache-file | --cache-fil | --cache-fi \
26044     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26045       ac_prev=cache_file ;;
26046     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26047     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26048     | --c=*)
26049       ;;
26050     --config-cache | -C)
26051       ;;
26052     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26053       ac_prev=srcdir ;;
26054     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26055       ;;
26056     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26057       ac_prev=prefix ;;
26058     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26059       ;;
26060     *)
26061       case $ac_arg in
26062       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26063       esac
26064       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
26065     esac
26066   done
26067
26068   # Always prepend --prefix to ensure using the same prefix
26069   # in subdir configurations.
26070   ac_arg="--prefix=$prefix"
26071   case $ac_arg in
26072   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
26073   esac
26074   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
26075
26076   # Pass --silent
26077   if test "$silent" = yes; then
26078     ac_sub_configure_args="--silent $ac_sub_configure_args"
26079   fi
26080
26081   ac_popdir=`pwd`
26082   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26083
26084     # Do not complain, so a configure script can configure whichever
26085     # parts of a large source tree are present.
26086     test -d "$srcdir/$ac_dir" || continue
26087
26088     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
26089     echo "$as_me:$LINENO: $ac_msg" >&5
26090     echo "$ac_msg" >&6
26091     { as_dir="$ac_dir"
26092   case $as_dir in #(
26093   -*) as_dir=./$as_dir;;
26094   esac
26095   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26096     as_dirs=
26097     while :; do
26098       case $as_dir in #(
26099       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26100       *) as_qdir=$as_dir;;
26101       esac
26102       as_dirs="'$as_qdir' $as_dirs"
26103       as_dir=`$as_dirname -- "$as_dir" ||
26104 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26105          X"$as_dir" : 'X\(//\)[^/]' \| \
26106          X"$as_dir" : 'X\(//\)$' \| \
26107          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26108 echo X"$as_dir" |
26109     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26110             s//\1/
26111             q
26112           }
26113           /^X\(\/\/\)[^/].*/{
26114             s//\1/
26115             q
26116           }
26117           /^X\(\/\/\)$/{
26118             s//\1/
26119             q
26120           }
26121           /^X\(\/\).*/{
26122             s//\1/
26123             q
26124           }
26125           s/.*/./; q'`
26126       test -d "$as_dir" && break
26127     done
26128     test -z "$as_dirs" || eval "mkdir $as_dirs"
26129   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26130 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26131    { (exit 1); exit 1; }; }; }
26132     ac_builddir=.
26133
26134 case "$ac_dir" in
26135 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26136 *)
26137   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26138   # A ".." for each directory in $ac_dir_suffix.
26139   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26140   case $ac_top_builddir_sub in
26141   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26142   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26143   esac ;;
26144 esac
26145 ac_abs_top_builddir=$ac_pwd
26146 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26147 # for backward compatibility:
26148 ac_top_builddir=$ac_top_build_prefix
26149
26150 case $srcdir in
26151   .)  # We are building in place.
26152     ac_srcdir=.
26153     ac_top_srcdir=$ac_top_builddir_sub
26154     ac_abs_top_srcdir=$ac_pwd ;;
26155   [\\/]* | ?:[\\/]* )  # Absolute name.
26156     ac_srcdir=$srcdir$ac_dir_suffix;
26157     ac_top_srcdir=$srcdir
26158     ac_abs_top_srcdir=$srcdir ;;
26159   *) # Relative name.
26160     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26161     ac_top_srcdir=$ac_top_build_prefix$srcdir
26162     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26163 esac
26164 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26165
26166
26167     cd "$ac_dir"
26168
26169     # Check for guested configure; otherwise get Cygnus style configure.
26170     if test -f "$ac_srcdir/configure.gnu"; then
26171       ac_sub_configure=$ac_srcdir/configure.gnu
26172     elif test -f "$ac_srcdir/configure"; then
26173       ac_sub_configure=$ac_srcdir/configure
26174     elif test -f "$ac_srcdir/configure.in"; then
26175       # This should be Cygnus configure.
26176       ac_sub_configure=$ac_aux_dir/configure
26177     else
26178       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26179 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26180       ac_sub_configure=
26181     fi
26182
26183     # The recursion is here.
26184     if test -n "$ac_sub_configure"; then
26185       # Make the cache file name correct relative to the subdirectory.
26186       case $cache_file in
26187       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26188       *) # Relative name.
26189         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
26190       esac
26191
26192       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26193 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26194       # The eval makes quoting arguments work.
26195       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
26196            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
26197         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26198 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26199    { (exit 1); exit 1; }; }
26200     fi
26201
26202     cd "$ac_popdir"
26203   done
26204 fi
26205
26206