Re-did via autoreconf
[freeradius.git] / configure
1 #! /bin/sh
2 # From configure.in Revision.
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 SED
835 LN_S
836 ECHO
837 AR
838 STRIP
839 DSYMUTIL
840 NMEDIT
841 CXXCPP
842 F77
843 FFLAGS
844 ac_ct_F77
845 logdir
846 radacctdir
847 raddbdir
848 PERL
849 SNMPGET
850 SNMPWALK
851 RUSERS
852 ACLOCAL
853 AUTOCONF
854 AUTOHEADER
855 LOCATE
856 DIRNAME
857 LIBREADLINE
858 REGEX
859 REGEX_EXTENDED
860 OPENSSL_INCLUDE
861 OPENSSL_LIBS
862 PCAP_LIBS
863 LIBPREFIX
864 CRYPTLIB
865 HOSTINFO
866 LIBLTDL
867 INCLTDL
868 subdirs
869 MODULES
870 INSTALLSTRIP
871 USE_SHARED_LIBS
872 USE_STATIC_LIBS
873 STATIC_MODULES
874 RADIUSD_MAJOR_VERSION
875 RADIUSD_MINOR_VERSION
876 RADIUSD_VERSION
877 LIBOBJS
878 LTLIBOBJS'
879 ac_subst_files=''
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CXX
889 CXXFLAGS
890 CCC
891 CPP
892 CXXCPP
893 F77
894 FFLAGS'
895 ac_subdirs_all='$LTDL_SUBDIRS $mysubdirs'
896
897 # Initialize some variables set by options.
898 ac_init_help=
899 ac_init_version=false
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
953
954   case $ac_option in
955   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *)    ac_optarg=yes ;;
957   esac
958
959   # Accept the important Cygnus configure options, so we can diagnose typos.
960
961   case $ac_dashdash$ac_option in
962   --)
963     ac_dashdash=yes ;;
964
965   -bindir | --bindir | --bindi | --bind | --bin | --bi)
966     ac_prev=bindir ;;
967   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
968     bindir=$ac_optarg ;;
969
970   -build | --build | --buil | --bui | --bu)
971     ac_prev=build_alias ;;
972   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
973     build_alias=$ac_optarg ;;
974
975   -cache-file | --cache-file | --cache-fil | --cache-fi \
976   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
977     ac_prev=cache_file ;;
978   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
979   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
980     cache_file=$ac_optarg ;;
981
982   --config-cache | -C)
983     cache_file=config.cache ;;
984
985   -datadir | --datadir | --datadi | --datad)
986     ac_prev=datadir ;;
987   -datadir=* | --datadir=* | --datadi=* | --datad=*)
988     datadir=$ac_optarg ;;
989
990   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
991   | --dataroo | --dataro | --datar)
992     ac_prev=datarootdir ;;
993   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
994   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
995     datarootdir=$ac_optarg ;;
996
997   -disable-* | --disable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=no ;;
1005
1006   -docdir | --docdir | --docdi | --doc | --do)
1007     ac_prev=docdir ;;
1008   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1009     docdir=$ac_optarg ;;
1010
1011   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1012     ac_prev=dvidir ;;
1013   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1014     dvidir=$ac_optarg ;;
1015
1016   -enable-* | --enable-*)
1017     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1018     # Reject names that are not valid shell variable names.
1019     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021    { (exit 1); exit 1; }; }
1022     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023     eval enable_$ac_feature=\$ac_optarg ;;
1024
1025   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027   | --exec | --exe | --ex)
1028     ac_prev=exec_prefix ;;
1029   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031   | --exec=* | --exe=* | --ex=*)
1032     exec_prefix=$ac_optarg ;;
1033
1034   -gas | --gas | --ga | --g)
1035     # Obsolete; use --with-gas.
1036     with_gas=yes ;;
1037
1038   -help | --help | --hel | --he | -h)
1039     ac_init_help=long ;;
1040   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041     ac_init_help=recursive ;;
1042   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043     ac_init_help=short ;;
1044
1045   -host | --host | --hos | --ho)
1046     ac_prev=host_alias ;;
1047   -host=* | --host=* | --hos=* | --ho=*)
1048     host_alias=$ac_optarg ;;
1049
1050   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051     ac_prev=htmldir ;;
1052   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053   | --ht=*)
1054     htmldir=$ac_optarg ;;
1055
1056   -includedir | --includedir | --includedi | --included | --include \
1057   | --includ | --inclu | --incl | --inc)
1058     ac_prev=includedir ;;
1059   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060   | --includ=* | --inclu=* | --incl=* | --inc=*)
1061     includedir=$ac_optarg ;;
1062
1063   -infodir | --infodir | --infodi | --infod | --info | --inf)
1064     ac_prev=infodir ;;
1065   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066     infodir=$ac_optarg ;;
1067
1068   -libdir | --libdir | --libdi | --libd)
1069     ac_prev=libdir ;;
1070   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071     libdir=$ac_optarg ;;
1072
1073   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074   | --libexe | --libex | --libe)
1075     ac_prev=libexecdir ;;
1076   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077   | --libexe=* | --libex=* | --libe=*)
1078     libexecdir=$ac_optarg ;;
1079
1080   -localedir | --localedir | --localedi | --localed | --locale)
1081     ac_prev=localedir ;;
1082   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083     localedir=$ac_optarg ;;
1084
1085   -localstatedir | --localstatedir | --localstatedi | --localstated \
1086   | --localstate | --localstat | --localsta | --localst | --locals)
1087     ac_prev=localstatedir ;;
1088   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090     localstatedir=$ac_optarg ;;
1091
1092   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093     ac_prev=mandir ;;
1094   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095     mandir=$ac_optarg ;;
1096
1097   -nfp | --nfp | --nf)
1098     # Obsolete; use --without-fp.
1099     with_fp=no ;;
1100
1101   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102   | --no-cr | --no-c | -n)
1103     no_create=yes ;;
1104
1105   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107     no_recursion=yes ;;
1108
1109   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111   | --oldin | --oldi | --old | --ol | --o)
1112     ac_prev=oldincludedir ;;
1113   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116     oldincludedir=$ac_optarg ;;
1117
1118   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119     ac_prev=prefix ;;
1120   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121     prefix=$ac_optarg ;;
1122
1123   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124   | --program-pre | --program-pr | --program-p)
1125     ac_prev=program_prefix ;;
1126   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128     program_prefix=$ac_optarg ;;
1129
1130   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131   | --program-suf | --program-su | --program-s)
1132     ac_prev=program_suffix ;;
1133   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135     program_suffix=$ac_optarg ;;
1136
1137   -program-transform-name | --program-transform-name \
1138   | --program-transform-nam | --program-transform-na \
1139   | --program-transform-n | --program-transform- \
1140   | --program-transform | --program-transfor \
1141   | --program-transfo | --program-transf \
1142   | --program-trans | --program-tran \
1143   | --progr-tra | --program-tr | --program-t)
1144     ac_prev=program_transform_name ;;
1145   -program-transform-name=* | --program-transform-name=* \
1146   | --program-transform-nam=* | --program-transform-na=* \
1147   | --program-transform-n=* | --program-transform-=* \
1148   | --program-transform=* | --program-transfor=* \
1149   | --program-transfo=* | --program-transf=* \
1150   | --program-trans=* | --program-tran=* \
1151   | --progr-tra=* | --program-tr=* | --program-t=*)
1152     program_transform_name=$ac_optarg ;;
1153
1154   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155     ac_prev=pdfdir ;;
1156   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157     pdfdir=$ac_optarg ;;
1158
1159   -psdir | --psdir | --psdi | --psd | --ps)
1160     ac_prev=psdir ;;
1161   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162     psdir=$ac_optarg ;;
1163
1164   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165   | -silent | --silent | --silen | --sile | --sil)
1166     silent=yes ;;
1167
1168   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169     ac_prev=sbindir ;;
1170   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171   | --sbi=* | --sb=*)
1172     sbindir=$ac_optarg ;;
1173
1174   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176   | --sharedst | --shareds | --shared | --share | --shar \
1177   | --sha | --sh)
1178     ac_prev=sharedstatedir ;;
1179   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182   | --sha=* | --sh=*)
1183     sharedstatedir=$ac_optarg ;;
1184
1185   -site | --site | --sit)
1186     ac_prev=site ;;
1187   -site=* | --site=* | --sit=*)
1188     site=$ac_optarg ;;
1189
1190   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191     ac_prev=srcdir ;;
1192   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193     srcdir=$ac_optarg ;;
1194
1195   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196   | --syscon | --sysco | --sysc | --sys | --sy)
1197     ac_prev=sysconfdir ;;
1198   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200     sysconfdir=$ac_optarg ;;
1201
1202   -target | --target | --targe | --targ | --tar | --ta | --t)
1203     ac_prev=target_alias ;;
1204   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205     target_alias=$ac_optarg ;;
1206
1207   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208     verbose=yes ;;
1209
1210   -version | --version | --versio | --versi | --vers | -V)
1211     ac_init_version=: ;;
1212
1213   -with-* | --with-*)
1214     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215     # Reject names that are not valid shell variable names.
1216     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       { echo "$as_me: error: invalid package name: $ac_package" >&2
1218    { (exit 1); exit 1; }; }
1219     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1220     eval with_$ac_package=\$ac_optarg ;;
1221
1222   -without-* | --without-*)
1223     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226       { echo "$as_me: error: invalid package name: $ac_package" >&2
1227    { (exit 1); exit 1; }; }
1228     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229     eval with_$ac_package=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) { echo "$as_me: error: unrecognized option: $ac_option
1250 Try \`$0 --help' for more information." >&2
1251    { (exit 1); exit 1; }; }
1252     ;;
1253
1254   *=*)
1255     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256     # Reject names that are not valid shell variable names.
1257     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1258       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1259    { (exit 1); exit 1; }; }
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   { echo "$as_me: error: missing argument to $ac_option" >&2
1277    { (exit 1); exit 1; }; }
1278 fi
1279
1280 # Be sure to have absolute directory names.
1281 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282                 datadir sysconfdir sharedstatedir localstatedir includedir \
1283                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284                 libdir localedir mandir
1285 do
1286   eval ac_val=\$$ac_var
1287   case $ac_val in
1288     [\\/$]* | ?:[\\/]* )  continue;;
1289     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290   esac
1291   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292    { (exit 1); exit 1; }; }
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307     If a cross compiler is detected then cross compile mode will be used." >&2
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   { echo "$as_me: error: Working directory cannot be determined" >&2
1323    { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   { echo "$as_me: error: pwd does not report name of working directory" >&2
1326    { (exit 1); exit 1; }; }
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331   ac_srcdir_defaulted=yes
1332   # Try the directory containing this script, then the parent directory.
1333   ac_confdir=`$as_dirname -- "$0" ||
1334 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335          X"$0" : 'X\(//\)[^/]' \| \
1336          X"$0" : 'X\(//\)$' \| \
1337          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1338 echo X"$0" |
1339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)[^/].*/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\).*/{
1352             s//\1/
1353             q
1354           }
1355           s/.*/./; q'`
1356   srcdir=$ac_confdir
1357   if test ! -r "$srcdir/$ac_unique_file"; then
1358     srcdir=..
1359   fi
1360 else
1361   ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366    { (exit 1); exit 1; }; }
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1371    { (exit 1); exit 1; }; }
1372         pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375   srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_env_${ac_var}_value=\$${ac_var}
1386   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394   # Omit some internal or obsolete options to make the list less imposing.
1395   # This message is too long to be a string in the A/UX 3.1 sh.
1396   cat <<_ACEOF
1397 \`configure' configures this package to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407   -h, --help              display this help and exit
1408       --help=short        display options specific to this package
1409       --help=recursive    display the short help of all the included packages
1410   -V, --version           display version information and exit
1411   -q, --quiet, --silent   do not print \`checking...' messages
1412       --cache-file=FILE   cache test results in FILE [disabled]
1413   -C, --config-cache      alias for \`--cache-file=config.cache'
1414   -n, --no-create         do not create output files
1415       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418   --prefix=PREFIX         install architecture-independent files in PREFIX
1419                           [$ac_default_prefix]
1420   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                           [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431   --bindir=DIR           user executables [EPREFIX/bin]
1432   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1433   --libexecdir=DIR       program executables [EPREFIX/libexec]
1434   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1435   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1436   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1437   --libdir=DIR           object code libraries [EPREFIX/lib]
1438   --includedir=DIR       C header files [PREFIX/include]
1439   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1440   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1441   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1442   --infodir=DIR          info documentation [DATAROOTDIR/info]
1443   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1444   --mandir=DIR           man documentation [DATAROOTDIR/man]
1445   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1446   --htmldir=DIR          html documentation [DOCDIR]
1447   --dvidir=DIR           dvi documentation [DOCDIR]
1448   --pdfdir=DIR           pdf documentation [DOCDIR]
1449   --psdir=DIR            ps documentation [DOCDIR]
1450 _ACEOF
1451
1452   cat <<\_ACEOF
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461
1462   cat <<\_ACEOF
1463
1464 Optional Features:
1465   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1466   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1467   --disable-largefile     omit support for large files
1468   --enable-shared[=PKGS]  build shared libraries [default=yes]
1469   --enable-static[=PKGS]  build static libraries [default=yes]
1470   --enable-fast-install[=PKGS]
1471                           optimize for fast installation [default=yes]
1472   --disable-libtool-lock  avoid locking (might break parallel builds)
1473   --enable-strict-dependencies  Fail configure on lack of module dependancy.
1474   --enable-developer               Enables features of interest to developers.
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-system-libtool              try to use libtool installed in your system default=use our own
1480   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1481   --with-pic              try to use only PIC/non-PIC objects [default=use
1482                           both]
1483   --with-tags[=TAGS]      include additional configurations [automatic]
1484   --with-docdir=DIR       Directory for documentation DATADIR/doc/freeradius
1485   --with-logdir=DIR       Directory for logfiles LOCALSTATEDIR/log/radius
1486   --with-radacctdir=DIR   Directory for detail files LOGDIR/radacct
1487   --with-raddbdir=DIR     Directory for config files SYSCONFDIR/raddb
1488   --with-ascend-binary    Include support for Ascend binary filter attributes (default=yes)
1489   --with-threads          Use threads, if available.  (default=yes)
1490   --with-vmps             Compile in VMPS support. (default=yes)
1491   --with-dhcp             Compile in DHCP support. (default=no)
1492   --with-static-modules=QUOTED-MODULE-LIST
1493  --with-modules=QUOTED-MODULE-LIST
1494   --with-experimental-modules      Use experimental and unstable modules. (default=no)
1495   --with-openssl                   Use OpenSSL. (default=yes)
1496   --with-openssl-includes=DIR      Directory to look for OpenSSL include files
1497   --with-openssl-libraries=DIR     Directory to look for OpenSSL library files
1498   --with-rlm-FOO-lib-dir=DIR       Directory to look for library files used by module FOO
1499   --with-rlm-FOO-include-dir=DIR   Directory to look for include files used by module FOO
1500   --with-udpfromto        Compile in UDPFROMTO support. (default=no)
1501
1502 Some influential environment variables:
1503   CC          C compiler command
1504   CFLAGS      C compiler flags
1505   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1506               nonstandard directory <lib dir>
1507   LIBS        libraries to pass to the linker, e.g. -l<library>
1508   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509               you have headers in a nonstandard directory <include dir>
1510   CXX         C++ compiler command
1511   CXXFLAGS    C++ compiler flags
1512   CPP         C preprocessor
1513   CXXCPP      C++ preprocessor
1514   F77         Fortran 77 compiler command
1515   FFLAGS      Fortran 77 compiler flags
1516
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1519
1520 _ACEOF
1521 ac_status=$?
1522 fi
1523
1524 if test "$ac_init_help" = "recursive"; then
1525   # If there are subdirs, report their specific --help.
1526   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527     test -d "$ac_dir" || continue
1528     ac_builddir=.
1529
1530 case "$ac_dir" in
1531 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *)
1533   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534   # A ".." for each directory in $ac_dir_suffix.
1535   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536   case $ac_top_builddir_sub in
1537   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539   esac ;;
1540 esac
1541 ac_abs_top_builddir=$ac_pwd
1542 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543 # for backward compatibility:
1544 ac_top_builddir=$ac_top_build_prefix
1545
1546 case $srcdir in
1547   .)  # We are building in place.
1548     ac_srcdir=.
1549     ac_top_srcdir=$ac_top_builddir_sub
1550     ac_abs_top_srcdir=$ac_pwd ;;
1551   [\\/]* | ?:[\\/]* )  # Absolute name.
1552     ac_srcdir=$srcdir$ac_dir_suffix;
1553     ac_top_srcdir=$srcdir
1554     ac_abs_top_srcdir=$srcdir ;;
1555   *) # Relative name.
1556     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557     ac_top_srcdir=$ac_top_build_prefix$srcdir
1558     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559 esac
1560 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562     cd "$ac_dir" || { ac_status=$?; continue; }
1563     # Check for guested configure.
1564     if test -f "$ac_srcdir/configure.gnu"; then
1565       echo &&
1566       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567     elif test -f "$ac_srcdir/configure"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure" --help=recursive
1570     else
1571       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572     fi || ac_status=$?
1573     cd "$ac_pwd" || { ac_status=$?; break; }
1574   done
1575 fi
1576
1577 test -n "$ac_init_help" && exit $ac_status
1578 if $ac_init_version; then
1579   cat <<\_ACEOF
1580 configure
1581 generated by GNU Autoconf 2.61
1582
1583 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1584 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588   exit
1589 fi
1590 cat >config.log <<_ACEOF
1591 This file contains any messages produced by compilers while
1592 running configure, to aid debugging if configure makes a mistake.
1593
1594 It was created by $as_me, which was
1595 generated by GNU Autoconf 2.61.  Invocation command line was
1596
1597   $ $0 $@
1598
1599 _ACEOF
1600 exec 5>>config.log
1601 {
1602 cat <<_ASUNAME
1603 ## --------- ##
1604 ## Platform. ##
1605 ## --------- ##
1606
1607 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612
1613 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1615
1616 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1617 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1618 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1620 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1621 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1622 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1623
1624 _ASUNAME
1625
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1628 do
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   echo "PATH: $as_dir"
1632 done
1633 IFS=$as_save_IFS
1634
1635 } >&5
1636
1637 cat >&5 <<_ACEOF
1638
1639
1640 ## ----------- ##
1641 ## Core tests. ##
1642 ## ----------- ##
1643
1644 _ACEOF
1645
1646
1647 # Keep a trace of the command line.
1648 # Strip out --no-create and --no-recursion so they do not pile up.
1649 # Strip out --silent because we don't want to record it for future runs.
1650 # Also quote any args containing shell meta-characters.
1651 # Make two passes to allow for proper duplicate-argument suppression.
1652 ac_configure_args=
1653 ac_configure_args0=
1654 ac_configure_args1=
1655 ac_must_keep_next=false
1656 for ac_pass in 1 2
1657 do
1658   for ac_arg
1659   do
1660     case $ac_arg in
1661     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663     | -silent | --silent | --silen | --sile | --sil)
1664       continue ;;
1665     *\'*)
1666       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667     esac
1668     case $ac_pass in
1669     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670     2)
1671       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672       if test $ac_must_keep_next = true; then
1673         ac_must_keep_next=false # Got value, back to normal.
1674       else
1675         case $ac_arg in
1676           *=* | --config-cache | -C | -disable-* | --disable-* \
1677           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679           | -with-* | --with-* | -without-* | --without-* | --x)
1680             case "$ac_configure_args0 " in
1681               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682             esac
1683             ;;
1684           -* ) ac_must_keep_next=true ;;
1685         esac
1686       fi
1687       ac_configure_args="$ac_configure_args '$ac_arg'"
1688       ;;
1689     esac
1690   done
1691 done
1692 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694
1695 # When interrupted or exit'd, cleanup temporary files, and complete
1696 # config.log.  We remove comments because anyway the quotes in there
1697 # would cause problems or look ugly.
1698 # WARNING: Use '\'' to represent an apostrophe within the trap.
1699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700 trap 'exit_status=$?
1701   # Save into config.log some information that might help in debugging.
1702   {
1703     echo
1704
1705     cat <<\_ASBOX
1706 ## ---------------- ##
1707 ## Cache variables. ##
1708 ## ---------------- ##
1709 _ASBOX
1710     echo
1711     # The following way of writing the cache mishandles newlines in values,
1712 (
1713   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714     eval ac_val=\$$ac_var
1715     case $ac_val in #(
1716     *${as_nl}*)
1717       case $ac_var in #(
1718       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720       esac
1721       case $ac_var in #(
1722       _ | IFS | as_nl) ;; #(
1723       *) $as_unset $ac_var ;;
1724       esac ;;
1725     esac
1726   done
1727   (set) 2>&1 |
1728     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729     *${as_nl}ac_space=\ *)
1730       sed -n \
1731         "s/'\''/'\''\\\\'\'''\''/g;
1732           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733       ;; #(
1734     *)
1735       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736       ;;
1737     esac |
1738     sort
1739 )
1740     echo
1741
1742     cat <<\_ASBOX
1743 ## ----------------- ##
1744 ## Output variables. ##
1745 ## ----------------- ##
1746 _ASBOX
1747     echo
1748     for ac_var in $ac_subst_vars
1749     do
1750       eval ac_val=\$$ac_var
1751       case $ac_val in
1752       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753       esac
1754       echo "$ac_var='\''$ac_val'\''"
1755     done | sort
1756     echo
1757
1758     if test -n "$ac_subst_files"; then
1759       cat <<\_ASBOX
1760 ## ------------------- ##
1761 ## File substitutions. ##
1762 ## ------------------- ##
1763 _ASBOX
1764       echo
1765       for ac_var in $ac_subst_files
1766       do
1767         eval ac_val=\$$ac_var
1768         case $ac_val in
1769         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770         esac
1771         echo "$ac_var='\''$ac_val'\''"
1772       done | sort
1773       echo
1774     fi
1775
1776     if test -s confdefs.h; then
1777       cat <<\_ASBOX
1778 ## ----------- ##
1779 ## confdefs.h. ##
1780 ## ----------- ##
1781 _ASBOX
1782       echo
1783       cat confdefs.h
1784       echo
1785     fi
1786     test "$ac_signal" != 0 &&
1787       echo "$as_me: caught signal $ac_signal"
1788     echo "$as_me: exit $exit_status"
1789   } >&5
1790   rm -f core *.core core.conftest.* &&
1791     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792     exit $exit_status
1793 ' 0
1794 for ac_signal in 1 2 13 15; do
1795   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796 done
1797 ac_signal=0
1798
1799 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1800 rm -f -r conftest* confdefs.h
1801
1802 # Predefined preprocessor variables.
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_NAME "$PACKAGE_NAME"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_STRING "$PACKAGE_STRING"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826 _ACEOF
1827
1828
1829 # Let the site file select an alternate cache file if it wants to.
1830 # Prefer explicitly selected file to automatically selected ones.
1831 if test -n "$CONFIG_SITE"; then
1832   set x "$CONFIG_SITE"
1833 elif test "x$prefix" != xNONE; then
1834   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835 else
1836   set x "$ac_default_prefix/share/config.site" \
1837         "$ac_default_prefix/etc/config.site"
1838 fi
1839 shift
1840 for ac_site_file
1841 do
1842   if test -r "$ac_site_file"; then
1843     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844 echo "$as_me: loading site script $ac_site_file" >&6;}
1845     sed 's/^/| /' "$ac_site_file" >&5
1846     . "$ac_site_file"
1847   fi
1848 done
1849
1850 if test -r "$cache_file"; then
1851   # Some versions of bash will fail to source /dev/null (special
1852   # files actually), so we avoid doing that.
1853   if test -f "$cache_file"; then
1854     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855 echo "$as_me: loading cache $cache_file" >&6;}
1856     case $cache_file in
1857       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858       *)                      . "./$cache_file";;
1859     esac
1860   fi
1861 else
1862   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863 echo "$as_me: creating cache $cache_file" >&6;}
1864   >$cache_file
1865 fi
1866
1867 # Check that the precious variables saved in the cache have kept the same
1868 # value.
1869 ac_cache_corrupted=false
1870 for ac_var in $ac_precious_vars; do
1871   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872   eval ac_new_set=\$ac_env_${ac_var}_set
1873   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874   eval ac_new_val=\$ac_env_${ac_var}_value
1875   case $ac_old_set,$ac_new_set in
1876     set,)
1877       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879       ac_cache_corrupted=: ;;
1880     ,set)
1881       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883       ac_cache_corrupted=: ;;
1884     ,);;
1885     *)
1886       if test "x$ac_old_val" != "x$ac_new_val"; then
1887         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1890 echo "$as_me:   former value:  $ac_old_val" >&2;}
1891         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1892 echo "$as_me:   current value: $ac_new_val" >&2;}
1893         ac_cache_corrupted=:
1894       fi;;
1895   esac
1896   # Pass precious variables to config.status.
1897   if test "$ac_new_set" = set; then
1898     case $ac_new_val in
1899     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900     *) ac_arg=$ac_var=$ac_new_val ;;
1901     esac
1902     case " $ac_configure_args " in
1903       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1904       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905     esac
1906   fi
1907 done
1908 if $ac_cache_corrupted; then
1909   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913    { (exit 1); exit 1; }; }
1914 fi
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1937
1938
1939 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1940
1941
1942 RADIUSD_VERSION=`cat VERSION`
1943 RADIUSD_MAJOR_VERSION=`cat VERSION | sed 's/\..*//'`
1944 RADIUSD_MINOR_VERSION=`cat VERSION | sed 's/^2\.//'`
1945 PACKAGE=freeradius
1946
1947
1948 ac_ext=c
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953 if test -n "$ac_tool_prefix"; then
1954   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$CC"; then
1962   ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977 IFS=$as_save_IFS
1978
1979 fi
1980 fi
1981 CC=$ac_cv_prog_CC
1982 if test -n "$CC"; then
1983   { echo "$as_me:$LINENO: result: $CC" >&5
1984 echo "${ECHO_T}$CC" >&6; }
1985 else
1986   { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1988 fi
1989
1990
1991 fi
1992 if test -z "$ac_cv_prog_CC"; then
1993   ac_ct_CC=$CC
1994   # Extract the first word of "gcc", so it can be a program name with args.
1995 set dummy gcc; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$ac_ct_CC"; then
2002   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2011     ac_cv_prog_ac_ct_CC="gcc"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017 IFS=$as_save_IFS
2018
2019 fi
2020 fi
2021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2022 if test -n "$ac_ct_CC"; then
2023   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2024 echo "${ECHO_T}$ac_ct_CC" >&6; }
2025 else
2026   { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2028 fi
2029
2030   if test "x$ac_ct_CC" = x; then
2031     CC=""
2032   else
2033     case $cross_compiling:$ac_tool_warned in
2034 yes:)
2035 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2036 whose name does not start with the host triplet.  If you think this
2037 configuration is useful to you, please write to autoconf@gnu.org." >&5
2038 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2039 whose name does not start with the host triplet.  If you think this
2040 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2041 ac_tool_warned=yes ;;
2042 esac
2043     CC=$ac_ct_CC
2044   fi
2045 else
2046   CC="$ac_cv_prog_CC"
2047 fi
2048
2049 if test -z "$CC"; then
2050           if test -n "$ac_tool_prefix"; then
2051     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2052 set dummy ${ac_tool_prefix}cc; ac_word=$2
2053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2055 if test "${ac_cv_prog_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$CC"; then
2059   ac_cv_prog_CC="$CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068     ac_cv_prog_CC="${ac_tool_prefix}cc"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074 IFS=$as_save_IFS
2075
2076 fi
2077 fi
2078 CC=$ac_cv_prog_CC
2079 if test -n "$CC"; then
2080   { echo "$as_me:$LINENO: result: $CC" >&5
2081 echo "${ECHO_T}$CC" >&6; }
2082 else
2083   { echo "$as_me:$LINENO: result: no" >&5
2084 echo "${ECHO_T}no" >&6; }
2085 fi
2086
2087
2088   fi
2089 fi
2090 if test -z "$CC"; then
2091   # Extract the first word of "cc", so it can be a program name with args.
2092 set dummy cc; ac_word=$2
2093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   if test -n "$CC"; then
2099   ac_cv_prog_CC="$CC" # Let the user override the test.
2100 else
2101   ac_prog_rejected=no
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   for ac_exec_ext in '' $ac_executable_extensions; do
2108   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2110        ac_prog_rejected=yes
2111        continue
2112      fi
2113     ac_cv_prog_CC="cc"
2114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115     break 2
2116   fi
2117 done
2118 done
2119 IFS=$as_save_IFS
2120
2121 if test $ac_prog_rejected = yes; then
2122   # We found a bogon in the path, so make sure we never use it.
2123   set dummy $ac_cv_prog_CC
2124   shift
2125   if test $# != 0; then
2126     # We chose a different compiler from the bogus one.
2127     # However, it has the same basename, so the bogon will be chosen
2128     # first if we set CC to just the basename; use the full file name.
2129     shift
2130     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2131   fi
2132 fi
2133 fi
2134 fi
2135 CC=$ac_cv_prog_CC
2136 if test -n "$CC"; then
2137   { echo "$as_me:$LINENO: result: $CC" >&5
2138 echo "${ECHO_T}$CC" >&6; }
2139 else
2140   { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2142 fi
2143
2144
2145 fi
2146 if test -z "$CC"; then
2147   if test -n "$ac_tool_prefix"; then
2148   for ac_prog in cl.exe
2149   do
2150     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_CC+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   if test -n "$CC"; then
2158   ac_cv_prog_CC="$CC" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163   IFS=$as_save_IFS
2164   test -z "$as_dir" && as_dir=.
2165   for ac_exec_ext in '' $ac_executable_extensions; do
2166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169     break 2
2170   fi
2171 done
2172 done
2173 IFS=$as_save_IFS
2174
2175 fi
2176 fi
2177 CC=$ac_cv_prog_CC
2178 if test -n "$CC"; then
2179   { echo "$as_me:$LINENO: result: $CC" >&5
2180 echo "${ECHO_T}$CC" >&6; }
2181 else
2182   { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186
2187     test -n "$CC" && break
2188   done
2189 fi
2190 if test -z "$CC"; then
2191   ac_ct_CC=$CC
2192   for ac_prog in cl.exe
2193 do
2194   # Extract the first word of "$ac_prog", so it can be a program name with args.
2195 set dummy $ac_prog; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$ac_ct_CC"; then
2202   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211     ac_cv_prog_ac_ct_CC="$ac_prog"
2212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217 IFS=$as_save_IFS
2218
2219 fi
2220 fi
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6; }
2225 else
2226   { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2228 fi
2229
2230
2231   test -n "$ac_ct_CC" && break
2232 done
2233
2234   if test "x$ac_ct_CC" = x; then
2235     CC=""
2236   else
2237     case $cross_compiling:$ac_tool_warned in
2238 yes:)
2239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2240 whose name does not start with the host triplet.  If you think this
2241 configuration is useful to you, please write to autoconf@gnu.org." >&5
2242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2243 whose name does not start with the host triplet.  If you think this
2244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2245 ac_tool_warned=yes ;;
2246 esac
2247     CC=$ac_ct_CC
2248   fi
2249 fi
2250
2251 fi
2252
2253
2254 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2255 See \`config.log' for more details." >&5
2256 echo "$as_me: error: no acceptable C compiler found in \$PATH
2257 See \`config.log' for more details." >&2;}
2258    { (exit 1); exit 1; }; }
2259
2260 # Provide some information about the compiler.
2261 echo "$as_me:$LINENO: checking for C compiler version" >&5
2262 ac_compiler=`set X $ac_compile; echo $2`
2263 { (ac_try="$ac_compiler --version >&5"
2264 case "(($ac_try" in
2265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266   *) ac_try_echo=$ac_try;;
2267 esac
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269   (eval "$ac_compiler --version >&5") 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }
2273 { (ac_try="$ac_compiler -v >&5"
2274 case "(($ac_try" in
2275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276   *) ac_try_echo=$ac_try;;
2277 esac
2278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2279   (eval "$ac_compiler -v >&5") 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }
2283 { (ac_try="$ac_compiler -V >&5"
2284 case "(($ac_try" in
2285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286   *) ac_try_echo=$ac_try;;
2287 esac
2288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2289   (eval "$ac_compiler -V >&5") 2>&5
2290   ac_status=$?
2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292   (exit $ac_status); }
2293
2294 cat >conftest.$ac_ext <<_ACEOF
2295 /* confdefs.h.  */
2296 _ACEOF
2297 cat confdefs.h >>conftest.$ac_ext
2298 cat >>conftest.$ac_ext <<_ACEOF
2299 /* end confdefs.h.  */
2300
2301 int
2302 main ()
2303 {
2304
2305   ;
2306   return 0;
2307 }
2308 _ACEOF
2309 ac_clean_files_save=$ac_clean_files
2310 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2311 # Try to create an executable without -o first, disregard a.out.
2312 # It will help us diagnose broken compilers, and finding out an intuition
2313 # of exeext.
2314 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2315 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2316 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2317 #
2318 # List of possible output files, starting from the most likely.
2319 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2320 # only as a last resort.  b.out is created by i960 compilers.
2321 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2322 #
2323 # The IRIX 6 linker writes into existing files which may not be
2324 # executable, retaining their permissions.  Remove them first so a
2325 # subsequent execution test works.
2326 ac_rmfiles=
2327 for ac_file in $ac_files
2328 do
2329   case $ac_file in
2330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2331     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2332   esac
2333 done
2334 rm -f $ac_rmfiles
2335
2336 if { (ac_try="$ac_link_default"
2337 case "(($ac_try" in
2338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339   *) ac_try_echo=$ac_try;;
2340 esac
2341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2342   (eval "$ac_link_default") 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; then
2346   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2348 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2349 # so that the user can short-circuit this test for compilers unknown to
2350 # Autoconf.
2351 for ac_file in $ac_files ''
2352 do
2353   test -f "$ac_file" || continue
2354   case $ac_file in
2355     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2356         ;;
2357     [ab].out )
2358         # We found the default executable, but exeext='' is most
2359         # certainly right.
2360         break;;
2361     *.* )
2362         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2363         then :; else
2364            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365         fi
2366         # We set ac_cv_exeext here because the later test for it is not
2367         # safe: cross compilers may not add the suffix if given an `-o'
2368         # argument, so we may need to know it at that point already.
2369         # Even if this section looks crufty: it has the advantage of
2370         # actually working.
2371         break;;
2372     * )
2373         break;;
2374   esac
2375 done
2376 test "$ac_cv_exeext" = no && ac_cv_exeext=
2377
2378 else
2379   ac_file=''
2380 fi
2381
2382 { echo "$as_me:$LINENO: result: $ac_file" >&5
2383 echo "${ECHO_T}$ac_file" >&6; }
2384 if test -z "$ac_file"; then
2385   echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2389 See \`config.log' for more details." >&5
2390 echo "$as_me: error: C compiler cannot create executables
2391 See \`config.log' for more details." >&2;}
2392    { (exit 77); exit 77; }; }
2393 fi
2394
2395 ac_exeext=$ac_cv_exeext
2396
2397 # Check that the compiler produces executables we can run.  If not, either
2398 # the compiler is broken, or we cross compile.
2399 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2400 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2401 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2402 # If not cross compiling, check that we can run a simple program.
2403 if test "$cross_compiling" != yes; then
2404   if { ac_try='./$ac_file'
2405   { (case "(($ac_try" in
2406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407   *) ac_try_echo=$ac_try;;
2408 esac
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410   (eval "$ac_try") 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; }; then
2414     cross_compiling=no
2415   else
2416     if test "$cross_compiling" = maybe; then
2417         cross_compiling=yes
2418     else
2419         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2420 If you meant to cross compile, use \`--host'.
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: cannot run C compiled programs.
2423 If you meant to cross compile, use \`--host'.
2424 See \`config.log' for more details." >&2;}
2425    { (exit 1); exit 1; }; }
2426     fi
2427   fi
2428 fi
2429 { echo "$as_me:$LINENO: result: yes" >&5
2430 echo "${ECHO_T}yes" >&6; }
2431
2432 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2433 ac_clean_files=$ac_clean_files_save
2434 # Check that the compiler produces executables we can run.  If not, either
2435 # the compiler is broken, or we cross compile.
2436 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2437 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2438 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2439 echo "${ECHO_T}$cross_compiling" >&6; }
2440
2441 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2442 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2443 if { (ac_try="$ac_link"
2444 case "(($ac_try" in
2445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446   *) ac_try_echo=$ac_try;;
2447 esac
2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449   (eval "$ac_link") 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; then
2453   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2454 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2455 # work properly (i.e., refer to `conftest.exe'), while it won't with
2456 # `rm'.
2457 for ac_file in conftest.exe conftest conftest.*; do
2458   test -f "$ac_file" || continue
2459   case $ac_file in
2460     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2461     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2462           break;;
2463     * ) break;;
2464   esac
2465 done
2466 else
2467   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2468 See \`config.log' for more details." >&5
2469 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2470 See \`config.log' for more details." >&2;}
2471    { (exit 1); exit 1; }; }
2472 fi
2473
2474 rm -f conftest$ac_cv_exeext
2475 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2476 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2477
2478 rm -f conftest.$ac_ext
2479 EXEEXT=$ac_cv_exeext
2480 ac_exeext=$EXEEXT
2481 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2482 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2483 if test "${ac_cv_objext+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h.  */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h.  */
2492
2493 int
2494 main ()
2495 {
2496
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 rm -f conftest.o conftest.obj
2502 if { (ac_try="$ac_compile"
2503 case "(($ac_try" in
2504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505   *) ac_try_echo=$ac_try;;
2506 esac
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508   (eval "$ac_compile") 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }; then
2512   for ac_file in conftest.o conftest.obj conftest.*; do
2513   test -f "$ac_file" || continue;
2514   case $ac_file in
2515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2516     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2517        break;;
2518   esac
2519 done
2520 else
2521   echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2525 See \`config.log' for more details." >&5
2526 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2527 See \`config.log' for more details." >&2;}
2528    { (exit 1); exit 1; }; }
2529 fi
2530
2531 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2532 fi
2533 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2534 echo "${ECHO_T}$ac_cv_objext" >&6; }
2535 OBJEXT=$ac_cv_objext
2536 ac_objext=$OBJEXT
2537 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2538 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2539 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2540   echo $ECHO_N "(cached) $ECHO_C" >&6
2541 else
2542   cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552 #ifndef __GNUC__
2553        choke me
2554 #endif
2555
2556   ;
2557   return 0;
2558 }
2559 _ACEOF
2560 rm -f conftest.$ac_objext
2561 if { (ac_try="$ac_compile"
2562 case "(($ac_try" in
2563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564   *) ac_try_echo=$ac_try;;
2565 esac
2566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2567   (eval "$ac_compile") 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } && {
2574          test -z "$ac_c_werror_flag" ||
2575          test ! -s conftest.err
2576        } && test -s conftest.$ac_objext; then
2577   ac_compiler_gnu=yes
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582         ac_compiler_gnu=no
2583 fi
2584
2585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2587
2588 fi
2589 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2590 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2591 GCC=`test $ac_compiler_gnu = yes && echo yes`
2592 ac_test_CFLAGS=${CFLAGS+set}
2593 ac_save_CFLAGS=$CFLAGS
2594 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2595 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2596 if test "${ac_cv_prog_cc_g+set}" = set; then
2597   echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599   ac_save_c_werror_flag=$ac_c_werror_flag
2600    ac_c_werror_flag=yes
2601    ac_cv_prog_cc_g=no
2602    CFLAGS="-g"
2603    cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h.  */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h.  */
2609
2610 int
2611 main ()
2612 {
2613
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (ac_try="$ac_compile"
2620 case "(($ac_try" in
2621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622   *) ac_try_echo=$ac_try;;
2623 esac
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625   (eval "$ac_compile") 2>conftest.er1
2626   ac_status=$?
2627   grep -v '^ *+' conftest.er1 >conftest.err
2628   rm -f conftest.er1
2629   cat conftest.err >&5
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); } && {
2632          test -z "$ac_c_werror_flag" ||
2633          test ! -s conftest.err
2634        } && test -s conftest.$ac_objext; then
2635   ac_cv_prog_cc_g=yes
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640         CFLAGS=""
2641       cat >conftest.$ac_ext <<_ACEOF
2642 /* confdefs.h.  */
2643 _ACEOF
2644 cat confdefs.h >>conftest.$ac_ext
2645 cat >>conftest.$ac_ext <<_ACEOF
2646 /* end confdefs.h.  */
2647
2648 int
2649 main ()
2650 {
2651
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 rm -f conftest.$ac_objext
2657 if { (ac_try="$ac_compile"
2658 case "(($ac_try" in
2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660   *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663   (eval "$ac_compile") 2>conftest.er1
2664   ac_status=$?
2665   grep -v '^ *+' conftest.er1 >conftest.err
2666   rm -f conftest.er1
2667   cat conftest.err >&5
2668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669   (exit $ac_status); } && {
2670          test -z "$ac_c_werror_flag" ||
2671          test ! -s conftest.err
2672        } && test -s conftest.$ac_objext; then
2673   :
2674 else
2675   echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678         ac_c_werror_flag=$ac_save_c_werror_flag
2679          CFLAGS="-g"
2680          cat >conftest.$ac_ext <<_ACEOF
2681 /* confdefs.h.  */
2682 _ACEOF
2683 cat confdefs.h >>conftest.$ac_ext
2684 cat >>conftest.$ac_ext <<_ACEOF
2685 /* end confdefs.h.  */
2686
2687 int
2688 main ()
2689 {
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702   (eval "$ac_compile") 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } && {
2709          test -z "$ac_c_werror_flag" ||
2710          test ! -s conftest.err
2711        } && test -s conftest.$ac_objext; then
2712   ac_cv_prog_cc_g=yes
2713 else
2714   echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717
2718 fi
2719
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 fi
2722
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 fi
2725
2726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2727    ac_c_werror_flag=$ac_save_c_werror_flag
2728 fi
2729 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2731 if test "$ac_test_CFLAGS" = set; then
2732   CFLAGS=$ac_save_CFLAGS
2733 elif test $ac_cv_prog_cc_g = yes; then
2734   if test "$GCC" = yes; then
2735     CFLAGS="-g -O2"
2736   else
2737     CFLAGS="-g"
2738   fi
2739 else
2740   if test "$GCC" = yes; then
2741     CFLAGS="-O2"
2742   else
2743     CFLAGS=
2744   fi
2745 fi
2746 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2747 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2748 if test "${ac_cv_prog_cc_c89+set}" = set; then
2749   echo $ECHO_N "(cached) $ECHO_C" >&6
2750 else
2751   ac_cv_prog_cc_c89=no
2752 ac_save_CC=$CC
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h.  */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h.  */
2759 #include <stdarg.h>
2760 #include <stdio.h>
2761 #include <sys/types.h>
2762 #include <sys/stat.h>
2763 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2764 struct buf { int x; };
2765 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766 static char *e (p, i)
2767      char **p;
2768      int i;
2769 {
2770   return p[i];
2771 }
2772 static char *f (char * (*g) (char **, int), char **p, ...)
2773 {
2774   char *s;
2775   va_list v;
2776   va_start (v,p);
2777   s = g (p, va_arg (v,int));
2778   va_end (v);
2779   return s;
2780 }
2781
2782 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2783    function prototypes and stuff, but not '\xHH' hex character constants.
2784    These don't provoke an error unfortunately, instead are silently treated
2785    as 'x'.  The following induces an error, until -std is added to get
2786    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2787    array size at least.  It's necessary to write '\x00'==0 to get something
2788    that's true only with -std.  */
2789 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2790
2791 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2792    inside strings and character constants.  */
2793 #define FOO(x) 'x'
2794 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2795
2796 int test (int i, double x);
2797 struct s1 {int (*f) (int a);};
2798 struct s2 {int (*f) (double a);};
2799 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2800 int argc;
2801 char **argv;
2802 int
2803 main ()
2804 {
2805 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2811         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2812 do
2813   CC="$ac_save_CC $ac_arg"
2814   rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2816 case "(($ac_try" in
2817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818   *) ac_try_echo=$ac_try;;
2819 esac
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821   (eval "$ac_compile") 2>conftest.er1
2822   ac_status=$?
2823   grep -v '^ *+' conftest.er1 >conftest.err
2824   rm -f conftest.er1
2825   cat conftest.err >&5
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); } && {
2828          test -z "$ac_c_werror_flag" ||
2829          test ! -s conftest.err
2830        } && test -s conftest.$ac_objext; then
2831   ac_cv_prog_cc_c89=$ac_arg
2832 else
2833   echo "$as_me: failed program was:" >&5
2834 sed 's/^/| /' conftest.$ac_ext >&5
2835
2836
2837 fi
2838
2839 rm -f core conftest.err conftest.$ac_objext
2840   test "x$ac_cv_prog_cc_c89" != "xno" && break
2841 done
2842 rm -f conftest.$ac_ext
2843 CC=$ac_save_CC
2844
2845 fi
2846 # AC_CACHE_VAL
2847 case "x$ac_cv_prog_cc_c89" in
2848   x)
2849     { echo "$as_me:$LINENO: result: none needed" >&5
2850 echo "${ECHO_T}none needed" >&6; } ;;
2851   xno)
2852     { echo "$as_me:$LINENO: result: unsupported" >&5
2853 echo "${ECHO_T}unsupported" >&6; } ;;
2854   *)
2855     CC="$CC $ac_cv_prog_cc_c89"
2856     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2857 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2858 esac
2859
2860
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
2867 ac_ext=cpp
2868 ac_cpp='$CXXCPP $CPPFLAGS'
2869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2872 if test -z "$CXX"; then
2873   if test -n "$CCC"; then
2874     CXX=$CCC
2875   else
2876     if test -n "$ac_tool_prefix"; then
2877   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2878   do
2879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2883 if test "${ac_cv_prog_CXX+set}" = set; then
2884   echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886   if test -n "$CXX"; then
2887   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894   for ac_exec_ext in '' $ac_executable_extensions; do
2895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898     break 2
2899   fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 CXX=$ac_cv_prog_CXX
2907 if test -n "$CXX"; then
2908   { echo "$as_me:$LINENO: result: $CXX" >&5
2909 echo "${ECHO_T}$CXX" >&6; }
2910 else
2911   { echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6; }
2913 fi
2914
2915
2916     test -n "$CXX" && break
2917   done
2918 fi
2919 if test -z "$CXX"; then
2920   ac_ct_CXX=$CXX
2921   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2922 do
2923   # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930   if test -n "$ac_ct_CXX"; then
2931   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936   IFS=$as_save_IFS
2937   test -z "$as_dir" && as_dir=.
2938   for ac_exec_ext in '' $ac_executable_extensions; do
2939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940     ac_cv_prog_ac_ct_CXX="$ac_prog"
2941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2942     break 2
2943   fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2951 if test -n "$ac_ct_CXX"; then
2952   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2953 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2954 else
2955   { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2957 fi
2958
2959
2960   test -n "$ac_ct_CXX" && break
2961 done
2962
2963   if test "x$ac_ct_CXX" = x; then
2964     CXX="g++"
2965   else
2966     case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2969 whose name does not start with the host triplet.  If you think this
2970 configuration is useful to you, please write to autoconf@gnu.org." >&5
2971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2972 whose name does not start with the host triplet.  If you think this
2973 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2974 ac_tool_warned=yes ;;
2975 esac
2976     CXX=$ac_ct_CXX
2977   fi
2978 fi
2979
2980   fi
2981 fi
2982 # Provide some information about the compiler.
2983 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2984 ac_compiler=`set X $ac_compile; echo $2`
2985 { (ac_try="$ac_compiler --version >&5"
2986 case "(($ac_try" in
2987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988   *) ac_try_echo=$ac_try;;
2989 esac
2990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991   (eval "$ac_compiler --version >&5") 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }
2995 { (ac_try="$ac_compiler -v >&5"
2996 case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_compiler -v >&5") 2>&5
3002   ac_status=$?
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); }
3005 { (ac_try="$ac_compiler -V >&5"
3006 case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011   (eval "$ac_compiler -V >&5") 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }
3015
3016 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3017 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3018 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3019   echo $ECHO_N "(cached) $ECHO_C" >&6
3020 else
3021   cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027
3028 int
3029 main ()
3030 {
3031 #ifndef __GNUC__
3032        choke me
3033 #endif
3034
3035   ;
3036   return 0;
3037 }
3038 _ACEOF
3039 rm -f conftest.$ac_objext
3040 if { (ac_try="$ac_compile"
3041 case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_compile") 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } && {
3053          test -z "$ac_cxx_werror_flag" ||
3054          test ! -s conftest.err
3055        } && test -s conftest.$ac_objext; then
3056   ac_compiler_gnu=yes
3057 else
3058   echo "$as_me: failed program was:" >&5
3059 sed 's/^/| /' conftest.$ac_ext >&5
3060
3061         ac_compiler_gnu=no
3062 fi
3063
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3066
3067 fi
3068 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3069 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3070 GXX=`test $ac_compiler_gnu = yes && echo yes`
3071 ac_test_CXXFLAGS=${CXXFLAGS+set}
3072 ac_save_CXXFLAGS=$CXXFLAGS
3073 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3074 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_cxx_g+set}" = set; then
3076   echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3079    ac_cxx_werror_flag=yes
3080    ac_cv_prog_cxx_g=no
3081    CXXFLAGS="-g"
3082    cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088
3089 int
3090 main ()
3091 {
3092
3093   ;
3094   return 0;
3095 }
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101   *) ac_try_echo=$ac_try;;
3102 esac
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104   (eval "$ac_compile") 2>conftest.er1
3105   ac_status=$?
3106   grep -v '^ *+' conftest.er1 >conftest.err
3107   rm -f conftest.er1
3108   cat conftest.err >&5
3109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110   (exit $ac_status); } && {
3111          test -z "$ac_cxx_werror_flag" ||
3112          test ! -s conftest.err
3113        } && test -s conftest.$ac_objext; then
3114   ac_cv_prog_cxx_g=yes
3115 else
3116   echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119         CXXFLAGS=""
3120       cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126
3127 int
3128 main ()
3129 {
3130
3131   ;
3132   return 0;
3133 }
3134 _ACEOF
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142   (eval "$ac_compile") 2>conftest.er1
3143   ac_status=$?
3144   grep -v '^ *+' conftest.er1 >conftest.err
3145   rm -f conftest.er1
3146   cat conftest.err >&5
3147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); } && {
3149          test -z "$ac_cxx_werror_flag" ||
3150          test ! -s conftest.err
3151        } && test -s conftest.$ac_objext; then
3152   :
3153 else
3154   echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3158          CXXFLAGS="-g"
3159          cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h.  */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h.  */
3165
3166 int
3167 main ()
3168 {
3169
3170   ;
3171   return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178   *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181   (eval "$ac_compile") 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } && {
3188          test -z "$ac_cxx_werror_flag" ||
3189          test ! -s conftest.err
3190        } && test -s conftest.$ac_objext; then
3191   ac_cv_prog_cxx_g=yes
3192 else
3193   echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3195
3196
3197 fi
3198
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 fi
3201
3202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 fi
3204
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3207 fi
3208 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3209 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3210 if test "$ac_test_CXXFLAGS" = set; then
3211   CXXFLAGS=$ac_save_CXXFLAGS
3212 elif test $ac_cv_prog_cxx_g = yes; then
3213   if test "$GXX" = yes; then
3214     CXXFLAGS="-g -O2"
3215   else
3216     CXXFLAGS="-g"
3217   fi
3218 else
3219   if test "$GXX" = yes; then
3220     CXXFLAGS="-O2"
3221   else
3222     CXXFLAGS=
3223   fi
3224 fi
3225 ac_ext=c
3226 ac_cpp='$CPP $CPPFLAGS'
3227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231
3232
3233 ac_ext=c
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3239 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3240 # On Suns, sometimes $CPP names a directory.
3241 if test -n "$CPP" && test -d "$CPP"; then
3242   CPP=
3243 fi
3244 if test -z "$CPP"; then
3245   if test "${ac_cv_prog_CPP+set}" = set; then
3246   echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248       # Double quotes because CPP needs to be expanded
3249     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3250     do
3251       ac_preproc_ok=false
3252 for ac_c_preproc_warn_flag in '' yes
3253 do
3254   # Use a header file that comes with gcc, so configuring glibc
3255   # with a fresh cross-compiler works.
3256   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3257   # <limits.h> exists even on freestanding compilers.
3258   # On the NeXT, cc -E runs the code through the compiler's parser,
3259   # not just through cpp. "Syntax error" is here to catch this case.
3260   cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #ifdef __STDC__
3267 # include <limits.h>
3268 #else
3269 # include <assert.h>
3270 #endif
3271                      Syntax error
3272 _ACEOF
3273 if { (ac_try="$ac_cpp conftest.$ac_ext"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } >/dev/null && {
3286          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3287          test ! -s conftest.err
3288        }; then
3289   :
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294   # Broken: fails on valid input.
3295 continue
3296 fi
3297
3298 rm -f conftest.err conftest.$ac_ext
3299
3300   # OK, works on sane cases.  Now check whether nonexistent headers
3301   # can be detected and how.
3302   cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h.  */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h.  */
3308 #include <ac_nonexistent.h>
3309 _ACEOF
3310 if { (ac_try="$ac_cpp conftest.$ac_ext"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3317   ac_status=$?
3318   grep -v '^ *+' conftest.er1 >conftest.err
3319   rm -f conftest.er1
3320   cat conftest.err >&5
3321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322   (exit $ac_status); } >/dev/null && {
3323          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3324          test ! -s conftest.err
3325        }; then
3326   # Broken: success on invalid input.
3327 continue
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332   # Passes both tests.
3333 ac_preproc_ok=:
3334 break
3335 fi
3336
3337 rm -f conftest.err conftest.$ac_ext
3338
3339 done
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3343   break
3344 fi
3345
3346     done
3347     ac_cv_prog_CPP=$CPP
3348
3349 fi
3350   CPP=$ac_cv_prog_CPP
3351 else
3352   ac_cv_prog_CPP=$CPP
3353 fi
3354 { echo "$as_me:$LINENO: result: $CPP" >&5
3355 echo "${ECHO_T}$CPP" >&6; }
3356 ac_preproc_ok=false
3357 for ac_c_preproc_warn_flag in '' yes
3358 do
3359   # Use a header file that comes with gcc, so configuring glibc
3360   # with a fresh cross-compiler works.
3361   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362   # <limits.h> exists even on freestanding compilers.
3363   # On the NeXT, cc -E runs the code through the compiler's parser,
3364   # not just through cpp. "Syntax error" is here to catch this case.
3365   cat >conftest.$ac_ext <<_ACEOF
3366 /* confdefs.h.  */
3367 _ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h.  */
3371 #ifdef __STDC__
3372 # include <limits.h>
3373 #else
3374 # include <assert.h>
3375 #endif
3376                      Syntax error
3377 _ACEOF
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3385   ac_status=$?
3386   grep -v '^ *+' conftest.er1 >conftest.err
3387   rm -f conftest.er1
3388   cat conftest.err >&5
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } >/dev/null && {
3391          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3392          test ! -s conftest.err
3393        }; then
3394   :
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399   # Broken: fails on valid input.
3400 continue
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405   # OK, works on sane cases.  Now check whether nonexistent headers
3406   # can be detected and how.
3407   cat >conftest.$ac_ext <<_ACEOF
3408 /* confdefs.h.  */
3409 _ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h.  */
3413 #include <ac_nonexistent.h>
3414 _ACEOF
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3416 case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422   ac_status=$?
3423   grep -v '^ *+' conftest.er1 >conftest.err
3424   rm -f conftest.er1
3425   cat conftest.err >&5
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); } >/dev/null && {
3428          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429          test ! -s conftest.err
3430        }; then
3431   # Broken: success on invalid input.
3432 continue
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437   # Passes both tests.
3438 ac_preproc_ok=:
3439 break
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then
3448   :
3449 else
3450   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3451 See \`config.log' for more details." >&5
3452 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details." >&2;}
3454    { (exit 1); exit 1; }; }
3455 fi
3456
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462
3463
3464 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3465 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3466 if test "${ac_cv_path_GREP+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   # Extract the first word of "grep ggrep" to use in msg output
3470 if test -z "$GREP"; then
3471 set dummy grep ggrep; ac_prog_name=$2
3472 if test "${ac_cv_path_GREP+set}" = set; then
3473   echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475   ac_path_GREP_found=false
3476 # Loop through the user's path and test for each of PROGNAME-LIST
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482   for ac_prog in grep ggrep; do
3483   for ac_exec_ext in '' $ac_executable_extensions; do
3484     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3485     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3486     # Check for GNU ac_path_GREP and select it if it is found.
3487   # Check for GNU $ac_path_GREP
3488 case `"$ac_path_GREP" --version 2>&1` in
3489 *GNU*)
3490   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3491 *)
3492   ac_count=0
3493   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3494   while :
3495   do
3496     cat "conftest.in" "conftest.in" >"conftest.tmp"
3497     mv "conftest.tmp" "conftest.in"
3498     cp "conftest.in" "conftest.nl"
3499     echo 'GREP' >> "conftest.nl"
3500     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3501     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3502     ac_count=`expr $ac_count + 1`
3503     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3504       # Best one so far, save it but keep looking for a better one
3505       ac_cv_path_GREP="$ac_path_GREP"
3506       ac_path_GREP_max=$ac_count
3507     fi
3508     # 10*(2^10) chars as input seems more than enough
3509     test $ac_count -gt 10 && break
3510   done
3511   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3512 esac
3513
3514
3515     $ac_path_GREP_found && break 3
3516   done
3517 done
3518
3519 done
3520 IFS=$as_save_IFS
3521
3522
3523 fi
3524
3525 GREP="$ac_cv_path_GREP"
3526 if test -z "$GREP"; then
3527   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3528 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3529    { (exit 1); exit 1; }; }
3530 fi
3531
3532 else
3533   ac_cv_path_GREP=$GREP
3534 fi
3535
3536
3537 fi
3538 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3539 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3540  GREP="$ac_cv_path_GREP"
3541
3542
3543 { echo "$as_me:$LINENO: checking for egrep" >&5
3544 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3545 if test "${ac_cv_path_EGREP+set}" = set; then
3546   echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3549    then ac_cv_path_EGREP="$GREP -E"
3550    else
3551      # Extract the first word of "egrep" to use in msg output
3552 if test -z "$EGREP"; then
3553 set dummy egrep; ac_prog_name=$2
3554 if test "${ac_cv_path_EGREP+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   ac_path_EGREP_found=false
3558 # Loop through the user's path and test for each of PROGNAME-LIST
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561 do
3562   IFS=$as_save_IFS
3563   test -z "$as_dir" && as_dir=.
3564   for ac_prog in egrep; do
3565   for ac_exec_ext in '' $ac_executable_extensions; do
3566     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3567     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3568     # Check for GNU ac_path_EGREP and select it if it is found.
3569   # Check for GNU $ac_path_EGREP
3570 case `"$ac_path_EGREP" --version 2>&1` in
3571 *GNU*)
3572   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3573 *)
3574   ac_count=0
3575   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3576   while :
3577   do
3578     cat "conftest.in" "conftest.in" >"conftest.tmp"
3579     mv "conftest.tmp" "conftest.in"
3580     cp "conftest.in" "conftest.nl"
3581     echo 'EGREP' >> "conftest.nl"
3582     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584     ac_count=`expr $ac_count + 1`
3585     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3586       # Best one so far, save it but keep looking for a better one
3587       ac_cv_path_EGREP="$ac_path_EGREP"
3588       ac_path_EGREP_max=$ac_count
3589     fi
3590     # 10*(2^10) chars as input seems more than enough
3591     test $ac_count -gt 10 && break
3592   done
3593   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594 esac
3595
3596
3597     $ac_path_EGREP_found && break 3
3598   done
3599 done
3600
3601 done
3602 IFS=$as_save_IFS
3603
3604
3605 fi
3606
3607 EGREP="$ac_cv_path_EGREP"
3608 if test -z "$EGREP"; then
3609   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3610 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3611    { (exit 1); exit 1; }; }
3612 fi
3613
3614 else
3615   ac_cv_path_EGREP=$EGREP
3616 fi
3617
3618
3619    fi
3620 fi
3621 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3622 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3623  EGREP="$ac_cv_path_EGREP"
3624
3625
3626
3627 { echo "$as_me:$LINENO: checking for AIX" >&5
3628 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635 #ifdef _AIX
3636   yes
3637 #endif
3638
3639 _ACEOF
3640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3641   $EGREP "yes" >/dev/null 2>&1; then
3642   { echo "$as_me:$LINENO: result: yes" >&5
3643 echo "${ECHO_T}yes" >&6; }
3644 cat >>confdefs.h <<\_ACEOF
3645 #define _ALL_SOURCE 1
3646 _ACEOF
3647
3648 else
3649   { echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6; }
3651 fi
3652 rm -f conftest*
3653
3654
3655
3656 if test $ac_cv_c_compiler_gnu = yes; then
3657     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3658 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3659 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662     ac_pattern="Autoconf.*'x'"
3663   cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 #include <sgtty.h>
3670 Autoconf TIOCGETP
3671 _ACEOF
3672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3673   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3674   ac_cv_prog_gcc_traditional=yes
3675 else
3676   ac_cv_prog_gcc_traditional=no
3677 fi
3678 rm -f conftest*
3679
3680
3681   if test $ac_cv_prog_gcc_traditional = no; then
3682     cat >conftest.$ac_ext <<_ACEOF
3683 /* confdefs.h.  */
3684 _ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h.  */
3688 #include <termio.h>
3689 Autoconf TCGETA
3690 _ACEOF
3691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3692   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3693   ac_cv_prog_gcc_traditional=yes
3694 fi
3695 rm -f conftest*
3696
3697   fi
3698 fi
3699 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3700 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3701   if test $ac_cv_prog_gcc_traditional = yes; then
3702     CC="$CC -traditional"
3703   fi
3704 fi
3705
3706 { echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
3707 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6; }
3708 if test "${ac_cv_prog_suncc+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   cat > conftest.c <<EOF
3712 #ifdef __SUNPRO_C
3713   yes;
3714 #endif
3715 EOF
3716 if { ac_try='${CC-cc} -E conftest.c'
3717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718   (eval $ac_try) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3722   ac_cv_prog_suncc=yes
3723 else
3724   ac_cv_prog_suncc=no
3725 fi
3726 fi
3727 { echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
3728 echo "${ECHO_T}$ac_cv_prog_suncc" >&6; }
3729 if test -n "$ac_tool_prefix"; then
3730   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3734 if test "${ac_cv_prog_RANLIB+set}" = set; then
3735   echo $ECHO_N "(cached) $ECHO_C" >&6
3736 else
3737   if test -n "$RANLIB"; then
3738   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for ac_exec_ext in '' $ac_executable_extensions; do
3746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 RANLIB=$ac_cv_prog_RANLIB
3758 if test -n "$RANLIB"; then
3759   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3760 echo "${ECHO_T}$RANLIB" >&6; }
3761 else
3762   { echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6; }
3764 fi
3765
3766
3767 fi
3768 if test -z "$ac_cv_prog_RANLIB"; then
3769   ac_ct_RANLIB=$RANLIB
3770   # Extract the first word of "ranlib", so it can be a program name with args.
3771 set dummy ranlib; ac_word=$2
3772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3774 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   if test -n "$ac_ct_RANLIB"; then
3778   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3779 else
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781 for as_dir in $PATH
3782 do
3783   IFS=$as_save_IFS
3784   test -z "$as_dir" && as_dir=.
3785   for ac_exec_ext in '' $ac_executable_extensions; do
3786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787     ac_cv_prog_ac_ct_RANLIB="ranlib"
3788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789     break 2
3790   fi
3791 done
3792 done
3793 IFS=$as_save_IFS
3794
3795 fi
3796 fi
3797 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3798 if test -n "$ac_ct_RANLIB"; then
3799   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3800 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3801 else
3802   { echo "$as_me:$LINENO: result: no" >&5
3803 echo "${ECHO_T}no" >&6; }
3804 fi
3805
3806   if test "x$ac_ct_RANLIB" = x; then
3807     RANLIB=":"
3808   else
3809     case $cross_compiling:$ac_tool_warned in
3810 yes:)
3811 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3812 whose name does not start with the host triplet.  If you think this
3813 configuration is useful to you, please write to autoconf@gnu.org." >&5
3814 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3815 whose name does not start with the host triplet.  If you think this
3816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3817 ac_tool_warned=yes ;;
3818 esac
3819     RANLIB=$ac_ct_RANLIB
3820   fi
3821 else
3822   RANLIB="$ac_cv_prog_RANLIB"
3823 fi
3824
3825
3826 # Check whether --enable-largefile was given.
3827 if test "${enable_largefile+set}" = set; then
3828   enableval=$enable_largefile;
3829 fi
3830
3831 if test "$enable_largefile" != no; then
3832
3833   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   ac_cv_sys_largefile_CC=no
3839      if test "$GCC" != yes; then
3840        ac_save_CC=$CC
3841        while :; do
3842          # IRIX 6.2 and later do not support large files by default,
3843          # so use the C compiler's -n32 option if that helps.
3844          cat >conftest.$ac_ext <<_ACEOF
3845 /* confdefs.h.  */
3846 _ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h.  */
3850 #include <sys/types.h>
3851  /* Check that off_t can represent 2**63 - 1 correctly.
3852     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3853     since some C++ compilers masquerading as C compilers
3854     incorrectly reject 9223372036854775807.  */
3855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3856   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3857                        && LARGE_OFF_T % 2147483647 == 1)
3858                       ? 1 : -1];
3859 int
3860 main ()
3861 {
3862
3863   ;
3864   return 0;
3865 }
3866 _ACEOF
3867          rm -f conftest.$ac_objext
3868 if { (ac_try="$ac_compile"
3869 case "(($ac_try" in
3870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871   *) ac_try_echo=$ac_try;;
3872 esac
3873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874   (eval "$ac_compile") 2>conftest.er1
3875   ac_status=$?
3876   grep -v '^ *+' conftest.er1 >conftest.err
3877   rm -f conftest.er1
3878   cat conftest.err >&5
3879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880   (exit $ac_status); } && {
3881          test -z "$ac_c_werror_flag" ||
3882          test ! -s conftest.err
3883        } && test -s conftest.$ac_objext; then
3884   break
3885 else
3886   echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3888
3889
3890 fi
3891
3892 rm -f core conftest.err conftest.$ac_objext
3893          CC="$CC -n32"
3894          rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3896 case "(($ac_try" in
3897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898   *) ac_try_echo=$ac_try;;
3899 esac
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901   (eval "$ac_compile") 2>conftest.er1
3902   ac_status=$?
3903   grep -v '^ *+' conftest.er1 >conftest.err
3904   rm -f conftest.er1
3905   cat conftest.err >&5
3906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907   (exit $ac_status); } && {
3908          test -z "$ac_c_werror_flag" ||
3909          test ! -s conftest.err
3910        } && test -s conftest.$ac_objext; then
3911   ac_cv_sys_largefile_CC=' -n32'; break
3912 else
3913   echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916
3917 fi
3918
3919 rm -f core conftest.err conftest.$ac_objext
3920          break
3921        done
3922        CC=$ac_save_CC
3923        rm -f conftest.$ac_ext
3924     fi
3925 fi
3926 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3927 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
3928   if test "$ac_cv_sys_largefile_CC" != no; then
3929     CC=$CC$ac_cv_sys_largefile_CC
3930   fi
3931
3932   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3933 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
3934 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3935   echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937   while :; do
3938   cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944 #include <sys/types.h>
3945  /* Check that off_t can represent 2**63 - 1 correctly.
3946     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3947     since some C++ compilers masquerading as C compilers
3948     incorrectly reject 9223372036854775807.  */
3949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3950   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3951                        && LARGE_OFF_T % 2147483647 == 1)
3952                       ? 1 : -1];
3953 int
3954 main ()
3955 {
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968   (eval "$ac_compile") 2>conftest.er1
3969   ac_status=$?
3970   grep -v '^ *+' conftest.er1 >conftest.err
3971   rm -f conftest.er1
3972   cat conftest.err >&5
3973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } && {
3975          test -z "$ac_c_werror_flag" ||
3976          test ! -s conftest.err
3977        } && test -s conftest.$ac_objext; then
3978   ac_cv_sys_file_offset_bits=no; break
3979 else
3980   echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983
3984 fi
3985
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987   cat >conftest.$ac_ext <<_ACEOF
3988 /* confdefs.h.  */
3989 _ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h.  */
3993 #define _FILE_OFFSET_BITS 64
3994 #include <sys/types.h>
3995  /* Check that off_t can represent 2**63 - 1 correctly.
3996     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3997     since some C++ compilers masquerading as C compilers
3998     incorrectly reject 9223372036854775807.  */
3999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4000   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4001                        && LARGE_OFF_T % 2147483647 == 1)
4002                       ? 1 : -1];
4003 int
4004 main ()
4005 {
4006
4007   ;
4008   return 0;
4009 }
4010 _ACEOF
4011 rm -f conftest.$ac_objext
4012 if { (ac_try="$ac_compile"
4013 case "(($ac_try" in
4014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015   *) ac_try_echo=$ac_try;;
4016 esac
4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018   (eval "$ac_compile") 2>conftest.er1
4019   ac_status=$?
4020   grep -v '^ *+' conftest.er1 >conftest.err
4021   rm -f conftest.er1
4022   cat conftest.err >&5
4023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024   (exit $ac_status); } && {
4025          test -z "$ac_c_werror_flag" ||
4026          test ! -s conftest.err
4027        } && test -s conftest.$ac_objext; then
4028   ac_cv_sys_file_offset_bits=64; break
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033
4034 fi
4035
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037   ac_cv_sys_file_offset_bits=unknown
4038   break
4039 done
4040 fi
4041 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4042 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4043 case $ac_cv_sys_file_offset_bits in #(
4044   no | unknown) ;;
4045   *)
4046 cat >>confdefs.h <<_ACEOF
4047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4048 _ACEOF
4049 ;;
4050 esac
4051 rm -f conftest*
4052   if test $ac_cv_sys_file_offset_bits = unknown; then
4053     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4054 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4055 if test "${ac_cv_sys_large_files+set}" = set; then
4056   echo $ECHO_N "(cached) $ECHO_C" >&6
4057 else
4058   while :; do
4059   cat >conftest.$ac_ext <<_ACEOF
4060 /* confdefs.h.  */
4061 _ACEOF
4062 cat confdefs.h >>conftest.$ac_ext
4063 cat >>conftest.$ac_ext <<_ACEOF
4064 /* end confdefs.h.  */
4065 #include <sys/types.h>
4066  /* Check that off_t can represent 2**63 - 1 correctly.
4067     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4068     since some C++ compilers masquerading as C compilers
4069     incorrectly reject 9223372036854775807.  */
4070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4071   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4072                        && LARGE_OFF_T % 2147483647 == 1)
4073                       ? 1 : -1];
4074 int
4075 main ()
4076 {
4077
4078   ;
4079   return 0;
4080 }
4081 _ACEOF
4082 rm -f conftest.$ac_objext
4083 if { (ac_try="$ac_compile"
4084 case "(($ac_try" in
4085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086   *) ac_try_echo=$ac_try;;
4087 esac
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089   (eval "$ac_compile") 2>conftest.er1
4090   ac_status=$?
4091   grep -v '^ *+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } && {
4096          test -z "$ac_c_werror_flag" ||
4097          test ! -s conftest.err
4098        } && test -s conftest.$ac_objext; then
4099   ac_cv_sys_large_files=no; break
4100 else
4101   echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108   cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h.  */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h.  */
4114 #define _LARGE_FILES 1
4115 #include <sys/types.h>
4116  /* Check that off_t can represent 2**63 - 1 correctly.
4117     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4118     since some C++ compilers masquerading as C compilers
4119     incorrectly reject 9223372036854775807.  */
4120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4121   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4122                        && LARGE_OFF_T % 2147483647 == 1)
4123                       ? 1 : -1];
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139   (eval "$ac_compile") 2>conftest.er1
4140   ac_status=$?
4141   grep -v '^ *+' conftest.er1 >conftest.err
4142   rm -f conftest.er1
4143   cat conftest.err >&5
4144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145   (exit $ac_status); } && {
4146          test -z "$ac_c_werror_flag" ||
4147          test ! -s conftest.err
4148        } && test -s conftest.$ac_objext; then
4149   ac_cv_sys_large_files=1; break
4150 else
4151   echo "$as_me: failed program was:" >&5
4152 sed 's/^/| /' conftest.$ac_ext >&5
4153
4154
4155 fi
4156
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158   ac_cv_sys_large_files=unknown
4159   break
4160 done
4161 fi
4162 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4163 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4164 case $ac_cv_sys_large_files in #(
4165   no | unknown) ;;
4166   *)
4167 cat >>confdefs.h <<_ACEOF
4168 #define _LARGE_FILES $ac_cv_sys_large_files
4169 _ACEOF
4170 ;;
4171 esac
4172 rm -f conftest*
4173   fi
4174 fi
4175
4176
4177 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4178 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4179 if test "${ac_cv_header_stdc+set}" = set; then
4180   echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182   cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #include <stdlib.h>
4189 #include <stdarg.h>
4190 #include <string.h>
4191 #include <float.h>
4192
4193 int
4194 main ()
4195 {
4196
4197   ;
4198   return 0;
4199 }
4200 _ACEOF
4201 rm -f conftest.$ac_objext
4202 if { (ac_try="$ac_compile"
4203 case "(($ac_try" in
4204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205   *) ac_try_echo=$ac_try;;
4206 esac
4207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208   (eval "$ac_compile") 2>conftest.er1
4209   ac_status=$?
4210   grep -v '^ *+' conftest.er1 >conftest.err
4211   rm -f conftest.er1
4212   cat conftest.err >&5
4213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214   (exit $ac_status); } && {
4215          test -z "$ac_c_werror_flag" ||
4216          test ! -s conftest.err
4217        } && test -s conftest.$ac_objext; then
4218   ac_cv_header_stdc=yes
4219 else
4220   echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223         ac_cv_header_stdc=no
4224 fi
4225
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227
4228 if test $ac_cv_header_stdc = yes; then
4229   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4230   cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h.  */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h.  */
4236 #include <string.h>
4237
4238 _ACEOF
4239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240   $EGREP "memchr" >/dev/null 2>&1; then
4241   :
4242 else
4243   ac_cv_header_stdc=no
4244 fi
4245 rm -f conftest*
4246
4247 fi
4248
4249 if test $ac_cv_header_stdc = yes; then
4250   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251   cat >conftest.$ac_ext <<_ACEOF
4252 /* confdefs.h.  */
4253 _ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h.  */
4257 #include <stdlib.h>
4258
4259 _ACEOF
4260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4261   $EGREP "free" >/dev/null 2>&1; then
4262   :
4263 else
4264   ac_cv_header_stdc=no
4265 fi
4266 rm -f conftest*
4267
4268 fi
4269
4270 if test $ac_cv_header_stdc = yes; then
4271   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4272   if test "$cross_compiling" = yes; then
4273   :
4274 else
4275   cat >conftest.$ac_ext <<_ACEOF
4276 /* confdefs.h.  */
4277 _ACEOF
4278 cat confdefs.h >>conftest.$ac_ext
4279 cat >>conftest.$ac_ext <<_ACEOF
4280 /* end confdefs.h.  */
4281 #include <ctype.h>
4282 #include <stdlib.h>
4283 #if ((' ' & 0x0FF) == 0x020)
4284 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4285 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286 #else
4287 # define ISLOWER(c) \
4288                    (('a' <= (c) && (c) <= 'i') \
4289                      || ('j' <= (c) && (c) <= 'r') \
4290                      || ('s' <= (c) && (c) <= 'z'))
4291 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4292 #endif
4293
4294 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4295 int
4296 main ()
4297 {
4298   int i;
4299   for (i = 0; i < 256; i++)
4300     if (XOR (islower (i), ISLOWER (i))
4301         || toupper (i) != TOUPPER (i))
4302       return 2;
4303   return 0;
4304 }
4305 _ACEOF
4306 rm -f conftest$ac_exeext
4307 if { (ac_try="$ac_link"
4308 case "(($ac_try" in
4309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310   *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313   (eval "$ac_link") 2>&5
4314   ac_status=$?
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4317   { (case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322   (eval "$ac_try") 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); }; }; then
4326   :
4327 else
4328   echo "$as_me: program exited with status $ac_status" >&5
4329 echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4331
4332 ( exit $ac_status )
4333 ac_cv_header_stdc=no
4334 fi
4335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4336 fi
4337
4338
4339 fi
4340 fi
4341 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4342 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4343 if test $ac_cv_header_stdc = yes; then
4344
4345 cat >>confdefs.h <<\_ACEOF
4346 #define STDC_HEADERS 1
4347 _ACEOF
4348
4349 fi
4350
4351 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4362                   inttypes.h stdint.h unistd.h
4363 do
4364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 $ac_includes_default
4377
4378 #include <$ac_header>
4379 _ACEOF
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4382 case "(($ac_try" in
4383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384   *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387   (eval "$ac_compile") 2>conftest.er1
4388   ac_status=$?
4389   grep -v '^ *+' conftest.er1 >conftest.err
4390   rm -f conftest.er1
4391   cat conftest.err >&5
4392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393   (exit $ac_status); } && {
4394          test -z "$ac_c_werror_flag" ||
4395          test ! -s conftest.err
4396        } && test -s conftest.$ac_objext; then
4397   eval "$as_ac_Header=yes"
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402         eval "$as_ac_Header=no"
4403 fi
4404
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 fi
4407 ac_res=`eval echo '${'$as_ac_Header'}'`
4408                { echo "$as_me:$LINENO: result: $ac_res" >&5
4409 echo "${ECHO_T}$ac_res" >&6; }
4410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4411   cat >>confdefs.h <<_ACEOF
4412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4413 _ACEOF
4414
4415 fi
4416
4417 done
4418
4419
4420 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4421 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4422 if test "${ac_cv_c_bigendian+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   # See if sys/param.h defines the BYTE_ORDER macro.
4426 cat >conftest.$ac_ext <<_ACEOF
4427 /* confdefs.h.  */
4428 _ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h.  */
4432 #include <sys/types.h>
4433 #include <sys/param.h>
4434
4435 int
4436 main ()
4437 {
4438 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4439         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4440  bogus endian macros
4441 #endif
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4449 case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454   (eval "$ac_compile") 2>conftest.er1
4455   ac_status=$?
4456   grep -v '^ *+' conftest.er1 >conftest.err
4457   rm -f conftest.er1
4458   cat conftest.err >&5
4459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460   (exit $ac_status); } && {
4461          test -z "$ac_c_werror_flag" ||
4462          test ! -s conftest.err
4463        } && test -s conftest.$ac_objext; then
4464   # It does; now see whether it defined to BIG_ENDIAN or not.
4465 cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471 #include <sys/types.h>
4472 #include <sys/param.h>
4473
4474 int
4475 main ()
4476 {
4477 #if BYTE_ORDER != BIG_ENDIAN
4478  not big endian
4479 #endif
4480
4481   ;
4482   return 0;
4483 }
4484 _ACEOF
4485 rm -f conftest.$ac_objext
4486 if { (ac_try="$ac_compile"
4487 case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492   (eval "$ac_compile") 2>conftest.er1
4493   ac_status=$?
4494   grep -v '^ *+' conftest.er1 >conftest.err
4495   rm -f conftest.er1
4496   cat conftest.err >&5
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); } && {
4499          test -z "$ac_c_werror_flag" ||
4500          test ! -s conftest.err
4501        } && test -s conftest.$ac_objext; then
4502   ac_cv_c_bigendian=yes
4503 else
4504   echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4506
4507         ac_cv_c_bigendian=no
4508 fi
4509
4510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 else
4512   echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515         # It does not; compile a test program.
4516 if test "$cross_compiling" = yes; then
4517   # try to guess the endianness by grepping values into an object file
4518   ac_cv_c_bigendian=unknown
4519   cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4526 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4527 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4528 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4529 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4530 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4531 int
4532 main ()
4533 {
4534  _ascii (); _ebcdic ();
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (ac_try="$ac_compile"
4541 case "(($ac_try" in
4542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543   *) ac_try_echo=$ac_try;;
4544 esac
4545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4546   (eval "$ac_compile") 2>conftest.er1
4547   ac_status=$?
4548   grep -v '^ *+' conftest.er1 >conftest.err
4549   rm -f conftest.er1
4550   cat conftest.err >&5
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); } && {
4553          test -z "$ac_c_werror_flag" ||
4554          test ! -s conftest.err
4555        } && test -s conftest.$ac_objext; then
4556   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4557   ac_cv_c_bigendian=yes
4558 fi
4559 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4560   if test "$ac_cv_c_bigendian" = unknown; then
4561     ac_cv_c_bigendian=no
4562   else
4563     # finding both strings is unlikely to happen, but who knows?
4564     ac_cv_c_bigendian=unknown
4565   fi
4566 fi
4567 else
4568   echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571
4572 fi
4573
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 else
4576   cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h.  */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h.  */
4582 $ac_includes_default
4583 int
4584 main ()
4585 {
4586
4587   /* Are we little or big endian?  From Harbison&Steele.  */
4588   union
4589   {
4590     long int l;
4591     char c[sizeof (long int)];
4592   } u;
4593   u.l = 1;
4594   return u.c[sizeof (long int) - 1] == 1;
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 rm -f conftest$ac_exeext
4601 if { (ac_try="$ac_link"
4602 case "(($ac_try" in
4603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604   *) ac_try_echo=$ac_try;;
4605 esac
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607   (eval "$ac_link") 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4611   { (case "(($ac_try" in
4612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613   *) ac_try_echo=$ac_try;;
4614 esac
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616   (eval "$ac_try") 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); }; }; then
4620   ac_cv_c_bigendian=no
4621 else
4622   echo "$as_me: program exited with status $ac_status" >&5
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 ( exit $ac_status )
4627 ac_cv_c_bigendian=yes
4628 fi
4629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4630 fi
4631
4632
4633 fi
4634
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4638 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4639 case $ac_cv_c_bigendian in
4640   yes)
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define WORDS_BIGENDIAN 1
4644 _ACEOF
4645  ;;
4646   no)
4647      ;;
4648   *)
4649     { { echo "$as_me:$LINENO: error: unknown endianness
4650 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4651 echo "$as_me: error: unknown endianness
4652 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4653    { (exit 1); exit 1; }; } ;;
4654 esac
4655
4656
4657 # Extract the first word of "gmake", so it can be a program name with args.
4658 set dummy gmake; ac_word=$2
4659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661 if test "${ac_cv_prog_GMAKE+set}" = set; then
4662   echo $ECHO_N "(cached) $ECHO_C" >&6
4663 else
4664   if test -n "$GMAKE"; then
4665   ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
4666 else
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 for as_dir in $PATH
4669 do
4670   IFS=$as_save_IFS
4671   test -z "$as_dir" && as_dir=.
4672   for ac_exec_ext in '' $ac_executable_extensions; do
4673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674     ac_cv_prog_GMAKE="yes"
4675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676     break 2
4677   fi
4678 done
4679 done
4680 IFS=$as_save_IFS
4681
4682   test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
4683 fi
4684 fi
4685 GMAKE=$ac_cv_prog_GMAKE
4686 if test -n "$GMAKE"; then
4687   { echo "$as_me:$LINENO: result: $GMAKE" >&5
4688 echo "${ECHO_T}$GMAKE" >&6; }
4689 else
4690   { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4692 fi
4693
4694
4695 if test $GMAKE = no; then
4696   # Extract the first word of "make", so it can be a program name with args.
4697 set dummy make; ac_word=$2
4698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4700 if test "${ac_cv_path_MAKE+set}" = set; then
4701   echo $ECHO_N "(cached) $ECHO_C" >&6
4702 else
4703   case $MAKE in
4704   [\\/]* | ?:[\\/]*)
4705   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4706   ;;
4707   *)
4708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711   IFS=$as_save_IFS
4712   test -z "$as_dir" && as_dir=.
4713   for ac_exec_ext in '' $ac_executable_extensions; do
4714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4715     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717     break 2
4718   fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
4724   ;;
4725 esac
4726 fi
4727 MAKE=$ac_cv_path_MAKE
4728 if test -n "$MAKE"; then
4729   { echo "$as_me:$LINENO: result: $MAKE" >&5
4730 echo "${ECHO_T}$MAKE" >&6; }
4731 else
4732   { echo "$as_me:$LINENO: result: no" >&5
4733 echo "${ECHO_T}no" >&6; }
4734 fi
4735
4736
4737 else
4738   # Extract the first word of "gmake", so it can be a program name with args.
4739 set dummy gmake; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_MAKE+set}" = set; then
4743   echo $ECHO_N "(cached) $ECHO_C" >&6
4744 else
4745   case $MAKE in
4746   [\\/]* | ?:[\\/]*)
4747   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4748   ;;
4749   *)
4750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH
4752 do
4753   IFS=$as_save_IFS
4754   test -z "$as_dir" && as_dir=.
4755   for ac_exec_ext in '' $ac_executable_extensions; do
4756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4759     break 2
4760   fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765   test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
4766   ;;
4767 esac
4768 fi
4769 MAKE=$ac_cv_path_MAKE
4770 if test -n "$MAKE"; then
4771   { echo "$as_me:$LINENO: result: $MAKE" >&5
4772 echo "${ECHO_T}$MAKE" >&6; }
4773 else
4774   { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4776 fi
4777
4778
4779 fi
4780 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
4781 if test -z "$makever"; then
4782   { { echo "$as_me:$LINENO: error: GNU Make is not installed.  Please download and install it
4783                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
4784 echo "$as_me: error: GNU Make is not installed.  Please download and install it
4785                 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
4786    { (exit 1); exit 1; }; }
4787 fi
4788
4789   { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4790 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4791 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4792   echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794   ac_check_lib_save_LIBS=$LIBS
4795 LIBS="-lltdl  $LIBS"
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h.  */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h.  */
4802
4803 /* Override any GCC internal prototype to avoid an error.
4804    Use char because int might match the return type of a GCC
4805    builtin and then its argument prototype would still apply.  */
4806 #ifdef __cplusplus
4807 extern "C"
4808 #endif
4809 char lt_dlinit ();
4810 int
4811 main ()
4812 {
4813 return lt_dlinit ();
4814   ;
4815   return 0;
4816 }
4817 _ACEOF
4818 rm -f conftest.$ac_objext conftest$ac_exeext
4819 if { (ac_try="$ac_link"
4820 case "(($ac_try" in
4821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822   *) ac_try_echo=$ac_try;;
4823 esac
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825   (eval "$ac_link") 2>conftest.er1
4826   ac_status=$?
4827   grep -v '^ *+' conftest.er1 >conftest.err
4828   rm -f conftest.er1
4829   cat conftest.err >&5
4830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831   (exit $ac_status); } && {
4832          test -z "$ac_c_werror_flag" ||
4833          test ! -s conftest.err
4834        } && test -s conftest$ac_exeext &&
4835        $as_test_x conftest$ac_exeext; then
4836   ac_cv_lib_ltdl_lt_dlinit=yes
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841         ac_cv_lib_ltdl_lt_dlinit=no
4842 fi
4843
4844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4845       conftest$ac_exeext conftest.$ac_ext
4846 LIBS=$ac_check_lib_save_LIBS
4847 fi
4848 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4849 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4850 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4851   test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4852 else
4853   if test x"$enable_ltdl_install" = xno; then
4854      { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4855 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4856    else
4857      enable_ltdl_install=yes
4858    fi
4859
4860 fi
4861
4862   if test x"$enable_ltdl_install" = x"yes"; then
4863     ac_configure_args="$ac_configure_args --enable-ltdl-install"
4864     LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4865     LTDLINCL='-I${top_srcdir}/''libltdl'
4866   else
4867     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4868     LIBLTDL="-lltdl"
4869     LTDLINCL=
4870   fi
4871   # For backwards non-gettext consistent compatibility...
4872   INCLTDL="$LTDLINCL"
4873
4874
4875 if test x"$enable_ltdl_install" = x"yes"; then
4876   LTDL_SUBDIRS=libltdl
4877 fi
4878
4879
4880 # Check whether --enable-shared was given.
4881 if test "${enable_shared+set}" = set; then
4882   enableval=$enable_shared; p=${PACKAGE-default}
4883     case $enableval in
4884     yes) enable_shared=yes ;;
4885     no) enable_shared=no ;;
4886     *)
4887       enable_shared=no
4888       # Look at the argument we got.  We use all the common list separators.
4889       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4890       for pkg in $enableval; do
4891         IFS="$lt_save_ifs"
4892         if test "X$pkg" = "X$p"; then
4893           enable_shared=yes
4894         fi
4895       done
4896       IFS="$lt_save_ifs"
4897       ;;
4898     esac
4899 else
4900   enable_shared=yes
4901 fi
4902
4903
4904 # Check whether --enable-static was given.
4905 if test "${enable_static+set}" = set; then
4906   enableval=$enable_static; p=${PACKAGE-default}
4907     case $enableval in
4908     yes) enable_static=yes ;;
4909     no) enable_static=no ;;
4910     *)
4911      enable_static=no
4912       # Look at the argument we got.  We use all the common list separators.
4913       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4914       for pkg in $enableval; do
4915         IFS="$lt_save_ifs"
4916         if test "X$pkg" = "X$p"; then
4917           enable_static=yes
4918         fi
4919       done
4920       IFS="$lt_save_ifs"
4921       ;;
4922     esac
4923 else
4924   enable_static=yes
4925 fi
4926
4927
4928 # Check whether --enable-fast-install was given.
4929 if test "${enable_fast_install+set}" = set; then
4930   enableval=$enable_fast_install; p=${PACKAGE-default}
4931     case $enableval in
4932     yes) enable_fast_install=yes ;;
4933     no) enable_fast_install=no ;;
4934     *)
4935       enable_fast_install=no
4936       # Look at the argument we got.  We use all the common list separators.
4937       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4938       for pkg in $enableval; do
4939         IFS="$lt_save_ifs"
4940         if test "X$pkg" = "X$p"; then
4941           enable_fast_install=yes
4942         fi
4943       done
4944       IFS="$lt_save_ifs"
4945       ;;
4946     esac
4947 else
4948   enable_fast_install=yes
4949 fi
4950
4951
4952 ac_aux_dir=
4953 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4954   if 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/install.sh"; then
4959     ac_aux_dir=$ac_dir
4960     ac_install_sh="$ac_aux_dir/install.sh -c"
4961     break
4962   elif test -f "$ac_dir/shtool"; then
4963     ac_aux_dir=$ac_dir
4964     ac_install_sh="$ac_aux_dir/shtool install -c"
4965     break
4966   fi
4967 done
4968 if test -z "$ac_aux_dir"; then
4969   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
4970 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
4971    { (exit 1); exit 1; }; }
4972 fi
4973
4974 # These three variables are undocumented and unsupported,
4975 # and are intended to be withdrawn in a future Autoconf release.
4976 # They can cause serious problems if a builder's source tree is in a directory
4977 # whose full name contains unusual characters.
4978 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4979 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4980 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4981
4982
4983 # Make sure we can run config.sub.
4984 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4985   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4986 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4987    { (exit 1); exit 1; }; }
4988
4989 { echo "$as_me:$LINENO: checking build system type" >&5
4990 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4991 if test "${ac_cv_build+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994   ac_build_alias=$build_alias
4995 test "x$ac_build_alias" = x &&
4996   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4997 test "x$ac_build_alias" = x &&
4998   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4999 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5000    { (exit 1); exit 1; }; }
5001 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5002   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5003 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5004    { (exit 1); exit 1; }; }
5005
5006 fi
5007 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5008 echo "${ECHO_T}$ac_cv_build" >&6; }
5009 case $ac_cv_build in
5010 *-*-*) ;;
5011 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5012 echo "$as_me: error: invalid value of canonical build" >&2;}
5013    { (exit 1); exit 1; }; };;
5014 esac
5015 build=$ac_cv_build
5016 ac_save_IFS=$IFS; IFS='-'
5017 set x $ac_cv_build
5018 shift
5019 build_cpu=$1
5020 build_vendor=$2
5021 shift; shift
5022 # Remember, the first character of IFS is used to create $*,
5023 # except with old shells:
5024 build_os=$*
5025 IFS=$ac_save_IFS
5026 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5027
5028
5029 { echo "$as_me:$LINENO: checking host system type" >&5
5030 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5031 if test "${ac_cv_host+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   if test "x$host_alias" = x; then
5035   ac_cv_host=$ac_cv_build
5036 else
5037   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5038     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5040    { (exit 1); exit 1; }; }
5041 fi
5042
5043 fi
5044 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5045 echo "${ECHO_T}$ac_cv_host" >&6; }
5046 case $ac_cv_host in
5047 *-*-*) ;;
5048 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5049 echo "$as_me: error: invalid value of canonical host" >&2;}
5050    { (exit 1); exit 1; }; };;
5051 esac
5052 host=$ac_cv_host
5053 ac_save_IFS=$IFS; IFS='-'
5054 set x $ac_cv_host
5055 shift
5056 host_cpu=$1
5057 host_vendor=$2
5058 shift; shift
5059 # Remember, the first character of IFS is used to create $*,
5060 # except with old shells:
5061 host_os=$*
5062 IFS=$ac_save_IFS
5063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5064
5065
5066 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5067 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5068 if test "${lt_cv_path_SED+set}" = set; then
5069   echo $ECHO_N "(cached) $ECHO_C" >&6
5070 else
5071   # Loop through the user's path and test for sed and gsed.
5072 # Then use that list of sed's as ones to test for truncation.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078   for lt_ac_prog in sed gsed; do
5079     for ac_exec_ext in '' $ac_executable_extensions; do
5080       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5081         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5082       fi
5083     done
5084   done
5085 done
5086 IFS=$as_save_IFS
5087 lt_ac_max=0
5088 lt_ac_count=0
5089 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5090 # along with /bin/sed that truncates output.
5091 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5092   test ! -f $lt_ac_sed && continue
5093   cat /dev/null > conftest.in
5094   lt_ac_count=0
5095   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5096   # Check for GNU sed and select it if it is found.
5097   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5098     lt_cv_path_SED=$lt_ac_sed
5099     break
5100   fi
5101   while true; do
5102     cat conftest.in conftest.in >conftest.tmp
5103     mv conftest.tmp conftest.in
5104     cp conftest.in conftest.nl
5105     echo >>conftest.nl
5106     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5107     cmp -s conftest.out conftest.nl || break
5108     # 10000 chars as input seems more than enough
5109     test $lt_ac_count -gt 10 && break
5110     lt_ac_count=`expr $lt_ac_count + 1`
5111     if test $lt_ac_count -gt $lt_ac_max; then
5112       lt_ac_max=$lt_ac_count
5113       lt_cv_path_SED=$lt_ac_sed
5114     fi
5115   done
5116 done
5117
5118 fi
5119
5120 SED=$lt_cv_path_SED
5121
5122 { echo "$as_me:$LINENO: result: $SED" >&5
5123 echo "${ECHO_T}$SED" >&6; }
5124
5125
5126 # Check whether --with-gnu-ld was given.
5127 if test "${with_gnu_ld+set}" = set; then
5128   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5129 else
5130   with_gnu_ld=no
5131 fi
5132
5133 ac_prog=ld
5134 if test "$GCC" = yes; then
5135   # Check if gcc -print-prog-name=ld gives a path.
5136   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5137 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5138   case $host in
5139   *-*-mingw*)
5140     # gcc leaves a trailing carriage return which upsets mingw
5141     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5142   *)
5143     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5144   esac
5145   case $ac_prog in
5146     # Accept absolute paths.
5147     [\\/]* | ?:[\\/]*)
5148       re_direlt='/[^/][^/]*/\.\./'
5149       # Canonicalize the pathname of ld
5150       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5151       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5152         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5153       done
5154       test -z "$LD" && LD="$ac_prog"
5155       ;;
5156   "")
5157     # If it fails, then pretend we aren't using GCC.
5158     ac_prog=ld
5159     ;;
5160   *)
5161     # If it is relative, then search for the first ld in PATH.
5162     with_gnu_ld=unknown
5163     ;;
5164   esac
5165 elif test "$with_gnu_ld" = yes; then
5166   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5167 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5168 else
5169   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5170 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5171 fi
5172 if test "${lt_cv_path_LD+set}" = set; then
5173   echo $ECHO_N "(cached) $ECHO_C" >&6
5174 else
5175   if test -z "$LD"; then
5176   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5177   for ac_dir in $PATH; do
5178     IFS="$lt_save_ifs"
5179     test -z "$ac_dir" && ac_dir=.
5180     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5181       lt_cv_path_LD="$ac_dir/$ac_prog"
5182       # Check to see if the program is GNU ld.  I'd rather use --version,
5183       # but apparently some variants of GNU ld only accept -v.
5184       # Break only if it was the GNU/non-GNU ld that we prefer.
5185       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5186       *GNU* | *'with BFD'*)
5187         test "$with_gnu_ld" != no && break
5188         ;;
5189       *)
5190         test "$with_gnu_ld" != yes && break
5191         ;;
5192       esac
5193     fi
5194   done
5195   IFS="$lt_save_ifs"
5196 else
5197   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5198 fi
5199 fi
5200
5201 LD="$lt_cv_path_LD"
5202 if test -n "$LD"; then
5203   { echo "$as_me:$LINENO: result: $LD" >&5
5204 echo "${ECHO_T}$LD" >&6; }
5205 else
5206   { echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6; }
5208 fi
5209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5211    { (exit 1); exit 1; }; }
5212 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5214 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5218 case `$LD -v 2>&1 </dev/null` in
5219 *GNU* | *'with BFD'*)
5220   lt_cv_prog_gnu_ld=yes
5221   ;;
5222 *)
5223   lt_cv_prog_gnu_ld=no
5224   ;;
5225 esac
5226 fi
5227 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5228 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5229 with_gnu_ld=$lt_cv_prog_gnu_ld
5230
5231
5232 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5233 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5234 if test "${lt_cv_ld_reload_flag+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   lt_cv_ld_reload_flag='-r'
5238 fi
5239 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5240 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5241 reload_flag=$lt_cv_ld_reload_flag
5242 case $reload_flag in
5243 "" | " "*) ;;
5244 *) reload_flag=" $reload_flag" ;;
5245 esac
5246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5247 case $host_os in
5248   darwin*)
5249     if test "$GCC" = yes; then
5250       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5251     else
5252       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5253     fi
5254     ;;
5255 esac
5256
5257 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5258 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5259 if test "${lt_cv_path_NM+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   if test -n "$NM"; then
5263   # Let the user override the test.
5264   lt_cv_path_NM="$NM"
5265 else
5266   lt_nm_to_check="${ac_tool_prefix}nm"
5267   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5268     lt_nm_to_check="$lt_nm_to_check nm"
5269   fi
5270   for lt_tmp_nm in $lt_nm_to_check; do
5271     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5272     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5273       IFS="$lt_save_ifs"
5274       test -z "$ac_dir" && ac_dir=.
5275       tmp_nm="$ac_dir/$lt_tmp_nm"
5276       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5277         # Check to see if the nm accepts a BSD-compat flag.
5278         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5279         #   nm: unknown option "B" ignored
5280         # Tru64's nm complains that /dev/null is an invalid object file
5281         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5282         */dev/null* | *'Invalid file or object type'*)
5283           lt_cv_path_NM="$tmp_nm -B"
5284           break
5285           ;;
5286         *)
5287           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5288           */dev/null*)
5289             lt_cv_path_NM="$tmp_nm -p"
5290             break
5291             ;;
5292           *)
5293             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5294             continue # so that we can try to find one that supports BSD flags
5295             ;;
5296           esac
5297           ;;
5298         esac
5299       fi
5300     done
5301     IFS="$lt_save_ifs"
5302   done
5303   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5304 fi
5305 fi
5306 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5307 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5308 NM="$lt_cv_path_NM"
5309
5310 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5311 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5312 LN_S=$as_ln_s
5313 if test "$LN_S" = "ln -s"; then
5314   { echo "$as_me:$LINENO: result: yes" >&5
5315 echo "${ECHO_T}yes" >&6; }
5316 else
5317   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5318 echo "${ECHO_T}no, using $LN_S" >&6; }
5319 fi
5320
5321 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5322 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5323 if test "${lt_cv_deplibs_check_method+set}" = set; then
5324   echo $ECHO_N "(cached) $ECHO_C" >&6
5325 else
5326   lt_cv_file_magic_cmd='$MAGIC_CMD'
5327 lt_cv_file_magic_test_file=
5328 lt_cv_deplibs_check_method='unknown'
5329 # Need to set the preceding variable on all platforms that support
5330 # interlibrary dependencies.
5331 # 'none' -- dependencies not supported.
5332 # `unknown' -- same as none, but documents that we really don't know.
5333 # 'pass_all' -- all dependencies passed with no checks.
5334 # 'test_compile' -- check by making test program.
5335 # 'file_magic [[regex]]' -- check by looking for files in library path
5336 # which responds to the $file_magic_cmd with a given extended regex.
5337 # If you have `file' or equivalent on your system and you're not sure
5338 # whether `pass_all' will *always* work, you probably want this one.
5339
5340 case $host_os in
5341 aix[4-9]*)
5342   lt_cv_deplibs_check_method=pass_all
5343   ;;
5344
5345 beos*)
5346   lt_cv_deplibs_check_method=pass_all
5347   ;;
5348
5349 bsdi[45]*)
5350   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5351   lt_cv_file_magic_cmd='/usr/bin/file -L'
5352   lt_cv_file_magic_test_file=/shlib/libc.so
5353   ;;
5354
5355 cygwin*)
5356   # func_win32_libid is a shell function defined in ltmain.sh
5357   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5358   lt_cv_file_magic_cmd='func_win32_libid'
5359   ;;
5360
5361 mingw* | pw32*)
5362   # Base MSYS/MinGW do not provide the 'file' command needed by
5363   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5364   # unless we find 'file', for example because we are cross-compiling.
5365   if ( file / ) >/dev/null 2>&1; then
5366     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5367     lt_cv_file_magic_cmd='func_win32_libid'
5368   else
5369     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5370     lt_cv_file_magic_cmd='$OBJDUMP -f'
5371   fi
5372   ;;
5373
5374 darwin* | rhapsody*)
5375   lt_cv_deplibs_check_method=pass_all
5376   ;;
5377
5378 freebsd* | dragonfly*)
5379   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5380     case $host_cpu in
5381     i*86 )
5382       # Not sure whether the presence of OpenBSD here was a mistake.
5383       # Let's accept both of them until this is cleared up.
5384       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5385       lt_cv_file_magic_cmd=/usr/bin/file
5386       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5387       ;;
5388     esac
5389   else
5390     lt_cv_deplibs_check_method=pass_all
5391   fi
5392   ;;
5393
5394 gnu*)
5395   lt_cv_deplibs_check_method=pass_all
5396   ;;
5397
5398 hpux10.20* | hpux11*)
5399   lt_cv_file_magic_cmd=/usr/bin/file
5400   case $host_cpu in
5401   ia64*)
5402     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5403     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5404     ;;
5405   hppa*64*)
5406     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]'
5407     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5408     ;;
5409   *)
5410     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5411     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5412     ;;
5413   esac
5414   ;;
5415
5416 interix[3-9]*)
5417   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5418   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5419   ;;
5420
5421 irix5* | irix6* | nonstopux*)
5422   case $LD in
5423   *-32|*"-32 ") libmagic=32-bit;;
5424   *-n32|*"-n32 ") libmagic=N32;;
5425   *-64|*"-64 ") libmagic=64-bit;;
5426   *) libmagic=never-match;;
5427   esac
5428   lt_cv_deplibs_check_method=pass_all
5429   ;;
5430
5431 # This must be Linux ELF.
5432 linux* | k*bsd*-gnu)
5433   lt_cv_deplibs_check_method=pass_all
5434   ;;
5435
5436 netbsd* | netbsdelf*-gnu)
5437   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5439   else
5440     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5441   fi
5442   ;;
5443
5444 newos6*)
5445   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5446   lt_cv_file_magic_cmd=/usr/bin/file
5447   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5448   ;;
5449
5450 nto-qnx*)
5451   lt_cv_deplibs_check_method=unknown
5452   ;;
5453
5454 openbsd*)
5455   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5456     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5457   else
5458     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5459   fi
5460   ;;
5461
5462 osf3* | osf4* | osf5*)
5463   lt_cv_deplibs_check_method=pass_all
5464   ;;
5465
5466 rdos*)
5467   lt_cv_deplibs_check_method=pass_all
5468   ;;
5469
5470 solaris*)
5471   lt_cv_deplibs_check_method=pass_all
5472   ;;
5473
5474 sysv4 | sysv4.3*)
5475   case $host_vendor in
5476   motorola)
5477     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]'
5478     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5479     ;;
5480   ncr)
5481     lt_cv_deplibs_check_method=pass_all
5482     ;;
5483   sequent)
5484     lt_cv_file_magic_cmd='/bin/file'
5485     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5486     ;;
5487   sni)
5488     lt_cv_file_magic_cmd='/bin/file'
5489     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5490     lt_cv_file_magic_test_file=/lib/libc.so
5491     ;;
5492   siemens)
5493     lt_cv_deplibs_check_method=pass_all
5494     ;;
5495   pc)
5496     lt_cv_deplibs_check_method=pass_all
5497     ;;
5498   esac
5499   ;;
5500
5501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5502   lt_cv_deplibs_check_method=pass_all
5503   ;;
5504 esac
5505
5506 fi
5507 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5508 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5509 file_magic_cmd=$lt_cv_file_magic_cmd
5510 deplibs_check_method=$lt_cv_deplibs_check_method
5511 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5512
5513
5514
5515
5516 # If no C compiler was specified, use CC.
5517 LTCC=${LTCC-"$CC"}
5518
5519 # If no C compiler flags were specified, use CFLAGS.
5520 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5521
5522 # Allow CC to be a program name with arguments.
5523 compiler=$CC
5524
5525 # Check whether --enable-libtool-lock was given.
5526 if test "${enable_libtool_lock+set}" = set; then
5527   enableval=$enable_libtool_lock;
5528 fi
5529
5530 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5531
5532 # Some flags need to be propagated to the compiler or linker for good
5533 # libtool support.
5534 case $host in
5535 ia64-*-hpux*)
5536   # Find out which ABI we are using.
5537   echo 'int i;' > conftest.$ac_ext
5538   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539   (eval $ac_compile) 2>&5
5540   ac_status=$?
5541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542   (exit $ac_status); }; then
5543     case `/usr/bin/file conftest.$ac_objext` in
5544     *ELF-32*)
5545       HPUX_IA64_MODE="32"
5546       ;;
5547     *ELF-64*)
5548       HPUX_IA64_MODE="64"
5549       ;;
5550     esac
5551   fi
5552   rm -rf conftest*
5553   ;;
5554 *-*-irix6*)
5555   # Find out which ABI we are using.
5556   echo '#line 5556 "configure"' > conftest.$ac_ext
5557   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558   (eval $ac_compile) 2>&5
5559   ac_status=$?
5560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5561   (exit $ac_status); }; then
5562    if test "$lt_cv_prog_gnu_ld" = yes; then
5563     case `/usr/bin/file conftest.$ac_objext` in
5564     *32-bit*)
5565       LD="${LD-ld} -melf32bsmip"
5566       ;;
5567     *N32*)
5568       LD="${LD-ld} -melf32bmipn32"
5569       ;;
5570     *64-bit*)
5571       LD="${LD-ld} -melf64bmip"
5572       ;;
5573     esac
5574    else
5575     case `/usr/bin/file conftest.$ac_objext` in
5576     *32-bit*)
5577       LD="${LD-ld} -32"
5578       ;;
5579     *N32*)
5580       LD="${LD-ld} -n32"
5581       ;;
5582     *64-bit*)
5583       LD="${LD-ld} -64"
5584       ;;
5585     esac
5586    fi
5587   fi
5588   rm -rf conftest*
5589   ;;
5590
5591 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5592 s390*-*linux*|sparc*-*linux*)
5593   # Find out which ABI we are using.
5594   echo 'int i;' > conftest.$ac_ext
5595   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596   (eval $ac_compile) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; then
5600     case `/usr/bin/file conftest.o` in
5601     *32-bit*)
5602       case $host in
5603         x86_64-*kfreebsd*-gnu)
5604           LD="${LD-ld} -m elf_i386_fbsd"
5605           ;;
5606         x86_64-*linux*)
5607           LD="${LD-ld} -m elf_i386"
5608           ;;
5609         ppc64-*linux*|powerpc64-*linux*)
5610           LD="${LD-ld} -m elf32ppclinux"
5611           ;;
5612         s390x-*linux*)
5613           LD="${LD-ld} -m elf_s390"
5614           ;;
5615         sparc64-*linux*)
5616           LD="${LD-ld} -m elf32_sparc"
5617           ;;
5618       esac
5619       ;;
5620     *64-bit*)
5621       case $host in
5622         x86_64-*kfreebsd*-gnu)
5623           LD="${LD-ld} -m elf_x86_64_fbsd"
5624           ;;
5625         x86_64-*linux*)
5626           LD="${LD-ld} -m elf_x86_64"
5627           ;;
5628         ppc*-*linux*|powerpc*-*linux*)
5629           LD="${LD-ld} -m elf64ppc"
5630           ;;
5631         s390*-*linux*)
5632           LD="${LD-ld} -m elf64_s390"
5633           ;;
5634         sparc*-*linux*)
5635           LD="${LD-ld} -m elf64_sparc"
5636           ;;
5637       esac
5638       ;;
5639     esac
5640   fi
5641   rm -rf conftest*
5642   ;;
5643
5644 *-*-sco3.2v5*)
5645   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5646   SAVE_CFLAGS="$CFLAGS"
5647   CFLAGS="$CFLAGS -belf"
5648   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5649 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5650 if test "${lt_cv_cc_needs_belf+set}" = set; then
5651   echo $ECHO_N "(cached) $ECHO_C" >&6
5652 else
5653   ac_ext=c
5654 ac_cpp='$CPP $CPPFLAGS'
5655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5658
5659      cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665
5666 int
5667 main ()
5668 {
5669
5670   ;
5671   return 0;
5672 }
5673 _ACEOF
5674 rm -f conftest.$ac_objext conftest$ac_exeext
5675 if { (ac_try="$ac_link"
5676 case "(($ac_try" in
5677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678   *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681   (eval "$ac_link") 2>conftest.er1
5682   ac_status=$?
5683   grep -v '^ *+' conftest.er1 >conftest.err
5684   rm -f conftest.er1
5685   cat conftest.err >&5
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); } && {
5688          test -z "$ac_c_werror_flag" ||
5689          test ! -s conftest.err
5690        } && test -s conftest$ac_exeext &&
5691        $as_test_x conftest$ac_exeext; then
5692   lt_cv_cc_needs_belf=yes
5693 else
5694   echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5696
5697         lt_cv_cc_needs_belf=no
5698 fi
5699
5700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5701       conftest$ac_exeext conftest.$ac_ext
5702      ac_ext=c
5703 ac_cpp='$CPP $CPPFLAGS'
5704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5707
5708 fi
5709 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5710 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5711   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5712     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5713     CFLAGS="$SAVE_CFLAGS"
5714   fi
5715   ;;
5716 sparc*-*solaris*)
5717   # Find out which ABI we are using.
5718   echo 'int i;' > conftest.$ac_ext
5719   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720   (eval $ac_compile) 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); }; then
5724     case `/usr/bin/file conftest.o` in
5725     *64-bit*)
5726       case $lt_cv_prog_gnu_ld in
5727       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5728       *)
5729         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5730           LD="${LD-ld} -64"
5731         fi
5732         ;;
5733       esac
5734       ;;
5735     esac
5736   fi
5737   rm -rf conftest*
5738   ;;
5739
5740
5741 esac
5742
5743 need_locks="$enable_libtool_lock"
5744
5745
5746
5747 for ac_header in dlfcn.h
5748 do
5749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5751   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 fi
5756 ac_res=`eval echo '${'$as_ac_Header'}'`
5757                { echo "$as_me:$LINENO: result: $ac_res" >&5
5758 echo "${ECHO_T}$ac_res" >&6; }
5759 else
5760   # Is the header compilable?
5761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5763 cat >conftest.$ac_ext <<_ACEOF
5764 /* confdefs.h.  */
5765 _ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h.  */
5769 $ac_includes_default
5770 #include <$ac_header>
5771 _ACEOF
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5774 case "(($ac_try" in
5775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776   *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779   (eval "$ac_compile") 2>conftest.er1
5780   ac_status=$?
5781   grep -v '^ *+' conftest.er1 >conftest.err
5782   rm -f conftest.er1
5783   cat conftest.err >&5
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } && {
5786          test -z "$ac_c_werror_flag" ||
5787          test ! -s conftest.err
5788        } && test -s conftest.$ac_objext; then
5789   ac_header_compiler=yes
5790 else
5791   echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794         ac_header_compiler=no
5795 fi
5796
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5799 echo "${ECHO_T}$ac_header_compiler" >&6; }
5800
5801 # Is the header present?
5802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5804 cat >conftest.$ac_ext <<_ACEOF
5805 /* confdefs.h.  */
5806 _ACEOF
5807 cat confdefs.h >>conftest.$ac_ext
5808 cat >>conftest.$ac_ext <<_ACEOF
5809 /* end confdefs.h.  */
5810 #include <$ac_header>
5811 _ACEOF
5812 if { (ac_try="$ac_cpp conftest.$ac_ext"
5813 case "(($ac_try" in
5814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815   *) ac_try_echo=$ac_try;;
5816 esac
5817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5819   ac_status=$?
5820   grep -v '^ *+' conftest.er1 >conftest.err
5821   rm -f conftest.er1
5822   cat conftest.err >&5
5823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); } >/dev/null && {
5825          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5826          test ! -s conftest.err
5827        }; then
5828   ac_header_preproc=yes
5829 else
5830   echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5832
5833   ac_header_preproc=no
5834 fi
5835
5836 rm -f conftest.err conftest.$ac_ext
5837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5838 echo "${ECHO_T}$ac_header_preproc" >&6; }
5839
5840 # So?  What about this header?
5841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5842   yes:no: )
5843     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5845     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5847     ac_header_preproc=yes
5848     ;;
5849   no:yes:* )
5850     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5852     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5853 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5854     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5856     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5857 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5858     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5860     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5862
5863     ;;
5864 esac
5865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5868   echo $ECHO_N "(cached) $ECHO_C" >&6
5869 else
5870   eval "$as_ac_Header=\$ac_header_preproc"
5871 fi
5872 ac_res=`eval echo '${'$as_ac_Header'}'`
5873                { echo "$as_me:$LINENO: result: $ac_res" >&5
5874 echo "${ECHO_T}$ac_res" >&6; }
5875
5876 fi
5877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5878   cat >>confdefs.h <<_ACEOF
5879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5880 _ACEOF
5881
5882 fi
5883
5884 done
5885
5886
5887
5888 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5889     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5890     (test "X$CXX" != "Xg++"))) ; then
5891   ac_ext=cpp
5892 ac_cpp='$CXXCPP $CPPFLAGS'
5893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5896 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5897 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5898 if test -z "$CXXCPP"; then
5899   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902       # Double quotes because CXXCPP needs to be expanded
5903     for CXXCPP in "$CXX -E" "/lib/cpp"
5904     do
5905       ac_preproc_ok=false
5906 for ac_cxx_preproc_warn_flag in '' yes
5907 do
5908   # Use a header file that comes with gcc, so configuring glibc
5909   # with a fresh cross-compiler works.
5910   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911   # <limits.h> exists even on freestanding compilers.
5912   # On the NeXT, cc -E runs the code through the compiler's parser,
5913   # not just through cpp. "Syntax error" is here to catch this case.
5914   cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920 #ifdef __STDC__
5921 # include <limits.h>
5922 #else
5923 # include <assert.h>
5924 #endif
5925                      Syntax error
5926 _ACEOF
5927 if { (ac_try="$ac_cpp conftest.$ac_ext"
5928 case "(($ac_try" in
5929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930   *) ac_try_echo=$ac_try;;
5931 esac
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5934   ac_status=$?
5935   grep -v '^ *+' conftest.er1 >conftest.err
5936   rm -f conftest.er1
5937   cat conftest.err >&5
5938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939   (exit $ac_status); } >/dev/null && {
5940          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5941          test ! -s conftest.err
5942        }; then
5943   :
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948   # Broken: fails on valid input.
5949 continue
5950 fi
5951
5952 rm -f conftest.err conftest.$ac_ext
5953
5954   # OK, works on sane cases.  Now check whether nonexistent headers
5955   # can be detected and how.
5956   cat >conftest.$ac_ext <<_ACEOF
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 #include <ac_nonexistent.h>
5963 _ACEOF
5964 if { (ac_try="$ac_cpp conftest.$ac_ext"
5965 case "(($ac_try" in
5966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967   *) ac_try_echo=$ac_try;;
5968 esac
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5971   ac_status=$?
5972   grep -v '^ *+' conftest.er1 >conftest.err
5973   rm -f conftest.er1
5974   cat conftest.err >&5
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); } >/dev/null && {
5977          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5978          test ! -s conftest.err
5979        }; then
5980   # Broken: success on invalid input.
5981 continue
5982 else
5983   echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5985
5986   # Passes both tests.
5987 ac_preproc_ok=:
5988 break
5989 fi
5990
5991 rm -f conftest.err conftest.$ac_ext
5992
5993 done
5994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5995 rm -f conftest.err conftest.$ac_ext
5996 if $ac_preproc_ok; then
5997   break
5998 fi
5999
6000     done
6001     ac_cv_prog_CXXCPP=$CXXCPP
6002
6003 fi
6004   CXXCPP=$ac_cv_prog_CXXCPP
6005 else
6006   ac_cv_prog_CXXCPP=$CXXCPP
6007 fi
6008 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6009 echo "${ECHO_T}$CXXCPP" >&6; }
6010 ac_preproc_ok=false
6011 for ac_cxx_preproc_warn_flag in '' yes
6012 do
6013   # Use a header file that comes with gcc, so configuring glibc
6014   # with a fresh cross-compiler works.
6015   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016   # <limits.h> exists even on freestanding compilers.
6017   # On the NeXT, cc -E runs the code through the compiler's parser,
6018   # not just through cpp. "Syntax error" is here to catch this case.
6019   cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025 #ifdef __STDC__
6026 # include <limits.h>
6027 #else
6028 # include <assert.h>
6029 #endif
6030                      Syntax error
6031 _ACEOF
6032 if { (ac_try="$ac_cpp conftest.$ac_ext"
6033 case "(($ac_try" in
6034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035   *) ac_try_echo=$ac_try;;
6036 esac
6037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6039   ac_status=$?
6040   grep -v '^ *+' conftest.er1 >conftest.err
6041   rm -f conftest.er1
6042   cat conftest.err >&5
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } >/dev/null && {
6045          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6046          test ! -s conftest.err
6047        }; then
6048   :
6049 else
6050   echo "$as_me: failed program was:" >&5
6051 sed 's/^/| /' conftest.$ac_ext >&5
6052
6053   # Broken: fails on valid input.
6054 continue
6055 fi
6056
6057 rm -f conftest.err conftest.$ac_ext
6058
6059   # OK, works on sane cases.  Now check whether nonexistent headers
6060   # can be detected and how.
6061   cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h.  */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h.  */
6067 #include <ac_nonexistent.h>
6068 _ACEOF
6069 if { (ac_try="$ac_cpp conftest.$ac_ext"
6070 case "(($ac_try" in
6071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072   *) ac_try_echo=$ac_try;;
6073 esac
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6076   ac_status=$?
6077   grep -v '^ *+' conftest.er1 >conftest.err
6078   rm -f conftest.er1
6079   cat conftest.err >&5
6080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081   (exit $ac_status); } >/dev/null && {
6082          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6083          test ! -s conftest.err
6084        }; then
6085   # Broken: success on invalid input.
6086 continue
6087 else
6088   echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6090
6091   # Passes both tests.
6092 ac_preproc_ok=:
6093 break
6094 fi
6095
6096 rm -f conftest.err conftest.$ac_ext
6097
6098 done
6099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6100 rm -f conftest.err conftest.$ac_ext
6101 if $ac_preproc_ok; then
6102   :
6103 else
6104   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6105 See \`config.log' for more details." >&5
6106 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6107 See \`config.log' for more details." >&2;}
6108    { (exit 1); exit 1; }; }
6109 fi
6110
6111 ac_ext=cpp
6112 ac_cpp='$CXXCPP $CPPFLAGS'
6113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6116
6117 fi
6118
6119
6120 ac_ext=f
6121 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6122 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6123 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6124 if test -n "$ac_tool_prefix"; then
6125   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
6126   do
6127     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_F77+set}" = set; then
6132   echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134   if test -n "$F77"; then
6135   ac_cv_prog_F77="$F77" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140   IFS=$as_save_IFS
6141   test -z "$as_dir" && as_dir=.
6142   for ac_exec_ext in '' $ac_executable_extensions; do
6143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146     break 2
6147   fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 F77=$ac_cv_prog_F77
6155 if test -n "$F77"; then
6156   { echo "$as_me:$LINENO: result: $F77" >&5
6157 echo "${ECHO_T}$F77" >&6; }
6158 else
6159   { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6161 fi
6162
6163
6164     test -n "$F77" && break
6165   done
6166 fi
6167 if test -z "$F77"; then
6168   ac_ct_F77=$F77
6169   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
6170 do
6171   # Extract the first word of "$ac_prog", so it can be a program name with args.
6172 set dummy $ac_prog; ac_word=$2
6173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6176   echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178   if test -n "$ac_ct_F77"; then
6179   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184   IFS=$as_save_IFS
6185   test -z "$as_dir" && as_dir=.
6186   for ac_exec_ext in '' $ac_executable_extensions; do
6187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6188     ac_cv_prog_ac_ct_F77="$ac_prog"
6189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190     break 2
6191   fi
6192 done
6193 done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6199 if test -n "$ac_ct_F77"; then
6200   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6201 echo "${ECHO_T}$ac_ct_F77" >&6; }
6202 else
6203   { echo "$as_me:$LINENO: result: no" >&5
6204 echo "${ECHO_T}no" >&6; }
6205 fi
6206
6207
6208   test -n "$ac_ct_F77" && break
6209 done
6210
6211   if test "x$ac_ct_F77" = x; then
6212     F77=""
6213   else
6214     case $cross_compiling:$ac_tool_warned in
6215 yes:)
6216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6217 whose name does not start with the host triplet.  If you think this
6218 configuration is useful to you, please write to autoconf@gnu.org." >&5
6219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6220 whose name does not start with the host triplet.  If you think this
6221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6222 ac_tool_warned=yes ;;
6223 esac
6224     F77=$ac_ct_F77
6225   fi
6226 fi
6227
6228
6229 # Provide some information about the compiler.
6230 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6231 ac_compiler=`set X $ac_compile; echo $2`
6232 { (ac_try="$ac_compiler --version >&5"
6233 case "(($ac_try" in
6234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235   *) ac_try_echo=$ac_try;;
6236 esac
6237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238   (eval "$ac_compiler --version >&5") 2>&5
6239   ac_status=$?
6240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241   (exit $ac_status); }
6242 { (ac_try="$ac_compiler -v >&5"
6243 case "(($ac_try" in
6244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245   *) ac_try_echo=$ac_try;;
6246 esac
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248   (eval "$ac_compiler -v >&5") 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }
6252 { (ac_try="$ac_compiler -V >&5"
6253 case "(($ac_try" in
6254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255   *) ac_try_echo=$ac_try;;
6256 esac
6257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258   (eval "$ac_compiler -V >&5") 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); }
6262 rm -f a.out
6263
6264 # If we don't use `.F' as extension, the preprocessor is not run on the
6265 # input file.  (Note that this only needs to work for GNU compilers.)
6266 ac_save_ext=$ac_ext
6267 ac_ext=F
6268 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6269 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6270 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   cat >conftest.$ac_ext <<_ACEOF
6274       program main
6275 #ifndef __GNUC__
6276        choke me
6277 #endif
6278
6279       end
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (ac_try="$ac_compile"
6283 case "(($ac_try" in
6284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285   *) ac_try_echo=$ac_try;;
6286 esac
6287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6288   (eval "$ac_compile") 2>conftest.er1
6289   ac_status=$?
6290   grep -v '^ *+' conftest.er1 >conftest.err
6291   rm -f conftest.er1
6292   cat conftest.err >&5
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } && {
6295          test -z "$ac_f77_werror_flag" ||
6296          test ! -s conftest.err
6297        } && test -s conftest.$ac_objext; then
6298   ac_compiler_gnu=yes
6299 else
6300   echo "$as_me: failed program was:" >&5
6301 sed 's/^/| /' conftest.$ac_ext >&5
6302
6303         ac_compiler_gnu=no
6304 fi
6305
6306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6308
6309 fi
6310 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6311 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6312 ac_ext=$ac_save_ext
6313 ac_test_FFLAGS=${FFLAGS+set}
6314 ac_save_FFLAGS=$FFLAGS
6315 FFLAGS=
6316 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6317 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6318 if test "${ac_cv_prog_f77_g+set}" = set; then
6319   echo $ECHO_N "(cached) $ECHO_C" >&6
6320 else
6321   FFLAGS=-g
6322 cat >conftest.$ac_ext <<_ACEOF
6323       program main
6324
6325       end
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6329 case "(($ac_try" in
6330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331   *) ac_try_echo=$ac_try;;
6332 esac
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334   (eval "$ac_compile") 2>conftest.er1
6335   ac_status=$?
6336   grep -v '^ *+' conftest.er1 >conftest.err
6337   rm -f conftest.er1
6338   cat conftest.err >&5
6339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340   (exit $ac_status); } && {
6341          test -z "$ac_f77_werror_flag" ||
6342          test ! -s conftest.err
6343        } && test -s conftest.$ac_objext; then
6344   ac_cv_prog_f77_g=yes
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349         ac_cv_prog_f77_g=no
6350 fi
6351
6352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353
6354 fi
6355 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6356 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6357 if test "$ac_test_FFLAGS" = set; then
6358   FFLAGS=$ac_save_FFLAGS
6359 elif test $ac_cv_prog_f77_g = yes; then
6360   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6361     FFLAGS="-g -O2"
6362   else
6363     FFLAGS="-g"
6364   fi
6365 else
6366   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6367     FFLAGS="-O2"
6368   else
6369     FFLAGS=
6370   fi
6371 fi
6372
6373 G77=`test $ac_compiler_gnu = yes && echo yes`
6374 ac_ext=c
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379
6380
6381
6382 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6383 # find the maximum length of command line arguments
6384 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6385 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6386 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389     i=0
6390   teststring="ABCD"
6391
6392   case $build_os in
6393   msdosdjgpp*)
6394     # On DJGPP, this test can blow up pretty badly due to problems in libc
6395     # (any single argument exceeding 2000 bytes causes a buffer overrun
6396     # during glob expansion).  Even if it were fixed, the result of this
6397     # check would be larger than it should be.
6398     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6399     ;;
6400
6401   gnu*)
6402     # Under GNU Hurd, this test is not required because there is
6403     # no limit to the length of command line arguments.
6404     # Libtool will interpret -1 as no limit whatsoever
6405     lt_cv_sys_max_cmd_len=-1;
6406     ;;
6407
6408   cygwin* | mingw*)
6409     # On Win9x/ME, this test blows up -- it succeeds, but takes
6410     # about 5 minutes as the teststring grows exponentially.
6411     # Worse, since 9x/ME are not pre-emptively multitasking,
6412     # you end up with a "frozen" computer, even though with patience
6413     # the test eventually succeeds (with a max line length of 256k).
6414     # Instead, let's just punt: use the minimum linelength reported by
6415     # all of the supported platforms: 8192 (on NT/2K/XP).
6416     lt_cv_sys_max_cmd_len=8192;
6417     ;;
6418
6419   amigaos*)
6420     # On AmigaOS with pdksh, this test takes hours, literally.
6421     # So we just punt and use a minimum line length of 8192.
6422     lt_cv_sys_max_cmd_len=8192;
6423     ;;
6424
6425   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6426     # This has been around since 386BSD, at least.  Likely further.
6427     if test -x /sbin/sysctl; then
6428       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6429     elif test -x /usr/sbin/sysctl; then
6430       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6431     else
6432       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6433     fi
6434     # And add a safety zone
6435     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6436     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6437     ;;
6438
6439   interix*)
6440     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6441     lt_cv_sys_max_cmd_len=196608
6442     ;;
6443
6444   osf*)
6445     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6446     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6447     # nice to cause kernel panics so lets avoid the loop below.
6448     # First set a reasonable default.
6449     lt_cv_sys_max_cmd_len=16384
6450     #
6451     if test -x /sbin/sysconfig; then
6452       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6453         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6454       esac
6455     fi
6456     ;;
6457   sco3.2v5*)
6458     lt_cv_sys_max_cmd_len=102400
6459     ;;
6460   sysv5* | sco5v6* | sysv4.2uw2*)
6461     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6462     if test -n "$kargmax"; then
6463       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6464     else
6465       lt_cv_sys_max_cmd_len=32768
6466     fi
6467     ;;
6468   *)
6469     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6470     if test -n "$lt_cv_sys_max_cmd_len"; then
6471       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6472       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6473     else
6474       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6475       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6476                = "XX$teststring") >/dev/null 2>&1 &&
6477               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6478               lt_cv_sys_max_cmd_len=$new_result &&
6479               test $i != 17 # 1/2 MB should be enough
6480       do
6481         i=`expr $i + 1`
6482         teststring=$teststring$teststring
6483       done
6484       teststring=
6485       # Add a significant safety factor because C++ compilers can tack on massive
6486       # amounts of additional arguments before passing them to the linker.
6487       # It appears as though 1/2 is a usable value.
6488       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6489     fi
6490     ;;
6491   esac
6492
6493 fi
6494
6495 if test -n $lt_cv_sys_max_cmd_len ; then
6496   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6497 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6498 else
6499   { echo "$as_me:$LINENO: result: none" >&5
6500 echo "${ECHO_T}none" >&6; }
6501 fi
6502
6503
6504
6505
6506
6507 # Check for command to grab the raw symbol name followed by C symbol from nm.
6508 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6509 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6510 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513
6514 # These are sane defaults that work on at least a few old systems.
6515 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6516
6517 # Character class describing NM global symbol codes.
6518 symcode='[BCDEGRST]'
6519
6520 # Regexp to match symbols that can be accessed directly from C.
6521 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6522
6523 # Transform an extracted symbol line into a proper C declaration
6524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6525
6526 # Transform an extracted symbol line into symbol name and symbol address
6527 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'"
6528
6529 # Define system-specific variables.
6530 case $host_os in
6531 aix*)
6532   symcode='[BCDT]'
6533   ;;
6534 cygwin* | mingw* | pw32*)
6535   symcode='[ABCDGISTW]'
6536   ;;
6537 hpux*) # Its linker distinguishes data from code symbols
6538   if test "$host_cpu" = ia64; then
6539     symcode='[ABCDEGRST]'
6540   fi
6541   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6542   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'"
6543   ;;
6544 linux* | k*bsd*-gnu)
6545   if test "$host_cpu" = ia64; then
6546     symcode='[ABCDGIRSTW]'
6547     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6548     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'"
6549   fi
6550   ;;
6551 irix* | nonstopux*)
6552   symcode='[BCDEGRST]'
6553   ;;
6554 osf*)
6555   symcode='[BCDEGQRST]'
6556   ;;
6557 solaris*)
6558   symcode='[BDRT]'
6559   ;;
6560 sco3.2v5*)
6561   symcode='[DT]'
6562   ;;
6563 sysv4.2uw2*)
6564   symcode='[DT]'
6565   ;;
6566 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6567   symcode='[ABDT]'
6568   ;;
6569 sysv4)
6570   symcode='[DFNSTU]'
6571   ;;
6572 esac
6573
6574 # Handle CRLF in mingw tool chain
6575 opt_cr=
6576 case $build_os in
6577 mingw*)
6578   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6579   ;;
6580 esac
6581
6582 # If we're using GNU nm, then use its standard symbol codes.
6583 case `$NM -V 2>&1` in
6584 *GNU* | *'with BFD'*)
6585   symcode='[ABCDGIRSTW]' ;;
6586 esac
6587
6588 # Try without a prefix undercore, then with it.
6589 for ac_symprfx in "" "_"; do
6590
6591   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6592   symxfrm="\\1 $ac_symprfx\\2 \\2"
6593
6594   # Write the raw and C identifiers.
6595   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6596
6597   # Check to see that the pipe works correctly.
6598   pipe_works=no
6599
6600   rm -f conftest*
6601   cat > conftest.$ac_ext <<EOF
6602 #ifdef __cplusplus
6603 extern "C" {
6604 #endif
6605 char nm_test_var;
6606 void nm_test_func(){}
6607 #ifdef __cplusplus
6608 }
6609 #endif
6610 int main(){nm_test_var='a';nm_test_func();return(0);}
6611 EOF
6612
6613   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6614   (eval $ac_compile) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; then
6618     # Now try to grab the symbols.
6619     nlist=conftest.nm
6620     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6621   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6622   ac_status=$?
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } && test -s "$nlist"; then
6625       # Try sorting and uniquifying the output.
6626       if sort "$nlist" | uniq > "$nlist"T; then
6627         mv -f "$nlist"T "$nlist"
6628       else
6629         rm -f "$nlist"T
6630       fi
6631
6632       # Make sure that we snagged all the symbols we need.
6633       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6634         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6635           cat <<EOF > conftest.$ac_ext
6636 #ifdef __cplusplus
6637 extern "C" {
6638 #endif
6639
6640 EOF
6641           # Now generate the symbol file.
6642           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6643
6644           cat <<EOF >> conftest.$ac_ext
6645 #if defined (__STDC__) && __STDC__
6646 # define lt_ptr_t void *
6647 #else
6648 # define lt_ptr_t char *
6649 # define const
6650 #endif
6651
6652 /* The mapping between symbol names and symbols. */
6653 const struct {
6654   const char *name;
6655   lt_ptr_t address;
6656 }
6657 lt_preloaded_symbols[] =
6658 {
6659 EOF
6660           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6661           cat <<\EOF >> conftest.$ac_ext
6662   {0, (lt_ptr_t) 0}
6663 };
6664
6665 #ifdef __cplusplus
6666 }
6667 #endif
6668 EOF
6669           # Now try linking the two files.
6670           mv conftest.$ac_objext conftstm.$ac_objext
6671           lt_save_LIBS="$LIBS"
6672           lt_save_CFLAGS="$CFLAGS"
6673           LIBS="conftstm.$ac_objext"
6674           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6675           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6676   (eval $ac_link) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6680             pipe_works=yes
6681           fi
6682           LIBS="$lt_save_LIBS"
6683           CFLAGS="$lt_save_CFLAGS"
6684         else
6685           echo "cannot find nm_test_func in $nlist" >&5
6686         fi
6687       else
6688         echo "cannot find nm_test_var in $nlist" >&5
6689       fi
6690     else
6691       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6692     fi
6693   else
6694     echo "$progname: failed program was:" >&5
6695     cat conftest.$ac_ext >&5
6696   fi
6697   rm -rf conftest* conftst*
6698
6699   # Do not use the global_symbol_pipe unless it works.
6700   if test "$pipe_works" = yes; then
6701     break
6702   else
6703     lt_cv_sys_global_symbol_pipe=
6704   fi
6705 done
6706
6707 fi
6708
6709 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6710   lt_cv_sys_global_symbol_to_cdecl=
6711 fi
6712 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6713   { echo "$as_me:$LINENO: result: failed" >&5
6714 echo "${ECHO_T}failed" >&6; }
6715 else
6716   { echo "$as_me:$LINENO: result: ok" >&5
6717 echo "${ECHO_T}ok" >&6; }
6718 fi
6719
6720 { echo "$as_me:$LINENO: checking for objdir" >&5
6721 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6722 if test "${lt_cv_objdir+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   rm -f .libs 2>/dev/null
6726 mkdir .libs 2>/dev/null
6727 if test -d .libs; then
6728   lt_cv_objdir=.libs
6729 else
6730   # MS-DOS does not allow filenames that begin with a dot.
6731   lt_cv_objdir=_libs
6732 fi
6733 rmdir .libs 2>/dev/null
6734 fi
6735 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6736 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6737 objdir=$lt_cv_objdir
6738
6739
6740
6741
6742
6743 case $host_os in
6744 aix3*)
6745   # AIX sometimes has problems with the GCC collect2 program.  For some
6746   # reason, if we set the COLLECT_NAMES environment variable, the problems
6747   # vanish in a puff of smoke.
6748   if test "X${COLLECT_NAMES+set}" != Xset; then
6749     COLLECT_NAMES=
6750     export COLLECT_NAMES
6751   fi
6752   ;;
6753 esac
6754
6755 # Sed substitution that helps us do robust quoting.  It backslashifies
6756 # metacharacters that are still active within double-quoted strings.
6757 Xsed='sed -e 1s/^X//'
6758 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6759
6760 # Same as above, but do not quote variable references.
6761 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6762
6763 # Sed substitution to delay expansion of an escaped shell variable in a
6764 # double_quote_subst'ed string.
6765 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6766
6767 # Sed substitution to avoid accidental globbing in evaled expressions
6768 no_glob_subst='s/\*/\\\*/g'
6769
6770 # Constants:
6771 rm="rm -f"
6772
6773 # Global variables:
6774 default_ofile=libtool
6775 can_build_shared=yes
6776
6777 # All known linkers require a `.a' archive for static linking (except MSVC,
6778 # which needs '.lib').
6779 libext=a
6780 ltmain="$ac_aux_dir/ltmain.sh"
6781 ofile="$default_ofile"
6782 with_gnu_ld="$lt_cv_prog_gnu_ld"
6783
6784 if test -n "$ac_tool_prefix"; then
6785   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6786 set dummy ${ac_tool_prefix}ar; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_prog_AR+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   if test -n "$AR"; then
6793   ac_cv_prog_AR="$AR" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800   for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_prog_AR="${ac_tool_prefix}ar"
6803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 AR=$ac_cv_prog_AR
6813 if test -n "$AR"; then
6814   { echo "$as_me:$LINENO: result: $AR" >&5
6815 echo "${ECHO_T}$AR" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822 fi
6823 if test -z "$ac_cv_prog_AR"; then
6824   ac_ct_AR=$AR
6825   # Extract the first word of "ar", so it can be a program name with args.
6826 set dummy ar; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6830   echo $ECHO_N "(cached) $ECHO_C" >&6
6831 else
6832   if test -n "$ac_ct_AR"; then
6833   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6834 else
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840   for ac_exec_ext in '' $ac_executable_extensions; do
6841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842     ac_cv_prog_ac_ct_AR="ar"
6843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847 done
6848 IFS=$as_save_IFS
6849
6850 fi
6851 fi
6852 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6853 if test -n "$ac_ct_AR"; then
6854   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6855 echo "${ECHO_T}$ac_ct_AR" >&6; }
6856 else
6857   { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6859 fi
6860
6861   if test "x$ac_ct_AR" = x; then
6862     AR="false"
6863   else
6864     case $cross_compiling:$ac_tool_warned in
6865 yes:)
6866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6867 whose name does not start with the host triplet.  If you think this
6868 configuration is useful to you, please write to autoconf@gnu.org." >&5
6869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6870 whose name does not start with the host triplet.  If you think this
6871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6872 ac_tool_warned=yes ;;
6873 esac
6874     AR=$ac_ct_AR
6875   fi
6876 else
6877   AR="$ac_cv_prog_AR"
6878 fi
6879
6880 if test -n "$ac_tool_prefix"; then
6881   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_prog_RANLIB+set}" = set; then
6886   echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888   if test -n "$RANLIB"; then
6889   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6890 else
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894   IFS=$as_save_IFS
6895   test -z "$as_dir" && as_dir=.
6896   for ac_exec_ext in '' $ac_executable_extensions; do
6897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900     break 2
6901   fi
6902 done
6903 done
6904 IFS=$as_save_IFS
6905
6906 fi
6907 fi
6908 RANLIB=$ac_cv_prog_RANLIB
6909 if test -n "$RANLIB"; then
6910   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6911 echo "${ECHO_T}$RANLIB" >&6; }
6912 else
6913   { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6915 fi
6916
6917
6918 fi
6919 if test -z "$ac_cv_prog_RANLIB"; then
6920   ac_ct_RANLIB=$RANLIB
6921   # Extract the first word of "ranlib", so it can be a program name with args.
6922 set dummy ranlib; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   if test -n "$ac_ct_RANLIB"; then
6929   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6930 else
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 for as_dir in $PATH
6933 do
6934   IFS=$as_save_IFS
6935   test -z "$as_dir" && as_dir=.
6936   for ac_exec_ext in '' $ac_executable_extensions; do
6937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938     ac_cv_prog_ac_ct_RANLIB="ranlib"
6939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940     break 2
6941   fi
6942 done
6943 done
6944 IFS=$as_save_IFS
6945
6946 fi
6947 fi
6948 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6949 if test -n "$ac_ct_RANLIB"; then
6950   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6951 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6952 else
6953   { echo "$as_me:$LINENO: result: no" >&5
6954 echo "${ECHO_T}no" >&6; }
6955 fi
6956
6957   if test "x$ac_ct_RANLIB" = x; then
6958     RANLIB=":"
6959   else
6960     case $cross_compiling:$ac_tool_warned in
6961 yes:)
6962 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6963 whose name does not start with the host triplet.  If you think this
6964 configuration is useful to you, please write to autoconf@gnu.org." >&5
6965 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6966 whose name does not start with the host triplet.  If you think this
6967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6968 ac_tool_warned=yes ;;
6969 esac
6970     RANLIB=$ac_ct_RANLIB
6971   fi
6972 else
6973   RANLIB="$ac_cv_prog_RANLIB"
6974 fi
6975
6976 if test -n "$ac_tool_prefix"; then
6977   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}strip; ac_word=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_prog_STRIP+set}" = set; then
6982   echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984   if test -n "$STRIP"; then
6985   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990   IFS=$as_save_IFS
6991   test -z "$as_dir" && as_dir=.
6992   for ac_exec_ext in '' $ac_executable_extensions; do
6993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6994     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6995     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996     break 2
6997   fi
6998 done
6999 done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 STRIP=$ac_cv_prog_STRIP
7005 if test -n "$STRIP"; then
7006   { echo "$as_me:$LINENO: result: $STRIP" >&5
7007 echo "${ECHO_T}$STRIP" >&6; }
7008 else
7009   { echo "$as_me:$LINENO: result: no" >&5
7010 echo "${ECHO_T}no" >&6; }
7011 fi
7012
7013
7014 fi
7015 if test -z "$ac_cv_prog_STRIP"; then
7016   ac_ct_STRIP=$STRIP
7017   # Extract the first word of "strip", so it can be a program name with args.
7018 set dummy strip; ac_word=$2
7019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7022   echo $ECHO_N "(cached) $ECHO_C" >&6
7023 else
7024   if test -n "$ac_ct_STRIP"; then
7025   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032   for ac_exec_ext in '' $ac_executable_extensions; do
7033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034     ac_cv_prog_ac_ct_STRIP="strip"
7035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7045 if test -n "$ac_ct_STRIP"; then
7046   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7047 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7048 else
7049   { echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6; }
7051 fi
7052
7053   if test "x$ac_ct_STRIP" = x; then
7054     STRIP=":"
7055   else
7056     case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7059 whose name does not start with the host triplet.  If you think this
7060 configuration is useful to you, please write to autoconf@gnu.org." >&5
7061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7062 whose name does not start with the host triplet.  If you think this
7063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7064 ac_tool_warned=yes ;;
7065 esac
7066     STRIP=$ac_ct_STRIP
7067   fi
7068 else
7069   STRIP="$ac_cv_prog_STRIP"
7070 fi
7071
7072
7073 old_CC="$CC"
7074 old_CFLAGS="$CFLAGS"
7075
7076 # Set sane defaults for various variables
7077 test -z "$AR" && AR=ar
7078 test -z "$AR_FLAGS" && AR_FLAGS=cru
7079 test -z "$AS" && AS=as
7080 test -z "$CC" && CC=cc
7081 test -z "$LTCC" && LTCC=$CC
7082 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7083 test -z "$DLLTOOL" && DLLTOOL=dlltool
7084 test -z "$LD" && LD=ld
7085 test -z "$LN_S" && LN_S="ln -s"
7086 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7087 test -z "$NM" && NM=nm
7088 test -z "$SED" && SED=sed
7089 test -z "$OBJDUMP" && OBJDUMP=objdump
7090 test -z "$RANLIB" && RANLIB=:
7091 test -z "$STRIP" && STRIP=:
7092 test -z "$ac_objext" && ac_objext=o
7093
7094 # Determine commands to create old-style static archives.
7095 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7096 old_postinstall_cmds='chmod 644 $oldlib'
7097 old_postuninstall_cmds=
7098
7099 if test -n "$RANLIB"; then
7100   case $host_os in
7101   openbsd*)
7102     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7103     ;;
7104   *)
7105     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7106     ;;
7107   esac
7108   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7109 fi
7110
7111 for cc_temp in $compiler""; do
7112   case $cc_temp in
7113     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7114     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7115     \-*) ;;
7116     *) break;;
7117   esac
7118 done
7119 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7120
7121
7122 # Only perform the check for file, if the check method requires it
7123 case $deplibs_check_method in
7124 file_magic*)
7125   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7126     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7127 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7128 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   case $MAGIC_CMD in
7132 [\\/*] |  ?:[\\/]*)
7133   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7134   ;;
7135 *)
7136   lt_save_MAGIC_CMD="$MAGIC_CMD"
7137   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7138   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7139   for ac_dir in $ac_dummy; do
7140     IFS="$lt_save_ifs"
7141     test -z "$ac_dir" && ac_dir=.
7142     if test -f $ac_dir/${ac_tool_prefix}file; then
7143       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7144       if test -n "$file_magic_test_file"; then
7145         case $deplibs_check_method in
7146         "file_magic "*)
7147           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7148           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7149           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7150             $EGREP "$file_magic_regex" > /dev/null; then
7151             :
7152           else
7153             cat <<EOF 1>&2
7154
7155 *** Warning: the command libtool uses to detect shared libraries,
7156 *** $file_magic_cmd, produces output that libtool cannot recognize.
7157 *** The result is that libtool may fail to recognize shared libraries
7158 *** as such.  This will affect the creation of libtool libraries that
7159 *** depend on shared libraries, but programs linked with such libtool
7160 *** libraries will work regardless of this problem.  Nevertheless, you
7161 *** may want to report the problem to your system manager and/or to
7162 *** bug-libtool@gnu.org
7163
7164 EOF
7165           fi ;;
7166         esac
7167       fi
7168       break
7169     fi
7170   done
7171   IFS="$lt_save_ifs"
7172   MAGIC_CMD="$lt_save_MAGIC_CMD"
7173   ;;
7174 esac
7175 fi
7176
7177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7178 if test -n "$MAGIC_CMD"; then
7179   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7180 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7181 else
7182   { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7184 fi
7185
7186 if test -z "$lt_cv_path_MAGIC_CMD"; then
7187   if test -n "$ac_tool_prefix"; then
7188     { echo "$as_me:$LINENO: checking for file" >&5
7189 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7190 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   case $MAGIC_CMD in
7194 [\\/*] |  ?:[\\/]*)
7195   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7196   ;;
7197 *)
7198   lt_save_MAGIC_CMD="$MAGIC_CMD"
7199   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7200   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7201   for ac_dir in $ac_dummy; do
7202     IFS="$lt_save_ifs"
7203     test -z "$ac_dir" && ac_dir=.
7204     if test -f $ac_dir/file; then
7205       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7206       if test -n "$file_magic_test_file"; then
7207         case $deplibs_check_method in
7208         "file_magic "*)
7209           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7210           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7211           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7212             $EGREP "$file_magic_regex" > /dev/null; then
7213             :
7214           else
7215             cat <<EOF 1>&2
7216
7217 *** Warning: the command libtool uses to detect shared libraries,
7218 *** $file_magic_cmd, produces output that libtool cannot recognize.
7219 *** The result is that libtool may fail to recognize shared libraries
7220 *** as such.  This will affect the creation of libtool libraries that
7221 *** depend on shared libraries, but programs linked with such libtool
7222 *** libraries will work regardless of this problem.  Nevertheless, you
7223 *** may want to report the problem to your system manager and/or to
7224 *** bug-libtool@gnu.org
7225
7226 EOF
7227           fi ;;
7228         esac
7229       fi
7230       break
7231     fi
7232   done
7233   IFS="$lt_save_ifs"
7234   MAGIC_CMD="$lt_save_MAGIC_CMD"
7235   ;;
7236 esac
7237 fi
7238
7239 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7240 if test -n "$MAGIC_CMD"; then
7241   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7242 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7243 else
7244   { echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6; }
7246 fi
7247
7248   else
7249     MAGIC_CMD=:
7250   fi
7251 fi
7252
7253   fi
7254   ;;
7255 esac
7256
7257
7258   case $host_os in
7259     rhapsody* | darwin*)
7260     if test -n "$ac_tool_prefix"; then
7261   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7266   echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268   if test -n "$DSYMUTIL"; then
7269   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276   for ac_exec_ext in '' $ac_executable_extensions; do
7277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283 done
7284 IFS=$as_save_IFS
7285
7286 fi
7287 fi
7288 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7289 if test -n "$DSYMUTIL"; then
7290   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7291 echo "${ECHO_T}$DSYMUTIL" >&6; }
7292 else
7293   { echo "$as_me:$LINENO: result: no" >&5
7294 echo "${ECHO_T}no" >&6; }
7295 fi
7296
7297
7298 fi
7299 if test -z "$ac_cv_prog_DSYMUTIL"; then
7300   ac_ct_DSYMUTIL=$DSYMUTIL
7301   # Extract the first word of "dsymutil", so it can be a program name with args.
7302 set dummy dsymutil; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   if test -n "$ac_ct_DSYMUTIL"; then
7309   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316   for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7329 if test -n "$ac_ct_DSYMUTIL"; then
7330   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7331 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7332 else
7333   { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7335 fi
7336
7337   if test "x$ac_ct_DSYMUTIL" = x; then
7338     DSYMUTIL=":"
7339   else
7340     case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7343 whose name does not start with the host triplet.  If you think this
7344 configuration is useful to you, please write to autoconf@gnu.org." >&5
7345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7346 whose name does not start with the host triplet.  If you think this
7347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7348 ac_tool_warned=yes ;;
7349 esac
7350     DSYMUTIL=$ac_ct_DSYMUTIL
7351   fi
7352 else
7353   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7354 fi
7355
7356     if test -n "$ac_tool_prefix"; then
7357   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   if test -n "$NMEDIT"; then
7365   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370   IFS=$as_save_IFS
7371   test -z "$as_dir" && as_dir=.
7372   for ac_exec_ext in '' $ac_executable_extensions; do
7373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7375     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7376     break 2
7377   fi
7378 done
7379 done
7380 IFS=$as_save_IFS
7381
7382 fi
7383 fi
7384 NMEDIT=$ac_cv_prog_NMEDIT
7385 if test -n "$NMEDIT"; then
7386   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7387 echo "${ECHO_T}$NMEDIT" >&6; }
7388 else
7389   { echo "$as_me:$LINENO: result: no" >&5
7390 echo "${ECHO_T}no" >&6; }
7391 fi
7392
7393
7394 fi
7395 if test -z "$ac_cv_prog_NMEDIT"; then
7396   ac_ct_NMEDIT=$NMEDIT
7397   # Extract the first word of "nmedit", so it can be a program name with args.
7398 set dummy nmedit; ac_word=$2
7399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7402   echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404   if test -n "$ac_ct_NMEDIT"; then
7405   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410   IFS=$as_save_IFS
7411   test -z "$as_dir" && as_dir=.
7412   for ac_exec_ext in '' $ac_executable_extensions; do
7413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7416     break 2
7417   fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7425 if test -n "$ac_ct_NMEDIT"; then
7426   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7427 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7428 else
7429   { echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6; }
7431 fi
7432
7433   if test "x$ac_ct_NMEDIT" = x; then
7434     NMEDIT=":"
7435   else
7436     case $cross_compiling:$ac_tool_warned in
7437 yes:)
7438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7439 whose name does not start with the host triplet.  If you think this
7440 configuration is useful to you, please write to autoconf@gnu.org." >&5
7441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7442 whose name does not start with the host triplet.  If you think this
7443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446     NMEDIT=$ac_ct_NMEDIT
7447   fi
7448 else
7449   NMEDIT="$ac_cv_prog_NMEDIT"
7450 fi
7451
7452
7453     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7454 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7455 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   lt_cv_apple_cc_single_mod=no
7459       if test -z "${LT_MULTI_MODULE}"; then
7460    # By default we will add the -single_module flag. You can override
7461    # by either setting the environment variable LT_MULTI_MODULE
7462    # non-empty at configure time, or by adding -multi_module to the
7463    # link flags.
7464    echo "int foo(void){return 1;}" > conftest.c
7465    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7466      -dynamiclib ${wl}-single_module conftest.c
7467    if test -f libconftest.dylib; then
7468      lt_cv_apple_cc_single_mod=yes
7469      rm -rf libconftest.dylib*
7470    fi
7471    rm conftest.c
7472       fi
7473 fi
7474 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7475 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7476     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7477 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7478 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7479   echo $ECHO_N "(cached) $ECHO_C" >&6
7480 else
7481   lt_cv_ld_exported_symbols_list=no
7482       save_LDFLAGS=$LDFLAGS
7483       echo "_main" > conftest.sym
7484       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7485       cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h.  */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h.  */
7491
7492 int
7493 main ()
7494 {
7495
7496   ;
7497   return 0;
7498 }
7499 _ACEOF
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (ac_try="$ac_link"
7502 case "(($ac_try" in
7503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504   *) ac_try_echo=$ac_try;;
7505 esac
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507   (eval "$ac_link") 2>conftest.er1
7508   ac_status=$?
7509   grep -v '^ *+' conftest.er1 >conftest.err
7510   rm -f conftest.er1
7511   cat conftest.err >&5
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); } && {
7514          test -z "$ac_c_werror_flag" ||
7515          test ! -s conftest.err
7516        } && test -s conftest$ac_exeext &&
7517        $as_test_x conftest$ac_exeext; then
7518   lt_cv_ld_exported_symbols_list=yes
7519 else
7520   echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523         lt_cv_ld_exported_symbols_list=no
7524 fi
7525
7526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7527       conftest$ac_exeext conftest.$ac_ext
7528    LDFLAGS="$save_LDFLAGS"
7529
7530 fi
7531 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7532 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7533     case $host_os in
7534     rhapsody* | darwin1.[0123])
7535       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7536     darwin1.*)
7537      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7538     darwin*)
7539       # if running on 10.5 or later, the deployment target defaults
7540       # to the OS version, if on x86, and 10.4, the deployment
7541       # target defaults to 10.4. Don't you love it?
7542       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7543    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7544      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7545    10.[012]*)
7546      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7547    10.*)
7548      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7549       esac
7550     ;;
7551   esac
7552     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7553       _lt_dar_single_mod='$single_module'
7554     fi
7555     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7556       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7557     else
7558       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7559     fi
7560     if test "$DSYMUTIL" != ":"; then
7561       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7562     else
7563       _lt_dsymutil=
7564     fi
7565     ;;
7566   esac
7567
7568
7569 enable_dlopen=yes
7570 enable_win32_dll=no
7571
7572 # Check whether --enable-libtool-lock was given.
7573 if test "${enable_libtool_lock+set}" = set; then
7574   enableval=$enable_libtool_lock;
7575 fi
7576
7577 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7578
7579
7580 # Check whether --with-pic was given.
7581 if test "${with_pic+set}" = set; then
7582   withval=$with_pic; pic_mode="$withval"
7583 else
7584   pic_mode=default
7585 fi
7586
7587 test -z "$pic_mode" && pic_mode=default
7588
7589 # Use C for the default configuration in the libtool script
7590 tagname=
7591 lt_save_CC="$CC"
7592 ac_ext=c
7593 ac_cpp='$CPP $CPPFLAGS'
7594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7597
7598
7599 # Source file extension for C test sources.
7600 ac_ext=c
7601
7602 # Object file extension for compiled C test sources.
7603 objext=o
7604 objext=$objext
7605
7606 # Code to be used in simple compile tests
7607 lt_simple_compile_test_code="int some_variable = 0;"
7608
7609 # Code to be used in simple link tests
7610 lt_simple_link_test_code='int main(){return(0);}'
7611
7612
7613 # If no C compiler was specified, use CC.
7614 LTCC=${LTCC-"$CC"}
7615
7616 # If no C compiler flags were specified, use CFLAGS.
7617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7618
7619 # Allow CC to be a program name with arguments.
7620 compiler=$CC
7621
7622
7623 # save warnings/boilerplate of simple test code
7624 ac_outfile=conftest.$ac_objext
7625 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7626 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7627 _lt_compiler_boilerplate=`cat conftest.err`
7628 $rm conftest*
7629
7630 ac_outfile=conftest.$ac_objext
7631 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7632 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7633 _lt_linker_boilerplate=`cat conftest.err`
7634 $rm -r conftest*
7635
7636
7637
7638 lt_prog_compiler_no_builtin_flag=
7639
7640 if test "$GCC" = yes; then
7641   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7642
7643
7644 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7645 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7646 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7647   echo $ECHO_N "(cached) $ECHO_C" >&6
7648 else
7649   lt_cv_prog_compiler_rtti_exceptions=no
7650   ac_outfile=conftest.$ac_objext
7651    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7652    lt_compiler_flag="-fno-rtti -fno-exceptions"
7653    # Insert the option either (1) after the last *FLAGS variable, or
7654    # (2) before a word containing "conftest.", or (3) at the end.
7655    # Note that $ac_compile itself does not contain backslashes and begins
7656    # with a dollar sign (not a hyphen), so the echo should work correctly.
7657    # The option is referenced via a variable to avoid confusing sed.
7658    lt_compile=`echo "$ac_compile" | $SED \
7659    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7660    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7661    -e 's:$: $lt_compiler_flag:'`
7662    (eval echo "\"\$as_me:7662: $lt_compile\"" >&5)
7663    (eval "$lt_compile" 2>conftest.err)
7664    ac_status=$?
7665    cat conftest.err >&5
7666    echo "$as_me:7666: \$? = $ac_status" >&5
7667    if (exit $ac_status) && test -s "$ac_outfile"; then
7668      # The compiler can only warn and ignore the option if not recognized
7669      # So say no if there are warnings other than the usual output.
7670      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7671      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7672      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7673        lt_cv_prog_compiler_rtti_exceptions=yes
7674      fi
7675    fi
7676    $rm conftest*
7677
7678 fi
7679 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7680 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7681
7682 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7683     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7684 else
7685     :
7686 fi
7687
7688 fi
7689
7690 lt_prog_compiler_wl=
7691 lt_prog_compiler_pic=
7692 lt_prog_compiler_static=
7693
7694 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7695 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7696
7697   if test "$GCC" = yes; then
7698     lt_prog_compiler_wl='-Wl,'
7699     lt_prog_compiler_static='-static'
7700
7701     case $host_os in
7702       aix*)
7703       # All AIX code is PIC.
7704       if test "$host_cpu" = ia64; then
7705         # AIX 5 now supports IA64 processor
7706         lt_prog_compiler_static='-Bstatic'
7707       fi
7708       ;;
7709
7710     amigaos*)
7711       # FIXME: we need at least 68020 code to build shared libraries, but
7712       # adding the `-m68020' flag to GCC prevents building anything better,
7713       # like `-m68040'.
7714       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7715       ;;
7716
7717     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7718       # PIC is the default for these OSes.
7719       ;;
7720
7721     mingw* | cygwin* | pw32* | os2*)
7722       # This hack is so that the source file can tell whether it is being
7723       # built for inclusion in a dll (and should export symbols for example).
7724       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7725       # (--disable-auto-import) libraries
7726       lt_prog_compiler_pic='-DDLL_EXPORT'
7727       ;;
7728
7729     darwin* | rhapsody*)
7730       # PIC is the default on this platform
7731       # Common symbols not allowed in MH_DYLIB files
7732       lt_prog_compiler_pic='-fno-common'
7733       ;;
7734
7735     interix[3-9]*)
7736       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7737       # Instead, we relocate shared libraries at runtime.
7738       ;;
7739
7740     msdosdjgpp*)
7741       # Just because we use GCC doesn't mean we suddenly get shared libraries
7742       # on systems that don't support them.
7743       lt_prog_compiler_can_build_shared=no
7744       enable_shared=no
7745       ;;
7746
7747     sysv4*MP*)
7748       if test -d /usr/nec; then
7749         lt_prog_compiler_pic=-Kconform_pic
7750       fi
7751       ;;
7752
7753     hpux*)
7754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7755       # not for PA HP-UX.
7756       case $host_cpu in
7757       hppa*64*|ia64*)
7758         # +Z the default
7759         ;;
7760       *)
7761         lt_prog_compiler_pic='-fPIC'
7762         ;;
7763       esac
7764       ;;
7765
7766     *)
7767       lt_prog_compiler_pic='-fPIC'
7768       ;;
7769     esac
7770   else
7771     # PORTME Check for flag to pass linker flags through the system compiler.
7772     case $host_os in
7773     aix*)
7774       lt_prog_compiler_wl='-Wl,'
7775       if test "$host_cpu" = ia64; then
7776         # AIX 5 now supports IA64 processor
7777         lt_prog_compiler_static='-Bstatic'
7778       else
7779         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7780       fi
7781       ;;
7782       darwin*)
7783         # PIC is the default on this platform
7784         # Common symbols not allowed in MH_DYLIB files
7785        case $cc_basename in
7786          xlc*)
7787          lt_prog_compiler_pic='-qnocommon'
7788          lt_prog_compiler_wl='-Wl,'
7789          ;;
7790        esac
7791        ;;
7792
7793     mingw* | cygwin* | pw32* | os2*)
7794       # This hack is so that the source file can tell whether it is being
7795       # built for inclusion in a dll (and should export symbols for example).
7796       lt_prog_compiler_pic='-DDLL_EXPORT'
7797       ;;
7798
7799     hpux9* | hpux10* | hpux11*)
7800       lt_prog_compiler_wl='-Wl,'
7801       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7802       # not for PA HP-UX.
7803       case $host_cpu in
7804       hppa*64*|ia64*)
7805         # +Z the default
7806         ;;
7807       *)
7808         lt_prog_compiler_pic='+Z'
7809         ;;
7810       esac
7811       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7812       lt_prog_compiler_static='${wl}-a ${wl}archive'
7813       ;;
7814
7815     irix5* | irix6* | nonstopux*)
7816       lt_prog_compiler_wl='-Wl,'
7817       # PIC (with -KPIC) is the default.
7818       lt_prog_compiler_static='-non_shared'
7819       ;;
7820
7821     newsos6)
7822       lt_prog_compiler_pic='-KPIC'
7823       lt_prog_compiler_static='-Bstatic'
7824       ;;
7825
7826     linux* | k*bsd*-gnu)
7827       case $cc_basename in
7828       icc* | ecc*)
7829         lt_prog_compiler_wl='-Wl,'
7830         lt_prog_compiler_pic='-KPIC'
7831         lt_prog_compiler_static='-static'
7832         ;;
7833       pgcc* | pgf77* | pgf90* | pgf95*)
7834         # Portland Group compilers (*not* the Pentium gcc compiler,
7835         # which looks to be a dead project)
7836         lt_prog_compiler_wl='-Wl,'
7837         lt_prog_compiler_pic='-fpic'
7838         lt_prog_compiler_static='-Bstatic'
7839         ;;
7840       ccc*)
7841         lt_prog_compiler_wl='-Wl,'
7842         # All Alpha code is PIC.
7843         lt_prog_compiler_static='-non_shared'
7844         ;;
7845       *)
7846         case `$CC -V 2>&1 | sed 5q` in
7847         *Sun\ C*)
7848           # Sun C 5.9
7849           lt_prog_compiler_pic='-KPIC'
7850           lt_prog_compiler_static='-Bstatic'
7851           lt_prog_compiler_wl='-Wl,'
7852           ;;
7853         *Sun\ F*)
7854           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7855           lt_prog_compiler_pic='-KPIC'
7856           lt_prog_compiler_static='-Bstatic'
7857           lt_prog_compiler_wl=''
7858           ;;
7859         esac
7860         ;;
7861       esac
7862       ;;
7863
7864     osf3* | osf4* | osf5*)
7865       lt_prog_compiler_wl='-Wl,'
7866       # All OSF/1 code is PIC.
7867       lt_prog_compiler_static='-non_shared'
7868       ;;
7869
7870     rdos*)
7871       lt_prog_compiler_static='-non_shared'
7872       ;;
7873
7874     solaris*)
7875       lt_prog_compiler_pic='-KPIC'
7876       lt_prog_compiler_static='-Bstatic'
7877       case $cc_basename in
7878       f77* | f90* | f95*)
7879         lt_prog_compiler_wl='-Qoption ld ';;
7880       *)
7881         lt_prog_compiler_wl='-Wl,';;
7882       esac
7883       ;;
7884
7885     sunos4*)
7886       lt_prog_compiler_wl='-Qoption ld '
7887       lt_prog_compiler_pic='-PIC'
7888       lt_prog_compiler_static='-Bstatic'
7889       ;;
7890
7891     sysv4 | sysv4.2uw2* | sysv4.3*)
7892       lt_prog_compiler_wl='-Wl,'
7893       lt_prog_compiler_pic='-KPIC'
7894       lt_prog_compiler_static='-Bstatic'
7895       ;;
7896
7897     sysv4*MP*)
7898       if test -d /usr/nec ;then
7899         lt_prog_compiler_pic='-Kconform_pic'
7900         lt_prog_compiler_static='-Bstatic'
7901       fi
7902       ;;
7903
7904     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7905       lt_prog_compiler_wl='-Wl,'
7906       lt_prog_compiler_pic='-KPIC'
7907       lt_prog_compiler_static='-Bstatic'
7908       ;;
7909
7910     unicos*)
7911       lt_prog_compiler_wl='-Wl,'
7912       lt_prog_compiler_can_build_shared=no
7913       ;;
7914
7915     uts4*)
7916       lt_prog_compiler_pic='-pic'
7917       lt_prog_compiler_static='-Bstatic'
7918       ;;
7919
7920     *)
7921       lt_prog_compiler_can_build_shared=no
7922       ;;
7923     esac
7924   fi
7925
7926 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7927 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7928
7929 #
7930 # Check to make sure the PIC flag actually works.
7931 #
7932 if test -n "$lt_prog_compiler_pic"; then
7933
7934 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7935 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7936 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7937   echo $ECHO_N "(cached) $ECHO_C" >&6
7938 else
7939   lt_cv_prog_compiler_pic_works=no
7940   ac_outfile=conftest.$ac_objext
7941    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7942    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7943    # Insert the option either (1) after the last *FLAGS variable, or
7944    # (2) before a word containing "conftest.", or (3) at the end.
7945    # Note that $ac_compile itself does not contain backslashes and begins
7946    # with a dollar sign (not a hyphen), so the echo should work correctly.
7947    # The option is referenced via a variable to avoid confusing sed.
7948    lt_compile=`echo "$ac_compile" | $SED \
7949    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7950    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7951    -e 's:$: $lt_compiler_flag:'`
7952    (eval echo "\"\$as_me:7952: $lt_compile\"" >&5)
7953    (eval "$lt_compile" 2>conftest.err)
7954    ac_status=$?
7955    cat conftest.err >&5
7956    echo "$as_me:7956: \$? = $ac_status" >&5
7957    if (exit $ac_status) && test -s "$ac_outfile"; then
7958      # The compiler can only warn and ignore the option if not recognized
7959      # So say no if there are warnings other than the usual output.
7960      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7961      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7962      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7963        lt_cv_prog_compiler_pic_works=yes
7964      fi
7965    fi
7966    $rm conftest*
7967
7968 fi
7969 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7970 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7971
7972 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7973     case $lt_prog_compiler_pic in
7974      "" | " "*) ;;
7975      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7976      esac
7977 else
7978     lt_prog_compiler_pic=
7979      lt_prog_compiler_can_build_shared=no
7980 fi
7981
7982 fi
7983 case $host_os in
7984   # For platforms which do not support PIC, -DPIC is meaningless:
7985   *djgpp*)
7986     lt_prog_compiler_pic=
7987     ;;
7988   *)
7989     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7990     ;;
7991 esac
7992
7993 #
7994 # Check to make sure the static flag actually works.
7995 #
7996 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7997 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7998 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7999 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8000   echo $ECHO_N "(cached) $ECHO_C" >&6
8001 else
8002   lt_cv_prog_compiler_static_works=no
8003    save_LDFLAGS="$LDFLAGS"
8004    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8005    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8006    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8007      # The linker can only warn and ignore the option if not recognized
8008      # So say no if there are warnings
8009      if test -s conftest.err; then
8010        # Append any errors to the config.log.
8011        cat conftest.err 1>&5
8012        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8013        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8014        if diff conftest.exp conftest.er2 >/dev/null; then
8015          lt_cv_prog_compiler_static_works=yes
8016        fi
8017      else
8018        lt_cv_prog_compiler_static_works=yes
8019      fi
8020    fi
8021    $rm -r conftest*
8022    LDFLAGS="$save_LDFLAGS"
8023
8024 fi
8025 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8026 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8027
8028 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8029     :
8030 else
8031     lt_prog_compiler_static=
8032 fi
8033
8034
8035 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8036 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8037 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8038   echo $ECHO_N "(cached) $ECHO_C" >&6
8039 else
8040   lt_cv_prog_compiler_c_o=no
8041    $rm -r conftest 2>/dev/null
8042    mkdir conftest
8043    cd conftest
8044    mkdir out
8045    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8046
8047    lt_compiler_flag="-o out/conftest2.$ac_objext"
8048    # Insert the option either (1) after the last *FLAGS variable, or
8049    # (2) before a word containing "conftest.", or (3) at the end.
8050    # Note that $ac_compile itself does not contain backslashes and begins
8051    # with a dollar sign (not a hyphen), so the echo should work correctly.
8052    lt_compile=`echo "$ac_compile" | $SED \
8053    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8054    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8055    -e 's:$: $lt_compiler_flag:'`
8056    (eval echo "\"\$as_me:8056: $lt_compile\"" >&5)
8057    (eval "$lt_compile" 2>out/conftest.err)
8058    ac_status=$?
8059    cat out/conftest.err >&5
8060    echo "$as_me:8060: \$? = $ac_status" >&5
8061    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8062    then
8063      # The compiler can only warn and ignore the option if not recognized
8064      # So say no if there are warnings
8065      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8066      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8067      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8068        lt_cv_prog_compiler_c_o=yes
8069      fi
8070    fi
8071    chmod u+w . 2>&5
8072    $rm conftest*
8073    # SGI C++ compiler will create directory out/ii_files/ for
8074    # template instantiation
8075    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8076    $rm out/* && rmdir out
8077    cd ..
8078    rmdir conftest
8079    $rm conftest*
8080
8081 fi
8082 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8083 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8084
8085
8086 hard_links="nottested"
8087 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8088   # do not overwrite the value of need_locks provided by the user
8089   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8090 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8091   hard_links=yes
8092   $rm conftest*
8093   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8094   touch conftest.a
8095   ln conftest.a conftest.b 2>&5 || hard_links=no
8096   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8097   { echo "$as_me:$LINENO: result: $hard_links" >&5
8098 echo "${ECHO_T}$hard_links" >&6; }
8099   if test "$hard_links" = no; then
8100     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8101 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8102     need_locks=warn
8103   fi
8104 else
8105   need_locks=no
8106 fi
8107
8108 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8109 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8110
8111   runpath_var=
8112   allow_undefined_flag=
8113   enable_shared_with_static_runtimes=no
8114   archive_cmds=
8115   archive_expsym_cmds=
8116   old_archive_From_new_cmds=
8117   old_archive_from_expsyms_cmds=
8118   export_dynamic_flag_spec=
8119   whole_archive_flag_spec=
8120   thread_safe_flag_spec=
8121   hardcode_libdir_flag_spec=
8122   hardcode_libdir_flag_spec_ld=
8123   hardcode_libdir_separator=
8124   hardcode_direct=no
8125   hardcode_minus_L=no
8126   hardcode_shlibpath_var=unsupported
8127   link_all_deplibs=unknown
8128   hardcode_automatic=no
8129   module_cmds=
8130   module_expsym_cmds=
8131   always_export_symbols=no
8132   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8133   # include_expsyms should be a list of space-separated symbols to be *always*
8134   # included in the symbol list
8135   include_expsyms=
8136   # exclude_expsyms can be an extended regexp of symbols to exclude
8137   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8138   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8139   # as well as any symbol that contains `d'.
8140   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8141   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8142   # platforms (ab)use it in PIC code, but their linkers get confused if
8143   # the symbol is explicitly referenced.  Since portable code cannot
8144   # rely on this symbol name, it's probably fine to never include it in
8145   # preloaded symbol tables.
8146   # Exclude shared library initialization/finalization symbols.
8147   extract_expsyms_cmds=
8148   # Just being paranoid about ensuring that cc_basename is set.
8149   for cc_temp in $compiler""; do
8150   case $cc_temp in
8151     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8152     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8153     \-*) ;;
8154     *) break;;
8155   esac
8156 done
8157 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8158
8159   case $host_os in
8160   cygwin* | mingw* | pw32*)
8161     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8162     # When not using gcc, we currently assume that we are using
8163     # Microsoft Visual C++.
8164     if test "$GCC" != yes; then
8165       with_gnu_ld=no
8166     fi
8167     ;;
8168   interix*)
8169     # we just hope/assume this is gcc and not c89 (= MSVC++)
8170     with_gnu_ld=yes
8171     ;;
8172   openbsd*)
8173     with_gnu_ld=no
8174     ;;
8175   esac
8176
8177   ld_shlibs=yes
8178   if test "$with_gnu_ld" = yes; then
8179     # If archive_cmds runs LD, not CC, wlarc should be empty
8180     wlarc='${wl}'
8181
8182     # Set some defaults for GNU ld with shared library support. These
8183     # are reset later if shared libraries are not supported. Putting them
8184     # here allows them to be overridden if necessary.
8185     runpath_var=LD_RUN_PATH
8186     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8187     export_dynamic_flag_spec='${wl}--export-dynamic'
8188     # ancient GNU ld didn't support --whole-archive et. al.
8189     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8190         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8191       else
8192         whole_archive_flag_spec=
8193     fi
8194     supports_anon_versioning=no
8195     case `$LD -v 2>/dev/null` in
8196       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8197       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8198       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8199       *\ 2.11.*) ;; # other 2.11 versions
8200       *) supports_anon_versioning=yes ;;
8201     esac
8202
8203     # See if GNU ld supports shared libraries.
8204     case $host_os in
8205     aix[3-9]*)
8206       # On AIX/PPC, the GNU linker is very broken
8207       if test "$host_cpu" != ia64; then
8208         ld_shlibs=no
8209         cat <<EOF 1>&2
8210
8211 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8212 *** to be unable to reliably create shared libraries on AIX.
8213 *** Therefore, libtool is disabling shared libraries support.  If you
8214 *** really care for shared libraries, you may want to modify your PATH
8215 *** so that a non-GNU linker is found, and then restart.
8216
8217 EOF
8218       fi
8219       ;;
8220
8221     amigaos*)
8222       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)'
8223       hardcode_libdir_flag_spec='-L$libdir'
8224       hardcode_minus_L=yes
8225
8226       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8227       # that the semantics of dynamic libraries on AmigaOS, at least up
8228       # to version 4, is to share data among multiple programs linked
8229       # with the same dynamic library.  Since this doesn't match the
8230       # behavior of shared libraries on other platforms, we can't use
8231       # them.
8232       ld_shlibs=no
8233       ;;
8234
8235     beos*)
8236       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8237         allow_undefined_flag=unsupported
8238         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8239         # support --undefined.  This deserves some investigation.  FIXME
8240         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8241       else
8242         ld_shlibs=no
8243       fi
8244       ;;
8245
8246     cygwin* | mingw* | pw32*)
8247       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8248       # as there is no search path for DLLs.
8249       hardcode_libdir_flag_spec='-L$libdir'
8250       allow_undefined_flag=unsupported
8251       always_export_symbols=no
8252       enable_shared_with_static_runtimes=yes
8253       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8254
8255       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8256         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8257         # If the export-symbols file already is a .def file (1st line
8258         # is EXPORTS), use it as is; otherwise, prepend...
8259         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8260           cp $export_symbols $output_objdir/$soname.def;
8261         else
8262           echo EXPORTS > $output_objdir/$soname.def;
8263           cat $export_symbols >> $output_objdir/$soname.def;
8264         fi~
8265         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8266       else
8267         ld_shlibs=no
8268       fi
8269       ;;
8270
8271     interix[3-9]*)
8272       hardcode_direct=no
8273       hardcode_shlibpath_var=no
8274       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8275       export_dynamic_flag_spec='${wl}-E'
8276       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8277       # Instead, shared libraries are loaded at an image base (0x10000000 by
8278       # default) and relocated if they conflict, which is a slow very memory
8279       # consuming and fragmenting process.  To avoid this, we pick a random,
8280       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8281       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8282       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8283       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'
8284       ;;
8285
8286     gnu* | linux* | k*bsd*-gnu)
8287       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8288         tmp_addflag=
8289         case $cc_basename,$host_cpu in
8290         pgcc*)                          # Portland Group C compiler
8291           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'
8292           tmp_addflag=' $pic_flag'
8293           ;;
8294         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8295           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'
8296           tmp_addflag=' $pic_flag -Mnomain' ;;
8297         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8298           tmp_addflag=' -i_dynamic' ;;
8299         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8300           tmp_addflag=' -i_dynamic -nofor_main' ;;
8301         ifc* | ifort*)                  # Intel Fortran compiler
8302           tmp_addflag=' -nofor_main' ;;
8303         esac
8304         case `$CC -V 2>&1 | sed 5q` in
8305         *Sun\ C*)                       # Sun C 5.9
8306           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8307           tmp_sharedflag='-G' ;;
8308         *Sun\ F*)                       # Sun Fortran 8.3
8309           tmp_sharedflag='-G' ;;
8310         *)
8311           tmp_sharedflag='-shared' ;;
8312         esac
8313         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8314
8315         if test $supports_anon_versioning = yes; then
8316           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8317   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8318   $echo "local: *; };" >> $output_objdir/$libname.ver~
8319           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8320         fi
8321         link_all_deplibs=no
8322       else
8323         ld_shlibs=no
8324       fi
8325       ;;
8326
8327     netbsd* | netbsdelf*-gnu)
8328       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8329         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8330         wlarc=
8331       else
8332         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8333         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8334       fi
8335       ;;
8336
8337     solaris*)
8338       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8339         ld_shlibs=no
8340         cat <<EOF 1>&2
8341
8342 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8343 *** create shared libraries on Solaris systems.  Therefore, libtool
8344 *** is disabling shared libraries support.  We urge you to upgrade GNU
8345 *** binutils to release 2.9.1 or newer.  Another option is to modify
8346 *** your PATH or compiler configuration so that the native linker is
8347 *** used, and then restart.
8348
8349 EOF
8350       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8351         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353       else
8354         ld_shlibs=no
8355       fi
8356       ;;
8357
8358     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8359       case `$LD -v 2>&1` in
8360         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8361         ld_shlibs=no
8362         cat <<_LT_EOF 1>&2
8363
8364 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8365 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8366 *** is disabling shared libraries support.  We urge you to upgrade GNU
8367 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8368 *** your PATH or compiler configuration so that the native linker is
8369 *** used, and then restart.
8370
8371 _LT_EOF
8372         ;;
8373         *)
8374           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8375             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8376             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8377             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8378           else
8379             ld_shlibs=no
8380           fi
8381         ;;
8382       esac
8383       ;;
8384
8385     sunos4*)
8386       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8387       wlarc=
8388       hardcode_direct=yes
8389       hardcode_shlibpath_var=no
8390       ;;
8391
8392     *)
8393       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8394         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8395         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8396       else
8397         ld_shlibs=no
8398       fi
8399       ;;
8400     esac
8401
8402     if test "$ld_shlibs" = no; then
8403       runpath_var=
8404       hardcode_libdir_flag_spec=
8405       export_dynamic_flag_spec=
8406       whole_archive_flag_spec=
8407     fi
8408   else
8409     # PORTME fill in a description of your system's linker (not GNU ld)
8410     case $host_os in
8411     aix3*)
8412       allow_undefined_flag=unsupported
8413       always_export_symbols=yes
8414       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'
8415       # Note: this linker hardcodes the directories in LIBPATH if there
8416       # are no directories specified by -L.
8417       hardcode_minus_L=yes
8418       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8419         # Neither direct hardcoding nor static linking is supported with a
8420         # broken collect2.
8421         hardcode_direct=unsupported
8422       fi
8423       ;;
8424
8425     aix[4-9]*)
8426       if test "$host_cpu" = ia64; then
8427         # On IA64, the linker does run time linking by default, so we don't
8428         # have to do anything special.
8429         aix_use_runtimelinking=no
8430         exp_sym_flag='-Bexport'
8431         no_entry_flag=""
8432       else
8433         # If we're using GNU nm, then we don't want the "-C" option.
8434         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8435         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8436           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'
8437         else
8438           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'
8439         fi
8440         aix_use_runtimelinking=no
8441
8442         # Test if we are trying to use run time linking or normal
8443         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8444         # need to do runtime linking.
8445         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8446           for ld_flag in $LDFLAGS; do
8447           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8448             aix_use_runtimelinking=yes
8449             break
8450           fi
8451           done
8452           ;;
8453         esac
8454
8455         exp_sym_flag='-bexport'
8456         no_entry_flag='-bnoentry'
8457       fi
8458
8459       # When large executables or shared objects are built, AIX ld can
8460       # have problems creating the table of contents.  If linking a library
8461       # or program results in "error TOC overflow" add -mminimal-toc to
8462       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8463       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8464
8465       archive_cmds=''
8466       hardcode_direct=yes
8467       hardcode_libdir_separator=':'
8468       link_all_deplibs=yes
8469
8470       if test "$GCC" = yes; then
8471         case $host_os in aix4.[012]|aix4.[012].*)
8472         # We only want to do this on AIX 4.2 and lower, the check
8473         # below for broken collect2 doesn't work under 4.3+
8474           collect2name=`${CC} -print-prog-name=collect2`
8475           if test -f "$collect2name" && \
8476            strings "$collect2name" | grep resolve_lib_name >/dev/null
8477           then
8478           # We have reworked collect2
8479           :
8480           else
8481           # We have old collect2
8482           hardcode_direct=unsupported
8483           # It fails to find uninstalled libraries when the uninstalled
8484           # path is not listed in the libpath.  Setting hardcode_minus_L
8485           # to unsupported forces relinking
8486           hardcode_minus_L=yes
8487           hardcode_libdir_flag_spec='-L$libdir'
8488           hardcode_libdir_separator=
8489           fi
8490           ;;
8491         esac
8492         shared_flag='-shared'
8493         if test "$aix_use_runtimelinking" = yes; then
8494           shared_flag="$shared_flag "'${wl}-G'
8495         fi
8496       else
8497         # not using gcc
8498         if test "$host_cpu" = ia64; then
8499         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8500         # chokes on -Wl,-G. The following line is correct:
8501           shared_flag='-G'
8502         else
8503           if test "$aix_use_runtimelinking" = yes; then
8504             shared_flag='${wl}-G'
8505           else
8506             shared_flag='${wl}-bM:SRE'
8507           fi
8508         fi
8509       fi
8510
8511       # It seems that -bexpall does not export symbols beginning with
8512       # underscore (_), so it is better to generate a list of symbols to export.
8513       always_export_symbols=yes
8514       if test "$aix_use_runtimelinking" = yes; then
8515         # Warning - without using the other runtime loading flags (-brtl),
8516         # -berok will link without error, but may produce a broken library.
8517         allow_undefined_flag='-berok'
8518        # Determine the default libpath from the value encoded in an empty executable.
8519        cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h.  */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h.  */
8525
8526 int
8527 main ()
8528 {
8529
8530   ;
8531   return 0;
8532 }
8533 _ACEOF
8534 rm -f conftest.$ac_objext conftest$ac_exeext
8535 if { (ac_try="$ac_link"
8536 case "(($ac_try" in
8537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538   *) ac_try_echo=$ac_try;;
8539 esac
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541   (eval "$ac_link") 2>conftest.er1
8542   ac_status=$?
8543   grep -v '^ *+' conftest.er1 >conftest.err
8544   rm -f conftest.er1
8545   cat conftest.err >&5
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); } && {
8548          test -z "$ac_c_werror_flag" ||
8549          test ! -s conftest.err
8550        } && test -s conftest$ac_exeext &&
8551        $as_test_x conftest$ac_exeext; then
8552
8553 lt_aix_libpath_sed='
8554     /Import File Strings/,/^$/ {
8555         /^0/ {
8556             s/^0  *\(.*\)$/\1/
8557             p
8558         }
8559     }'
8560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8561 # Check for a 64-bit object if we didn't find anything.
8562 if test -z "$aix_libpath"; then
8563   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8564 fi
8565 else
8566   echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569
8570 fi
8571
8572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8573       conftest$ac_exeext conftest.$ac_ext
8574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8575
8576        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8577         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"
8578        else
8579         if test "$host_cpu" = ia64; then
8580           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8581           allow_undefined_flag="-z nodefs"
8582           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"
8583         else
8584          # Determine the default libpath from the value encoded in an empty executable.
8585          cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591
8592 int
8593 main ()
8594 {
8595
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (ac_try="$ac_link"
8602 case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_link") 2>conftest.er1
8608   ac_status=$?
8609   grep -v '^ *+' conftest.er1 >conftest.err
8610   rm -f conftest.er1
8611   cat conftest.err >&5
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); } && {
8614          test -z "$ac_c_werror_flag" ||
8615          test ! -s conftest.err
8616        } && test -s conftest$ac_exeext &&
8617        $as_test_x conftest$ac_exeext; then
8618
8619 lt_aix_libpath_sed='
8620     /Import File Strings/,/^$/ {
8621         /^0/ {
8622             s/^0  *\(.*\)$/\1/
8623             p
8624         }
8625     }'
8626 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8627 # Check for a 64-bit object if we didn't find anything.
8628 if test -z "$aix_libpath"; then
8629   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8630 fi
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635
8636 fi
8637
8638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8639       conftest$ac_exeext conftest.$ac_ext
8640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8641
8642          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643           # Warning - without using the other run time loading flags,
8644           # -berok will link without error, but may produce a broken library.
8645           no_undefined_flag=' ${wl}-bernotok'
8646           allow_undefined_flag=' ${wl}-berok'
8647           # Exported symbols can be pulled into shared objects from archives
8648           whole_archive_flag_spec='$convenience'
8649           archive_cmds_need_lc=yes
8650           # This is similar to how AIX traditionally builds its shared libraries.
8651           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'
8652         fi
8653       fi
8654       ;;
8655
8656     amigaos*)
8657       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)'
8658       hardcode_libdir_flag_spec='-L$libdir'
8659       hardcode_minus_L=yes
8660       # see comment about different semantics on the GNU ld section
8661       ld_shlibs=no
8662       ;;
8663
8664     bsdi[45]*)
8665       export_dynamic_flag_spec=-rdynamic
8666       ;;
8667
8668     cygwin* | mingw* | pw32*)
8669       # When not using gcc, we currently assume that we are using
8670       # Microsoft Visual C++.
8671       # hardcode_libdir_flag_spec is actually meaningless, as there is
8672       # no search path for DLLs.
8673       hardcode_libdir_flag_spec=' '
8674       allow_undefined_flag=unsupported
8675       # Tell ltmain to make .lib files, not .a files.
8676       libext=lib
8677       # Tell ltmain to make .dll files, not .so files.
8678       shrext_cmds=".dll"
8679       # FIXME: Setting linknames here is a bad hack.
8680       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8681       # The linker will automatically build a .lib file if we build a DLL.
8682       old_archive_From_new_cmds='true'
8683       # FIXME: Should let the user specify the lib program.
8684       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8685       fix_srcfile_path='`cygpath -w "$srcfile"`'
8686       enable_shared_with_static_runtimes=yes
8687       ;;
8688
8689     darwin* | rhapsody*)
8690       case $host_os in
8691         rhapsody* | darwin1.[012])
8692          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8693          ;;
8694        *) # Darwin 1.3 on
8695          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8696            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8697          else
8698            case ${MACOSX_DEPLOYMENT_TARGET} in
8699              10.[012])
8700                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8701                ;;
8702              10.*)
8703                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8704                ;;
8705            esac
8706          fi
8707          ;;
8708       esac
8709       archive_cmds_need_lc=no
8710       hardcode_direct=no
8711       hardcode_automatic=yes
8712       hardcode_shlibpath_var=unsupported
8713       whole_archive_flag_spec=''
8714       link_all_deplibs=yes
8715     if test "$GCC" = yes ; then
8716         output_verbose_link_cmd='echo'
8717         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8718         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8719         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8720         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8721     else
8722       case $cc_basename in
8723         xlc*)
8724          output_verbose_link_cmd='echo'
8725          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8726          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8727           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8728          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8729           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}'
8730           ;;
8731        *)
8732          ld_shlibs=no
8733           ;;
8734       esac
8735     fi
8736       ;;
8737
8738     dgux*)
8739       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740       hardcode_libdir_flag_spec='-L$libdir'
8741       hardcode_shlibpath_var=no
8742       ;;
8743
8744     freebsd1*)
8745       ld_shlibs=no
8746       ;;
8747
8748     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8749     # support.  Future versions do this automatically, but an explicit c++rt0.o
8750     # does not break anything, and helps significantly (at the cost of a little
8751     # extra space).
8752     freebsd2.2*)
8753       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8754       hardcode_libdir_flag_spec='-R$libdir'
8755       hardcode_direct=yes
8756       hardcode_shlibpath_var=no
8757       ;;
8758
8759     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8760     freebsd2*)
8761       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8762       hardcode_direct=yes
8763       hardcode_minus_L=yes
8764       hardcode_shlibpath_var=no
8765       ;;
8766
8767     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8768     freebsd* | dragonfly*)
8769       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8770       hardcode_libdir_flag_spec='-R$libdir'
8771       hardcode_direct=yes
8772       hardcode_shlibpath_var=no
8773       ;;
8774
8775     hpux9*)
8776       if test "$GCC" = yes; then
8777         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'
8778       else
8779         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'
8780       fi
8781       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8782       hardcode_libdir_separator=:
8783       hardcode_direct=yes
8784
8785       # hardcode_minus_L: Not really in the search PATH,
8786       # but as the default location of the library.
8787       hardcode_minus_L=yes
8788       export_dynamic_flag_spec='${wl}-E'
8789       ;;
8790
8791     hpux10*)
8792       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8793         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8794       else
8795         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8796       fi
8797       if test "$with_gnu_ld" = no; then
8798         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8799         hardcode_libdir_separator=:
8800
8801         hardcode_direct=yes
8802         export_dynamic_flag_spec='${wl}-E'
8803
8804         # hardcode_minus_L: Not really in the search PATH,
8805         # but as the default location of the library.
8806         hardcode_minus_L=yes
8807       fi
8808       ;;
8809
8810     hpux11*)
8811       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8812         case $host_cpu in
8813         hppa*64*)
8814           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8815           ;;
8816         ia64*)
8817           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8818           ;;
8819         *)
8820           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8821           ;;
8822         esac
8823       else
8824         case $host_cpu in
8825         hppa*64*)
8826           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8827           ;;
8828         ia64*)
8829           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8830           ;;
8831         *)
8832           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8833           ;;
8834         esac
8835       fi
8836       if test "$with_gnu_ld" = no; then
8837         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838         hardcode_libdir_separator=:
8839
8840         case $host_cpu in
8841         hppa*64*|ia64*)
8842           hardcode_libdir_flag_spec_ld='+b $libdir'
8843           hardcode_direct=no
8844           hardcode_shlibpath_var=no
8845           ;;
8846         *)
8847           hardcode_direct=yes
8848           export_dynamic_flag_spec='${wl}-E'
8849
8850           # hardcode_minus_L: Not really in the search PATH,
8851           # but as the default location of the library.
8852           hardcode_minus_L=yes
8853           ;;
8854         esac
8855       fi
8856       ;;
8857
8858     irix5* | irix6* | nonstopux*)
8859       if test "$GCC" = yes; then
8860         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'
8861       else
8862         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'
8863         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8864       fi
8865       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8866       hardcode_libdir_separator=:
8867       link_all_deplibs=yes
8868       ;;
8869
8870     netbsd* | netbsdelf*-gnu)
8871       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8872         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8873       else
8874         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8875       fi
8876       hardcode_libdir_flag_spec='-R$libdir'
8877       hardcode_direct=yes
8878       hardcode_shlibpath_var=no
8879       ;;
8880
8881     newsos6)
8882       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883       hardcode_direct=yes
8884       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8885       hardcode_libdir_separator=:
8886       hardcode_shlibpath_var=no
8887       ;;
8888
8889     openbsd*)
8890       if test -f /usr/libexec/ld.so; then
8891         hardcode_direct=yes
8892         hardcode_shlibpath_var=no
8893         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8894           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8895           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8896           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8897           export_dynamic_flag_spec='${wl}-E'
8898         else
8899           case $host_os in
8900            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8901              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8902              hardcode_libdir_flag_spec='-R$libdir'
8903              ;;
8904            *)
8905              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8906              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8907              ;;
8908           esac
8909         fi
8910       else
8911         ld_shlibs=no
8912       fi
8913       ;;
8914
8915     os2*)
8916       hardcode_libdir_flag_spec='-L$libdir'
8917       hardcode_minus_L=yes
8918       allow_undefined_flag=unsupported
8919       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'
8920       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8921       ;;
8922
8923     osf3*)
8924       if test "$GCC" = yes; then
8925         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8926         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'
8927       else
8928         allow_undefined_flag=' -expect_unresolved \*'
8929         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'
8930       fi
8931       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8932       hardcode_libdir_separator=:
8933       ;;
8934
8935     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8936       if test "$GCC" = yes; then
8937         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8938         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'
8939         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8940       else
8941         allow_undefined_flag=' -expect_unresolved \*'
8942         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'
8943         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8944         $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'
8945
8946         # Both c and cxx compiler support -rpath directly
8947         hardcode_libdir_flag_spec='-rpath $libdir'
8948       fi
8949       hardcode_libdir_separator=:
8950       ;;
8951
8952     solaris*)
8953       no_undefined_flag=' -z text'
8954       if test "$GCC" = yes; then
8955         wlarc='${wl}'
8956         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8958           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8959       else
8960         wlarc=''
8961         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8962         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8963         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8964       fi
8965       hardcode_libdir_flag_spec='-R$libdir'
8966       hardcode_shlibpath_var=no
8967       case $host_os in
8968       solaris2.[0-5] | solaris2.[0-5].*) ;;
8969       *)
8970         # The compiler driver will combine and reorder linker options,
8971         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8972         # but is careful enough not to reorder.
8973         # Supported since Solaris 2.6 (maybe 2.5.1?)
8974         if test "$GCC" = yes; then
8975           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8976         else
8977           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8978         fi
8979         ;;
8980       esac
8981       link_all_deplibs=yes
8982       ;;
8983
8984     sunos4*)
8985       if test "x$host_vendor" = xsequent; then
8986         # Use $CC to link under sequent, because it throws in some extra .o
8987         # files that make .init and .fini sections work.
8988         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8989       else
8990         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8991       fi
8992       hardcode_libdir_flag_spec='-L$libdir'
8993       hardcode_direct=yes
8994       hardcode_minus_L=yes
8995       hardcode_shlibpath_var=no
8996       ;;
8997
8998     sysv4)
8999       case $host_vendor in
9000         sni)
9001           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002           hardcode_direct=yes # is this really true???
9003         ;;
9004         siemens)
9005           ## LD is ld it makes a PLAMLIB
9006           ## CC just makes a GrossModule.
9007           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9008           reload_cmds='$CC -r -o $output$reload_objs'
9009           hardcode_direct=no
9010         ;;
9011         motorola)
9012           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9014         ;;
9015       esac
9016       runpath_var='LD_RUN_PATH'
9017       hardcode_shlibpath_var=no
9018       ;;
9019
9020     sysv4.3*)
9021       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022       hardcode_shlibpath_var=no
9023       export_dynamic_flag_spec='-Bexport'
9024       ;;
9025
9026     sysv4*MP*)
9027       if test -d /usr/nec; then
9028         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029         hardcode_shlibpath_var=no
9030         runpath_var=LD_RUN_PATH
9031         hardcode_runpath_var=yes
9032         ld_shlibs=yes
9033       fi
9034       ;;
9035
9036     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9037       no_undefined_flag='${wl}-z,text'
9038       archive_cmds_need_lc=no
9039       hardcode_shlibpath_var=no
9040       runpath_var='LD_RUN_PATH'
9041
9042       if test "$GCC" = yes; then
9043         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9044         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9045       else
9046         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9047         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9048       fi
9049       ;;
9050
9051     sysv5* | sco3.2v5* | sco5v6*)
9052       # Note: We can NOT use -z defs as we might desire, because we do not
9053       # link with -lc, and that would cause any symbols used from libc to
9054       # always be unresolved, which means just about no library would
9055       # ever link correctly.  If we're not using GNU ld we use -z text
9056       # though, which does catch some bad symbols but isn't as heavy-handed
9057       # as -z defs.
9058       no_undefined_flag='${wl}-z,text'
9059       allow_undefined_flag='${wl}-z,nodefs'
9060       archive_cmds_need_lc=no
9061       hardcode_shlibpath_var=no
9062       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9063       hardcode_libdir_separator=':'
9064       link_all_deplibs=yes
9065       export_dynamic_flag_spec='${wl}-Bexport'
9066       runpath_var='LD_RUN_PATH'
9067
9068       if test "$GCC" = yes; then
9069         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9070         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9071       else
9072         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9073         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9074       fi
9075       ;;
9076
9077     uts4*)
9078       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9079       hardcode_libdir_flag_spec='-L$libdir'
9080       hardcode_shlibpath_var=no
9081       ;;
9082
9083     *)
9084       ld_shlibs=no
9085       ;;
9086     esac
9087   fi
9088
9089 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9090 echo "${ECHO_T}$ld_shlibs" >&6; }
9091 test "$ld_shlibs" = no && can_build_shared=no
9092
9093 #
9094 # Do we need to explicitly link libc?
9095 #
9096 case "x$archive_cmds_need_lc" in
9097 x|xyes)
9098   # Assume -lc should be added
9099   archive_cmds_need_lc=yes
9100
9101   if test "$enable_shared" = yes && test "$GCC" = yes; then
9102     case $archive_cmds in
9103     *'~'*)
9104       # FIXME: we may have to deal with multi-command sequences.
9105       ;;
9106     '$CC '*)
9107       # Test whether the compiler implicitly links with -lc since on some
9108       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9109       # to ld, don't add -lc before -lgcc.
9110       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9111 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9112       $rm conftest*
9113       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9114
9115       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9116   (eval $ac_compile) 2>&5
9117   ac_status=$?
9118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119   (exit $ac_status); } 2>conftest.err; then
9120         soname=conftest
9121         lib=conftest
9122         libobjs=conftest.$ac_objext
9123         deplibs=
9124         wl=$lt_prog_compiler_wl
9125         pic_flag=$lt_prog_compiler_pic
9126         compiler_flags=-v
9127         linker_flags=-v
9128         verstring=
9129         output_objdir=.
9130         libname=conftest
9131         lt_save_allow_undefined_flag=$allow_undefined_flag
9132         allow_undefined_flag=
9133         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9134   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9135   ac_status=$?
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); }
9138         then
9139           archive_cmds_need_lc=no
9140         else
9141           archive_cmds_need_lc=yes
9142         fi
9143         allow_undefined_flag=$lt_save_allow_undefined_flag
9144       else
9145         cat conftest.err 1>&5
9146       fi
9147       $rm conftest*
9148       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9149 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9150       ;;
9151     esac
9152   fi
9153   ;;
9154 esac
9155
9156 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9157 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9158 library_names_spec=
9159 libname_spec='lib$name'
9160 soname_spec=
9161 shrext_cmds=".so"
9162 postinstall_cmds=
9163 postuninstall_cmds=
9164 finish_cmds=
9165 finish_eval=
9166 shlibpath_var=
9167 shlibpath_overrides_runpath=unknown
9168 version_type=none
9169 dynamic_linker="$host_os ld.so"
9170 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9171
9172 if test "$GCC" = yes; then
9173   case $host_os in
9174     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9175     *) lt_awk_arg="/^libraries:/" ;;
9176   esac
9177   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9178   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9179     # if the path contains ";" then we assume it to be the separator
9180     # otherwise default to the standard path separator (i.e. ":") - it is
9181     # assumed that no part of a normal pathname contains ";" but that should
9182     # okay in the real world where ";" in dirpaths is itself problematic.
9183     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9184   else
9185     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9186   fi
9187   # Ok, now we have the path, separated by spaces, we can step through it
9188   # and add multilib dir if necessary.
9189   lt_tmp_lt_search_path_spec=
9190   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9191   for lt_sys_path in $lt_search_path_spec; do
9192     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9193       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9194     else
9195       test -d "$lt_sys_path" && \
9196         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9197     fi
9198   done
9199   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9200 BEGIN {RS=" "; FS="/|\n";} {
9201   lt_foo="";
9202   lt_count=0;
9203   for (lt_i = NF; lt_i > 0; lt_i--) {
9204     if ($lt_i != "" && $lt_i != ".") {
9205       if ($lt_i == "..") {
9206         lt_count++;
9207       } else {
9208         if (lt_count == 0) {
9209           lt_foo="/" $lt_i lt_foo;
9210         } else {
9211           lt_count--;
9212         }
9213       }
9214     }
9215   }
9216   if (lt_foo != "") { lt_freq[lt_foo]++; }
9217   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9218 }'`
9219   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9220 else
9221   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9222 fi
9223 need_lib_prefix=unknown
9224 hardcode_into_libs=no
9225
9226 # when you set need_version to no, make sure it does not cause -set_version
9227 # flags to be left without arguments
9228 need_version=unknown
9229
9230 case $host_os in
9231 aix3*)
9232   version_type=linux
9233   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9234   shlibpath_var=LIBPATH
9235
9236   # AIX 3 has no versioning support, so we append a major version to the name.
9237   soname_spec='${libname}${release}${shared_ext}$major'
9238   ;;
9239
9240 aix[4-9]*)
9241   version_type=linux
9242   need_lib_prefix=no
9243   need_version=no
9244   hardcode_into_libs=yes
9245   if test "$host_cpu" = ia64; then
9246     # AIX 5 supports IA64
9247     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9248     shlibpath_var=LD_LIBRARY_PATH
9249   else
9250     # With GCC up to 2.95.x, collect2 would create an import file
9251     # for dependence libraries.  The import file would start with
9252     # the line `#! .'.  This would cause the generated library to
9253     # depend on `.', always an invalid library.  This was fixed in
9254     # development snapshots of GCC prior to 3.0.
9255     case $host_os in
9256       aix4 | aix4.[01] | aix4.[01].*)
9257       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9258            echo ' yes '
9259            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9260         :
9261       else
9262         can_build_shared=no
9263       fi
9264       ;;
9265     esac
9266     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9267     # soname into executable. Probably we can add versioning support to
9268     # collect2, so additional links can be useful in future.
9269     if test "$aix_use_runtimelinking" = yes; then
9270       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9271       # instead of lib<name>.a to let people know that these are not
9272       # typical AIX shared libraries.
9273       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274     else
9275       # We preserve .a as extension for shared libraries through AIX4.2
9276       # and later when we are not doing run time linking.
9277       library_names_spec='${libname}${release}.a $libname.a'
9278       soname_spec='${libname}${release}${shared_ext}$major'
9279     fi
9280     shlibpath_var=LIBPATH
9281   fi
9282   ;;
9283
9284 amigaos*)
9285   library_names_spec='$libname.ixlibrary $libname.a'
9286   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9287   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'
9288   ;;
9289
9290 beos*)
9291   library_names_spec='${libname}${shared_ext}'
9292   dynamic_linker="$host_os ld.so"
9293   shlibpath_var=LIBRARY_PATH
9294   ;;
9295
9296 bsdi[45]*)
9297   version_type=linux
9298   need_version=no
9299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9300   soname_spec='${libname}${release}${shared_ext}$major'
9301   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9302   shlibpath_var=LD_LIBRARY_PATH
9303   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9304   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9305   # the default ld.so.conf also contains /usr/contrib/lib and
9306   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9307   # libtool to hard-code these into programs
9308   ;;
9309
9310 cygwin* | mingw* | pw32*)
9311   version_type=windows
9312   shrext_cmds=".dll"
9313   need_version=no
9314   need_lib_prefix=no
9315
9316   case $GCC,$host_os in
9317   yes,cygwin* | yes,mingw* | yes,pw32*)
9318     library_names_spec='$libname.dll.a'
9319     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9320     postinstall_cmds='base_file=`basename \${file}`~
9321       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9322       dldir=$destdir/`dirname \$dlpath`~
9323       test -d \$dldir || mkdir -p \$dldir~
9324       $install_prog $dir/$dlname \$dldir/$dlname~
9325       chmod a+x \$dldir/$dlname'
9326     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9327       dlpath=$dir/\$dldll~
9328        $rm \$dlpath'
9329     shlibpath_overrides_runpath=yes
9330
9331     case $host_os in
9332     cygwin*)
9333       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9334       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9335       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9336       ;;
9337     mingw*)
9338       # MinGW DLLs use traditional 'lib' prefix
9339       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9340       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9341       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9342         # It is most probably a Windows format PATH printed by
9343         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9344         # path with ; separators, and with drive letters. We can handle the
9345         # drive letters (cygwin fileutils understands them), so leave them,
9346         # especially as we might pass files found there to a mingw objdump,
9347         # which wouldn't understand a cygwinified path. Ahh.
9348         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9349       else
9350         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9351       fi
9352       ;;
9353     pw32*)
9354       # pw32 DLLs use 'pw' prefix rather than 'lib'
9355       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9356       ;;
9357     esac
9358     ;;
9359
9360   *)
9361     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9362     ;;
9363   esac
9364   dynamic_linker='Win32 ld.exe'
9365   # FIXME: first we should search . and the directory the executable is in
9366   shlibpath_var=PATH
9367   ;;
9368
9369 darwin* | rhapsody*)
9370   dynamic_linker="$host_os dyld"
9371   version_type=darwin
9372   need_lib_prefix=no
9373   need_version=no
9374   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9375   soname_spec='${libname}${release}${major}$shared_ext'
9376   shlibpath_overrides_runpath=yes
9377   shlibpath_var=DYLD_LIBRARY_PATH
9378   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9379
9380   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9381   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9382   ;;
9383
9384 dgux*)
9385   version_type=linux
9386   need_lib_prefix=no
9387   need_version=no
9388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9389   soname_spec='${libname}${release}${shared_ext}$major'
9390   shlibpath_var=LD_LIBRARY_PATH
9391   ;;
9392
9393 freebsd1*)
9394   dynamic_linker=no
9395   ;;
9396
9397 freebsd* | dragonfly*)
9398   # DragonFly does not have aout.  When/if they implement a new
9399   # versioning mechanism, adjust this.
9400   if test -x /usr/bin/objformat; then
9401     objformat=`/usr/bin/objformat`
9402   else
9403     case $host_os in
9404     freebsd[123]*) objformat=aout ;;
9405     *) objformat=elf ;;
9406     esac
9407   fi
9408   version_type=freebsd-$objformat
9409   case $version_type in
9410     freebsd-elf*)
9411       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9412       need_version=no
9413       need_lib_prefix=no
9414       ;;
9415     freebsd-*)
9416       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9417       need_version=yes
9418       ;;
9419   esac
9420   shlibpath_var=LD_LIBRARY_PATH
9421   case $host_os in
9422   freebsd2*)
9423     shlibpath_overrides_runpath=yes
9424     ;;
9425   freebsd3.[01]* | freebsdelf3.[01]*)
9426     shlibpath_overrides_runpath=yes
9427     hardcode_into_libs=yes
9428     ;;
9429   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9430   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9431     shlibpath_overrides_runpath=no
9432     hardcode_into_libs=yes
9433     ;;
9434   *) # from 4.6 on, and DragonFly
9435     shlibpath_overrides_runpath=yes
9436     hardcode_into_libs=yes
9437     ;;
9438   esac
9439   ;;
9440
9441 gnu*)
9442   version_type=linux
9443   need_lib_prefix=no
9444   need_version=no
9445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9446   soname_spec='${libname}${release}${shared_ext}$major'
9447   shlibpath_var=LD_LIBRARY_PATH
9448   hardcode_into_libs=yes
9449   ;;
9450
9451 hpux9* | hpux10* | hpux11*)
9452   # Give a soname corresponding to the major version so that dld.sl refuses to
9453   # link against other versions.
9454   version_type=sunos
9455   need_lib_prefix=no
9456   need_version=no
9457   case $host_cpu in
9458   ia64*)
9459     shrext_cmds='.so'
9460     hardcode_into_libs=yes
9461     dynamic_linker="$host_os dld.so"
9462     shlibpath_var=LD_LIBRARY_PATH
9463     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9465     soname_spec='${libname}${release}${shared_ext}$major'
9466     if test "X$HPUX_IA64_MODE" = X32; then
9467       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9468     else
9469       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9470     fi
9471     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9472     ;;
9473    hppa*64*)
9474      shrext_cmds='.sl'
9475      hardcode_into_libs=yes
9476      dynamic_linker="$host_os dld.sl"
9477      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9478      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9479      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9480      soname_spec='${libname}${release}${shared_ext}$major'
9481      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9482      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9483      ;;
9484    *)
9485     shrext_cmds='.sl'
9486     dynamic_linker="$host_os dld.sl"
9487     shlibpath_var=SHLIB_PATH
9488     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9489     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9490     soname_spec='${libname}${release}${shared_ext}$major'
9491     ;;
9492   esac
9493   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9494   postinstall_cmds='chmod 555 $lib'
9495   ;;
9496
9497 interix[3-9]*)
9498   version_type=linux
9499   need_lib_prefix=no
9500   need_version=no
9501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9502   soname_spec='${libname}${release}${shared_ext}$major'
9503   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9504   shlibpath_var=LD_LIBRARY_PATH
9505   shlibpath_overrides_runpath=no
9506   hardcode_into_libs=yes
9507   ;;
9508
9509 irix5* | irix6* | nonstopux*)
9510   case $host_os in
9511     nonstopux*) version_type=nonstopux ;;
9512     *)
9513         if test "$lt_cv_prog_gnu_ld" = yes; then
9514                 version_type=linux
9515         else
9516                 version_type=irix
9517         fi ;;
9518   esac
9519   need_lib_prefix=no
9520   need_version=no
9521   soname_spec='${libname}${release}${shared_ext}$major'
9522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9523   case $host_os in
9524   irix5* | nonstopux*)
9525     libsuff= shlibsuff=
9526     ;;
9527   *)
9528     case $LD in # libtool.m4 will add one of these switches to LD
9529     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9530       libsuff= shlibsuff= libmagic=32-bit;;
9531     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9532       libsuff=32 shlibsuff=N32 libmagic=N32;;
9533     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9534       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9535     *) libsuff= shlibsuff= libmagic=never-match;;
9536     esac
9537     ;;
9538   esac
9539   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9540   shlibpath_overrides_runpath=no
9541   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9542   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9543   hardcode_into_libs=yes
9544   ;;
9545
9546 # No shared lib support for Linux oldld, aout, or coff.
9547 linux*oldld* | linux*aout* | linux*coff*)
9548   dynamic_linker=no
9549   ;;
9550
9551 # This must be Linux ELF.
9552 linux* | k*bsd*-gnu)
9553   version_type=linux
9554   need_lib_prefix=no
9555   need_version=no
9556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9557   soname_spec='${libname}${release}${shared_ext}$major'
9558   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9559   shlibpath_var=LD_LIBRARY_PATH
9560   shlibpath_overrides_runpath=no
9561   # This implies no fast_install, which is unacceptable.
9562   # Some rework will be needed to allow for fast_install
9563   # before this can be enabled.
9564   hardcode_into_libs=yes
9565
9566   # Append ld.so.conf contents to the search path
9567   if test -f /etc/ld.so.conf; then
9568     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9569     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9570   fi
9571
9572   # We used to test for /lib/ld.so.1 and disable shared libraries on
9573   # powerpc, because MkLinux only supported shared libraries with the
9574   # GNU dynamic linker.  Since this was broken with cross compilers,
9575   # most powerpc-linux boxes support dynamic linking these days and
9576   # people can always --disable-shared, the test was removed, and we
9577   # assume the GNU/Linux dynamic linker is in use.
9578   dynamic_linker='GNU/Linux ld.so'
9579   ;;
9580
9581 netbsdelf*-gnu)
9582   version_type=linux
9583   need_lib_prefix=no
9584   need_version=no
9585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9586   soname_spec='${libname}${release}${shared_ext}$major'
9587   shlibpath_var=LD_LIBRARY_PATH
9588   shlibpath_overrides_runpath=no
9589   hardcode_into_libs=yes
9590   dynamic_linker='NetBSD ld.elf_so'
9591   ;;
9592
9593 netbsd*)
9594   version_type=sunos
9595   need_lib_prefix=no
9596   need_version=no
9597   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9598     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9599     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9600     dynamic_linker='NetBSD (a.out) ld.so'
9601   else
9602     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9603     soname_spec='${libname}${release}${shared_ext}$major'
9604     dynamic_linker='NetBSD ld.elf_so'
9605   fi
9606   shlibpath_var=LD_LIBRARY_PATH
9607   shlibpath_overrides_runpath=yes
9608   hardcode_into_libs=yes
9609   ;;
9610
9611 newsos6)
9612   version_type=linux
9613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9614   shlibpath_var=LD_LIBRARY_PATH
9615   shlibpath_overrides_runpath=yes
9616   ;;
9617
9618 nto-qnx*)
9619   version_type=linux
9620   need_lib_prefix=no
9621   need_version=no
9622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623   soname_spec='${libname}${release}${shared_ext}$major'
9624   shlibpath_var=LD_LIBRARY_PATH
9625   shlibpath_overrides_runpath=yes
9626   ;;
9627
9628 openbsd*)
9629   version_type=sunos
9630   sys_lib_dlsearch_path_spec="/usr/lib"
9631   need_lib_prefix=no
9632   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9633   case $host_os in
9634     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9635     *)                         need_version=no  ;;
9636   esac
9637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639   shlibpath_var=LD_LIBRARY_PATH
9640   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9641     case $host_os in
9642       openbsd2.[89] | openbsd2.[89].*)
9643         shlibpath_overrides_runpath=no
9644         ;;
9645       *)
9646         shlibpath_overrides_runpath=yes
9647         ;;
9648       esac
9649   else
9650     shlibpath_overrides_runpath=yes
9651   fi
9652   ;;
9653
9654 os2*)
9655   libname_spec='$name'
9656   shrext_cmds=".dll"
9657   need_lib_prefix=no
9658   library_names_spec='$libname${shared_ext} $libname.a'
9659   dynamic_linker='OS/2 ld.exe'
9660   shlibpath_var=LIBPATH
9661   ;;
9662
9663 osf3* | osf4* | osf5*)
9664   version_type=osf
9665   need_lib_prefix=no
9666   need_version=no
9667   soname_spec='${libname}${release}${shared_ext}$major'
9668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9669   shlibpath_var=LD_LIBRARY_PATH
9670   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9671   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9672   ;;
9673
9674 rdos*)
9675   dynamic_linker=no
9676   ;;
9677
9678 solaris*)
9679   version_type=linux
9680   need_lib_prefix=no
9681   need_version=no
9682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683   soname_spec='${libname}${release}${shared_ext}$major'
9684   shlibpath_var=LD_LIBRARY_PATH
9685   shlibpath_overrides_runpath=yes
9686   hardcode_into_libs=yes
9687   # ldd complains unless libraries are executable
9688   postinstall_cmds='chmod +x $lib'
9689   ;;
9690
9691 sunos4*)
9692   version_type=sunos
9693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9694   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9695   shlibpath_var=LD_LIBRARY_PATH
9696   shlibpath_overrides_runpath=yes
9697   if test "$with_gnu_ld" = yes; then
9698     need_lib_prefix=no
9699   fi
9700   need_version=yes
9701   ;;
9702
9703 sysv4 | sysv4.3*)
9704   version_type=linux
9705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706   soname_spec='${libname}${release}${shared_ext}$major'
9707   shlibpath_var=LD_LIBRARY_PATH
9708   case $host_vendor in
9709     sni)
9710       shlibpath_overrides_runpath=no
9711       need_lib_prefix=no
9712       export_dynamic_flag_spec='${wl}-Blargedynsym'
9713       runpath_var=LD_RUN_PATH
9714       ;;
9715     siemens)
9716       need_lib_prefix=no
9717       ;;
9718     motorola)
9719       need_lib_prefix=no
9720       need_version=no
9721       shlibpath_overrides_runpath=no
9722       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9723       ;;
9724   esac
9725   ;;
9726
9727 sysv4*MP*)
9728   if test -d /usr/nec ;then
9729     version_type=linux
9730     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9731     soname_spec='$libname${shared_ext}.$major'
9732     shlibpath_var=LD_LIBRARY_PATH
9733   fi
9734   ;;
9735
9736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9737   version_type=freebsd-elf
9738   need_lib_prefix=no
9739   need_version=no
9740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9741   soname_spec='${libname}${release}${shared_ext}$major'
9742   shlibpath_var=LD_LIBRARY_PATH
9743   hardcode_into_libs=yes
9744   if test "$with_gnu_ld" = yes; then
9745     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9746     shlibpath_overrides_runpath=no
9747   else
9748     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9749     shlibpath_overrides_runpath=yes
9750     case $host_os in
9751       sco3.2v5*)
9752         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9753         ;;
9754     esac
9755   fi
9756   sys_lib_dlsearch_path_spec='/usr/lib'
9757   ;;
9758
9759 uts4*)
9760   version_type=linux
9761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762   soname_spec='${libname}${release}${shared_ext}$major'
9763   shlibpath_var=LD_LIBRARY_PATH
9764   ;;
9765
9766 *)
9767   dynamic_linker=no
9768   ;;
9769 esac
9770 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9771 echo "${ECHO_T}$dynamic_linker" >&6; }
9772 test "$dynamic_linker" = no && can_build_shared=no
9773
9774 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9775   echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9778 fi
9779
9780 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9781 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9782   echo $ECHO_N "(cached) $ECHO_C" >&6
9783 else
9784   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9785 fi
9786
9787 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9788
9789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9790 if test "$GCC" = yes; then
9791   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9792 fi
9793
9794 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9795 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9796 hardcode_action=
9797 if test -n "$hardcode_libdir_flag_spec" || \
9798    test -n "$runpath_var" || \
9799    test "X$hardcode_automatic" = "Xyes" ; then
9800
9801   # We can hardcode non-existant directories.
9802   if test "$hardcode_direct" != no &&
9803      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9804      # have to relink, otherwise we might link with an installed library
9805      # when we should be linking with a yet-to-be-installed one
9806      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9807      test "$hardcode_minus_L" != no; then
9808     # Linking always hardcodes the temporary library directory.
9809     hardcode_action=relink
9810   else
9811     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9812     hardcode_action=immediate
9813   fi
9814 else
9815   # We cannot hardcode anything, or else we can only hardcode existing
9816   # directories.
9817   hardcode_action=unsupported
9818 fi
9819 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9820 echo "${ECHO_T}$hardcode_action" >&6; }
9821
9822 if test "$hardcode_action" = relink; then
9823   # Fast installation is not supported
9824   enable_fast_install=no
9825 elif test "$shlibpath_overrides_runpath" = yes ||
9826      test "$enable_shared" = no; then
9827   # Fast installation is not necessary
9828   enable_fast_install=needless
9829 fi
9830
9831 striplib=
9832 old_striplib=
9833 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9834 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9835 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9836   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9837   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9838   { echo "$as_me:$LINENO: result: yes" >&5
9839 echo "${ECHO_T}yes" >&6; }
9840 else
9841 # FIXME - insert some real tests, host_os isn't really good enough
9842   case $host_os in
9843    darwin*)
9844        if test -n "$STRIP" ; then
9845          striplib="$STRIP -x"
9846          old_striplib="$STRIP -S"
9847          { echo "$as_me:$LINENO: result: yes" >&5
9848 echo "${ECHO_T}yes" >&6; }
9849        else
9850   { echo "$as_me:$LINENO: result: no" >&5
9851 echo "${ECHO_T}no" >&6; }
9852 fi
9853        ;;
9854    *)
9855   { echo "$as_me:$LINENO: result: no" >&5
9856 echo "${ECHO_T}no" >&6; }
9857     ;;
9858   esac
9859 fi
9860
9861 if test "x$enable_dlopen" != xyes; then
9862   enable_dlopen=unknown
9863   enable_dlopen_self=unknown
9864   enable_dlopen_self_static=unknown
9865 else
9866   lt_cv_dlopen=no
9867   lt_cv_dlopen_libs=
9868
9869   case $host_os in
9870   beos*)
9871     lt_cv_dlopen="load_add_on"
9872     lt_cv_dlopen_libs=
9873     lt_cv_dlopen_self=yes
9874     ;;
9875
9876   mingw* | pw32*)
9877     lt_cv_dlopen="LoadLibrary"
9878     lt_cv_dlopen_libs=
9879    ;;
9880
9881   cygwin*)
9882     lt_cv_dlopen="dlopen"
9883     lt_cv_dlopen_libs=
9884    ;;
9885
9886   darwin*)
9887   # if libdl is installed we need to link against it
9888     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9889 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9891   echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893   ac_check_lib_save_LIBS=$LIBS
9894 LIBS="-ldl  $LIBS"
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h.  */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h.  */
9901
9902 /* Override any GCC internal prototype to avoid an error.
9903    Use char because int might match the return type of a GCC
9904    builtin and then its argument prototype would still apply.  */
9905 #ifdef __cplusplus
9906 extern "C"
9907 #endif
9908 char dlopen ();
9909 int
9910 main ()
9911 {
9912 return dlopen ();
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9919 case "(($ac_try" in
9920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921   *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924   (eval "$ac_link") 2>conftest.er1
9925   ac_status=$?
9926   grep -v '^ *+' conftest.er1 >conftest.err
9927   rm -f conftest.er1
9928   cat conftest.err >&5
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } && {
9931          test -z "$ac_c_werror_flag" ||
9932          test ! -s conftest.err
9933        } && test -s conftest$ac_exeext &&
9934        $as_test_x conftest$ac_exeext; then
9935   ac_cv_lib_dl_dlopen=yes
9936 else
9937   echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9939
9940         ac_cv_lib_dl_dlopen=no
9941 fi
9942
9943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944       conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9946 fi
9947 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9949 if test $ac_cv_lib_dl_dlopen = yes; then
9950   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9951 else
9952
9953     lt_cv_dlopen="dyld"
9954     lt_cv_dlopen_libs=
9955     lt_cv_dlopen_self=yes
9956
9957 fi
9958
9959    ;;
9960
9961   *)
9962     { echo "$as_me:$LINENO: checking for shl_load" >&5
9963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9964 if test "${ac_cv_func_shl_load+set}" = set; then
9965   echo $ECHO_N "(cached) $ECHO_C" >&6
9966 else
9967   cat >conftest.$ac_ext <<_ACEOF
9968 /* confdefs.h.  */
9969 _ACEOF
9970 cat confdefs.h >>conftest.$ac_ext
9971 cat >>conftest.$ac_ext <<_ACEOF
9972 /* end confdefs.h.  */
9973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9974    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9975 #define shl_load innocuous_shl_load
9976
9977 /* System header to define __stub macros and hopefully few prototypes,
9978     which can conflict with char shl_load (); below.
9979     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980     <limits.h> exists even on freestanding compilers.  */
9981
9982 #ifdef __STDC__
9983 # include <limits.h>
9984 #else
9985 # include <assert.h>
9986 #endif
9987
9988 #undef shl_load
9989
9990 /* Override any GCC internal prototype to avoid an error.
9991    Use char because int might match the return type of a GCC
9992    builtin and then its argument prototype would still apply.  */
9993 #ifdef __cplusplus
9994 extern "C"
9995 #endif
9996 char shl_load ();
9997 /* The GNU C library defines this for functions which it implements
9998     to always fail with ENOSYS.  Some functions are actually named
9999     something starting with __ and the normal name is an alias.  */
10000 #if defined __stub_shl_load || defined __stub___shl_load
10001 choke me
10002 #endif
10003
10004 int
10005 main ()
10006 {
10007 return shl_load ();
10008   ;
10009   return 0;
10010 }
10011 _ACEOF
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (ac_try="$ac_link"
10014 case "(($ac_try" in
10015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016   *) ac_try_echo=$ac_try;;
10017 esac
10018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019   (eval "$ac_link") 2>conftest.er1
10020   ac_status=$?
10021   grep -v '^ *+' conftest.er1 >conftest.err
10022   rm -f conftest.er1
10023   cat conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   (exit $ac_status); } && {
10026          test -z "$ac_c_werror_flag" ||
10027          test ! -s conftest.err
10028        } && test -s conftest$ac_exeext &&
10029        $as_test_x conftest$ac_exeext; then
10030   ac_cv_func_shl_load=yes
10031 else
10032   echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10034
10035         ac_cv_func_shl_load=no
10036 fi
10037
10038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039       conftest$ac_exeext conftest.$ac_ext
10040 fi
10041 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10042 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10043 if test $ac_cv_func_shl_load = yes; then
10044   lt_cv_dlopen="shl_load"
10045 else
10046   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10047 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10048 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   ac_check_lib_save_LIBS=$LIBS
10052 LIBS="-ldld  $LIBS"
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059
10060 /* Override any GCC internal prototype to avoid an error.
10061    Use char because int might match the return type of a GCC
10062    builtin and then its argument prototype would still apply.  */
10063 #ifdef __cplusplus
10064 extern "C"
10065 #endif
10066 char shl_load ();
10067 int
10068 main ()
10069 {
10070 return shl_load ();
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (ac_try="$ac_link"
10077 case "(($ac_try" in
10078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079   *) ac_try_echo=$ac_try;;
10080 esac
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082   (eval "$ac_link") 2>conftest.er1
10083   ac_status=$?
10084   grep -v '^ *+' conftest.er1 >conftest.err
10085   rm -f conftest.er1
10086   cat conftest.err >&5
10087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088   (exit $ac_status); } && {
10089          test -z "$ac_c_werror_flag" ||
10090          test ! -s conftest.err
10091        } && test -s conftest$ac_exeext &&
10092        $as_test_x conftest$ac_exeext; then
10093   ac_cv_lib_dld_shl_load=yes
10094 else
10095   echo "$as_me: failed program was:" >&5
10096 sed 's/^/| /' conftest.$ac_ext >&5
10097
10098         ac_cv_lib_dld_shl_load=no
10099 fi
10100
10101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10102       conftest$ac_exeext conftest.$ac_ext
10103 LIBS=$ac_check_lib_save_LIBS
10104 fi
10105 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10106 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10107 if test $ac_cv_lib_dld_shl_load = yes; then
10108   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10109 else
10110   { echo "$as_me:$LINENO: checking for dlopen" >&5
10111 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10112 if test "${ac_cv_func_dlopen+set}" = set; then
10113   echo $ECHO_N "(cached) $ECHO_C" >&6
10114 else
10115   cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h.  */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h.  */
10121 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10123 #define dlopen innocuous_dlopen
10124
10125 /* System header to define __stub macros and hopefully few prototypes,
10126     which can conflict with char dlopen (); below.
10127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128     <limits.h> exists even on freestanding compilers.  */
10129
10130 #ifdef __STDC__
10131 # include <limits.h>
10132 #else
10133 # include <assert.h>
10134 #endif
10135
10136 #undef dlopen
10137
10138 /* Override any GCC internal prototype to avoid an error.
10139    Use char because int might match the return type of a GCC
10140    builtin and then its argument prototype would still apply.  */
10141 #ifdef __cplusplus
10142 extern "C"
10143 #endif
10144 char dlopen ();
10145 /* The GNU C library defines this for functions which it implements
10146     to always fail with ENOSYS.  Some functions are actually named
10147     something starting with __ and the normal name is an alias.  */
10148 #if defined __stub_dlopen || defined __stub___dlopen
10149 choke me
10150 #endif
10151
10152 int
10153 main ()
10154 {
10155 return dlopen ();
10156   ;
10157   return 0;
10158 }
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164   *) ac_try_echo=$ac_try;;
10165 esac
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167   (eval "$ac_link") 2>conftest.er1
10168   ac_status=$?
10169   grep -v '^ *+' conftest.er1 >conftest.err
10170   rm -f conftest.er1
10171   cat conftest.err >&5
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } && {
10174          test -z "$ac_c_werror_flag" ||
10175          test ! -s conftest.err
10176        } && test -s conftest$ac_exeext &&
10177        $as_test_x conftest$ac_exeext; then
10178   ac_cv_func_dlopen=yes
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183         ac_cv_func_dlopen=no
10184 fi
10185
10186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187       conftest$ac_exeext conftest.$ac_ext
10188 fi
10189 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10190 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10191 if test $ac_cv_func_dlopen = yes; then
10192   lt_cv_dlopen="dlopen"
10193 else
10194   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10197   echo $ECHO_N "(cached) $ECHO_C" >&6
10198 else
10199   ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-ldl  $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10202 /* confdefs.h.  */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h.  */
10207
10208 /* Override any GCC internal prototype to avoid an error.
10209    Use char because int might match the return type of a GCC
10210    builtin and then its argument prototype would still apply.  */
10211 #ifdef __cplusplus
10212 extern "C"
10213 #endif
10214 char dlopen ();
10215 int
10216 main ()
10217 {
10218 return dlopen ();
10219   ;
10220   return 0;
10221 }
10222 _ACEOF
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227   *) ac_try_echo=$ac_try;;
10228 esac
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230   (eval "$ac_link") 2>conftest.er1
10231   ac_status=$?
10232   grep -v '^ *+' conftest.er1 >conftest.err
10233   rm -f conftest.er1
10234   cat conftest.err >&5
10235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236   (exit $ac_status); } && {
10237          test -z "$ac_c_werror_flag" ||
10238          test ! -s conftest.err
10239        } && test -s conftest$ac_exeext &&
10240        $as_test_x conftest$ac_exeext; then
10241   ac_cv_lib_dl_dlopen=yes
10242 else
10243   echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10245
10246         ac_cv_lib_dl_dlopen=no
10247 fi
10248
10249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10250       conftest$ac_exeext conftest.$ac_ext
10251 LIBS=$ac_check_lib_save_LIBS
10252 fi
10253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10254 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10255 if test $ac_cv_lib_dl_dlopen = yes; then
10256   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10257 else
10258   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10259 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10260 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   ac_check_lib_save_LIBS=$LIBS
10264 LIBS="-lsvld  $LIBS"
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h.  */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h.  */
10271
10272 /* Override any GCC internal prototype to avoid an error.
10273    Use char because int might match the return type of a GCC
10274    builtin and then its argument prototype would still apply.  */
10275 #ifdef __cplusplus
10276 extern "C"
10277 #endif
10278 char dlopen ();
10279 int
10280 main ()
10281 {
10282 return dlopen ();
10283   ;
10284   return 0;
10285 }
10286 _ACEOF
10287 rm -f conftest.$ac_objext conftest$ac_exeext
10288 if { (ac_try="$ac_link"
10289 case "(($ac_try" in
10290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291   *) ac_try_echo=$ac_try;;
10292 esac
10293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294   (eval "$ac_link") 2>conftest.er1
10295   ac_status=$?
10296   grep -v '^ *+' conftest.er1 >conftest.err
10297   rm -f conftest.er1
10298   cat conftest.err >&5
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } && {
10301          test -z "$ac_c_werror_flag" ||
10302          test ! -s conftest.err
10303        } && test -s conftest$ac_exeext &&
10304        $as_test_x conftest$ac_exeext; then
10305   ac_cv_lib_svld_dlopen=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310         ac_cv_lib_svld_dlopen=no
10311 fi
10312
10313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10314       conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10316 fi
10317 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10318 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10319 if test $ac_cv_lib_svld_dlopen = yes; then
10320   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10321 else
10322   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10323 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10324 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10325   echo $ECHO_N "(cached) $ECHO_C" >&6
10326 else
10327   ac_check_lib_save_LIBS=$LIBS
10328 LIBS="-ldld  $LIBS"
10329 cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335
10336 /* Override any GCC internal prototype to avoid an error.
10337    Use char because int might match the return type of a GCC
10338    builtin and then its argument prototype would still apply.  */
10339 #ifdef __cplusplus
10340 extern "C"
10341 #endif
10342 char dld_link ();
10343 int
10344 main ()
10345 {
10346 return dld_link ();
10347   ;
10348   return 0;
10349 }
10350 _ACEOF
10351 rm -f conftest.$ac_objext conftest$ac_exeext
10352 if { (ac_try="$ac_link"
10353 case "(($ac_try" in
10354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355   *) ac_try_echo=$ac_try;;
10356 esac
10357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358   (eval "$ac_link") 2>conftest.er1
10359   ac_status=$?
10360   grep -v '^ *+' conftest.er1 >conftest.err
10361   rm -f conftest.er1
10362   cat conftest.err >&5
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } && {
10365          test -z "$ac_c_werror_flag" ||
10366          test ! -s conftest.err
10367        } && test -s conftest$ac_exeext &&
10368        $as_test_x conftest$ac_exeext; then
10369   ac_cv_lib_dld_dld_link=yes
10370 else
10371   echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374         ac_cv_lib_dld_dld_link=no
10375 fi
10376
10377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10378       conftest$ac_exeext conftest.$ac_ext
10379 LIBS=$ac_check_lib_save_LIBS
10380 fi
10381 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10382 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10383 if test $ac_cv_lib_dld_dld_link = yes; then
10384   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10385 fi
10386
10387
10388 fi
10389
10390
10391 fi
10392
10393
10394 fi
10395
10396
10397 fi
10398
10399
10400 fi
10401
10402     ;;
10403   esac
10404
10405   if test "x$lt_cv_dlopen" != xno; then
10406     enable_dlopen=yes
10407   else
10408     enable_dlopen=no
10409   fi
10410
10411   case $lt_cv_dlopen in
10412   dlopen)
10413     save_CPPFLAGS="$CPPFLAGS"
10414     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10415
10416     save_LDFLAGS="$LDFLAGS"
10417     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10418
10419     save_LIBS="$LIBS"
10420     LIBS="$lt_cv_dlopen_libs $LIBS"
10421
10422     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10423 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10424 if test "${lt_cv_dlopen_self+set}" = set; then
10425   echo $ECHO_N "(cached) $ECHO_C" >&6
10426 else
10427           if test "$cross_compiling" = yes; then :
10428   lt_cv_dlopen_self=cross
10429 else
10430   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10431   lt_status=$lt_dlunknown
10432   cat > conftest.$ac_ext <<EOF
10433 #line 10433 "configure"
10434 #include "confdefs.h"
10435
10436 #if HAVE_DLFCN_H
10437 #include <dlfcn.h>
10438 #endif
10439
10440 #include <stdio.h>
10441
10442 #ifdef RTLD_GLOBAL
10443 #  define LT_DLGLOBAL           RTLD_GLOBAL
10444 #else
10445 #  ifdef DL_GLOBAL
10446 #    define LT_DLGLOBAL         DL_GLOBAL
10447 #  else
10448 #    define LT_DLGLOBAL         0
10449 #  endif
10450 #endif
10451
10452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10453    find out it does not work in some platform. */
10454 #ifndef LT_DLLAZY_OR_NOW
10455 #  ifdef RTLD_LAZY
10456 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10457 #  else
10458 #    ifdef DL_LAZY
10459 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10460 #    else
10461 #      ifdef RTLD_NOW
10462 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10463 #      else
10464 #        ifdef DL_NOW
10465 #          define LT_DLLAZY_OR_NOW      DL_NOW
10466 #        else
10467 #          define LT_DLLAZY_OR_NOW      0
10468 #        endif
10469 #      endif
10470 #    endif
10471 #  endif
10472 #endif
10473
10474 #ifdef __cplusplus
10475 extern "C" void exit (int);
10476 #endif
10477
10478 void fnord() { int i=42;}
10479 int main ()
10480 {
10481   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10482   int status = $lt_dlunknown;
10483
10484   if (self)
10485     {
10486       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10487       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10488       /* dlclose (self); */
10489     }
10490   else
10491     puts (dlerror ());
10492
10493     exit (status);
10494 }
10495 EOF
10496   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497   (eval $ac_link) 2>&5
10498   ac_status=$?
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10501     (./conftest; exit; ) >&5 2>/dev/null
10502     lt_status=$?
10503     case x$lt_status in
10504       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10505       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10506       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10507     esac
10508   else :
10509     # compilation failed
10510     lt_cv_dlopen_self=no
10511   fi
10512 fi
10513 rm -fr conftest*
10514
10515
10516 fi
10517 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10518 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10519
10520     if test "x$lt_cv_dlopen_self" = xyes; then
10521       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10522       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10523 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10524 if test "${lt_cv_dlopen_self_static+set}" = set; then
10525   echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527           if test "$cross_compiling" = yes; then :
10528   lt_cv_dlopen_self_static=cross
10529 else
10530   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10531   lt_status=$lt_dlunknown
10532   cat > conftest.$ac_ext <<EOF
10533 #line 10533 "configure"
10534 #include "confdefs.h"
10535
10536 #if HAVE_DLFCN_H
10537 #include <dlfcn.h>
10538 #endif
10539
10540 #include <stdio.h>
10541
10542 #ifdef RTLD_GLOBAL
10543 #  define LT_DLGLOBAL           RTLD_GLOBAL
10544 #else
10545 #  ifdef DL_GLOBAL
10546 #    define LT_DLGLOBAL         DL_GLOBAL
10547 #  else
10548 #    define LT_DLGLOBAL         0
10549 #  endif
10550 #endif
10551
10552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10553    find out it does not work in some platform. */
10554 #ifndef LT_DLLAZY_OR_NOW
10555 #  ifdef RTLD_LAZY
10556 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10557 #  else
10558 #    ifdef DL_LAZY
10559 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10560 #    else
10561 #      ifdef RTLD_NOW
10562 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10563 #      else
10564 #        ifdef DL_NOW
10565 #          define LT_DLLAZY_OR_NOW      DL_NOW
10566 #        else
10567 #          define LT_DLLAZY_OR_NOW      0
10568 #        endif
10569 #      endif
10570 #    endif
10571 #  endif
10572 #endif
10573
10574 #ifdef __cplusplus
10575 extern "C" void exit (int);
10576 #endif
10577
10578 void fnord() { int i=42;}
10579 int main ()
10580 {
10581   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10582   int status = $lt_dlunknown;
10583
10584   if (self)
10585     {
10586       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10587       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10588       /* dlclose (self); */
10589     }
10590   else
10591     puts (dlerror ());
10592
10593     exit (status);
10594 }
10595 EOF
10596   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597   (eval $ac_link) 2>&5
10598   ac_status=$?
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10601     (./conftest; exit; ) >&5 2>/dev/null
10602     lt_status=$?
10603     case x$lt_status in
10604       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10605       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10606       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10607     esac
10608   else :
10609     # compilation failed
10610     lt_cv_dlopen_self_static=no
10611   fi
10612 fi
10613 rm -fr conftest*
10614
10615
10616 fi
10617 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10618 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10619     fi
10620
10621     CPPFLAGS="$save_CPPFLAGS"
10622     LDFLAGS="$save_LDFLAGS"
10623     LIBS="$save_LIBS"
10624     ;;
10625   esac
10626
10627   case $lt_cv_dlopen_self in
10628   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10629   *) enable_dlopen_self=unknown ;;
10630   esac
10631
10632   case $lt_cv_dlopen_self_static in
10633   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10634   *) enable_dlopen_self_static=unknown ;;
10635   esac
10636 fi
10637
10638
10639 # Report which library types will actually be built
10640 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10641 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10642 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10643 echo "${ECHO_T}$can_build_shared" >&6; }
10644
10645 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10646 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10647 test "$can_build_shared" = "no" && enable_shared=no
10648
10649 # On AIX, shared libraries and static libraries use the same namespace, and
10650 # are all built from PIC.
10651 case $host_os in
10652 aix3*)
10653   test "$enable_shared" = yes && enable_static=no
10654   if test -n "$RANLIB"; then
10655     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10656     postinstall_cmds='$RANLIB $lib'
10657   fi
10658   ;;
10659
10660 aix[4-9]*)
10661   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10662     test "$enable_shared" = yes && enable_static=no
10663   fi
10664     ;;
10665 esac
10666 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10667 echo "${ECHO_T}$enable_shared" >&6; }
10668
10669 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10670 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10671 # Make sure either enable_shared or enable_static is yes.
10672 test "$enable_shared" = yes || enable_static=yes
10673 { echo "$as_me:$LINENO: result: $enable_static" >&5
10674 echo "${ECHO_T}$enable_static" >&6; }
10675
10676 # The else clause should only fire when bootstrapping the
10677 # libtool distribution, otherwise you forgot to ship ltmain.sh
10678 # with your package, and you will get complaints that there are
10679 # no rules to generate ltmain.sh.
10680 if test -f "$ltmain"; then
10681   # See if we are running on zsh, and set the options which allow our commands through
10682   # without removal of \ escapes.
10683   if test -n "${ZSH_VERSION+set}" ; then
10684     setopt NO_GLOB_SUBST
10685   fi
10686   # Now quote all the things that may contain metacharacters while being
10687   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10688   # variables and quote the copies for generation of the libtool script.
10689   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10690     SED SHELL STRIP \
10691     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10692     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10693     deplibs_check_method reload_flag reload_cmds need_locks \
10694     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10695     lt_cv_sys_global_symbol_to_c_name_address \
10696     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10697     old_postinstall_cmds old_postuninstall_cmds \
10698     compiler \
10699     CC \
10700     LD \
10701     lt_prog_compiler_wl \
10702     lt_prog_compiler_pic \
10703     lt_prog_compiler_static \
10704     lt_prog_compiler_no_builtin_flag \
10705     export_dynamic_flag_spec \
10706     thread_safe_flag_spec \
10707     whole_archive_flag_spec \
10708     enable_shared_with_static_runtimes \
10709     old_archive_cmds \
10710     old_archive_from_new_cmds \
10711     predep_objects \
10712     postdep_objects \
10713     predeps \
10714     postdeps \
10715     compiler_lib_search_path \
10716     compiler_lib_search_dirs \
10717     archive_cmds \
10718     archive_expsym_cmds \
10719     postinstall_cmds \
10720     postuninstall_cmds \
10721     old_archive_from_expsyms_cmds \
10722     allow_undefined_flag \
10723     no_undefined_flag \
10724     export_symbols_cmds \
10725     hardcode_libdir_flag_spec \
10726     hardcode_libdir_flag_spec_ld \
10727     hardcode_libdir_separator \
10728     hardcode_automatic \
10729     module_cmds \
10730     module_expsym_cmds \
10731     lt_cv_prog_compiler_c_o \
10732     fix_srcfile_path \
10733     exclude_expsyms \
10734     include_expsyms; do
10735
10736     case $var in
10737     old_archive_cmds | \
10738     old_archive_from_new_cmds | \
10739     archive_cmds | \
10740     archive_expsym_cmds | \
10741     module_cmds | \
10742     module_expsym_cmds | \
10743     old_archive_from_expsyms_cmds | \
10744     export_symbols_cmds | \
10745     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10746     postinstall_cmds | postuninstall_cmds | \
10747     old_postinstall_cmds | old_postuninstall_cmds | \
10748     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10749       # Double-quote double-evaled strings.
10750       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10751       ;;
10752     *)
10753       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10754       ;;
10755     esac
10756   done
10757
10758   case $lt_echo in
10759   *'\$0 --fallback-echo"')
10760     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10761     ;;
10762   esac
10763
10764 cfgfile="${ofile}T"
10765   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10766   $rm -f "$cfgfile"
10767   { echo "$as_me:$LINENO: creating $ofile" >&5
10768 echo "$as_me: creating $ofile" >&6;}
10769
10770   cat <<__EOF__ >> "$cfgfile"
10771 #! $SHELL
10772
10773 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10774 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10775 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10776 #
10777 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10778 # Free Software Foundation, Inc.
10779 #
10780 # This file is part of GNU Libtool:
10781 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10782 #
10783 # This program is free software; you can redistribute it and/or modify
10784 # it under the terms of the GNU General Public License as published by
10785 # the Free Software Foundation; either version 2 of the License, or
10786 # (at your option) any later version.
10787 #
10788 # This program is distributed in the hope that it will be useful, but
10789 # WITHOUT ANY WARRANTY; without even the implied warranty of
10790 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10791 # General Public License for more details.
10792 #
10793 # You should have received a copy of the GNU General Public License
10794 # along with this program; if not, write to the Free Software
10795 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10796 #
10797 # As a special exception to the GNU General Public License, if you
10798 # distribute this file as part of a program that contains a
10799 # configuration script generated by Autoconf, you may include it under
10800 # the same distribution terms that you use for the rest of that program.
10801
10802 # A sed program that does not truncate output.
10803 SED=$lt_SED
10804
10805 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10806 Xsed="$SED -e 1s/^X//"
10807
10808 # The HP-UX ksh and POSIX shell print the target directory to stdout
10809 # if CDPATH is set.
10810 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10811
10812 # The names of the tagged configurations supported by this script.
10813 available_tags=
10814
10815 # ### BEGIN LIBTOOL CONFIG
10816
10817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10818
10819 # Shell to use when invoking shell scripts.
10820 SHELL=$lt_SHELL
10821
10822 # Whether or not to build shared libraries.
10823 build_libtool_libs=$enable_shared
10824
10825 # Whether or not to build static libraries.
10826 build_old_libs=$enable_static
10827
10828 # Whether or not to add -lc for building shared libraries.
10829 build_libtool_need_lc=$archive_cmds_need_lc
10830
10831 # Whether or not to disallow shared libs when runtime libs are static
10832 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10833
10834 # Whether or not to optimize for fast installation.
10835 fast_install=$enable_fast_install
10836
10837 # The host system.
10838 host_alias=$host_alias
10839 host=$host
10840 host_os=$host_os
10841
10842 # The build system.
10843 build_alias=$build_alias
10844 build=$build
10845 build_os=$build_os
10846
10847 # An echo program that does not interpret backslashes.
10848 echo=$lt_echo
10849
10850 # The archiver.
10851 AR=$lt_AR
10852 AR_FLAGS=$lt_AR_FLAGS
10853
10854 # A C compiler.
10855 LTCC=$lt_LTCC
10856
10857 # LTCC compiler flags.
10858 LTCFLAGS=$lt_LTCFLAGS
10859
10860 # A language-specific compiler.
10861 CC=$lt_compiler
10862
10863 # Is the compiler the GNU C compiler?
10864 with_gcc=$GCC
10865
10866 # An ERE matcher.
10867 EGREP=$lt_EGREP
10868
10869 # The linker used to build libraries.
10870 LD=$lt_LD
10871
10872 # Whether we need hard or soft links.
10873 LN_S=$lt_LN_S
10874
10875 # A BSD-compatible nm program.
10876 NM=$lt_NM
10877
10878 # A symbol stripping program
10879 STRIP=$lt_STRIP
10880
10881 # Used to examine libraries when file_magic_cmd begins "file"
10882 MAGIC_CMD=$MAGIC_CMD
10883
10884 # Used on cygwin: DLL creation program.
10885 DLLTOOL="$DLLTOOL"
10886
10887 # Used on cygwin: object dumper.
10888 OBJDUMP="$OBJDUMP"
10889
10890 # Used on cygwin: assembler.
10891 AS="$AS"
10892
10893 # The name of the directory that contains temporary libtool files.
10894 objdir=$objdir
10895
10896 # How to create reloadable object files.
10897 reload_flag=$lt_reload_flag
10898 reload_cmds=$lt_reload_cmds
10899
10900 # How to pass a linker flag through the compiler.
10901 wl=$lt_lt_prog_compiler_wl
10902
10903 # Object file suffix (normally "o").
10904 objext="$ac_objext"
10905
10906 # Old archive suffix (normally "a").
10907 libext="$libext"
10908
10909 # Shared library suffix (normally ".so").
10910 shrext_cmds='$shrext_cmds'
10911
10912 # Executable file suffix (normally "").
10913 exeext="$exeext"
10914
10915 # Additional compiler flags for building library objects.
10916 pic_flag=$lt_lt_prog_compiler_pic
10917 pic_mode=$pic_mode
10918
10919 # What is the maximum length of a command?
10920 max_cmd_len=$lt_cv_sys_max_cmd_len
10921
10922 # Does compiler simultaneously support -c and -o options?
10923 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10924
10925 # Must we lock files when doing compilation?
10926 need_locks=$lt_need_locks
10927
10928 # Do we need the lib prefix for modules?
10929 need_lib_prefix=$need_lib_prefix
10930
10931 # Do we need a version for libraries?
10932 need_version=$need_version
10933
10934 # Whether dlopen is supported.
10935 dlopen_support=$enable_dlopen
10936
10937 # Whether dlopen of programs is supported.
10938 dlopen_self=$enable_dlopen_self
10939
10940 # Whether dlopen of statically linked programs is supported.
10941 dlopen_self_static=$enable_dlopen_self_static
10942
10943 # Compiler flag to prevent dynamic linking.
10944 link_static_flag=$lt_lt_prog_compiler_static
10945
10946 # Compiler flag to turn off builtin functions.
10947 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10948
10949 # Compiler flag to allow reflexive dlopens.
10950 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10951
10952 # Compiler flag to generate shared objects directly from archives.
10953 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10954
10955 # Compiler flag to generate thread-safe objects.
10956 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10957
10958 # Library versioning type.
10959 version_type=$version_type
10960
10961 # Format of library name prefix.
10962 libname_spec=$lt_libname_spec
10963
10964 # List of archive names.  First name is the real one, the rest are links.
10965 # The last name is the one that the linker finds with -lNAME.
10966 library_names_spec=$lt_library_names_spec
10967
10968 # The coded name of the library, if different from the real name.
10969 soname_spec=$lt_soname_spec
10970
10971 # Commands used to build and install an old-style archive.
10972 RANLIB=$lt_RANLIB
10973 old_archive_cmds=$lt_old_archive_cmds
10974 old_postinstall_cmds=$lt_old_postinstall_cmds
10975 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10976
10977 # Create an old-style archive from a shared archive.
10978 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10979
10980 # Create a temporary old-style archive to link instead of a shared archive.
10981 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10982
10983 # Commands used to build and install a shared archive.
10984 archive_cmds=$lt_archive_cmds
10985 archive_expsym_cmds=$lt_archive_expsym_cmds
10986 postinstall_cmds=$lt_postinstall_cmds
10987 postuninstall_cmds=$lt_postuninstall_cmds
10988
10989 # Commands used to build a loadable module (assumed same as above if empty)
10990 module_cmds=$lt_module_cmds
10991 module_expsym_cmds=$lt_module_expsym_cmds
10992
10993 # Commands to strip libraries.
10994 old_striplib=$lt_old_striplib
10995 striplib=$lt_striplib
10996
10997 # Dependencies to place before the objects being linked to create a
10998 # shared library.
10999 predep_objects=$lt_predep_objects
11000
11001 # Dependencies to place after the objects being linked to create a
11002 # shared library.
11003 postdep_objects=$lt_postdep_objects
11004
11005 # Dependencies to place before the objects being linked to create a
11006 # shared library.
11007 predeps=$lt_predeps
11008
11009 # Dependencies to place after the objects being linked to create a
11010 # shared library.
11011 postdeps=$lt_postdeps
11012
11013 # The directories searched by this compiler when creating a shared
11014 # library
11015 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11016
11017 # The library search path used internally by the compiler when linking
11018 # a shared library.
11019 compiler_lib_search_path=$lt_compiler_lib_search_path
11020
11021 # Method to check whether dependent libraries are shared objects.
11022 deplibs_check_method=$lt_deplibs_check_method
11023
11024 # Command to use when deplibs_check_method == file_magic.
11025 file_magic_cmd=$lt_file_magic_cmd
11026
11027 # Flag that allows shared libraries with undefined symbols to be built.
11028 allow_undefined_flag=$lt_allow_undefined_flag
11029
11030 # Flag that forces no undefined symbols.
11031 no_undefined_flag=$lt_no_undefined_flag
11032
11033 # Commands used to finish a libtool library installation in a directory.
11034 finish_cmds=$lt_finish_cmds
11035
11036 # Same as above, but a single script fragment to be evaled but not shown.
11037 finish_eval=$lt_finish_eval
11038
11039 # Take the output of nm and produce a listing of raw symbols and C names.
11040 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11041
11042 # Transform the output of nm in a proper C declaration
11043 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11044
11045 # Transform the output of nm in a C name address pair
11046 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11047
11048 # This is the shared library runtime path variable.
11049 runpath_var=$runpath_var
11050
11051 # This is the shared library path variable.
11052 shlibpath_var=$shlibpath_var
11053
11054 # Is shlibpath searched before the hard-coded library search path?
11055 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11056
11057 # How to hardcode a shared library path into an executable.
11058 hardcode_action=$hardcode_action
11059
11060 # Whether we should hardcode library paths into libraries.
11061 hardcode_into_libs=$hardcode_into_libs
11062
11063 # Flag to hardcode \$libdir into a binary during linking.
11064 # This must work even if \$libdir does not exist.
11065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11066
11067 # If ld is used when linking, flag to hardcode \$libdir into
11068 # a binary during linking. This must work even if \$libdir does
11069 # not exist.
11070 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11071
11072 # Whether we need a single -rpath flag with a separated argument.
11073 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11074
11075 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11076 # resulting binary.
11077 hardcode_direct=$hardcode_direct
11078
11079 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11080 # resulting binary.
11081 hardcode_minus_L=$hardcode_minus_L
11082
11083 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11084 # the resulting binary.
11085 hardcode_shlibpath_var=$hardcode_shlibpath_var
11086
11087 # Set to yes if building a shared library automatically hardcodes DIR into the library
11088 # and all subsequent libraries and executables linked against it.
11089 hardcode_automatic=$hardcode_automatic
11090
11091 # Variables whose values should be saved in libtool wrapper scripts and
11092 # restored at relink time.
11093 variables_saved_for_relink="$variables_saved_for_relink"
11094
11095 # Whether libtool must link a program against all its dependency libraries.
11096 link_all_deplibs=$link_all_deplibs
11097
11098 # Compile-time system search path for libraries
11099 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11100
11101 # Run-time system search path for libraries
11102 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11103
11104 # Fix the shell variable \$srcfile for the compiler.
11105 fix_srcfile_path=$lt_fix_srcfile_path
11106
11107 # Set to yes if exported symbols are required.
11108 always_export_symbols=$always_export_symbols
11109
11110 # The commands to list exported symbols.
11111 export_symbols_cmds=$lt_export_symbols_cmds
11112
11113 # The commands to extract the exported symbol list from a shared archive.
11114 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11115
11116 # Symbols that should not be listed in the preloaded symbols.
11117 exclude_expsyms=$lt_exclude_expsyms
11118
11119 # Symbols that must always be exported.
11120 include_expsyms=$lt_include_expsyms
11121
11122 # ### END LIBTOOL CONFIG
11123
11124 __EOF__
11125
11126
11127   case $host_os in
11128   aix3*)
11129     cat <<\EOF >> "$cfgfile"
11130
11131 # AIX sometimes has problems with the GCC collect2 program.  For some
11132 # reason, if we set the COLLECT_NAMES environment variable, the problems
11133 # vanish in a puff of smoke.
11134 if test "X${COLLECT_NAMES+set}" != Xset; then
11135   COLLECT_NAMES=
11136   export COLLECT_NAMES
11137 fi
11138 EOF
11139     ;;
11140   esac
11141
11142   # We use sed instead of cat because bash on DJGPP gets confused if
11143   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11144   # text mode, it properly converts lines to CR/LF.  This bash problem
11145   # is reportedly fixed, but why not run on old versions too?
11146   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11147
11148   mv -f "$cfgfile" "$ofile" || \
11149     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11150   chmod +x "$ofile"
11151
11152 else
11153   # If there is no Makefile yet, we rely on a make rule to execute
11154   # `config.status --recheck' to rerun these tests and create the
11155   # libtool script then.
11156   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11157   if test -f "$ltmain_in"; then
11158     test -f Makefile && make "$ltmain"
11159   fi
11160 fi
11161
11162
11163 ac_ext=c
11164 ac_cpp='$CPP $CPPFLAGS'
11165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11168
11169 CC="$lt_save_CC"
11170
11171
11172 # Check whether --with-tags was given.
11173 if test "${with_tags+set}" = set; then
11174   withval=$with_tags; tagnames="$withval"
11175 fi
11176
11177
11178 if test -f "$ltmain" && test -n "$tagnames"; then
11179   if test ! -f "${ofile}"; then
11180     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11181 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11182   fi
11183
11184   if test -z "$LTCC"; then
11185     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11186     if test -z "$LTCC"; then
11187       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11188 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11189     else
11190       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11191 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11192     fi
11193   fi
11194   if test -z "$LTCFLAGS"; then
11195     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11196   fi
11197
11198   # Extract list of available tagged configurations in $ofile.
11199   # Note that this assumes the entire list is on one line.
11200   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11201
11202   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11203   for tagname in $tagnames; do
11204     IFS="$lt_save_ifs"
11205     # Check whether tagname contains only valid characters
11206     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11207     "") ;;
11208     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11209 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11210    { (exit 1); exit 1; }; }
11211         ;;
11212     esac
11213
11214     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11215     then
11216       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11217 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11218    { (exit 1); exit 1; }; }
11219     fi
11220
11221     # Update the list of available tags.
11222     if test -n "$tagname"; then
11223       echo appending configuration tag \"$tagname\" to $ofile
11224
11225       case $tagname in
11226       CXX)
11227         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11228             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11229             (test "X$CXX" != "Xg++"))) ; then
11230           ac_ext=cpp
11231 ac_cpp='$CXXCPP $CPPFLAGS'
11232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11235
11236
11237
11238
11239 archive_cmds_need_lc_CXX=no
11240 allow_undefined_flag_CXX=
11241 always_export_symbols_CXX=no
11242 archive_expsym_cmds_CXX=
11243 export_dynamic_flag_spec_CXX=
11244 hardcode_direct_CXX=no
11245 hardcode_libdir_flag_spec_CXX=
11246 hardcode_libdir_flag_spec_ld_CXX=
11247 hardcode_libdir_separator_CXX=
11248 hardcode_minus_L_CXX=no
11249 hardcode_shlibpath_var_CXX=unsupported
11250 hardcode_automatic_CXX=no
11251 module_cmds_CXX=
11252 module_expsym_cmds_CXX=
11253 link_all_deplibs_CXX=unknown
11254 old_archive_cmds_CXX=$old_archive_cmds
11255 no_undefined_flag_CXX=
11256 whole_archive_flag_spec_CXX=
11257 enable_shared_with_static_runtimes_CXX=no
11258
11259 # Dependencies to place before and after the object being linked:
11260 predep_objects_CXX=
11261 postdep_objects_CXX=
11262 predeps_CXX=
11263 postdeps_CXX=
11264 compiler_lib_search_path_CXX=
11265 compiler_lib_search_dirs_CXX=
11266
11267 # Source file extension for C++ test sources.
11268 ac_ext=cpp
11269
11270 # Object file extension for compiled C++ test sources.
11271 objext=o
11272 objext_CXX=$objext
11273
11274 # Code to be used in simple compile tests
11275 lt_simple_compile_test_code="int some_variable = 0;"
11276
11277 # Code to be used in simple link tests
11278 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11279
11280 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11281
11282 # If no C compiler was specified, use CC.
11283 LTCC=${LTCC-"$CC"}
11284
11285 # If no C compiler flags were specified, use CFLAGS.
11286 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11287
11288 # Allow CC to be a program name with arguments.
11289 compiler=$CC
11290
11291
11292 # save warnings/boilerplate of simple test code
11293 ac_outfile=conftest.$ac_objext
11294 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11296 _lt_compiler_boilerplate=`cat conftest.err`
11297 $rm conftest*
11298
11299 ac_outfile=conftest.$ac_objext
11300 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11302 _lt_linker_boilerplate=`cat conftest.err`
11303 $rm -r conftest*
11304
11305
11306 # Allow CC to be a program name with arguments.
11307 lt_save_CC=$CC
11308 lt_save_LD=$LD
11309 lt_save_GCC=$GCC
11310 GCC=$GXX
11311 lt_save_with_gnu_ld=$with_gnu_ld
11312 lt_save_path_LD=$lt_cv_path_LD
11313 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11314   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11315 else
11316   $as_unset lt_cv_prog_gnu_ld
11317 fi
11318 if test -n "${lt_cv_path_LDCXX+set}"; then
11319   lt_cv_path_LD=$lt_cv_path_LDCXX
11320 else
11321   $as_unset lt_cv_path_LD
11322 fi
11323 test -z "${LDCXX+set}" || LD=$LDCXX
11324 CC=${CXX-"c++"}
11325 compiler=$CC
11326 compiler_CXX=$CC
11327 for cc_temp in $compiler""; do
11328   case $cc_temp in
11329     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11330     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11331     \-*) ;;
11332     *) break;;
11333   esac
11334 done
11335 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11336
11337
11338 # We don't want -fno-exception wen compiling C++ code, so set the
11339 # no_builtin_flag separately
11340 if test "$GXX" = yes; then
11341   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11342 else
11343   lt_prog_compiler_no_builtin_flag_CXX=
11344 fi
11345
11346 if test "$GXX" = yes; then
11347   # Set up default GNU C++ configuration
11348
11349
11350 # Check whether --with-gnu-ld was given.
11351 if test "${with_gnu_ld+set}" = set; then
11352   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11353 else
11354   with_gnu_ld=no
11355 fi
11356
11357 ac_prog=ld
11358 if test "$GCC" = yes; then
11359   # Check if gcc -print-prog-name=ld gives a path.
11360   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11361 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11362   case $host in
11363   *-*-mingw*)
11364     # gcc leaves a trailing carriage return which upsets mingw
11365     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11366   *)
11367     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11368   esac
11369   case $ac_prog in
11370     # Accept absolute paths.
11371     [\\/]* | ?:[\\/]*)
11372       re_direlt='/[^/][^/]*/\.\./'
11373       # Canonicalize the pathname of ld
11374       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11375       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11376         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11377       done
11378       test -z "$LD" && LD="$ac_prog"
11379       ;;
11380   "")
11381     # If it fails, then pretend we aren't using GCC.
11382     ac_prog=ld
11383     ;;
11384   *)
11385     # If it is relative, then search for the first ld in PATH.
11386     with_gnu_ld=unknown
11387     ;;
11388   esac
11389 elif test "$with_gnu_ld" = yes; then
11390   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11391 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11392 else
11393   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11394 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11395 fi
11396 if test "${lt_cv_path_LD+set}" = set; then
11397   echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399   if test -z "$LD"; then
11400   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11401   for ac_dir in $PATH; do
11402     IFS="$lt_save_ifs"
11403     test -z "$ac_dir" && ac_dir=.
11404     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11405       lt_cv_path_LD="$ac_dir/$ac_prog"
11406       # Check to see if the program is GNU ld.  I'd rather use --version,
11407       # but apparently some variants of GNU ld only accept -v.
11408       # Break only if it was the GNU/non-GNU ld that we prefer.
11409       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11410       *GNU* | *'with BFD'*)
11411         test "$with_gnu_ld" != no && break
11412         ;;
11413       *)
11414         test "$with_gnu_ld" != yes && break
11415         ;;
11416       esac
11417     fi
11418   done
11419   IFS="$lt_save_ifs"
11420 else
11421   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11422 fi
11423 fi
11424
11425 LD="$lt_cv_path_LD"
11426 if test -n "$LD"; then
11427   { echo "$as_me:$LINENO: result: $LD" >&5
11428 echo "${ECHO_T}$LD" >&6; }
11429 else
11430   { echo "$as_me:$LINENO: result: no" >&5
11431 echo "${ECHO_T}no" >&6; }
11432 fi
11433 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11434 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11435    { (exit 1); exit 1; }; }
11436 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11437 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11438 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11439   echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11442 case `$LD -v 2>&1 </dev/null` in
11443 *GNU* | *'with BFD'*)
11444   lt_cv_prog_gnu_ld=yes
11445   ;;
11446 *)
11447   lt_cv_prog_gnu_ld=no
11448   ;;
11449 esac
11450 fi
11451 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11452 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11453 with_gnu_ld=$lt_cv_prog_gnu_ld
11454
11455
11456
11457   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11458   # archiving commands below assume that GNU ld is being used.
11459   if test "$with_gnu_ld" = yes; then
11460     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11461     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'
11462
11463     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11464     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11465
11466     # If archive_cmds runs LD, not CC, wlarc should be empty
11467     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11468     #     investigate it a little bit more. (MM)
11469     wlarc='${wl}'
11470
11471     # ancient GNU ld didn't support --whole-archive et. al.
11472     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11473         grep 'no-whole-archive' > /dev/null; then
11474       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11475     else
11476       whole_archive_flag_spec_CXX=
11477     fi
11478   else
11479     with_gnu_ld=no
11480     wlarc=
11481
11482     # A generic and very simple default shared library creation
11483     # command for GNU C++ for the case where it uses the native
11484     # linker, instead of GNU ld.  If possible, this setting should
11485     # overridden to take advantage of the native linker features on
11486     # the platform it is being used on.
11487     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11488   fi
11489
11490   # Commands to make compiler produce verbose output that lists
11491   # what "hidden" libraries, object files and flags are used when
11492   # linking a shared library.
11493   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11494
11495 else
11496   GXX=no
11497   with_gnu_ld=no
11498   wlarc=
11499 fi
11500
11501 # PORTME: fill in a description of your system's C++ link characteristics
11502 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11503 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11504 ld_shlibs_CXX=yes
11505 case $host_os in
11506   aix3*)
11507     # FIXME: insert proper C++ library support
11508     ld_shlibs_CXX=no
11509     ;;
11510   aix[4-9]*)
11511     if test "$host_cpu" = ia64; then
11512       # On IA64, the linker does run time linking by default, so we don't
11513       # have to do anything special.
11514       aix_use_runtimelinking=no
11515       exp_sym_flag='-Bexport'
11516       no_entry_flag=""
11517     else
11518       aix_use_runtimelinking=no
11519
11520       # Test if we are trying to use run time linking or normal
11521       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11522       # need to do runtime linking.
11523       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11524         for ld_flag in $LDFLAGS; do
11525           case $ld_flag in
11526           *-brtl*)
11527             aix_use_runtimelinking=yes
11528             break
11529             ;;
11530           esac
11531         done
11532         ;;
11533       esac
11534
11535       exp_sym_flag='-bexport'
11536       no_entry_flag='-bnoentry'
11537     fi
11538
11539     # When large executables or shared objects are built, AIX ld can
11540     # have problems creating the table of contents.  If linking a library
11541     # or program results in "error TOC overflow" add -mminimal-toc to
11542     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11543     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11544
11545     archive_cmds_CXX=''
11546     hardcode_direct_CXX=yes
11547     hardcode_libdir_separator_CXX=':'
11548     link_all_deplibs_CXX=yes
11549
11550     if test "$GXX" = yes; then
11551       case $host_os in aix4.[012]|aix4.[012].*)
11552       # We only want to do this on AIX 4.2 and lower, the check
11553       # below for broken collect2 doesn't work under 4.3+
11554         collect2name=`${CC} -print-prog-name=collect2`
11555         if test -f "$collect2name" && \
11556            strings "$collect2name" | grep resolve_lib_name >/dev/null
11557         then
11558           # We have reworked collect2
11559           :
11560         else
11561           # We have old collect2
11562           hardcode_direct_CXX=unsupported
11563           # It fails to find uninstalled libraries when the uninstalled
11564           # path is not listed in the libpath.  Setting hardcode_minus_L
11565           # to unsupported forces relinking
11566           hardcode_minus_L_CXX=yes
11567           hardcode_libdir_flag_spec_CXX='-L$libdir'
11568           hardcode_libdir_separator_CXX=
11569         fi
11570         ;;
11571       esac
11572       shared_flag='-shared'
11573       if test "$aix_use_runtimelinking" = yes; then
11574         shared_flag="$shared_flag "'${wl}-G'
11575       fi
11576     else
11577       # not using gcc
11578       if test "$host_cpu" = ia64; then
11579         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11580         # chokes on -Wl,-G. The following line is correct:
11581         shared_flag='-G'
11582       else
11583         if test "$aix_use_runtimelinking" = yes; then
11584           shared_flag='${wl}-G'
11585         else
11586           shared_flag='${wl}-bM:SRE'
11587         fi
11588       fi
11589     fi
11590
11591     # It seems that -bexpall does not export symbols beginning with
11592     # underscore (_), so it is better to generate a list of symbols to export.
11593     always_export_symbols_CXX=yes
11594     if test "$aix_use_runtimelinking" = yes; then
11595       # Warning - without using the other runtime loading flags (-brtl),
11596       # -berok will link without error, but may produce a broken library.
11597       allow_undefined_flag_CXX='-berok'
11598       # Determine the default libpath from the value encoded in an empty executable.
11599       cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h.  */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h.  */
11605
11606 int
11607 main ()
11608 {
11609
11610   ;
11611   return 0;
11612 }
11613 _ACEOF
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618   *) ac_try_echo=$ac_try;;
11619 esac
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621   (eval "$ac_link") 2>conftest.er1
11622   ac_status=$?
11623   grep -v '^ *+' conftest.er1 >conftest.err
11624   rm -f conftest.er1
11625   cat conftest.err >&5
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); } && {
11628          test -z "$ac_cxx_werror_flag" ||
11629          test ! -s conftest.err
11630        } && test -s conftest$ac_exeext &&
11631        $as_test_x conftest$ac_exeext; then
11632
11633 lt_aix_libpath_sed='
11634     /Import File Strings/,/^$/ {
11635         /^0/ {
11636             s/^0  *\(.*\)$/\1/
11637             p
11638         }
11639     }'
11640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11641 # Check for a 64-bit object if we didn't find anything.
11642 if test -z "$aix_libpath"; then
11643   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11644 fi
11645 else
11646   echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649
11650 fi
11651
11652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11653       conftest$ac_exeext conftest.$ac_ext
11654 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11655
11656       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11657
11658       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"
11659      else
11660       if test "$host_cpu" = ia64; then
11661         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11662         allow_undefined_flag_CXX="-z nodefs"
11663         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"
11664       else
11665         # Determine the default libpath from the value encoded in an empty executable.
11666         cat >conftest.$ac_ext <<_ACEOF
11667 /* confdefs.h.  */
11668 _ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h.  */
11672
11673 int
11674 main ()
11675 {
11676
11677   ;
11678   return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685   *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688   (eval "$ac_link") 2>conftest.er1
11689   ac_status=$?
11690   grep -v '^ *+' conftest.er1 >conftest.err
11691   rm -f conftest.er1
11692   cat conftest.err >&5
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); } && {
11695          test -z "$ac_cxx_werror_flag" ||
11696          test ! -s conftest.err
11697        } && test -s conftest$ac_exeext &&
11698        $as_test_x conftest$ac_exeext; then
11699
11700 lt_aix_libpath_sed='
11701     /Import File Strings/,/^$/ {
11702         /^0/ {
11703             s/^0  *\(.*\)$/\1/
11704             p
11705         }
11706     }'
11707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11708 # Check for a 64-bit object if we didn't find anything.
11709 if test -z "$aix_libpath"; then
11710   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11711 fi
11712 else
11713   echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11715
11716
11717 fi
11718
11719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11720       conftest$ac_exeext conftest.$ac_ext
11721 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11722
11723         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11724         # Warning - without using the other run time loading flags,
11725         # -berok will link without error, but may produce a broken library.
11726         no_undefined_flag_CXX=' ${wl}-bernotok'
11727         allow_undefined_flag_CXX=' ${wl}-berok'
11728         # Exported symbols can be pulled into shared objects from archives
11729         whole_archive_flag_spec_CXX='$convenience'
11730         archive_cmds_need_lc_CXX=yes
11731         # This is similar to how AIX traditionally builds its shared libraries.
11732         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'
11733       fi
11734     fi
11735     ;;
11736
11737   beos*)
11738     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11739       allow_undefined_flag_CXX=unsupported
11740       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11741       # support --undefined.  This deserves some investigation.  FIXME
11742       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11743     else
11744       ld_shlibs_CXX=no
11745     fi
11746     ;;
11747
11748   chorus*)
11749     case $cc_basename in
11750       *)
11751         # FIXME: insert proper C++ library support
11752         ld_shlibs_CXX=no
11753         ;;
11754     esac
11755     ;;
11756
11757   cygwin* | mingw* | pw32*)
11758     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11759     # as there is no search path for DLLs.
11760     hardcode_libdir_flag_spec_CXX='-L$libdir'
11761     allow_undefined_flag_CXX=unsupported
11762     always_export_symbols_CXX=no
11763     enable_shared_with_static_runtimes_CXX=yes
11764
11765     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11766       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'
11767       # If the export-symbols file already is a .def file (1st line
11768       # is EXPORTS), use it as is; otherwise, prepend...
11769       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11770         cp $export_symbols $output_objdir/$soname.def;
11771       else
11772         echo EXPORTS > $output_objdir/$soname.def;
11773         cat $export_symbols >> $output_objdir/$soname.def;
11774       fi~
11775       $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'
11776     else
11777       ld_shlibs_CXX=no
11778     fi
11779   ;;
11780       darwin* | rhapsody*)
11781       archive_cmds_need_lc_CXX=no
11782       hardcode_direct_CXX=no
11783       hardcode_automatic_CXX=yes
11784       hardcode_shlibpath_var_CXX=unsupported
11785       whole_archive_flag_spec_CXX=''
11786       link_all_deplibs_CXX=yes
11787       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11788       if test "$GXX" = yes ; then
11789       output_verbose_link_cmd='echo'
11790       archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11791       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11792       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11793       module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11794       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11795         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${_lt_dsymutil}"
11796         archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
11797       fi
11798       else
11799       case $cc_basename in
11800         xlc*)
11801          output_verbose_link_cmd='echo'
11802           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11803           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11804           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11805           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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11806           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}'
11807           ;;
11808        *)
11809          ld_shlibs_CXX=no
11810           ;;
11811       esac
11812       fi
11813         ;;
11814
11815   dgux*)
11816     case $cc_basename in
11817       ec++*)
11818         # FIXME: insert proper C++ library support
11819         ld_shlibs_CXX=no
11820         ;;
11821       ghcx*)
11822         # Green Hills C++ Compiler
11823         # FIXME: insert proper C++ library support
11824         ld_shlibs_CXX=no
11825         ;;
11826       *)
11827         # FIXME: insert proper C++ library support
11828         ld_shlibs_CXX=no
11829         ;;
11830     esac
11831     ;;
11832   freebsd[12]*)
11833     # C++ shared libraries reported to be fairly broken before switch to ELF
11834     ld_shlibs_CXX=no
11835     ;;
11836   freebsd-elf*)
11837     archive_cmds_need_lc_CXX=no
11838     ;;
11839   freebsd* | dragonfly*)
11840     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11841     # conventions
11842     ld_shlibs_CXX=yes
11843     ;;
11844   gnu*)
11845     ;;
11846   hpux9*)
11847     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11848     hardcode_libdir_separator_CXX=:
11849     export_dynamic_flag_spec_CXX='${wl}-E'
11850     hardcode_direct_CXX=yes
11851     hardcode_minus_L_CXX=yes # Not in the search PATH,
11852                                 # but as the default
11853                                 # location of the library.
11854
11855     case $cc_basename in
11856     CC*)
11857       # FIXME: insert proper C++ library support
11858       ld_shlibs_CXX=no
11859       ;;
11860     aCC*)
11861       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'
11862       # Commands to make compiler produce verbose output that lists
11863       # what "hidden" libraries, object files and flags are used when
11864       # linking a shared library.
11865       #
11866       # There doesn't appear to be a way to prevent this compiler from
11867       # explicitly linking system object files so we need to strip them
11868       # from the output so that they don't get included in the library
11869       # dependencies.
11870       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'
11871       ;;
11872     *)
11873       if test "$GXX" = yes; then
11874         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'
11875       else
11876         # FIXME: insert proper C++ library support
11877         ld_shlibs_CXX=no
11878       fi
11879       ;;
11880     esac
11881     ;;
11882   hpux10*|hpux11*)
11883     if test $with_gnu_ld = no; then
11884       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11885       hardcode_libdir_separator_CXX=:
11886
11887       case $host_cpu in
11888       hppa*64*|ia64*) ;;
11889       *)
11890         export_dynamic_flag_spec_CXX='${wl}-E'
11891         ;;
11892       esac
11893     fi
11894     case $host_cpu in
11895     hppa*64*|ia64*)
11896       hardcode_direct_CXX=no
11897       hardcode_shlibpath_var_CXX=no
11898       ;;
11899     *)
11900       hardcode_direct_CXX=yes
11901       hardcode_minus_L_CXX=yes # Not in the search PATH,
11902                                               # but as the default
11903                                               # location of the library.
11904       ;;
11905     esac
11906
11907     case $cc_basename in
11908       CC*)
11909         # FIXME: insert proper C++ library support
11910         ld_shlibs_CXX=no
11911         ;;
11912       aCC*)
11913         case $host_cpu in
11914         hppa*64*)
11915           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11916           ;;
11917         ia64*)
11918           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11919           ;;
11920         *)
11921           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11922           ;;
11923         esac
11924         # Commands to make compiler produce verbose output that lists
11925         # what "hidden" libraries, object files and flags are used when
11926         # linking a shared library.
11927         #
11928         # There doesn't appear to be a way to prevent this compiler from
11929         # explicitly linking system object files so we need to strip them
11930         # from the output so that they don't get included in the library
11931         # dependencies.
11932         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'
11933         ;;
11934       *)
11935         if test "$GXX" = yes; then
11936           if test $with_gnu_ld = no; then
11937             case $host_cpu in
11938             hppa*64*)
11939               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11940               ;;
11941             ia64*)
11942               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11943               ;;
11944             *)
11945               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'
11946               ;;
11947             esac
11948           fi
11949         else
11950           # FIXME: insert proper C++ library support
11951           ld_shlibs_CXX=no
11952         fi
11953         ;;
11954     esac
11955     ;;
11956   interix[3-9]*)
11957     hardcode_direct_CXX=no
11958     hardcode_shlibpath_var_CXX=no
11959     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11960     export_dynamic_flag_spec_CXX='${wl}-E'
11961     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11962     # Instead, shared libraries are loaded at an image base (0x10000000 by
11963     # default) and relocated if they conflict, which is a slow very memory
11964     # consuming and fragmenting process.  To avoid this, we pick a random,
11965     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11966     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11967     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'
11968     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'
11969     ;;
11970   irix5* | irix6*)
11971     case $cc_basename in
11972       CC*)
11973         # SGI C++
11974         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'
11975
11976         # Archives containing C++ object files must be created using
11977         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11978         # necessary to make sure instantiated templates are included
11979         # in the archive.
11980         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11981         ;;
11982       *)
11983         if test "$GXX" = yes; then
11984           if test "$with_gnu_ld" = no; then
11985             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'
11986           else
11987             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'
11988           fi
11989         fi
11990         link_all_deplibs_CXX=yes
11991         ;;
11992     esac
11993     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11994     hardcode_libdir_separator_CXX=:
11995     ;;
11996   linux* | k*bsd*-gnu)
11997     case $cc_basename in
11998       KCC*)
11999         # Kuck and Associates, Inc. (KAI) C++ Compiler
12000
12001         # KCC will only create a shared library if the output file
12002         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12003         # to its proper name (with version) after linking.
12004         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'
12005         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'
12006         # Commands to make compiler produce verbose output that lists
12007         # what "hidden" libraries, object files and flags are used when
12008         # linking a shared library.
12009         #
12010         # There doesn't appear to be a way to prevent this compiler from
12011         # explicitly linking system object files so we need to strip them
12012         # from the output so that they don't get included in the library
12013         # dependencies.
12014         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'
12015
12016         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12017         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12018
12019         # Archives containing C++ object files must be created using
12020         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12021         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12022         ;;
12023       icpc*)
12024         # Intel C++
12025         with_gnu_ld=yes
12026         # version 8.0 and above of icpc choke on multiply defined symbols
12027         # if we add $predep_objects and $postdep_objects, however 7.1 and
12028         # earlier do not add the objects themselves.
12029         case `$CC -V 2>&1` in
12030         *"Version 7."*)
12031           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12032           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'
12033           ;;
12034         *)  # Version 8.0 or newer
12035           tmp_idyn=
12036           case $host_cpu in
12037             ia64*) tmp_idyn=' -i_dynamic';;
12038           esac
12039           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12040           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'
12041           ;;
12042         esac
12043         archive_cmds_need_lc_CXX=no
12044         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12045         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12046         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12047         ;;
12048       pgCC* | pgcpp*)
12049         # Portland Group C++ compiler
12050         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12051         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'
12052
12053         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12054         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12055         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'
12056         ;;
12057       cxx*)
12058         # Compaq C++
12059         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12060         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'
12061
12062         runpath_var=LD_RUN_PATH
12063         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12064         hardcode_libdir_separator_CXX=:
12065
12066         # Commands to make compiler produce verbose output that lists
12067         # what "hidden" libraries, object files and flags are used when
12068         # linking a shared library.
12069         #
12070         # There doesn't appear to be a way to prevent this compiler from
12071         # explicitly linking system object files so we need to strip them
12072         # from the output so that they don't get included in the library
12073         # dependencies.
12074         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'
12075         ;;
12076       *)
12077         case `$CC -V 2>&1 | sed 5q` in
12078         *Sun\ C*)
12079           # Sun C++ 5.9
12080           no_undefined_flag_CXX=' -zdefs'
12081           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082           archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12083           hardcode_libdir_flag_spec_CXX='-R$libdir'
12084           whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12085
12086           # Not sure whether something based on
12087           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12088           # would be better.
12089           output_verbose_link_cmd='echo'
12090
12091           # Archives containing C++ object files must be created using
12092           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12093           # necessary to make sure instantiated templates are included
12094           # in the archive.
12095           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12096           ;;
12097         esac
12098         ;;
12099     esac
12100     ;;
12101   lynxos*)
12102     # FIXME: insert proper C++ library support
12103     ld_shlibs_CXX=no
12104     ;;
12105   m88k*)
12106     # FIXME: insert proper C++ library support
12107     ld_shlibs_CXX=no
12108     ;;
12109   mvs*)
12110     case $cc_basename in
12111       cxx*)
12112         # FIXME: insert proper C++ library support
12113         ld_shlibs_CXX=no
12114         ;;
12115       *)
12116         # FIXME: insert proper C++ library support
12117         ld_shlibs_CXX=no
12118         ;;
12119     esac
12120     ;;
12121   netbsd* | netbsdelf*-gnu)
12122     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12123       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12124       wlarc=
12125       hardcode_libdir_flag_spec_CXX='-R$libdir'
12126       hardcode_direct_CXX=yes
12127       hardcode_shlibpath_var_CXX=no
12128     fi
12129     # Workaround some broken pre-1.5 toolchains
12130     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12131     ;;
12132   openbsd2*)
12133     # C++ shared libraries are fairly broken
12134     ld_shlibs_CXX=no
12135     ;;
12136   openbsd*)
12137     if test -f /usr/libexec/ld.so; then
12138       hardcode_direct_CXX=yes
12139       hardcode_shlibpath_var_CXX=no
12140       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12141       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12142       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12143         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12144         export_dynamic_flag_spec_CXX='${wl}-E'
12145         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12146       fi
12147       output_verbose_link_cmd='echo'
12148     else
12149       ld_shlibs_CXX=no
12150     fi
12151     ;;
12152   osf3*)
12153     case $cc_basename in
12154       KCC*)
12155         # Kuck and Associates, Inc. (KAI) C++ Compiler
12156
12157         # KCC will only create a shared library if the output file
12158         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12159         # to its proper name (with version) after linking.
12160         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'
12161
12162         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12163         hardcode_libdir_separator_CXX=:
12164
12165         # Archives containing C++ object files must be created using
12166         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12167         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12168
12169         ;;
12170       RCC*)
12171         # Rational C++ 2.4.1
12172         # FIXME: insert proper C++ library support
12173         ld_shlibs_CXX=no
12174         ;;
12175       cxx*)
12176         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12177         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'
12178
12179         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12180         hardcode_libdir_separator_CXX=:
12181
12182         # Commands to make compiler produce verbose output that lists
12183         # what "hidden" libraries, object files and flags are used when
12184         # linking a shared library.
12185         #
12186         # There doesn't appear to be a way to prevent this compiler from
12187         # explicitly linking system object files so we need to strip them
12188         # from the output so that they don't get included in the library
12189         # dependencies.
12190         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'
12191         ;;
12192       *)
12193         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12194           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12195           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'
12196
12197           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12198           hardcode_libdir_separator_CXX=:
12199
12200           # Commands to make compiler produce verbose output that lists
12201           # what "hidden" libraries, object files and flags are used when
12202           # linking a shared library.
12203           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12204
12205         else
12206           # FIXME: insert proper C++ library support
12207           ld_shlibs_CXX=no
12208         fi
12209         ;;
12210     esac
12211     ;;
12212   osf4* | osf5*)
12213     case $cc_basename in
12214       KCC*)
12215         # Kuck and Associates, Inc. (KAI) C++ Compiler
12216
12217         # KCC will only create a shared library if the output file
12218         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12219         # to its proper name (with version) after linking.
12220         archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12221
12222         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12223         hardcode_libdir_separator_CXX=:
12224
12225         # Archives containing C++ object files must be created using
12226         # the KAI C++ compiler.
12227         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12228         ;;
12229       RCC*)
12230         # Rational C++ 2.4.1
12231         # FIXME: insert proper C++ library support
12232         ld_shlibs_CXX=no
12233         ;;
12234       cxx*)
12235         allow_undefined_flag_CXX=' -expect_unresolved \*'
12236         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'
12237         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12238           echo "-hidden">> $lib.exp~
12239           $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~
12240           $rm $lib.exp'
12241
12242         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12243         hardcode_libdir_separator_CXX=:
12244
12245         # Commands to make compiler produce verbose output that lists
12246         # what "hidden" libraries, object files and flags are used when
12247         # linking a shared library.
12248         #
12249         # There doesn't appear to be a way to prevent this compiler from
12250         # explicitly linking system object files so we need to strip them
12251         # from the output so that they don't get included in the library
12252         # dependencies.
12253         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'
12254         ;;
12255       *)
12256         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12257           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12258          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'
12259
12260           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12261           hardcode_libdir_separator_CXX=:
12262
12263           # Commands to make compiler produce verbose output that lists
12264           # what "hidden" libraries, object files and flags are used when
12265           # linking a shared library.
12266           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12267
12268         else
12269           # FIXME: insert proper C++ library support
12270           ld_shlibs_CXX=no
12271         fi
12272         ;;
12273     esac
12274     ;;
12275   psos*)
12276     # FIXME: insert proper C++ library support
12277     ld_shlibs_CXX=no
12278     ;;
12279   sunos4*)
12280     case $cc_basename in
12281       CC*)
12282         # Sun C++ 4.x
12283         # FIXME: insert proper C++ library support
12284         ld_shlibs_CXX=no
12285         ;;
12286       lcc*)
12287         # Lucid
12288         # FIXME: insert proper C++ library support
12289         ld_shlibs_CXX=no
12290         ;;
12291       *)
12292         # FIXME: insert proper C++ library support
12293         ld_shlibs_CXX=no
12294         ;;
12295     esac
12296     ;;
12297   solaris*)
12298     case $cc_basename in
12299       CC*)
12300         # Sun C++ 4.2, 5.x and Centerline C++
12301         archive_cmds_need_lc_CXX=yes
12302         no_undefined_flag_CXX=' -zdefs'
12303         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12304         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12305         $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'
12306
12307         hardcode_libdir_flag_spec_CXX='-R$libdir'
12308         hardcode_shlibpath_var_CXX=no
12309         case $host_os in
12310           solaris2.[0-5] | solaris2.[0-5].*) ;;
12311           *)
12312             # The compiler driver will combine and reorder linker options,
12313             # but understands `-z linker_flag'.
12314             # Supported since Solaris 2.6 (maybe 2.5.1?)
12315             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12316             ;;
12317         esac
12318         link_all_deplibs_CXX=yes
12319
12320         output_verbose_link_cmd='echo'
12321
12322         # Archives containing C++ object files must be created using
12323         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12324         # necessary to make sure instantiated templates are included
12325         # in the archive.
12326         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12327         ;;
12328       gcx*)
12329         # Green Hills C++ Compiler
12330         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12331
12332         # The C++ compiler must be used to create the archive.
12333         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12334         ;;
12335       *)
12336         # GNU C++ compiler with Solaris linker
12337         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12338           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12339           if $CC --version | grep -v '^2\.7' > /dev/null; then
12340             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12341             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12342                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12343
12344             # Commands to make compiler produce verbose output that lists
12345             # what "hidden" libraries, object files and flags are used when
12346             # linking a shared library.
12347             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12348           else
12349             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12350             # platform.
12351             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12352             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12353                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12354
12355             # Commands to make compiler produce verbose output that lists
12356             # what "hidden" libraries, object files and flags are used when
12357             # linking a shared library.
12358             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12359           fi
12360
12361           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12362           case $host_os in
12363           solaris2.[0-5] | solaris2.[0-5].*) ;;
12364           *)
12365             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12366             ;;
12367           esac
12368         fi
12369         ;;
12370     esac
12371     ;;
12372   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12373     no_undefined_flag_CXX='${wl}-z,text'
12374     archive_cmds_need_lc_CXX=no
12375     hardcode_shlibpath_var_CXX=no
12376     runpath_var='LD_RUN_PATH'
12377
12378     case $cc_basename in
12379       CC*)
12380         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12381         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12382         ;;
12383       *)
12384         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12385         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12386         ;;
12387     esac
12388     ;;
12389   sysv5* | sco3.2v5* | sco5v6*)
12390     # Note: We can NOT use -z defs as we might desire, because we do not
12391     # link with -lc, and that would cause any symbols used from libc to
12392     # always be unresolved, which means just about no library would
12393     # ever link correctly.  If we're not using GNU ld we use -z text
12394     # though, which does catch some bad symbols but isn't as heavy-handed
12395     # as -z defs.
12396     # For security reasons, it is highly recommended that you always
12397     # use absolute paths for naming shared libraries, and exclude the
12398     # DT_RUNPATH tag from executables and libraries.  But doing so
12399     # requires that you compile everything twice, which is a pain.
12400     # So that behaviour is only enabled if SCOABSPATH is set to a
12401     # non-empty value in the environment.  Most likely only useful for
12402     # creating official distributions of packages.
12403     # This is a hack until libtool officially supports absolute path
12404     # names for shared libraries.
12405     no_undefined_flag_CXX='${wl}-z,text'
12406     allow_undefined_flag_CXX='${wl}-z,nodefs'
12407     archive_cmds_need_lc_CXX=no
12408     hardcode_shlibpath_var_CXX=no
12409     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12410     hardcode_libdir_separator_CXX=':'
12411     link_all_deplibs_CXX=yes
12412     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12413     runpath_var='LD_RUN_PATH'
12414
12415     case $cc_basename in
12416       CC*)
12417         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12418         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12419         ;;
12420       *)
12421         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12422         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12423         ;;
12424     esac
12425     ;;
12426   tandem*)
12427     case $cc_basename in
12428       NCC*)
12429         # NonStop-UX NCC 3.20
12430         # FIXME: insert proper C++ library support
12431         ld_shlibs_CXX=no
12432         ;;
12433       *)
12434         # FIXME: insert proper C++ library support
12435         ld_shlibs_CXX=no
12436         ;;
12437     esac
12438     ;;
12439   vxworks*)
12440     # FIXME: insert proper C++ library support
12441     ld_shlibs_CXX=no
12442     ;;
12443   *)
12444     # FIXME: insert proper C++ library support
12445     ld_shlibs_CXX=no
12446     ;;
12447 esac
12448 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12449 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12450 test "$ld_shlibs_CXX" = no && can_build_shared=no
12451
12452 GCC_CXX="$GXX"
12453 LD_CXX="$LD"
12454
12455 cat > conftest.$ac_ext <<EOF
12456 class Foo
12457 {
12458 public:
12459   Foo (void) { a = 0; }
12460 private:
12461   int a;
12462 };
12463 EOF
12464
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466   (eval $ac_compile) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; then
12470   # Parse the compiler output and extract the necessary
12471   # objects, libraries and library flags.
12472
12473   # Sentinel used to keep track of whether or not we are before
12474   # the conftest object file.
12475   pre_test_object_deps_done=no
12476
12477   # The `*' in the case matches for architectures that use `case' in
12478   # $output_verbose_cmd can trigger glob expansion during the loop
12479   # eval without this substitution.
12480   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12481
12482   for p in `eval $output_verbose_link_cmd`; do
12483     case $p in
12484
12485     -L* | -R* | -l*)
12486        # Some compilers place space between "-{L,R}" and the path.
12487        # Remove the space.
12488        if test $p = "-L" \
12489           || test $p = "-R"; then
12490          prev=$p
12491          continue
12492        else
12493          prev=
12494        fi
12495
12496        if test "$pre_test_object_deps_done" = no; then
12497          case $p in
12498          -L* | -R*)
12499            # Internal compiler library paths should come after those
12500            # provided the user.  The postdeps already come after the
12501            # user supplied libs so there is no need to process them.
12502            if test -z "$compiler_lib_search_path_CXX"; then
12503              compiler_lib_search_path_CXX="${prev}${p}"
12504            else
12505              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12506            fi
12507            ;;
12508          # The "-l" case would never come before the object being
12509          # linked, so don't bother handling this case.
12510          esac
12511        else
12512          if test -z "$postdeps_CXX"; then
12513            postdeps_CXX="${prev}${p}"
12514          else
12515            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12516          fi
12517        fi
12518        ;;
12519
12520     *.$objext)
12521        # This assumes that the test object file only shows up
12522        # once in the compiler output.
12523        if test "$p" = "conftest.$objext"; then
12524          pre_test_object_deps_done=yes
12525          continue
12526        fi
12527
12528        if test "$pre_test_object_deps_done" = no; then
12529          if test -z "$predep_objects_CXX"; then
12530            predep_objects_CXX="$p"
12531          else
12532            predep_objects_CXX="$predep_objects_CXX $p"
12533          fi
12534        else
12535          if test -z "$postdep_objects_CXX"; then
12536            postdep_objects_CXX="$p"
12537          else
12538            postdep_objects_CXX="$postdep_objects_CXX $p"
12539          fi
12540        fi
12541        ;;
12542
12543     *) ;; # Ignore the rest.
12544
12545     esac
12546   done
12547
12548   # Clean up.
12549   rm -f a.out a.exe
12550 else
12551   echo "libtool.m4: error: problem compiling CXX test program"
12552 fi
12553
12554 $rm -f confest.$objext
12555
12556 compiler_lib_search_dirs_CXX=
12557 if test -n "$compiler_lib_search_path_CXX"; then
12558   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12559 fi
12560
12561 # PORTME: override above test on systems where it is broken
12562 case $host_os in
12563 interix[3-9]*)
12564   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12565   # hack all around it, let's just trust "g++" to DTRT.
12566   predep_objects_CXX=
12567   postdep_objects_CXX=
12568   postdeps_CXX=
12569   ;;
12570
12571 linux*)
12572   case `$CC -V 2>&1 | sed 5q` in
12573   *Sun\ C*)
12574     # Sun C++ 5.9
12575     #
12576     # The more standards-conforming stlport4 library is
12577     # incompatible with the Cstd library. Avoid specifying
12578     # it if it's in CXXFLAGS. Ignore libCrun as
12579     # -library=stlport4 depends on it.
12580     case " $CXX $CXXFLAGS " in
12581     *" -library=stlport4 "*)
12582       solaris_use_stlport4=yes
12583       ;;
12584     esac
12585     if test "$solaris_use_stlport4" != yes; then
12586       postdeps_CXX='-library=Cstd -library=Crun'
12587     fi
12588     ;;
12589   esac
12590   ;;
12591
12592 solaris*)
12593   case $cc_basename in
12594   CC*)
12595     # The more standards-conforming stlport4 library is
12596     # incompatible with the Cstd library. Avoid specifying
12597     # it if it's in CXXFLAGS. Ignore libCrun as
12598     # -library=stlport4 depends on it.
12599     case " $CXX $CXXFLAGS " in
12600     *" -library=stlport4 "*)
12601       solaris_use_stlport4=yes
12602       ;;
12603     esac
12604
12605     # Adding this requires a known-good setup of shared libraries for
12606     # Sun compiler versions before 5.6, else PIC objects from an old
12607     # archive will be linked into the output, leading to subtle bugs.
12608     if test "$solaris_use_stlport4" != yes; then
12609       postdeps_CXX='-library=Cstd -library=Crun'
12610     fi
12611     ;;
12612   esac
12613   ;;
12614 esac
12615
12616 case " $postdeps_CXX " in
12617 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12618 esac
12619
12620 lt_prog_compiler_wl_CXX=
12621 lt_prog_compiler_pic_CXX=
12622 lt_prog_compiler_static_CXX=
12623
12624 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12626
12627   # C++ specific cases for pic, static, wl, etc.
12628   if test "$GXX" = yes; then
12629     lt_prog_compiler_wl_CXX='-Wl,'
12630     lt_prog_compiler_static_CXX='-static'
12631
12632     case $host_os in
12633     aix*)
12634       # All AIX code is PIC.
12635       if test "$host_cpu" = ia64; then
12636         # AIX 5 now supports IA64 processor
12637         lt_prog_compiler_static_CXX='-Bstatic'
12638       fi
12639       ;;
12640     amigaos*)
12641       # FIXME: we need at least 68020 code to build shared libraries, but
12642       # adding the `-m68020' flag to GCC prevents building anything better,
12643       # like `-m68040'.
12644       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12645       ;;
12646     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12647       # PIC is the default for these OSes.
12648       ;;
12649     mingw* | cygwin* | os2* | pw32*)
12650       # This hack is so that the source file can tell whether it is being
12651       # built for inclusion in a dll (and should export symbols for example).
12652       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12653       # (--disable-auto-import) libraries
12654       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12655       ;;
12656     darwin* | rhapsody*)
12657       # PIC is the default on this platform
12658       # Common symbols not allowed in MH_DYLIB files
12659       lt_prog_compiler_pic_CXX='-fno-common'
12660       ;;
12661     *djgpp*)
12662       # DJGPP does not support shared libraries at all
12663       lt_prog_compiler_pic_CXX=
12664       ;;
12665     interix[3-9]*)
12666       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12667       # Instead, we relocate shared libraries at runtime.
12668       ;;
12669     sysv4*MP*)
12670       if test -d /usr/nec; then
12671         lt_prog_compiler_pic_CXX=-Kconform_pic
12672       fi
12673       ;;
12674     hpux*)
12675       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12676       # not for PA HP-UX.
12677       case $host_cpu in
12678       hppa*64*|ia64*)
12679         ;;
12680       *)
12681         lt_prog_compiler_pic_CXX='-fPIC'
12682         ;;
12683       esac
12684       ;;
12685     *)
12686       lt_prog_compiler_pic_CXX='-fPIC'
12687       ;;
12688     esac
12689   else
12690     case $host_os in
12691       aix[4-9]*)
12692         # All AIX code is PIC.
12693         if test "$host_cpu" = ia64; then
12694           # AIX 5 now supports IA64 processor
12695           lt_prog_compiler_static_CXX='-Bstatic'
12696         else
12697           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12698         fi
12699         ;;
12700       chorus*)
12701         case $cc_basename in
12702         cxch68*)
12703           # Green Hills C++ Compiler
12704           # _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"
12705           ;;
12706         esac
12707         ;;
12708        darwin*)
12709          # PIC is the default on this platform
12710          # Common symbols not allowed in MH_DYLIB files
12711          case $cc_basename in
12712            xlc*)
12713            lt_prog_compiler_pic_CXX='-qnocommon'
12714            lt_prog_compiler_wl_CXX='-Wl,'
12715            ;;
12716          esac
12717        ;;
12718       dgux*)
12719         case $cc_basename in
12720           ec++*)
12721             lt_prog_compiler_pic_CXX='-KPIC'
12722             ;;
12723           ghcx*)
12724             # Green Hills C++ Compiler
12725             lt_prog_compiler_pic_CXX='-pic'
12726             ;;
12727           *)
12728             ;;
12729         esac
12730         ;;
12731       freebsd* | dragonfly*)
12732         # FreeBSD uses GNU C++
12733         ;;
12734       hpux9* | hpux10* | hpux11*)
12735         case $cc_basename in
12736           CC*)
12737             lt_prog_compiler_wl_CXX='-Wl,'
12738             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12739             if test "$host_cpu" != ia64; then
12740               lt_prog_compiler_pic_CXX='+Z'
12741             fi
12742             ;;
12743           aCC*)
12744             lt_prog_compiler_wl_CXX='-Wl,'
12745             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12746             case $host_cpu in
12747             hppa*64*|ia64*)
12748               # +Z the default
12749               ;;
12750             *)
12751               lt_prog_compiler_pic_CXX='+Z'
12752               ;;
12753             esac
12754             ;;
12755           *)
12756             ;;
12757         esac
12758         ;;
12759       interix*)
12760         # This is c89, which is MS Visual C++ (no shared libs)
12761         # Anyone wants to do a port?
12762         ;;
12763       irix5* | irix6* | nonstopux*)
12764         case $cc_basename in
12765           CC*)
12766             lt_prog_compiler_wl_CXX='-Wl,'
12767             lt_prog_compiler_static_CXX='-non_shared'
12768             # CC pic flag -KPIC is the default.
12769             ;;
12770           *)
12771             ;;
12772         esac
12773         ;;
12774       linux* | k*bsd*-gnu)
12775         case $cc_basename in
12776           KCC*)
12777             # KAI C++ Compiler
12778             lt_prog_compiler_wl_CXX='--backend -Wl,'
12779             lt_prog_compiler_pic_CXX='-fPIC'
12780             ;;
12781           icpc* | ecpc*)
12782             # Intel C++
12783             lt_prog_compiler_wl_CXX='-Wl,'
12784             lt_prog_compiler_pic_CXX='-KPIC'
12785             lt_prog_compiler_static_CXX='-static'
12786             ;;
12787           pgCC* | pgcpp*)
12788             # Portland Group C++ compiler.
12789             lt_prog_compiler_wl_CXX='-Wl,'
12790             lt_prog_compiler_pic_CXX='-fpic'
12791             lt_prog_compiler_static_CXX='-Bstatic'
12792             ;;
12793           cxx*)
12794             # Compaq C++
12795             # Make sure the PIC flag is empty.  It appears that all Alpha
12796             # Linux and Compaq Tru64 Unix objects are PIC.
12797             lt_prog_compiler_pic_CXX=
12798             lt_prog_compiler_static_CXX='-non_shared'
12799             ;;
12800           *)
12801             case `$CC -V 2>&1 | sed 5q` in
12802             *Sun\ C*)
12803               # Sun C++ 5.9
12804               lt_prog_compiler_pic_CXX='-KPIC'
12805               lt_prog_compiler_static_CXX='-Bstatic'
12806               lt_prog_compiler_wl_CXX='-Qoption ld '
12807               ;;
12808             esac
12809             ;;
12810         esac
12811         ;;
12812       lynxos*)
12813         ;;
12814       m88k*)
12815         ;;
12816       mvs*)
12817         case $cc_basename in
12818           cxx*)
12819             lt_prog_compiler_pic_CXX='-W c,exportall'
12820             ;;
12821           *)
12822             ;;
12823         esac
12824         ;;
12825       netbsd* | netbsdelf*-gnu)
12826         ;;
12827       osf3* | osf4* | osf5*)
12828         case $cc_basename in
12829           KCC*)
12830             lt_prog_compiler_wl_CXX='--backend -Wl,'
12831             ;;
12832           RCC*)
12833             # Rational C++ 2.4.1
12834             lt_prog_compiler_pic_CXX='-pic'
12835             ;;
12836           cxx*)
12837             # Digital/Compaq C++
12838             lt_prog_compiler_wl_CXX='-Wl,'
12839             # Make sure the PIC flag is empty.  It appears that all Alpha
12840             # Linux and Compaq Tru64 Unix objects are PIC.
12841             lt_prog_compiler_pic_CXX=
12842             lt_prog_compiler_static_CXX='-non_shared'
12843             ;;
12844           *)
12845             ;;
12846         esac
12847         ;;
12848       psos*)
12849         ;;
12850       solaris*)
12851         case $cc_basename in
12852           CC*)
12853             # Sun C++ 4.2, 5.x and Centerline C++
12854             lt_prog_compiler_pic_CXX='-KPIC'
12855             lt_prog_compiler_static_CXX='-Bstatic'
12856             lt_prog_compiler_wl_CXX='-Qoption ld '
12857             ;;
12858           gcx*)
12859             # Green Hills C++ Compiler
12860             lt_prog_compiler_pic_CXX='-PIC'
12861             ;;
12862           *)
12863             ;;
12864         esac
12865         ;;
12866       sunos4*)
12867         case $cc_basename in
12868           CC*)
12869             # Sun C++ 4.x
12870             lt_prog_compiler_pic_CXX='-pic'
12871             lt_prog_compiler_static_CXX='-Bstatic'
12872             ;;
12873           lcc*)
12874             # Lucid
12875             lt_prog_compiler_pic_CXX='-pic'
12876             ;;
12877           *)
12878             ;;
12879         esac
12880         ;;
12881       tandem*)
12882         case $cc_basename in
12883           NCC*)
12884             # NonStop-UX NCC 3.20
12885             lt_prog_compiler_pic_CXX='-KPIC'
12886             ;;
12887           *)
12888             ;;
12889         esac
12890         ;;
12891       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12892         case $cc_basename in
12893           CC*)
12894             lt_prog_compiler_wl_CXX='-Wl,'
12895             lt_prog_compiler_pic_CXX='-KPIC'
12896             lt_prog_compiler_static_CXX='-Bstatic'
12897             ;;
12898         esac
12899         ;;
12900       vxworks*)
12901         ;;
12902       *)
12903         lt_prog_compiler_can_build_shared_CXX=no
12904         ;;
12905     esac
12906   fi
12907
12908 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12909 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12910
12911 #
12912 # Check to make sure the PIC flag actually works.
12913 #
12914 if test -n "$lt_prog_compiler_pic_CXX"; then
12915
12916 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12917 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12918 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12919   echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921   lt_cv_prog_compiler_pic_works_CXX=no
12922   ac_outfile=conftest.$ac_objext
12923    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12924    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12925    # Insert the option either (1) after the last *FLAGS variable, or
12926    # (2) before a word containing "conftest.", or (3) at the end.
12927    # Note that $ac_compile itself does not contain backslashes and begins
12928    # with a dollar sign (not a hyphen), so the echo should work correctly.
12929    # The option is referenced via a variable to avoid confusing sed.
12930    lt_compile=`echo "$ac_compile" | $SED \
12931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12933    -e 's:$: $lt_compiler_flag:'`
12934    (eval echo "\"\$as_me:12934: $lt_compile\"" >&5)
12935    (eval "$lt_compile" 2>conftest.err)
12936    ac_status=$?
12937    cat conftest.err >&5
12938    echo "$as_me:12938: \$? = $ac_status" >&5
12939    if (exit $ac_status) && test -s "$ac_outfile"; then
12940      # The compiler can only warn and ignore the option if not recognized
12941      # So say no if there are warnings other than the usual output.
12942      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12943      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12944      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12945        lt_cv_prog_compiler_pic_works_CXX=yes
12946      fi
12947    fi
12948    $rm conftest*
12949
12950 fi
12951 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12952 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12953
12954 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12955     case $lt_prog_compiler_pic_CXX in
12956      "" | " "*) ;;
12957      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12958      esac
12959 else
12960     lt_prog_compiler_pic_CXX=
12961      lt_prog_compiler_can_build_shared_CXX=no
12962 fi
12963
12964 fi
12965 case $host_os in
12966   # For platforms which do not support PIC, -DPIC is meaningless:
12967   *djgpp*)
12968     lt_prog_compiler_pic_CXX=
12969     ;;
12970   *)
12971     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12972     ;;
12973 esac
12974
12975 #
12976 # Check to make sure the static flag actually works.
12977 #
12978 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12979 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12980 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12981 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12982   echo $ECHO_N "(cached) $ECHO_C" >&6
12983 else
12984   lt_cv_prog_compiler_static_works_CXX=no
12985    save_LDFLAGS="$LDFLAGS"
12986    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12987    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12988    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12989      # The linker can only warn and ignore the option if not recognized
12990      # So say no if there are warnings
12991      if test -s conftest.err; then
12992        # Append any errors to the config.log.
12993        cat conftest.err 1>&5
12994        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12995        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12996        if diff conftest.exp conftest.er2 >/dev/null; then
12997          lt_cv_prog_compiler_static_works_CXX=yes
12998        fi
12999      else
13000        lt_cv_prog_compiler_static_works_CXX=yes
13001      fi
13002    fi
13003    $rm -r conftest*
13004    LDFLAGS="$save_LDFLAGS"
13005
13006 fi
13007 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13008 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13009
13010 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13011     :
13012 else
13013     lt_prog_compiler_static_CXX=
13014 fi
13015
13016
13017 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13018 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13019 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   lt_cv_prog_compiler_c_o_CXX=no
13023    $rm -r conftest 2>/dev/null
13024    mkdir conftest
13025    cd conftest
13026    mkdir out
13027    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13028
13029    lt_compiler_flag="-o out/conftest2.$ac_objext"
13030    # Insert the option either (1) after the last *FLAGS variable, or
13031    # (2) before a word containing "conftest.", or (3) at the end.
13032    # Note that $ac_compile itself does not contain backslashes and begins
13033    # with a dollar sign (not a hyphen), so the echo should work correctly.
13034    lt_compile=`echo "$ac_compile" | $SED \
13035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13037    -e 's:$: $lt_compiler_flag:'`
13038    (eval echo "\"\$as_me:13038: $lt_compile\"" >&5)
13039    (eval "$lt_compile" 2>out/conftest.err)
13040    ac_status=$?
13041    cat out/conftest.err >&5
13042    echo "$as_me:13042: \$? = $ac_status" >&5
13043    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13044    then
13045      # The compiler can only warn and ignore the option if not recognized
13046      # So say no if there are warnings
13047      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13048      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13049      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13050        lt_cv_prog_compiler_c_o_CXX=yes
13051      fi
13052    fi
13053    chmod u+w . 2>&5
13054    $rm conftest*
13055    # SGI C++ compiler will create directory out/ii_files/ for
13056    # template instantiation
13057    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13058    $rm out/* && rmdir out
13059    cd ..
13060    rmdir conftest
13061    $rm conftest*
13062
13063 fi
13064 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13065 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13066
13067
13068 hard_links="nottested"
13069 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13070   # do not overwrite the value of need_locks provided by the user
13071   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13072 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13073   hard_links=yes
13074   $rm conftest*
13075   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13076   touch conftest.a
13077   ln conftest.a conftest.b 2>&5 || hard_links=no
13078   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13079   { echo "$as_me:$LINENO: result: $hard_links" >&5
13080 echo "${ECHO_T}$hard_links" >&6; }
13081   if test "$hard_links" = no; then
13082     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13083 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13084     need_locks=warn
13085   fi
13086 else
13087   need_locks=no
13088 fi
13089
13090 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13091 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13092
13093   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13094   case $host_os in
13095   aix[4-9]*)
13096     # If we're using GNU nm, then we don't want the "-C" option.
13097     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13098     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13099       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'
13100     else
13101       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'
13102     fi
13103     ;;
13104   pw32*)
13105     export_symbols_cmds_CXX="$ltdll_cmds"
13106   ;;
13107   cygwin* | mingw*)
13108     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'
13109   ;;
13110   linux* | k*bsd*-gnu)
13111     link_all_deplibs_CXX=no
13112   ;;
13113   *)
13114     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13115   ;;
13116   esac
13117   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13118
13119 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13120 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13121 test "$ld_shlibs_CXX" = no && can_build_shared=no
13122
13123 #
13124 # Do we need to explicitly link libc?
13125 #
13126 case "x$archive_cmds_need_lc_CXX" in
13127 x|xyes)
13128   # Assume -lc should be added
13129   archive_cmds_need_lc_CXX=yes
13130
13131   if test "$enable_shared" = yes && test "$GCC" = yes; then
13132     case $archive_cmds_CXX in
13133     *'~'*)
13134       # FIXME: we may have to deal with multi-command sequences.
13135       ;;
13136     '$CC '*)
13137       # Test whether the compiler implicitly links with -lc since on some
13138       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13139       # to ld, don't add -lc before -lgcc.
13140       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13141 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13142       $rm conftest*
13143       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13144
13145       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13146   (eval $ac_compile) 2>&5
13147   ac_status=$?
13148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149   (exit $ac_status); } 2>conftest.err; then
13150         soname=conftest
13151         lib=conftest
13152         libobjs=conftest.$ac_objext
13153         deplibs=
13154         wl=$lt_prog_compiler_wl_CXX
13155         pic_flag=$lt_prog_compiler_pic_CXX
13156         compiler_flags=-v
13157         linker_flags=-v
13158         verstring=
13159         output_objdir=.
13160         libname=conftest
13161         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13162         allow_undefined_flag_CXX=
13163         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13164   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }
13168         then
13169           archive_cmds_need_lc_CXX=no
13170         else
13171           archive_cmds_need_lc_CXX=yes
13172         fi
13173         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13174       else
13175         cat conftest.err 1>&5
13176       fi
13177       $rm conftest*
13178       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13179 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13180       ;;
13181     esac
13182   fi
13183   ;;
13184 esac
13185
13186 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13187 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13188 library_names_spec=
13189 libname_spec='lib$name'
13190 soname_spec=
13191 shrext_cmds=".so"
13192 postinstall_cmds=
13193 postuninstall_cmds=
13194 finish_cmds=
13195 finish_eval=
13196 shlibpath_var=
13197 shlibpath_overrides_runpath=unknown
13198 version_type=none
13199 dynamic_linker="$host_os ld.so"
13200 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13201
13202 need_lib_prefix=unknown
13203 hardcode_into_libs=no
13204
13205 # when you set need_version to no, make sure it does not cause -set_version
13206 # flags to be left without arguments
13207 need_version=unknown
13208
13209 case $host_os in
13210 aix3*)
13211   version_type=linux
13212   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13213   shlibpath_var=LIBPATH
13214
13215   # AIX 3 has no versioning support, so we append a major version to the name.
13216   soname_spec='${libname}${release}${shared_ext}$major'
13217   ;;
13218
13219 aix[4-9]*)
13220   version_type=linux
13221   need_lib_prefix=no
13222   need_version=no
13223   hardcode_into_libs=yes
13224   if test "$host_cpu" = ia64; then
13225     # AIX 5 supports IA64
13226     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13227     shlibpath_var=LD_LIBRARY_PATH
13228   else
13229     # With GCC up to 2.95.x, collect2 would create an import file
13230     # for dependence libraries.  The import file would start with
13231     # the line `#! .'.  This would cause the generated library to
13232     # depend on `.', always an invalid library.  This was fixed in
13233     # development snapshots of GCC prior to 3.0.
13234     case $host_os in
13235       aix4 | aix4.[01] | aix4.[01].*)
13236       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13237            echo ' yes '
13238            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13239         :
13240       else
13241         can_build_shared=no
13242       fi
13243       ;;
13244     esac
13245     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13246     # soname into executable. Probably we can add versioning support to
13247     # collect2, so additional links can be useful in future.
13248     if test "$aix_use_runtimelinking" = yes; then
13249       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13250       # instead of lib<name>.a to let people know that these are not
13251       # typical AIX shared libraries.
13252       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13253     else
13254       # We preserve .a as extension for shared libraries through AIX4.2
13255       # and later when we are not doing run time linking.
13256       library_names_spec='${libname}${release}.a $libname.a'
13257       soname_spec='${libname}${release}${shared_ext}$major'
13258     fi
13259     shlibpath_var=LIBPATH
13260   fi
13261   ;;
13262
13263 amigaos*)
13264   library_names_spec='$libname.ixlibrary $libname.a'
13265   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13266   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'
13267   ;;
13268
13269 beos*)
13270   library_names_spec='${libname}${shared_ext}'
13271   dynamic_linker="$host_os ld.so"
13272   shlibpath_var=LIBRARY_PATH
13273   ;;
13274
13275 bsdi[45]*)
13276   version_type=linux
13277   need_version=no
13278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13279   soname_spec='${libname}${release}${shared_ext}$major'
13280   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13281   shlibpath_var=LD_LIBRARY_PATH
13282   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13283   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13284   # the default ld.so.conf also contains /usr/contrib/lib and
13285   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13286   # libtool to hard-code these into programs
13287   ;;
13288
13289 cygwin* | mingw* | pw32*)
13290   version_type=windows
13291   shrext_cmds=".dll"
13292   need_version=no
13293   need_lib_prefix=no
13294
13295   case $GCC,$host_os in
13296   yes,cygwin* | yes,mingw* | yes,pw32*)
13297     library_names_spec='$libname.dll.a'
13298     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13299     postinstall_cmds='base_file=`basename \${file}`~
13300       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13301       dldir=$destdir/`dirname \$dlpath`~
13302       test -d \$dldir || mkdir -p \$dldir~
13303       $install_prog $dir/$dlname \$dldir/$dlname~
13304       chmod a+x \$dldir/$dlname'
13305     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13306       dlpath=$dir/\$dldll~
13307        $rm \$dlpath'
13308     shlibpath_overrides_runpath=yes
13309
13310     case $host_os in
13311     cygwin*)
13312       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13313       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13314       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13315       ;;
13316     mingw*)
13317       # MinGW DLLs use traditional 'lib' prefix
13318       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13319       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13320       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13321         # It is most probably a Windows format PATH printed by
13322         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13323         # path with ; separators, and with drive letters. We can handle the
13324         # drive letters (cygwin fileutils understands them), so leave them,
13325         # especially as we might pass files found there to a mingw objdump,
13326         # which wouldn't understand a cygwinified path. Ahh.
13327         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13328       else
13329         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13330       fi
13331       ;;
13332     pw32*)
13333       # pw32 DLLs use 'pw' prefix rather than 'lib'
13334       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13335       ;;
13336     esac
13337     ;;
13338
13339   *)
13340     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13341     ;;
13342   esac
13343   dynamic_linker='Win32 ld.exe'
13344   # FIXME: first we should search . and the directory the executable is in
13345   shlibpath_var=PATH
13346   ;;
13347
13348 darwin* | rhapsody*)
13349   dynamic_linker="$host_os dyld"
13350   version_type=darwin
13351   need_lib_prefix=no
13352   need_version=no
13353   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13354   soname_spec='${libname}${release}${major}$shared_ext'
13355   shlibpath_overrides_runpath=yes
13356   shlibpath_var=DYLD_LIBRARY_PATH
13357   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13358
13359   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13360   ;;
13361
13362 dgux*)
13363   version_type=linux
13364   need_lib_prefix=no
13365   need_version=no
13366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13367   soname_spec='${libname}${release}${shared_ext}$major'
13368   shlibpath_var=LD_LIBRARY_PATH
13369   ;;
13370
13371 freebsd1*)
13372   dynamic_linker=no
13373   ;;
13374
13375 freebsd* | dragonfly*)
13376   # DragonFly does not have aout.  When/if they implement a new
13377   # versioning mechanism, adjust this.
13378   if test -x /usr/bin/objformat; then
13379     objformat=`/usr/bin/objformat`
13380   else
13381     case $host_os in
13382     freebsd[123]*) objformat=aout ;;
13383     *) objformat=elf ;;
13384     esac
13385   fi
13386   version_type=freebsd-$objformat
13387   case $version_type in
13388     freebsd-elf*)
13389       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13390       need_version=no
13391       need_lib_prefix=no
13392       ;;
13393     freebsd-*)
13394       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13395       need_version=yes
13396       ;;
13397   esac
13398   shlibpath_var=LD_LIBRARY_PATH
13399   case $host_os in
13400   freebsd2*)
13401     shlibpath_overrides_runpath=yes
13402     ;;
13403   freebsd3.[01]* | freebsdelf3.[01]*)
13404     shlibpath_overrides_runpath=yes
13405     hardcode_into_libs=yes
13406     ;;
13407   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13408   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13409     shlibpath_overrides_runpath=no
13410     hardcode_into_libs=yes
13411     ;;
13412   *) # from 4.6 on, and DragonFly
13413     shlibpath_overrides_runpath=yes
13414     hardcode_into_libs=yes
13415     ;;
13416   esac
13417   ;;
13418
13419 gnu*)
13420   version_type=linux
13421   need_lib_prefix=no
13422   need_version=no
13423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13424   soname_spec='${libname}${release}${shared_ext}$major'
13425   shlibpath_var=LD_LIBRARY_PATH
13426   hardcode_into_libs=yes
13427   ;;
13428
13429 hpux9* | hpux10* | hpux11*)
13430   # Give a soname corresponding to the major version so that dld.sl refuses to
13431   # link against other versions.
13432   version_type=sunos
13433   need_lib_prefix=no
13434   need_version=no
13435   case $host_cpu in
13436   ia64*)
13437     shrext_cmds='.so'
13438     hardcode_into_libs=yes
13439     dynamic_linker="$host_os dld.so"
13440     shlibpath_var=LD_LIBRARY_PATH
13441     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13442     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443     soname_spec='${libname}${release}${shared_ext}$major'
13444     if test "X$HPUX_IA64_MODE" = X32; then
13445       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13446     else
13447       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13448     fi
13449     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13450     ;;
13451    hppa*64*)
13452      shrext_cmds='.sl'
13453      hardcode_into_libs=yes
13454      dynamic_linker="$host_os dld.sl"
13455      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13456      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13457      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13458      soname_spec='${libname}${release}${shared_ext}$major'
13459      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13460      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13461      ;;
13462    *)
13463     shrext_cmds='.sl'
13464     dynamic_linker="$host_os dld.sl"
13465     shlibpath_var=SHLIB_PATH
13466     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13468     soname_spec='${libname}${release}${shared_ext}$major'
13469     ;;
13470   esac
13471   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13472   postinstall_cmds='chmod 555 $lib'
13473   ;;
13474
13475 interix[3-9]*)
13476   version_type=linux
13477   need_lib_prefix=no
13478   need_version=no
13479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13480   soname_spec='${libname}${release}${shared_ext}$major'
13481   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13482   shlibpath_var=LD_LIBRARY_PATH
13483   shlibpath_overrides_runpath=no
13484   hardcode_into_libs=yes
13485   ;;
13486
13487 irix5* | irix6* | nonstopux*)
13488   case $host_os in
13489     nonstopux*) version_type=nonstopux ;;
13490     *)
13491         if test "$lt_cv_prog_gnu_ld" = yes; then
13492                 version_type=linux
13493         else
13494                 version_type=irix
13495         fi ;;
13496   esac
13497   need_lib_prefix=no
13498   need_version=no
13499   soname_spec='${libname}${release}${shared_ext}$major'
13500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13501   case $host_os in
13502   irix5* | nonstopux*)
13503     libsuff= shlibsuff=
13504     ;;
13505   *)
13506     case $LD in # libtool.m4 will add one of these switches to LD
13507     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13508       libsuff= shlibsuff= libmagic=32-bit;;
13509     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13510       libsuff=32 shlibsuff=N32 libmagic=N32;;
13511     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13512       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13513     *) libsuff= shlibsuff= libmagic=never-match;;
13514     esac
13515     ;;
13516   esac
13517   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13518   shlibpath_overrides_runpath=no
13519   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13520   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13521   hardcode_into_libs=yes
13522   ;;
13523
13524 # No shared lib support for Linux oldld, aout, or coff.
13525 linux*oldld* | linux*aout* | linux*coff*)
13526   dynamic_linker=no
13527   ;;
13528
13529 # This must be Linux ELF.
13530 linux* | k*bsd*-gnu)
13531   version_type=linux
13532   need_lib_prefix=no
13533   need_version=no
13534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13535   soname_spec='${libname}${release}${shared_ext}$major'
13536   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13537   shlibpath_var=LD_LIBRARY_PATH
13538   shlibpath_overrides_runpath=no
13539   # This implies no fast_install, which is unacceptable.
13540   # Some rework will be needed to allow for fast_install
13541   # before this can be enabled.
13542   hardcode_into_libs=yes
13543
13544   # Append ld.so.conf contents to the search path
13545   if test -f /etc/ld.so.conf; then
13546     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13547     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13548   fi
13549
13550   # We used to test for /lib/ld.so.1 and disable shared libraries on
13551   # powerpc, because MkLinux only supported shared libraries with the
13552   # GNU dynamic linker.  Since this was broken with cross compilers,
13553   # most powerpc-linux boxes support dynamic linking these days and
13554   # people can always --disable-shared, the test was removed, and we
13555   # assume the GNU/Linux dynamic linker is in use.
13556   dynamic_linker='GNU/Linux ld.so'
13557   ;;
13558
13559 netbsdelf*-gnu)
13560   version_type=linux
13561   need_lib_prefix=no
13562   need_version=no
13563   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13564   soname_spec='${libname}${release}${shared_ext}$major'
13565   shlibpath_var=LD_LIBRARY_PATH
13566   shlibpath_overrides_runpath=no
13567   hardcode_into_libs=yes
13568   dynamic_linker='NetBSD ld.elf_so'
13569   ;;
13570
13571 netbsd*)
13572   version_type=sunos
13573   need_lib_prefix=no
13574   need_version=no
13575   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13577     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13578     dynamic_linker='NetBSD (a.out) ld.so'
13579   else
13580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13581     soname_spec='${libname}${release}${shared_ext}$major'
13582     dynamic_linker='NetBSD ld.elf_so'
13583   fi
13584   shlibpath_var=LD_LIBRARY_PATH
13585   shlibpath_overrides_runpath=yes
13586   hardcode_into_libs=yes
13587   ;;
13588
13589 newsos6)
13590   version_type=linux
13591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13592   shlibpath_var=LD_LIBRARY_PATH
13593   shlibpath_overrides_runpath=yes
13594   ;;
13595
13596 nto-qnx*)
13597   version_type=linux
13598   need_lib_prefix=no
13599   need_version=no
13600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13601   soname_spec='${libname}${release}${shared_ext}$major'
13602   shlibpath_var=LD_LIBRARY_PATH
13603   shlibpath_overrides_runpath=yes
13604   ;;
13605
13606 openbsd*)
13607   version_type=sunos
13608   sys_lib_dlsearch_path_spec="/usr/lib"
13609   need_lib_prefix=no
13610   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13611   case $host_os in
13612     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13613     *)                         need_version=no  ;;
13614   esac
13615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13616   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13617   shlibpath_var=LD_LIBRARY_PATH
13618   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13619     case $host_os in
13620       openbsd2.[89] | openbsd2.[89].*)
13621         shlibpath_overrides_runpath=no
13622         ;;
13623       *)
13624         shlibpath_overrides_runpath=yes
13625         ;;
13626       esac
13627   else
13628     shlibpath_overrides_runpath=yes
13629   fi
13630   ;;
13631
13632 os2*)
13633   libname_spec='$name'
13634   shrext_cmds=".dll"
13635   need_lib_prefix=no
13636   library_names_spec='$libname${shared_ext} $libname.a'
13637   dynamic_linker='OS/2 ld.exe'
13638   shlibpath_var=LIBPATH
13639   ;;
13640
13641 osf3* | osf4* | osf5*)
13642   version_type=osf
13643   need_lib_prefix=no
13644   need_version=no
13645   soname_spec='${libname}${release}${shared_ext}$major'
13646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13647   shlibpath_var=LD_LIBRARY_PATH
13648   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13649   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13650   ;;
13651
13652 rdos*)
13653   dynamic_linker=no
13654   ;;
13655
13656 solaris*)
13657   version_type=linux
13658   need_lib_prefix=no
13659   need_version=no
13660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661   soname_spec='${libname}${release}${shared_ext}$major'
13662   shlibpath_var=LD_LIBRARY_PATH
13663   shlibpath_overrides_runpath=yes
13664   hardcode_into_libs=yes
13665   # ldd complains unless libraries are executable
13666   postinstall_cmds='chmod +x $lib'
13667   ;;
13668
13669 sunos4*)
13670   version_type=sunos
13671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13672   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13673   shlibpath_var=LD_LIBRARY_PATH
13674   shlibpath_overrides_runpath=yes
13675   if test "$with_gnu_ld" = yes; then
13676     need_lib_prefix=no
13677   fi
13678   need_version=yes
13679   ;;
13680
13681 sysv4 | sysv4.3*)
13682   version_type=linux
13683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13684   soname_spec='${libname}${release}${shared_ext}$major'
13685   shlibpath_var=LD_LIBRARY_PATH
13686   case $host_vendor in
13687     sni)
13688       shlibpath_overrides_runpath=no
13689       need_lib_prefix=no
13690       export_dynamic_flag_spec='${wl}-Blargedynsym'
13691       runpath_var=LD_RUN_PATH
13692       ;;
13693     siemens)
13694       need_lib_prefix=no
13695       ;;
13696     motorola)
13697       need_lib_prefix=no
13698       need_version=no
13699       shlibpath_overrides_runpath=no
13700       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13701       ;;
13702   esac
13703   ;;
13704
13705 sysv4*MP*)
13706   if test -d /usr/nec ;then
13707     version_type=linux
13708     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13709     soname_spec='$libname${shared_ext}.$major'
13710     shlibpath_var=LD_LIBRARY_PATH
13711   fi
13712   ;;
13713
13714 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13715   version_type=freebsd-elf
13716   need_lib_prefix=no
13717   need_version=no
13718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13719   soname_spec='${libname}${release}${shared_ext}$major'
13720   shlibpath_var=LD_LIBRARY_PATH
13721   hardcode_into_libs=yes
13722   if test "$with_gnu_ld" = yes; then
13723     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13724     shlibpath_overrides_runpath=no
13725   else
13726     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13727     shlibpath_overrides_runpath=yes
13728     case $host_os in
13729       sco3.2v5*)
13730         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13731         ;;
13732     esac
13733   fi
13734   sys_lib_dlsearch_path_spec='/usr/lib'
13735   ;;
13736
13737 uts4*)
13738   version_type=linux
13739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13740   soname_spec='${libname}${release}${shared_ext}$major'
13741   shlibpath_var=LD_LIBRARY_PATH
13742   ;;
13743
13744 *)
13745   dynamic_linker=no
13746   ;;
13747 esac
13748 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13749 echo "${ECHO_T}$dynamic_linker" >&6; }
13750 test "$dynamic_linker" = no && can_build_shared=no
13751
13752 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13753   echo $ECHO_N "(cached) $ECHO_C" >&6
13754 else
13755   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13756 fi
13757
13758 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13759 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13760   echo $ECHO_N "(cached) $ECHO_C" >&6
13761 else
13762   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13763 fi
13764
13765 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13766
13767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13768 if test "$GCC" = yes; then
13769   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13770 fi
13771
13772 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13773 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13774 hardcode_action_CXX=
13775 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13776    test -n "$runpath_var_CXX" || \
13777    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13778
13779   # We can hardcode non-existant directories.
13780   if test "$hardcode_direct_CXX" != no &&
13781      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13782      # have to relink, otherwise we might link with an installed library
13783      # when we should be linking with a yet-to-be-installed one
13784      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13785      test "$hardcode_minus_L_CXX" != no; then
13786     # Linking always hardcodes the temporary library directory.
13787     hardcode_action_CXX=relink
13788   else
13789     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13790     hardcode_action_CXX=immediate
13791   fi
13792 else
13793   # We cannot hardcode anything, or else we can only hardcode existing
13794   # directories.
13795   hardcode_action_CXX=unsupported
13796 fi
13797 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13798 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13799
13800 if test "$hardcode_action_CXX" = relink; then
13801   # Fast installation is not supported
13802   enable_fast_install=no
13803 elif test "$shlibpath_overrides_runpath" = yes ||
13804      test "$enable_shared" = no; then
13805   # Fast installation is not necessary
13806   enable_fast_install=needless
13807 fi
13808
13809
13810 # The else clause should only fire when bootstrapping the
13811 # libtool distribution, otherwise you forgot to ship ltmain.sh
13812 # with your package, and you will get complaints that there are
13813 # no rules to generate ltmain.sh.
13814 if test -f "$ltmain"; then
13815   # See if we are running on zsh, and set the options which allow our commands through
13816   # without removal of \ escapes.
13817   if test -n "${ZSH_VERSION+set}" ; then
13818     setopt NO_GLOB_SUBST
13819   fi
13820   # Now quote all the things that may contain metacharacters while being
13821   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13822   # variables and quote the copies for generation of the libtool script.
13823   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13824     SED SHELL STRIP \
13825     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13826     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13827     deplibs_check_method reload_flag reload_cmds need_locks \
13828     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13829     lt_cv_sys_global_symbol_to_c_name_address \
13830     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13831     old_postinstall_cmds old_postuninstall_cmds \
13832     compiler_CXX \
13833     CC_CXX \
13834     LD_CXX \
13835     lt_prog_compiler_wl_CXX \
13836     lt_prog_compiler_pic_CXX \
13837     lt_prog_compiler_static_CXX \
13838     lt_prog_compiler_no_builtin_flag_CXX \
13839     export_dynamic_flag_spec_CXX \
13840     thread_safe_flag_spec_CXX \
13841     whole_archive_flag_spec_CXX \
13842     enable_shared_with_static_runtimes_CXX \
13843     old_archive_cmds_CXX \
13844     old_archive_from_new_cmds_CXX \
13845     predep_objects_CXX \
13846     postdep_objects_CXX \
13847     predeps_CXX \
13848     postdeps_CXX \
13849     compiler_lib_search_path_CXX \
13850     compiler_lib_search_dirs_CXX \
13851     archive_cmds_CXX \
13852     archive_expsym_cmds_CXX \
13853     postinstall_cmds_CXX \
13854     postuninstall_cmds_CXX \
13855     old_archive_from_expsyms_cmds_CXX \
13856     allow_undefined_flag_CXX \
13857     no_undefined_flag_CXX \
13858     export_symbols_cmds_CXX \
13859     hardcode_libdir_flag_spec_CXX \
13860     hardcode_libdir_flag_spec_ld_CXX \
13861     hardcode_libdir_separator_CXX \
13862     hardcode_automatic_CXX \
13863     module_cmds_CXX \
13864     module_expsym_cmds_CXX \
13865     lt_cv_prog_compiler_c_o_CXX \
13866     fix_srcfile_path_CXX \
13867     exclude_expsyms_CXX \
13868     include_expsyms_CXX; do
13869
13870     case $var in
13871     old_archive_cmds_CXX | \
13872     old_archive_from_new_cmds_CXX | \
13873     archive_cmds_CXX | \
13874     archive_expsym_cmds_CXX | \
13875     module_cmds_CXX | \
13876     module_expsym_cmds_CXX | \
13877     old_archive_from_expsyms_cmds_CXX | \
13878     export_symbols_cmds_CXX | \
13879     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13880     postinstall_cmds | postuninstall_cmds | \
13881     old_postinstall_cmds | old_postuninstall_cmds | \
13882     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13883       # Double-quote double-evaled strings.
13884       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13885       ;;
13886     *)
13887       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13888       ;;
13889     esac
13890   done
13891
13892   case $lt_echo in
13893   *'\$0 --fallback-echo"')
13894     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13895     ;;
13896   esac
13897
13898 cfgfile="$ofile"
13899
13900   cat <<__EOF__ >> "$cfgfile"
13901 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13902
13903 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13904
13905 # Shell to use when invoking shell scripts.
13906 SHELL=$lt_SHELL
13907
13908 # Whether or not to build shared libraries.
13909 build_libtool_libs=$enable_shared
13910
13911 # Whether or not to build static libraries.
13912 build_old_libs=$enable_static
13913
13914 # Whether or not to add -lc for building shared libraries.
13915 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13916
13917 # Whether or not to disallow shared libs when runtime libs are static
13918 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13919
13920 # Whether or not to optimize for fast installation.
13921 fast_install=$enable_fast_install
13922
13923 # The host system.
13924 host_alias=$host_alias
13925 host=$host
13926 host_os=$host_os
13927
13928 # The build system.
13929 build_alias=$build_alias
13930 build=$build
13931 build_os=$build_os
13932
13933 # An echo program that does not interpret backslashes.
13934 echo=$lt_echo
13935
13936 # The archiver.
13937 AR=$lt_AR
13938 AR_FLAGS=$lt_AR_FLAGS
13939
13940 # A C compiler.
13941 LTCC=$lt_LTCC
13942
13943 # LTCC compiler flags.
13944 LTCFLAGS=$lt_LTCFLAGS
13945
13946 # A language-specific compiler.
13947 CC=$lt_compiler_CXX
13948
13949 # Is the compiler the GNU C compiler?
13950 with_gcc=$GCC_CXX
13951
13952 # An ERE matcher.
13953 EGREP=$lt_EGREP
13954
13955 # The linker used to build libraries.
13956 LD=$lt_LD_CXX
13957
13958 # Whether we need hard or soft links.
13959 LN_S=$lt_LN_S
13960
13961 # A BSD-compatible nm program.
13962 NM=$lt_NM
13963
13964 # A symbol stripping program
13965 STRIP=$lt_STRIP
13966
13967 # Used to examine libraries when file_magic_cmd begins "file"
13968 MAGIC_CMD=$MAGIC_CMD
13969
13970 # Used on cygwin: DLL creation program.
13971 DLLTOOL="$DLLTOOL"
13972
13973 # Used on cygwin: object dumper.
13974 OBJDUMP="$OBJDUMP"
13975
13976 # Used on cygwin: assembler.
13977 AS="$AS"
13978
13979 # The name of the directory that contains temporary libtool files.
13980 objdir=$objdir
13981
13982 # How to create reloadable object files.
13983 reload_flag=$lt_reload_flag
13984 reload_cmds=$lt_reload_cmds
13985
13986 # How to pass a linker flag through the compiler.
13987 wl=$lt_lt_prog_compiler_wl_CXX
13988
13989 # Object file suffix (normally "o").
13990 objext="$ac_objext"
13991
13992 # Old archive suffix (normally "a").
13993 libext="$libext"
13994
13995 # Shared library suffix (normally ".so").
13996 shrext_cmds='$shrext_cmds'
13997
13998 # Executable file suffix (normally "").
13999 exeext="$exeext"
14000
14001 # Additional compiler flags for building library objects.
14002 pic_flag=$lt_lt_prog_compiler_pic_CXX
14003 pic_mode=$pic_mode
14004
14005 # What is the maximum length of a command?
14006 max_cmd_len=$lt_cv_sys_max_cmd_len
14007
14008 # Does compiler simultaneously support -c and -o options?
14009 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14010
14011 # Must we lock files when doing compilation?
14012 need_locks=$lt_need_locks
14013
14014 # Do we need the lib prefix for modules?
14015 need_lib_prefix=$need_lib_prefix
14016
14017 # Do we need a version for libraries?
14018 need_version=$need_version
14019
14020 # Whether dlopen is supported.
14021 dlopen_support=$enable_dlopen
14022
14023 # Whether dlopen of programs is supported.
14024 dlopen_self=$enable_dlopen_self
14025
14026 # Whether dlopen of statically linked programs is supported.
14027 dlopen_self_static=$enable_dlopen_self_static
14028
14029 # Compiler flag to prevent dynamic linking.
14030 link_static_flag=$lt_lt_prog_compiler_static_CXX
14031
14032 # Compiler flag to turn off builtin functions.
14033 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14034
14035 # Compiler flag to allow reflexive dlopens.
14036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14037
14038 # Compiler flag to generate shared objects directly from archives.
14039 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14040
14041 # Compiler flag to generate thread-safe objects.
14042 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14043
14044 # Library versioning type.
14045 version_type=$version_type
14046
14047 # Format of library name prefix.
14048 libname_spec=$lt_libname_spec
14049
14050 # List of archive names.  First name is the real one, the rest are links.
14051 # The last name is the one that the linker finds with -lNAME.
14052 library_names_spec=$lt_library_names_spec
14053
14054 # The coded name of the library, if different from the real name.
14055 soname_spec=$lt_soname_spec
14056
14057 # Commands used to build and install an old-style archive.
14058 RANLIB=$lt_RANLIB
14059 old_archive_cmds=$lt_old_archive_cmds_CXX
14060 old_postinstall_cmds=$lt_old_postinstall_cmds
14061 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14062
14063 # Create an old-style archive from a shared archive.
14064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14065
14066 # Create a temporary old-style archive to link instead of a shared archive.
14067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14068
14069 # Commands used to build and install a shared archive.
14070 archive_cmds=$lt_archive_cmds_CXX
14071 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14072 postinstall_cmds=$lt_postinstall_cmds
14073 postuninstall_cmds=$lt_postuninstall_cmds
14074
14075 # Commands used to build a loadable module (assumed same as above if empty)
14076 module_cmds=$lt_module_cmds_CXX
14077 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14078
14079 # Commands to strip libraries.
14080 old_striplib=$lt_old_striplib
14081 striplib=$lt_striplib
14082
14083 # Dependencies to place before the objects being linked to create a
14084 # shared library.
14085 predep_objects=$lt_predep_objects_CXX
14086
14087 # Dependencies to place after the objects being linked to create a
14088 # shared library.
14089 postdep_objects=$lt_postdep_objects_CXX
14090
14091 # Dependencies to place before the objects being linked to create a
14092 # shared library.
14093 predeps=$lt_predeps_CXX
14094
14095 # Dependencies to place after the objects being linked to create a
14096 # shared library.
14097 postdeps=$lt_postdeps_CXX
14098
14099 # The directories searched by this compiler when creating a shared
14100 # library
14101 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14102
14103 # The library search path used internally by the compiler when linking
14104 # a shared library.
14105 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14106
14107 # Method to check whether dependent libraries are shared objects.
14108 deplibs_check_method=$lt_deplibs_check_method
14109
14110 # Command to use when deplibs_check_method == file_magic.
14111 file_magic_cmd=$lt_file_magic_cmd
14112
14113 # Flag that allows shared libraries with undefined symbols to be built.
14114 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14115
14116 # Flag that forces no undefined symbols.
14117 no_undefined_flag=$lt_no_undefined_flag_CXX
14118
14119 # Commands used to finish a libtool library installation in a directory.
14120 finish_cmds=$lt_finish_cmds
14121
14122 # Same as above, but a single script fragment to be evaled but not shown.
14123 finish_eval=$lt_finish_eval
14124
14125 # Take the output of nm and produce a listing of raw symbols and C names.
14126 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14127
14128 # Transform the output of nm in a proper C declaration
14129 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14130
14131 # Transform the output of nm in a C name address pair
14132 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14133
14134 # This is the shared library runtime path variable.
14135 runpath_var=$runpath_var
14136
14137 # This is the shared library path variable.
14138 shlibpath_var=$shlibpath_var
14139
14140 # Is shlibpath searched before the hard-coded library search path?
14141 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14142
14143 # How to hardcode a shared library path into an executable.
14144 hardcode_action=$hardcode_action_CXX
14145
14146 # Whether we should hardcode library paths into libraries.
14147 hardcode_into_libs=$hardcode_into_libs
14148
14149 # Flag to hardcode \$libdir into a binary during linking.
14150 # This must work even if \$libdir does not exist.
14151 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14152
14153 # If ld is used when linking, flag to hardcode \$libdir into
14154 # a binary during linking. This must work even if \$libdir does
14155 # not exist.
14156 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14157
14158 # Whether we need a single -rpath flag with a separated argument.
14159 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14160
14161 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14162 # resulting binary.
14163 hardcode_direct=$hardcode_direct_CXX
14164
14165 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14166 # resulting binary.
14167 hardcode_minus_L=$hardcode_minus_L_CXX
14168
14169 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14170 # the resulting binary.
14171 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14172
14173 # Set to yes if building a shared library automatically hardcodes DIR into the library
14174 # and all subsequent libraries and executables linked against it.
14175 hardcode_automatic=$hardcode_automatic_CXX
14176
14177 # Variables whose values should be saved in libtool wrapper scripts and
14178 # restored at relink time.
14179 variables_saved_for_relink="$variables_saved_for_relink"
14180
14181 # Whether libtool must link a program against all its dependency libraries.
14182 link_all_deplibs=$link_all_deplibs_CXX
14183
14184 # Compile-time system search path for libraries
14185 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14186
14187 # Run-time system search path for libraries
14188 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14189
14190 # Fix the shell variable \$srcfile for the compiler.
14191 fix_srcfile_path=$lt_fix_srcfile_path
14192
14193 # Set to yes if exported symbols are required.
14194 always_export_symbols=$always_export_symbols_CXX
14195
14196 # The commands to list exported symbols.
14197 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14198
14199 # The commands to extract the exported symbol list from a shared archive.
14200 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14201
14202 # Symbols that should not be listed in the preloaded symbols.
14203 exclude_expsyms=$lt_exclude_expsyms_CXX
14204
14205 # Symbols that must always be exported.
14206 include_expsyms=$lt_include_expsyms_CXX
14207
14208 # ### END LIBTOOL TAG CONFIG: $tagname
14209
14210 __EOF__
14211
14212
14213 else
14214   # If there is no Makefile yet, we rely on a make rule to execute
14215   # `config.status --recheck' to rerun these tests and create the
14216   # libtool script then.
14217   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14218   if test -f "$ltmain_in"; then
14219     test -f Makefile && make "$ltmain"
14220   fi
14221 fi
14222
14223
14224 ac_ext=c
14225 ac_cpp='$CPP $CPPFLAGS'
14226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14229
14230 CC=$lt_save_CC
14231 LDCXX=$LD
14232 LD=$lt_save_LD
14233 GCC=$lt_save_GCC
14234 with_gnu_ldcxx=$with_gnu_ld
14235 with_gnu_ld=$lt_save_with_gnu_ld
14236 lt_cv_path_LDCXX=$lt_cv_path_LD
14237 lt_cv_path_LD=$lt_save_path_LD
14238 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14239 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14240
14241         else
14242           tagname=""
14243         fi
14244         ;;
14245
14246       F77)
14247         if test -n "$F77" && test "X$F77" != "Xno"; then
14248
14249 ac_ext=f
14250 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14251 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14252 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14253
14254
14255 archive_cmds_need_lc_F77=no
14256 allow_undefined_flag_F77=
14257 always_export_symbols_F77=no
14258 archive_expsym_cmds_F77=
14259 export_dynamic_flag_spec_F77=
14260 hardcode_direct_F77=no
14261 hardcode_libdir_flag_spec_F77=
14262 hardcode_libdir_flag_spec_ld_F77=
14263 hardcode_libdir_separator_F77=
14264 hardcode_minus_L_F77=no
14265 hardcode_automatic_F77=no
14266 module_cmds_F77=
14267 module_expsym_cmds_F77=
14268 link_all_deplibs_F77=unknown
14269 old_archive_cmds_F77=$old_archive_cmds
14270 no_undefined_flag_F77=
14271 whole_archive_flag_spec_F77=
14272 enable_shared_with_static_runtimes_F77=no
14273
14274 # Source file extension for f77 test sources.
14275 ac_ext=f
14276
14277 # Object file extension for compiled f77 test sources.
14278 objext=o
14279 objext_F77=$objext
14280
14281 # Code to be used in simple compile tests
14282 lt_simple_compile_test_code="\
14283       subroutine t
14284       return
14285       end
14286 "
14287
14288 # Code to be used in simple link tests
14289 lt_simple_link_test_code="\
14290       program t
14291       end
14292 "
14293
14294 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14295
14296 # If no C compiler was specified, use CC.
14297 LTCC=${LTCC-"$CC"}
14298
14299 # If no C compiler flags were specified, use CFLAGS.
14300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14301
14302 # Allow CC to be a program name with arguments.
14303 compiler=$CC
14304
14305
14306 # save warnings/boilerplate of simple test code
14307 ac_outfile=conftest.$ac_objext
14308 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14309 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14310 _lt_compiler_boilerplate=`cat conftest.err`
14311 $rm conftest*
14312
14313 ac_outfile=conftest.$ac_objext
14314 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14315 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14316 _lt_linker_boilerplate=`cat conftest.err`
14317 $rm -r conftest*
14318
14319
14320 # Allow CC to be a program name with arguments.
14321 lt_save_CC="$CC"
14322 CC=${F77-"f77"}
14323 compiler=$CC
14324 compiler_F77=$CC
14325 for cc_temp in $compiler""; do
14326   case $cc_temp in
14327     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14328     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14329     \-*) ;;
14330     *) break;;
14331   esac
14332 done
14333 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14334
14335
14336 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14337 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14338 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14339 echo "${ECHO_T}$can_build_shared" >&6; }
14340
14341 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14342 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14343 test "$can_build_shared" = "no" && enable_shared=no
14344
14345 # On AIX, shared libraries and static libraries use the same namespace, and
14346 # are all built from PIC.
14347 case $host_os in
14348 aix3*)
14349   test "$enable_shared" = yes && enable_static=no
14350   if test -n "$RANLIB"; then
14351     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14352     postinstall_cmds='$RANLIB $lib'
14353   fi
14354   ;;
14355 aix[4-9]*)
14356   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14357     test "$enable_shared" = yes && enable_static=no
14358   fi
14359   ;;
14360 esac
14361 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14362 echo "${ECHO_T}$enable_shared" >&6; }
14363
14364 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14365 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14366 # Make sure either enable_shared or enable_static is yes.
14367 test "$enable_shared" = yes || enable_static=yes
14368 { echo "$as_me:$LINENO: result: $enable_static" >&5
14369 echo "${ECHO_T}$enable_static" >&6; }
14370
14371 GCC_F77="$G77"
14372 LD_F77="$LD"
14373
14374 lt_prog_compiler_wl_F77=
14375 lt_prog_compiler_pic_F77=
14376 lt_prog_compiler_static_F77=
14377
14378 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14379 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14380
14381   if test "$GCC" = yes; then
14382     lt_prog_compiler_wl_F77='-Wl,'
14383     lt_prog_compiler_static_F77='-static'
14384
14385     case $host_os in
14386       aix*)
14387       # All AIX code is PIC.
14388       if test "$host_cpu" = ia64; then
14389         # AIX 5 now supports IA64 processor
14390         lt_prog_compiler_static_F77='-Bstatic'
14391       fi
14392       ;;
14393
14394     amigaos*)
14395       # FIXME: we need at least 68020 code to build shared libraries, but
14396       # adding the `-m68020' flag to GCC prevents building anything better,
14397       # like `-m68040'.
14398       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14399       ;;
14400
14401     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14402       # PIC is the default for these OSes.
14403       ;;
14404
14405     mingw* | cygwin* | pw32* | os2*)
14406       # This hack is so that the source file can tell whether it is being
14407       # built for inclusion in a dll (and should export symbols for example).
14408       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14409       # (--disable-auto-import) libraries
14410       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14411       ;;
14412
14413     darwin* | rhapsody*)
14414       # PIC is the default on this platform
14415       # Common symbols not allowed in MH_DYLIB files
14416       lt_prog_compiler_pic_F77='-fno-common'
14417       ;;
14418
14419     interix[3-9]*)
14420       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14421       # Instead, we relocate shared libraries at runtime.
14422       ;;
14423
14424     msdosdjgpp*)
14425       # Just because we use GCC doesn't mean we suddenly get shared libraries
14426       # on systems that don't support them.
14427       lt_prog_compiler_can_build_shared_F77=no
14428       enable_shared=no
14429       ;;
14430
14431     sysv4*MP*)
14432       if test -d /usr/nec; then
14433         lt_prog_compiler_pic_F77=-Kconform_pic
14434       fi
14435       ;;
14436
14437     hpux*)
14438       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14439       # not for PA HP-UX.
14440       case $host_cpu in
14441       hppa*64*|ia64*)
14442         # +Z the default
14443         ;;
14444       *)
14445         lt_prog_compiler_pic_F77='-fPIC'
14446         ;;
14447       esac
14448       ;;
14449
14450     *)
14451       lt_prog_compiler_pic_F77='-fPIC'
14452       ;;
14453     esac
14454   else
14455     # PORTME Check for flag to pass linker flags through the system compiler.
14456     case $host_os in
14457     aix*)
14458       lt_prog_compiler_wl_F77='-Wl,'
14459       if test "$host_cpu" = ia64; then
14460         # AIX 5 now supports IA64 processor
14461         lt_prog_compiler_static_F77='-Bstatic'
14462       else
14463         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14464       fi
14465       ;;
14466       darwin*)
14467         # PIC is the default on this platform
14468         # Common symbols not allowed in MH_DYLIB files
14469        case $cc_basename in
14470          xlc*)
14471          lt_prog_compiler_pic_F77='-qnocommon'
14472          lt_prog_compiler_wl_F77='-Wl,'
14473          ;;
14474        esac
14475        ;;
14476
14477     mingw* | cygwin* | pw32* | os2*)
14478       # This hack is so that the source file can tell whether it is being
14479       # built for inclusion in a dll (and should export symbols for example).
14480       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14481       ;;
14482
14483     hpux9* | hpux10* | hpux11*)
14484       lt_prog_compiler_wl_F77='-Wl,'
14485       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14486       # not for PA HP-UX.
14487       case $host_cpu in
14488       hppa*64*|ia64*)
14489         # +Z the default
14490         ;;
14491       *)
14492         lt_prog_compiler_pic_F77='+Z'
14493         ;;
14494       esac
14495       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14496       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14497       ;;
14498
14499     irix5* | irix6* | nonstopux*)
14500       lt_prog_compiler_wl_F77='-Wl,'
14501       # PIC (with -KPIC) is the default.
14502       lt_prog_compiler_static_F77='-non_shared'
14503       ;;
14504
14505     newsos6)
14506       lt_prog_compiler_pic_F77='-KPIC'
14507       lt_prog_compiler_static_F77='-Bstatic'
14508       ;;
14509
14510     linux* | k*bsd*-gnu)
14511       case $cc_basename in
14512       icc* | ecc*)
14513         lt_prog_compiler_wl_F77='-Wl,'
14514         lt_prog_compiler_pic_F77='-KPIC'
14515         lt_prog_compiler_static_F77='-static'
14516         ;;
14517       pgcc* | pgf77* | pgf90* | pgf95*)
14518         # Portland Group compilers (*not* the Pentium gcc compiler,
14519         # which looks to be a dead project)
14520         lt_prog_compiler_wl_F77='-Wl,'
14521         lt_prog_compiler_pic_F77='-fpic'
14522         lt_prog_compiler_static_F77='-Bstatic'
14523         ;;
14524       ccc*)
14525         lt_prog_compiler_wl_F77='-Wl,'
14526         # All Alpha code is PIC.
14527         lt_prog_compiler_static_F77='-non_shared'
14528         ;;
14529       *)
14530         case `$CC -V 2>&1 | sed 5q` in
14531         *Sun\ C*)
14532           # Sun C 5.9
14533           lt_prog_compiler_pic_F77='-KPIC'
14534           lt_prog_compiler_static_F77='-Bstatic'
14535           lt_prog_compiler_wl_F77='-Wl,'
14536           ;;
14537         *Sun\ F*)
14538           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14539           lt_prog_compiler_pic_F77='-KPIC'
14540           lt_prog_compiler_static_F77='-Bstatic'
14541           lt_prog_compiler_wl_F77=''
14542           ;;
14543         esac
14544         ;;
14545       esac
14546       ;;
14547
14548     osf3* | osf4* | osf5*)
14549       lt_prog_compiler_wl_F77='-Wl,'
14550       # All OSF/1 code is PIC.
14551       lt_prog_compiler_static_F77='-non_shared'
14552       ;;
14553
14554     rdos*)
14555       lt_prog_compiler_static_F77='-non_shared'
14556       ;;
14557
14558     solaris*)
14559       lt_prog_compiler_pic_F77='-KPIC'
14560       lt_prog_compiler_static_F77='-Bstatic'
14561       case $cc_basename in
14562       f77* | f90* | f95*)
14563         lt_prog_compiler_wl_F77='-Qoption ld ';;
14564       *)
14565         lt_prog_compiler_wl_F77='-Wl,';;
14566       esac
14567       ;;
14568
14569     sunos4*)
14570       lt_prog_compiler_wl_F77='-Qoption ld '
14571       lt_prog_compiler_pic_F77='-PIC'
14572       lt_prog_compiler_static_F77='-Bstatic'
14573       ;;
14574
14575     sysv4 | sysv4.2uw2* | sysv4.3*)
14576       lt_prog_compiler_wl_F77='-Wl,'
14577       lt_prog_compiler_pic_F77='-KPIC'
14578       lt_prog_compiler_static_F77='-Bstatic'
14579       ;;
14580
14581     sysv4*MP*)
14582       if test -d /usr/nec ;then
14583         lt_prog_compiler_pic_F77='-Kconform_pic'
14584         lt_prog_compiler_static_F77='-Bstatic'
14585       fi
14586       ;;
14587
14588     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14589       lt_prog_compiler_wl_F77='-Wl,'
14590       lt_prog_compiler_pic_F77='-KPIC'
14591       lt_prog_compiler_static_F77='-Bstatic'
14592       ;;
14593
14594     unicos*)
14595       lt_prog_compiler_wl_F77='-Wl,'
14596       lt_prog_compiler_can_build_shared_F77=no
14597       ;;
14598
14599     uts4*)
14600       lt_prog_compiler_pic_F77='-pic'
14601       lt_prog_compiler_static_F77='-Bstatic'
14602       ;;
14603
14604     *)
14605       lt_prog_compiler_can_build_shared_F77=no
14606       ;;
14607     esac
14608   fi
14609
14610 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14611 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14612
14613 #
14614 # Check to make sure the PIC flag actually works.
14615 #
14616 if test -n "$lt_prog_compiler_pic_F77"; then
14617
14618 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14619 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14620 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14621   echo $ECHO_N "(cached) $ECHO_C" >&6
14622 else
14623   lt_cv_prog_compiler_pic_works_F77=no
14624   ac_outfile=conftest.$ac_objext
14625    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14626    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14627    # Insert the option either (1) after the last *FLAGS variable, or
14628    # (2) before a word containing "conftest.", or (3) at the end.
14629    # Note that $ac_compile itself does not contain backslashes and begins
14630    # with a dollar sign (not a hyphen), so the echo should work correctly.
14631    # The option is referenced via a variable to avoid confusing sed.
14632    lt_compile=`echo "$ac_compile" | $SED \
14633    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14634    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14635    -e 's:$: $lt_compiler_flag:'`
14636    (eval echo "\"\$as_me:14636: $lt_compile\"" >&5)
14637    (eval "$lt_compile" 2>conftest.err)
14638    ac_status=$?
14639    cat conftest.err >&5
14640    echo "$as_me:14640: \$? = $ac_status" >&5
14641    if (exit $ac_status) && test -s "$ac_outfile"; then
14642      # The compiler can only warn and ignore the option if not recognized
14643      # So say no if there are warnings other than the usual output.
14644      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14645      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14646      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14647        lt_cv_prog_compiler_pic_works_F77=yes
14648      fi
14649    fi
14650    $rm conftest*
14651
14652 fi
14653 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14654 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14655
14656 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14657     case $lt_prog_compiler_pic_F77 in
14658      "" | " "*) ;;
14659      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14660      esac
14661 else
14662     lt_prog_compiler_pic_F77=
14663      lt_prog_compiler_can_build_shared_F77=no
14664 fi
14665
14666 fi
14667 case $host_os in
14668   # For platforms which do not support PIC, -DPIC is meaningless:
14669   *djgpp*)
14670     lt_prog_compiler_pic_F77=
14671     ;;
14672   *)
14673     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14674     ;;
14675 esac
14676
14677 #
14678 # Check to make sure the static flag actually works.
14679 #
14680 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14681 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14682 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14683 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14684   echo $ECHO_N "(cached) $ECHO_C" >&6
14685 else
14686   lt_cv_prog_compiler_static_works_F77=no
14687    save_LDFLAGS="$LDFLAGS"
14688    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14689    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14690    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14691      # The linker can only warn and ignore the option if not recognized
14692      # So say no if there are warnings
14693      if test -s conftest.err; then
14694        # Append any errors to the config.log.
14695        cat conftest.err 1>&5
14696        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14697        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14698        if diff conftest.exp conftest.er2 >/dev/null; then
14699          lt_cv_prog_compiler_static_works_F77=yes
14700        fi
14701      else
14702        lt_cv_prog_compiler_static_works_F77=yes
14703      fi
14704    fi
14705    $rm -r conftest*
14706    LDFLAGS="$save_LDFLAGS"
14707
14708 fi
14709 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14710 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14711
14712 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14713     :
14714 else
14715     lt_prog_compiler_static_F77=
14716 fi
14717
14718
14719 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14720 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14721 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14722   echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724   lt_cv_prog_compiler_c_o_F77=no
14725    $rm -r conftest 2>/dev/null
14726    mkdir conftest
14727    cd conftest
14728    mkdir out
14729    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14730
14731    lt_compiler_flag="-o out/conftest2.$ac_objext"
14732    # Insert the option either (1) after the last *FLAGS variable, or
14733    # (2) before a word containing "conftest.", or (3) at the end.
14734    # Note that $ac_compile itself does not contain backslashes and begins
14735    # with a dollar sign (not a hyphen), so the echo should work correctly.
14736    lt_compile=`echo "$ac_compile" | $SED \
14737    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14738    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14739    -e 's:$: $lt_compiler_flag:'`
14740    (eval echo "\"\$as_me:14740: $lt_compile\"" >&5)
14741    (eval "$lt_compile" 2>out/conftest.err)
14742    ac_status=$?
14743    cat out/conftest.err >&5
14744    echo "$as_me:14744: \$? = $ac_status" >&5
14745    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14746    then
14747      # The compiler can only warn and ignore the option if not recognized
14748      # So say no if there are warnings
14749      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14750      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14751      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14752        lt_cv_prog_compiler_c_o_F77=yes
14753      fi
14754    fi
14755    chmod u+w . 2>&5
14756    $rm conftest*
14757    # SGI C++ compiler will create directory out/ii_files/ for
14758    # template instantiation
14759    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14760    $rm out/* && rmdir out
14761    cd ..
14762    rmdir conftest
14763    $rm conftest*
14764
14765 fi
14766 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14767 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14768
14769
14770 hard_links="nottested"
14771 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14772   # do not overwrite the value of need_locks provided by the user
14773   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14774 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14775   hard_links=yes
14776   $rm conftest*
14777   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14778   touch conftest.a
14779   ln conftest.a conftest.b 2>&5 || hard_links=no
14780   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14781   { echo "$as_me:$LINENO: result: $hard_links" >&5
14782 echo "${ECHO_T}$hard_links" >&6; }
14783   if test "$hard_links" = no; then
14784     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14785 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14786     need_locks=warn
14787   fi
14788 else
14789   need_locks=no
14790 fi
14791
14792 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14793 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14794
14795   runpath_var=
14796   allow_undefined_flag_F77=
14797   enable_shared_with_static_runtimes_F77=no
14798   archive_cmds_F77=
14799   archive_expsym_cmds_F77=
14800   old_archive_From_new_cmds_F77=
14801   old_archive_from_expsyms_cmds_F77=
14802   export_dynamic_flag_spec_F77=
14803   whole_archive_flag_spec_F77=
14804   thread_safe_flag_spec_F77=
14805   hardcode_libdir_flag_spec_F77=
14806   hardcode_libdir_flag_spec_ld_F77=
14807   hardcode_libdir_separator_F77=
14808   hardcode_direct_F77=no
14809   hardcode_minus_L_F77=no
14810   hardcode_shlibpath_var_F77=unsupported
14811   link_all_deplibs_F77=unknown
14812   hardcode_automatic_F77=no
14813   module_cmds_F77=
14814   module_expsym_cmds_F77=
14815   always_export_symbols_F77=no
14816   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14817   # include_expsyms should be a list of space-separated symbols to be *always*
14818   # included in the symbol list
14819   include_expsyms_F77=
14820   # exclude_expsyms can be an extended regexp of symbols to exclude
14821   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14822   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14823   # as well as any symbol that contains `d'.
14824   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14825   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14826   # platforms (ab)use it in PIC code, but their linkers get confused if
14827   # the symbol is explicitly referenced.  Since portable code cannot
14828   # rely on this symbol name, it's probably fine to never include it in
14829   # preloaded symbol tables.
14830   # Exclude shared library initialization/finalization symbols.
14831   extract_expsyms_cmds=
14832   # Just being paranoid about ensuring that cc_basename is set.
14833   for cc_temp in $compiler""; do
14834   case $cc_temp in
14835     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14836     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14837     \-*) ;;
14838     *) break;;
14839   esac
14840 done
14841 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14842
14843   case $host_os in
14844   cygwin* | mingw* | pw32*)
14845     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14846     # When not using gcc, we currently assume that we are using
14847     # Microsoft Visual C++.
14848     if test "$GCC" != yes; then
14849       with_gnu_ld=no
14850     fi
14851     ;;
14852   interix*)
14853     # we just hope/assume this is gcc and not c89 (= MSVC++)
14854     with_gnu_ld=yes
14855     ;;
14856   openbsd*)
14857     with_gnu_ld=no
14858     ;;
14859   esac
14860
14861   ld_shlibs_F77=yes
14862   if test "$with_gnu_ld" = yes; then
14863     # If archive_cmds runs LD, not CC, wlarc should be empty
14864     wlarc='${wl}'
14865
14866     # Set some defaults for GNU ld with shared library support. These
14867     # are reset later if shared libraries are not supported. Putting them
14868     # here allows them to be overridden if necessary.
14869     runpath_var=LD_RUN_PATH
14870     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14871     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14872     # ancient GNU ld didn't support --whole-archive et. al.
14873     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14874         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14875       else
14876         whole_archive_flag_spec_F77=
14877     fi
14878     supports_anon_versioning=no
14879     case `$LD -v 2>/dev/null` in
14880       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14881       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14882       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14883       *\ 2.11.*) ;; # other 2.11 versions
14884       *) supports_anon_versioning=yes ;;
14885     esac
14886
14887     # See if GNU ld supports shared libraries.
14888     case $host_os in
14889     aix[3-9]*)
14890       # On AIX/PPC, the GNU linker is very broken
14891       if test "$host_cpu" != ia64; then
14892         ld_shlibs_F77=no
14893         cat <<EOF 1>&2
14894
14895 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14896 *** to be unable to reliably create shared libraries on AIX.
14897 *** Therefore, libtool is disabling shared libraries support.  If you
14898 *** really care for shared libraries, you may want to modify your PATH
14899 *** so that a non-GNU linker is found, and then restart.
14900
14901 EOF
14902       fi
14903       ;;
14904
14905     amigaos*)
14906       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)'
14907       hardcode_libdir_flag_spec_F77='-L$libdir'
14908       hardcode_minus_L_F77=yes
14909
14910       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14911       # that the semantics of dynamic libraries on AmigaOS, at least up
14912       # to version 4, is to share data among multiple programs linked
14913       # with the same dynamic library.  Since this doesn't match the
14914       # behavior of shared libraries on other platforms, we can't use
14915       # them.
14916       ld_shlibs_F77=no
14917       ;;
14918
14919     beos*)
14920       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14921         allow_undefined_flag_F77=unsupported
14922         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14923         # support --undefined.  This deserves some investigation.  FIXME
14924         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14925       else
14926         ld_shlibs_F77=no
14927       fi
14928       ;;
14929
14930     cygwin* | mingw* | pw32*)
14931       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14932       # as there is no search path for DLLs.
14933       hardcode_libdir_flag_spec_F77='-L$libdir'
14934       allow_undefined_flag_F77=unsupported
14935       always_export_symbols_F77=no
14936       enable_shared_with_static_runtimes_F77=yes
14937       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14938
14939       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14940         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14941         # If the export-symbols file already is a .def file (1st line
14942         # is EXPORTS), use it as is; otherwise, prepend...
14943         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14944           cp $export_symbols $output_objdir/$soname.def;
14945         else
14946           echo EXPORTS > $output_objdir/$soname.def;
14947           cat $export_symbols >> $output_objdir/$soname.def;
14948         fi~
14949         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14950       else
14951         ld_shlibs_F77=no
14952       fi
14953       ;;
14954
14955     interix[3-9]*)
14956       hardcode_direct_F77=no
14957       hardcode_shlibpath_var_F77=no
14958       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14959       export_dynamic_flag_spec_F77='${wl}-E'
14960       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14961       # Instead, shared libraries are loaded at an image base (0x10000000 by
14962       # default) and relocated if they conflict, which is a slow very memory
14963       # consuming and fragmenting process.  To avoid this, we pick a random,
14964       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14965       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14966       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'
14967       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'
14968       ;;
14969
14970     gnu* | linux* | k*bsd*-gnu)
14971       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14972         tmp_addflag=
14973         case $cc_basename,$host_cpu in
14974         pgcc*)                          # Portland Group C compiler
14975           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'
14976           tmp_addflag=' $pic_flag'
14977           ;;
14978         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14979           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'
14980           tmp_addflag=' $pic_flag -Mnomain' ;;
14981         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14982           tmp_addflag=' -i_dynamic' ;;
14983         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14984           tmp_addflag=' -i_dynamic -nofor_main' ;;
14985         ifc* | ifort*)                  # Intel Fortran compiler
14986           tmp_addflag=' -nofor_main' ;;
14987         esac
14988         case `$CC -V 2>&1 | sed 5q` in
14989         *Sun\ C*)                       # Sun C 5.9
14990           whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14991           tmp_sharedflag='-G' ;;
14992         *Sun\ F*)                       # Sun Fortran 8.3
14993           tmp_sharedflag='-G' ;;
14994         *)
14995           tmp_sharedflag='-shared' ;;
14996         esac
14997         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14998
14999         if test $supports_anon_versioning = yes; then
15000           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15001   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15002   $echo "local: *; };" >> $output_objdir/$libname.ver~
15003           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15004         fi
15005         link_all_deplibs_F77=no
15006       else
15007         ld_shlibs_F77=no
15008       fi
15009       ;;
15010
15011     netbsd* | netbsdelf*-gnu)
15012       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15013         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15014         wlarc=
15015       else
15016         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15017         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15018       fi
15019       ;;
15020
15021     solaris*)
15022       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15023         ld_shlibs_F77=no
15024         cat <<EOF 1>&2
15025
15026 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15027 *** create shared libraries on Solaris systems.  Therefore, libtool
15028 *** is disabling shared libraries support.  We urge you to upgrade GNU
15029 *** binutils to release 2.9.1 or newer.  Another option is to modify
15030 *** your PATH or compiler configuration so that the native linker is
15031 *** used, and then restart.
15032
15033 EOF
15034       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15035         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15036         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15037       else
15038         ld_shlibs_F77=no
15039       fi
15040       ;;
15041
15042     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15043       case `$LD -v 2>&1` in
15044         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15045         ld_shlibs_F77=no
15046         cat <<_LT_EOF 1>&2
15047
15048 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15049 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15050 *** is disabling shared libraries support.  We urge you to upgrade GNU
15051 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15052 *** your PATH or compiler configuration so that the native linker is
15053 *** used, and then restart.
15054
15055 _LT_EOF
15056         ;;
15057         *)
15058           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15059             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15060             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15061             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15062           else
15063             ld_shlibs_F77=no
15064           fi
15065         ;;
15066       esac
15067       ;;
15068
15069     sunos4*)
15070       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15071       wlarc=
15072       hardcode_direct_F77=yes
15073       hardcode_shlibpath_var_F77=no
15074       ;;
15075
15076     *)
15077       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15078         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15079         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15080       else
15081         ld_shlibs_F77=no
15082       fi
15083       ;;
15084     esac
15085
15086     if test "$ld_shlibs_F77" = no; then
15087       runpath_var=
15088       hardcode_libdir_flag_spec_F77=
15089       export_dynamic_flag_spec_F77=
15090       whole_archive_flag_spec_F77=
15091     fi
15092   else
15093     # PORTME fill in a description of your system's linker (not GNU ld)
15094     case $host_os in
15095     aix3*)
15096       allow_undefined_flag_F77=unsupported
15097       always_export_symbols_F77=yes
15098       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'
15099       # Note: this linker hardcodes the directories in LIBPATH if there
15100       # are no directories specified by -L.
15101       hardcode_minus_L_F77=yes
15102       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15103         # Neither direct hardcoding nor static linking is supported with a
15104         # broken collect2.
15105         hardcode_direct_F77=unsupported
15106       fi
15107       ;;
15108
15109     aix[4-9]*)
15110       if test "$host_cpu" = ia64; then
15111         # On IA64, the linker does run time linking by default, so we don't
15112         # have to do anything special.
15113         aix_use_runtimelinking=no
15114         exp_sym_flag='-Bexport'
15115         no_entry_flag=""
15116       else
15117         # If we're using GNU nm, then we don't want the "-C" option.
15118         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15119         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15120           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'
15121         else
15122           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'
15123         fi
15124         aix_use_runtimelinking=no
15125
15126         # Test if we are trying to use run time linking or normal
15127         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15128         # need to do runtime linking.
15129         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15130           for ld_flag in $LDFLAGS; do
15131           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15132             aix_use_runtimelinking=yes
15133             break
15134           fi
15135           done
15136           ;;
15137         esac
15138
15139         exp_sym_flag='-bexport'
15140         no_entry_flag='-bnoentry'
15141       fi
15142
15143       # When large executables or shared objects are built, AIX ld can
15144       # have problems creating the table of contents.  If linking a library
15145       # or program results in "error TOC overflow" add -mminimal-toc to
15146       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15147       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15148
15149       archive_cmds_F77=''
15150       hardcode_direct_F77=yes
15151       hardcode_libdir_separator_F77=':'
15152       link_all_deplibs_F77=yes
15153
15154       if test "$GCC" = yes; then
15155         case $host_os in aix4.[012]|aix4.[012].*)
15156         # We only want to do this on AIX 4.2 and lower, the check
15157         # below for broken collect2 doesn't work under 4.3+
15158           collect2name=`${CC} -print-prog-name=collect2`
15159           if test -f "$collect2name" && \
15160            strings "$collect2name" | grep resolve_lib_name >/dev/null
15161           then
15162           # We have reworked collect2
15163           :
15164           else
15165           # We have old collect2
15166           hardcode_direct_F77=unsupported
15167           # It fails to find uninstalled libraries when the uninstalled
15168           # path is not listed in the libpath.  Setting hardcode_minus_L
15169           # to unsupported forces relinking
15170           hardcode_minus_L_F77=yes
15171           hardcode_libdir_flag_spec_F77='-L$libdir'
15172           hardcode_libdir_separator_F77=
15173           fi
15174           ;;
15175         esac
15176         shared_flag='-shared'
15177         if test "$aix_use_runtimelinking" = yes; then
15178           shared_flag="$shared_flag "'${wl}-G'
15179         fi
15180       else
15181         # not using gcc
15182         if test "$host_cpu" = ia64; then
15183         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15184         # chokes on -Wl,-G. The following line is correct:
15185           shared_flag='-G'
15186         else
15187           if test "$aix_use_runtimelinking" = yes; then
15188             shared_flag='${wl}-G'
15189           else
15190             shared_flag='${wl}-bM:SRE'
15191           fi
15192         fi
15193       fi
15194
15195       # It seems that -bexpall does not export symbols beginning with
15196       # underscore (_), so it is better to generate a list of symbols to export.
15197       always_export_symbols_F77=yes
15198       if test "$aix_use_runtimelinking" = yes; then
15199         # Warning - without using the other runtime loading flags (-brtl),
15200         # -berok will link without error, but may produce a broken library.
15201         allow_undefined_flag_F77='-berok'
15202        # Determine the default libpath from the value encoded in an empty executable.
15203        cat >conftest.$ac_ext <<_ACEOF
15204       program main
15205
15206       end
15207 _ACEOF
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (ac_try="$ac_link"
15210 case "(($ac_try" in
15211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212   *) ac_try_echo=$ac_try;;
15213 esac
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215   (eval "$ac_link") 2>conftest.er1
15216   ac_status=$?
15217   grep -v '^ *+' conftest.er1 >conftest.err
15218   rm -f conftest.er1
15219   cat conftest.err >&5
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); } && {
15222          test -z "$ac_f77_werror_flag" ||
15223          test ! -s conftest.err
15224        } && test -s conftest$ac_exeext &&
15225        $as_test_x conftest$ac_exeext; then
15226
15227 lt_aix_libpath_sed='
15228     /Import File Strings/,/^$/ {
15229         /^0/ {
15230             s/^0  *\(.*\)$/\1/
15231             p
15232         }
15233     }'
15234 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15235 # Check for a 64-bit object if we didn't find anything.
15236 if test -z "$aix_libpath"; then
15237   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15238 fi
15239 else
15240   echo "$as_me: failed program was:" >&5
15241 sed 's/^/| /' conftest.$ac_ext >&5
15242
15243
15244 fi
15245
15246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15247       conftest$ac_exeext conftest.$ac_ext
15248 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15249
15250        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15251         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"
15252        else
15253         if test "$host_cpu" = ia64; then
15254           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15255           allow_undefined_flag_F77="-z nodefs"
15256           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"
15257         else
15258          # Determine the default libpath from the value encoded in an empty executable.
15259          cat >conftest.$ac_ext <<_ACEOF
15260       program main
15261
15262       end
15263 _ACEOF
15264 rm -f conftest.$ac_objext conftest$ac_exeext
15265 if { (ac_try="$ac_link"
15266 case "(($ac_try" in
15267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268   *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271   (eval "$ac_link") 2>conftest.er1
15272   ac_status=$?
15273   grep -v '^ *+' conftest.er1 >conftest.err
15274   rm -f conftest.er1
15275   cat conftest.err >&5
15276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277   (exit $ac_status); } && {
15278          test -z "$ac_f77_werror_flag" ||
15279          test ! -s conftest.err
15280        } && test -s conftest$ac_exeext &&
15281        $as_test_x conftest$ac_exeext; then
15282
15283 lt_aix_libpath_sed='
15284     /Import File Strings/,/^$/ {
15285         /^0/ {
15286             s/^0  *\(.*\)$/\1/
15287             p
15288         }
15289     }'
15290 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15291 # Check for a 64-bit object if we didn't find anything.
15292 if test -z "$aix_libpath"; then
15293   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15294 fi
15295 else
15296   echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15298
15299
15300 fi
15301
15302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15303       conftest$ac_exeext conftest.$ac_ext
15304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15305
15306          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15307           # Warning - without using the other run time loading flags,
15308           # -berok will link without error, but may produce a broken library.
15309           no_undefined_flag_F77=' ${wl}-bernotok'
15310           allow_undefined_flag_F77=' ${wl}-berok'
15311           # Exported symbols can be pulled into shared objects from archives
15312           whole_archive_flag_spec_F77='$convenience'
15313           archive_cmds_need_lc_F77=yes
15314           # This is similar to how AIX traditionally builds its shared libraries.
15315           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'
15316         fi
15317       fi
15318       ;;
15319
15320     amigaos*)
15321       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)'
15322       hardcode_libdir_flag_spec_F77='-L$libdir'
15323       hardcode_minus_L_F77=yes
15324       # see comment about different semantics on the GNU ld section
15325       ld_shlibs_F77=no
15326       ;;
15327
15328     bsdi[45]*)
15329       export_dynamic_flag_spec_F77=-rdynamic
15330       ;;
15331
15332     cygwin* | mingw* | pw32*)
15333       # When not using gcc, we currently assume that we are using
15334       # Microsoft Visual C++.
15335       # hardcode_libdir_flag_spec is actually meaningless, as there is
15336       # no search path for DLLs.
15337       hardcode_libdir_flag_spec_F77=' '
15338       allow_undefined_flag_F77=unsupported
15339       # Tell ltmain to make .lib files, not .a files.
15340       libext=lib
15341       # Tell ltmain to make .dll files, not .so files.
15342       shrext_cmds=".dll"
15343       # FIXME: Setting linknames here is a bad hack.
15344       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15345       # The linker will automatically build a .lib file if we build a DLL.
15346       old_archive_From_new_cmds_F77='true'
15347       # FIXME: Should let the user specify the lib program.
15348       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15349       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15350       enable_shared_with_static_runtimes_F77=yes
15351       ;;
15352
15353     darwin* | rhapsody*)
15354       case $host_os in
15355         rhapsody* | darwin1.[012])
15356          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15357          ;;
15358        *) # Darwin 1.3 on
15359          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15360            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15361          else
15362            case ${MACOSX_DEPLOYMENT_TARGET} in
15363              10.[012])
15364                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15365                ;;
15366              10.*)
15367                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15368                ;;
15369            esac
15370          fi
15371          ;;
15372       esac
15373       archive_cmds_need_lc_F77=no
15374       hardcode_direct_F77=no
15375       hardcode_automatic_F77=yes
15376       hardcode_shlibpath_var_F77=unsupported
15377       whole_archive_flag_spec_F77=''
15378       link_all_deplibs_F77=yes
15379     if test "$GCC" = yes ; then
15380         output_verbose_link_cmd='echo'
15381         archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15382         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15383         archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15384         module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15385     else
15386       case $cc_basename in
15387         xlc*)
15388          output_verbose_link_cmd='echo'
15389          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15390          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15391           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15392          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15393           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}'
15394           ;;
15395        *)
15396          ld_shlibs_F77=no
15397           ;;
15398       esac
15399     fi
15400       ;;
15401
15402     dgux*)
15403       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15404       hardcode_libdir_flag_spec_F77='-L$libdir'
15405       hardcode_shlibpath_var_F77=no
15406       ;;
15407
15408     freebsd1*)
15409       ld_shlibs_F77=no
15410       ;;
15411
15412     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15413     # support.  Future versions do this automatically, but an explicit c++rt0.o
15414     # does not break anything, and helps significantly (at the cost of a little
15415     # extra space).
15416     freebsd2.2*)
15417       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15418       hardcode_libdir_flag_spec_F77='-R$libdir'
15419       hardcode_direct_F77=yes
15420       hardcode_shlibpath_var_F77=no
15421       ;;
15422
15423     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15424     freebsd2*)
15425       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15426       hardcode_direct_F77=yes
15427       hardcode_minus_L_F77=yes
15428       hardcode_shlibpath_var_F77=no
15429       ;;
15430
15431     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15432     freebsd* | dragonfly*)
15433       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15434       hardcode_libdir_flag_spec_F77='-R$libdir'
15435       hardcode_direct_F77=yes
15436       hardcode_shlibpath_var_F77=no
15437       ;;
15438
15439     hpux9*)
15440       if test "$GCC" = yes; then
15441         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'
15442       else
15443         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'
15444       fi
15445       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15446       hardcode_libdir_separator_F77=:
15447       hardcode_direct_F77=yes
15448
15449       # hardcode_minus_L: Not really in the search PATH,
15450       # but as the default location of the library.
15451       hardcode_minus_L_F77=yes
15452       export_dynamic_flag_spec_F77='${wl}-E'
15453       ;;
15454
15455     hpux10*)
15456       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15457         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15458       else
15459         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15460       fi
15461       if test "$with_gnu_ld" = no; then
15462         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15463         hardcode_libdir_separator_F77=:
15464
15465         hardcode_direct_F77=yes
15466         export_dynamic_flag_spec_F77='${wl}-E'
15467
15468         # hardcode_minus_L: Not really in the search PATH,
15469         # but as the default location of the library.
15470         hardcode_minus_L_F77=yes
15471       fi
15472       ;;
15473
15474     hpux11*)
15475       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15476         case $host_cpu in
15477         hppa*64*)
15478           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15479           ;;
15480         ia64*)
15481           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15482           ;;
15483         *)
15484           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15485           ;;
15486         esac
15487       else
15488         case $host_cpu in
15489         hppa*64*)
15490           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15491           ;;
15492         ia64*)
15493           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15494           ;;
15495         *)
15496           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15497           ;;
15498         esac
15499       fi
15500       if test "$with_gnu_ld" = no; then
15501         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15502         hardcode_libdir_separator_F77=:
15503
15504         case $host_cpu in
15505         hppa*64*|ia64*)
15506           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15507           hardcode_direct_F77=no
15508           hardcode_shlibpath_var_F77=no
15509           ;;
15510         *)
15511           hardcode_direct_F77=yes
15512           export_dynamic_flag_spec_F77='${wl}-E'
15513
15514           # hardcode_minus_L: Not really in the search PATH,
15515           # but as the default location of the library.
15516           hardcode_minus_L_F77=yes
15517           ;;
15518         esac
15519       fi
15520       ;;
15521
15522     irix5* | irix6* | nonstopux*)
15523       if test "$GCC" = yes; then
15524         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'
15525       else
15526         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'
15527         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15528       fi
15529       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15530       hardcode_libdir_separator_F77=:
15531       link_all_deplibs_F77=yes
15532       ;;
15533
15534     netbsd* | netbsdelf*-gnu)
15535       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15536         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15537       else
15538         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15539       fi
15540       hardcode_libdir_flag_spec_F77='-R$libdir'
15541       hardcode_direct_F77=yes
15542       hardcode_shlibpath_var_F77=no
15543       ;;
15544
15545     newsos6)
15546       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15547       hardcode_direct_F77=yes
15548       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15549       hardcode_libdir_separator_F77=:
15550       hardcode_shlibpath_var_F77=no
15551       ;;
15552
15553     openbsd*)
15554       if test -f /usr/libexec/ld.so; then
15555         hardcode_direct_F77=yes
15556         hardcode_shlibpath_var_F77=no
15557         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15558           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15559           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15560           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15561           export_dynamic_flag_spec_F77='${wl}-E'
15562         else
15563           case $host_os in
15564            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15565              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15566              hardcode_libdir_flag_spec_F77='-R$libdir'
15567              ;;
15568            *)
15569              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15570              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15571              ;;
15572           esac
15573         fi
15574       else
15575         ld_shlibs_F77=no
15576       fi
15577       ;;
15578
15579     os2*)
15580       hardcode_libdir_flag_spec_F77='-L$libdir'
15581       hardcode_minus_L_F77=yes
15582       allow_undefined_flag_F77=unsupported
15583       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'
15584       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15585       ;;
15586
15587     osf3*)
15588       if test "$GCC" = yes; then
15589         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15590         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'
15591       else
15592         allow_undefined_flag_F77=' -expect_unresolved \*'
15593         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'
15594       fi
15595       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15596       hardcode_libdir_separator_F77=:
15597       ;;
15598
15599     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15600       if test "$GCC" = yes; then
15601         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15602         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'
15603         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15604       else
15605         allow_undefined_flag_F77=' -expect_unresolved \*'
15606         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'
15607         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~
15608         $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'
15609
15610         # Both c and cxx compiler support -rpath directly
15611         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15612       fi
15613       hardcode_libdir_separator_F77=:
15614       ;;
15615
15616     solaris*)
15617       no_undefined_flag_F77=' -z text'
15618       if test "$GCC" = yes; then
15619         wlarc='${wl}'
15620         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15621         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15622           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15623       else
15624         wlarc=''
15625         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15626         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15627         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15628       fi
15629       hardcode_libdir_flag_spec_F77='-R$libdir'
15630       hardcode_shlibpath_var_F77=no
15631       case $host_os in
15632       solaris2.[0-5] | solaris2.[0-5].*) ;;
15633       *)
15634         # The compiler driver will combine and reorder linker options,
15635         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15636         # but is careful enough not to reorder.
15637         # Supported since Solaris 2.6 (maybe 2.5.1?)
15638         if test "$GCC" = yes; then
15639           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15640         else
15641           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15642         fi
15643         ;;
15644       esac
15645       link_all_deplibs_F77=yes
15646       ;;
15647
15648     sunos4*)
15649       if test "x$host_vendor" = xsequent; then
15650         # Use $CC to link under sequent, because it throws in some extra .o
15651         # files that make .init and .fini sections work.
15652         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15653       else
15654         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15655       fi
15656       hardcode_libdir_flag_spec_F77='-L$libdir'
15657       hardcode_direct_F77=yes
15658       hardcode_minus_L_F77=yes
15659       hardcode_shlibpath_var_F77=no
15660       ;;
15661
15662     sysv4)
15663       case $host_vendor in
15664         sni)
15665           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666           hardcode_direct_F77=yes # is this really true???
15667         ;;
15668         siemens)
15669           ## LD is ld it makes a PLAMLIB
15670           ## CC just makes a GrossModule.
15671           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15672           reload_cmds_F77='$CC -r -o $output$reload_objs'
15673           hardcode_direct_F77=no
15674         ;;
15675         motorola)
15676           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15677           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15678         ;;
15679       esac
15680       runpath_var='LD_RUN_PATH'
15681       hardcode_shlibpath_var_F77=no
15682       ;;
15683
15684     sysv4.3*)
15685       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15686       hardcode_shlibpath_var_F77=no
15687       export_dynamic_flag_spec_F77='-Bexport'
15688       ;;
15689
15690     sysv4*MP*)
15691       if test -d /usr/nec; then
15692         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15693         hardcode_shlibpath_var_F77=no
15694         runpath_var=LD_RUN_PATH
15695         hardcode_runpath_var=yes
15696         ld_shlibs_F77=yes
15697       fi
15698       ;;
15699
15700     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15701       no_undefined_flag_F77='${wl}-z,text'
15702       archive_cmds_need_lc_F77=no
15703       hardcode_shlibpath_var_F77=no
15704       runpath_var='LD_RUN_PATH'
15705
15706       if test "$GCC" = yes; then
15707         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15708         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15709       else
15710         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15711         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15712       fi
15713       ;;
15714
15715     sysv5* | sco3.2v5* | sco5v6*)
15716       # Note: We can NOT use -z defs as we might desire, because we do not
15717       # link with -lc, and that would cause any symbols used from libc to
15718       # always be unresolved, which means just about no library would
15719       # ever link correctly.  If we're not using GNU ld we use -z text
15720       # though, which does catch some bad symbols but isn't as heavy-handed
15721       # as -z defs.
15722       no_undefined_flag_F77='${wl}-z,text'
15723       allow_undefined_flag_F77='${wl}-z,nodefs'
15724       archive_cmds_need_lc_F77=no
15725       hardcode_shlibpath_var_F77=no
15726       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15727       hardcode_libdir_separator_F77=':'
15728       link_all_deplibs_F77=yes
15729       export_dynamic_flag_spec_F77='${wl}-Bexport'
15730       runpath_var='LD_RUN_PATH'
15731
15732       if test "$GCC" = yes; then
15733         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15734         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15735       else
15736         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15737         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15738       fi
15739       ;;
15740
15741     uts4*)
15742       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743       hardcode_libdir_flag_spec_F77='-L$libdir'
15744       hardcode_shlibpath_var_F77=no
15745       ;;
15746
15747     *)
15748       ld_shlibs_F77=no
15749       ;;
15750     esac
15751   fi
15752
15753 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15754 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15755 test "$ld_shlibs_F77" = no && can_build_shared=no
15756
15757 #
15758 # Do we need to explicitly link libc?
15759 #
15760 case "x$archive_cmds_need_lc_F77" in
15761 x|xyes)
15762   # Assume -lc should be added
15763   archive_cmds_need_lc_F77=yes
15764
15765   if test "$enable_shared" = yes && test "$GCC" = yes; then
15766     case $archive_cmds_F77 in
15767     *'~'*)
15768       # FIXME: we may have to deal with multi-command sequences.
15769       ;;
15770     '$CC '*)
15771       # Test whether the compiler implicitly links with -lc since on some
15772       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15773       # to ld, don't add -lc before -lgcc.
15774       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15775 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15776       $rm conftest*
15777       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15778
15779       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15780   (eval $ac_compile) 2>&5
15781   ac_status=$?
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); } 2>conftest.err; then
15784         soname=conftest
15785         lib=conftest
15786         libobjs=conftest.$ac_objext
15787         deplibs=
15788         wl=$lt_prog_compiler_wl_F77
15789         pic_flag=$lt_prog_compiler_pic_F77
15790         compiler_flags=-v
15791         linker_flags=-v
15792         verstring=
15793         output_objdir=.
15794         libname=conftest
15795         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15796         allow_undefined_flag_F77=
15797         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15798   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }
15802         then
15803           archive_cmds_need_lc_F77=no
15804         else
15805           archive_cmds_need_lc_F77=yes
15806         fi
15807         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15808       else
15809         cat conftest.err 1>&5
15810       fi
15811       $rm conftest*
15812       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15813 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15814       ;;
15815     esac
15816   fi
15817   ;;
15818 esac
15819
15820 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15821 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15822 library_names_spec=
15823 libname_spec='lib$name'
15824 soname_spec=
15825 shrext_cmds=".so"
15826 postinstall_cmds=
15827 postuninstall_cmds=
15828 finish_cmds=
15829 finish_eval=
15830 shlibpath_var=
15831 shlibpath_overrides_runpath=unknown
15832 version_type=none
15833 dynamic_linker="$host_os ld.so"
15834 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15835
15836 need_lib_prefix=unknown
15837 hardcode_into_libs=no
15838
15839 # when you set need_version to no, make sure it does not cause -set_version
15840 # flags to be left without arguments
15841 need_version=unknown
15842
15843 case $host_os in
15844 aix3*)
15845   version_type=linux
15846   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15847   shlibpath_var=LIBPATH
15848
15849   # AIX 3 has no versioning support, so we append a major version to the name.
15850   soname_spec='${libname}${release}${shared_ext}$major'
15851   ;;
15852
15853 aix[4-9]*)
15854   version_type=linux
15855   need_lib_prefix=no
15856   need_version=no
15857   hardcode_into_libs=yes
15858   if test "$host_cpu" = ia64; then
15859     # AIX 5 supports IA64
15860     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15861     shlibpath_var=LD_LIBRARY_PATH
15862   else
15863     # With GCC up to 2.95.x, collect2 would create an import file
15864     # for dependence libraries.  The import file would start with
15865     # the line `#! .'.  This would cause the generated library to
15866     # depend on `.', always an invalid library.  This was fixed in
15867     # development snapshots of GCC prior to 3.0.
15868     case $host_os in
15869       aix4 | aix4.[01] | aix4.[01].*)
15870       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15871            echo ' yes '
15872            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15873         :
15874       else
15875         can_build_shared=no
15876       fi
15877       ;;
15878     esac
15879     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15880     # soname into executable. Probably we can add versioning support to
15881     # collect2, so additional links can be useful in future.
15882     if test "$aix_use_runtimelinking" = yes; then
15883       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15884       # instead of lib<name>.a to let people know that these are not
15885       # typical AIX shared libraries.
15886       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15887     else
15888       # We preserve .a as extension for shared libraries through AIX4.2
15889       # and later when we are not doing run time linking.
15890       library_names_spec='${libname}${release}.a $libname.a'
15891       soname_spec='${libname}${release}${shared_ext}$major'
15892     fi
15893     shlibpath_var=LIBPATH
15894   fi
15895   ;;
15896
15897 amigaos*)
15898   library_names_spec='$libname.ixlibrary $libname.a'
15899   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15900   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'
15901   ;;
15902
15903 beos*)
15904   library_names_spec='${libname}${shared_ext}'
15905   dynamic_linker="$host_os ld.so"
15906   shlibpath_var=LIBRARY_PATH
15907   ;;
15908
15909 bsdi[45]*)
15910   version_type=linux
15911   need_version=no
15912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913   soname_spec='${libname}${release}${shared_ext}$major'
15914   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15915   shlibpath_var=LD_LIBRARY_PATH
15916   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15917   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15918   # the default ld.so.conf also contains /usr/contrib/lib and
15919   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15920   # libtool to hard-code these into programs
15921   ;;
15922
15923 cygwin* | mingw* | pw32*)
15924   version_type=windows
15925   shrext_cmds=".dll"
15926   need_version=no
15927   need_lib_prefix=no
15928
15929   case $GCC,$host_os in
15930   yes,cygwin* | yes,mingw* | yes,pw32*)
15931     library_names_spec='$libname.dll.a'
15932     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15933     postinstall_cmds='base_file=`basename \${file}`~
15934       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15935       dldir=$destdir/`dirname \$dlpath`~
15936       test -d \$dldir || mkdir -p \$dldir~
15937       $install_prog $dir/$dlname \$dldir/$dlname~
15938       chmod a+x \$dldir/$dlname'
15939     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15940       dlpath=$dir/\$dldll~
15941        $rm \$dlpath'
15942     shlibpath_overrides_runpath=yes
15943
15944     case $host_os in
15945     cygwin*)
15946       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15947       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15948       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15949       ;;
15950     mingw*)
15951       # MinGW DLLs use traditional 'lib' prefix
15952       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15953       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15954       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15955         # It is most probably a Windows format PATH printed by
15956         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15957         # path with ; separators, and with drive letters. We can handle the
15958         # drive letters (cygwin fileutils understands them), so leave them,
15959         # especially as we might pass files found there to a mingw objdump,
15960         # which wouldn't understand a cygwinified path. Ahh.
15961         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15962       else
15963         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15964       fi
15965       ;;
15966     pw32*)
15967       # pw32 DLLs use 'pw' prefix rather than 'lib'
15968       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15969       ;;
15970     esac
15971     ;;
15972
15973   *)
15974     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15975     ;;
15976   esac
15977   dynamic_linker='Win32 ld.exe'
15978   # FIXME: first we should search . and the directory the executable is in
15979   shlibpath_var=PATH
15980   ;;
15981
15982 darwin* | rhapsody*)
15983   dynamic_linker="$host_os dyld"
15984   version_type=darwin
15985   need_lib_prefix=no
15986   need_version=no
15987   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15988   soname_spec='${libname}${release}${major}$shared_ext'
15989   shlibpath_overrides_runpath=yes
15990   shlibpath_var=DYLD_LIBRARY_PATH
15991   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15992
15993   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15994   ;;
15995
15996 dgux*)
15997   version_type=linux
15998   need_lib_prefix=no
15999   need_version=no
16000   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16001   soname_spec='${libname}${release}${shared_ext}$major'
16002   shlibpath_var=LD_LIBRARY_PATH
16003   ;;
16004
16005 freebsd1*)
16006   dynamic_linker=no
16007   ;;
16008
16009 freebsd* | dragonfly*)
16010   # DragonFly does not have aout.  When/if they implement a new
16011   # versioning mechanism, adjust this.
16012   if test -x /usr/bin/objformat; then
16013     objformat=`/usr/bin/objformat`
16014   else
16015     case $host_os in
16016     freebsd[123]*) objformat=aout ;;
16017     *) objformat=elf ;;
16018     esac
16019   fi
16020   version_type=freebsd-$objformat
16021   case $version_type in
16022     freebsd-elf*)
16023       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16024       need_version=no
16025       need_lib_prefix=no
16026       ;;
16027     freebsd-*)
16028       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16029       need_version=yes
16030       ;;
16031   esac
16032   shlibpath_var=LD_LIBRARY_PATH
16033   case $host_os in
16034   freebsd2*)
16035     shlibpath_overrides_runpath=yes
16036     ;;
16037   freebsd3.[01]* | freebsdelf3.[01]*)
16038     shlibpath_overrides_runpath=yes
16039     hardcode_into_libs=yes
16040     ;;
16041   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16042   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16043     shlibpath_overrides_runpath=no
16044     hardcode_into_libs=yes
16045     ;;
16046   *) # from 4.6 on, and DragonFly
16047     shlibpath_overrides_runpath=yes
16048     hardcode_into_libs=yes
16049     ;;
16050   esac
16051   ;;
16052
16053 gnu*)
16054   version_type=linux
16055   need_lib_prefix=no
16056   need_version=no
16057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16058   soname_spec='${libname}${release}${shared_ext}$major'
16059   shlibpath_var=LD_LIBRARY_PATH
16060   hardcode_into_libs=yes
16061   ;;
16062
16063 hpux9* | hpux10* | hpux11*)
16064   # Give a soname corresponding to the major version so that dld.sl refuses to
16065   # link against other versions.
16066   version_type=sunos
16067   need_lib_prefix=no
16068   need_version=no
16069   case $host_cpu in
16070   ia64*)
16071     shrext_cmds='.so'
16072     hardcode_into_libs=yes
16073     dynamic_linker="$host_os dld.so"
16074     shlibpath_var=LD_LIBRARY_PATH
16075     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16076     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077     soname_spec='${libname}${release}${shared_ext}$major'
16078     if test "X$HPUX_IA64_MODE" = X32; then
16079       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16080     else
16081       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16082     fi
16083     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16084     ;;
16085    hppa*64*)
16086      shrext_cmds='.sl'
16087      hardcode_into_libs=yes
16088      dynamic_linker="$host_os dld.sl"
16089      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16090      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16091      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092      soname_spec='${libname}${release}${shared_ext}$major'
16093      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16094      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16095      ;;
16096    *)
16097     shrext_cmds='.sl'
16098     dynamic_linker="$host_os dld.sl"
16099     shlibpath_var=SHLIB_PATH
16100     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102     soname_spec='${libname}${release}${shared_ext}$major'
16103     ;;
16104   esac
16105   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16106   postinstall_cmds='chmod 555 $lib'
16107   ;;
16108
16109 interix[3-9]*)
16110   version_type=linux
16111   need_lib_prefix=no
16112   need_version=no
16113   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16114   soname_spec='${libname}${release}${shared_ext}$major'
16115   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16116   shlibpath_var=LD_LIBRARY_PATH
16117   shlibpath_overrides_runpath=no
16118   hardcode_into_libs=yes
16119   ;;
16120
16121 irix5* | irix6* | nonstopux*)
16122   case $host_os in
16123     nonstopux*) version_type=nonstopux ;;
16124     *)
16125         if test "$lt_cv_prog_gnu_ld" = yes; then
16126                 version_type=linux
16127         else
16128                 version_type=irix
16129         fi ;;
16130   esac
16131   need_lib_prefix=no
16132   need_version=no
16133   soname_spec='${libname}${release}${shared_ext}$major'
16134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16135   case $host_os in
16136   irix5* | nonstopux*)
16137     libsuff= shlibsuff=
16138     ;;
16139   *)
16140     case $LD in # libtool.m4 will add one of these switches to LD
16141     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16142       libsuff= shlibsuff= libmagic=32-bit;;
16143     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16144       libsuff=32 shlibsuff=N32 libmagic=N32;;
16145     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16146       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16147     *) libsuff= shlibsuff= libmagic=never-match;;
16148     esac
16149     ;;
16150   esac
16151   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16152   shlibpath_overrides_runpath=no
16153   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16154   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16155   hardcode_into_libs=yes
16156   ;;
16157
16158 # No shared lib support for Linux oldld, aout, or coff.
16159 linux*oldld* | linux*aout* | linux*coff*)
16160   dynamic_linker=no
16161   ;;
16162
16163 # This must be Linux ELF.
16164 linux* | k*bsd*-gnu)
16165   version_type=linux
16166   need_lib_prefix=no
16167   need_version=no
16168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16169   soname_spec='${libname}${release}${shared_ext}$major'
16170   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16171   shlibpath_var=LD_LIBRARY_PATH
16172   shlibpath_overrides_runpath=no
16173   # This implies no fast_install, which is unacceptable.
16174   # Some rework will be needed to allow for fast_install
16175   # before this can be enabled.
16176   hardcode_into_libs=yes
16177
16178   # Append ld.so.conf contents to the search path
16179   if test -f /etc/ld.so.conf; then
16180     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16181     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16182   fi
16183
16184   # We used to test for /lib/ld.so.1 and disable shared libraries on
16185   # powerpc, because MkLinux only supported shared libraries with the
16186   # GNU dynamic linker.  Since this was broken with cross compilers,
16187   # most powerpc-linux boxes support dynamic linking these days and
16188   # people can always --disable-shared, the test was removed, and we
16189   # assume the GNU/Linux dynamic linker is in use.
16190   dynamic_linker='GNU/Linux ld.so'
16191   ;;
16192
16193 netbsdelf*-gnu)
16194   version_type=linux
16195   need_lib_prefix=no
16196   need_version=no
16197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16198   soname_spec='${libname}${release}${shared_ext}$major'
16199   shlibpath_var=LD_LIBRARY_PATH
16200   shlibpath_overrides_runpath=no
16201   hardcode_into_libs=yes
16202   dynamic_linker='NetBSD ld.elf_so'
16203   ;;
16204
16205 netbsd*)
16206   version_type=sunos
16207   need_lib_prefix=no
16208   need_version=no
16209   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16211     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16212     dynamic_linker='NetBSD (a.out) ld.so'
16213   else
16214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16215     soname_spec='${libname}${release}${shared_ext}$major'
16216     dynamic_linker='NetBSD ld.elf_so'
16217   fi
16218   shlibpath_var=LD_LIBRARY_PATH
16219   shlibpath_overrides_runpath=yes
16220   hardcode_into_libs=yes
16221   ;;
16222
16223 newsos6)
16224   version_type=linux
16225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226   shlibpath_var=LD_LIBRARY_PATH
16227   shlibpath_overrides_runpath=yes
16228   ;;
16229
16230 nto-qnx*)
16231   version_type=linux
16232   need_lib_prefix=no
16233   need_version=no
16234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235   soname_spec='${libname}${release}${shared_ext}$major'
16236   shlibpath_var=LD_LIBRARY_PATH
16237   shlibpath_overrides_runpath=yes
16238   ;;
16239
16240 openbsd*)
16241   version_type=sunos
16242   sys_lib_dlsearch_path_spec="/usr/lib"
16243   need_lib_prefix=no
16244   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16245   case $host_os in
16246     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16247     *)                         need_version=no  ;;
16248   esac
16249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16251   shlibpath_var=LD_LIBRARY_PATH
16252   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16253     case $host_os in
16254       openbsd2.[89] | openbsd2.[89].*)
16255         shlibpath_overrides_runpath=no
16256         ;;
16257       *)
16258         shlibpath_overrides_runpath=yes
16259         ;;
16260       esac
16261   else
16262     shlibpath_overrides_runpath=yes
16263   fi
16264   ;;
16265
16266 os2*)
16267   libname_spec='$name'
16268   shrext_cmds=".dll"
16269   need_lib_prefix=no
16270   library_names_spec='$libname${shared_ext} $libname.a'
16271   dynamic_linker='OS/2 ld.exe'
16272   shlibpath_var=LIBPATH
16273   ;;
16274
16275 osf3* | osf4* | osf5*)
16276   version_type=osf
16277   need_lib_prefix=no
16278   need_version=no
16279   soname_spec='${libname}${release}${shared_ext}$major'
16280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281   shlibpath_var=LD_LIBRARY_PATH
16282   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16283   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16284   ;;
16285
16286 rdos*)
16287   dynamic_linker=no
16288   ;;
16289
16290 solaris*)
16291   version_type=linux
16292   need_lib_prefix=no
16293   need_version=no
16294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295   soname_spec='${libname}${release}${shared_ext}$major'
16296   shlibpath_var=LD_LIBRARY_PATH
16297   shlibpath_overrides_runpath=yes
16298   hardcode_into_libs=yes
16299   # ldd complains unless libraries are executable
16300   postinstall_cmds='chmod +x $lib'
16301   ;;
16302
16303 sunos4*)
16304   version_type=sunos
16305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16306   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16307   shlibpath_var=LD_LIBRARY_PATH
16308   shlibpath_overrides_runpath=yes
16309   if test "$with_gnu_ld" = yes; then
16310     need_lib_prefix=no
16311   fi
16312   need_version=yes
16313   ;;
16314
16315 sysv4 | sysv4.3*)
16316   version_type=linux
16317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16318   soname_spec='${libname}${release}${shared_ext}$major'
16319   shlibpath_var=LD_LIBRARY_PATH
16320   case $host_vendor in
16321     sni)
16322       shlibpath_overrides_runpath=no
16323       need_lib_prefix=no
16324       export_dynamic_flag_spec='${wl}-Blargedynsym'
16325       runpath_var=LD_RUN_PATH
16326       ;;
16327     siemens)
16328       need_lib_prefix=no
16329       ;;
16330     motorola)
16331       need_lib_prefix=no
16332       need_version=no
16333       shlibpath_overrides_runpath=no
16334       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16335       ;;
16336   esac
16337   ;;
16338
16339 sysv4*MP*)
16340   if test -d /usr/nec ;then
16341     version_type=linux
16342     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16343     soname_spec='$libname${shared_ext}.$major'
16344     shlibpath_var=LD_LIBRARY_PATH
16345   fi
16346   ;;
16347
16348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16349   version_type=freebsd-elf
16350   need_lib_prefix=no
16351   need_version=no
16352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16353   soname_spec='${libname}${release}${shared_ext}$major'
16354   shlibpath_var=LD_LIBRARY_PATH
16355   hardcode_into_libs=yes
16356   if test "$with_gnu_ld" = yes; then
16357     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16358     shlibpath_overrides_runpath=no
16359   else
16360     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16361     shlibpath_overrides_runpath=yes
16362     case $host_os in
16363       sco3.2v5*)
16364         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16365         ;;
16366     esac
16367   fi
16368   sys_lib_dlsearch_path_spec='/usr/lib'
16369   ;;
16370
16371 uts4*)
16372   version_type=linux
16373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374   soname_spec='${libname}${release}${shared_ext}$major'
16375   shlibpath_var=LD_LIBRARY_PATH
16376   ;;
16377
16378 *)
16379   dynamic_linker=no
16380   ;;
16381 esac
16382 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16383 echo "${ECHO_T}$dynamic_linker" >&6; }
16384 test "$dynamic_linker" = no && can_build_shared=no
16385
16386 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16387   echo $ECHO_N "(cached) $ECHO_C" >&6
16388 else
16389   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16390 fi
16391
16392 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16393 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16394   echo $ECHO_N "(cached) $ECHO_C" >&6
16395 else
16396   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16397 fi
16398
16399 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16400
16401 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16402 if test "$GCC" = yes; then
16403   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16404 fi
16405
16406 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16407 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16408 hardcode_action_F77=
16409 if test -n "$hardcode_libdir_flag_spec_F77" || \
16410    test -n "$runpath_var_F77" || \
16411    test "X$hardcode_automatic_F77" = "Xyes" ; then
16412
16413   # We can hardcode non-existant directories.
16414   if test "$hardcode_direct_F77" != no &&
16415      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16416      # have to relink, otherwise we might link with an installed library
16417      # when we should be linking with a yet-to-be-installed one
16418      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16419      test "$hardcode_minus_L_F77" != no; then
16420     # Linking always hardcodes the temporary library directory.
16421     hardcode_action_F77=relink
16422   else
16423     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16424     hardcode_action_F77=immediate
16425   fi
16426 else
16427   # We cannot hardcode anything, or else we can only hardcode existing
16428   # directories.
16429   hardcode_action_F77=unsupported
16430 fi
16431 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16432 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16433
16434 if test "$hardcode_action_F77" = relink; then
16435   # Fast installation is not supported
16436   enable_fast_install=no
16437 elif test "$shlibpath_overrides_runpath" = yes ||
16438      test "$enable_shared" = no; then
16439   # Fast installation is not necessary
16440   enable_fast_install=needless
16441 fi
16442
16443
16444 # The else clause should only fire when bootstrapping the
16445 # libtool distribution, otherwise you forgot to ship ltmain.sh
16446 # with your package, and you will get complaints that there are
16447 # no rules to generate ltmain.sh.
16448 if test -f "$ltmain"; then
16449   # See if we are running on zsh, and set the options which allow our commands through
16450   # without removal of \ escapes.
16451   if test -n "${ZSH_VERSION+set}" ; then
16452     setopt NO_GLOB_SUBST
16453   fi
16454   # Now quote all the things that may contain metacharacters while being
16455   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16456   # variables and quote the copies for generation of the libtool script.
16457   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16458     SED SHELL STRIP \
16459     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16460     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16461     deplibs_check_method reload_flag reload_cmds need_locks \
16462     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16463     lt_cv_sys_global_symbol_to_c_name_address \
16464     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16465     old_postinstall_cmds old_postuninstall_cmds \
16466     compiler_F77 \
16467     CC_F77 \
16468     LD_F77 \
16469     lt_prog_compiler_wl_F77 \
16470     lt_prog_compiler_pic_F77 \
16471     lt_prog_compiler_static_F77 \
16472     lt_prog_compiler_no_builtin_flag_F77 \
16473     export_dynamic_flag_spec_F77 \
16474     thread_safe_flag_spec_F77 \
16475     whole_archive_flag_spec_F77 \
16476     enable_shared_with_static_runtimes_F77 \
16477     old_archive_cmds_F77 \
16478     old_archive_from_new_cmds_F77 \
16479     predep_objects_F77 \
16480     postdep_objects_F77 \
16481     predeps_F77 \
16482     postdeps_F77 \
16483     compiler_lib_search_path_F77 \
16484     compiler_lib_search_dirs_F77 \
16485     archive_cmds_F77 \
16486     archive_expsym_cmds_F77 \
16487     postinstall_cmds_F77 \
16488     postuninstall_cmds_F77 \
16489     old_archive_from_expsyms_cmds_F77 \
16490     allow_undefined_flag_F77 \
16491     no_undefined_flag_F77 \
16492     export_symbols_cmds_F77 \
16493     hardcode_libdir_flag_spec_F77 \
16494     hardcode_libdir_flag_spec_ld_F77 \
16495     hardcode_libdir_separator_F77 \
16496     hardcode_automatic_F77 \
16497     module_cmds_F77 \
16498     module_expsym_cmds_F77 \
16499     lt_cv_prog_compiler_c_o_F77 \
16500     fix_srcfile_path_F77 \
16501     exclude_expsyms_F77 \
16502     include_expsyms_F77; do
16503
16504     case $var in
16505     old_archive_cmds_F77 | \
16506     old_archive_from_new_cmds_F77 | \
16507     archive_cmds_F77 | \
16508     archive_expsym_cmds_F77 | \
16509     module_cmds_F77 | \
16510     module_expsym_cmds_F77 | \
16511     old_archive_from_expsyms_cmds_F77 | \
16512     export_symbols_cmds_F77 | \
16513     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16514     postinstall_cmds | postuninstall_cmds | \
16515     old_postinstall_cmds | old_postuninstall_cmds | \
16516     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16517       # Double-quote double-evaled strings.
16518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16519       ;;
16520     *)
16521       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16522       ;;
16523     esac
16524   done
16525
16526   case $lt_echo in
16527   *'\$0 --fallback-echo"')
16528     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16529     ;;
16530   esac
16531
16532 cfgfile="$ofile"
16533
16534   cat <<__EOF__ >> "$cfgfile"
16535 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16536
16537 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16538
16539 # Shell to use when invoking shell scripts.
16540 SHELL=$lt_SHELL
16541
16542 # Whether or not to build shared libraries.
16543 build_libtool_libs=$enable_shared
16544
16545 # Whether or not to build static libraries.
16546 build_old_libs=$enable_static
16547
16548 # Whether or not to add -lc for building shared libraries.
16549 build_libtool_need_lc=$archive_cmds_need_lc_F77
16550
16551 # Whether or not to disallow shared libs when runtime libs are static
16552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16553
16554 # Whether or not to optimize for fast installation.
16555 fast_install=$enable_fast_install
16556
16557 # The host system.
16558 host_alias=$host_alias
16559 host=$host
16560 host_os=$host_os
16561
16562 # The build system.
16563 build_alias=$build_alias
16564 build=$build
16565 build_os=$build_os
16566
16567 # An echo program that does not interpret backslashes.
16568 echo=$lt_echo
16569
16570 # The archiver.
16571 AR=$lt_AR
16572 AR_FLAGS=$lt_AR_FLAGS
16573
16574 # A C compiler.
16575 LTCC=$lt_LTCC
16576
16577 # LTCC compiler flags.
16578 LTCFLAGS=$lt_LTCFLAGS
16579
16580 # A language-specific compiler.
16581 CC=$lt_compiler_F77
16582
16583 # Is the compiler the GNU C compiler?
16584 with_gcc=$GCC_F77
16585
16586 # An ERE matcher.
16587 EGREP=$lt_EGREP
16588
16589 # The linker used to build libraries.
16590 LD=$lt_LD_F77
16591
16592 # Whether we need hard or soft links.
16593 LN_S=$lt_LN_S
16594
16595 # A BSD-compatible nm program.
16596 NM=$lt_NM
16597
16598 # A symbol stripping program
16599 STRIP=$lt_STRIP
16600
16601 # Used to examine libraries when file_magic_cmd begins "file"
16602 MAGIC_CMD=$MAGIC_CMD
16603
16604 # Used on cygwin: DLL creation program.
16605 DLLTOOL="$DLLTOOL"
16606
16607 # Used on cygwin: object dumper.
16608 OBJDUMP="$OBJDUMP"
16609
16610 # Used on cygwin: assembler.
16611 AS="$AS"
16612
16613 # The name of the directory that contains temporary libtool files.
16614 objdir=$objdir
16615
16616 # How to create reloadable object files.
16617 reload_flag=$lt_reload_flag
16618 reload_cmds=$lt_reload_cmds
16619
16620 # How to pass a linker flag through the compiler.
16621 wl=$lt_lt_prog_compiler_wl_F77
16622
16623 # Object file suffix (normally "o").
16624 objext="$ac_objext"
16625
16626 # Old archive suffix (normally "a").
16627 libext="$libext"
16628
16629 # Shared library suffix (normally ".so").
16630 shrext_cmds='$shrext_cmds'
16631
16632 # Executable file suffix (normally "").
16633 exeext="$exeext"
16634
16635 # Additional compiler flags for building library objects.
16636 pic_flag=$lt_lt_prog_compiler_pic_F77
16637 pic_mode=$pic_mode
16638
16639 # What is the maximum length of a command?
16640 max_cmd_len=$lt_cv_sys_max_cmd_len
16641
16642 # Does compiler simultaneously support -c and -o options?
16643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16644
16645 # Must we lock files when doing compilation?
16646 need_locks=$lt_need_locks
16647
16648 # Do we need the lib prefix for modules?
16649 need_lib_prefix=$need_lib_prefix
16650
16651 # Do we need a version for libraries?
16652 need_version=$need_version
16653
16654 # Whether dlopen is supported.
16655 dlopen_support=$enable_dlopen
16656
16657 # Whether dlopen of programs is supported.
16658 dlopen_self=$enable_dlopen_self
16659
16660 # Whether dlopen of statically linked programs is supported.
16661 dlopen_self_static=$enable_dlopen_self_static
16662
16663 # Compiler flag to prevent dynamic linking.
16664 link_static_flag=$lt_lt_prog_compiler_static_F77
16665
16666 # Compiler flag to turn off builtin functions.
16667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16668
16669 # Compiler flag to allow reflexive dlopens.
16670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16671
16672 # Compiler flag to generate shared objects directly from archives.
16673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16674
16675 # Compiler flag to generate thread-safe objects.
16676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16677
16678 # Library versioning type.
16679 version_type=$version_type
16680
16681 # Format of library name prefix.
16682 libname_spec=$lt_libname_spec
16683
16684 # List of archive names.  First name is the real one, the rest are links.
16685 # The last name is the one that the linker finds with -lNAME.
16686 library_names_spec=$lt_library_names_spec
16687
16688 # The coded name of the library, if different from the real name.
16689 soname_spec=$lt_soname_spec
16690
16691 # Commands used to build and install an old-style archive.
16692 RANLIB=$lt_RANLIB
16693 old_archive_cmds=$lt_old_archive_cmds_F77
16694 old_postinstall_cmds=$lt_old_postinstall_cmds
16695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16696
16697 # Create an old-style archive from a shared archive.
16698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16699
16700 # Create a temporary old-style archive to link instead of a shared archive.
16701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16702
16703 # Commands used to build and install a shared archive.
16704 archive_cmds=$lt_archive_cmds_F77
16705 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16706 postinstall_cmds=$lt_postinstall_cmds
16707 postuninstall_cmds=$lt_postuninstall_cmds
16708
16709 # Commands used to build a loadable module (assumed same as above if empty)
16710 module_cmds=$lt_module_cmds_F77
16711 module_expsym_cmds=$lt_module_expsym_cmds_F77
16712
16713 # Commands to strip libraries.
16714 old_striplib=$lt_old_striplib
16715 striplib=$lt_striplib
16716
16717 # Dependencies to place before the objects being linked to create a
16718 # shared library.
16719 predep_objects=$lt_predep_objects_F77
16720
16721 # Dependencies to place after the objects being linked to create a
16722 # shared library.
16723 postdep_objects=$lt_postdep_objects_F77
16724
16725 # Dependencies to place before the objects being linked to create a
16726 # shared library.
16727 predeps=$lt_predeps_F77
16728
16729 # Dependencies to place after the objects being linked to create a
16730 # shared library.
16731 postdeps=$lt_postdeps_F77
16732
16733 # The directories searched by this compiler when creating a shared
16734 # library
16735 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16736
16737 # The library search path used internally by the compiler when linking
16738 # a shared library.
16739 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16740
16741 # Method to check whether dependent libraries are shared objects.
16742 deplibs_check_method=$lt_deplibs_check_method
16743
16744 # Command to use when deplibs_check_method == file_magic.
16745 file_magic_cmd=$lt_file_magic_cmd
16746
16747 # Flag that allows shared libraries with undefined symbols to be built.
16748 allow_undefined_flag=$lt_allow_undefined_flag_F77
16749
16750 # Flag that forces no undefined symbols.
16751 no_undefined_flag=$lt_no_undefined_flag_F77
16752
16753 # Commands used to finish a libtool library installation in a directory.
16754 finish_cmds=$lt_finish_cmds
16755
16756 # Same as above, but a single script fragment to be evaled but not shown.
16757 finish_eval=$lt_finish_eval
16758
16759 # Take the output of nm and produce a listing of raw symbols and C names.
16760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16761
16762 # Transform the output of nm in a proper C declaration
16763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16764
16765 # Transform the output of nm in a C name address pair
16766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16767
16768 # This is the shared library runtime path variable.
16769 runpath_var=$runpath_var
16770
16771 # This is the shared library path variable.
16772 shlibpath_var=$shlibpath_var
16773
16774 # Is shlibpath searched before the hard-coded library search path?
16775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16776
16777 # How to hardcode a shared library path into an executable.
16778 hardcode_action=$hardcode_action_F77
16779
16780 # Whether we should hardcode library paths into libraries.
16781 hardcode_into_libs=$hardcode_into_libs
16782
16783 # Flag to hardcode \$libdir into a binary during linking.
16784 # This must work even if \$libdir does not exist.
16785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16786
16787 # If ld is used when linking, flag to hardcode \$libdir into
16788 # a binary during linking. This must work even if \$libdir does
16789 # not exist.
16790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16791
16792 # Whether we need a single -rpath flag with a separated argument.
16793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16794
16795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16796 # resulting binary.
16797 hardcode_direct=$hardcode_direct_F77
16798
16799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16800 # resulting binary.
16801 hardcode_minus_L=$hardcode_minus_L_F77
16802
16803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16804 # the resulting binary.
16805 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16806
16807 # Set to yes if building a shared library automatically hardcodes DIR into the library
16808 # and all subsequent libraries and executables linked against it.
16809 hardcode_automatic=$hardcode_automatic_F77
16810
16811 # Variables whose values should be saved in libtool wrapper scripts and
16812 # restored at relink time.
16813 variables_saved_for_relink="$variables_saved_for_relink"
16814
16815 # Whether libtool must link a program against all its dependency libraries.
16816 link_all_deplibs=$link_all_deplibs_F77
16817
16818 # Compile-time system search path for libraries
16819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16820
16821 # Run-time system search path for libraries
16822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16823
16824 # Fix the shell variable \$srcfile for the compiler.
16825 fix_srcfile_path=$lt_fix_srcfile_path
16826
16827 # Set to yes if exported symbols are required.
16828 always_export_symbols=$always_export_symbols_F77
16829
16830 # The commands to list exported symbols.
16831 export_symbols_cmds=$lt_export_symbols_cmds_F77
16832
16833 # The commands to extract the exported symbol list from a shared archive.
16834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16835
16836 # Symbols that should not be listed in the preloaded symbols.
16837 exclude_expsyms=$lt_exclude_expsyms_F77
16838
16839 # Symbols that must always be exported.
16840 include_expsyms=$lt_include_expsyms_F77
16841
16842 # ### END LIBTOOL TAG CONFIG: $tagname
16843
16844 __EOF__
16845
16846
16847 else
16848   # If there is no Makefile yet, we rely on a make rule to execute
16849   # `config.status --recheck' to rerun these tests and create the
16850   # libtool script then.
16851   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16852   if test -f "$ltmain_in"; then
16853     test -f Makefile && make "$ltmain"
16854   fi
16855 fi
16856
16857
16858 ac_ext=c
16859 ac_cpp='$CPP $CPPFLAGS'
16860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16863
16864 CC="$lt_save_CC"
16865
16866         else
16867           tagname=""
16868         fi
16869         ;;
16870
16871       GCJ)
16872         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16873
16874
16875 # Source file extension for Java test sources.
16876 ac_ext=java
16877
16878 # Object file extension for compiled Java test sources.
16879 objext=o
16880 objext_GCJ=$objext
16881
16882 # Code to be used in simple compile tests
16883 lt_simple_compile_test_code="class foo {}"
16884
16885 # Code to be used in simple link tests
16886 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16887
16888 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16889
16890 # If no C compiler was specified, use CC.
16891 LTCC=${LTCC-"$CC"}
16892
16893 # If no C compiler flags were specified, use CFLAGS.
16894 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16895
16896 # Allow CC to be a program name with arguments.
16897 compiler=$CC
16898
16899
16900 # save warnings/boilerplate of simple test code
16901 ac_outfile=conftest.$ac_objext
16902 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16903 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16904 _lt_compiler_boilerplate=`cat conftest.err`
16905 $rm conftest*
16906
16907 ac_outfile=conftest.$ac_objext
16908 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16909 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16910 _lt_linker_boilerplate=`cat conftest.err`
16911 $rm -r conftest*
16912
16913
16914 # Allow CC to be a program name with arguments.
16915 lt_save_CC="$CC"
16916 CC=${GCJ-"gcj"}
16917 compiler=$CC
16918 compiler_GCJ=$CC
16919 for cc_temp in $compiler""; do
16920   case $cc_temp in
16921     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16922     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16923     \-*) ;;
16924     *) break;;
16925   esac
16926 done
16927 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16928
16929
16930 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16931 archive_cmds_need_lc_GCJ=no
16932
16933 old_archive_cmds_GCJ=$old_archive_cmds
16934
16935
16936 lt_prog_compiler_no_builtin_flag_GCJ=
16937
16938 if test "$GCC" = yes; then
16939   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16940
16941
16942 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16943 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16944 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16945   echo $ECHO_N "(cached) $ECHO_C" >&6
16946 else
16947   lt_cv_prog_compiler_rtti_exceptions=no
16948   ac_outfile=conftest.$ac_objext
16949    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16950    lt_compiler_flag="-fno-rtti -fno-exceptions"
16951    # Insert the option either (1) after the last *FLAGS variable, or
16952    # (2) before a word containing "conftest.", or (3) at the end.
16953    # Note that $ac_compile itself does not contain backslashes and begins
16954    # with a dollar sign (not a hyphen), so the echo should work correctly.
16955    # The option is referenced via a variable to avoid confusing sed.
16956    lt_compile=`echo "$ac_compile" | $SED \
16957    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16958    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16959    -e 's:$: $lt_compiler_flag:'`
16960    (eval echo "\"\$as_me:16960: $lt_compile\"" >&5)
16961    (eval "$lt_compile" 2>conftest.err)
16962    ac_status=$?
16963    cat conftest.err >&5
16964    echo "$as_me:16964: \$? = $ac_status" >&5
16965    if (exit $ac_status) && test -s "$ac_outfile"; then
16966      # The compiler can only warn and ignore the option if not recognized
16967      # So say no if there are warnings other than the usual output.
16968      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16969      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16970      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16971        lt_cv_prog_compiler_rtti_exceptions=yes
16972      fi
16973    fi
16974    $rm conftest*
16975
16976 fi
16977 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16978 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16979
16980 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16981     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16982 else
16983     :
16984 fi
16985
16986 fi
16987
16988 lt_prog_compiler_wl_GCJ=
16989 lt_prog_compiler_pic_GCJ=
16990 lt_prog_compiler_static_GCJ=
16991
16992 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16993 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16994
16995   if test "$GCC" = yes; then
16996     lt_prog_compiler_wl_GCJ='-Wl,'
16997     lt_prog_compiler_static_GCJ='-static'
16998
16999     case $host_os in
17000       aix*)
17001       # All AIX code is PIC.
17002       if test "$host_cpu" = ia64; then
17003         # AIX 5 now supports IA64 processor
17004         lt_prog_compiler_static_GCJ='-Bstatic'
17005       fi
17006       ;;
17007
17008     amigaos*)
17009       # FIXME: we need at least 68020 code to build shared libraries, but
17010       # adding the `-m68020' flag to GCC prevents building anything better,
17011       # like `-m68040'.
17012       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17013       ;;
17014
17015     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17016       # PIC is the default for these OSes.
17017       ;;
17018
17019     mingw* | cygwin* | pw32* | os2*)
17020       # This hack is so that the source file can tell whether it is being
17021       # built for inclusion in a dll (and should export symbols for example).
17022       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17023       # (--disable-auto-import) libraries
17024
17025       ;;
17026
17027     darwin* | rhapsody*)
17028       # PIC is the default on this platform
17029       # Common symbols not allowed in MH_DYLIB files
17030       lt_prog_compiler_pic_GCJ='-fno-common'
17031       ;;
17032
17033     interix[3-9]*)
17034       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17035       # Instead, we relocate shared libraries at runtime.
17036       ;;
17037
17038     msdosdjgpp*)
17039       # Just because we use GCC doesn't mean we suddenly get shared libraries
17040       # on systems that don't support them.
17041       lt_prog_compiler_can_build_shared_GCJ=no
17042       enable_shared=no
17043       ;;
17044
17045     sysv4*MP*)
17046       if test -d /usr/nec; then
17047         lt_prog_compiler_pic_GCJ=-Kconform_pic
17048       fi
17049       ;;
17050
17051     hpux*)
17052       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17053       # not for PA HP-UX.
17054       case $host_cpu in
17055       hppa*64*|ia64*)
17056         # +Z the default
17057         ;;
17058       *)
17059         lt_prog_compiler_pic_GCJ='-fPIC'
17060         ;;
17061       esac
17062       ;;
17063
17064     *)
17065       lt_prog_compiler_pic_GCJ='-fPIC'
17066       ;;
17067     esac
17068   else
17069     # PORTME Check for flag to pass linker flags through the system compiler.
17070     case $host_os in
17071     aix*)
17072       lt_prog_compiler_wl_GCJ='-Wl,'
17073       if test "$host_cpu" = ia64; then
17074         # AIX 5 now supports IA64 processor
17075         lt_prog_compiler_static_GCJ='-Bstatic'
17076       else
17077         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17078       fi
17079       ;;
17080       darwin*)
17081         # PIC is the default on this platform
17082         # Common symbols not allowed in MH_DYLIB files
17083        case $cc_basename in
17084          xlc*)
17085          lt_prog_compiler_pic_GCJ='-qnocommon'
17086          lt_prog_compiler_wl_GCJ='-Wl,'
17087          ;;
17088        esac
17089        ;;
17090
17091     mingw* | cygwin* | pw32* | os2*)
17092       # This hack is so that the source file can tell whether it is being
17093       # built for inclusion in a dll (and should export symbols for example).
17094
17095       ;;
17096
17097     hpux9* | hpux10* | hpux11*)
17098       lt_prog_compiler_wl_GCJ='-Wl,'
17099       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17100       # not for PA HP-UX.
17101       case $host_cpu in
17102       hppa*64*|ia64*)
17103         # +Z the default
17104         ;;
17105       *)
17106         lt_prog_compiler_pic_GCJ='+Z'
17107         ;;
17108       esac
17109       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17110       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17111       ;;
17112
17113     irix5* | irix6* | nonstopux*)
17114       lt_prog_compiler_wl_GCJ='-Wl,'
17115       # PIC (with -KPIC) is the default.
17116       lt_prog_compiler_static_GCJ='-non_shared'
17117       ;;
17118
17119     newsos6)
17120       lt_prog_compiler_pic_GCJ='-KPIC'
17121       lt_prog_compiler_static_GCJ='-Bstatic'
17122       ;;
17123
17124     linux* | k*bsd*-gnu)
17125       case $cc_basename in
17126       icc* | ecc*)
17127         lt_prog_compiler_wl_GCJ='-Wl,'
17128         lt_prog_compiler_pic_GCJ='-KPIC'
17129         lt_prog_compiler_static_GCJ='-static'
17130         ;;
17131       pgcc* | pgf77* | pgf90* | pgf95*)
17132         # Portland Group compilers (*not* the Pentium gcc compiler,
17133         # which looks to be a dead project)
17134         lt_prog_compiler_wl_GCJ='-Wl,'
17135         lt_prog_compiler_pic_GCJ='-fpic'
17136         lt_prog_compiler_static_GCJ='-Bstatic'
17137         ;;
17138       ccc*)
17139         lt_prog_compiler_wl_GCJ='-Wl,'
17140         # All Alpha code is PIC.
17141         lt_prog_compiler_static_GCJ='-non_shared'
17142         ;;
17143       *)
17144         case `$CC -V 2>&1 | sed 5q` in
17145         *Sun\ C*)
17146           # Sun C 5.9
17147           lt_prog_compiler_pic_GCJ='-KPIC'
17148           lt_prog_compiler_static_GCJ='-Bstatic'
17149           lt_prog_compiler_wl_GCJ='-Wl,'
17150           ;;
17151         *Sun\ F*)
17152           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17153           lt_prog_compiler_pic_GCJ='-KPIC'
17154           lt_prog_compiler_static_GCJ='-Bstatic'
17155           lt_prog_compiler_wl_GCJ=''
17156           ;;
17157         esac
17158         ;;
17159       esac
17160       ;;
17161
17162     osf3* | osf4* | osf5*)
17163       lt_prog_compiler_wl_GCJ='-Wl,'
17164       # All OSF/1 code is PIC.
17165       lt_prog_compiler_static_GCJ='-non_shared'
17166       ;;
17167
17168     rdos*)
17169       lt_prog_compiler_static_GCJ='-non_shared'
17170       ;;
17171
17172     solaris*)
17173       lt_prog_compiler_pic_GCJ='-KPIC'
17174       lt_prog_compiler_static_GCJ='-Bstatic'
17175       case $cc_basename in
17176       f77* | f90* | f95*)
17177         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17178       *)
17179         lt_prog_compiler_wl_GCJ='-Wl,';;
17180       esac
17181       ;;
17182
17183     sunos4*)
17184       lt_prog_compiler_wl_GCJ='-Qoption ld '
17185       lt_prog_compiler_pic_GCJ='-PIC'
17186       lt_prog_compiler_static_GCJ='-Bstatic'
17187       ;;
17188
17189     sysv4 | sysv4.2uw2* | sysv4.3*)
17190       lt_prog_compiler_wl_GCJ='-Wl,'
17191       lt_prog_compiler_pic_GCJ='-KPIC'
17192       lt_prog_compiler_static_GCJ='-Bstatic'
17193       ;;
17194
17195     sysv4*MP*)
17196       if test -d /usr/nec ;then
17197         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17198         lt_prog_compiler_static_GCJ='-Bstatic'
17199       fi
17200       ;;
17201
17202     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17203       lt_prog_compiler_wl_GCJ='-Wl,'
17204       lt_prog_compiler_pic_GCJ='-KPIC'
17205       lt_prog_compiler_static_GCJ='-Bstatic'
17206       ;;
17207
17208     unicos*)
17209       lt_prog_compiler_wl_GCJ='-Wl,'
17210       lt_prog_compiler_can_build_shared_GCJ=no
17211       ;;
17212
17213     uts4*)
17214       lt_prog_compiler_pic_GCJ='-pic'
17215       lt_prog_compiler_static_GCJ='-Bstatic'
17216       ;;
17217
17218     *)
17219       lt_prog_compiler_can_build_shared_GCJ=no
17220       ;;
17221     esac
17222   fi
17223
17224 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17225 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17226
17227 #
17228 # Check to make sure the PIC flag actually works.
17229 #
17230 if test -n "$lt_prog_compiler_pic_GCJ"; then
17231
17232 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17233 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17234 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17235   echo $ECHO_N "(cached) $ECHO_C" >&6
17236 else
17237   lt_cv_prog_compiler_pic_works_GCJ=no
17238   ac_outfile=conftest.$ac_objext
17239    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17240    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17241    # Insert the option either (1) after the last *FLAGS variable, or
17242    # (2) before a word containing "conftest.", or (3) at the end.
17243    # Note that $ac_compile itself does not contain backslashes and begins
17244    # with a dollar sign (not a hyphen), so the echo should work correctly.
17245    # The option is referenced via a variable to avoid confusing sed.
17246    lt_compile=`echo "$ac_compile" | $SED \
17247    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17248    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17249    -e 's:$: $lt_compiler_flag:'`
17250    (eval echo "\"\$as_me:17250: $lt_compile\"" >&5)
17251    (eval "$lt_compile" 2>conftest.err)
17252    ac_status=$?
17253    cat conftest.err >&5
17254    echo "$as_me:17254: \$? = $ac_status" >&5
17255    if (exit $ac_status) && test -s "$ac_outfile"; then
17256      # The compiler can only warn and ignore the option if not recognized
17257      # So say no if there are warnings other than the usual output.
17258      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17259      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17260      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17261        lt_cv_prog_compiler_pic_works_GCJ=yes
17262      fi
17263    fi
17264    $rm conftest*
17265
17266 fi
17267 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17268 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17269
17270 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17271     case $lt_prog_compiler_pic_GCJ in
17272      "" | " "*) ;;
17273      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17274      esac
17275 else
17276     lt_prog_compiler_pic_GCJ=
17277      lt_prog_compiler_can_build_shared_GCJ=no
17278 fi
17279
17280 fi
17281 case $host_os in
17282   # For platforms which do not support PIC, -DPIC is meaningless:
17283   *djgpp*)
17284     lt_prog_compiler_pic_GCJ=
17285     ;;
17286   *)
17287     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17288     ;;
17289 esac
17290
17291 #
17292 # Check to make sure the static flag actually works.
17293 #
17294 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17295 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17296 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17297 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17298   echo $ECHO_N "(cached) $ECHO_C" >&6
17299 else
17300   lt_cv_prog_compiler_static_works_GCJ=no
17301    save_LDFLAGS="$LDFLAGS"
17302    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17303    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17304    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17305      # The linker can only warn and ignore the option if not recognized
17306      # So say no if there are warnings
17307      if test -s conftest.err; then
17308        # Append any errors to the config.log.
17309        cat conftest.err 1>&5
17310        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17311        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17312        if diff conftest.exp conftest.er2 >/dev/null; then
17313          lt_cv_prog_compiler_static_works_GCJ=yes
17314        fi
17315      else
17316        lt_cv_prog_compiler_static_works_GCJ=yes
17317      fi
17318    fi
17319    $rm -r conftest*
17320    LDFLAGS="$save_LDFLAGS"
17321
17322 fi
17323 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17324 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17325
17326 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17327     :
17328 else
17329     lt_prog_compiler_static_GCJ=
17330 fi
17331
17332
17333 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17334 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17335 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17336   echo $ECHO_N "(cached) $ECHO_C" >&6
17337 else
17338   lt_cv_prog_compiler_c_o_GCJ=no
17339    $rm -r conftest 2>/dev/null
17340    mkdir conftest
17341    cd conftest
17342    mkdir out
17343    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17344
17345    lt_compiler_flag="-o out/conftest2.$ac_objext"
17346    # Insert the option either (1) after the last *FLAGS variable, or
17347    # (2) before a word containing "conftest.", or (3) at the end.
17348    # Note that $ac_compile itself does not contain backslashes and begins
17349    # with a dollar sign (not a hyphen), so the echo should work correctly.
17350    lt_compile=`echo "$ac_compile" | $SED \
17351    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17353    -e 's:$: $lt_compiler_flag:'`
17354    (eval echo "\"\$as_me:17354: $lt_compile\"" >&5)
17355    (eval "$lt_compile" 2>out/conftest.err)
17356    ac_status=$?
17357    cat out/conftest.err >&5
17358    echo "$as_me:17358: \$? = $ac_status" >&5
17359    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17360    then
17361      # The compiler can only warn and ignore the option if not recognized
17362      # So say no if there are warnings
17363      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17364      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17365      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17366        lt_cv_prog_compiler_c_o_GCJ=yes
17367      fi
17368    fi
17369    chmod u+w . 2>&5
17370    $rm conftest*
17371    # SGI C++ compiler will create directory out/ii_files/ for
17372    # template instantiation
17373    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17374    $rm out/* && rmdir out
17375    cd ..
17376    rmdir conftest
17377    $rm conftest*
17378
17379 fi
17380 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17381 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17382
17383
17384 hard_links="nottested"
17385 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17386   # do not overwrite the value of need_locks provided by the user
17387   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17388 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17389   hard_links=yes
17390   $rm conftest*
17391   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17392   touch conftest.a
17393   ln conftest.a conftest.b 2>&5 || hard_links=no
17394   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17395   { echo "$as_me:$LINENO: result: $hard_links" >&5
17396 echo "${ECHO_T}$hard_links" >&6; }
17397   if test "$hard_links" = no; then
17398     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17399 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17400     need_locks=warn
17401   fi
17402 else
17403   need_locks=no
17404 fi
17405
17406 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17407 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17408
17409   runpath_var=
17410   allow_undefined_flag_GCJ=
17411   enable_shared_with_static_runtimes_GCJ=no
17412   archive_cmds_GCJ=
17413   archive_expsym_cmds_GCJ=
17414   old_archive_From_new_cmds_GCJ=
17415   old_archive_from_expsyms_cmds_GCJ=
17416   export_dynamic_flag_spec_GCJ=
17417   whole_archive_flag_spec_GCJ=
17418   thread_safe_flag_spec_GCJ=
17419   hardcode_libdir_flag_spec_GCJ=
17420   hardcode_libdir_flag_spec_ld_GCJ=
17421   hardcode_libdir_separator_GCJ=
17422   hardcode_direct_GCJ=no
17423   hardcode_minus_L_GCJ=no
17424   hardcode_shlibpath_var_GCJ=unsupported
17425   link_all_deplibs_GCJ=unknown
17426   hardcode_automatic_GCJ=no
17427   module_cmds_GCJ=
17428   module_expsym_cmds_GCJ=
17429   always_export_symbols_GCJ=no
17430   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17431   # include_expsyms should be a list of space-separated symbols to be *always*
17432   # included in the symbol list
17433   include_expsyms_GCJ=
17434   # exclude_expsyms can be an extended regexp of symbols to exclude
17435   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17436   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17437   # as well as any symbol that contains `d'.
17438   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17439   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17440   # platforms (ab)use it in PIC code, but their linkers get confused if
17441   # the symbol is explicitly referenced.  Since portable code cannot
17442   # rely on this symbol name, it's probably fine to never include it in
17443   # preloaded symbol tables.
17444   # Exclude shared library initialization/finalization symbols.
17445   extract_expsyms_cmds=
17446   # Just being paranoid about ensuring that cc_basename is set.
17447   for cc_temp in $compiler""; do
17448   case $cc_temp in
17449     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17450     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17451     \-*) ;;
17452     *) break;;
17453   esac
17454 done
17455 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17456
17457   case $host_os in
17458   cygwin* | mingw* | pw32*)
17459     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17460     # When not using gcc, we currently assume that we are using
17461     # Microsoft Visual C++.
17462     if test "$GCC" != yes; then
17463       with_gnu_ld=no
17464     fi
17465     ;;
17466   interix*)
17467     # we just hope/assume this is gcc and not c89 (= MSVC++)
17468     with_gnu_ld=yes
17469     ;;
17470   openbsd*)
17471     with_gnu_ld=no
17472     ;;
17473   esac
17474
17475   ld_shlibs_GCJ=yes
17476   if test "$with_gnu_ld" = yes; then
17477     # If archive_cmds runs LD, not CC, wlarc should be empty
17478     wlarc='${wl}'
17479
17480     # Set some defaults for GNU ld with shared library support. These
17481     # are reset later if shared libraries are not supported. Putting them
17482     # here allows them to be overridden if necessary.
17483     runpath_var=LD_RUN_PATH
17484     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17485     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17486     # ancient GNU ld didn't support --whole-archive et. al.
17487     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17488         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17489       else
17490         whole_archive_flag_spec_GCJ=
17491     fi
17492     supports_anon_versioning=no
17493     case `$LD -v 2>/dev/null` in
17494       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17495       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17496       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17497       *\ 2.11.*) ;; # other 2.11 versions
17498       *) supports_anon_versioning=yes ;;
17499     esac
17500
17501     # See if GNU ld supports shared libraries.
17502     case $host_os in
17503     aix[3-9]*)
17504       # On AIX/PPC, the GNU linker is very broken
17505       if test "$host_cpu" != ia64; then
17506         ld_shlibs_GCJ=no
17507         cat <<EOF 1>&2
17508
17509 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17510 *** to be unable to reliably create shared libraries on AIX.
17511 *** Therefore, libtool is disabling shared libraries support.  If you
17512 *** really care for shared libraries, you may want to modify your PATH
17513 *** so that a non-GNU linker is found, and then restart.
17514
17515 EOF
17516       fi
17517       ;;
17518
17519     amigaos*)
17520       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)'
17521       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17522       hardcode_minus_L_GCJ=yes
17523
17524       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17525       # that the semantics of dynamic libraries on AmigaOS, at least up
17526       # to version 4, is to share data among multiple programs linked
17527       # with the same dynamic library.  Since this doesn't match the
17528       # behavior of shared libraries on other platforms, we can't use
17529       # them.
17530       ld_shlibs_GCJ=no
17531       ;;
17532
17533     beos*)
17534       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17535         allow_undefined_flag_GCJ=unsupported
17536         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17537         # support --undefined.  This deserves some investigation.  FIXME
17538         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17539       else
17540         ld_shlibs_GCJ=no
17541       fi
17542       ;;
17543
17544     cygwin* | mingw* | pw32*)
17545       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17546       # as there is no search path for DLLs.
17547       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17548       allow_undefined_flag_GCJ=unsupported
17549       always_export_symbols_GCJ=no
17550       enable_shared_with_static_runtimes_GCJ=yes
17551       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17552
17553       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17554         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17555         # If the export-symbols file already is a .def file (1st line
17556         # is EXPORTS), use it as is; otherwise, prepend...
17557         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17558           cp $export_symbols $output_objdir/$soname.def;
17559         else
17560           echo EXPORTS > $output_objdir/$soname.def;
17561           cat $export_symbols >> $output_objdir/$soname.def;
17562         fi~
17563         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17564       else
17565         ld_shlibs_GCJ=no
17566       fi
17567       ;;
17568
17569     interix[3-9]*)
17570       hardcode_direct_GCJ=no
17571       hardcode_shlibpath_var_GCJ=no
17572       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17573       export_dynamic_flag_spec_GCJ='${wl}-E'
17574       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17575       # Instead, shared libraries are loaded at an image base (0x10000000 by
17576       # default) and relocated if they conflict, which is a slow very memory
17577       # consuming and fragmenting process.  To avoid this, we pick a random,
17578       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17579       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17580       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'
17581       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'
17582       ;;
17583
17584     gnu* | linux* | k*bsd*-gnu)
17585       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17586         tmp_addflag=
17587         case $cc_basename,$host_cpu in
17588         pgcc*)                          # Portland Group C compiler
17589           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'
17590           tmp_addflag=' $pic_flag'
17591           ;;
17592         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17593           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'
17594           tmp_addflag=' $pic_flag -Mnomain' ;;
17595         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17596           tmp_addflag=' -i_dynamic' ;;
17597         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17598           tmp_addflag=' -i_dynamic -nofor_main' ;;
17599         ifc* | ifort*)                  # Intel Fortran compiler
17600           tmp_addflag=' -nofor_main' ;;
17601         esac
17602         case `$CC -V 2>&1 | sed 5q` in
17603         *Sun\ C*)                       # Sun C 5.9
17604           whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17605           tmp_sharedflag='-G' ;;
17606         *Sun\ F*)                       # Sun Fortran 8.3
17607           tmp_sharedflag='-G' ;;
17608         *)
17609           tmp_sharedflag='-shared' ;;
17610         esac
17611         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17612
17613         if test $supports_anon_versioning = yes; then
17614           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17615   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17616   $echo "local: *; };" >> $output_objdir/$libname.ver~
17617           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17618         fi
17619         link_all_deplibs_GCJ=no
17620       else
17621         ld_shlibs_GCJ=no
17622       fi
17623       ;;
17624
17625     netbsd* | netbsdelf*-gnu)
17626       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17627         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17628         wlarc=
17629       else
17630         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17631         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17632       fi
17633       ;;
17634
17635     solaris*)
17636       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17637         ld_shlibs_GCJ=no
17638         cat <<EOF 1>&2
17639
17640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17641 *** create shared libraries on Solaris systems.  Therefore, libtool
17642 *** is disabling shared libraries support.  We urge you to upgrade GNU
17643 *** binutils to release 2.9.1 or newer.  Another option is to modify
17644 *** your PATH or compiler configuration so that the native linker is
17645 *** used, and then restart.
17646
17647 EOF
17648       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17649         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17650         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17651       else
17652         ld_shlibs_GCJ=no
17653       fi
17654       ;;
17655
17656     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17657       case `$LD -v 2>&1` in
17658         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17659         ld_shlibs_GCJ=no
17660         cat <<_LT_EOF 1>&2
17661
17662 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17663 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17664 *** is disabling shared libraries support.  We urge you to upgrade GNU
17665 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17666 *** your PATH or compiler configuration so that the native linker is
17667 *** used, and then restart.
17668
17669 _LT_EOF
17670         ;;
17671         *)
17672           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17673             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17674             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17675             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17676           else
17677             ld_shlibs_GCJ=no
17678           fi
17679         ;;
17680       esac
17681       ;;
17682
17683     sunos4*)
17684       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17685       wlarc=
17686       hardcode_direct_GCJ=yes
17687       hardcode_shlibpath_var_GCJ=no
17688       ;;
17689
17690     *)
17691       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17692         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17693         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17694       else
17695         ld_shlibs_GCJ=no
17696       fi
17697       ;;
17698     esac
17699
17700     if test "$ld_shlibs_GCJ" = no; then
17701       runpath_var=
17702       hardcode_libdir_flag_spec_GCJ=
17703       export_dynamic_flag_spec_GCJ=
17704       whole_archive_flag_spec_GCJ=
17705     fi
17706   else
17707     # PORTME fill in a description of your system's linker (not GNU ld)
17708     case $host_os in
17709     aix3*)
17710       allow_undefined_flag_GCJ=unsupported
17711       always_export_symbols_GCJ=yes
17712       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'
17713       # Note: this linker hardcodes the directories in LIBPATH if there
17714       # are no directories specified by -L.
17715       hardcode_minus_L_GCJ=yes
17716       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17717         # Neither direct hardcoding nor static linking is supported with a
17718         # broken collect2.
17719         hardcode_direct_GCJ=unsupported
17720       fi
17721       ;;
17722
17723     aix[4-9]*)
17724       if test "$host_cpu" = ia64; then
17725         # On IA64, the linker does run time linking by default, so we don't
17726         # have to do anything special.
17727         aix_use_runtimelinking=no
17728         exp_sym_flag='-Bexport'
17729         no_entry_flag=""
17730       else
17731         # If we're using GNU nm, then we don't want the "-C" option.
17732         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17733         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17734           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'
17735         else
17736           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'
17737         fi
17738         aix_use_runtimelinking=no
17739
17740         # Test if we are trying to use run time linking or normal
17741         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17742         # need to do runtime linking.
17743         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17744           for ld_flag in $LDFLAGS; do
17745           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17746             aix_use_runtimelinking=yes
17747             break
17748           fi
17749           done
17750           ;;
17751         esac
17752
17753         exp_sym_flag='-bexport'
17754         no_entry_flag='-bnoentry'
17755       fi
17756
17757       # When large executables or shared objects are built, AIX ld can
17758       # have problems creating the table of contents.  If linking a library
17759       # or program results in "error TOC overflow" add -mminimal-toc to
17760       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17761       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17762
17763       archive_cmds_GCJ=''
17764       hardcode_direct_GCJ=yes
17765       hardcode_libdir_separator_GCJ=':'
17766       link_all_deplibs_GCJ=yes
17767
17768       if test "$GCC" = yes; then
17769         case $host_os in aix4.[012]|aix4.[012].*)
17770         # We only want to do this on AIX 4.2 and lower, the check
17771         # below for broken collect2 doesn't work under 4.3+
17772           collect2name=`${CC} -print-prog-name=collect2`
17773           if test -f "$collect2name" && \
17774            strings "$collect2name" | grep resolve_lib_name >/dev/null
17775           then
17776           # We have reworked collect2
17777           :
17778           else
17779           # We have old collect2
17780           hardcode_direct_GCJ=unsupported
17781           # It fails to find uninstalled libraries when the uninstalled
17782           # path is not listed in the libpath.  Setting hardcode_minus_L
17783           # to unsupported forces relinking
17784           hardcode_minus_L_GCJ=yes
17785           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17786           hardcode_libdir_separator_GCJ=
17787           fi
17788           ;;
17789         esac
17790         shared_flag='-shared'
17791         if test "$aix_use_runtimelinking" = yes; then
17792           shared_flag="$shared_flag "'${wl}-G'
17793         fi
17794       else
17795         # not using gcc
17796         if test "$host_cpu" = ia64; then
17797         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17798         # chokes on -Wl,-G. The following line is correct:
17799           shared_flag='-G'
17800         else
17801           if test "$aix_use_runtimelinking" = yes; then
17802             shared_flag='${wl}-G'
17803           else
17804             shared_flag='${wl}-bM:SRE'
17805           fi
17806         fi
17807       fi
17808
17809       # It seems that -bexpall does not export symbols beginning with
17810       # underscore (_), so it is better to generate a list of symbols to export.
17811       always_export_symbols_GCJ=yes
17812       if test "$aix_use_runtimelinking" = yes; then
17813         # Warning - without using the other runtime loading flags (-brtl),
17814         # -berok will link without error, but may produce a broken library.
17815         allow_undefined_flag_GCJ='-berok'
17816        # Determine the default libpath from the value encoded in an empty executable.
17817        cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823
17824 int
17825 main ()
17826 {
17827
17828   ;
17829   return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_link") 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } && {
17846          test -z "$ac_c_werror_flag" ||
17847          test ! -s conftest.err
17848        } && test -s conftest$ac_exeext &&
17849        $as_test_x conftest$ac_exeext; then
17850
17851 lt_aix_libpath_sed='
17852     /Import File Strings/,/^$/ {
17853         /^0/ {
17854             s/^0  *\(.*\)$/\1/
17855             p
17856         }
17857     }'
17858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17859 # Check for a 64-bit object if we didn't find anything.
17860 if test -z "$aix_libpath"; then
17861   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17862 fi
17863 else
17864   echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17866
17867
17868 fi
17869
17870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17871       conftest$ac_exeext conftest.$ac_ext
17872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17873
17874        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17875         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"
17876        else
17877         if test "$host_cpu" = ia64; then
17878           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17879           allow_undefined_flag_GCJ="-z nodefs"
17880           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"
17881         else
17882          # Determine the default libpath from the value encoded in an empty executable.
17883          cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h.  */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h.  */
17889
17890 int
17891 main ()
17892 {
17893
17894   ;
17895   return 0;
17896 }
17897 _ACEOF
17898 rm -f conftest.$ac_objext conftest$ac_exeext
17899 if { (ac_try="$ac_link"
17900 case "(($ac_try" in
17901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902   *) ac_try_echo=$ac_try;;
17903 esac
17904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905   (eval "$ac_link") 2>conftest.er1
17906   ac_status=$?
17907   grep -v '^ *+' conftest.er1 >conftest.err
17908   rm -f conftest.er1
17909   cat conftest.err >&5
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } && {
17912          test -z "$ac_c_werror_flag" ||
17913          test ! -s conftest.err
17914        } && test -s conftest$ac_exeext &&
17915        $as_test_x conftest$ac_exeext; then
17916
17917 lt_aix_libpath_sed='
17918     /Import File Strings/,/^$/ {
17919         /^0/ {
17920             s/^0  *\(.*\)$/\1/
17921             p
17922         }
17923     }'
17924 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17925 # Check for a 64-bit object if we didn't find anything.
17926 if test -z "$aix_libpath"; then
17927   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17928 fi
17929 else
17930   echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933
17934 fi
17935
17936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17937       conftest$ac_exeext conftest.$ac_ext
17938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17939
17940          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17941           # Warning - without using the other run time loading flags,
17942           # -berok will link without error, but may produce a broken library.
17943           no_undefined_flag_GCJ=' ${wl}-bernotok'
17944           allow_undefined_flag_GCJ=' ${wl}-berok'
17945           # Exported symbols can be pulled into shared objects from archives
17946           whole_archive_flag_spec_GCJ='$convenience'
17947           archive_cmds_need_lc_GCJ=yes
17948           # This is similar to how AIX traditionally builds its shared libraries.
17949           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'
17950         fi
17951       fi
17952       ;;
17953
17954     amigaos*)
17955       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)'
17956       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17957       hardcode_minus_L_GCJ=yes
17958       # see comment about different semantics on the GNU ld section
17959       ld_shlibs_GCJ=no
17960       ;;
17961
17962     bsdi[45]*)
17963       export_dynamic_flag_spec_GCJ=-rdynamic
17964       ;;
17965
17966     cygwin* | mingw* | pw32*)
17967       # When not using gcc, we currently assume that we are using
17968       # Microsoft Visual C++.
17969       # hardcode_libdir_flag_spec is actually meaningless, as there is
17970       # no search path for DLLs.
17971       hardcode_libdir_flag_spec_GCJ=' '
17972       allow_undefined_flag_GCJ=unsupported
17973       # Tell ltmain to make .lib files, not .a files.
17974       libext=lib
17975       # Tell ltmain to make .dll files, not .so files.
17976       shrext_cmds=".dll"
17977       # FIXME: Setting linknames here is a bad hack.
17978       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17979       # The linker will automatically build a .lib file if we build a DLL.
17980       old_archive_From_new_cmds_GCJ='true'
17981       # FIXME: Should let the user specify the lib program.
17982       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17983       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17984       enable_shared_with_static_runtimes_GCJ=yes
17985       ;;
17986
17987     darwin* | rhapsody*)
17988       case $host_os in
17989         rhapsody* | darwin1.[012])
17990          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17991          ;;
17992        *) # Darwin 1.3 on
17993          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17994            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17995          else
17996            case ${MACOSX_DEPLOYMENT_TARGET} in
17997              10.[012])
17998                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17999                ;;
18000              10.*)
18001                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18002                ;;
18003            esac
18004          fi
18005          ;;
18006       esac
18007       archive_cmds_need_lc_GCJ=no
18008       hardcode_direct_GCJ=no
18009       hardcode_automatic_GCJ=yes
18010       hardcode_shlibpath_var_GCJ=unsupported
18011       whole_archive_flag_spec_GCJ=''
18012       link_all_deplibs_GCJ=yes
18013     if test "$GCC" = yes ; then
18014         output_verbose_link_cmd='echo'
18015         archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18016         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18017         archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
18018         module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
18019     else
18020       case $cc_basename in
18021         xlc*)
18022          output_verbose_link_cmd='echo'
18023          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18024          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18025           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18026          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18027           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}'
18028           ;;
18029        *)
18030          ld_shlibs_GCJ=no
18031           ;;
18032       esac
18033     fi
18034       ;;
18035
18036     dgux*)
18037       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18038       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18039       hardcode_shlibpath_var_GCJ=no
18040       ;;
18041
18042     freebsd1*)
18043       ld_shlibs_GCJ=no
18044       ;;
18045
18046     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18047     # support.  Future versions do this automatically, but an explicit c++rt0.o
18048     # does not break anything, and helps significantly (at the cost of a little
18049     # extra space).
18050     freebsd2.2*)
18051       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18052       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18053       hardcode_direct_GCJ=yes
18054       hardcode_shlibpath_var_GCJ=no
18055       ;;
18056
18057     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18058     freebsd2*)
18059       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18060       hardcode_direct_GCJ=yes
18061       hardcode_minus_L_GCJ=yes
18062       hardcode_shlibpath_var_GCJ=no
18063       ;;
18064
18065     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18066     freebsd* | dragonfly*)
18067       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18068       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18069       hardcode_direct_GCJ=yes
18070       hardcode_shlibpath_var_GCJ=no
18071       ;;
18072
18073     hpux9*)
18074       if test "$GCC" = yes; then
18075         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'
18076       else
18077         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'
18078       fi
18079       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18080       hardcode_libdir_separator_GCJ=:
18081       hardcode_direct_GCJ=yes
18082
18083       # hardcode_minus_L: Not really in the search PATH,
18084       # but as the default location of the library.
18085       hardcode_minus_L_GCJ=yes
18086       export_dynamic_flag_spec_GCJ='${wl}-E'
18087       ;;
18088
18089     hpux10*)
18090       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18091         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18092       else
18093         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18094       fi
18095       if test "$with_gnu_ld" = no; then
18096         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18097         hardcode_libdir_separator_GCJ=:
18098
18099         hardcode_direct_GCJ=yes
18100         export_dynamic_flag_spec_GCJ='${wl}-E'
18101
18102         # hardcode_minus_L: Not really in the search PATH,
18103         # but as the default location of the library.
18104         hardcode_minus_L_GCJ=yes
18105       fi
18106       ;;
18107
18108     hpux11*)
18109       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18110         case $host_cpu in
18111         hppa*64*)
18112           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18113           ;;
18114         ia64*)
18115           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18116           ;;
18117         *)
18118           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18119           ;;
18120         esac
18121       else
18122         case $host_cpu in
18123         hppa*64*)
18124           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18125           ;;
18126         ia64*)
18127           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18128           ;;
18129         *)
18130           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18131           ;;
18132         esac
18133       fi
18134       if test "$with_gnu_ld" = no; then
18135         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18136         hardcode_libdir_separator_GCJ=:
18137
18138         case $host_cpu in
18139         hppa*64*|ia64*)
18140           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18141           hardcode_direct_GCJ=no
18142           hardcode_shlibpath_var_GCJ=no
18143           ;;
18144         *)
18145           hardcode_direct_GCJ=yes
18146           export_dynamic_flag_spec_GCJ='${wl}-E'
18147
18148           # hardcode_minus_L: Not really in the search PATH,
18149           # but as the default location of the library.
18150           hardcode_minus_L_GCJ=yes
18151           ;;
18152         esac
18153       fi
18154       ;;
18155
18156     irix5* | irix6* | nonstopux*)
18157       if test "$GCC" = yes; then
18158         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'
18159       else
18160         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'
18161         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18162       fi
18163       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18164       hardcode_libdir_separator_GCJ=:
18165       link_all_deplibs_GCJ=yes
18166       ;;
18167
18168     netbsd* | netbsdelf*-gnu)
18169       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18170         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18171       else
18172         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18173       fi
18174       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18175       hardcode_direct_GCJ=yes
18176       hardcode_shlibpath_var_GCJ=no
18177       ;;
18178
18179     newsos6)
18180       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18181       hardcode_direct_GCJ=yes
18182       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18183       hardcode_libdir_separator_GCJ=:
18184       hardcode_shlibpath_var_GCJ=no
18185       ;;
18186
18187     openbsd*)
18188       if test -f /usr/libexec/ld.so; then
18189         hardcode_direct_GCJ=yes
18190         hardcode_shlibpath_var_GCJ=no
18191         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18192           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18193           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18194           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18195           export_dynamic_flag_spec_GCJ='${wl}-E'
18196         else
18197           case $host_os in
18198            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18199              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18200              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18201              ;;
18202            *)
18203              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18204              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18205              ;;
18206           esac
18207         fi
18208       else
18209         ld_shlibs_GCJ=no
18210       fi
18211       ;;
18212
18213     os2*)
18214       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18215       hardcode_minus_L_GCJ=yes
18216       allow_undefined_flag_GCJ=unsupported
18217       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'
18218       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18219       ;;
18220
18221     osf3*)
18222       if test "$GCC" = yes; then
18223         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18224         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'
18225       else
18226         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18227         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'
18228       fi
18229       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18230       hardcode_libdir_separator_GCJ=:
18231       ;;
18232
18233     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18234       if test "$GCC" = yes; then
18235         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18236         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'
18237         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18238       else
18239         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18240         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'
18241         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~
18242         $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'
18243
18244         # Both c and cxx compiler support -rpath directly
18245         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18246       fi
18247       hardcode_libdir_separator_GCJ=:
18248       ;;
18249
18250     solaris*)
18251       no_undefined_flag_GCJ=' -z text'
18252       if test "$GCC" = yes; then
18253         wlarc='${wl}'
18254         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18255         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18256           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18257       else
18258         wlarc=''
18259         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18260         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18261         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18262       fi
18263       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18264       hardcode_shlibpath_var_GCJ=no
18265       case $host_os in
18266       solaris2.[0-5] | solaris2.[0-5].*) ;;
18267       *)
18268         # The compiler driver will combine and reorder linker options,
18269         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18270         # but is careful enough not to reorder.
18271         # Supported since Solaris 2.6 (maybe 2.5.1?)
18272         if test "$GCC" = yes; then
18273           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18274         else
18275           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18276         fi
18277         ;;
18278       esac
18279       link_all_deplibs_GCJ=yes
18280       ;;
18281
18282     sunos4*)
18283       if test "x$host_vendor" = xsequent; then
18284         # Use $CC to link under sequent, because it throws in some extra .o
18285         # files that make .init and .fini sections work.
18286         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18287       else
18288         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18289       fi
18290       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291       hardcode_direct_GCJ=yes
18292       hardcode_minus_L_GCJ=yes
18293       hardcode_shlibpath_var_GCJ=no
18294       ;;
18295
18296     sysv4)
18297       case $host_vendor in
18298         sni)
18299           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18300           hardcode_direct_GCJ=yes # is this really true???
18301         ;;
18302         siemens)
18303           ## LD is ld it makes a PLAMLIB
18304           ## CC just makes a GrossModule.
18305           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18306           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18307           hardcode_direct_GCJ=no
18308         ;;
18309         motorola)
18310           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18311           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18312         ;;
18313       esac
18314       runpath_var='LD_RUN_PATH'
18315       hardcode_shlibpath_var_GCJ=no
18316       ;;
18317
18318     sysv4.3*)
18319       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18320       hardcode_shlibpath_var_GCJ=no
18321       export_dynamic_flag_spec_GCJ='-Bexport'
18322       ;;
18323
18324     sysv4*MP*)
18325       if test -d /usr/nec; then
18326         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18327         hardcode_shlibpath_var_GCJ=no
18328         runpath_var=LD_RUN_PATH
18329         hardcode_runpath_var=yes
18330         ld_shlibs_GCJ=yes
18331       fi
18332       ;;
18333
18334     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18335       no_undefined_flag_GCJ='${wl}-z,text'
18336       archive_cmds_need_lc_GCJ=no
18337       hardcode_shlibpath_var_GCJ=no
18338       runpath_var='LD_RUN_PATH'
18339
18340       if test "$GCC" = yes; then
18341         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18342         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18343       else
18344         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18345         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18346       fi
18347       ;;
18348
18349     sysv5* | sco3.2v5* | sco5v6*)
18350       # Note: We can NOT use -z defs as we might desire, because we do not
18351       # link with -lc, and that would cause any symbols used from libc to
18352       # always be unresolved, which means just about no library would
18353       # ever link correctly.  If we're not using GNU ld we use -z text
18354       # though, which does catch some bad symbols but isn't as heavy-handed
18355       # as -z defs.
18356       no_undefined_flag_GCJ='${wl}-z,text'
18357       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18358       archive_cmds_need_lc_GCJ=no
18359       hardcode_shlibpath_var_GCJ=no
18360       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18361       hardcode_libdir_separator_GCJ=':'
18362       link_all_deplibs_GCJ=yes
18363       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18364       runpath_var='LD_RUN_PATH'
18365
18366       if test "$GCC" = yes; then
18367         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18368         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18369       else
18370         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18371         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18372       fi
18373       ;;
18374
18375     uts4*)
18376       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18377       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18378       hardcode_shlibpath_var_GCJ=no
18379       ;;
18380
18381     *)
18382       ld_shlibs_GCJ=no
18383       ;;
18384     esac
18385   fi
18386
18387 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18388 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18389 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18390
18391 #
18392 # Do we need to explicitly link libc?
18393 #
18394 case "x$archive_cmds_need_lc_GCJ" in
18395 x|xyes)
18396   # Assume -lc should be added
18397   archive_cmds_need_lc_GCJ=yes
18398
18399   if test "$enable_shared" = yes && test "$GCC" = yes; then
18400     case $archive_cmds_GCJ in
18401     *'~'*)
18402       # FIXME: we may have to deal with multi-command sequences.
18403       ;;
18404     '$CC '*)
18405       # Test whether the compiler implicitly links with -lc since on some
18406       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18407       # to ld, don't add -lc before -lgcc.
18408       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18409 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18410       $rm conftest*
18411       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18412
18413       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18414   (eval $ac_compile) 2>&5
18415   ac_status=$?
18416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417   (exit $ac_status); } 2>conftest.err; then
18418         soname=conftest
18419         lib=conftest
18420         libobjs=conftest.$ac_objext
18421         deplibs=
18422         wl=$lt_prog_compiler_wl_GCJ
18423         pic_flag=$lt_prog_compiler_pic_GCJ
18424         compiler_flags=-v
18425         linker_flags=-v
18426         verstring=
18427         output_objdir=.
18428         libname=conftest
18429         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18430         allow_undefined_flag_GCJ=
18431         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18432   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18433   ac_status=$?
18434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435   (exit $ac_status); }
18436         then
18437           archive_cmds_need_lc_GCJ=no
18438         else
18439           archive_cmds_need_lc_GCJ=yes
18440         fi
18441         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18442       else
18443         cat conftest.err 1>&5
18444       fi
18445       $rm conftest*
18446       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18447 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18448       ;;
18449     esac
18450   fi
18451   ;;
18452 esac
18453
18454 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18455 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18456 library_names_spec=
18457 libname_spec='lib$name'
18458 soname_spec=
18459 shrext_cmds=".so"
18460 postinstall_cmds=
18461 postuninstall_cmds=
18462 finish_cmds=
18463 finish_eval=
18464 shlibpath_var=
18465 shlibpath_overrides_runpath=unknown
18466 version_type=none
18467 dynamic_linker="$host_os ld.so"
18468 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18469
18470 need_lib_prefix=unknown
18471 hardcode_into_libs=no
18472
18473 # when you set need_version to no, make sure it does not cause -set_version
18474 # flags to be left without arguments
18475 need_version=unknown
18476
18477 case $host_os in
18478 aix3*)
18479   version_type=linux
18480   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18481   shlibpath_var=LIBPATH
18482
18483   # AIX 3 has no versioning support, so we append a major version to the name.
18484   soname_spec='${libname}${release}${shared_ext}$major'
18485   ;;
18486
18487 aix[4-9]*)
18488   version_type=linux
18489   need_lib_prefix=no
18490   need_version=no
18491   hardcode_into_libs=yes
18492   if test "$host_cpu" = ia64; then
18493     # AIX 5 supports IA64
18494     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18495     shlibpath_var=LD_LIBRARY_PATH
18496   else
18497     # With GCC up to 2.95.x, collect2 would create an import file
18498     # for dependence libraries.  The import file would start with
18499     # the line `#! .'.  This would cause the generated library to
18500     # depend on `.', always an invalid library.  This was fixed in
18501     # development snapshots of GCC prior to 3.0.
18502     case $host_os in
18503       aix4 | aix4.[01] | aix4.[01].*)
18504       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18505            echo ' yes '
18506            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18507         :
18508       else
18509         can_build_shared=no
18510       fi
18511       ;;
18512     esac
18513     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18514     # soname into executable. Probably we can add versioning support to
18515     # collect2, so additional links can be useful in future.
18516     if test "$aix_use_runtimelinking" = yes; then
18517       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18518       # instead of lib<name>.a to let people know that these are not
18519       # typical AIX shared libraries.
18520       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18521     else
18522       # We preserve .a as extension for shared libraries through AIX4.2
18523       # and later when we are not doing run time linking.
18524       library_names_spec='${libname}${release}.a $libname.a'
18525       soname_spec='${libname}${release}${shared_ext}$major'
18526     fi
18527     shlibpath_var=LIBPATH
18528   fi
18529   ;;
18530
18531 amigaos*)
18532   library_names_spec='$libname.ixlibrary $libname.a'
18533   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18534   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'
18535   ;;
18536
18537 beos*)
18538   library_names_spec='${libname}${shared_ext}'
18539   dynamic_linker="$host_os ld.so"
18540   shlibpath_var=LIBRARY_PATH
18541   ;;
18542
18543 bsdi[45]*)
18544   version_type=linux
18545   need_version=no
18546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18547   soname_spec='${libname}${release}${shared_ext}$major'
18548   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18549   shlibpath_var=LD_LIBRARY_PATH
18550   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18551   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18552   # the default ld.so.conf also contains /usr/contrib/lib and
18553   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18554   # libtool to hard-code these into programs
18555   ;;
18556
18557 cygwin* | mingw* | pw32*)
18558   version_type=windows
18559   shrext_cmds=".dll"
18560   need_version=no
18561   need_lib_prefix=no
18562
18563   case $GCC,$host_os in
18564   yes,cygwin* | yes,mingw* | yes,pw32*)
18565     library_names_spec='$libname.dll.a'
18566     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18567     postinstall_cmds='base_file=`basename \${file}`~
18568       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18569       dldir=$destdir/`dirname \$dlpath`~
18570       test -d \$dldir || mkdir -p \$dldir~
18571       $install_prog $dir/$dlname \$dldir/$dlname~
18572       chmod a+x \$dldir/$dlname'
18573     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18574       dlpath=$dir/\$dldll~
18575        $rm \$dlpath'
18576     shlibpath_overrides_runpath=yes
18577
18578     case $host_os in
18579     cygwin*)
18580       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18581       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18582       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18583       ;;
18584     mingw*)
18585       # MinGW DLLs use traditional 'lib' prefix
18586       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18587       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18588       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18589         # It is most probably a Windows format PATH printed by
18590         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18591         # path with ; separators, and with drive letters. We can handle the
18592         # drive letters (cygwin fileutils understands them), so leave them,
18593         # especially as we might pass files found there to a mingw objdump,
18594         # which wouldn't understand a cygwinified path. Ahh.
18595         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18596       else
18597         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18598       fi
18599       ;;
18600     pw32*)
18601       # pw32 DLLs use 'pw' prefix rather than 'lib'
18602       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18603       ;;
18604     esac
18605     ;;
18606
18607   *)
18608     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18609     ;;
18610   esac
18611   dynamic_linker='Win32 ld.exe'
18612   # FIXME: first we should search . and the directory the executable is in
18613   shlibpath_var=PATH
18614   ;;
18615
18616 darwin* | rhapsody*)
18617   dynamic_linker="$host_os dyld"
18618   version_type=darwin
18619   need_lib_prefix=no
18620   need_version=no
18621   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18622   soname_spec='${libname}${release}${major}$shared_ext'
18623   shlibpath_overrides_runpath=yes
18624   shlibpath_var=DYLD_LIBRARY_PATH
18625   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18626
18627   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18628   ;;
18629
18630 dgux*)
18631   version_type=linux
18632   need_lib_prefix=no
18633   need_version=no
18634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18635   soname_spec='${libname}${release}${shared_ext}$major'
18636   shlibpath_var=LD_LIBRARY_PATH
18637   ;;
18638
18639 freebsd1*)
18640   dynamic_linker=no
18641   ;;
18642
18643 freebsd* | dragonfly*)
18644   # DragonFly does not have aout.  When/if they implement a new
18645   # versioning mechanism, adjust this.
18646   if test -x /usr/bin/objformat; then
18647     objformat=`/usr/bin/objformat`
18648   else
18649     case $host_os in
18650     freebsd[123]*) objformat=aout ;;
18651     *) objformat=elf ;;
18652     esac
18653   fi
18654   version_type=freebsd-$objformat
18655   case $version_type in
18656     freebsd-elf*)
18657       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18658       need_version=no
18659       need_lib_prefix=no
18660       ;;
18661     freebsd-*)
18662       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18663       need_version=yes
18664       ;;
18665   esac
18666   shlibpath_var=LD_LIBRARY_PATH
18667   case $host_os in
18668   freebsd2*)
18669     shlibpath_overrides_runpath=yes
18670     ;;
18671   freebsd3.[01]* | freebsdelf3.[01]*)
18672     shlibpath_overrides_runpath=yes
18673     hardcode_into_libs=yes
18674     ;;
18675   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18676   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18677     shlibpath_overrides_runpath=no
18678     hardcode_into_libs=yes
18679     ;;
18680   *) # from 4.6 on, and DragonFly
18681     shlibpath_overrides_runpath=yes
18682     hardcode_into_libs=yes
18683     ;;
18684   esac
18685   ;;
18686
18687 gnu*)
18688   version_type=linux
18689   need_lib_prefix=no
18690   need_version=no
18691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18692   soname_spec='${libname}${release}${shared_ext}$major'
18693   shlibpath_var=LD_LIBRARY_PATH
18694   hardcode_into_libs=yes
18695   ;;
18696
18697 hpux9* | hpux10* | hpux11*)
18698   # Give a soname corresponding to the major version so that dld.sl refuses to
18699   # link against other versions.
18700   version_type=sunos
18701   need_lib_prefix=no
18702   need_version=no
18703   case $host_cpu in
18704   ia64*)
18705     shrext_cmds='.so'
18706     hardcode_into_libs=yes
18707     dynamic_linker="$host_os dld.so"
18708     shlibpath_var=LD_LIBRARY_PATH
18709     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18710     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18711     soname_spec='${libname}${release}${shared_ext}$major'
18712     if test "X$HPUX_IA64_MODE" = X32; then
18713       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18714     else
18715       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18716     fi
18717     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18718     ;;
18719    hppa*64*)
18720      shrext_cmds='.sl'
18721      hardcode_into_libs=yes
18722      dynamic_linker="$host_os dld.sl"
18723      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18724      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18725      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18726      soname_spec='${libname}${release}${shared_ext}$major'
18727      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18728      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18729      ;;
18730    *)
18731     shrext_cmds='.sl'
18732     dynamic_linker="$host_os dld.sl"
18733     shlibpath_var=SHLIB_PATH
18734     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18736     soname_spec='${libname}${release}${shared_ext}$major'
18737     ;;
18738   esac
18739   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18740   postinstall_cmds='chmod 555 $lib'
18741   ;;
18742
18743 interix[3-9]*)
18744   version_type=linux
18745   need_lib_prefix=no
18746   need_version=no
18747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18748   soname_spec='${libname}${release}${shared_ext}$major'
18749   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18750   shlibpath_var=LD_LIBRARY_PATH
18751   shlibpath_overrides_runpath=no
18752   hardcode_into_libs=yes
18753   ;;
18754
18755 irix5* | irix6* | nonstopux*)
18756   case $host_os in
18757     nonstopux*) version_type=nonstopux ;;
18758     *)
18759         if test "$lt_cv_prog_gnu_ld" = yes; then
18760                 version_type=linux
18761         else
18762                 version_type=irix
18763         fi ;;
18764   esac
18765   need_lib_prefix=no
18766   need_version=no
18767   soname_spec='${libname}${release}${shared_ext}$major'
18768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18769   case $host_os in
18770   irix5* | nonstopux*)
18771     libsuff= shlibsuff=
18772     ;;
18773   *)
18774     case $LD in # libtool.m4 will add one of these switches to LD
18775     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18776       libsuff= shlibsuff= libmagic=32-bit;;
18777     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18778       libsuff=32 shlibsuff=N32 libmagic=N32;;
18779     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18780       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18781     *) libsuff= shlibsuff= libmagic=never-match;;
18782     esac
18783     ;;
18784   esac
18785   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18786   shlibpath_overrides_runpath=no
18787   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18788   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18789   hardcode_into_libs=yes
18790   ;;
18791
18792 # No shared lib support for Linux oldld, aout, or coff.
18793 linux*oldld* | linux*aout* | linux*coff*)
18794   dynamic_linker=no
18795   ;;
18796
18797 # This must be Linux ELF.
18798 linux* | k*bsd*-gnu)
18799   version_type=linux
18800   need_lib_prefix=no
18801   need_version=no
18802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18803   soname_spec='${libname}${release}${shared_ext}$major'
18804   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18805   shlibpath_var=LD_LIBRARY_PATH
18806   shlibpath_overrides_runpath=no
18807   # This implies no fast_install, which is unacceptable.
18808   # Some rework will be needed to allow for fast_install
18809   # before this can be enabled.
18810   hardcode_into_libs=yes
18811
18812   # Append ld.so.conf contents to the search path
18813   if test -f /etc/ld.so.conf; then
18814     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18815     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18816   fi
18817
18818   # We used to test for /lib/ld.so.1 and disable shared libraries on
18819   # powerpc, because MkLinux only supported shared libraries with the
18820   # GNU dynamic linker.  Since this was broken with cross compilers,
18821   # most powerpc-linux boxes support dynamic linking these days and
18822   # people can always --disable-shared, the test was removed, and we
18823   # assume the GNU/Linux dynamic linker is in use.
18824   dynamic_linker='GNU/Linux ld.so'
18825   ;;
18826
18827 netbsdelf*-gnu)
18828   version_type=linux
18829   need_lib_prefix=no
18830   need_version=no
18831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18832   soname_spec='${libname}${release}${shared_ext}$major'
18833   shlibpath_var=LD_LIBRARY_PATH
18834   shlibpath_overrides_runpath=no
18835   hardcode_into_libs=yes
18836   dynamic_linker='NetBSD ld.elf_so'
18837   ;;
18838
18839 netbsd*)
18840   version_type=sunos
18841   need_lib_prefix=no
18842   need_version=no
18843   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18845     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18846     dynamic_linker='NetBSD (a.out) ld.so'
18847   else
18848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18849     soname_spec='${libname}${release}${shared_ext}$major'
18850     dynamic_linker='NetBSD ld.elf_so'
18851   fi
18852   shlibpath_var=LD_LIBRARY_PATH
18853   shlibpath_overrides_runpath=yes
18854   hardcode_into_libs=yes
18855   ;;
18856
18857 newsos6)
18858   version_type=linux
18859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18860   shlibpath_var=LD_LIBRARY_PATH
18861   shlibpath_overrides_runpath=yes
18862   ;;
18863
18864 nto-qnx*)
18865   version_type=linux
18866   need_lib_prefix=no
18867   need_version=no
18868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18869   soname_spec='${libname}${release}${shared_ext}$major'
18870   shlibpath_var=LD_LIBRARY_PATH
18871   shlibpath_overrides_runpath=yes
18872   ;;
18873
18874 openbsd*)
18875   version_type=sunos
18876   sys_lib_dlsearch_path_spec="/usr/lib"
18877   need_lib_prefix=no
18878   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18879   case $host_os in
18880     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18881     *)                         need_version=no  ;;
18882   esac
18883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18884   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18885   shlibpath_var=LD_LIBRARY_PATH
18886   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18887     case $host_os in
18888       openbsd2.[89] | openbsd2.[89].*)
18889         shlibpath_overrides_runpath=no
18890         ;;
18891       *)
18892         shlibpath_overrides_runpath=yes
18893         ;;
18894       esac
18895   else
18896     shlibpath_overrides_runpath=yes
18897   fi
18898   ;;
18899
18900 os2*)
18901   libname_spec='$name'
18902   shrext_cmds=".dll"
18903   need_lib_prefix=no
18904   library_names_spec='$libname${shared_ext} $libname.a'
18905   dynamic_linker='OS/2 ld.exe'
18906   shlibpath_var=LIBPATH
18907   ;;
18908
18909 osf3* | osf4* | osf5*)
18910   version_type=osf
18911   need_lib_prefix=no
18912   need_version=no
18913   soname_spec='${libname}${release}${shared_ext}$major'
18914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915   shlibpath_var=LD_LIBRARY_PATH
18916   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18917   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18918   ;;
18919
18920 rdos*)
18921   dynamic_linker=no
18922   ;;
18923
18924 solaris*)
18925   version_type=linux
18926   need_lib_prefix=no
18927   need_version=no
18928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18929   soname_spec='${libname}${release}${shared_ext}$major'
18930   shlibpath_var=LD_LIBRARY_PATH
18931   shlibpath_overrides_runpath=yes
18932   hardcode_into_libs=yes
18933   # ldd complains unless libraries are executable
18934   postinstall_cmds='chmod +x $lib'
18935   ;;
18936
18937 sunos4*)
18938   version_type=sunos
18939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18940   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18941   shlibpath_var=LD_LIBRARY_PATH
18942   shlibpath_overrides_runpath=yes
18943   if test "$with_gnu_ld" = yes; then
18944     need_lib_prefix=no
18945   fi
18946   need_version=yes
18947   ;;
18948
18949 sysv4 | sysv4.3*)
18950   version_type=linux
18951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18952   soname_spec='${libname}${release}${shared_ext}$major'
18953   shlibpath_var=LD_LIBRARY_PATH
18954   case $host_vendor in
18955     sni)
18956       shlibpath_overrides_runpath=no
18957       need_lib_prefix=no
18958       export_dynamic_flag_spec='${wl}-Blargedynsym'
18959       runpath_var=LD_RUN_PATH
18960       ;;
18961     siemens)
18962       need_lib_prefix=no
18963       ;;
18964     motorola)
18965       need_lib_prefix=no
18966       need_version=no
18967       shlibpath_overrides_runpath=no
18968       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18969       ;;
18970   esac
18971   ;;
18972
18973 sysv4*MP*)
18974   if test -d /usr/nec ;then
18975     version_type=linux
18976     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18977     soname_spec='$libname${shared_ext}.$major'
18978     shlibpath_var=LD_LIBRARY_PATH
18979   fi
18980   ;;
18981
18982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18983   version_type=freebsd-elf
18984   need_lib_prefix=no
18985   need_version=no
18986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18987   soname_spec='${libname}${release}${shared_ext}$major'
18988   shlibpath_var=LD_LIBRARY_PATH
18989   hardcode_into_libs=yes
18990   if test "$with_gnu_ld" = yes; then
18991     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18992     shlibpath_overrides_runpath=no
18993   else
18994     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18995     shlibpath_overrides_runpath=yes
18996     case $host_os in
18997       sco3.2v5*)
18998         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18999         ;;
19000     esac
19001   fi
19002   sys_lib_dlsearch_path_spec='/usr/lib'
19003   ;;
19004
19005 uts4*)
19006   version_type=linux
19007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19008   soname_spec='${libname}${release}${shared_ext}$major'
19009   shlibpath_var=LD_LIBRARY_PATH
19010   ;;
19011
19012 *)
19013   dynamic_linker=no
19014   ;;
19015 esac
19016 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19017 echo "${ECHO_T}$dynamic_linker" >&6; }
19018 test "$dynamic_linker" = no && can_build_shared=no
19019
19020 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19021   echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19024 fi
19025
19026 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19027 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19028   echo $ECHO_N "(cached) $ECHO_C" >&6
19029 else
19030   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19031 fi
19032
19033 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19034
19035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19036 if test "$GCC" = yes; then
19037   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19038 fi
19039
19040 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19041 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19042 hardcode_action_GCJ=
19043 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19044    test -n "$runpath_var_GCJ" || \
19045    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19046
19047   # We can hardcode non-existant directories.
19048   if test "$hardcode_direct_GCJ" != no &&
19049      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19050      # have to relink, otherwise we might link with an installed library
19051      # when we should be linking with a yet-to-be-installed one
19052      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19053      test "$hardcode_minus_L_GCJ" != no; then
19054     # Linking always hardcodes the temporary library directory.
19055     hardcode_action_GCJ=relink
19056   else
19057     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19058     hardcode_action_GCJ=immediate
19059   fi
19060 else
19061   # We cannot hardcode anything, or else we can only hardcode existing
19062   # directories.
19063   hardcode_action_GCJ=unsupported
19064 fi
19065 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19066 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19067
19068 if test "$hardcode_action_GCJ" = relink; then
19069   # Fast installation is not supported
19070   enable_fast_install=no
19071 elif test "$shlibpath_overrides_runpath" = yes ||
19072      test "$enable_shared" = no; then
19073   # Fast installation is not necessary
19074   enable_fast_install=needless
19075 fi
19076
19077
19078 # The else clause should only fire when bootstrapping the
19079 # libtool distribution, otherwise you forgot to ship ltmain.sh
19080 # with your package, and you will get complaints that there are
19081 # no rules to generate ltmain.sh.
19082 if test -f "$ltmain"; then
19083   # See if we are running on zsh, and set the options which allow our commands through
19084   # without removal of \ escapes.
19085   if test -n "${ZSH_VERSION+set}" ; then
19086     setopt NO_GLOB_SUBST
19087   fi
19088   # Now quote all the things that may contain metacharacters while being
19089   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19090   # variables and quote the copies for generation of the libtool script.
19091   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19092     SED SHELL STRIP \
19093     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19094     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19095     deplibs_check_method reload_flag reload_cmds need_locks \
19096     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19097     lt_cv_sys_global_symbol_to_c_name_address \
19098     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19099     old_postinstall_cmds old_postuninstall_cmds \
19100     compiler_GCJ \
19101     CC_GCJ \
19102     LD_GCJ \
19103     lt_prog_compiler_wl_GCJ \
19104     lt_prog_compiler_pic_GCJ \
19105     lt_prog_compiler_static_GCJ \
19106     lt_prog_compiler_no_builtin_flag_GCJ \
19107     export_dynamic_flag_spec_GCJ \
19108     thread_safe_flag_spec_GCJ \
19109     whole_archive_flag_spec_GCJ \
19110     enable_shared_with_static_runtimes_GCJ \
19111     old_archive_cmds_GCJ \
19112     old_archive_from_new_cmds_GCJ \
19113     predep_objects_GCJ \
19114     postdep_objects_GCJ \
19115     predeps_GCJ \
19116     postdeps_GCJ \
19117     compiler_lib_search_path_GCJ \
19118     compiler_lib_search_dirs_GCJ \
19119     archive_cmds_GCJ \
19120     archive_expsym_cmds_GCJ \
19121     postinstall_cmds_GCJ \
19122     postuninstall_cmds_GCJ \
19123     old_archive_from_expsyms_cmds_GCJ \
19124     allow_undefined_flag_GCJ \
19125     no_undefined_flag_GCJ \
19126     export_symbols_cmds_GCJ \
19127     hardcode_libdir_flag_spec_GCJ \
19128     hardcode_libdir_flag_spec_ld_GCJ \
19129     hardcode_libdir_separator_GCJ \
19130     hardcode_automatic_GCJ \
19131     module_cmds_GCJ \
19132     module_expsym_cmds_GCJ \
19133     lt_cv_prog_compiler_c_o_GCJ \
19134     fix_srcfile_path_GCJ \
19135     exclude_expsyms_GCJ \
19136     include_expsyms_GCJ; do
19137
19138     case $var in
19139     old_archive_cmds_GCJ | \
19140     old_archive_from_new_cmds_GCJ | \
19141     archive_cmds_GCJ | \
19142     archive_expsym_cmds_GCJ | \
19143     module_cmds_GCJ | \
19144     module_expsym_cmds_GCJ | \
19145     old_archive_from_expsyms_cmds_GCJ | \
19146     export_symbols_cmds_GCJ | \
19147     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19148     postinstall_cmds | postuninstall_cmds | \
19149     old_postinstall_cmds | old_postuninstall_cmds | \
19150     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19151       # Double-quote double-evaled strings.
19152       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19153       ;;
19154     *)
19155       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19156       ;;
19157     esac
19158   done
19159
19160   case $lt_echo in
19161   *'\$0 --fallback-echo"')
19162     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19163     ;;
19164   esac
19165
19166 cfgfile="$ofile"
19167
19168   cat <<__EOF__ >> "$cfgfile"
19169 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19170
19171 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19172
19173 # Shell to use when invoking shell scripts.
19174 SHELL=$lt_SHELL
19175
19176 # Whether or not to build shared libraries.
19177 build_libtool_libs=$enable_shared
19178
19179 # Whether or not to build static libraries.
19180 build_old_libs=$enable_static
19181
19182 # Whether or not to add -lc for building shared libraries.
19183 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19184
19185 # Whether or not to disallow shared libs when runtime libs are static
19186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19187
19188 # Whether or not to optimize for fast installation.
19189 fast_install=$enable_fast_install
19190
19191 # The host system.
19192 host_alias=$host_alias
19193 host=$host
19194 host_os=$host_os
19195
19196 # The build system.
19197 build_alias=$build_alias
19198 build=$build
19199 build_os=$build_os
19200
19201 # An echo program that does not interpret backslashes.
19202 echo=$lt_echo
19203
19204 # The archiver.
19205 AR=$lt_AR
19206 AR_FLAGS=$lt_AR_FLAGS
19207
19208 # A C compiler.
19209 LTCC=$lt_LTCC
19210
19211 # LTCC compiler flags.
19212 LTCFLAGS=$lt_LTCFLAGS
19213
19214 # A language-specific compiler.
19215 CC=$lt_compiler_GCJ
19216
19217 # Is the compiler the GNU C compiler?
19218 with_gcc=$GCC_GCJ
19219
19220 # An ERE matcher.
19221 EGREP=$lt_EGREP
19222
19223 # The linker used to build libraries.
19224 LD=$lt_LD_GCJ
19225
19226 # Whether we need hard or soft links.
19227 LN_S=$lt_LN_S
19228
19229 # A BSD-compatible nm program.
19230 NM=$lt_NM
19231
19232 # A symbol stripping program
19233 STRIP=$lt_STRIP
19234
19235 # Used to examine libraries when file_magic_cmd begins "file"
19236 MAGIC_CMD=$MAGIC_CMD
19237
19238 # Used on cygwin: DLL creation program.
19239 DLLTOOL="$DLLTOOL"
19240
19241 # Used on cygwin: object dumper.
19242 OBJDUMP="$OBJDUMP"
19243
19244 # Used on cygwin: assembler.
19245 AS="$AS"
19246
19247 # The name of the directory that contains temporary libtool files.
19248 objdir=$objdir
19249
19250 # How to create reloadable object files.
19251 reload_flag=$lt_reload_flag
19252 reload_cmds=$lt_reload_cmds
19253
19254 # How to pass a linker flag through the compiler.
19255 wl=$lt_lt_prog_compiler_wl_GCJ
19256
19257 # Object file suffix (normally "o").
19258 objext="$ac_objext"
19259
19260 # Old archive suffix (normally "a").
19261 libext="$libext"
19262
19263 # Shared library suffix (normally ".so").
19264 shrext_cmds='$shrext_cmds'
19265
19266 # Executable file suffix (normally "").
19267 exeext="$exeext"
19268
19269 # Additional compiler flags for building library objects.
19270 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19271 pic_mode=$pic_mode
19272
19273 # What is the maximum length of a command?
19274 max_cmd_len=$lt_cv_sys_max_cmd_len
19275
19276 # Does compiler simultaneously support -c and -o options?
19277 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19278
19279 # Must we lock files when doing compilation?
19280 need_locks=$lt_need_locks
19281
19282 # Do we need the lib prefix for modules?
19283 need_lib_prefix=$need_lib_prefix
19284
19285 # Do we need a version for libraries?
19286 need_version=$need_version
19287
19288 # Whether dlopen is supported.
19289 dlopen_support=$enable_dlopen
19290
19291 # Whether dlopen of programs is supported.
19292 dlopen_self=$enable_dlopen_self
19293
19294 # Whether dlopen of statically linked programs is supported.
19295 dlopen_self_static=$enable_dlopen_self_static
19296
19297 # Compiler flag to prevent dynamic linking.
19298 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19299
19300 # Compiler flag to turn off builtin functions.
19301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19302
19303 # Compiler flag to allow reflexive dlopens.
19304 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19305
19306 # Compiler flag to generate shared objects directly from archives.
19307 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19308
19309 # Compiler flag to generate thread-safe objects.
19310 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19311
19312 # Library versioning type.
19313 version_type=$version_type
19314
19315 # Format of library name prefix.
19316 libname_spec=$lt_libname_spec
19317
19318 # List of archive names.  First name is the real one, the rest are links.
19319 # The last name is the one that the linker finds with -lNAME.
19320 library_names_spec=$lt_library_names_spec
19321
19322 # The coded name of the library, if different from the real name.
19323 soname_spec=$lt_soname_spec
19324
19325 # Commands used to build and install an old-style archive.
19326 RANLIB=$lt_RANLIB
19327 old_archive_cmds=$lt_old_archive_cmds_GCJ
19328 old_postinstall_cmds=$lt_old_postinstall_cmds
19329 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19330
19331 # Create an old-style archive from a shared archive.
19332 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19333
19334 # Create a temporary old-style archive to link instead of a shared archive.
19335 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19336
19337 # Commands used to build and install a shared archive.
19338 archive_cmds=$lt_archive_cmds_GCJ
19339 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19340 postinstall_cmds=$lt_postinstall_cmds
19341 postuninstall_cmds=$lt_postuninstall_cmds
19342
19343 # Commands used to build a loadable module (assumed same as above if empty)
19344 module_cmds=$lt_module_cmds_GCJ
19345 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19346
19347 # Commands to strip libraries.
19348 old_striplib=$lt_old_striplib
19349 striplib=$lt_striplib
19350
19351 # Dependencies to place before the objects being linked to create a
19352 # shared library.
19353 predep_objects=$lt_predep_objects_GCJ
19354
19355 # Dependencies to place after the objects being linked to create a
19356 # shared library.
19357 postdep_objects=$lt_postdep_objects_GCJ
19358
19359 # Dependencies to place before the objects being linked to create a
19360 # shared library.
19361 predeps=$lt_predeps_GCJ
19362
19363 # Dependencies to place after the objects being linked to create a
19364 # shared library.
19365 postdeps=$lt_postdeps_GCJ
19366
19367 # The directories searched by this compiler when creating a shared
19368 # library
19369 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19370
19371 # The library search path used internally by the compiler when linking
19372 # a shared library.
19373 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19374
19375 # Method to check whether dependent libraries are shared objects.
19376 deplibs_check_method=$lt_deplibs_check_method
19377
19378 # Command to use when deplibs_check_method == file_magic.
19379 file_magic_cmd=$lt_file_magic_cmd
19380
19381 # Flag that allows shared libraries with undefined symbols to be built.
19382 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19383
19384 # Flag that forces no undefined symbols.
19385 no_undefined_flag=$lt_no_undefined_flag_GCJ
19386
19387 # Commands used to finish a libtool library installation in a directory.
19388 finish_cmds=$lt_finish_cmds
19389
19390 # Same as above, but a single script fragment to be evaled but not shown.
19391 finish_eval=$lt_finish_eval
19392
19393 # Take the output of nm and produce a listing of raw symbols and C names.
19394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19395
19396 # Transform the output of nm in a proper C declaration
19397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19398
19399 # Transform the output of nm in a C name address pair
19400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19401
19402 # This is the shared library runtime path variable.
19403 runpath_var=$runpath_var
19404
19405 # This is the shared library path variable.
19406 shlibpath_var=$shlibpath_var
19407
19408 # Is shlibpath searched before the hard-coded library search path?
19409 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19410
19411 # How to hardcode a shared library path into an executable.
19412 hardcode_action=$hardcode_action_GCJ
19413
19414 # Whether we should hardcode library paths into libraries.
19415 hardcode_into_libs=$hardcode_into_libs
19416
19417 # Flag to hardcode \$libdir into a binary during linking.
19418 # This must work even if \$libdir does not exist.
19419 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19420
19421 # If ld is used when linking, flag to hardcode \$libdir into
19422 # a binary during linking. This must work even if \$libdir does
19423 # not exist.
19424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19425
19426 # Whether we need a single -rpath flag with a separated argument.
19427 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19428
19429 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19430 # resulting binary.
19431 hardcode_direct=$hardcode_direct_GCJ
19432
19433 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19434 # resulting binary.
19435 hardcode_minus_L=$hardcode_minus_L_GCJ
19436
19437 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19438 # the resulting binary.
19439 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19440
19441 # Set to yes if building a shared library automatically hardcodes DIR into the library
19442 # and all subsequent libraries and executables linked against it.
19443 hardcode_automatic=$hardcode_automatic_GCJ
19444
19445 # Variables whose values should be saved in libtool wrapper scripts and
19446 # restored at relink time.
19447 variables_saved_for_relink="$variables_saved_for_relink"
19448
19449 # Whether libtool must link a program against all its dependency libraries.
19450 link_all_deplibs=$link_all_deplibs_GCJ
19451
19452 # Compile-time system search path for libraries
19453 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19454
19455 # Run-time system search path for libraries
19456 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19457
19458 # Fix the shell variable \$srcfile for the compiler.
19459 fix_srcfile_path=$lt_fix_srcfile_path
19460
19461 # Set to yes if exported symbols are required.
19462 always_export_symbols=$always_export_symbols_GCJ
19463
19464 # The commands to list exported symbols.
19465 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19466
19467 # The commands to extract the exported symbol list from a shared archive.
19468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19469
19470 # Symbols that should not be listed in the preloaded symbols.
19471 exclude_expsyms=$lt_exclude_expsyms_GCJ
19472
19473 # Symbols that must always be exported.
19474 include_expsyms=$lt_include_expsyms_GCJ
19475
19476 # ### END LIBTOOL TAG CONFIG: $tagname
19477
19478 __EOF__
19479
19480
19481 else
19482   # If there is no Makefile yet, we rely on a make rule to execute
19483   # `config.status --recheck' to rerun these tests and create the
19484   # libtool script then.
19485   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19486   if test -f "$ltmain_in"; then
19487     test -f Makefile && make "$ltmain"
19488   fi
19489 fi
19490
19491
19492 ac_ext=c
19493 ac_cpp='$CPP $CPPFLAGS'
19494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19497
19498 CC="$lt_save_CC"
19499
19500         else
19501           tagname=""
19502         fi
19503         ;;
19504
19505       RC)
19506
19507
19508 # Source file extension for RC test sources.
19509 ac_ext=rc
19510
19511 # Object file extension for compiled RC test sources.
19512 objext=o
19513 objext_RC=$objext
19514
19515 # Code to be used in simple compile tests
19516 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19517
19518 # Code to be used in simple link tests
19519 lt_simple_link_test_code="$lt_simple_compile_test_code"
19520
19521 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19522
19523 # If no C compiler was specified, use CC.
19524 LTCC=${LTCC-"$CC"}
19525
19526 # If no C compiler flags were specified, use CFLAGS.
19527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19528
19529 # Allow CC to be a program name with arguments.
19530 compiler=$CC
19531
19532
19533 # save warnings/boilerplate of simple test code
19534 ac_outfile=conftest.$ac_objext
19535 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19536 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19537 _lt_compiler_boilerplate=`cat conftest.err`
19538 $rm conftest*
19539
19540 ac_outfile=conftest.$ac_objext
19541 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19542 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19543 _lt_linker_boilerplate=`cat conftest.err`
19544 $rm -r conftest*
19545
19546
19547 # Allow CC to be a program name with arguments.
19548 lt_save_CC="$CC"
19549 CC=${RC-"windres"}
19550 compiler=$CC
19551 compiler_RC=$CC
19552 for cc_temp in $compiler""; do
19553   case $cc_temp in
19554     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19555     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19556     \-*) ;;
19557     *) break;;
19558   esac
19559 done
19560 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19561
19562 lt_cv_prog_compiler_c_o_RC=yes
19563
19564 # The else clause should only fire when bootstrapping the
19565 # libtool distribution, otherwise you forgot to ship ltmain.sh
19566 # with your package, and you will get complaints that there are
19567 # no rules to generate ltmain.sh.
19568 if test -f "$ltmain"; then
19569   # See if we are running on zsh, and set the options which allow our commands through
19570   # without removal of \ escapes.
19571   if test -n "${ZSH_VERSION+set}" ; then
19572     setopt NO_GLOB_SUBST
19573   fi
19574   # Now quote all the things that may contain metacharacters while being
19575   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19576   # variables and quote the copies for generation of the libtool script.
19577   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19578     SED SHELL STRIP \
19579     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19580     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19581     deplibs_check_method reload_flag reload_cmds need_locks \
19582     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19583     lt_cv_sys_global_symbol_to_c_name_address \
19584     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19585     old_postinstall_cmds old_postuninstall_cmds \
19586     compiler_RC \
19587     CC_RC \
19588     LD_RC \
19589     lt_prog_compiler_wl_RC \
19590     lt_prog_compiler_pic_RC \
19591     lt_prog_compiler_static_RC \
19592     lt_prog_compiler_no_builtin_flag_RC \
19593     export_dynamic_flag_spec_RC \
19594     thread_safe_flag_spec_RC \
19595     whole_archive_flag_spec_RC \
19596     enable_shared_with_static_runtimes_RC \
19597     old_archive_cmds_RC \
19598     old_archive_from_new_cmds_RC \
19599     predep_objects_RC \
19600     postdep_objects_RC \
19601     predeps_RC \
19602     postdeps_RC \
19603     compiler_lib_search_path_RC \
19604     compiler_lib_search_dirs_RC \
19605     archive_cmds_RC \
19606     archive_expsym_cmds_RC \
19607     postinstall_cmds_RC \
19608     postuninstall_cmds_RC \
19609     old_archive_from_expsyms_cmds_RC \
19610     allow_undefined_flag_RC \
19611     no_undefined_flag_RC \
19612     export_symbols_cmds_RC \
19613     hardcode_libdir_flag_spec_RC \
19614     hardcode_libdir_flag_spec_ld_RC \
19615     hardcode_libdir_separator_RC \
19616     hardcode_automatic_RC \
19617     module_cmds_RC \
19618     module_expsym_cmds_RC \
19619     lt_cv_prog_compiler_c_o_RC \
19620     fix_srcfile_path_RC \
19621     exclude_expsyms_RC \
19622     include_expsyms_RC; do
19623
19624     case $var in
19625     old_archive_cmds_RC | \
19626     old_archive_from_new_cmds_RC | \
19627     archive_cmds_RC | \
19628     archive_expsym_cmds_RC | \
19629     module_cmds_RC | \
19630     module_expsym_cmds_RC | \
19631     old_archive_from_expsyms_cmds_RC | \
19632     export_symbols_cmds_RC | \
19633     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19634     postinstall_cmds | postuninstall_cmds | \
19635     old_postinstall_cmds | old_postuninstall_cmds | \
19636     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19637       # Double-quote double-evaled strings.
19638       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19639       ;;
19640     *)
19641       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19642       ;;
19643     esac
19644   done
19645
19646   case $lt_echo in
19647   *'\$0 --fallback-echo"')
19648     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19649     ;;
19650   esac
19651
19652 cfgfile="$ofile"
19653
19654   cat <<__EOF__ >> "$cfgfile"
19655 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19656
19657 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19658
19659 # Shell to use when invoking shell scripts.
19660 SHELL=$lt_SHELL
19661
19662 # Whether or not to build shared libraries.
19663 build_libtool_libs=$enable_shared
19664
19665 # Whether or not to build static libraries.
19666 build_old_libs=$enable_static
19667
19668 # Whether or not to add -lc for building shared libraries.
19669 build_libtool_need_lc=$archive_cmds_need_lc_RC
19670
19671 # Whether or not to disallow shared libs when runtime libs are static
19672 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19673
19674 # Whether or not to optimize for fast installation.
19675 fast_install=$enable_fast_install
19676
19677 # The host system.
19678 host_alias=$host_alias
19679 host=$host
19680 host_os=$host_os
19681
19682 # The build system.
19683 build_alias=$build_alias
19684 build=$build
19685 build_os=$build_os
19686
19687 # An echo program that does not interpret backslashes.
19688 echo=$lt_echo
19689
19690 # The archiver.
19691 AR=$lt_AR
19692 AR_FLAGS=$lt_AR_FLAGS
19693
19694 # A C compiler.
19695 LTCC=$lt_LTCC
19696
19697 # LTCC compiler flags.
19698 LTCFLAGS=$lt_LTCFLAGS
19699
19700 # A language-specific compiler.
19701 CC=$lt_compiler_RC
19702
19703 # Is the compiler the GNU C compiler?
19704 with_gcc=$GCC_RC
19705
19706 # An ERE matcher.
19707 EGREP=$lt_EGREP
19708
19709 # The linker used to build libraries.
19710 LD=$lt_LD_RC
19711
19712 # Whether we need hard or soft links.
19713 LN_S=$lt_LN_S
19714
19715 # A BSD-compatible nm program.
19716 NM=$lt_NM
19717
19718 # A symbol stripping program
19719 STRIP=$lt_STRIP
19720
19721 # Used to examine libraries when file_magic_cmd begins "file"
19722 MAGIC_CMD=$MAGIC_CMD
19723
19724 # Used on cygwin: DLL creation program.
19725 DLLTOOL="$DLLTOOL"
19726
19727 # Used on cygwin: object dumper.
19728 OBJDUMP="$OBJDUMP"
19729
19730 # Used on cygwin: assembler.
19731 AS="$AS"
19732
19733 # The name of the directory that contains temporary libtool files.
19734 objdir=$objdir
19735
19736 # How to create reloadable object files.
19737 reload_flag=$lt_reload_flag
19738 reload_cmds=$lt_reload_cmds
19739
19740 # How to pass a linker flag through the compiler.
19741 wl=$lt_lt_prog_compiler_wl_RC
19742
19743 # Object file suffix (normally "o").
19744 objext="$ac_objext"
19745
19746 # Old archive suffix (normally "a").
19747 libext="$libext"
19748
19749 # Shared library suffix (normally ".so").
19750 shrext_cmds='$shrext_cmds'
19751
19752 # Executable file suffix (normally "").
19753 exeext="$exeext"
19754
19755 # Additional compiler flags for building library objects.
19756 pic_flag=$lt_lt_prog_compiler_pic_RC
19757 pic_mode=$pic_mode
19758
19759 # What is the maximum length of a command?
19760 max_cmd_len=$lt_cv_sys_max_cmd_len
19761
19762 # Does compiler simultaneously support -c and -o options?
19763 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19764
19765 # Must we lock files when doing compilation?
19766 need_locks=$lt_need_locks
19767
19768 # Do we need the lib prefix for modules?
19769 need_lib_prefix=$need_lib_prefix
19770
19771 # Do we need a version for libraries?
19772 need_version=$need_version
19773
19774 # Whether dlopen is supported.
19775 dlopen_support=$enable_dlopen
19776
19777 # Whether dlopen of programs is supported.
19778 dlopen_self=$enable_dlopen_self
19779
19780 # Whether dlopen of statically linked programs is supported.
19781 dlopen_self_static=$enable_dlopen_self_static
19782
19783 # Compiler flag to prevent dynamic linking.
19784 link_static_flag=$lt_lt_prog_compiler_static_RC
19785
19786 # Compiler flag to turn off builtin functions.
19787 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19788
19789 # Compiler flag to allow reflexive dlopens.
19790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19791
19792 # Compiler flag to generate shared objects directly from archives.
19793 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19794
19795 # Compiler flag to generate thread-safe objects.
19796 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19797
19798 # Library versioning type.
19799 version_type=$version_type
19800
19801 # Format of library name prefix.
19802 libname_spec=$lt_libname_spec
19803
19804 # List of archive names.  First name is the real one, the rest are links.
19805 # The last name is the one that the linker finds with -lNAME.
19806 library_names_spec=$lt_library_names_spec
19807
19808 # The coded name of the library, if different from the real name.
19809 soname_spec=$lt_soname_spec
19810
19811 # Commands used to build and install an old-style archive.
19812 RANLIB=$lt_RANLIB
19813 old_archive_cmds=$lt_old_archive_cmds_RC
19814 old_postinstall_cmds=$lt_old_postinstall_cmds
19815 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19816
19817 # Create an old-style archive from a shared archive.
19818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19819
19820 # Create a temporary old-style archive to link instead of a shared archive.
19821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19822
19823 # Commands used to build and install a shared archive.
19824 archive_cmds=$lt_archive_cmds_RC
19825 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19826 postinstall_cmds=$lt_postinstall_cmds
19827 postuninstall_cmds=$lt_postuninstall_cmds
19828
19829 # Commands used to build a loadable module (assumed same as above if empty)
19830 module_cmds=$lt_module_cmds_RC
19831 module_expsym_cmds=$lt_module_expsym_cmds_RC
19832
19833 # Commands to strip libraries.
19834 old_striplib=$lt_old_striplib
19835 striplib=$lt_striplib
19836
19837 # Dependencies to place before the objects being linked to create a
19838 # shared library.
19839 predep_objects=$lt_predep_objects_RC
19840
19841 # Dependencies to place after the objects being linked to create a
19842 # shared library.
19843 postdep_objects=$lt_postdep_objects_RC
19844
19845 # Dependencies to place before the objects being linked to create a
19846 # shared library.
19847 predeps=$lt_predeps_RC
19848
19849 # Dependencies to place after the objects being linked to create a
19850 # shared library.
19851 postdeps=$lt_postdeps_RC
19852
19853 # The directories searched by this compiler when creating a shared
19854 # library
19855 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19856
19857 # The library search path used internally by the compiler when linking
19858 # a shared library.
19859 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19860
19861 # Method to check whether dependent libraries are shared objects.
19862 deplibs_check_method=$lt_deplibs_check_method
19863
19864 # Command to use when deplibs_check_method == file_magic.
19865 file_magic_cmd=$lt_file_magic_cmd
19866
19867 # Flag that allows shared libraries with undefined symbols to be built.
19868 allow_undefined_flag=$lt_allow_undefined_flag_RC
19869
19870 # Flag that forces no undefined symbols.
19871 no_undefined_flag=$lt_no_undefined_flag_RC
19872
19873 # Commands used to finish a libtool library installation in a directory.
19874 finish_cmds=$lt_finish_cmds
19875
19876 # Same as above, but a single script fragment to be evaled but not shown.
19877 finish_eval=$lt_finish_eval
19878
19879 # Take the output of nm and produce a listing of raw symbols and C names.
19880 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19881
19882 # Transform the output of nm in a proper C declaration
19883 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19884
19885 # Transform the output of nm in a C name address pair
19886 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19887
19888 # This is the shared library runtime path variable.
19889 runpath_var=$runpath_var
19890
19891 # This is the shared library path variable.
19892 shlibpath_var=$shlibpath_var
19893
19894 # Is shlibpath searched before the hard-coded library search path?
19895 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19896
19897 # How to hardcode a shared library path into an executable.
19898 hardcode_action=$hardcode_action_RC
19899
19900 # Whether we should hardcode library paths into libraries.
19901 hardcode_into_libs=$hardcode_into_libs
19902
19903 # Flag to hardcode \$libdir into a binary during linking.
19904 # This must work even if \$libdir does not exist.
19905 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19906
19907 # If ld is used when linking, flag to hardcode \$libdir into
19908 # a binary during linking. This must work even if \$libdir does
19909 # not exist.
19910 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19911
19912 # Whether we need a single -rpath flag with a separated argument.
19913 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19914
19915 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19916 # resulting binary.
19917 hardcode_direct=$hardcode_direct_RC
19918
19919 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19920 # resulting binary.
19921 hardcode_minus_L=$hardcode_minus_L_RC
19922
19923 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19924 # the resulting binary.
19925 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19926
19927 # Set to yes if building a shared library automatically hardcodes DIR into the library
19928 # and all subsequent libraries and executables linked against it.
19929 hardcode_automatic=$hardcode_automatic_RC
19930
19931 # Variables whose values should be saved in libtool wrapper scripts and
19932 # restored at relink time.
19933 variables_saved_for_relink="$variables_saved_for_relink"
19934
19935 # Whether libtool must link a program against all its dependency libraries.
19936 link_all_deplibs=$link_all_deplibs_RC
19937
19938 # Compile-time system search path for libraries
19939 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19940
19941 # Run-time system search path for libraries
19942 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19943
19944 # Fix the shell variable \$srcfile for the compiler.
19945 fix_srcfile_path=$lt_fix_srcfile_path
19946
19947 # Set to yes if exported symbols are required.
19948 always_export_symbols=$always_export_symbols_RC
19949
19950 # The commands to list exported symbols.
19951 export_symbols_cmds=$lt_export_symbols_cmds_RC
19952
19953 # The commands to extract the exported symbol list from a shared archive.
19954 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19955
19956 # Symbols that should not be listed in the preloaded symbols.
19957 exclude_expsyms=$lt_exclude_expsyms_RC
19958
19959 # Symbols that must always be exported.
19960 include_expsyms=$lt_include_expsyms_RC
19961
19962 # ### END LIBTOOL TAG CONFIG: $tagname
19963
19964 __EOF__
19965
19966
19967 else
19968   # If there is no Makefile yet, we rely on a make rule to execute
19969   # `config.status --recheck' to rerun these tests and create the
19970   # libtool script then.
19971   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19972   if test -f "$ltmain_in"; then
19973     test -f Makefile && make "$ltmain"
19974   fi
19975 fi
19976
19977
19978 ac_ext=c
19979 ac_cpp='$CPP $CPPFLAGS'
19980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19983
19984 CC="$lt_save_CC"
19985
19986         ;;
19987
19988       *)
19989         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19990 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19991    { (exit 1); exit 1; }; }
19992         ;;
19993       esac
19994
19995       # Append the new tag name to the list of available tags.
19996       if test -n "$tagname" ; then
19997       available_tags="$available_tags $tagname"
19998     fi
19999     fi
20000   done
20001   IFS="$lt_save_ifs"
20002
20003   # Now substitute the updated list of available tags.
20004   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20005     mv "${ofile}T" "$ofile"
20006     chmod +x "$ofile"
20007   else
20008     rm -f "${ofile}T"
20009     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20010 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20011    { (exit 1); exit 1; }; }
20012   fi
20013 fi
20014
20015
20016
20017 # This can be used to rebuild libtool when needed
20018 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20019
20020 # Always use our own libtool.
20021 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20022
20023 # Prevent multiple expansion
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036 # Check whether --with-system-libtool was given.
20037 if test "${with_system_libtool+set}" = set; then
20038   withval=$with_system_libtool;  # Extract the first word of "libtool", so it can be a program name with args.
20039 set dummy libtool; ac_word=$2
20040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20042 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20043   echo $ECHO_N "(cached) $ECHO_C" >&6
20044 else
20045   case $LIBTOOL in
20046   [\\/]* | ?:[\\/]*)
20047   ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20048   ;;
20049   *)
20050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20051 as_dummy="$PATH:/usr/local/bin"
20052 for as_dir in $as_dummy
20053 do
20054   IFS=$as_save_IFS
20055   test -z "$as_dir" && as_dir=.
20056   for ac_exec_ext in '' $ac_executable_extensions; do
20057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20058     ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20060     break 2
20061   fi
20062 done
20063 done
20064 IFS=$as_save_IFS
20065
20066   ;;
20067 esac
20068 fi
20069 LIBTOOL=$ac_cv_path_LIBTOOL
20070 if test -n "$LIBTOOL"; then
20071   { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20072 echo "${ECHO_T}$LIBTOOL" >&6; }
20073 else
20074   { echo "$as_me:$LINENO: result: no" >&5
20075 echo "${ECHO_T}no" >&6; }
20076 fi
20077
20078
20079 else
20080
20081   LIBTOOL="`pwd`/libtool"
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096 fi
20097
20098
20099
20100
20101 # Check whether --enable-strict-dependencies was given.
20102 if test "${enable_strict_dependencies+set}" = set; then
20103   enableval=$enable_strict_dependencies;
20104 fi
20105
20106
20107 docdir='${datadir}/doc/freeradius'
20108 { echo "$as_me:$LINENO: checking docdir" >&5
20109 echo $ECHO_N "checking docdir... $ECHO_C" >&6; }
20110
20111 # Check whether --with-docdir was given.
20112 if test "${with_docdir+set}" = set; then
20113   withval=$with_docdir;  case "$withval" in
20114     no)
20115         docdir=no
20116         ;;
20117     yes)
20118         ;;
20119     [\\/$]* | ?:[\\/]* )
20120         docdir="$withval"
20121         ;;
20122     *)
20123         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
20124 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
20125    { (exit 1); exit 1; }; }
20126         ;;
20127   esac
20128
20129 fi
20130
20131
20132 { echo "$as_me:$LINENO: result: $docdir" >&5
20133 echo "${ECHO_T}$docdir" >&6; }
20134 if test "x$docdir" = xno; then
20135         { echo "$as_me:$LINENO: WARNING: Documentation files will NOT be installed." >&5
20136 echo "$as_me: WARNING: Documentation files will NOT be installed." >&2;}
20137 fi
20138
20139 logdir='${localstatedir}/log/radius'
20140 { echo "$as_me:$LINENO: checking logdir" >&5
20141 echo $ECHO_N "checking logdir... $ECHO_C" >&6; }
20142
20143 # Check whether --with-logdir was given.
20144 if test "${with_logdir+set}" = set; then
20145   withval=$with_logdir;  case "$withval" in
20146     no)
20147         { { echo "$as_me:$LINENO: error: Need logdir" >&5
20148 echo "$as_me: error: Need logdir" >&2;}
20149    { (exit 1); exit 1; }; }
20150         ;;
20151     yes)
20152         ;;
20153     [\\/$]* | ?:[\\/]* )
20154         logdir="$withval"
20155         ;;
20156     *)
20157         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
20158 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
20159    { (exit 1); exit 1; }; }
20160         ;;
20161   esac
20162
20163 fi
20164
20165
20166 { echo "$as_me:$LINENO: result: $logdir" >&5
20167 echo "${ECHO_T}$logdir" >&6; }
20168
20169 radacctdir='${logdir}/radacct'
20170 { echo "$as_me:$LINENO: checking radacctdir" >&5
20171 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6; }
20172
20173 # Check whether --with-radacctdir was given.
20174 if test "${with_radacctdir+set}" = set; then
20175   withval=$with_radacctdir;  case "$withval" in
20176     no)
20177         { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
20178 echo "$as_me: error: Need radacctdir" >&2;}
20179    { (exit 1); exit 1; }; }
20180         ;;
20181     yes)
20182         ;;
20183     [\\/$]* | ?:[\\/]* )
20184         radacctdir="$withval"
20185         ;;
20186     *)
20187         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
20188 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
20189    { (exit 1); exit 1; }; }
20190         ;;
20191   esac
20192
20193 fi
20194
20195
20196 { echo "$as_me:$LINENO: result: $radacctdir" >&5
20197 echo "${ECHO_T}$radacctdir" >&6; }
20198
20199 raddbdir='${sysconfdir}/raddb'
20200 { echo "$as_me:$LINENO: checking raddbdir" >&5
20201 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6; }
20202
20203 # Check whether --with-raddbdir was given.
20204 if test "${with_raddbdir+set}" = set; then
20205   withval=$with_raddbdir;  case "$withval" in
20206     no)
20207         { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
20208 echo "$as_me: error: Need raddbdir" >&2;}
20209    { (exit 1); exit 1; }; }
20210         ;;
20211     yes)
20212         ;;
20213     [\\/$]* | ?:[\\/]* )
20214         raddbdir="$withval"
20215         ;;
20216     *)
20217         { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
20218 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
20219    { (exit 1); exit 1; }; }
20220         ;;
20221   esac
20222
20223 fi
20224
20225
20226 { echo "$as_me:$LINENO: result: $raddbdir" >&5
20227 echo "${ECHO_T}$raddbdir" >&6; }
20228
20229 ASCEND_BINARY=yes
20230
20231 # Check whether --with-ascend-binary was given.
20232 if test "${with_ascend_binary+set}" = set; then
20233   withval=$with_ascend_binary;  case "$withval" in
20234     yes)
20235         ;;
20236     *)
20237         ASCEND_BINARY=""
20238   esac
20239
20240 fi
20241
20242 if test "X$ASCEND_BINARY" = "Xyes"; then
20243
20244 cat >>confdefs.h <<\_ACEOF
20245 #define ASCEND_BINARY
20246 _ACEOF
20247
20248 fi
20249
20250 WITH_THREADS=yes
20251
20252 # Check whether --with-threads was given.
20253 if test "${with_threads+set}" = set; then
20254   withval=$with_threads;  case "$withval" in
20255     yes)
20256         ;;
20257     *)
20258         WITH_THREADS=""
20259   esac
20260
20261 fi
20262
20263
20264 WITH_VMPS=yes
20265
20266 # Check whether --with-vmps was given.
20267 if test "${with_vmps+set}" = set; then
20268   withval=$with_vmps;  case "$withval" in
20269     yes)
20270         ;;
20271     *)
20272         WITH_VMPS=no
20273   esac
20274
20275 fi
20276
20277 if test "x$WITH_VMPS" = "xyes"; then
20278
20279 cat >>confdefs.h <<\_ACEOF
20280 #define WITH_VMPS 1
20281 _ACEOF
20282
20283 fi
20284
20285
20286 # Check whether --with-dhcp was given.
20287 if test "${with_dhcp+set}" = set; then
20288   withval=$with_dhcp;  case "$withval" in
20289     yes)
20290
20291 cat >>confdefs.h <<\_ACEOF
20292 #define WITH_DHCP 1
20293 _ACEOF
20294
20295         ;;
20296     *)
20297         ;;
20298   esac
20299
20300 fi
20301
20302
20303
20304 STATIC_MODULES=
20305
20306 # Check whether --with-static_modules was given.
20307 if test "${with_static_modules+set}" = set; then
20308   withval=$with_static_modules;
20309   for i in $withval; do
20310     STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
20311   done
20312
20313 fi
20314
20315
20316 MODULES=
20317
20318 # Check whether --with-modules was given.
20319 if test "${with_modules+set}" = set; then
20320   withval=$with_modules;
20321  for i in $withval; do
20322    MODULES="$MODULES $i"
20323  done
20324
20325 fi
20326
20327
20328 # Check whether --enable-developer was given.
20329 if test "${enable_developer+set}" = set; then
20330   enableval=$enable_developer;  case "$enableval" in
20331     no)
20332         developer=no
20333         ;;
20334     *)
20335         developer=yes
20336   esac
20337
20338 fi
20339
20340
20341 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
20342     developer="yes"
20343 fi
20344
20345 if test "x$developer" != "xno" -a -d $srcdir/.git; then
20346     developer="yes"
20347 fi
20348
20349 EXPERIMENTAL=
20350
20351 # Check whether --with-experimental-modules was given.
20352 if test "${with_experimental_modules+set}" = set; then
20353   withval=$with_experimental_modules;  case "$withval" in
20354     yes)
20355         EXPERIMENTAL=yes
20356         ;;
20357     *)
20358   esac
20359
20360 fi
20361
20362
20363 WITH_OPENSSL=yes
20364
20365 # Check whether --with-openssl was given.
20366 if test "${with_openssl+set}" = set; then
20367   withval=$with_openssl;  case "$withval" in
20368     no)
20369         WITH_OPENSSL=no
20370         ;;
20371     *)
20372         WITH_OPENSSL=yes
20373         ;;
20374   esac
20375
20376 fi
20377
20378
20379 OPENSSL_INCLUDE_DIR=
20380
20381 # Check whether --with-openssl-includes was given.
20382 if test "${with_openssl_includes+set}" = set; then
20383   withval=$with_openssl_includes;  case "$withval" in
20384     *) OPENSSL_INCLUDE_DIR="$withval"
20385         ;;
20386   esac
20387
20388 fi
20389
20390
20391 OPENSSL_LIB_DIR=
20392
20393 # Check whether --with-openssl-libraries was given.
20394 if test "${with_openssl_libraries+set}" = set; then
20395   withval=$with_openssl_libraries;  case "$withval" in
20396     *) OPENSSL_LIB_DIR="$withval"
20397         ;;
20398   esac
20399
20400 fi
20401
20402
20403
20404
20405 # Check whether --with-rlm-FOO-lib-dir was given.
20406 if test "${with_rlm_FOO_lib_dir+set}" = set; then
20407   withval=$with_rlm_FOO_lib_dir;  case "$withval" in
20408     *)
20409         ;;
20410   esac
20411
20412 fi
20413
20414
20415
20416 # Check whether --with-rlm-FOO-include-dir was given.
20417 if test "${with_rlm_FOO_include_dir+set}" = set; then
20418   withval=$with_rlm_FOO_include_dir;  case "$withval" in
20419     *)
20420         ;;
20421   esac
20422
20423 fi
20424
20425
20426
20427 WITH_UDPFROMTO=no
20428
20429 # Check whether --with-udpfromto was given.
20430 if test "${with_udpfromto+set}" = set; then
20431   withval=$with_udpfromto;  case "$withval" in
20432     yes)
20433         WITH_UDPFROMTO=yes
20434         ;;
20435     *)
20436         WITH_UDPFROMTO=no
20437   esac
20438
20439 fi
20440
20441
20442 if test "x$WITH_UDPFROMTO" = "xyes"; then
20443
20444 cat >>confdefs.h <<\_ACEOF
20445 #define WITH_UDPFROMTO
20446 _ACEOF
20447
20448 fi
20449
20450
20451 CHECKRAD=checkrad.pl
20452 # Extract the first word of "perl", so it can be a program name with args.
20453 set dummy perl; ac_word=$2
20454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20456 if test "${ac_cv_path_PERL+set}" = set; then
20457   echo $ECHO_N "(cached) $ECHO_C" >&6
20458 else
20459   case $PERL in
20460   [\\/]* | ?:[\\/]*)
20461   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20462   ;;
20463   *)
20464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20465 for as_dir in $PATH
20466 do
20467   IFS=$as_save_IFS
20468   test -z "$as_dir" && as_dir=.
20469   for ac_exec_ext in '' $ac_executable_extensions; do
20470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20471     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20473     break 2
20474   fi
20475 done
20476 done
20477 IFS=$as_save_IFS
20478
20479   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
20480   ;;
20481 esac
20482 fi
20483 PERL=$ac_cv_path_PERL
20484 if test -n "$PERL"; then
20485   { echo "$as_me:$LINENO: result: $PERL" >&5
20486 echo "${ECHO_T}$PERL" >&6; }
20487 else
20488   { echo "$as_me:$LINENO: result: no" >&5
20489 echo "${ECHO_T}no" >&6; }
20490 fi
20491
20492
20493 if test "x$ac_cv_path_PERL" = "x"; then
20494   { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
20495 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20496 fi
20497 # Extract the first word of "snmpget", so it can be a program name with args.
20498 set dummy snmpget; ac_word=$2
20499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20501 if test "${ac_cv_path_SNMPGET+set}" = set; then
20502   echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504   case $SNMPGET in
20505   [\\/]* | ?:[\\/]*)
20506   ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
20507   ;;
20508   *)
20509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20510 for as_dir in $PATH
20511 do
20512   IFS=$as_save_IFS
20513   test -z "$as_dir" && as_dir=.
20514   for ac_exec_ext in '' $ac_executable_extensions; do
20515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20516     ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
20517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20518     break 2
20519   fi
20520 done
20521 done
20522 IFS=$as_save_IFS
20523
20524   ;;
20525 esac
20526 fi
20527 SNMPGET=$ac_cv_path_SNMPGET
20528 if test -n "$SNMPGET"; then
20529   { echo "$as_me:$LINENO: result: $SNMPGET" >&5
20530 echo "${ECHO_T}$SNMPGET" >&6; }
20531 else
20532   { echo "$as_me:$LINENO: result: no" >&5
20533 echo "${ECHO_T}no" >&6; }
20534 fi
20535
20536
20537 if test "x$ac_cv_path_SNMPGET" = "x"; then
20538   { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
20539 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20540 fi
20541
20542 # Extract the first word of "snmpwalk", so it can be a program name with args.
20543 set dummy snmpwalk; ac_word=$2
20544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20546 if test "${ac_cv_path_SNMPWALK+set}" = set; then
20547   echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549   case $SNMPWALK in
20550   [\\/]* | ?:[\\/]*)
20551   ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
20552   ;;
20553   *)
20554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20555 for as_dir in $PATH
20556 do
20557   IFS=$as_save_IFS
20558   test -z "$as_dir" && as_dir=.
20559   for ac_exec_ext in '' $ac_executable_extensions; do
20560   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20561     ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
20562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20563     break 2
20564   fi
20565 done
20566 done
20567 IFS=$as_save_IFS
20568
20569   ;;
20570 esac
20571 fi
20572 SNMPWALK=$ac_cv_path_SNMPWALK
20573 if test -n "$SNMPWALK"; then
20574   { echo "$as_me:$LINENO: result: $SNMPWALK" >&5
20575 echo "${ECHO_T}$SNMPWALK" >&6; }
20576 else
20577   { echo "$as_me:$LINENO: result: no" >&5
20578 echo "${ECHO_T}no" >&6; }
20579 fi
20580
20581
20582 if test "x$ac_cv_path_SNMPWALK" = "x"; then
20583   { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
20584 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
20585 fi
20586
20587 # Extract the first word of "rusers", so it can be a program name with args.
20588 set dummy rusers; ac_word=$2
20589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20591 if test "${ac_cv_path_RUSERS+set}" = set; then
20592   echo $ECHO_N "(cached) $ECHO_C" >&6
20593 else
20594   case $RUSERS in
20595   [\\/]* | ?:[\\/]*)
20596   ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
20597   ;;
20598   *)
20599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20600 for as_dir in $PATH
20601 do
20602   IFS=$as_save_IFS
20603   test -z "$as_dir" && as_dir=.
20604   for ac_exec_ext in '' $ac_executable_extensions; do
20605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20606     ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
20607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20608     break 2
20609   fi
20610 done
20611 done
20612 IFS=$as_save_IFS
20613
20614   test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
20615   ;;
20616 esac
20617 fi
20618 RUSERS=$ac_cv_path_RUSERS
20619 if test -n "$RUSERS"; then
20620   { echo "$as_me:$LINENO: result: $RUSERS" >&5
20621 echo "${ECHO_T}$RUSERS" >&6; }
20622 else
20623   { echo "$as_me:$LINENO: result: no" >&5
20624 echo "${ECHO_T}no" >&6; }
20625 fi
20626
20627
20628
20629 missing_dir=`cd $ac_aux_dir && pwd`
20630 # expand $ac_aux_dir to an absolute path
20631 am_aux_dir=`cd $ac_aux_dir && pwd`
20632
20633 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
20634 # Use eval to expand $SHELL
20635 if eval "$MISSING --run true"; then
20636   am_missing_run="$MISSING --run "
20637 else
20638   am_missing_run=
20639   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
20640 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
20641 fi
20642
20643
20644 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
20645
20646
20647 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20648
20649
20650 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20651
20652
20653 # Extract the first word of "locate", so it can be a program name with args.
20654 set dummy locate; ac_word=$2
20655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20657 if test "${ac_cv_path_LOCATE+set}" = set; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660   case $LOCATE in
20661   [\\/]* | ?:[\\/]*)
20662   ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
20663   ;;
20664   *)
20665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20666 for as_dir in $PATH
20667 do
20668   IFS=$as_save_IFS
20669   test -z "$as_dir" && as_dir=.
20670   for ac_exec_ext in '' $ac_executable_extensions; do
20671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20672     ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
20673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20674     break 2
20675   fi
20676 done
20677 done
20678 IFS=$as_save_IFS
20679
20680   ;;
20681 esac
20682 fi
20683 LOCATE=$ac_cv_path_LOCATE
20684 if test -n "$LOCATE"; then
20685   { echo "$as_me:$LINENO: result: $LOCATE" >&5
20686 echo "${ECHO_T}$LOCATE" >&6; }
20687 else
20688   { echo "$as_me:$LINENO: result: no" >&5
20689 echo "${ECHO_T}no" >&6; }
20690 fi
20691
20692
20693 # Extract the first word of "dirname", so it can be a program name with args.
20694 set dummy dirname; ac_word=$2
20695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20697 if test "${ac_cv_path_DIRNAME+set}" = set; then
20698   echo $ECHO_N "(cached) $ECHO_C" >&6
20699 else
20700   case $DIRNAME in
20701   [\\/]* | ?:[\\/]*)
20702   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
20703   ;;
20704   *)
20705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20706 for as_dir in $PATH
20707 do
20708   IFS=$as_save_IFS
20709   test -z "$as_dir" && as_dir=.
20710   for ac_exec_ext in '' $ac_executable_extensions; do
20711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20712     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
20713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20714     break 2
20715   fi
20716 done
20717 done
20718 IFS=$as_save_IFS
20719
20720   ;;
20721 esac
20722 fi
20723 DIRNAME=$ac_cv_path_DIRNAME
20724 if test -n "$DIRNAME"; then
20725   { echo "$as_me:$LINENO: result: $DIRNAME" >&5
20726 echo "${ECHO_T}$DIRNAME" >&6; }
20727 else
20728   { echo "$as_me:$LINENO: result: no" >&5
20729 echo "${ECHO_T}no" >&6; }
20730 fi
20731
20732
20733 # Extract the first word of "grep", so it can be a program name with args.
20734 set dummy grep; ac_word=$2
20735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20737 if test "${ac_cv_path_GREP+set}" = set; then
20738   echo $ECHO_N "(cached) $ECHO_C" >&6
20739 else
20740   case $GREP in
20741   [\\/]* | ?:[\\/]*)
20742   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
20743   ;;
20744   *)
20745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20746 for as_dir in $PATH
20747 do
20748   IFS=$as_save_IFS
20749   test -z "$as_dir" && as_dir=.
20750   for ac_exec_ext in '' $ac_executable_extensions; do
20751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20752     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20753     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20754     break 2
20755   fi
20756 done
20757 done
20758 IFS=$as_save_IFS
20759
20760   ;;
20761 esac
20762 fi
20763 GREP=$ac_cv_path_GREP
20764 if test -n "$GREP"; then
20765   { echo "$as_me:$LINENO: result: $GREP" >&5
20766 echo "${ECHO_T}$GREP" >&6; }
20767 else
20768   { echo "$as_me:$LINENO: result: no" >&5
20769 echo "${ECHO_T}no" >&6; }
20770 fi
20771
20772
20773
20774
20775 old_CFLAGS=$CFLAGS
20776 if test "x$WITH_THREADS" = "xyes"; then
20777   if test $ac_cv_prog_suncc = "yes"; then
20778     CFLAGS="$CFLAGS -mt"
20779   fi
20780
20781
20782 for ac_header in pthread.h
20783 do
20784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20786   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20789   echo $ECHO_N "(cached) $ECHO_C" >&6
20790 fi
20791 ac_res=`eval echo '${'$as_ac_Header'}'`
20792                { echo "$as_me:$LINENO: result: $ac_res" >&5
20793 echo "${ECHO_T}$ac_res" >&6; }
20794 else
20795   # Is the header compilable?
20796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h.  */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h.  */
20804 $ac_includes_default
20805 #include <$ac_header>
20806 _ACEOF
20807 rm -f conftest.$ac_objext
20808 if { (ac_try="$ac_compile"
20809 case "(($ac_try" in
20810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811   *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814   (eval "$ac_compile") 2>conftest.er1
20815   ac_status=$?
20816   grep -v '^ *+' conftest.er1 >conftest.err
20817   rm -f conftest.er1
20818   cat conftest.err >&5
20819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820   (exit $ac_status); } && {
20821          test -z "$ac_c_werror_flag" ||
20822          test ! -s conftest.err
20823        } && test -s conftest.$ac_objext; then
20824   ac_header_compiler=yes
20825 else
20826   echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829         ac_header_compiler=no
20830 fi
20831
20832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20834 echo "${ECHO_T}$ac_header_compiler" >&6; }
20835
20836 # Is the header present?
20837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20839 cat >conftest.$ac_ext <<_ACEOF
20840 /* confdefs.h.  */
20841 _ACEOF
20842 cat confdefs.h >>conftest.$ac_ext
20843 cat >>conftest.$ac_ext <<_ACEOF
20844 /* end confdefs.h.  */
20845 #include <$ac_header>
20846 _ACEOF
20847 if { (ac_try="$ac_cpp conftest.$ac_ext"
20848 case "(($ac_try" in
20849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850   *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20854   ac_status=$?
20855   grep -v '^ *+' conftest.er1 >conftest.err
20856   rm -f conftest.er1
20857   cat conftest.err >&5
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); } >/dev/null && {
20860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20861          test ! -s conftest.err
20862        }; then
20863   ac_header_preproc=yes
20864 else
20865   echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20867
20868   ac_header_preproc=no
20869 fi
20870
20871 rm -f conftest.err conftest.$ac_ext
20872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20873 echo "${ECHO_T}$ac_header_preproc" >&6; }
20874
20875 # So?  What about this header?
20876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20877   yes:no: )
20878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20882     ac_header_preproc=yes
20883     ;;
20884   no:yes:* )
20885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20897
20898     ;;
20899 esac
20900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20903   echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905   eval "$as_ac_Header=\$ac_header_preproc"
20906 fi
20907 ac_res=`eval echo '${'$as_ac_Header'}'`
20908                { echo "$as_me:$LINENO: result: $ac_res" >&5
20909 echo "${ECHO_T}$ac_res" >&6; }
20910
20911 fi
20912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20913   cat >>confdefs.h <<_ACEOF
20914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20915 _ACEOF
20916
20917 else
20918    WITH_THREADS="no"
20919 fi
20920
20921 done
20922
20923
20924   { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20925 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
20926 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20927   echo $ECHO_N "(cached) $ECHO_C" >&6
20928 else
20929   ac_check_lib_save_LIBS=$LIBS
20930 LIBS="-lpthread  $LIBS"
20931 cat >conftest.$ac_ext <<_ACEOF
20932 /* confdefs.h.  */
20933 _ACEOF
20934 cat confdefs.h >>conftest.$ac_ext
20935 cat >>conftest.$ac_ext <<_ACEOF
20936 /* end confdefs.h.  */
20937
20938 /* Override any GCC internal prototype to avoid an error.
20939    Use char because int might match the return type of a GCC
20940    builtin and then its argument prototype would still apply.  */
20941 #ifdef __cplusplus
20942 extern "C"
20943 #endif
20944 char pthread_create ();
20945 int
20946 main ()
20947 {
20948 return pthread_create ();
20949   ;
20950   return 0;
20951 }
20952 _ACEOF
20953 rm -f conftest.$ac_objext conftest$ac_exeext
20954 if { (ac_try="$ac_link"
20955 case "(($ac_try" in
20956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957   *) ac_try_echo=$ac_try;;
20958 esac
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960   (eval "$ac_link") 2>conftest.er1
20961   ac_status=$?
20962   grep -v '^ *+' conftest.er1 >conftest.err
20963   rm -f conftest.er1
20964   cat conftest.err >&5
20965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966   (exit $ac_status); } && {
20967          test -z "$ac_c_werror_flag" ||
20968          test ! -s conftest.err
20969        } && test -s conftest$ac_exeext &&
20970        $as_test_x conftest$ac_exeext; then
20971   ac_cv_lib_pthread_pthread_create=yes
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976         ac_cv_lib_pthread_pthread_create=no
20977 fi
20978
20979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20980       conftest$ac_exeext conftest.$ac_ext
20981 LIBS=$ac_check_lib_save_LIBS
20982 fi
20983 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20984 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
20985 if test $ac_cv_lib_pthread_pthread_create = yes; then
20986    CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20987                   LIBS="$LIBS -lpthread"
20988 else
20989   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20990 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
20991 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20992   echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994   ac_check_lib_save_LIBS=$LIBS
20995 LIBS="-lc_r  $LIBS"
20996 cat >conftest.$ac_ext <<_ACEOF
20997 /* confdefs.h.  */
20998 _ACEOF
20999 cat confdefs.h >>conftest.$ac_ext
21000 cat >>conftest.$ac_ext <<_ACEOF
21001 /* end confdefs.h.  */
21002
21003 /* Override any GCC internal prototype to avoid an error.
21004    Use char because int might match the return type of a GCC
21005    builtin and then its argument prototype would still apply.  */
21006 #ifdef __cplusplus
21007 extern "C"
21008 #endif
21009 char pthread_create ();
21010 int
21011 main ()
21012 {
21013 return pthread_create ();
21014   ;
21015   return 0;
21016 }
21017 _ACEOF
21018 rm -f conftest.$ac_objext conftest$ac_exeext
21019 if { (ac_try="$ac_link"
21020 case "(($ac_try" in
21021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022   *) ac_try_echo=$ac_try;;
21023 esac
21024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21025   (eval "$ac_link") 2>conftest.er1
21026   ac_status=$?
21027   grep -v '^ *+' conftest.er1 >conftest.err
21028   rm -f conftest.er1
21029   cat conftest.err >&5
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); } && {
21032          test -z "$ac_c_werror_flag" ||
21033          test ! -s conftest.err
21034        } && test -s conftest$ac_exeext &&
21035        $as_test_x conftest$ac_exeext; then
21036   ac_cv_lib_c_r_pthread_create=yes
21037 else
21038   echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041         ac_cv_lib_c_r_pthread_create=no
21042 fi
21043
21044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21045       conftest$ac_exeext conftest.$ac_ext
21046 LIBS=$ac_check_lib_save_LIBS
21047 fi
21048 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21049 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
21050 if test $ac_cv_lib_c_r_pthread_create = yes; then
21051    CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
21052 else
21053    WITH_THREADS="no"
21054
21055 fi
21056
21057
21058 fi
21059
21060 fi
21061
21062 if test "x$WITH_THREADS" != "xyes"; then
21063   CFLAGS=$old_CFLAGS
21064   ac_cv_header_pthread_h="no"
21065   WITH_THREADS=no
21066 else
21067
21068   { echo "$as_me:$LINENO: checking for library containing sem_init" >&5
21069 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6; }
21070 if test "${ac_cv_search_sem_init+set}" = set; then
21071   echo $ECHO_N "(cached) $ECHO_C" >&6
21072 else
21073   ac_func_search_save_LIBS=$LIBS
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h.  */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h.  */
21080
21081 /* Override any GCC internal prototype to avoid an error.
21082    Use char because int might match the return type of a GCC
21083    builtin and then its argument prototype would still apply.  */
21084 #ifdef __cplusplus
21085 extern "C"
21086 #endif
21087 char sem_init ();
21088 int
21089 main ()
21090 {
21091 return sem_init ();
21092   ;
21093   return 0;
21094 }
21095 _ACEOF
21096 for ac_lib in '' pthread sem posix4 rt semaphore; do
21097   if test -z "$ac_lib"; then
21098     ac_res="none required"
21099   else
21100     ac_res=-l$ac_lib
21101     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21102   fi
21103   rm -f conftest.$ac_objext conftest$ac_exeext
21104 if { (ac_try="$ac_link"
21105 case "(($ac_try" in
21106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21107   *) ac_try_echo=$ac_try;;
21108 esac
21109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21110   (eval "$ac_link") 2>conftest.er1
21111   ac_status=$?
21112   grep -v '^ *+' conftest.er1 >conftest.err
21113   rm -f conftest.er1
21114   cat conftest.err >&5
21115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116   (exit $ac_status); } && {
21117          test -z "$ac_c_werror_flag" ||
21118          test ! -s conftest.err
21119        } && test -s conftest$ac_exeext &&
21120        $as_test_x conftest$ac_exeext; then
21121   ac_cv_search_sem_init=$ac_res
21122 else
21123   echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126
21127 fi
21128
21129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21130       conftest$ac_exeext
21131   if test "${ac_cv_search_sem_init+set}" = set; then
21132   break
21133 fi
21134 done
21135 if test "${ac_cv_search_sem_init+set}" = set; then
21136   :
21137 else
21138   ac_cv_search_sem_init=no
21139 fi
21140 rm conftest.$ac_ext
21141 LIBS=$ac_func_search_save_LIBS
21142 fi
21143 { echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
21144 echo "${ECHO_T}$ac_cv_search_sem_init" >&6; }
21145 ac_res=$ac_cv_search_sem_init
21146 if test "$ac_res" != no; then
21147   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21148
21149 else
21150   { { 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
21151 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;}
21152    { (exit 1); exit 1; }; }
21153
21154 fi
21155
21156 fi
21157
21158
21159 { echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
21160 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6; }
21161 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
21162   echo $ECHO_N "(cached) $ECHO_C" >&6
21163 else
21164   ac_check_lib_save_LIBS=$LIBS
21165 LIBS="-lsocket  $LIBS"
21166 cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h.  */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h.  */
21172
21173 /* Override any GCC internal prototype to avoid an error.
21174    Use char because int might match the return type of a GCC
21175    builtin and then its argument prototype would still apply.  */
21176 #ifdef __cplusplus
21177 extern "C"
21178 #endif
21179 char getsockname ();
21180 int
21181 main ()
21182 {
21183 return getsockname ();
21184   ;
21185   return 0;
21186 }
21187 _ACEOF
21188 rm -f conftest.$ac_objext conftest$ac_exeext
21189 if { (ac_try="$ac_link"
21190 case "(($ac_try" in
21191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192   *) ac_try_echo=$ac_try;;
21193 esac
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195   (eval "$ac_link") 2>conftest.er1
21196   ac_status=$?
21197   grep -v '^ *+' conftest.er1 >conftest.err
21198   rm -f conftest.er1
21199   cat conftest.err >&5
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); } && {
21202          test -z "$ac_c_werror_flag" ||
21203          test ! -s conftest.err
21204        } && test -s conftest$ac_exeext &&
21205        $as_test_x conftest$ac_exeext; then
21206   ac_cv_lib_socket_getsockname=yes
21207 else
21208   echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211         ac_cv_lib_socket_getsockname=no
21212 fi
21213
21214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21215       conftest$ac_exeext conftest.$ac_ext
21216 LIBS=$ac_check_lib_save_LIBS
21217 fi
21218 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
21219 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6; }
21220 if test $ac_cv_lib_socket_getsockname = yes; then
21221   cat >>confdefs.h <<_ACEOF
21222 #define HAVE_LIBSOCKET 1
21223 _ACEOF
21224
21225   LIBS="-lsocket $LIBS"
21226
21227 fi
21228
21229
21230
21231 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
21232 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
21233 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
21234   echo $ECHO_N "(cached) $ECHO_C" >&6
21235 else
21236   ac_check_lib_save_LIBS=$LIBS
21237 LIBS="-lresolv  $LIBS"
21238 cat >conftest.$ac_ext <<_ACEOF
21239 /* confdefs.h.  */
21240 _ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h.  */
21244
21245 /* Override any GCC internal prototype to avoid an error.
21246    Use char because int might match the return type of a GCC
21247    builtin and then its argument prototype would still apply.  */
21248 #ifdef __cplusplus
21249 extern "C"
21250 #endif
21251 char inet_aton ();
21252 int
21253 main ()
21254 {
21255 return inet_aton ();
21256   ;
21257   return 0;
21258 }
21259 _ACEOF
21260 rm -f conftest.$ac_objext conftest$ac_exeext
21261 if { (ac_try="$ac_link"
21262 case "(($ac_try" in
21263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264   *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267   (eval "$ac_link") 2>conftest.er1
21268   ac_status=$?
21269   grep -v '^ *+' conftest.er1 >conftest.err
21270   rm -f conftest.er1
21271   cat conftest.err >&5
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); } && {
21274          test -z "$ac_c_werror_flag" ||
21275          test ! -s conftest.err
21276        } && test -s conftest$ac_exeext &&
21277        $as_test_x conftest$ac_exeext; then
21278   ac_cv_lib_resolv_inet_aton=yes
21279 else
21280   echo "$as_me: failed program was:" >&5
21281 sed 's/^/| /' conftest.$ac_ext >&5
21282
21283         ac_cv_lib_resolv_inet_aton=no
21284 fi
21285
21286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21287       conftest$ac_exeext conftest.$ac_ext
21288 LIBS=$ac_check_lib_save_LIBS
21289 fi
21290 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
21291 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
21292 if test $ac_cv_lib_resolv_inet_aton = yes; then
21293   cat >>confdefs.h <<_ACEOF
21294 #define HAVE_LIBRESOLV 1
21295 _ACEOF
21296
21297   LIBS="-lresolv $LIBS"
21298
21299 fi
21300
21301
21302
21303 { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
21304 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
21305 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
21306   echo $ECHO_N "(cached) $ECHO_C" >&6
21307 else
21308   ac_check_lib_save_LIBS=$LIBS
21309 LIBS="-lnsl  $LIBS"
21310 cat >conftest.$ac_ext <<_ACEOF
21311 /* confdefs.h.  */
21312 _ACEOF
21313 cat confdefs.h >>conftest.$ac_ext
21314 cat >>conftest.$ac_ext <<_ACEOF
21315 /* end confdefs.h.  */
21316
21317 /* Override any GCC internal prototype to avoid an error.
21318    Use char because int might match the return type of a GCC
21319    builtin and then its argument prototype would still apply.  */
21320 #ifdef __cplusplus
21321 extern "C"
21322 #endif
21323 char inet_ntoa ();
21324 int
21325 main ()
21326 {
21327 return inet_ntoa ();
21328   ;
21329   return 0;
21330 }
21331 _ACEOF
21332 rm -f conftest.$ac_objext conftest$ac_exeext
21333 if { (ac_try="$ac_link"
21334 case "(($ac_try" in
21335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336   *) ac_try_echo=$ac_try;;
21337 esac
21338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339   (eval "$ac_link") 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } && {
21346          test -z "$ac_c_werror_flag" ||
21347          test ! -s conftest.err
21348        } && test -s conftest$ac_exeext &&
21349        $as_test_x conftest$ac_exeext; then
21350   ac_cv_lib_nsl_inet_ntoa=yes
21351 else
21352   echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355         ac_cv_lib_nsl_inet_ntoa=no
21356 fi
21357
21358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21359       conftest$ac_exeext conftest.$ac_ext
21360 LIBS=$ac_check_lib_save_LIBS
21361 fi
21362 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
21363 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
21364 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
21365   cat >>confdefs.h <<_ACEOF
21366 #define HAVE_LIBNSL 1
21367 _ACEOF
21368
21369   LIBS="-lnsl $LIBS"
21370
21371 fi
21372
21373
21374 OPENSSL_LIBS=
21375 if test "x$WITH_OPENSSL" = xyes; then
21376   old_LIBS=$LIBS
21377   if test "x$OPENSSL_LIB_DIR" != "x"; then
21378     LIBS="-L$OPENSSL_LIB_DIR $LIBS"
21379   fi
21380   { echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21381 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6; }
21382 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
21383   echo $ECHO_N "(cached) $ECHO_C" >&6
21384 else
21385   ac_check_lib_save_LIBS=$LIBS
21386 LIBS="-lcrypto  $LIBS"
21387 cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393
21394 /* Override any GCC internal prototype to avoid an error.
21395    Use char because int might match the return type of a GCC
21396    builtin and then its argument prototype would still apply.  */
21397 #ifdef __cplusplus
21398 extern "C"
21399 #endif
21400 char DH_new ();
21401 int
21402 main ()
21403 {
21404 return DH_new ();
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext conftest$ac_exeext
21410 if { (ac_try="$ac_link"
21411 case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416   (eval "$ac_link") 2>conftest.er1
21417   ac_status=$?
21418   grep -v '^ *+' conftest.er1 >conftest.err
21419   rm -f conftest.er1
21420   cat conftest.err >&5
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } && {
21423          test -z "$ac_c_werror_flag" ||
21424          test ! -s conftest.err
21425        } && test -s conftest$ac_exeext &&
21426        $as_test_x conftest$ac_exeext; then
21427   ac_cv_lib_crypto_DH_new=yes
21428 else
21429   echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432         ac_cv_lib_crypto_DH_new=no
21433 fi
21434
21435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21436       conftest$ac_exeext conftest.$ac_ext
21437 LIBS=$ac_check_lib_save_LIBS
21438 fi
21439 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
21440 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6; }
21441 if test $ac_cv_lib_crypto_DH_new = yes; then
21442
21443         LIBS="-lcrypto $LIBS"
21444
21445 cat >>confdefs.h <<\_ACEOF
21446 #define HAVE_LIBCRYPTO 1
21447 _ACEOF
21448
21449         { echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21450 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6; }
21451 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
21452   echo $ECHO_N "(cached) $ECHO_C" >&6
21453 else
21454   ac_check_lib_save_LIBS=$LIBS
21455 LIBS="-lssl  $LIBS"
21456 cat >conftest.$ac_ext <<_ACEOF
21457 /* confdefs.h.  */
21458 _ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h.  */
21462
21463 /* Override any GCC internal prototype to avoid an error.
21464    Use char because int might match the return type of a GCC
21465    builtin and then its argument prototype would still apply.  */
21466 #ifdef __cplusplus
21467 extern "C"
21468 #endif
21469 char SSL_new ();
21470 int
21471 main ()
21472 {
21473 return SSL_new ();
21474   ;
21475   return 0;
21476 }
21477 _ACEOF
21478 rm -f conftest.$ac_objext conftest$ac_exeext
21479 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
21486   ac_status=$?
21487   grep -v '^ *+' conftest.er1 >conftest.err
21488   rm -f conftest.er1
21489   cat conftest.err >&5
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); } && {
21492          test -z "$ac_c_werror_flag" ||
21493          test ! -s conftest.err
21494        } && test -s conftest$ac_exeext &&
21495        $as_test_x conftest$ac_exeext; then
21496   ac_cv_lib_ssl_SSL_new=yes
21497 else
21498   echo "$as_me: failed program was:" >&5
21499 sed 's/^/| /' conftest.$ac_ext >&5
21500
21501         ac_cv_lib_ssl_SSL_new=no
21502 fi
21503
21504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21505       conftest$ac_exeext conftest.$ac_ext
21506 LIBS=$ac_check_lib_save_LIBS
21507 fi
21508 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
21509 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6; }
21510 if test $ac_cv_lib_ssl_SSL_new = yes; then
21511
21512
21513 cat >>confdefs.h <<\_ACEOF
21514 #define HAVE_LIBSSL 1
21515 _ACEOF
21516
21517                 if test "x$OPENSSL_LIB_DIR" != "x"; then
21518                     OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21519                 fi
21520                 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21521
21522 fi
21523
21524
21525 fi
21526
21527   LIBS=$old_LIBS
21528 fi
21529
21530
21531 { echo "$as_me:$LINENO: checking for htonl in -lws2_32" >&5
21532 echo $ECHO_N "checking for htonl in -lws2_32... $ECHO_C" >&6; }
21533 if test "${ac_cv_lib_ws2_32_htonl+set}" = set; then
21534   echo $ECHO_N "(cached) $ECHO_C" >&6
21535 else
21536   ac_check_lib_save_LIBS=$LIBS
21537 LIBS="-lws2_32  $LIBS"
21538 cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544
21545 /* Override any GCC internal prototype to avoid an error.
21546    Use char because int might match the return type of a GCC
21547    builtin and then its argument prototype would still apply.  */
21548 #ifdef __cplusplus
21549 extern "C"
21550 #endif
21551 char htonl ();
21552 int
21553 main ()
21554 {
21555 return htonl ();
21556   ;
21557   return 0;
21558 }
21559 _ACEOF
21560 rm -f conftest.$ac_objext conftest$ac_exeext
21561 if { (ac_try="$ac_link"
21562 case "(($ac_try" in
21563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564   *) ac_try_echo=$ac_try;;
21565 esac
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567   (eval "$ac_link") 2>conftest.er1
21568   ac_status=$?
21569   grep -v '^ *+' conftest.er1 >conftest.err
21570   rm -f conftest.er1
21571   cat conftest.err >&5
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } && {
21574          test -z "$ac_c_werror_flag" ||
21575          test ! -s conftest.err
21576        } && test -s conftest$ac_exeext &&
21577        $as_test_x conftest$ac_exeext; then
21578   ac_cv_lib_ws2_32_htonl=yes
21579 else
21580   echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21582
21583         ac_cv_lib_ws2_32_htonl=no
21584 fi
21585
21586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21587       conftest$ac_exeext conftest.$ac_ext
21588 LIBS=$ac_check_lib_save_LIBS
21589 fi
21590 { echo "$as_me:$LINENO: result: $ac_cv_lib_ws2_32_htonl" >&5
21591 echo "${ECHO_T}$ac_cv_lib_ws2_32_htonl" >&6; }
21592 if test $ac_cv_lib_ws2_32_htonl = yes; then
21593   cat >>confdefs.h <<_ACEOF
21594 #define HAVE_LIBWS2_32 1
21595 _ACEOF
21596
21597   LIBS="-lws2_32 $LIBS"
21598
21599 fi
21600
21601
21602 PCAP_LIBS=
21603 { echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
21604 echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6; }
21605 if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
21606   echo $ECHO_N "(cached) $ECHO_C" >&6
21607 else
21608   ac_check_lib_save_LIBS=$LIBS
21609 LIBS="-lpcap  $LIBS"
21610 cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616
21617 /* Override any GCC internal prototype to avoid an error.
21618    Use char because int might match the return type of a GCC
21619    builtin and then its argument prototype would still apply.  */
21620 #ifdef __cplusplus
21621 extern "C"
21622 #endif
21623 char pcap_open_live ();
21624 int
21625 main ()
21626 {
21627 return pcap_open_live ();
21628   ;
21629   return 0;
21630 }
21631 _ACEOF
21632 rm -f conftest.$ac_objext conftest$ac_exeext
21633 if { (ac_try="$ac_link"
21634 case "(($ac_try" in
21635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636   *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639   (eval "$ac_link") 2>conftest.er1
21640   ac_status=$?
21641   grep -v '^ *+' conftest.er1 >conftest.err
21642   rm -f conftest.er1
21643   cat conftest.err >&5
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); } && {
21646          test -z "$ac_c_werror_flag" ||
21647          test ! -s conftest.err
21648        } && test -s conftest$ac_exeext &&
21649        $as_test_x conftest$ac_exeext; then
21650   ac_cv_lib_pcap_pcap_open_live=yes
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655         ac_cv_lib_pcap_pcap_open_live=no
21656 fi
21657
21658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21659       conftest$ac_exeext conftest.$ac_ext
21660 LIBS=$ac_check_lib_save_LIBS
21661 fi
21662 { echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
21663 echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6; }
21664 if test $ac_cv_lib_pcap_pcap_open_live = yes; then
21665    PCAP_LIBS="-lpcap"
21666
21667 cat >>confdefs.h <<\_ACEOF
21668 #define HAVE_LIBPCAP 1
21669 _ACEOF
21670
21671
21672 else
21673    { echo "$as_me:$LINENO: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&5
21674 echo "$as_me: WARNING: pcap library not found, silently disabling the RADIUS sniffer." >&2;}
21675 fi
21676
21677
21678
21679   { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
21680 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
21681 if test "${ac_cv_lib_readline+set}" = set; then
21682   echo $ECHO_N "(cached) $ECHO_C" >&6
21683 else
21684
21685     ORIG_LIBS=$LIBS
21686     for readline_lib in readline edit editline; do
21687       for termcap_lib in "" termcap curses ncurses; do
21688         if test -z "$termcap_lib"; then
21689           TRY_LIB="-l$readline_lib"
21690         else
21691           TRY_LIB="-l$readline_lib -l$termcap_lib"
21692         fi
21693         LIBS="$ORIG_LIBS $TRY_LIB"
21694         cat >conftest.$ac_ext <<_ACEOF
21695 /* confdefs.h.  */
21696 _ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h.  */
21700
21701 /* Override any GCC internal prototype to avoid an error.
21702    Use char because int might match the return type of a GCC
21703    builtin and then its argument prototype would still apply.  */
21704 #ifdef __cplusplus
21705 extern "C"
21706 #endif
21707 char readline ();
21708 int
21709 main ()
21710 {
21711 return readline ();
21712   ;
21713   return 0;
21714 }
21715 _ACEOF
21716 rm -f conftest.$ac_objext conftest$ac_exeext
21717 if { (ac_try="$ac_link"
21718 case "(($ac_try" in
21719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21720   *) ac_try_echo=$ac_try;;
21721 esac
21722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21723   (eval "$ac_link") 2>conftest.er1
21724   ac_status=$?
21725   grep -v '^ *+' conftest.er1 >conftest.err
21726   rm -f conftest.er1
21727   cat conftest.err >&5
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); } && {
21730          test -z "$ac_c_werror_flag" ||
21731          test ! -s conftest.err
21732        } && test -s conftest$ac_exeext &&
21733        $as_test_x conftest$ac_exeext; then
21734   ac_cv_lib_readline="$TRY_LIB"
21735 else
21736   echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21738
21739
21740 fi
21741
21742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21743       conftest$ac_exeext conftest.$ac_ext
21744         if test -n "$ac_cv_lib_readline"; then
21745           LIBREADLINE="$TRY_LIB"
21746
21747           break
21748         fi
21749       done
21750       if test -n "$ac_cv_lib_readline"; then
21751         break
21752       fi
21753     done
21754     if test -z "$ac_cv_lib_readline"; then
21755       ac_cv_lib_readline="no"
21756     fi
21757     LIBS=$ORIG_LIBS
21758
21759 fi
21760 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
21761 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
21762
21763   if test "$ac_cv_lib_readline" != "no"; then
21764
21765 cat >>confdefs.h <<\_ACEOF
21766 #define HAVE_LIBREADLINE 1
21767 _ACEOF
21768
21769
21770
21771 for ac_header in readline.h readline/readline.h
21772 do
21773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21775   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21778   echo $ECHO_N "(cached) $ECHO_C" >&6
21779 fi
21780 ac_res=`eval echo '${'$as_ac_Header'}'`
21781                { echo "$as_me:$LINENO: result: $ac_res" >&5
21782 echo "${ECHO_T}$ac_res" >&6; }
21783 else
21784   # Is the header compilable?
21785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793 $ac_includes_default
21794 #include <$ac_header>
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800   *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803   (eval "$ac_compile") 2>conftest.er1
21804   ac_status=$?
21805   grep -v '^ *+' conftest.er1 >conftest.err
21806   rm -f conftest.er1
21807   cat conftest.err >&5
21808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809   (exit $ac_status); } && {
21810          test -z "$ac_c_werror_flag" ||
21811          test ! -s conftest.err
21812        } && test -s conftest.$ac_objext; then
21813   ac_header_compiler=yes
21814 else
21815   echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21817
21818         ac_header_compiler=no
21819 fi
21820
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21823 echo "${ECHO_T}$ac_header_compiler" >&6; }
21824
21825 # Is the header present?
21826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21828 cat >conftest.$ac_ext <<_ACEOF
21829 /* confdefs.h.  */
21830 _ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h.  */
21834 #include <$ac_header>
21835 _ACEOF
21836 if { (ac_try="$ac_cpp conftest.$ac_ext"
21837 case "(($ac_try" in
21838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839   *) ac_try_echo=$ac_try;;
21840 esac
21841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21843   ac_status=$?
21844   grep -v '^ *+' conftest.er1 >conftest.err
21845   rm -f conftest.er1
21846   cat conftest.err >&5
21847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21848   (exit $ac_status); } >/dev/null && {
21849          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21850          test ! -s conftest.err
21851        }; then
21852   ac_header_preproc=yes
21853 else
21854   echo "$as_me: failed program was:" >&5
21855 sed 's/^/| /' conftest.$ac_ext >&5
21856
21857   ac_header_preproc=no
21858 fi
21859
21860 rm -f conftest.err conftest.$ac_ext
21861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21862 echo "${ECHO_T}$ac_header_preproc" >&6; }
21863
21864 # So?  What about this header?
21865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21866   yes:no: )
21867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21871     ac_header_preproc=yes
21872     ;;
21873   no:yes:* )
21874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21876     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21877 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21878     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21880     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21881 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21884     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21886
21887     ;;
21888 esac
21889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21892   echo $ECHO_N "(cached) $ECHO_C" >&6
21893 else
21894   eval "$as_ac_Header=\$ac_header_preproc"
21895 fi
21896 ac_res=`eval echo '${'$as_ac_Header'}'`
21897                { echo "$as_me:$LINENO: result: $ac_res" >&5
21898 echo "${ECHO_T}$ac_res" >&6; }
21899
21900 fi
21901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21902   cat >>confdefs.h <<_ACEOF
21903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21904 _ACEOF
21905
21906 fi
21907
21908 done
21909
21910     { echo "$as_me:$LINENO: checking whether readline supports history" >&5
21911 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
21912 if test "${ac_cv_lib_readline_history+set}" = set; then
21913   echo $ECHO_N "(cached) $ECHO_C" >&6
21914 else
21915
21916       ac_cv_lib_readline_history="no"
21917       cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h.  */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h.  */
21923
21924 /* Override any GCC internal prototype to avoid an error.
21925    Use char because int might match the return type of a GCC
21926    builtin and then its argument prototype would still apply.  */
21927 #ifdef __cplusplus
21928 extern "C"
21929 #endif
21930 char add_history ();
21931 int
21932 main ()
21933 {
21934 return add_history ();
21935   ;
21936   return 0;
21937 }
21938 _ACEOF
21939 rm -f conftest.$ac_objext conftest$ac_exeext
21940 if { (ac_try="$ac_link"
21941 case "(($ac_try" in
21942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21943   *) ac_try_echo=$ac_try;;
21944 esac
21945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21946   (eval "$ac_link") 2>conftest.er1
21947   ac_status=$?
21948   grep -v '^ *+' conftest.er1 >conftest.err
21949   rm -f conftest.er1
21950   cat conftest.err >&5
21951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952   (exit $ac_status); } && {
21953          test -z "$ac_c_werror_flag" ||
21954          test ! -s conftest.err
21955        } && test -s conftest$ac_exeext &&
21956        $as_test_x conftest$ac_exeext; then
21957   ac_cv_lib_readline_history="yes"
21958 else
21959   echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962
21963 fi
21964
21965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21966       conftest$ac_exeext conftest.$ac_ext
21967
21968 fi
21969 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
21970 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
21971     if test "$ac_cv_lib_readline_history" = "yes"; then
21972
21973 cat >>confdefs.h <<\_ACEOF
21974 #define HAVE_READLINE_HISTORY 1
21975 _ACEOF
21976
21977
21978
21979 for ac_header in history.h readline/history.h
21980 do
21981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21983   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21986   echo $ECHO_N "(cached) $ECHO_C" >&6
21987 fi
21988 ac_res=`eval echo '${'$as_ac_Header'}'`
21989                { echo "$as_me:$LINENO: result: $ac_res" >&5
21990 echo "${ECHO_T}$ac_res" >&6; }
21991 else
21992   # Is the header compilable?
21993 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h.  */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h.  */
22001 $ac_includes_default
22002 #include <$ac_header>
22003 _ACEOF
22004 rm -f conftest.$ac_objext
22005 if { (ac_try="$ac_compile"
22006 case "(($ac_try" in
22007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22008   *) ac_try_echo=$ac_try;;
22009 esac
22010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22011   (eval "$ac_compile") 2>conftest.er1
22012   ac_status=$?
22013   grep -v '^ *+' conftest.er1 >conftest.err
22014   rm -f conftest.er1
22015   cat conftest.err >&5
22016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017   (exit $ac_status); } && {
22018          test -z "$ac_c_werror_flag" ||
22019          test ! -s conftest.err
22020        } && test -s conftest.$ac_objext; then
22021   ac_header_compiler=yes
22022 else
22023   echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026         ac_header_compiler=no
22027 fi
22028
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22031 echo "${ECHO_T}$ac_header_compiler" >&6; }
22032
22033 # Is the header present?
22034 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22036 cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h.  */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h.  */
22042 #include <$ac_header>
22043 _ACEOF
22044 if { (ac_try="$ac_cpp conftest.$ac_ext"
22045 case "(($ac_try" in
22046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047   *) ac_try_echo=$ac_try;;
22048 esac
22049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22051   ac_status=$?
22052   grep -v '^ *+' conftest.er1 >conftest.err
22053   rm -f conftest.er1
22054   cat conftest.err >&5
22055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22056   (exit $ac_status); } >/dev/null && {
22057          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22058          test ! -s conftest.err
22059        }; then
22060   ac_header_preproc=yes
22061 else
22062   echo "$as_me: failed program was:" >&5
22063 sed 's/^/| /' conftest.$ac_ext >&5
22064
22065   ac_header_preproc=no
22066 fi
22067
22068 rm -f conftest.err conftest.$ac_ext
22069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22070 echo "${ECHO_T}$ac_header_preproc" >&6; }
22071
22072 # So?  What about this header?
22073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22074   yes:no: )
22075     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22079     ac_header_preproc=yes
22080     ;;
22081   no:yes:* )
22082     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22084     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22085 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22086     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22088     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22089 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22092     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22094
22095     ;;
22096 esac
22097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22100   echo $ECHO_N "(cached) $ECHO_C" >&6
22101 else
22102   eval "$as_ac_Header=\$ac_header_preproc"
22103 fi
22104 ac_res=`eval echo '${'$as_ac_Header'}'`
22105                { echo "$as_me:$LINENO: result: $ac_res" >&5
22106 echo "${ECHO_T}$ac_res" >&6; }
22107
22108 fi
22109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22110   cat >>confdefs.h <<_ACEOF
22111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22112 _ACEOF
22113
22114 fi
22115
22116 done
22117
22118     fi
22119   fi
22120
22121
22122
22123 case "$host" in
22124 *-interix*)
22125         CFLAGS="$CFLAGS -D_ALL_SOURCE"
22126         ;;
22127 *-darwin*)
22128         CFLAGS="$CFLAGS -DDARWIN"
22129         LIBS="-framework DirectoryService $LIBS"
22130         ;;
22131 esac
22132
22133
22134
22135
22136
22137
22138 ac_header_dirent=no
22139 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22140   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22141 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22142 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22144   echo $ECHO_N "(cached) $ECHO_C" >&6
22145 else
22146   cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h.  */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h.  */
22152 #include <sys/types.h>
22153 #include <$ac_hdr>
22154
22155 int
22156 main ()
22157 {
22158 if ((DIR *) 0)
22159 return 0;
22160   ;
22161   return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest.$ac_objext
22165 if { (ac_try="$ac_compile"
22166 case "(($ac_try" in
22167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168   *) ac_try_echo=$ac_try;;
22169 esac
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171   (eval "$ac_compile") 2>conftest.er1
22172   ac_status=$?
22173   grep -v '^ *+' conftest.er1 >conftest.err
22174   rm -f conftest.er1
22175   cat conftest.err >&5
22176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177   (exit $ac_status); } && {
22178          test -z "$ac_c_werror_flag" ||
22179          test ! -s conftest.err
22180        } && test -s conftest.$ac_objext; then
22181   eval "$as_ac_Header=yes"
22182 else
22183   echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22185
22186         eval "$as_ac_Header=no"
22187 fi
22188
22189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22190 fi
22191 ac_res=`eval echo '${'$as_ac_Header'}'`
22192                { echo "$as_me:$LINENO: result: $ac_res" >&5
22193 echo "${ECHO_T}$ac_res" >&6; }
22194 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22195   cat >>confdefs.h <<_ACEOF
22196 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22197 _ACEOF
22198
22199 ac_header_dirent=$ac_hdr; break
22200 fi
22201
22202 done
22203 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22204 if test $ac_header_dirent = dirent.h; then
22205   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22206 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22207 if test "${ac_cv_search_opendir+set}" = set; then
22208   echo $ECHO_N "(cached) $ECHO_C" >&6
22209 else
22210   ac_func_search_save_LIBS=$LIBS
22211 cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h.  */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h.  */
22217
22218 /* Override any GCC internal prototype to avoid an error.
22219    Use char because int might match the return type of a GCC
22220    builtin and then its argument prototype would still apply.  */
22221 #ifdef __cplusplus
22222 extern "C"
22223 #endif
22224 char opendir ();
22225 int
22226 main ()
22227 {
22228 return opendir ();
22229   ;
22230   return 0;
22231 }
22232 _ACEOF
22233 for ac_lib in '' dir; do
22234   if test -z "$ac_lib"; then
22235     ac_res="none required"
22236   else
22237     ac_res=-l$ac_lib
22238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22239   fi
22240   rm -f conftest.$ac_objext conftest$ac_exeext
22241 if { (ac_try="$ac_link"
22242 case "(($ac_try" in
22243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22244   *) ac_try_echo=$ac_try;;
22245 esac
22246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22247   (eval "$ac_link") 2>conftest.er1
22248   ac_status=$?
22249   grep -v '^ *+' conftest.er1 >conftest.err
22250   rm -f conftest.er1
22251   cat conftest.err >&5
22252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22253   (exit $ac_status); } && {
22254          test -z "$ac_c_werror_flag" ||
22255          test ! -s conftest.err
22256        } && test -s conftest$ac_exeext &&
22257        $as_test_x conftest$ac_exeext; then
22258   ac_cv_search_opendir=$ac_res
22259 else
22260   echo "$as_me: failed program was:" >&5
22261 sed 's/^/| /' conftest.$ac_ext >&5
22262
22263
22264 fi
22265
22266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22267       conftest$ac_exeext
22268   if test "${ac_cv_search_opendir+set}" = set; then
22269   break
22270 fi
22271 done
22272 if test "${ac_cv_search_opendir+set}" = set; then
22273   :
22274 else
22275   ac_cv_search_opendir=no
22276 fi
22277 rm conftest.$ac_ext
22278 LIBS=$ac_func_search_save_LIBS
22279 fi
22280 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22281 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22282 ac_res=$ac_cv_search_opendir
22283 if test "$ac_res" != no; then
22284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22285
22286 fi
22287
22288 else
22289   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22290 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22291 if test "${ac_cv_search_opendir+set}" = set; then
22292   echo $ECHO_N "(cached) $ECHO_C" >&6
22293 else
22294   ac_func_search_save_LIBS=$LIBS
22295 cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h.  */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h.  */
22301
22302 /* Override any GCC internal prototype to avoid an error.
22303    Use char because int might match the return type of a GCC
22304    builtin and then its argument prototype would still apply.  */
22305 #ifdef __cplusplus
22306 extern "C"
22307 #endif
22308 char opendir ();
22309 int
22310 main ()
22311 {
22312 return opendir ();
22313   ;
22314   return 0;
22315 }
22316 _ACEOF
22317 for ac_lib in '' x; do
22318   if test -z "$ac_lib"; then
22319     ac_res="none required"
22320   else
22321     ac_res=-l$ac_lib
22322     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22323   fi
22324   rm -f conftest.$ac_objext conftest$ac_exeext
22325 if { (ac_try="$ac_link"
22326 case "(($ac_try" in
22327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328   *) ac_try_echo=$ac_try;;
22329 esac
22330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331   (eval "$ac_link") 2>conftest.er1
22332   ac_status=$?
22333   grep -v '^ *+' conftest.er1 >conftest.err
22334   rm -f conftest.er1
22335   cat conftest.err >&5
22336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337   (exit $ac_status); } && {
22338          test -z "$ac_c_werror_flag" ||
22339          test ! -s conftest.err
22340        } && test -s conftest$ac_exeext &&
22341        $as_test_x conftest$ac_exeext; then
22342   ac_cv_search_opendir=$ac_res
22343 else
22344   echo "$as_me: failed program was:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22346
22347
22348 fi
22349
22350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22351       conftest$ac_exeext
22352   if test "${ac_cv_search_opendir+set}" = set; then
22353   break
22354 fi
22355 done
22356 if test "${ac_cv_search_opendir+set}" = set; then
22357   :
22358 else
22359   ac_cv_search_opendir=no
22360 fi
22361 rm conftest.$ac_ext
22362 LIBS=$ac_func_search_save_LIBS
22363 fi
22364 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22365 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22366 ac_res=$ac_cv_search_opendir
22367 if test "$ac_res" != no; then
22368   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22369
22370 fi
22371
22372 fi
22373
22374 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22375 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22376 if test "${ac_cv_header_stdc+set}" = set; then
22377   echo $ECHO_N "(cached) $ECHO_C" >&6
22378 else
22379   cat >conftest.$ac_ext <<_ACEOF
22380 /* confdefs.h.  */
22381 _ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h.  */
22385 #include <stdlib.h>
22386 #include <stdarg.h>
22387 #include <string.h>
22388 #include <float.h>
22389
22390 int
22391 main ()
22392 {
22393
22394   ;
22395   return 0;
22396 }
22397 _ACEOF
22398 rm -f conftest.$ac_objext
22399 if { (ac_try="$ac_compile"
22400 case "(($ac_try" in
22401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22402   *) ac_try_echo=$ac_try;;
22403 esac
22404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22405   (eval "$ac_compile") 2>conftest.er1
22406   ac_status=$?
22407   grep -v '^ *+' conftest.er1 >conftest.err
22408   rm -f conftest.er1
22409   cat conftest.err >&5
22410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411   (exit $ac_status); } && {
22412          test -z "$ac_c_werror_flag" ||
22413          test ! -s conftest.err
22414        } && test -s conftest.$ac_objext; then
22415   ac_cv_header_stdc=yes
22416 else
22417   echo "$as_me: failed program was:" >&5
22418 sed 's/^/| /' conftest.$ac_ext >&5
22419
22420         ac_cv_header_stdc=no
22421 fi
22422
22423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22424
22425 if test $ac_cv_header_stdc = yes; then
22426   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22427   cat >conftest.$ac_ext <<_ACEOF
22428 /* confdefs.h.  */
22429 _ACEOF
22430 cat confdefs.h >>conftest.$ac_ext
22431 cat >>conftest.$ac_ext <<_ACEOF
22432 /* end confdefs.h.  */
22433 #include <string.h>
22434
22435 _ACEOF
22436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22437   $EGREP "memchr" >/dev/null 2>&1; then
22438   :
22439 else
22440   ac_cv_header_stdc=no
22441 fi
22442 rm -f conftest*
22443
22444 fi
22445
22446 if test $ac_cv_header_stdc = yes; then
22447   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22448   cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h.  */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h.  */
22454 #include <stdlib.h>
22455
22456 _ACEOF
22457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22458   $EGREP "free" >/dev/null 2>&1; then
22459   :
22460 else
22461   ac_cv_header_stdc=no
22462 fi
22463 rm -f conftest*
22464
22465 fi
22466
22467 if test $ac_cv_header_stdc = yes; then
22468   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22469   if test "$cross_compiling" = yes; then
22470   :
22471 else
22472   cat >conftest.$ac_ext <<_ACEOF
22473 /* confdefs.h.  */
22474 _ACEOF
22475 cat confdefs.h >>conftest.$ac_ext
22476 cat >>conftest.$ac_ext <<_ACEOF
22477 /* end confdefs.h.  */
22478 #include <ctype.h>
22479 #include <stdlib.h>
22480 #if ((' ' & 0x0FF) == 0x020)
22481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22483 #else
22484 # define ISLOWER(c) \
22485                    (('a' <= (c) && (c) <= 'i') \
22486                      || ('j' <= (c) && (c) <= 'r') \
22487                      || ('s' <= (c) && (c) <= 'z'))
22488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22489 #endif
22490
22491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22492 int
22493 main ()
22494 {
22495   int i;
22496   for (i = 0; i < 256; i++)
22497     if (XOR (islower (i), ISLOWER (i))
22498         || toupper (i) != TOUPPER (i))
22499       return 2;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest$ac_exeext
22504 if { (ac_try="$ac_link"
22505 case "(($ac_try" in
22506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507   *) ac_try_echo=$ac_try;;
22508 esac
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510   (eval "$ac_link") 2>&5
22511   ac_status=$?
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22514   { (case "(($ac_try" in
22515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516   *) ac_try_echo=$ac_try;;
22517 esac
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519   (eval "$ac_try") 2>&5
22520   ac_status=$?
22521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522   (exit $ac_status); }; }; then
22523   :
22524 else
22525   echo "$as_me: program exited with status $ac_status" >&5
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529 ( exit $ac_status )
22530 ac_cv_header_stdc=no
22531 fi
22532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22533 fi
22534
22535
22536 fi
22537 fi
22538 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22539 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22540 if test $ac_cv_header_stdc = yes; then
22541
22542 cat >>confdefs.h <<\_ACEOF
22543 #define STDC_HEADERS 1
22544 _ACEOF
22545
22546 fi
22547
22548 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22549 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22550 if test "${ac_cv_header_time+set}" = set; then
22551   echo $ECHO_N "(cached) $ECHO_C" >&6
22552 else
22553   cat >conftest.$ac_ext <<_ACEOF
22554 /* confdefs.h.  */
22555 _ACEOF
22556 cat confdefs.h >>conftest.$ac_ext
22557 cat >>conftest.$ac_ext <<_ACEOF
22558 /* end confdefs.h.  */
22559 #include <sys/types.h>
22560 #include <sys/time.h>
22561 #include <time.h>
22562
22563 int
22564 main ()
22565 {
22566 if ((struct tm *) 0)
22567 return 0;
22568   ;
22569   return 0;
22570 }
22571 _ACEOF
22572 rm -f conftest.$ac_objext
22573 if { (ac_try="$ac_compile"
22574 case "(($ac_try" in
22575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576   *) ac_try_echo=$ac_try;;
22577 esac
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579   (eval "$ac_compile") 2>conftest.er1
22580   ac_status=$?
22581   grep -v '^ *+' conftest.er1 >conftest.err
22582   rm -f conftest.er1
22583   cat conftest.err >&5
22584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585   (exit $ac_status); } && {
22586          test -z "$ac_c_werror_flag" ||
22587          test ! -s conftest.err
22588        } && test -s conftest.$ac_objext; then
22589   ac_cv_header_time=yes
22590 else
22591   echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.$ac_ext >&5
22593
22594         ac_cv_header_time=no
22595 fi
22596
22597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22598 fi
22599 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22600 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22601 if test $ac_cv_header_time = yes; then
22602
22603 cat >>confdefs.h <<\_ACEOF
22604 #define TIME_WITH_SYS_TIME 1
22605 _ACEOF
22606
22607 fi
22608
22609 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22610 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22611 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22612   echo $ECHO_N "(cached) $ECHO_C" >&6
22613 else
22614   cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h.  */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h.  */
22620 #include <sys/types.h>
22621 #include <sys/wait.h>
22622 #ifndef WEXITSTATUS
22623 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22624 #endif
22625 #ifndef WIFEXITED
22626 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22627 #endif
22628
22629 int
22630 main ()
22631 {
22632   int s;
22633   wait (&s);
22634   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22635   ;
22636   return 0;
22637 }
22638 _ACEOF
22639 rm -f conftest.$ac_objext
22640 if { (ac_try="$ac_compile"
22641 case "(($ac_try" in
22642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643   *) ac_try_echo=$ac_try;;
22644 esac
22645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22646   (eval "$ac_compile") 2>conftest.er1
22647   ac_status=$?
22648   grep -v '^ *+' conftest.er1 >conftest.err
22649   rm -f conftest.er1
22650   cat conftest.err >&5
22651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22652   (exit $ac_status); } && {
22653          test -z "$ac_c_werror_flag" ||
22654          test ! -s conftest.err
22655        } && test -s conftest.$ac_objext; then
22656   ac_cv_header_sys_wait_h=yes
22657 else
22658   echo "$as_me: failed program was:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22660
22661         ac_cv_header_sys_wait_h=no
22662 fi
22663
22664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22665 fi
22666 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22667 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22668 if test $ac_cv_header_sys_wait_h = yes; then
22669
22670 cat >>confdefs.h <<\_ACEOF
22671 #define HAVE_SYS_WAIT_H 1
22672 _ACEOF
22673
22674 fi
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712 for ac_header in \
22713         unistd.h \
22714         crypt.h \
22715         errno.h \
22716         resource.h \
22717         sys/resource.h \
22718         getopt.h \
22719         malloc.h \
22720         utmp.h \
22721         utmpx.h \
22722         signal.h \
22723         sys/select.h \
22724         syslog.h \
22725         inttypes.h \
22726         stdint.h \
22727         stdio.h \
22728         netdb.h \
22729         semaphore.h \
22730         arpa/inet.h \
22731         netinet/in.h \
22732         sys/types.h \
22733         sys/socket.h \
22734         winsock.h \
22735         sys/time.h \
22736         sys/wait.h \
22737         sys/security.h \
22738         fcntl.h \
22739         sys/fcntl.h \
22740         sys/prctl.h \
22741         sys/un.h \
22742         glob.h \
22743         prot.h \
22744         pwd.h \
22745         grp.h \
22746         sia.h \
22747         siad.h
22748
22749 do
22750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22752   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22755   echo $ECHO_N "(cached) $ECHO_C" >&6
22756 fi
22757 ac_res=`eval echo '${'$as_ac_Header'}'`
22758                { echo "$as_me:$LINENO: result: $ac_res" >&5
22759 echo "${ECHO_T}$ac_res" >&6; }
22760 else
22761   # Is the header compilable?
22762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22764 cat >conftest.$ac_ext <<_ACEOF
22765 /* confdefs.h.  */
22766 _ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h.  */
22770 $ac_includes_default
22771 #include <$ac_header>
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_header_compiler=yes
22791 else
22792   echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22794
22795         ac_header_compiler=no
22796 fi
22797
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22800 echo "${ECHO_T}$ac_header_compiler" >&6; }
22801
22802 # Is the header present?
22803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22805 cat >conftest.$ac_ext <<_ACEOF
22806 /* confdefs.h.  */
22807 _ACEOF
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h.  */
22811 #include <$ac_header>
22812 _ACEOF
22813 if { (ac_try="$ac_cpp conftest.$ac_ext"
22814 case "(($ac_try" in
22815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816   *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22820   ac_status=$?
22821   grep -v '^ *+' conftest.er1 >conftest.err
22822   rm -f conftest.er1
22823   cat conftest.err >&5
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); } >/dev/null && {
22826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22827          test ! -s conftest.err
22828        }; then
22829   ac_header_preproc=yes
22830 else
22831   echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834   ac_header_preproc=no
22835 fi
22836
22837 rm -f conftest.err conftest.$ac_ext
22838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22839 echo "${ECHO_T}$ac_header_preproc" >&6; }
22840
22841 # So?  What about this header?
22842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22843   yes:no: )
22844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22848     ac_header_preproc=yes
22849     ;;
22850   no:yes:* )
22851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22863
22864     ;;
22865 esac
22866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22869   echo $ECHO_N "(cached) $ECHO_C" >&6
22870 else
22871   eval "$as_ac_Header=\$ac_header_preproc"
22872 fi
22873 ac_res=`eval echo '${'$as_ac_Header'}'`
22874                { echo "$as_me:$LINENO: result: $ac_res" >&5
22875 echo "${ECHO_T}$ac_res" >&6; }
22876
22877 fi
22878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22879   cat >>confdefs.h <<_ACEOF
22880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22881 _ACEOF
22882
22883 fi
22884
22885 done
22886
22887
22888
22889 for ac_header in net/if.h
22890 do
22891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895   echo $ECHO_N "(cached) $ECHO_C" >&6
22896 else
22897   cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h.  */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h.  */
22903 #ifdef HAVE_SYS_SOCKET_H
22904 # include <sys/socket.h>
22905 # endif
22906
22907
22908 #include <$ac_header>
22909 _ACEOF
22910 rm -f conftest.$ac_objext
22911 if { (ac_try="$ac_compile"
22912 case "(($ac_try" in
22913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914   *) ac_try_echo=$ac_try;;
22915 esac
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917   (eval "$ac_compile") 2>conftest.er1
22918   ac_status=$?
22919   grep -v '^ *+' conftest.er1 >conftest.err
22920   rm -f conftest.er1
22921   cat conftest.err >&5
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); } && {
22924          test -z "$ac_c_werror_flag" ||
22925          test ! -s conftest.err
22926        } && test -s conftest.$ac_objext; then
22927   eval "$as_ac_Header=yes"
22928 else
22929   echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22931
22932         eval "$as_ac_Header=no"
22933 fi
22934
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936 fi
22937 ac_res=`eval echo '${'$as_ac_Header'}'`
22938                { echo "$as_me:$LINENO: result: $ac_res" >&5
22939 echo "${ECHO_T}$ac_res" >&6; }
22940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22941   cat >>confdefs.h <<_ACEOF
22942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22943 _ACEOF
22944
22945 fi
22946
22947 done
22948
22949
22950 REGEX=no
22951 if test "${ac_cv_header_regex_h+set}" = set; then
22952   { echo "$as_me:$LINENO: checking for regex.h" >&5
22953 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
22954 if test "${ac_cv_header_regex_h+set}" = set; then
22955   echo $ECHO_N "(cached) $ECHO_C" >&6
22956 fi
22957 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22958 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
22959 else
22960   # Is the header compilable?
22961 { echo "$as_me:$LINENO: checking regex.h usability" >&5
22962 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6; }
22963 cat >conftest.$ac_ext <<_ACEOF
22964 /* confdefs.h.  */
22965 _ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h.  */
22969 $ac_includes_default
22970 #include <regex.h>
22971 _ACEOF
22972 rm -f conftest.$ac_objext
22973 if { (ac_try="$ac_compile"
22974 case "(($ac_try" in
22975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22976   *) ac_try_echo=$ac_try;;
22977 esac
22978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22979   (eval "$ac_compile") 2>conftest.er1
22980   ac_status=$?
22981   grep -v '^ *+' conftest.er1 >conftest.err
22982   rm -f conftest.er1
22983   cat conftest.err >&5
22984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985   (exit $ac_status); } && {
22986          test -z "$ac_c_werror_flag" ||
22987          test ! -s conftest.err
22988        } && test -s conftest.$ac_objext; then
22989   ac_header_compiler=yes
22990 else
22991   echo "$as_me: failed program was:" >&5
22992 sed 's/^/| /' conftest.$ac_ext >&5
22993
22994         ac_header_compiler=no
22995 fi
22996
22997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22999 echo "${ECHO_T}$ac_header_compiler" >&6; }
23000
23001 # Is the header present?
23002 { echo "$as_me:$LINENO: checking regex.h presence" >&5
23003 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6; }
23004 cat >conftest.$ac_ext <<_ACEOF
23005 /* confdefs.h.  */
23006 _ACEOF
23007 cat confdefs.h >>conftest.$ac_ext
23008 cat >>conftest.$ac_ext <<_ACEOF
23009 /* end confdefs.h.  */
23010 #include <regex.h>
23011 _ACEOF
23012 if { (ac_try="$ac_cpp conftest.$ac_ext"
23013 case "(($ac_try" in
23014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23015   *) ac_try_echo=$ac_try;;
23016 esac
23017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23019   ac_status=$?
23020   grep -v '^ *+' conftest.er1 >conftest.err
23021   rm -f conftest.er1
23022   cat conftest.err >&5
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); } >/dev/null && {
23025          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23026          test ! -s conftest.err
23027        }; then
23028   ac_header_preproc=yes
23029 else
23030   echo "$as_me: failed program was:" >&5
23031 sed 's/^/| /' conftest.$ac_ext >&5
23032
23033   ac_header_preproc=no
23034 fi
23035
23036 rm -f conftest.err conftest.$ac_ext
23037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23038 echo "${ECHO_T}$ac_header_preproc" >&6; }
23039
23040 # So?  What about this header?
23041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23042   yes:no: )
23043     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23044 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23045     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23046 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23047     ac_header_preproc=yes
23048     ;;
23049   no:yes:* )
23050     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23051 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
23052     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
23053 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
23054     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23055 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23056     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
23057 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23058     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23059 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
23060     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23061 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
23062
23063     ;;
23064 esac
23065 { echo "$as_me:$LINENO: checking for regex.h" >&5
23066 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
23067 if test "${ac_cv_header_regex_h+set}" = set; then
23068   echo $ECHO_N "(cached) $ECHO_C" >&6
23069 else
23070   ac_cv_header_regex_h=$ac_header_preproc
23071 fi
23072 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23073 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
23074
23075 fi
23076 if test $ac_cv_header_regex_h = yes; then
23077
23078 cat >>confdefs.h <<\_ACEOF
23079 #define HAVE_REGEX_H
23080 _ACEOF
23081
23082 fi
23083
23084
23085 if test "x$ac_cv_header_regex_h" = "xyes"; then
23086   REGEX_EXTENDED=no
23087   REGEX=yes
23088   cat >conftest.$ac_ext <<_ACEOF
23089 /* confdefs.h.  */
23090 _ACEOF
23091 cat confdefs.h >>conftest.$ac_ext
23092 cat >>conftest.$ac_ext <<_ACEOF
23093 /* end confdefs.h.  */
23094 #include <regex.h>
23095      #ifdef REG_EXTENDED
23096        yes
23097      #endif
23098
23099 _ACEOF
23100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23101   $EGREP "yes" >/dev/null 2>&1; then
23102
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_REG_EXTENDED
23105 _ACEOF
23106  REGEX_EXTENDED=yes
23107 fi
23108 rm -f conftest*
23109
23110 fi
23111
23112
23113
23114 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
23115 then
23116
23117 cat >>confdefs.h <<\_ACEOF
23118 #define OSFC2
23119 _ACEOF
23120
23121 fi
23122
23123 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
23124 then
23125
23126 cat >>confdefs.h <<\_ACEOF
23127 #define OSFSIA
23128 _ACEOF
23129
23130 fi
23131
23132 OPENSSL_INCLUDE="-DNO_OPENSSL"
23133 if test "x$WITH_OPENSSL" = xyes; then
23134   if test "x$OPENSSL_LIBS" = "x"; then
23135     { echo "$as_me:$LINENO: skipping test for openssl/ssl.h" >&5
23136 echo "$as_me: skipping test for openssl/ssl.h" >&6;}
23137   else
23138     old_CPPFLAGS=$CPPFLAGS
23139     if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23140         CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
23141     fi
23142         CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
23143
23144
23145
23146
23147
23148 for ac_header in \
23149         openssl/ssl.h \
23150         openssl/crypto.h \
23151         openssl/err.h \
23152         openssl/evp.h \
23153         openssl/engine.h
23154 do
23155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23157   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23160   echo $ECHO_N "(cached) $ECHO_C" >&6
23161 fi
23162 ac_res=`eval echo '${'$as_ac_Header'}'`
23163                { echo "$as_me:$LINENO: result: $ac_res" >&5
23164 echo "${ECHO_T}$ac_res" >&6; }
23165 else
23166   # Is the header compilable?
23167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23169 cat >conftest.$ac_ext <<_ACEOF
23170 /* confdefs.h.  */
23171 _ACEOF
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h.  */
23175 $ac_includes_default
23176 #include <$ac_header>
23177 _ACEOF
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182   *) ac_try_echo=$ac_try;;
23183 esac
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185   (eval "$ac_compile") 2>conftest.er1
23186   ac_status=$?
23187   grep -v '^ *+' conftest.er1 >conftest.err
23188   rm -f conftest.er1
23189   cat conftest.err >&5
23190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191   (exit $ac_status); } && {
23192          test -z "$ac_c_werror_flag" ||
23193          test ! -s conftest.err
23194        } && test -s conftest.$ac_objext; then
23195   ac_header_compiler=yes
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200         ac_header_compiler=no
23201 fi
23202
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23205 echo "${ECHO_T}$ac_header_compiler" >&6; }
23206
23207 # Is the header present?
23208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23210 cat >conftest.$ac_ext <<_ACEOF
23211 /* confdefs.h.  */
23212 _ACEOF
23213 cat confdefs.h >>conftest.$ac_ext
23214 cat >>conftest.$ac_ext <<_ACEOF
23215 /* end confdefs.h.  */
23216 #include <$ac_header>
23217 _ACEOF
23218 if { (ac_try="$ac_cpp conftest.$ac_ext"
23219 case "(($ac_try" in
23220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221   *) ac_try_echo=$ac_try;;
23222 esac
23223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23225   ac_status=$?
23226   grep -v '^ *+' conftest.er1 >conftest.err
23227   rm -f conftest.er1
23228   cat conftest.err >&5
23229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230   (exit $ac_status); } >/dev/null && {
23231          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23232          test ! -s conftest.err
23233        }; then
23234   ac_header_preproc=yes
23235 else
23236   echo "$as_me: failed program was:" >&5
23237 sed 's/^/| /' conftest.$ac_ext >&5
23238
23239   ac_header_preproc=no
23240 fi
23241
23242 rm -f conftest.err conftest.$ac_ext
23243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23244 echo "${ECHO_T}$ac_header_preproc" >&6; }
23245
23246 # So?  What about this header?
23247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23248   yes:no: )
23249     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23253     ac_header_preproc=yes
23254     ;;
23255   no:yes:* )
23256     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23258     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23259 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23260     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23262     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23263 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23264     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23266     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23268
23269     ;;
23270 esac
23271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23274   echo $ECHO_N "(cached) $ECHO_C" >&6
23275 else
23276   eval "$as_ac_Header=\$ac_header_preproc"
23277 fi
23278 ac_res=`eval echo '${'$as_ac_Header'}'`
23279                { echo "$as_me:$LINENO: result: $ac_res" >&5
23280 echo "${ECHO_T}$ac_res" >&6; }
23281
23282 fi
23283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23284   cat >>confdefs.h <<_ACEOF
23285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23286 _ACEOF
23287
23288 else
23289   OPENSSL_LIBS=
23290
23291 fi
23292
23293 done
23294
23295     if test "x$OPENSSL_LIBS" != "x"; then
23296         { echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
23297 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6; }
23298         cat >conftest.$ac_ext <<_ACEOF
23299 /* confdefs.h.  */
23300 _ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h.  */
23304 #include <openssl/crypto.h>
23305              #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
23306              yes
23307              #endif
23308
23309 _ACEOF
23310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23311   $EGREP "yes" >/dev/null 2>&1; then
23312   goodssl="yes"
23313 fi
23314 rm -f conftest*
23315
23316         if test "x$goodssl" != "xyes"; then
23317             { echo "$as_me:$LINENO: result: no" >&5
23318 echo "${ECHO_T}no" >&6; }
23319             OPENSSL_LIBS=
23320         else
23321             { echo "$as_me:$LINENO: result: yes" >&5
23322 echo "${ECHO_T}yes" >&6; }
23323             if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
23324                 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
23325             else
23326                 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
23327             fi
23328         fi
23329     fi
23330     CPPFLAGS=$old_CPPFLAGS
23331   fi
23332 fi
23333
23334
23335 export OPENSSL_LIBS
23336
23337 if test "x$PCAP_LIBS" = x; then
23338     { echo "$as_me:$LINENO: skipping test for pcap.h." >&5
23339 echo "$as_me: skipping test for pcap.h." >&6;}
23340 else
23341     if test "${ac_cv_header_pcap_h+set}" = set; then
23342   { echo "$as_me:$LINENO: checking for pcap.h" >&5
23343 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23344 if test "${ac_cv_header_pcap_h+set}" = set; then
23345   echo $ECHO_N "(cached) $ECHO_C" >&6
23346 fi
23347 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23348 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23349 else
23350   # Is the header compilable?
23351 { echo "$as_me:$LINENO: checking pcap.h usability" >&5
23352 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6; }
23353 cat >conftest.$ac_ext <<_ACEOF
23354 /* confdefs.h.  */
23355 _ACEOF
23356 cat confdefs.h >>conftest.$ac_ext
23357 cat >>conftest.$ac_ext <<_ACEOF
23358 /* end confdefs.h.  */
23359 $ac_includes_default
23360 #include <pcap.h>
23361 _ACEOF
23362 rm -f conftest.$ac_objext
23363 if { (ac_try="$ac_compile"
23364 case "(($ac_try" in
23365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366   *) ac_try_echo=$ac_try;;
23367 esac
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369   (eval "$ac_compile") 2>conftest.er1
23370   ac_status=$?
23371   grep -v '^ *+' conftest.er1 >conftest.err
23372   rm -f conftest.er1
23373   cat conftest.err >&5
23374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375   (exit $ac_status); } && {
23376          test -z "$ac_c_werror_flag" ||
23377          test ! -s conftest.err
23378        } && test -s conftest.$ac_objext; then
23379   ac_header_compiler=yes
23380 else
23381   echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.$ac_ext >&5
23383
23384         ac_header_compiler=no
23385 fi
23386
23387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23389 echo "${ECHO_T}$ac_header_compiler" >&6; }
23390
23391 # Is the header present?
23392 { echo "$as_me:$LINENO: checking pcap.h presence" >&5
23393 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6; }
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 #include <pcap.h>
23401 _ACEOF
23402 if { (ac_try="$ac_cpp conftest.$ac_ext"
23403 case "(($ac_try" in
23404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405   *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23409   ac_status=$?
23410   grep -v '^ *+' conftest.er1 >conftest.err
23411   rm -f conftest.er1
23412   cat conftest.err >&5
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); } >/dev/null && {
23415          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23416          test ! -s conftest.err
23417        }; then
23418   ac_header_preproc=yes
23419 else
23420   echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423   ac_header_preproc=no
23424 fi
23425
23426 rm -f conftest.err conftest.$ac_ext
23427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23428 echo "${ECHO_T}$ac_header_preproc" >&6; }
23429
23430 # So?  What about this header?
23431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23432   yes:no: )
23433     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
23434 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23435     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
23436 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
23437     ac_header_preproc=yes
23438     ;;
23439   no:yes:* )
23440     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
23441 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
23442     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
23443 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
23444     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
23445 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
23446     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
23447 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23448     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
23449 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
23450     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
23451 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
23452
23453     ;;
23454 esac
23455 { echo "$as_me:$LINENO: checking for pcap.h" >&5
23456 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6; }
23457 if test "${ac_cv_header_pcap_h+set}" = set; then
23458   echo $ECHO_N "(cached) $ECHO_C" >&6
23459 else
23460   ac_cv_header_pcap_h=$ac_header_preproc
23461 fi
23462 { echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
23463 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6; }
23464
23465 fi
23466 if test $ac_cv_header_pcap_h = yes; then
23467
23468 cat >>confdefs.h <<\_ACEOF
23469 #define HAVE_PCAP_H 1
23470 _ACEOF
23471
23472 else
23473    PCAP_LIBS=
23474         { echo "$as_me:$LINENO: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&5
23475 echo "$as_me: WARNING: pcap.h not found, silently disabling the RADIUS sniffer." >&2;}
23476
23477 fi
23478
23479
23480 fi
23481
23482
23483
23484 { echo "$as_me:$LINENO: checking for off_t" >&5
23485 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
23486 if test "${ac_cv_type_off_t+set}" = set; then
23487   echo $ECHO_N "(cached) $ECHO_C" >&6
23488 else
23489   cat >conftest.$ac_ext <<_ACEOF
23490 /* confdefs.h.  */
23491 _ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h.  */
23495 $ac_includes_default
23496 typedef off_t ac__type_new_;
23497 int
23498 main ()
23499 {
23500 if ((ac__type_new_ *) 0)
23501   return 0;
23502 if (sizeof (ac__type_new_))
23503   return 0;
23504   ;
23505   return 0;
23506 }
23507 _ACEOF
23508 rm -f conftest.$ac_objext
23509 if { (ac_try="$ac_compile"
23510 case "(($ac_try" in
23511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23512   *) ac_try_echo=$ac_try;;
23513 esac
23514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23515   (eval "$ac_compile") 2>conftest.er1
23516   ac_status=$?
23517   grep -v '^ *+' conftest.er1 >conftest.err
23518   rm -f conftest.er1
23519   cat conftest.err >&5
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } && {
23522          test -z "$ac_c_werror_flag" ||
23523          test ! -s conftest.err
23524        } && test -s conftest.$ac_objext; then
23525   ac_cv_type_off_t=yes
23526 else
23527   echo "$as_me: failed program was:" >&5
23528 sed 's/^/| /' conftest.$ac_ext >&5
23529
23530         ac_cv_type_off_t=no
23531 fi
23532
23533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23534 fi
23535 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23536 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
23537 if test $ac_cv_type_off_t = yes; then
23538   :
23539 else
23540
23541 cat >>confdefs.h <<_ACEOF
23542 #define off_t long int
23543 _ACEOF
23544
23545 fi
23546
23547 { echo "$as_me:$LINENO: checking for pid_t" >&5
23548 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23549 if test "${ac_cv_type_pid_t+set}" = set; then
23550   echo $ECHO_N "(cached) $ECHO_C" >&6
23551 else
23552   cat >conftest.$ac_ext <<_ACEOF
23553 /* confdefs.h.  */
23554 _ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h.  */
23558 $ac_includes_default
23559 typedef pid_t ac__type_new_;
23560 int
23561 main ()
23562 {
23563 if ((ac__type_new_ *) 0)
23564   return 0;
23565 if (sizeof (ac__type_new_))
23566   return 0;
23567   ;
23568   return 0;
23569 }
23570 _ACEOF
23571 rm -f conftest.$ac_objext
23572 if { (ac_try="$ac_compile"
23573 case "(($ac_try" in
23574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575   *) ac_try_echo=$ac_try;;
23576 esac
23577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23578   (eval "$ac_compile") 2>conftest.er1
23579   ac_status=$?
23580   grep -v '^ *+' conftest.er1 >conftest.err
23581   rm -f conftest.er1
23582   cat conftest.err >&5
23583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584   (exit $ac_status); } && {
23585          test -z "$ac_c_werror_flag" ||
23586          test ! -s conftest.err
23587        } && test -s conftest.$ac_objext; then
23588   ac_cv_type_pid_t=yes
23589 else
23590   echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23592
23593         ac_cv_type_pid_t=no
23594 fi
23595
23596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 fi
23598 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23599 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23600 if test $ac_cv_type_pid_t = yes; then
23601   :
23602 else
23603
23604 cat >>confdefs.h <<_ACEOF
23605 #define pid_t int
23606 _ACEOF
23607
23608 fi
23609
23610 { echo "$as_me:$LINENO: checking for size_t" >&5
23611 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23612 if test "${ac_cv_type_size_t+set}" = set; then
23613   echo $ECHO_N "(cached) $ECHO_C" >&6
23614 else
23615   cat >conftest.$ac_ext <<_ACEOF
23616 /* confdefs.h.  */
23617 _ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h.  */
23621 $ac_includes_default
23622 typedef size_t ac__type_new_;
23623 int
23624 main ()
23625 {
23626 if ((ac__type_new_ *) 0)
23627   return 0;
23628 if (sizeof (ac__type_new_))
23629   return 0;
23630   ;
23631   return 0;
23632 }
23633 _ACEOF
23634 rm -f conftest.$ac_objext
23635 if { (ac_try="$ac_compile"
23636 case "(($ac_try" in
23637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638   *) ac_try_echo=$ac_try;;
23639 esac
23640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23641   (eval "$ac_compile") 2>conftest.er1
23642   ac_status=$?
23643   grep -v '^ *+' conftest.er1 >conftest.err
23644   rm -f conftest.er1
23645   cat conftest.err >&5
23646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23647   (exit $ac_status); } && {
23648          test -z "$ac_c_werror_flag" ||
23649          test ! -s conftest.err
23650        } && test -s conftest.$ac_objext; then
23651   ac_cv_type_size_t=yes
23652 else
23653   echo "$as_me: failed program was:" >&5
23654 sed 's/^/| /' conftest.$ac_ext >&5
23655
23656         ac_cv_type_size_t=no
23657 fi
23658
23659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 fi
23661 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23662 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23663 if test $ac_cv_type_size_t = yes; then
23664   :
23665 else
23666
23667 cat >>confdefs.h <<_ACEOF
23668 #define size_t unsigned int
23669 _ACEOF
23670
23671 fi
23672
23673 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
23674 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
23675 if test "${ac_cv_type_uid_t+set}" = set; then
23676   echo $ECHO_N "(cached) $ECHO_C" >&6
23677 else
23678   cat >conftest.$ac_ext <<_ACEOF
23679 /* confdefs.h.  */
23680 _ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h.  */
23684 #include <sys/types.h>
23685
23686 _ACEOF
23687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23688   $EGREP "uid_t" >/dev/null 2>&1; then
23689   ac_cv_type_uid_t=yes
23690 else
23691   ac_cv_type_uid_t=no
23692 fi
23693 rm -f conftest*
23694
23695 fi
23696 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
23697 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
23698 if test $ac_cv_type_uid_t = no; then
23699
23700 cat >>confdefs.h <<\_ACEOF
23701 #define uid_t int
23702 _ACEOF
23703
23704
23705 cat >>confdefs.h <<\_ACEOF
23706 #define gid_t int
23707 _ACEOF
23708
23709 fi
23710
23711
23712
23713   { echo "$as_me:$LINENO: checking for socklen_t" >&5
23714 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23715 if test "${ac_cv_type_socklen_t+set}" = set; then
23716   echo $ECHO_N "(cached) $ECHO_C" >&6
23717 else
23718    ac_cv_type_socklen_t=no
23719       cat >conftest.$ac_ext <<_ACEOF
23720 /* confdefs.h.  */
23721 _ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h.  */
23725 #ifdef HAVE_SYS_TYPES_H
23726 #include <sys/types.h>
23727 #endif
23728 #ifdef HAVE_SYS_SOCKET_H
23729 #include <sys/socket.h>
23730 #endif
23731
23732 int
23733 main ()
23734 {
23735 socklen_t foo
23736   ;
23737   return 0;
23738 }
23739 _ACEOF
23740 rm -f conftest.$ac_objext
23741 if { (ac_try="$ac_compile"
23742 case "(($ac_try" in
23743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23744   *) ac_try_echo=$ac_try;;
23745 esac
23746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23747   (eval "$ac_compile") 2>conftest.er1
23748   ac_status=$?
23749   grep -v '^ *+' conftest.er1 >conftest.err
23750   rm -f conftest.er1
23751   cat conftest.err >&5
23752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753   (exit $ac_status); } && {
23754          test -z "$ac_c_werror_flag" ||
23755          test ! -s conftest.err
23756        } && test -s conftest.$ac_objext; then
23757   ac_cv_type_socklen_t=yes
23758 else
23759   echo "$as_me: failed program was:" >&5
23760 sed 's/^/| /' conftest.$ac_ext >&5
23761
23762
23763 fi
23764
23765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766
23767
23768 fi
23769 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
23770 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
23771
23772   if test "$ac_cv_type_socklen_t" != "yes"; then
23773
23774 cat >>confdefs.h <<\_ACEOF
23775 #define socklen_t int
23776 _ACEOF
23777
23778   fi
23779
23780
23781
23782   { echo "$as_me:$LINENO: checking for uint8_t" >&5
23783 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
23784 if test "${ac_cv_type_uint8_t+set}" = set; then
23785   echo $ECHO_N "(cached) $ECHO_C" >&6
23786 else
23787    ac_cv_type_uint8_t=no
23788       cat >conftest.$ac_ext <<_ACEOF
23789 /* confdefs.h.  */
23790 _ACEOF
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h.  */
23794 #ifdef HAVE_INTTYPES_H
23795 #include <inttypes.h>
23796 #endif
23797 #ifdef HAVE_STDINT_H
23798 #include <stdint.h>
23799 #endif
23800
23801 int
23802 main ()
23803 {
23804 uint8_t foo
23805   ;
23806   return 0;
23807 }
23808 _ACEOF
23809 rm -f conftest.$ac_objext
23810 if { (ac_try="$ac_compile"
23811 case "(($ac_try" in
23812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23813   *) ac_try_echo=$ac_try;;
23814 esac
23815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23816   (eval "$ac_compile") 2>conftest.er1
23817   ac_status=$?
23818   grep -v '^ *+' conftest.er1 >conftest.err
23819   rm -f conftest.er1
23820   cat conftest.err >&5
23821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23822   (exit $ac_status); } && {
23823          test -z "$ac_c_werror_flag" ||
23824          test ! -s conftest.err
23825        } && test -s conftest.$ac_objext; then
23826   ac_cv_type_uint8_t=yes
23827 else
23828   echo "$as_me: failed program was:" >&5
23829 sed 's/^/| /' conftest.$ac_ext >&5
23830
23831
23832 fi
23833
23834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23835
23836
23837 fi
23838 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
23839 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
23840
23841   if test "$ac_cv_type_uint8_t" != "yes"; then
23842
23843 cat >>confdefs.h <<\_ACEOF
23844 #define uint8_t unsigned char
23845 _ACEOF
23846
23847   fi
23848
23849
23850
23851   { echo "$as_me:$LINENO: checking for uint16_t" >&5
23852 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
23853 if test "${ac_cv_type_uint16_t+set}" = set; then
23854   echo $ECHO_N "(cached) $ECHO_C" >&6
23855 else
23856    ac_cv_type_uint16_t=no
23857       cat >conftest.$ac_ext <<_ACEOF
23858 /* confdefs.h.  */
23859 _ACEOF
23860 cat confdefs.h >>conftest.$ac_ext
23861 cat >>conftest.$ac_ext <<_ACEOF
23862 /* end confdefs.h.  */
23863 #ifdef HAVE_INTTYPES_H
23864 #include <inttypes.h>
23865 #endif
23866 #ifdef HAVE_STDINT_H
23867 #include <stdint.h>
23868 #endif
23869
23870 int
23871 main ()
23872 {
23873 uint16_t foo
23874   ;
23875   return 0;
23876 }
23877 _ACEOF
23878 rm -f conftest.$ac_objext
23879 if { (ac_try="$ac_compile"
23880 case "(($ac_try" in
23881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882   *) ac_try_echo=$ac_try;;
23883 esac
23884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23885   (eval "$ac_compile") 2>conftest.er1
23886   ac_status=$?
23887   grep -v '^ *+' conftest.er1 >conftest.err
23888   rm -f conftest.er1
23889   cat conftest.err >&5
23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); } && {
23892          test -z "$ac_c_werror_flag" ||
23893          test ! -s conftest.err
23894        } && test -s conftest.$ac_objext; then
23895   ac_cv_type_uint16_t=yes
23896 else
23897   echo "$as_me: failed program was:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23899
23900
23901 fi
23902
23903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904
23905
23906 fi
23907 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
23908 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
23909
23910   if test "$ac_cv_type_uint16_t" != "yes"; then
23911
23912 cat >>confdefs.h <<\_ACEOF
23913 #define uint16_t unsigned short
23914 _ACEOF
23915
23916   fi
23917
23918
23919
23920   { echo "$as_me:$LINENO: checking for uint32_t" >&5
23921 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
23922 if test "${ac_cv_type_uint32_t+set}" = set; then
23923   echo $ECHO_N "(cached) $ECHO_C" >&6
23924 else
23925    ac_cv_type_uint32_t=no
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 #ifdef HAVE_INTTYPES_H
23933 #include <inttypes.h>
23934 #endif
23935 #ifdef HAVE_STDINT_H
23936 #include <stdint.h>
23937 #endif
23938
23939 int
23940 main ()
23941 {
23942 uint32_t foo
23943   ;
23944   return 0;
23945 }
23946 _ACEOF
23947 rm -f conftest.$ac_objext
23948 if { (ac_try="$ac_compile"
23949 case "(($ac_try" in
23950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23951   *) ac_try_echo=$ac_try;;
23952 esac
23953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23954   (eval "$ac_compile") 2>conftest.er1
23955   ac_status=$?
23956   grep -v '^ *+' conftest.er1 >conftest.err
23957   rm -f conftest.er1
23958   cat conftest.err >&5
23959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960   (exit $ac_status); } && {
23961          test -z "$ac_c_werror_flag" ||
23962          test ! -s conftest.err
23963        } && test -s conftest.$ac_objext; then
23964   ac_cv_type_uint32_t=yes
23965 else
23966   echo "$as_me: failed program was:" >&5
23967 sed 's/^/| /' conftest.$ac_ext >&5
23968
23969
23970 fi
23971
23972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23973
23974
23975 fi
23976 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
23977 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
23978
23979   if test "$ac_cv_type_uint32_t" != "yes"; then
23980
23981 cat >>confdefs.h <<\_ACEOF
23982 #define uint32_t unsigned int
23983 _ACEOF
23984
23985   fi
23986
23987
23988 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
23989 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
23990 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
23991   echo $ECHO_N "(cached) $ECHO_C" >&6
23992 else
23993   cat >conftest.$ac_ext <<_ACEOF
23994 /* confdefs.h.  */
23995 _ACEOF
23996 cat confdefs.h >>conftest.$ac_ext
23997 cat >>conftest.$ac_ext <<_ACEOF
23998 /* end confdefs.h.  */
23999
24000 #ifdef HAVE_NETINET_IN_H
24001 #include <netinet/in.h>
24002 #endif
24003
24004
24005 typedef struct in6_addr ac__type_new_;
24006 int
24007 main ()
24008 {
24009 if ((ac__type_new_ *) 0)
24010   return 0;
24011 if (sizeof (ac__type_new_))
24012   return 0;
24013   ;
24014   return 0;
24015 }
24016 _ACEOF
24017 rm -f conftest.$ac_objext
24018 if { (ac_try="$ac_compile"
24019 case "(($ac_try" in
24020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021   *) ac_try_echo=$ac_try;;
24022 esac
24023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024   (eval "$ac_compile") 2>conftest.er1
24025   ac_status=$?
24026   grep -v '^ *+' conftest.er1 >conftest.err
24027   rm -f conftest.er1
24028   cat conftest.err >&5
24029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030   (exit $ac_status); } && {
24031          test -z "$ac_c_werror_flag" ||
24032          test ! -s conftest.err
24033        } && test -s conftest.$ac_objext; then
24034   ac_cv_type_struct_in6_addr=yes
24035 else
24036   echo "$as_me: failed program was:" >&5
24037 sed 's/^/| /' conftest.$ac_ext >&5
24038
24039         ac_cv_type_struct_in6_addr=no
24040 fi
24041
24042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24043 fi
24044 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
24045 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
24046 if test $ac_cv_type_struct_in6_addr = yes; then
24047
24048 cat >>confdefs.h <<\_ACEOF
24049 #define HAVE_STRUCT_IN6_ADDR 1
24050 _ACEOF
24051
24052 fi
24053
24054
24055 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
24056 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
24057 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
24058   echo $ECHO_N "(cached) $ECHO_C" >&6
24059 else
24060   cat >conftest.$ac_ext <<_ACEOF
24061 /* confdefs.h.  */
24062 _ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h.  */
24066
24067 #ifdef HAVE_NETINET_IN_H
24068 #include <netinet/in.h>
24069 #endif
24070 #ifdef HAVE_SYS_SOCKET_H
24071 #include <sys/socket.h>
24072 #endif
24073
24074
24075 typedef struct sockaddr_storage ac__type_new_;
24076 int
24077 main ()
24078 {
24079 if ((ac__type_new_ *) 0)
24080   return 0;
24081 if (sizeof (ac__type_new_))
24082   return 0;
24083   ;
24084   return 0;
24085 }
24086 _ACEOF
24087 rm -f conftest.$ac_objext
24088 if { (ac_try="$ac_compile"
24089 case "(($ac_try" in
24090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24091   *) ac_try_echo=$ac_try;;
24092 esac
24093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24094   (eval "$ac_compile") 2>conftest.er1
24095   ac_status=$?
24096   grep -v '^ *+' conftest.er1 >conftest.err
24097   rm -f conftest.er1
24098   cat conftest.err >&5
24099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24100   (exit $ac_status); } && {
24101          test -z "$ac_c_werror_flag" ||
24102          test ! -s conftest.err
24103        } && test -s conftest.$ac_objext; then
24104   ac_cv_type_struct_sockaddr_storage=yes
24105 else
24106   echo "$as_me: failed program was:" >&5
24107 sed 's/^/| /' conftest.$ac_ext >&5
24108
24109         ac_cv_type_struct_sockaddr_storage=no
24110 fi
24111
24112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24113 fi
24114 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
24115 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
24116 if test $ac_cv_type_struct_sockaddr_storage = yes; then
24117
24118 cat >>confdefs.h <<\_ACEOF
24119 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
24120 _ACEOF
24121
24122 fi
24123
24124
24125 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
24126 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
24127 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
24128   echo $ECHO_N "(cached) $ECHO_C" >&6
24129 else
24130   cat >conftest.$ac_ext <<_ACEOF
24131 /* confdefs.h.  */
24132 _ACEOF
24133 cat confdefs.h >>conftest.$ac_ext
24134 cat >>conftest.$ac_ext <<_ACEOF
24135 /* end confdefs.h.  */
24136
24137 #ifdef HAVE_NETINET_IN_H
24138 #include <netinet/in.h>
24139 #endif
24140
24141
24142 typedef struct sockaddr_in6 ac__type_new_;
24143 int
24144 main ()
24145 {
24146 if ((ac__type_new_ *) 0)
24147   return 0;
24148 if (sizeof (ac__type_new_))
24149   return 0;
24150   ;
24151   return 0;
24152 }
24153 _ACEOF
24154 rm -f conftest.$ac_objext
24155 if { (ac_try="$ac_compile"
24156 case "(($ac_try" in
24157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24158   *) ac_try_echo=$ac_try;;
24159 esac
24160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24161   (eval "$ac_compile") 2>conftest.er1
24162   ac_status=$?
24163   grep -v '^ *+' conftest.er1 >conftest.err
24164   rm -f conftest.er1
24165   cat conftest.err >&5
24166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167   (exit $ac_status); } && {
24168          test -z "$ac_c_werror_flag" ||
24169          test ! -s conftest.err
24170        } && test -s conftest.$ac_objext; then
24171   ac_cv_type_struct_sockaddr_in6=yes
24172 else
24173   echo "$as_me: failed program was:" >&5
24174 sed 's/^/| /' conftest.$ac_ext >&5
24175
24176         ac_cv_type_struct_sockaddr_in6=no
24177 fi
24178
24179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24180 fi
24181 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
24182 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
24183 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
24184
24185 cat >>confdefs.h <<\_ACEOF
24186 #define HAVE_STRUCT_SOCKADDR_IN6 1
24187 _ACEOF
24188
24189 fi
24190
24191
24192 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
24193 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
24194 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
24195   echo $ECHO_N "(cached) $ECHO_C" >&6
24196 else
24197   cat >conftest.$ac_ext <<_ACEOF
24198 /* confdefs.h.  */
24199 _ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h.  */
24203
24204 #ifdef HAVE_SYS_TYPES_H
24205 #include <sys/types.h>
24206 #endif
24207 #ifdef HAVE_SYS_SOCKET_H
24208 #include <sys/socket.h>
24209 #endif
24210 #ifdef HAVE_NETDB_H
24211 #include <netdb.h>
24212 #endif
24213
24214
24215 typedef struct addrinfo ac__type_new_;
24216 int
24217 main ()
24218 {
24219 if ((ac__type_new_ *) 0)
24220   return 0;
24221 if (sizeof (ac__type_new_))
24222   return 0;
24223   ;
24224   return 0;
24225 }
24226 _ACEOF
24227 rm -f conftest.$ac_objext
24228 if { (ac_try="$ac_compile"
24229 case "(($ac_try" in
24230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231   *) ac_try_echo=$ac_try;;
24232 esac
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234   (eval "$ac_compile") 2>conftest.er1
24235   ac_status=$?
24236   grep -v '^ *+' conftest.er1 >conftest.err
24237   rm -f conftest.er1
24238   cat conftest.err >&5
24239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240   (exit $ac_status); } && {
24241          test -z "$ac_c_werror_flag" ||
24242          test ! -s conftest.err
24243        } && test -s conftest.$ac_objext; then
24244   ac_cv_type_struct_addrinfo=yes
24245 else
24246   echo "$as_me: failed program was:" >&5
24247 sed 's/^/| /' conftest.$ac_ext >&5
24248
24249         ac_cv_type_struct_addrinfo=no
24250 fi
24251
24252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24253 fi
24254 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
24255 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
24256 if test $ac_cv_type_struct_addrinfo = yes; then
24257
24258 cat >>confdefs.h <<\_ACEOF
24259 #define HAVE_STRUCT_ADDRINFO 1
24260 _ACEOF
24261
24262 fi
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297 for ac_func in \
24298         getopt_long \
24299         lockf \
24300         strsignal \
24301         sigaction \
24302         sigprocmask \
24303         pthread_sigmask \
24304         snprintf \
24305         vsnprintf \
24306         setsid \
24307         strncasecmp \
24308         strcasecmp \
24309         localtime_r \
24310         ctime_r \
24311         gmtime_r \
24312         strsep \
24313         inet_aton \
24314         inet_pton \
24315         inet_ntop \
24316         setlinebuf \
24317         setvbuf \
24318         getusershell \
24319         initgroups \
24320         getaddrinfo \
24321         getnameinfo \
24322         closefrom \
24323         gettimeofday \
24324         getpeereid \
24325         setuid \
24326         setresuid \
24327         getresuid \
24328         strlcat \
24329         strlcpy
24330
24331 do
24332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24333 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24335 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24336   echo $ECHO_N "(cached) $ECHO_C" >&6
24337 else
24338   cat >conftest.$ac_ext <<_ACEOF
24339 /* confdefs.h.  */
24340 _ACEOF
24341 cat confdefs.h >>conftest.$ac_ext
24342 cat >>conftest.$ac_ext <<_ACEOF
24343 /* end confdefs.h.  */
24344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24345    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24346 #define $ac_func innocuous_$ac_func
24347
24348 /* System header to define __stub macros and hopefully few prototypes,
24349     which can conflict with char $ac_func (); below.
24350     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24351     <limits.h> exists even on freestanding compilers.  */
24352
24353 #ifdef __STDC__
24354 # include <limits.h>
24355 #else
24356 # include <assert.h>
24357 #endif
24358
24359 #undef $ac_func
24360
24361 /* Override any GCC internal prototype to avoid an error.
24362    Use char because int might match the return type of a GCC
24363    builtin and then its argument prototype would still apply.  */
24364 #ifdef __cplusplus
24365 extern "C"
24366 #endif
24367 char $ac_func ();
24368 /* The GNU C library defines this for functions which it implements
24369     to always fail with ENOSYS.  Some functions are actually named
24370     something starting with __ and the normal name is an alias.  */
24371 #if defined __stub_$ac_func || defined __stub___$ac_func
24372 choke me
24373 #endif
24374
24375 int
24376 main ()
24377 {
24378 return $ac_func ();
24379   ;
24380   return 0;
24381 }
24382 _ACEOF
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387   *) ac_try_echo=$ac_try;;
24388 esac
24389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390   (eval "$ac_link") 2>conftest.er1
24391   ac_status=$?
24392   grep -v '^ *+' conftest.er1 >conftest.err
24393   rm -f conftest.er1
24394   cat conftest.err >&5
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); } && {
24397          test -z "$ac_c_werror_flag" ||
24398          test ! -s conftest.err
24399        } && test -s conftest$ac_exeext &&
24400        $as_test_x conftest$ac_exeext; then
24401   eval "$as_ac_var=yes"
24402 else
24403   echo "$as_me: failed program was:" >&5
24404 sed 's/^/| /' conftest.$ac_ext >&5
24405
24406         eval "$as_ac_var=no"
24407 fi
24408
24409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24410       conftest$ac_exeext conftest.$ac_ext
24411 fi
24412 ac_res=`eval echo '${'$as_ac_var'}'`
24413                { echo "$as_me:$LINENO: result: $ac_res" >&5
24414 echo "${ECHO_T}$ac_res" >&6; }
24415 if test `eval echo '${'$as_ac_var'}'` = yes; then
24416   cat >>confdefs.h <<_ACEOF
24417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24418 _ACEOF
24419
24420 fi
24421 done
24422
24423 for ac_func in \
24424         crypt \
24425         strncasecmp \
24426         strcasecmp \
24427         inet_aton \
24428         setlinebuf \
24429         getusershell \
24430         endusershell
24431
24432 do
24433 { echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
24434 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6; }
24435 if { as_var=radius_cv_decl_needed_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then
24436   echo $ECHO_N "(cached) $ECHO_C" >&6
24437 else
24438   cat >conftest.$ac_ext <<_ACEOF
24439 /* confdefs.h.  */
24440 _ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h.  */
24444
24445 #include <stdio.h>
24446 #include <string.h>
24447 #ifdef HAVE_UNISTD_H
24448 #include <unistd.h>
24449 #endif
24450 #ifdef HAVE_CRYPT_H
24451 #include <crypt.h>
24452 #endif
24453 #ifdef HAVE_ERRNO_H
24454 #include <errno.h>
24455 #endif
24456 #ifdef HAVE_RESOURCE_H
24457 #include <resource.h>
24458 #endif
24459 #ifdef HAVE_GETOPT_H
24460 #include <getopt.h>
24461 #endif
24462 #ifdef HAVE_MALLOC_H
24463 #include <malloc.h>
24464 #endif
24465 #ifdef HAVE_UTMP_H
24466 #include <utmp.h>
24467 #endif
24468 #ifdef HAVE_UTMPX_H
24469 #include <utmpx.h>
24470 #endif
24471 #ifdef HAVE_SYS_SELECT_H
24472 #include <sys/select.h>
24473 #endif
24474 #ifdef HAVE_DLFCN_H
24475 #include <dlfcn.h>
24476 #endif
24477 #ifdef HAVE_REGEX_H
24478 #include <regex.h>
24479 #endif
24480 #ifdef HAVE_SYSLOG_H
24481 #include <syslog.h>
24482 #endif
24483 #ifdef HAVE_INTTYPES_H
24484 #include <inttypes.h>
24485 #endif
24486 #ifdef HAVE_STDINT_H
24487 #include <stdint.h>
24488 #endif
24489 #ifdef HAVE_ARPA_INET_H
24490 #include <arpa/inet.h>
24491 #endif
24492
24493 int
24494 main ()
24495 {
24496 char *(*pfn) = (char *(*)) $ac_func
24497   ;
24498   return 0;
24499 }
24500 _ACEOF
24501 rm -f conftest.$ac_objext
24502 if { (ac_try="$ac_compile"
24503 case "(($ac_try" in
24504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505   *) ac_try_echo=$ac_try;;
24506 esac
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508   (eval "$ac_compile") 2>conftest.er1
24509   ac_status=$?
24510   grep -v '^ *+' conftest.er1 >conftest.err
24511   rm -f conftest.er1
24512   cat conftest.err >&5
24513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514   (exit $ac_status); } && {
24515          test -z "$ac_c_werror_flag" ||
24516          test ! -s conftest.err
24517        } && test -s conftest.$ac_objext; then
24518   eval "radius_cv_decl_needed_$ac_func=no"
24519 else
24520   echo "$as_me: failed program was:" >&5
24521 sed 's/^/| /' conftest.$ac_ext >&5
24522
24523         eval "radius_cv_decl_needed_$ac_func=yes"
24524 fi
24525
24526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24527 fi
24528
24529 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
24530   { echo "$as_me:$LINENO: result: yes" >&5
24531 echo "${ECHO_T}yes" >&6; }
24532   radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24533   cat >>confdefs.h <<_ACEOF
24534 #define $radius_tr_decl 1
24535 _ACEOF
24536
24537 else
24538   { echo "$as_me:$LINENO: result: no" >&5
24539 echo "${ECHO_T}no" >&6; }
24540 fi
24541
24542 done
24543
24544
24545 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24546 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24547 if test "${ac_cv_type_signal+set}" = set; then
24548   echo $ECHO_N "(cached) $ECHO_C" >&6
24549 else
24550   cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h.  */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h.  */
24556 #include <sys/types.h>
24557 #include <signal.h>
24558
24559 int
24560 main ()
24561 {
24562 return *(signal (0, 0)) (0) == 1;
24563   ;
24564   return 0;
24565 }
24566 _ACEOF
24567 rm -f conftest.$ac_objext
24568 if { (ac_try="$ac_compile"
24569 case "(($ac_try" in
24570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571   *) ac_try_echo=$ac_try;;
24572 esac
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574   (eval "$ac_compile") 2>conftest.er1
24575   ac_status=$?
24576   grep -v '^ *+' conftest.er1 >conftest.err
24577   rm -f conftest.er1
24578   cat conftest.err >&5
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); } && {
24581          test -z "$ac_c_werror_flag" ||
24582          test ! -s conftest.err
24583        } && test -s conftest.$ac_objext; then
24584   ac_cv_type_signal=int
24585 else
24586   echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24588
24589         ac_cv_type_signal=void
24590 fi
24591
24592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24593 fi
24594 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24595 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24596
24597 cat >>confdefs.h <<_ACEOF
24598 #define RETSIGTYPE $ac_cv_type_signal
24599 _ACEOF
24600
24601
24602
24603 if test "x$ac_cv_header_utmpx_h" = "xyes"
24604 then
24605
24606   { echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
24607 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6; }
24608
24609
24610   cat >conftest.$ac_ext <<_ACEOF
24611 /* confdefs.h.  */
24612 _ACEOF
24613 cat confdefs.h >>conftest.$ac_ext
24614 cat >>conftest.$ac_ext <<_ACEOF
24615 /* end confdefs.h.  */
24616
24617 #include <utmpx.h>
24618 #ifndef offsetof
24619 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24620 #endif
24621
24622 int
24623 main ()
24624 {
24625  int foo = offsetof(struct utmpx, ut_xtime)
24626   ;
24627   return 0;
24628 }
24629 _ACEOF
24630 rm -f conftest.$ac_objext
24631 if { (ac_try="$ac_compile"
24632 case "(($ac_try" in
24633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634   *) ac_try_echo=$ac_try;;
24635 esac
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637   (eval "$ac_compile") 2>conftest.er1
24638   ac_status=$?
24639   grep -v '^ *+' conftest.er1 >conftest.err
24640   rm -f conftest.er1
24641   cat conftest.err >&5
24642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643   (exit $ac_status); } && {
24644          test -z "$ac_c_werror_flag" ||
24645          test ! -s conftest.err
24646        } && test -s conftest.$ac_objext; then
24647   has_element=" "
24648 else
24649   echo "$as_me: failed program was:" >&5
24650 sed 's/^/| /' conftest.$ac_ext >&5
24651
24652         has_element=
24653 fi
24654
24655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24656
24657   ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
24658   if test "x$has_element" != "x"; then
24659     { echo "$as_me:$LINENO: result: yes" >&5
24660 echo "${ECHO_T}yes" >&6; }
24661     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
24662   else
24663     { echo "$as_me:$LINENO: result: no" >&5
24664 echo "${ECHO_T}no" >&6; }
24665     eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
24666  fi
24667
24668  if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
24669  then
24670
24671 cat >>confdefs.h <<\_ACEOF
24672 #define ut_xtime ut_tv.tv_sec
24673 _ACEOF
24674
24675  fi
24676 fi
24677
24678
24679   { echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
24680 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6; }
24681
24682
24683   cat >conftest.$ac_ext <<_ACEOF
24684 /* confdefs.h.  */
24685 _ACEOF
24686 cat confdefs.h >>conftest.$ac_ext
24687 cat >>conftest.$ac_ext <<_ACEOF
24688 /* end confdefs.h.  */
24689
24690 #include <netinet/in.h>
24691 #ifndef offsetof
24692 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24693 #endif
24694
24695 int
24696 main ()
24697 {
24698  int foo = offsetof(struct in_pktinfo, ipi_addr)
24699   ;
24700   return 0;
24701 }
24702 _ACEOF
24703 rm -f conftest.$ac_objext
24704 if { (ac_try="$ac_compile"
24705 case "(($ac_try" in
24706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24707   *) ac_try_echo=$ac_try;;
24708 esac
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710   (eval "$ac_compile") 2>conftest.er1
24711   ac_status=$?
24712   grep -v '^ *+' conftest.er1 >conftest.err
24713   rm -f conftest.er1
24714   cat conftest.err >&5
24715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716   (exit $ac_status); } && {
24717          test -z "$ac_c_werror_flag" ||
24718          test ! -s conftest.err
24719        } && test -s conftest.$ac_objext; then
24720   has_element=" "
24721 else
24722   echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24724
24725         has_element=
24726 fi
24727
24728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24729
24730   ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
24731   if test "x$has_element" != "x"; then
24732     { echo "$as_me:$LINENO: result: yes" >&5
24733 echo "${ECHO_T}yes" >&6; }
24734     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
24735   else
24736     { echo "$as_me:$LINENO: result: no" >&5
24737 echo "${ECHO_T}no" >&6; }
24738     eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
24739  fi
24740
24741 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
24742 then
24743
24744 cat >>confdefs.h <<\_ACEOF
24745 #define HAVE_IP_PKTINFO
24746 _ACEOF
24747
24748 fi
24749
24750
24751   { echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
24752 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6; }
24753
24754
24755   cat >conftest.$ac_ext <<_ACEOF
24756 /* confdefs.h.  */
24757 _ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h.  */
24761
24762 #include <netinet/in.h>
24763 #ifndef offsetof
24764 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
24765 #endif
24766
24767 int
24768 main ()
24769 {
24770  int foo = offsetof(struct in6_pktinfo, ipi6_addr)
24771   ;
24772   return 0;
24773 }
24774 _ACEOF
24775 rm -f conftest.$ac_objext
24776 if { (ac_try="$ac_compile"
24777 case "(($ac_try" in
24778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24779   *) ac_try_echo=$ac_try;;
24780 esac
24781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24782   (eval "$ac_compile") 2>conftest.er1
24783   ac_status=$?
24784   grep -v '^ *+' conftest.er1 >conftest.err
24785   rm -f conftest.er1
24786   cat conftest.err >&5
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); } && {
24789          test -z "$ac_c_werror_flag" ||
24790          test ! -s conftest.err
24791        } && test -s conftest.$ac_objext; then
24792   has_element=" "
24793 else
24794   echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24796
24797         has_element=
24798 fi
24799
24800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24801
24802   ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
24803   if test "x$has_element" != "x"; then
24804     { echo "$as_me:$LINENO: result: yes" >&5
24805 echo "${ECHO_T}yes" >&6; }
24806     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
24807   else
24808     { echo "$as_me:$LINENO: result: no" >&5
24809 echo "${ECHO_T}no" >&6; }
24810     eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
24811  fi
24812
24813 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
24814 then
24815
24816 cat >>confdefs.h <<\_ACEOF
24817 #define HAVE_IN6_PKTINFO
24818 _ACEOF
24819
24820 fi
24821
24822
24823 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24824 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24825 if test "${ac_cv_c_const+set}" = set; then
24826   echo $ECHO_N "(cached) $ECHO_C" >&6
24827 else
24828   cat >conftest.$ac_ext <<_ACEOF
24829 /* confdefs.h.  */
24830 _ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h.  */
24834
24835 int
24836 main ()
24837 {
24838 /* FIXME: Include the comments suggested by Paul. */
24839 #ifndef __cplusplus
24840   /* Ultrix mips cc rejects this.  */
24841   typedef int charset[2];
24842   const charset cs;
24843   /* SunOS 4.1.1 cc rejects this.  */
24844   char const *const *pcpcc;
24845   char **ppc;
24846   /* NEC SVR4.0.2 mips cc rejects this.  */
24847   struct point {int x, y;};
24848   static struct point const zero = {0,0};
24849   /* AIX XL C 1.02.0.0 rejects this.
24850      It does not let you subtract one const X* pointer from another in
24851      an arm of an if-expression whose if-part is not a constant
24852      expression */
24853   const char *g = "string";
24854   pcpcc = &g + (g ? g-g : 0);
24855   /* HPUX 7.0 cc rejects these. */
24856   ++pcpcc;
24857   ppc = (char**) pcpcc;
24858   pcpcc = (char const *const *) ppc;
24859   { /* SCO 3.2v4 cc rejects this.  */
24860     char *t;
24861     char const *s = 0 ? (char *) 0 : (char const *) 0;
24862
24863     *t++ = 0;
24864     if (s) return 0;
24865   }
24866   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24867     int x[] = {25, 17};
24868     const int *foo = &x[0];
24869     ++foo;
24870   }
24871   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24872     typedef const int *iptr;
24873     iptr p = 0;
24874     ++p;
24875   }
24876   { /* AIX XL C 1.02.0.0 rejects this saying
24877        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24878     struct s { int j; const int *ap[3]; };
24879     struct s *b; b->j = 5;
24880   }
24881   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24882     const int foo = 10;
24883     if (!foo) return 0;
24884   }
24885   return !cs[0] && !zero.x;
24886 #endif
24887
24888   ;
24889   return 0;
24890 }
24891 _ACEOF
24892 rm -f conftest.$ac_objext
24893 if { (ac_try="$ac_compile"
24894 case "(($ac_try" in
24895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24896   *) ac_try_echo=$ac_try;;
24897 esac
24898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24899   (eval "$ac_compile") 2>conftest.er1
24900   ac_status=$?
24901   grep -v '^ *+' conftest.er1 >conftest.err
24902   rm -f conftest.er1
24903   cat conftest.err >&5
24904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); } && {
24906          test -z "$ac_c_werror_flag" ||
24907          test ! -s conftest.err
24908        } && test -s conftest.$ac_objext; then
24909   ac_cv_c_const=yes
24910 else
24911   echo "$as_me: failed program was:" >&5
24912 sed 's/^/| /' conftest.$ac_ext >&5
24913
24914         ac_cv_c_const=no
24915 fi
24916
24917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24918 fi
24919 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24920 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24921 if test $ac_cv_c_const = no; then
24922
24923 cat >>confdefs.h <<\_ACEOF
24924 #define const
24925 _ACEOF
24926
24927 fi
24928
24929
24930 { echo "$as_me:$LINENO: checking type of OS" >&5
24931 echo $ECHO_N "checking type of OS... $ECHO_C" >&6; }
24932 OS=`uname -s`
24933 { echo "$as_me:$LINENO: result: $OS" >&5
24934 echo "${ECHO_T}$OS" >&6; }
24935 if test "$OS" = "OS/2"; then
24936         LIBPREFIX=
24937 else
24938         LIBPREFIX=lib
24939 fi
24940
24941
24942 if test "x$GCC" = "xyes"; then
24943     CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
24944 fi
24945
24946 { echo "$as_me:$LINENO: checking for developer gcc flags" >&5
24947 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6; }
24948 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
24949   devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
24950   CFLAGS="$CFLAGS $devflags"
24951   INSTALLSTRIP=""
24952   { echo "$as_me:$LINENO: result: yes.  Using $devflags" >&5
24953 echo "${ECHO_T}yes.  Using $devflags" >&6; }
24954 else
24955   devflags=""
24956   CFLAGS="$CFLAGS -DNDEBUG"
24957   INSTALLSTRIP=""
24958   { echo "$as_me:$LINENO: result: no." >&5
24959 echo "${ECHO_T}no." >&6; }
24960 fi
24961
24962
24963     { echo "$as_me:$LINENO: checking for TLS" >&5
24964 echo $ECHO_N "checking for TLS... $ECHO_C" >&6; }
24965     if test "$cross_compiling" = yes; then
24966   have_tls=no
24967 else
24968   cat >conftest.$ac_ext <<_ACEOF
24969 /* confdefs.h.  */
24970 _ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h.  */
24974  static __thread int val; int main() { return 0; }
24975 _ACEOF
24976 rm -f conftest$ac_exeext
24977 if { (ac_try="$ac_link"
24978 case "(($ac_try" in
24979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980   *) ac_try_echo=$ac_try;;
24981 esac
24982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24983   (eval "$ac_link") 2>&5
24984   ac_status=$?
24985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24987   { (case "(($ac_try" in
24988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24989   *) ac_try_echo=$ac_try;;
24990 esac
24991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24992   (eval "$ac_try") 2>&5
24993   ac_status=$?
24994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995   (exit $ac_status); }; }; then
24996   have_tls=yes
24997 else
24998   echo "$as_me: program exited with status $ac_status" >&5
24999 echo "$as_me: failed program was:" >&5
25000 sed 's/^/| /' conftest.$ac_ext >&5
25001
25002 ( exit $ac_status )
25003 have_tls=no
25004 fi
25005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25006 fi
25007
25008
25009     { echo "$as_me:$LINENO: result: $have_tls" >&5
25010 echo "${ECHO_T}$have_tls" >&6; }
25011     if test "$have_tls" = "yes"; then
25012
25013 cat >>confdefs.h <<\_ACEOF
25014 #define HAVE_THREAD_TLS 1
25015 _ACEOF
25016
25017     fi
25018
25019
25020
25021 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25022 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25023 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25024   echo $ECHO_N "(cached) $ECHO_C" >&6
25025 else
25026   ac_check_lib_save_LIBS=$LIBS
25027 LIBS="-lcrypt  $LIBS"
25028 cat >conftest.$ac_ext <<_ACEOF
25029 /* confdefs.h.  */
25030 _ACEOF
25031 cat confdefs.h >>conftest.$ac_ext
25032 cat >>conftest.$ac_ext <<_ACEOF
25033 /* end confdefs.h.  */
25034
25035 /* Override any GCC internal prototype to avoid an error.
25036    Use char because int might match the return type of a GCC
25037    builtin and then its argument prototype would still apply.  */
25038 #ifdef __cplusplus
25039 extern "C"
25040 #endif
25041 char crypt ();
25042 int
25043 main ()
25044 {
25045 return crypt ();
25046   ;
25047   return 0;
25048 }
25049 _ACEOF
25050 rm -f conftest.$ac_objext conftest$ac_exeext
25051 if { (ac_try="$ac_link"
25052 case "(($ac_try" in
25053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25054   *) ac_try_echo=$ac_try;;
25055 esac
25056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25057   (eval "$ac_link") 2>conftest.er1
25058   ac_status=$?
25059   grep -v '^ *+' conftest.er1 >conftest.err
25060   rm -f conftest.er1
25061   cat conftest.err >&5
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); } && {
25064          test -z "$ac_c_werror_flag" ||
25065          test ! -s conftest.err
25066        } && test -s conftest$ac_exeext &&
25067        $as_test_x conftest$ac_exeext; then
25068   ac_cv_lib_crypt_crypt=yes
25069 else
25070   echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.$ac_ext >&5
25072
25073         ac_cv_lib_crypt_crypt=no
25074 fi
25075
25076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25077       conftest$ac_exeext conftest.$ac_ext
25078 LIBS=$ac_check_lib_save_LIBS
25079 fi
25080 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25081 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25082 if test $ac_cv_lib_crypt_crypt = yes; then
25083   CRYPTLIB="-lcrypt"
25084
25085 fi
25086
25087 if test "$CRYPTLIB" != ""; then
25088
25089 cat >>confdefs.h <<\_ACEOF
25090 #define HAVE_CRYPT
25091 _ACEOF
25092
25093 else
25094   { echo "$as_me:$LINENO: checking for crypt" >&5
25095 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25096 if test "${ac_cv_func_crypt+set}" = set; then
25097   echo $ECHO_N "(cached) $ECHO_C" >&6
25098 else
25099   cat >conftest.$ac_ext <<_ACEOF
25100 /* confdefs.h.  */
25101 _ACEOF
25102 cat confdefs.h >>conftest.$ac_ext
25103 cat >>conftest.$ac_ext <<_ACEOF
25104 /* end confdefs.h.  */
25105 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25107 #define crypt innocuous_crypt
25108
25109 /* System header to define __stub macros and hopefully few prototypes,
25110     which can conflict with char crypt (); below.
25111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25112     <limits.h> exists even on freestanding compilers.  */
25113
25114 #ifdef __STDC__
25115 # include <limits.h>
25116 #else
25117 # include <assert.h>
25118 #endif
25119
25120 #undef crypt
25121
25122 /* Override any GCC internal prototype to avoid an error.
25123    Use char because int might match the return type of a GCC
25124    builtin and then its argument prototype would still apply.  */
25125 #ifdef __cplusplus
25126 extern "C"
25127 #endif
25128 char crypt ();
25129 /* The GNU C library defines this for functions which it implements
25130     to always fail with ENOSYS.  Some functions are actually named
25131     something starting with __ and the normal name is an alias.  */
25132 #if defined __stub_crypt || defined __stub___crypt
25133 choke me
25134 #endif
25135
25136 int
25137 main ()
25138 {
25139 return crypt ();
25140   ;
25141   return 0;
25142 }
25143 _ACEOF
25144 rm -f conftest.$ac_objext conftest$ac_exeext
25145 if { (ac_try="$ac_link"
25146 case "(($ac_try" in
25147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25148   *) ac_try_echo=$ac_try;;
25149 esac
25150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25151   (eval "$ac_link") 2>conftest.er1
25152   ac_status=$?
25153   grep -v '^ *+' conftest.er1 >conftest.err
25154   rm -f conftest.er1
25155   cat conftest.err >&5
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); } && {
25158          test -z "$ac_c_werror_flag" ||
25159          test ! -s conftest.err
25160        } && test -s conftest$ac_exeext &&
25161        $as_test_x conftest$ac_exeext; then
25162   ac_cv_func_crypt=yes
25163 else
25164   echo "$as_me: failed program was:" >&5
25165 sed 's/^/| /' conftest.$ac_ext >&5
25166
25167         ac_cv_func_crypt=no
25168 fi
25169
25170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25171       conftest$ac_exeext conftest.$ac_ext
25172 fi
25173 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25174 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25175 if test $ac_cv_func_crypt = yes; then
25176
25177 cat >>confdefs.h <<\_ACEOF
25178 #define HAVE_CRYPT
25179 _ACEOF
25180
25181 fi
25182
25183 fi
25184
25185 { echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
25186 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6; }
25187 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
25188   echo $ECHO_N "(cached) $ECHO_C" >&6
25189 else
25190   ac_check_lib_save_LIBS=$LIBS
25191 LIBS="-lcipher  $LIBS"
25192 cat >conftest.$ac_ext <<_ACEOF
25193 /* confdefs.h.  */
25194 _ACEOF
25195 cat confdefs.h >>conftest.$ac_ext
25196 cat >>conftest.$ac_ext <<_ACEOF
25197 /* end confdefs.h.  */
25198
25199 /* Override any GCC internal prototype to avoid an error.
25200    Use char because int might match the return type of a GCC
25201    builtin and then its argument prototype would still apply.  */
25202 #ifdef __cplusplus
25203 extern "C"
25204 #endif
25205 char setkey ();
25206 int
25207 main ()
25208 {
25209 return setkey ();
25210   ;
25211   return 0;
25212 }
25213 _ACEOF
25214 rm -f conftest.$ac_objext conftest$ac_exeext
25215 if { (ac_try="$ac_link"
25216 case "(($ac_try" in
25217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25218   *) ac_try_echo=$ac_try;;
25219 esac
25220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25221   (eval "$ac_link") 2>conftest.er1
25222   ac_status=$?
25223   grep -v '^ *+' conftest.er1 >conftest.err
25224   rm -f conftest.er1
25225   cat conftest.err >&5
25226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227   (exit $ac_status); } && {
25228          test -z "$ac_c_werror_flag" ||
25229          test ! -s conftest.err
25230        } && test -s conftest$ac_exeext &&
25231        $as_test_x conftest$ac_exeext; then
25232   ac_cv_lib_cipher_setkey=yes
25233 else
25234   echo "$as_me: failed program was:" >&5
25235 sed 's/^/| /' conftest.$ac_ext >&5
25236
25237         ac_cv_lib_cipher_setkey=no
25238 fi
25239
25240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25241       conftest$ac_exeext conftest.$ac_ext
25242 LIBS=$ac_check_lib_save_LIBS
25243 fi
25244 { echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
25245 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6; }
25246 if test $ac_cv_lib_cipher_setkey = yes; then
25247   CRYPTLIB="${CRYPTLIB} -lcipher"
25248
25249 fi
25250
25251
25252
25253
25254 cat >>confdefs.h <<\_ACEOF
25255 #define GNUSTYLE 1
25256 _ACEOF
25257
25258
25259 cat >>confdefs.h <<\_ACEOF
25260 #define SYSVSTYLE 2
25261 _ACEOF
25262
25263
25264 cat >>confdefs.h <<\_ACEOF
25265 #define BSDSTYLE 3
25266 _ACEOF
25267
25268 gethostbyaddrrstyle=""
25269 { echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
25270 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6; }
25271 case "$host" in
25272 *-freebsd*)
25273         { echo "$as_me:$LINENO: checking whether gethostbyaddr_r is declared" >&5
25274 echo $ECHO_N "checking whether gethostbyaddr_r is declared... $ECHO_C" >&6; }
25275 if test "${ac_cv_have_decl_gethostbyaddr_r+set}" = set; then
25276   echo $ECHO_N "(cached) $ECHO_C" >&6
25277 else
25278   cat >conftest.$ac_ext <<_ACEOF
25279 /* confdefs.h.  */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h.  */
25284
25285 #ifdef HAVE_NETDB_H
25286 #include <netdb.h>
25287 #endif
25288
25289
25290 int
25291 main ()
25292 {
25293 #ifndef gethostbyaddr_r
25294   (void) gethostbyaddr_r;
25295 #endif
25296
25297   ;
25298   return 0;
25299 }
25300 _ACEOF
25301 rm -f conftest.$ac_objext
25302 if { (ac_try="$ac_compile"
25303 case "(($ac_try" in
25304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25305   *) ac_try_echo=$ac_try;;
25306 esac
25307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25308   (eval "$ac_compile") 2>conftest.er1
25309   ac_status=$?
25310   grep -v '^ *+' conftest.er1 >conftest.err
25311   rm -f conftest.er1
25312   cat conftest.err >&5
25313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314   (exit $ac_status); } && {
25315          test -z "$ac_c_werror_flag" ||
25316          test ! -s conftest.err
25317        } && test -s conftest.$ac_objext; then
25318   ac_cv_have_decl_gethostbyaddr_r=yes
25319 else
25320   echo "$as_me: failed program was:" >&5
25321 sed 's/^/| /' conftest.$ac_ext >&5
25322
25323         ac_cv_have_decl_gethostbyaddr_r=no
25324 fi
25325
25326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25327 fi
25328 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gethostbyaddr_r" >&5
25329 echo "${ECHO_T}$ac_cv_have_decl_gethostbyaddr_r" >&6; }
25330 if test $ac_cv_have_decl_gethostbyaddr_r = yes; then
25331
25332 cat >>confdefs.h <<_ACEOF
25333 #define HAVE_DECL_GETHOSTBYADDR_R 1
25334 _ACEOF
25335
25336
25337 else
25338   cat >>confdefs.h <<_ACEOF
25339 #define HAVE_DECL_GETHOSTBYADDR_R 0
25340 _ACEOF
25341
25342
25343
25344 cat >>confdefs.h <<\_ACEOF
25345 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25346 _ACEOF
25347
25348                 gethostbyaddrrstyle=BSD
25349                 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
25350 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
25351
25352 fi
25353
25354
25355         ;;
25356 esac
25357 if test "x$gethostbyaddrrstyle" = "x"; then
25358         cat >conftest.$ac_ext <<_ACEOF
25359 /* confdefs.h.  */
25360 _ACEOF
25361 cat confdefs.h >>conftest.$ac_ext
25362 cat >>conftest.$ac_ext <<_ACEOF
25363 /* end confdefs.h.  */
25364
25365 #include <stdio.h>
25366 #include <netdb.h>
25367
25368 int
25369 main ()
25370 {
25371  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
25372   ;
25373   return 0;
25374 }
25375 _ACEOF
25376 rm -f conftest.$ac_objext conftest$ac_exeext
25377 if { (ac_try="$ac_link"
25378 case "(($ac_try" in
25379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25380   *) ac_try_echo=$ac_try;;
25381 esac
25382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25383   (eval "$ac_link") 2>conftest.er1
25384   ac_status=$?
25385   grep -v '^ *+' conftest.er1 >conftest.err
25386   rm -f conftest.er1
25387   cat conftest.err >&5
25388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389   (exit $ac_status); } && {
25390          test -z "$ac_c_werror_flag" ||
25391          test ! -s conftest.err
25392        } && test -s conftest$ac_exeext &&
25393        $as_test_x conftest$ac_exeext; then
25394
25395
25396 cat >>confdefs.h <<\_ACEOF
25397 #define GETHOSTBYADDRRSTYLE GNUSTYLE
25398 _ACEOF
25399
25400         gethostbyaddrrstyle=GNU
25401
25402 else
25403   echo "$as_me: failed program was:" >&5
25404 sed 's/^/| /' conftest.$ac_ext >&5
25405
25406
25407 fi
25408
25409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25410       conftest$ac_exeext conftest.$ac_ext
25411 fi
25412 if test "x$gethostbyaddrrstyle" = "x"; then
25413         cat >conftest.$ac_ext <<_ACEOF
25414 /* confdefs.h.  */
25415 _ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h.  */
25419
25420 #include <stdio.h>
25421 #include <netdb.h>
25422
25423 int
25424 main ()
25425 {
25426  gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
25427   ;
25428   return 0;
25429 }
25430 _ACEOF
25431 rm -f conftest.$ac_objext conftest$ac_exeext
25432 if { (ac_try="$ac_link"
25433 case "(($ac_try" in
25434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435   *) ac_try_echo=$ac_try;;
25436 esac
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438   (eval "$ac_link") 2>conftest.er1
25439   ac_status=$?
25440   grep -v '^ *+' conftest.er1 >conftest.err
25441   rm -f conftest.er1
25442   cat conftest.err >&5
25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444   (exit $ac_status); } && {
25445          test -z "$ac_c_werror_flag" ||
25446          test ! -s conftest.err
25447        } && test -s conftest$ac_exeext &&
25448        $as_test_x conftest$ac_exeext; then
25449
25450
25451 cat >>confdefs.h <<\_ACEOF
25452 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
25453 _ACEOF
25454
25455                 gethostbyaddrrstyle=SYSV
25456
25457 else
25458   echo "$as_me: failed program was:" >&5
25459 sed 's/^/| /' conftest.$ac_ext >&5
25460
25461
25462 fi
25463
25464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25465       conftest$ac_exeext conftest.$ac_ext
25466 fi
25467 if test "x$gethostbyaddrrstyle" = "x"; then
25468         cat >conftest.$ac_ext <<_ACEOF
25469 /* confdefs.h.  */
25470 _ACEOF
25471 cat confdefs.h >>conftest.$ac_ext
25472 cat >>conftest.$ac_ext <<_ACEOF
25473 /* end confdefs.h.  */
25474
25475 #include <stdio.h>
25476 #include <netdb.h>
25477
25478 int
25479 main ()
25480 {
25481  gethostbyaddr(NULL, 0, 0)
25482   ;
25483   return 0;
25484 }
25485 _ACEOF
25486 rm -f conftest.$ac_objext conftest$ac_exeext
25487 if { (ac_try="$ac_link"
25488 case "(($ac_try" in
25489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25490   *) ac_try_echo=$ac_try;;
25491 esac
25492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25493   (eval "$ac_link") 2>conftest.er1
25494   ac_status=$?
25495   grep -v '^ *+' conftest.er1 >conftest.err
25496   rm -f conftest.er1
25497   cat conftest.err >&5
25498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); } && {
25500          test -z "$ac_c_werror_flag" ||
25501          test ! -s conftest.err
25502        } && test -s conftest$ac_exeext &&
25503        $as_test_x conftest$ac_exeext; then
25504
25505
25506 cat >>confdefs.h <<\_ACEOF
25507 #define GETHOSTBYADDRRSTYLE BSDSTYLE
25508 _ACEOF
25509
25510                 gethostbyaddrrstyle=BSD
25511
25512 else
25513   echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25515
25516
25517 fi
25518
25519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25520       conftest$ac_exeext conftest.$ac_ext
25521 fi
25522
25523 if test "x$gethostbyaddrrstyle" = "x"; then
25524         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25525 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25526 else
25527         { echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
25528 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6; }
25529 fi
25530
25531 if test "x$gethostbyaddrrstyle" = "xBSD"; then
25532         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
25533 echo "$as_me: WARNING:  ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
25534 fi
25535
25536 gethostbynamerstyle=""
25537 { echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
25538 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6; }
25539 cat >conftest.$ac_ext <<_ACEOF
25540 /* confdefs.h.  */
25541 _ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h.  */
25545
25546 #include <stdio.h>
25547 #include <netdb.h>
25548
25549 int
25550 main ()
25551 {
25552  gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
25553   ;
25554   return 0;
25555 }
25556 _ACEOF
25557 rm -f conftest.$ac_objext conftest$ac_exeext
25558 if { (ac_try="$ac_link"
25559 case "(($ac_try" in
25560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25561   *) ac_try_echo=$ac_try;;
25562 esac
25563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25564   (eval "$ac_link") 2>conftest.er1
25565   ac_status=$?
25566   grep -v '^ *+' conftest.er1 >conftest.err
25567   rm -f conftest.er1
25568   cat conftest.err >&5
25569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570   (exit $ac_status); } && {
25571          test -z "$ac_c_werror_flag" ||
25572          test ! -s conftest.err
25573        } && test -s conftest$ac_exeext &&
25574        $as_test_x conftest$ac_exeext; then
25575
25576
25577 cat >>confdefs.h <<\_ACEOF
25578 #define GETHOSTBYNAMERSTYLE GNUSTYLE
25579 _ACEOF
25580
25581         gethostbynamerstyle=GNU
25582
25583 else
25584   echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25586
25587
25588 fi
25589
25590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25591       conftest$ac_exeext conftest.$ac_ext
25592 if test "x$gethostbynamerstyle" = "x"; then
25593         cat >conftest.$ac_ext <<_ACEOF
25594 /* confdefs.h.  */
25595 _ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h.  */
25599
25600 #include <stdio.h>
25601 #include <netdb.h>
25602
25603 int
25604 main ()
25605 {
25606  gethostbyname_r(NULL, NULL, NULL, 0, NULL)
25607   ;
25608   return 0;
25609 }
25610 _ACEOF
25611 rm -f conftest.$ac_objext conftest$ac_exeext
25612 if { (ac_try="$ac_link"
25613 case "(($ac_try" in
25614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615   *) ac_try_echo=$ac_try;;
25616 esac
25617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618   (eval "$ac_link") 2>conftest.er1
25619   ac_status=$?
25620   grep -v '^ *+' conftest.er1 >conftest.err
25621   rm -f conftest.er1
25622   cat conftest.err >&5
25623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624   (exit $ac_status); } && {
25625          test -z "$ac_c_werror_flag" ||
25626          test ! -s conftest.err
25627        } && test -s conftest$ac_exeext &&
25628        $as_test_x conftest$ac_exeext; then
25629
25630
25631 cat >>confdefs.h <<\_ACEOF
25632 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
25633 _ACEOF
25634
25635                 gethostbynamerstyle=SYSV
25636
25637 else
25638   echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25640
25641
25642 fi
25643
25644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25645       conftest$ac_exeext conftest.$ac_ext
25646 fi
25647 if test "x$gethostbynamerstyle" = "x"; then
25648         cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654
25655 #include <stdio.h>
25656 #include <netdb.h>
25657
25658 int
25659 main ()
25660 {
25661  gethostbyname(NULL)
25662   ;
25663   return 0;
25664 }
25665 _ACEOF
25666 rm -f conftest.$ac_objext conftest$ac_exeext
25667 if { (ac_try="$ac_link"
25668 case "(($ac_try" in
25669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670   *) ac_try_echo=$ac_try;;
25671 esac
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673   (eval "$ac_link") 2>conftest.er1
25674   ac_status=$?
25675   grep -v '^ *+' conftest.er1 >conftest.err
25676   rm -f conftest.er1
25677   cat conftest.err >&5
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); } && {
25680          test -z "$ac_c_werror_flag" ||
25681          test ! -s conftest.err
25682        } && test -s conftest$ac_exeext &&
25683        $as_test_x conftest$ac_exeext; then
25684
25685
25686 cat >>confdefs.h <<\_ACEOF
25687 #define GETHOSTBYNAMERSTYLE BSDSTYLE
25688 _ACEOF
25689
25690                 gethostbynamerstyle=BSD
25691
25692 else
25693   echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25695
25696
25697 fi
25698
25699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25700       conftest$ac_exeext conftest.$ac_ext
25701 fi
25702
25703 if test "x$gethostbynamerstyle" = "x"; then
25704         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25705 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25706 else
25707         { echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
25708 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6; }
25709 fi
25710
25711 if test "x$gethostbynamerstyle" = "xBSD"; then
25712         { echo "$as_me:$LINENO: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
25713 echo "$as_me: WARNING:  ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
25714 fi
25715
25716
25717 cat >>confdefs.h <<\_ACEOF
25718 #define POSIXSTYLE 1
25719 _ACEOF
25720
25721
25722 cat >>confdefs.h <<\_ACEOF
25723 #define SOLARISSTYLE 2
25724 _ACEOF
25725
25726 ctimerstyle=""
25727 { echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
25728 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6; }
25729 cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735
25736 #include <time.h>
25737
25738 int
25739 main ()
25740 {
25741  ctime_r(NULL, NULL, 0)
25742   ;
25743   return 0;
25744 }
25745 _ACEOF
25746 rm -f conftest.$ac_objext conftest$ac_exeext
25747 if { (ac_try="$ac_link"
25748 case "(($ac_try" in
25749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750   *) ac_try_echo=$ac_try;;
25751 esac
25752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25753   (eval "$ac_link") 2>conftest.er1
25754   ac_status=$?
25755   grep -v '^ *+' conftest.er1 >conftest.err
25756   rm -f conftest.er1
25757   cat conftest.err >&5
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); } && {
25760          test -z "$ac_c_werror_flag" ||
25761          test ! -s conftest.err
25762        } && test -s conftest$ac_exeext &&
25763        $as_test_x conftest$ac_exeext; then
25764
25765
25766 cat >>confdefs.h <<\_ACEOF
25767 #define CTIMERSTYLE SOLARISSTYLE
25768 _ACEOF
25769
25770         ctimerstyle="SOLARIS"
25771
25772 else
25773   echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25775
25776
25777 fi
25778
25779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25780       conftest$ac_exeext conftest.$ac_ext
25781 if test "x$ctimerstyle" = "x"; then
25782         cat >conftest.$ac_ext <<_ACEOF
25783 /* confdefs.h.  */
25784 _ACEOF
25785 cat confdefs.h >>conftest.$ac_ext
25786 cat >>conftest.$ac_ext <<_ACEOF
25787 /* end confdefs.h.  */
25788
25789 #include <time.h>
25790
25791 int
25792 main ()
25793 {
25794  ctime_r(NULL, NULL)
25795   ;
25796   return 0;
25797 }
25798 _ACEOF
25799 rm -f conftest.$ac_objext conftest$ac_exeext
25800 if { (ac_try="$ac_link"
25801 case "(($ac_try" in
25802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25803   *) ac_try_echo=$ac_try;;
25804 esac
25805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25806   (eval "$ac_link") 2>conftest.er1
25807   ac_status=$?
25808   grep -v '^ *+' conftest.er1 >conftest.err
25809   rm -f conftest.er1
25810   cat conftest.err >&5
25811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812   (exit $ac_status); } && {
25813          test -z "$ac_c_werror_flag" ||
25814          test ! -s conftest.err
25815        } && test -s conftest$ac_exeext &&
25816        $as_test_x conftest$ac_exeext; then
25817
25818
25819 cat >>confdefs.h <<\_ACEOF
25820 #define CTIMERSTYLE POSIXSTYLE
25821 _ACEOF
25822
25823                 ctimerstyle="POSIX"
25824
25825 else
25826   echo "$as_me: failed program was:" >&5
25827 sed 's/^/| /' conftest.$ac_ext >&5
25828
25829
25830 fi
25831
25832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25833       conftest$ac_exeext conftest.$ac_ext
25834 fi
25835
25836 if test "x$ctimerstyle" = "x"; then
25837         { echo "$as_me:$LINENO: result: none!  It must not exist, here." >&5
25838 echo "${ECHO_T}none!  It must not exist, here." >&6; }
25839 else
25840         { echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
25841 echo "${ECHO_T}${ctimerstyle}-style" >&6; }
25842 fi
25843
25844 HOSTINFO=$host
25845
25846
25847
25848 top_builddir=`pwd`
25849 export top_builddir
25850 { echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
25851 echo "${ECHO_T}top_builddir=$top_builddir" >&6; }
25852
25853
25854
25855
25856
25857 mysubdirs="$LIBLTDLPATH"
25858 if test "x$EXPERIMENTAL" = "xyes"; then
25859   bar=`ls -1 "${srcdir}"/src/modules/rlm_*/configure | sed 's%/configure%%'`
25860     mysubdirs=`echo $mysubdirs $bar`
25861 else
25862         for bar in `cat "${srcdir}"/src/modules/stable`; do
25863     if test -f "${srcdir}"/src/modules/$bar/configure; then
25864       mysubdirs="$mysubdirs src/modules/$bar"
25865     fi
25866   done
25867 fi
25868
25869 if test "x$EXPERIMENTAL" = "xyes"; then
25870   for foo in `ls -1 "${srcdir}"/src/modules | grep rlm_`; do
25871     MODULES="$MODULES $foo"
25872   done
25873 else
25874             for foo in `cat "${srcdir}"/src/modules/stable`; do
25875     MODULES="$MODULES $foo"
25876    done
25877 fi
25878
25879 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
25880
25881
25882
25883
25884 ac_config_commands="$ac_config_commands stamp-h"
25885
25886 ac_config_commands="$ac_config_commands build-radpaths-h"
25887
25888 ac_config_commands="$ac_config_commands main-chmod"
25889
25890 ac_config_commands="$ac_config_commands scripts-chmod"
25891
25892
25893
25894
25895
25896 USE_SHARED_LIBS=$enable_shared
25897
25898 USE_STATIC_LIBS=$enable_static
25899
25900
25901
25902
25903
25904
25905
25906   unset ac_cv_env_LIBS_set
25907   unset ac_cv_env_LIBS_value
25908
25909   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"
25910
25911 cat >confcache <<\_ACEOF
25912 # This file is a shell script that caches the results of configure
25913 # tests run on this system so they can be shared between configure
25914 # scripts and configure runs, see configure's option --config-cache.
25915 # It is not useful on other systems.  If it contains results you don't
25916 # want to keep, you may remove or edit it.
25917 #
25918 # config.status only pays attention to the cache file if you give it
25919 # the --recheck option to rerun configure.
25920 #
25921 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25922 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25923 # following values.
25924
25925 _ACEOF
25926
25927 # The following way of writing the cache mishandles newlines in values,
25928 # but we know of no workaround that is simple, portable, and efficient.
25929 # So, we kill variables containing newlines.
25930 # Ultrix sh set writes to stderr and can't be redirected directly,
25931 # and sets the high bit in the cache file unless we assign to the vars.
25932 (
25933   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25934     eval ac_val=\$$ac_var
25935     case $ac_val in #(
25936     *${as_nl}*)
25937       case $ac_var in #(
25938       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25939 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25940       esac
25941       case $ac_var in #(
25942       _ | IFS | as_nl) ;; #(
25943       *) $as_unset $ac_var ;;
25944       esac ;;
25945     esac
25946   done
25947
25948   (set) 2>&1 |
25949     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25950     *${as_nl}ac_space=\ *)
25951       # `set' does not quote correctly, so add quotes (double-quote
25952       # substitution turns \\\\ into \\, and sed turns \\ into \).
25953       sed -n \
25954         "s/'/'\\\\''/g;
25955           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25956       ;; #(
25957     *)
25958       # `set' quotes correctly as required by POSIX, so do not add quotes.
25959       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25960       ;;
25961     esac |
25962     sort
25963 ) |
25964   sed '
25965      /^ac_cv_env_/b end
25966      t clear
25967      :clear
25968      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25969      t end
25970      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25971      :end' >>confcache
25972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25973   if test -w "$cache_file"; then
25974     test "x$cache_file" != "x/dev/null" &&
25975       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25976 echo "$as_me: updating cache $cache_file" >&6;}
25977     cat confcache >$cache_file
25978   else
25979     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25980 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25981   fi
25982 fi
25983 rm -f confcache
25984
25985 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25986 # Let make expand exec_prefix.
25987 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25988
25989 DEFS=-DHAVE_CONFIG_H
25990
25991 ac_libobjs=
25992 ac_ltlibobjs=
25993 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25994   # 1. Remove the extension, and $U if already installed.
25995   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25996   ac_i=`echo "$ac_i" | sed "$ac_script"`
25997   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25998   #    will be set to the directory where LIBOBJS objects are built.
25999   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26000   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26001 done
26002 LIBOBJS=$ac_libobjs
26003
26004 LTLIBOBJS=$ac_ltlibobjs
26005
26006
26007
26008 : ${CONFIG_STATUS=./config.status}
26009 ac_clean_files_save=$ac_clean_files
26010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26011 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26012 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26013 cat >$CONFIG_STATUS <<_ACEOF
26014 #! $SHELL
26015 # Generated by $as_me.
26016 # Run this file to recreate the current configuration.
26017 # Compiler output produced by configure, useful for debugging
26018 # configure, is in config.log if it exists.
26019
26020 debug=false
26021 ac_cs_recheck=false
26022 ac_cs_silent=false
26023 SHELL=\${CONFIG_SHELL-$SHELL}
26024 _ACEOF
26025
26026 cat >>$CONFIG_STATUS <<\_ACEOF
26027 ## --------------------- ##
26028 ## M4sh Initialization.  ##
26029 ## --------------------- ##
26030
26031 # Be more Bourne compatible
26032 DUALCASE=1; export DUALCASE # for MKS sh
26033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26034   emulate sh
26035   NULLCMD=:
26036   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26037   # is contrary to our usage.  Disable this feature.
26038   alias -g '${1+"$@"}'='"$@"'
26039   setopt NO_GLOB_SUBST
26040 else
26041   case `(set -o) 2>/dev/null` in
26042   *posix*) set -o posix ;;
26043 esac
26044
26045 fi
26046
26047
26048
26049
26050 # PATH needs CR
26051 # Avoid depending upon Character Ranges.
26052 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26053 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26054 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26055 as_cr_digits='0123456789'
26056 as_cr_alnum=$as_cr_Letters$as_cr_digits
26057
26058 # The user is always right.
26059 if test "${PATH_SEPARATOR+set}" != set; then
26060   echo "#! /bin/sh" >conf$$.sh
26061   echo  "exit 0"   >>conf$$.sh
26062   chmod +x conf$$.sh
26063   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26064     PATH_SEPARATOR=';'
26065   else
26066     PATH_SEPARATOR=:
26067   fi
26068   rm -f conf$$.sh
26069 fi
26070
26071 # Support unset when possible.
26072 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26073   as_unset=unset
26074 else
26075   as_unset=false
26076 fi
26077
26078
26079 # IFS
26080 # We need space, tab and new line, in precisely that order.  Quoting is
26081 # there to prevent editors from complaining about space-tab.
26082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26083 # splitting by setting IFS to empty value.)
26084 as_nl='
26085 '
26086 IFS=" ""        $as_nl"
26087
26088 # Find who we are.  Look in the path if we contain no directory separator.
26089 case $0 in
26090   *[\\/]* ) as_myself=$0 ;;
26091   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26092 for as_dir in $PATH
26093 do
26094   IFS=$as_save_IFS
26095   test -z "$as_dir" && as_dir=.
26096   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26097 done
26098 IFS=$as_save_IFS
26099
26100      ;;
26101 esac
26102 # We did not find ourselves, most probably we were run as `sh COMMAND'
26103 # in which case we are not to be found in the path.
26104 if test "x$as_myself" = x; then
26105   as_myself=$0
26106 fi
26107 if test ! -f "$as_myself"; then
26108   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26109   { (exit 1); exit 1; }
26110 fi
26111
26112 # Work around bugs in pre-3.0 UWIN ksh.
26113 for as_var in ENV MAIL MAILPATH
26114 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26115 done
26116 PS1='$ '
26117 PS2='> '
26118 PS4='+ '
26119
26120 # NLS nuisances.
26121 for as_var in \
26122   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26123   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26124   LC_TELEPHONE LC_TIME
26125 do
26126   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26127     eval $as_var=C; export $as_var
26128   else
26129     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26130   fi
26131 done
26132
26133 # Required to use basename.
26134 if expr a : '\(a\)' >/dev/null 2>&1 &&
26135    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26136   as_expr=expr
26137 else
26138   as_expr=false
26139 fi
26140
26141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26142   as_basename=basename
26143 else
26144   as_basename=false
26145 fi
26146
26147
26148 # Name of the executable.
26149 as_me=`$as_basename -- "$0" ||
26150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26151          X"$0" : 'X\(//\)$' \| \
26152          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26153 echo X/"$0" |
26154     sed '/^.*\/\([^/][^/]*\)\/*$/{
26155             s//\1/
26156             q
26157           }
26158           /^X\/\(\/\/\)$/{
26159             s//\1/
26160             q
26161           }
26162           /^X\/\(\/\).*/{
26163             s//\1/
26164             q
26165           }
26166           s/.*/./; q'`
26167
26168 # CDPATH.
26169 $as_unset CDPATH
26170
26171
26172
26173   as_lineno_1=$LINENO
26174   as_lineno_2=$LINENO
26175   test "x$as_lineno_1" != "x$as_lineno_2" &&
26176   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26177
26178   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26179   # uniformly replaced by the line number.  The first 'sed' inserts a
26180   # line-number line after each line using $LINENO; the second 'sed'
26181   # does the real work.  The second script uses 'N' to pair each
26182   # line-number line with the line containing $LINENO, and appends
26183   # trailing '-' during substitution so that $LINENO is not a special
26184   # case at line end.
26185   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26186   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26187   # E. McMahon (1931-1989) for sed's syntax.  :-)
26188   sed -n '
26189     p
26190     /[$]LINENO/=
26191   ' <$as_myself |
26192     sed '
26193       s/[$]LINENO.*/&-/
26194       t lineno
26195       b
26196       :lineno
26197       N
26198       :loop
26199       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26200       t loop
26201       s/-\n.*//
26202     ' >$as_me.lineno &&
26203   chmod +x "$as_me.lineno" ||
26204     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26205    { (exit 1); exit 1; }; }
26206
26207   # Don't try to exec as it changes $[0], causing all sort of problems
26208   # (the dirname of $[0] is not the place where we might find the
26209   # original and so on.  Autoconf is especially sensitive to this).
26210   . "./$as_me.lineno"
26211   # Exit status is that of the last command.
26212   exit
26213 }
26214
26215
26216 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26217   as_dirname=dirname
26218 else
26219   as_dirname=false
26220 fi
26221
26222 ECHO_C= ECHO_N= ECHO_T=
26223 case `echo -n x` in
26224 -n*)
26225   case `echo 'x\c'` in
26226   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26227   *)   ECHO_C='\c';;
26228   esac;;
26229 *)
26230   ECHO_N='-n';;
26231 esac
26232
26233 if expr a : '\(a\)' >/dev/null 2>&1 &&
26234    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26235   as_expr=expr
26236 else
26237   as_expr=false
26238 fi
26239
26240 rm -f conf$$ conf$$.exe conf$$.file
26241 if test -d conf$$.dir; then
26242   rm -f conf$$.dir/conf$$.file
26243 else
26244   rm -f conf$$.dir
26245   mkdir conf$$.dir
26246 fi
26247 echo >conf$$.file
26248 if ln -s conf$$.file conf$$ 2>/dev/null; then
26249   as_ln_s='ln -s'
26250   # ... but there are two gotchas:
26251   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26252   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26253   # In both cases, we have to default to `cp -p'.
26254   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26255     as_ln_s='cp -p'
26256 elif ln conf$$.file conf$$ 2>/dev/null; then
26257   as_ln_s=ln
26258 else
26259   as_ln_s='cp -p'
26260 fi
26261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26262 rmdir conf$$.dir 2>/dev/null
26263
26264 if mkdir -p . 2>/dev/null; then
26265   as_mkdir_p=:
26266 else
26267   test -d ./-p && rmdir ./-p
26268   as_mkdir_p=false
26269 fi
26270
26271 if test -x / >/dev/null 2>&1; then
26272   as_test_x='test -x'
26273 else
26274   if ls -dL / >/dev/null 2>&1; then
26275     as_ls_L_option=L
26276   else
26277     as_ls_L_option=
26278   fi
26279   as_test_x='
26280     eval sh -c '\''
26281       if test -d "$1"; then
26282         test -d "$1/.";
26283       else
26284         case $1 in
26285         -*)set "./$1";;
26286         esac;
26287         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26288         ???[sx]*):;;*)false;;esac;fi
26289     '\'' sh
26290   '
26291 fi
26292 as_executable_p=$as_test_x
26293
26294 # Sed expression to map a string onto a valid CPP name.
26295 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26296
26297 # Sed expression to map a string onto a valid variable name.
26298 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26299
26300
26301 exec 6>&1
26302
26303 # Save the log message, to keep $[0] and so on meaningful, and to
26304 # report actual input values of CONFIG_FILES etc. instead of their
26305 # values after options handling.
26306 ac_log="
26307 This file was extended by $as_me, which was
26308 generated by GNU Autoconf 2.61.  Invocation command line was
26309
26310   CONFIG_FILES    = $CONFIG_FILES
26311   CONFIG_HEADERS  = $CONFIG_HEADERS
26312   CONFIG_LINKS    = $CONFIG_LINKS
26313   CONFIG_COMMANDS = $CONFIG_COMMANDS
26314   $ $0 $@
26315
26316 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26317 "
26318
26319 _ACEOF
26320
26321 cat >>$CONFIG_STATUS <<_ACEOF
26322 # Files that config.status was made for.
26323 config_files="$ac_config_files"
26324 config_headers="$ac_config_headers"
26325 config_commands="$ac_config_commands"
26326
26327 _ACEOF
26328
26329 cat >>$CONFIG_STATUS <<\_ACEOF
26330 ac_cs_usage="\
26331 \`$as_me' instantiates files from templates according to the
26332 current configuration.
26333
26334 Usage: $0 [OPTIONS] [FILE]...
26335
26336   -h, --help       print this help, then exit
26337   -V, --version    print version number and configuration settings, then exit
26338   -q, --quiet      do not print progress messages
26339   -d, --debug      don't remove temporary files
26340       --recheck    update $as_me by reconfiguring in the same conditions
26341   --file=FILE[:TEMPLATE]
26342                    instantiate the configuration file FILE
26343   --header=FILE[:TEMPLATE]
26344                    instantiate the configuration header FILE
26345
26346 Configuration files:
26347 $config_files
26348
26349 Configuration headers:
26350 $config_headers
26351
26352 Configuration commands:
26353 $config_commands
26354
26355 Report bugs to <bug-autoconf@gnu.org>."
26356
26357 _ACEOF
26358 cat >>$CONFIG_STATUS <<_ACEOF
26359 ac_cs_version="\\
26360 config.status
26361 configured by $0, generated by GNU Autoconf 2.61,
26362   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26363
26364 Copyright (C) 2006 Free Software Foundation, Inc.
26365 This config.status script is free software; the Free Software Foundation
26366 gives unlimited permission to copy, distribute and modify it."
26367
26368 ac_pwd='$ac_pwd'
26369 srcdir='$srcdir'
26370 _ACEOF
26371
26372 cat >>$CONFIG_STATUS <<\_ACEOF
26373 # If no file are specified by the user, then we need to provide default
26374 # value.  By we need to know if files were specified by the user.
26375 ac_need_defaults=:
26376 while test $# != 0
26377 do
26378   case $1 in
26379   --*=*)
26380     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26381     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26382     ac_shift=:
26383     ;;
26384   *)
26385     ac_option=$1
26386     ac_optarg=$2
26387     ac_shift=shift
26388     ;;
26389   esac
26390
26391   case $ac_option in
26392   # Handling of the options.
26393   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26394     ac_cs_recheck=: ;;
26395   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26396     echo "$ac_cs_version"; exit ;;
26397   --debug | --debu | --deb | --de | --d | -d )
26398     debug=: ;;
26399   --file | --fil | --fi | --f )
26400     $ac_shift
26401     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26402     ac_need_defaults=false;;
26403   --header | --heade | --head | --hea )
26404     $ac_shift
26405     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26406     ac_need_defaults=false;;
26407   --he | --h)
26408     # Conflict between --help and --header
26409     { echo "$as_me: error: ambiguous option: $1
26410 Try \`$0 --help' for more information." >&2
26411    { (exit 1); exit 1; }; };;
26412   --help | --hel | -h )
26413     echo "$ac_cs_usage"; exit ;;
26414   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26415   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26416     ac_cs_silent=: ;;
26417
26418   # This is an error.
26419   -*) { echo "$as_me: error: unrecognized option: $1
26420 Try \`$0 --help' for more information." >&2
26421    { (exit 1); exit 1; }; } ;;
26422
26423   *) ac_config_targets="$ac_config_targets $1"
26424      ac_need_defaults=false ;;
26425
26426   esac
26427   shift
26428 done
26429
26430 ac_configure_extra_args=
26431
26432 if $ac_cs_silent; then
26433   exec 6>/dev/null
26434   ac_configure_extra_args="$ac_configure_extra_args --silent"
26435 fi
26436
26437 _ACEOF
26438 cat >>$CONFIG_STATUS <<_ACEOF
26439 if \$ac_cs_recheck; then
26440   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26441   CONFIG_SHELL=$SHELL
26442   export CONFIG_SHELL
26443   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26444 fi
26445
26446 _ACEOF
26447 cat >>$CONFIG_STATUS <<\_ACEOF
26448 exec 5>>config.log
26449 {
26450   echo
26451   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26452 ## Running $as_me. ##
26453 _ASBOX
26454   echo "$ac_log"
26455 } >&5
26456
26457 _ACEOF
26458 cat >>$CONFIG_STATUS <<_ACEOF
26459 _ACEOF
26460
26461 cat >>$CONFIG_STATUS <<\_ACEOF
26462
26463 # Handling of arguments.
26464 for ac_config_target in $ac_config_targets
26465 do
26466   case $ac_config_target in
26467     "src/include/autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
26468     "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
26469     "build-radpaths-h") CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
26470     "main-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
26471     "scripts-chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
26472     "./Make.inc") CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
26473     "./src/include/build-radpaths-h") CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
26474     "./src/main/Makefile") CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
26475     "./src/main/checkrad.pl") CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
26476     "./src/main/radlast") CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
26477     "./src/main/radtest") CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
26478     "./scripts/rc.radiusd") CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
26479     "./scripts/radwatch") CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
26480     "./scripts/radiusd.cron.daily") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
26481     "./scripts/radiusd.cron.monthly") CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
26482     "./scripts/cryptpasswd") CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
26483     "./raddb/dictionary") CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
26484     "./raddb/radiusd.conf") CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
26485
26486   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26487 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26488    { (exit 1); exit 1; }; };;
26489   esac
26490 done
26491
26492
26493 # If the user did not use the arguments to specify the items to instantiate,
26494 # then the envvar interface is used.  Set only those that are not.
26495 # We use the long form for the default assignment because of an extremely
26496 # bizarre bug on SunOS 4.1.3.
26497 if $ac_need_defaults; then
26498   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26499   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26500   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26501 fi
26502
26503 # Have a temporary directory for convenience.  Make it in the build tree
26504 # simply because there is no reason against having it here, and in addition,
26505 # creating and moving files from /tmp can sometimes cause problems.
26506 # Hook for its removal unless debugging.
26507 # Note that there is a small window in which the directory will not be cleaned:
26508 # after its creation but before its name has been assigned to `$tmp'.
26509 $debug ||
26510 {
26511   tmp=
26512   trap 'exit_status=$?
26513   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26514 ' 0
26515   trap '{ (exit 1); exit 1; }' 1 2 13 15
26516 }
26517 # Create a (secure) tmp directory for tmp files.
26518
26519 {
26520   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26521   test -n "$tmp" && test -d "$tmp"
26522 }  ||
26523 {
26524   tmp=./conf$$-$RANDOM
26525   (umask 077 && mkdir "$tmp")
26526 } ||
26527 {
26528    echo "$me: cannot create a temporary directory in ." >&2
26529    { (exit 1); exit 1; }
26530 }
26531
26532 #
26533 # Set up the sed scripts for CONFIG_FILES section.
26534 #
26535
26536 # No need to generate the scripts if there are no CONFIG_FILES.
26537 # This happens for instance when ./config.status config.h
26538 if test -n "$CONFIG_FILES"; then
26539
26540 _ACEOF
26541
26542
26543
26544 ac_delim='%!_!# '
26545 for ac_last_try in false false false false false :; do
26546   cat >conf$$subs.sed <<_ACEOF
26547 SHELL!$SHELL$ac_delim
26548 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26549 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26550 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26551 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26552 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26553 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26554 exec_prefix!$exec_prefix$ac_delim
26555 prefix!$prefix$ac_delim
26556 program_transform_name!$program_transform_name$ac_delim
26557 bindir!$bindir$ac_delim
26558 sbindir!$sbindir$ac_delim
26559 libexecdir!$libexecdir$ac_delim
26560 datarootdir!$datarootdir$ac_delim
26561 datadir!$datadir$ac_delim
26562 sysconfdir!$sysconfdir$ac_delim
26563 sharedstatedir!$sharedstatedir$ac_delim
26564 localstatedir!$localstatedir$ac_delim
26565 includedir!$includedir$ac_delim
26566 oldincludedir!$oldincludedir$ac_delim
26567 docdir!$docdir$ac_delim
26568 infodir!$infodir$ac_delim
26569 htmldir!$htmldir$ac_delim
26570 dvidir!$dvidir$ac_delim
26571 pdfdir!$pdfdir$ac_delim
26572 psdir!$psdir$ac_delim
26573 libdir!$libdir$ac_delim
26574 localedir!$localedir$ac_delim
26575 mandir!$mandir$ac_delim
26576 DEFS!$DEFS$ac_delim
26577 ECHO_C!$ECHO_C$ac_delim
26578 ECHO_N!$ECHO_N$ac_delim
26579 ECHO_T!$ECHO_T$ac_delim
26580 LIBS!$LIBS$ac_delim
26581 build_alias!$build_alias$ac_delim
26582 host_alias!$host_alias$ac_delim
26583 target_alias!$target_alias$ac_delim
26584 CC!$CC$ac_delim
26585 CFLAGS!$CFLAGS$ac_delim
26586 LDFLAGS!$LDFLAGS$ac_delim
26587 CPPFLAGS!$CPPFLAGS$ac_delim
26588 ac_ct_CC!$ac_ct_CC$ac_delim
26589 EXEEXT!$EXEEXT$ac_delim
26590 OBJEXT!$OBJEXT$ac_delim
26591 CXX!$CXX$ac_delim
26592 CXXFLAGS!$CXXFLAGS$ac_delim
26593 ac_ct_CXX!$ac_ct_CXX$ac_delim
26594 CPP!$CPP$ac_delim
26595 GREP!$GREP$ac_delim
26596 EGREP!$EGREP$ac_delim
26597 RANLIB!$RANLIB$ac_delim
26598 GMAKE!$GMAKE$ac_delim
26599 MAKE!$MAKE$ac_delim
26600 LTDL_SUBDIRS!$LTDL_SUBDIRS$ac_delim
26601 LIBTOOL!$LIBTOOL$ac_delim
26602 build!$build$ac_delim
26603 build_cpu!$build_cpu$ac_delim
26604 build_vendor!$build_vendor$ac_delim
26605 build_os!$build_os$ac_delim
26606 host!$host$ac_delim
26607 host_cpu!$host_cpu$ac_delim
26608 host_vendor!$host_vendor$ac_delim
26609 host_os!$host_os$ac_delim
26610 SED!$SED$ac_delim
26611 LN_S!$LN_S$ac_delim
26612 ECHO!$ECHO$ac_delim
26613 AR!$AR$ac_delim
26614 STRIP!$STRIP$ac_delim
26615 DSYMUTIL!$DSYMUTIL$ac_delim
26616 NMEDIT!$NMEDIT$ac_delim
26617 CXXCPP!$CXXCPP$ac_delim
26618 F77!$F77$ac_delim
26619 FFLAGS!$FFLAGS$ac_delim
26620 ac_ct_F77!$ac_ct_F77$ac_delim
26621 logdir!$logdir$ac_delim
26622 radacctdir!$radacctdir$ac_delim
26623 raddbdir!$raddbdir$ac_delim
26624 PERL!$PERL$ac_delim
26625 SNMPGET!$SNMPGET$ac_delim
26626 SNMPWALK!$SNMPWALK$ac_delim
26627 RUSERS!$RUSERS$ac_delim
26628 ACLOCAL!$ACLOCAL$ac_delim
26629 AUTOCONF!$AUTOCONF$ac_delim
26630 AUTOHEADER!$AUTOHEADER$ac_delim
26631 LOCATE!$LOCATE$ac_delim
26632 DIRNAME!$DIRNAME$ac_delim
26633 LIBREADLINE!$LIBREADLINE$ac_delim
26634 REGEX!$REGEX$ac_delim
26635 REGEX_EXTENDED!$REGEX_EXTENDED$ac_delim
26636 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
26637 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
26638 PCAP_LIBS!$PCAP_LIBS$ac_delim
26639 LIBPREFIX!$LIBPREFIX$ac_delim
26640 CRYPTLIB!$CRYPTLIB$ac_delim
26641 HOSTINFO!$HOSTINFO$ac_delim
26642 LIBLTDL!$LIBLTDL$ac_delim
26643 INCLTDL!$INCLTDL$ac_delim
26644 _ACEOF
26645
26646   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26647     break
26648   elif $ac_last_try; then
26649     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26650 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26651    { (exit 1); exit 1; }; }
26652   else
26653     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26654   fi
26655 done
26656
26657 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26658 if test -n "$ac_eof"; then
26659   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26660   ac_eof=`expr $ac_eof + 1`
26661 fi
26662
26663 cat >>$CONFIG_STATUS <<_ACEOF
26664 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26665 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26666 _ACEOF
26667 sed '
26668 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26669 s/^/s,@/; s/!/@,|#_!!_#|/
26670 :n
26671 t n
26672 s/'"$ac_delim"'$/,g/; t
26673 s/$/\\/; p
26674 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26675 ' >>$CONFIG_STATUS <conf$$subs.sed
26676 rm -f conf$$subs.sed
26677 cat >>$CONFIG_STATUS <<_ACEOF
26678 CEOF$ac_eof
26679 _ACEOF
26680
26681
26682 ac_delim='%!_!# '
26683 for ac_last_try in false false false false false :; do
26684   cat >conf$$subs.sed <<_ACEOF
26685 subdirs!$subdirs$ac_delim
26686 MODULES!$MODULES$ac_delim
26687 INSTALLSTRIP!$INSTALLSTRIP$ac_delim
26688 USE_SHARED_LIBS!$USE_SHARED_LIBS$ac_delim
26689 USE_STATIC_LIBS!$USE_STATIC_LIBS$ac_delim
26690 STATIC_MODULES!$STATIC_MODULES$ac_delim
26691 RADIUSD_MAJOR_VERSION!$RADIUSD_MAJOR_VERSION$ac_delim
26692 RADIUSD_MINOR_VERSION!$RADIUSD_MINOR_VERSION$ac_delim
26693 RADIUSD_VERSION!$RADIUSD_VERSION$ac_delim
26694 LIBOBJS!$LIBOBJS$ac_delim
26695 LTLIBOBJS!$LTLIBOBJS$ac_delim
26696 _ACEOF
26697
26698   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
26699     break
26700   elif $ac_last_try; then
26701     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26702 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26703    { (exit 1); exit 1; }; }
26704   else
26705     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26706   fi
26707 done
26708
26709 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26710 if test -n "$ac_eof"; then
26711   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26712   ac_eof=`expr $ac_eof + 1`
26713 fi
26714
26715 cat >>$CONFIG_STATUS <<_ACEOF
26716 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26718 _ACEOF
26719 sed '
26720 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26721 s/^/s,@/; s/!/@,|#_!!_#|/
26722 :n
26723 t n
26724 s/'"$ac_delim"'$/,g/; t
26725 s/$/\\/; p
26726 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26727 ' >>$CONFIG_STATUS <conf$$subs.sed
26728 rm -f conf$$subs.sed
26729 cat >>$CONFIG_STATUS <<_ACEOF
26730 :end
26731 s/|#_!!_#|//g
26732 CEOF$ac_eof
26733 _ACEOF
26734
26735
26736 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26737 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26738 # trailing colons and then remove the whole line if VPATH becomes empty
26739 # (actually we leave an empty line to preserve line numbers).
26740 if test "x$srcdir" = x.; then
26741   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26742 s/:*\$(srcdir):*/:/
26743 s/:*\${srcdir}:*/:/
26744 s/:*@srcdir@:*/:/
26745 s/^\([^=]*=[     ]*\):*/\1/
26746 s/:*$//
26747 s/^[^=]*=[       ]*$//
26748 }'
26749 fi
26750
26751 cat >>$CONFIG_STATUS <<\_ACEOF
26752 fi # test -n "$CONFIG_FILES"
26753
26754
26755 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
26756 do
26757   case $ac_tag in
26758   :[FHLC]) ac_mode=$ac_tag; continue;;
26759   esac
26760   case $ac_mode$ac_tag in
26761   :[FHL]*:*);;
26762   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26763 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26764    { (exit 1); exit 1; }; };;
26765   :[FH]-) ac_tag=-:-;;
26766   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26767   esac
26768   ac_save_IFS=$IFS
26769   IFS=:
26770   set x $ac_tag
26771   IFS=$ac_save_IFS
26772   shift
26773   ac_file=$1
26774   shift
26775
26776   case $ac_mode in
26777   :L) ac_source=$1;;
26778   :[FH])
26779     ac_file_inputs=
26780     for ac_f
26781     do
26782       case $ac_f in
26783       -) ac_f="$tmp/stdin";;
26784       *) # Look for the file first in the build tree, then in the source tree
26785          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26786          # because $ac_f cannot contain `:'.
26787          test -f "$ac_f" ||
26788            case $ac_f in
26789            [\\/$]*) false;;
26790            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26791            esac ||
26792            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26793 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26794    { (exit 1); exit 1; }; };;
26795       esac
26796       ac_file_inputs="$ac_file_inputs $ac_f"
26797     done
26798
26799     # Let's still pretend it is `configure' which instantiates (i.e., don't
26800     # use $as_me), people would be surprised to read:
26801     #    /* config.h.  Generated by config.status.  */
26802     configure_input="Generated from "`IFS=:
26803           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26804     if test x"$ac_file" != x-; then
26805       configure_input="$ac_file.  $configure_input"
26806       { echo "$as_me:$LINENO: creating $ac_file" >&5
26807 echo "$as_me: creating $ac_file" >&6;}
26808     fi
26809
26810     case $ac_tag in
26811     *:-:* | *:-) cat >"$tmp/stdin";;
26812     esac
26813     ;;
26814   esac
26815
26816   ac_dir=`$as_dirname -- "$ac_file" ||
26817 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26818          X"$ac_file" : 'X\(//\)[^/]' \| \
26819          X"$ac_file" : 'X\(//\)$' \| \
26820          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26821 echo X"$ac_file" |
26822     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26823             s//\1/
26824             q
26825           }
26826           /^X\(\/\/\)[^/].*/{
26827             s//\1/
26828             q
26829           }
26830           /^X\(\/\/\)$/{
26831             s//\1/
26832             q
26833           }
26834           /^X\(\/\).*/{
26835             s//\1/
26836             q
26837           }
26838           s/.*/./; q'`
26839   { as_dir="$ac_dir"
26840   case $as_dir in #(
26841   -*) as_dir=./$as_dir;;
26842   esac
26843   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26844     as_dirs=
26845     while :; do
26846       case $as_dir in #(
26847       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26848       *) as_qdir=$as_dir;;
26849       esac
26850       as_dirs="'$as_qdir' $as_dirs"
26851       as_dir=`$as_dirname -- "$as_dir" ||
26852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26853          X"$as_dir" : 'X\(//\)[^/]' \| \
26854          X"$as_dir" : 'X\(//\)$' \| \
26855          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26856 echo X"$as_dir" |
26857     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26858             s//\1/
26859             q
26860           }
26861           /^X\(\/\/\)[^/].*/{
26862             s//\1/
26863             q
26864           }
26865           /^X\(\/\/\)$/{
26866             s//\1/
26867             q
26868           }
26869           /^X\(\/\).*/{
26870             s//\1/
26871             q
26872           }
26873           s/.*/./; q'`
26874       test -d "$as_dir" && break
26875     done
26876     test -z "$as_dirs" || eval "mkdir $as_dirs"
26877   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26878 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26879    { (exit 1); exit 1; }; }; }
26880   ac_builddir=.
26881
26882 case "$ac_dir" in
26883 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26884 *)
26885   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26886   # A ".." for each directory in $ac_dir_suffix.
26887   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26888   case $ac_top_builddir_sub in
26889   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26890   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26891   esac ;;
26892 esac
26893 ac_abs_top_builddir=$ac_pwd
26894 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26895 # for backward compatibility:
26896 ac_top_builddir=$ac_top_build_prefix
26897
26898 case $srcdir in
26899   .)  # We are building in place.
26900     ac_srcdir=.
26901     ac_top_srcdir=$ac_top_builddir_sub
26902     ac_abs_top_srcdir=$ac_pwd ;;
26903   [\\/]* | ?:[\\/]* )  # Absolute name.
26904     ac_srcdir=$srcdir$ac_dir_suffix;
26905     ac_top_srcdir=$srcdir
26906     ac_abs_top_srcdir=$srcdir ;;
26907   *) # Relative name.
26908     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26909     ac_top_srcdir=$ac_top_build_prefix$srcdir
26910     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26911 esac
26912 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26913
26914
26915   case $ac_mode in
26916   :F)
26917   #
26918   # CONFIG_FILE
26919   #
26920
26921 _ACEOF
26922
26923 cat >>$CONFIG_STATUS <<\_ACEOF
26924 # If the template does not know about datarootdir, expand it.
26925 # FIXME: This hack should be removed a few years after 2.60.
26926 ac_datarootdir_hack=; ac_datarootdir_seen=
26927
26928 case `sed -n '/datarootdir/ {
26929   p
26930   q
26931 }
26932 /@datadir@/p
26933 /@docdir@/p
26934 /@infodir@/p
26935 /@localedir@/p
26936 /@mandir@/p
26937 ' $ac_file_inputs` in
26938 *datarootdir*) ac_datarootdir_seen=yes;;
26939 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26940   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26941 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26942 _ACEOF
26943 cat >>$CONFIG_STATUS <<_ACEOF
26944   ac_datarootdir_hack='
26945   s&@datadir@&$datadir&g
26946   s&@docdir@&$docdir&g
26947   s&@infodir@&$infodir&g
26948   s&@localedir@&$localedir&g
26949   s&@mandir@&$mandir&g
26950     s&\\\${datarootdir}&$datarootdir&g' ;;
26951 esac
26952 _ACEOF
26953
26954 # Neutralize VPATH when `$srcdir' = `.'.
26955 # Shell code in configure.ac might set extrasub.
26956 # FIXME: do we really want to maintain this feature?
26957 cat >>$CONFIG_STATUS <<_ACEOF
26958   sed "$ac_vpsub
26959 $extrasub
26960 _ACEOF
26961 cat >>$CONFIG_STATUS <<\_ACEOF
26962 :t
26963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26964 s&@configure_input@&$configure_input&;t t
26965 s&@top_builddir@&$ac_top_builddir_sub&;t t
26966 s&@srcdir@&$ac_srcdir&;t t
26967 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26968 s&@top_srcdir@&$ac_top_srcdir&;t t
26969 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26970 s&@builddir@&$ac_builddir&;t t
26971 s&@abs_builddir@&$ac_abs_builddir&;t t
26972 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26973 $ac_datarootdir_hack
26974 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26975
26976 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26977   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26978   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26979   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26980 which seems to be undefined.  Please make sure it is defined." >&5
26981 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26982 which seems to be undefined.  Please make sure it is defined." >&2;}
26983
26984   rm -f "$tmp/stdin"
26985   case $ac_file in
26986   -) cat "$tmp/out"; rm -f "$tmp/out";;
26987   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26988   esac
26989  ;;
26990   :H)
26991   #
26992   # CONFIG_HEADER
26993   #
26994 _ACEOF
26995
26996 # Transform confdefs.h into a sed script `conftest.defines', that
26997 # substitutes the proper values into config.h.in to produce config.h.
26998 rm -f conftest.defines conftest.tail
26999 # First, append a space to every undef/define line, to ease matching.
27000 echo 's/$/ /' >conftest.defines
27001 # Then, protect against being on the right side of a sed subst, or in
27002 # an unquoted here document, in config.status.  If some macros were
27003 # called several times there might be several #defines for the same
27004 # symbol, which is useless.  But do not sort them, since the last
27005 # AC_DEFINE must be honored.
27006 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27007 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27008 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27009 # PARAMS is the parameter list in the macro definition--in most cases, it's
27010 # just an empty string.
27011 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27012 ac_dB='\\)[      (].*,\\1define\\2'
27013 ac_dC=' '
27014 ac_dD=' ,'
27015
27016 uniq confdefs.h |
27017   sed -n '
27018         t rset
27019         :rset
27020         s/^[     ]*#[    ]*define[       ][      ]*//
27021         t ok
27022         d
27023         :ok
27024         s/[\\&,]/\\&/g
27025         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27026         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27027   ' >>conftest.defines
27028
27029 # Remove the space that was appended to ease matching.
27030 # Then replace #undef with comments.  This is necessary, for
27031 # example, in the case of _POSIX_SOURCE, which is predefined and required
27032 # on some systems where configure will not decide to define it.
27033 # (The regexp can be short, since the line contains either #define or #undef.)
27034 echo 's/ $//
27035 s,^[     #]*u.*,/* & */,' >>conftest.defines
27036
27037 # Break up conftest.defines:
27038 ac_max_sed_lines=50
27039
27040 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27041 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27042 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27043 # et cetera.
27044 ac_in='$ac_file_inputs'
27045 ac_out='"$tmp/out1"'
27046 ac_nxt='"$tmp/out2"'
27047
27048 while :
27049 do
27050   # Write a here document:
27051     cat >>$CONFIG_STATUS <<_ACEOF
27052     # First, check the format of the line:
27053     cat >"\$tmp/defines.sed" <<\\CEOF
27054 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27055 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27056 b
27057 :def
27058 _ACEOF
27059   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27060   echo 'CEOF
27061     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27062   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27063   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27064   grep . conftest.tail >/dev/null || break
27065   rm -f conftest.defines
27066   mv conftest.tail conftest.defines
27067 done
27068 rm -f conftest.defines conftest.tail
27069
27070 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27071 cat >>$CONFIG_STATUS <<\_ACEOF
27072   if test x"$ac_file" != x-; then
27073     echo "/* $configure_input  */" >"$tmp/config.h"
27074     cat "$ac_result" >>"$tmp/config.h"
27075     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27076       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27077 echo "$as_me: $ac_file is unchanged" >&6;}
27078     else
27079       rm -f $ac_file
27080       mv "$tmp/config.h" $ac_file
27081     fi
27082   else
27083     echo "/* $configure_input  */"
27084     cat "$ac_result"
27085   fi
27086   rm -f "$tmp/out12"
27087  ;;
27088
27089   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27090 echo "$as_me: executing $ac_file commands" >&6;}
27091  ;;
27092   esac
27093
27094
27095   case $ac_file$ac_mode in
27096     "stamp-h":C) echo timestamp > src/include/stamp-h ;;
27097     "build-radpaths-h":C) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
27098     "main-chmod":C) (cd ./src/main   && chmod +x checkrad.pl radlast radtest) ;;
27099     "scripts-chmod":C) (cd ./scripts    && chmod +x rc.radiusd radwatch radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
27100
27101   esac
27102 done # for ac_tag
27103
27104
27105 { (exit 0); exit 0; }
27106 _ACEOF
27107 chmod +x $CONFIG_STATUS
27108 ac_clean_files=$ac_clean_files_save
27109
27110
27111 # configure is writing to config.log, and then calls config.status.
27112 # config.status does its own redirection, appending to config.log.
27113 # Unfortunately, on DOS this fails, as config.log is still kept open
27114 # by configure, so config.status won't be able to write to it; its
27115 # output is simply discarded.  So we exec the FD to /dev/null,
27116 # effectively closing config.log, so it can be properly (re)opened and
27117 # appended to by config.status.  When coming back to configure, we
27118 # need to make the FD available again.
27119 if test "$no_create" != yes; then
27120   ac_cs_success=:
27121   ac_config_status_args=
27122   test "$silent" = yes &&
27123     ac_config_status_args="$ac_config_status_args --quiet"
27124   exec 5>/dev/null
27125   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27126   exec 5>>config.log
27127   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27128   # would make configure fail if this is the last instruction.
27129   $ac_cs_success || { (exit 1); exit 1; }
27130 fi
27131
27132 #
27133 # CONFIG_SUBDIRS section.
27134 #
27135 if test "$no_recursion" != yes; then
27136
27137   # Remove --cache-file and --srcdir arguments so they do not pile up.
27138   ac_sub_configure_args=
27139   ac_prev=
27140   eval "set x $ac_configure_args"
27141   shift
27142   for ac_arg
27143   do
27144     if test -n "$ac_prev"; then
27145       ac_prev=
27146       continue
27147     fi
27148     case $ac_arg in
27149     -cache-file | --cache-file | --cache-fil | --cache-fi \
27150     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27151       ac_prev=cache_file ;;
27152     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27153     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27154     | --c=*)
27155       ;;
27156     --config-cache | -C)
27157       ;;
27158     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27159       ac_prev=srcdir ;;
27160     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27161       ;;
27162     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27163       ac_prev=prefix ;;
27164     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27165       ;;
27166     *)
27167       case $ac_arg in
27168       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27169       esac
27170       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
27171     esac
27172   done
27173
27174   # Always prepend --prefix to ensure using the same prefix
27175   # in subdir configurations.
27176   ac_arg="--prefix=$prefix"
27177   case $ac_arg in
27178   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27179   esac
27180   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27181
27182   # Pass --silent
27183   if test "$silent" = yes; then
27184     ac_sub_configure_args="--silent $ac_sub_configure_args"
27185   fi
27186
27187   ac_popdir=`pwd`
27188   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27189
27190     # Do not complain, so a configure script can configure whichever
27191     # parts of a large source tree are present.
27192     test -d "$srcdir/$ac_dir" || continue
27193
27194     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27195     echo "$as_me:$LINENO: $ac_msg" >&5
27196     echo "$ac_msg" >&6
27197     { as_dir="$ac_dir"
27198   case $as_dir in #(
27199   -*) as_dir=./$as_dir;;
27200   esac
27201   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27202     as_dirs=
27203     while :; do
27204       case $as_dir in #(
27205       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27206       *) as_qdir=$as_dir;;
27207       esac
27208       as_dirs="'$as_qdir' $as_dirs"
27209       as_dir=`$as_dirname -- "$as_dir" ||
27210 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27211          X"$as_dir" : 'X\(//\)[^/]' \| \
27212          X"$as_dir" : 'X\(//\)$' \| \
27213          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27214 echo X"$as_dir" |
27215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27216             s//\1/
27217             q
27218           }
27219           /^X\(\/\/\)[^/].*/{
27220             s//\1/
27221             q
27222           }
27223           /^X\(\/\/\)$/{
27224             s//\1/
27225             q
27226           }
27227           /^X\(\/\).*/{
27228             s//\1/
27229             q
27230           }
27231           s/.*/./; q'`
27232       test -d "$as_dir" && break
27233     done
27234     test -z "$as_dirs" || eval "mkdir $as_dirs"
27235   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27236 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27237    { (exit 1); exit 1; }; }; }
27238     ac_builddir=.
27239
27240 case "$ac_dir" in
27241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27242 *)
27243   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27244   # A ".." for each directory in $ac_dir_suffix.
27245   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27246   case $ac_top_builddir_sub in
27247   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27248   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27249   esac ;;
27250 esac
27251 ac_abs_top_builddir=$ac_pwd
27252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27253 # for backward compatibility:
27254 ac_top_builddir=$ac_top_build_prefix
27255
27256 case $srcdir in
27257   .)  # We are building in place.
27258     ac_srcdir=.
27259     ac_top_srcdir=$ac_top_builddir_sub
27260     ac_abs_top_srcdir=$ac_pwd ;;
27261   [\\/]* | ?:[\\/]* )  # Absolute name.
27262     ac_srcdir=$srcdir$ac_dir_suffix;
27263     ac_top_srcdir=$srcdir
27264     ac_abs_top_srcdir=$srcdir ;;
27265   *) # Relative name.
27266     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27267     ac_top_srcdir=$ac_top_build_prefix$srcdir
27268     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27269 esac
27270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27271
27272
27273     cd "$ac_dir"
27274
27275     # Check for guested configure; otherwise get Cygnus style configure.
27276     if test -f "$ac_srcdir/configure.gnu"; then
27277       ac_sub_configure=$ac_srcdir/configure.gnu
27278     elif test -f "$ac_srcdir/configure"; then
27279       ac_sub_configure=$ac_srcdir/configure
27280     elif test -f "$ac_srcdir/configure.in"; then
27281       # This should be Cygnus configure.
27282       ac_sub_configure=$ac_aux_dir/configure
27283     else
27284       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27285 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27286       ac_sub_configure=
27287     fi
27288
27289     # The recursion is here.
27290     if test -n "$ac_sub_configure"; then
27291       # Make the cache file name correct relative to the subdirectory.
27292       case $cache_file in
27293       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27294       *) # Relative name.
27295         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27296       esac
27297
27298       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27299 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27300       # The eval makes quoting arguments work.
27301       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27302            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27303         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27304 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27305    { (exit 1); exit 1; }; }
27306     fi
27307
27308     cd "$ac_popdir"
27309   done
27310 fi
27311
27312