Code

Merge branch 'upstream'
[pkg-rrdtool.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for rrdtool 1.2.28.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
27 fi
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
165 as_func_success () {
166   as_func_return 0
168 as_func_failure () {
169   as_func_return 1
171 as_func_ret_success () {
172   return 0
174 as_func_ret_failure () {
175   return 1
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
252 fi
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
273 fi
277 (as_func_return () {
278   (exit $1)
280 as_func_success () {
281   as_func_return 0
283 as_func_failure () {
284   as_func_return 1
286 as_func_ret_success () {
287   return 0
289 as_func_ret_failure () {
290   return 1
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
325 test $exitcode = 0) || { (exit 1); exit 1; }
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335   break
336 fi
338 fi
340       done
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
360 fi
362 fi
366 (eval "as_func_return () {
367   (exit \$1)
369 as_func_success () {
370   as_func_return 0
372 as_func_failure () {
373   as_func_return 1
375 as_func_ret_success () {
376   return 0
378 as_func_ret_failure () {
379   return 1
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 # Initializations.
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
727 PACKAGE_NAME='rrdtool'
728 PACKAGE_TARNAME='rrdtool'
729 PACKAGE_VERSION='1.2.28'
730 PACKAGE_STRING='rrdtool 1.2.28'
731 PACKAGE_BUGREPORT=''
733 ac_default_prefix=/usr/local/rrdtool-$PACKAGE_VERSION
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 #  include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 #  include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='PERLFLAGS
771 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 NUMVERS
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 RRDGRAPH_YLEGEND_ANGLE
843 CC
844 CFLAGS
845 LDFLAGS
846 CPPFLAGS
847 ac_ct_CC
848 EXEEXT
849 OBJEXT
850 DEPDIR
851 am__include
852 am__quote
853 AMDEP_TRUE
854 AMDEP_FALSE
855 AMDEPBACKSLASH
856 CCDEPMODE
857 am__fastdepCC_TRUE
858 am__fastdepCC_FALSE
859 CPP
860 SED
861 GREP
862 EGREP
863 LN_S
864 ECHO
865 AR
866 RANLIB
867 DSYMUTIL
868 NMEDIT
869 CXX
870 CXXFLAGS
871 ac_ct_CXX
872 CXXDEPMODE
873 am__fastdepCXX_TRUE
874 am__fastdepCXX_FALSE
875 CXXCPP
876 F77
877 FFLAGS
878 ac_ct_F77
879 LIBTOOL
880 RRD_DEFAULT_FONT
881 MULTITHREAD_CFLAGS
882 MULTITHREAD_LDFLAGS
883 acx_pthread_config
884 PTHREAD_CC
885 PTHREAD_LIBS
886 PTHREAD_CFLAGS
887 BUILD_MULTITHREAD_TRUE
888 BUILD_MULTITHREAD_FALSE
889 BUILD_RRDCGI_TRUE
890 BUILD_RRDCGI_FALSE
891 PKGCONFIG
892 CORE_LIBS
893 ALL_LIBS
894 PERL
895 PERLCC
896 PERLCCFLAGS
897 PERLLD
898 PERLLDFLAGS
899 PERL_CC
900 PERL_MAKE_OPTIONS
901 COMP_PERL
902 PERL_VERSION
903 RUBY
904 RUBY_MAKE_OPTIONS
905 COMP_RUBY
906 BUILD_TCL_TRUE
907 BUILD_TCL_FALSE
908 BUILD_TCL_SITE_TRUE
909 BUILD_TCL_SITE_FALSE
910 TCL_PREFIX
911 TCL_SHLIB_CFLAGS
912 TCL_SHLIB_LD
913 TCL_SHLIB_SUFFIX
914 TCL_PACKAGE_PATH
915 TCL_LD_SEARCH_FLAGS
916 TCL_STUB_LIB_SPEC
917 TCL_VERSION
918 TCL_PACKAGE_DIR
919 PYTHON
920 PYTHON_VERSION
921 PYTHON_PREFIX
922 PYTHON_EXEC_PREFIX
923 PYTHON_PLATFORM
924 pythondir
925 pkgpythondir
926 pyexecdir
927 pkgpyexecdir
928 PYTHON_INCLUDES
929 COMP_PYTHON
930 NROFF
931 TROFF
932 RRDDOCDIR
933 LIBOBJS
934 LTLIBOBJS'
935 ac_subst_files=''
936       ac_precious_vars='build_alias
937 host_alias
938 target_alias
939 RRDGRAPH_YLEGEND_ANGLE
940 CC
941 CFLAGS
942 LDFLAGS
943 LIBS
944 CPPFLAGS
945 CPP
946 CXX
947 CXXFLAGS
948 CCC
949 CXXCPP
950 F77
951 FFLAGS
952 PERLCC
953 PERLCCFLAGS
954 PERLLD
955 PERLLDFLAGS
956 RRDDOCDIR'
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 # The variables have the same names as the options, with
963 # dashes changed to underlines.
964 cache_file=/dev/null
965 exec_prefix=NONE
966 no_create=
967 no_recursion=
968 prefix=NONE
969 program_prefix=NONE
970 program_suffix=NONE
971 program_transform_name=s,x,x,
972 silent=
973 site=
974 srcdir=
975 verbose=
976 x_includes=NONE
977 x_libraries=NONE
979 # Installation directory options.
980 # These are left unexpanded so users can "make install exec_prefix=/foo"
981 # and all the variables that are supposed to be based on exec_prefix
982 # by default will actually change.
983 # Use braces instead of parens because sh, perl, etc. also accept them.
984 # (The list follows the same order as the GNU Coding Standards.)
985 bindir='${exec_prefix}/bin'
986 sbindir='${exec_prefix}/sbin'
987 libexecdir='${exec_prefix}/libexec'
988 datarootdir='${prefix}/share'
989 datadir='${datarootdir}'
990 sysconfdir='${prefix}/etc'
991 sharedstatedir='${prefix}/com'
992 localstatedir='${prefix}/var'
993 includedir='${prefix}/include'
994 oldincludedir='/usr/include'
995 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
996 infodir='${datarootdir}/info'
997 htmldir='${docdir}'
998 dvidir='${docdir}'
999 pdfdir='${docdir}'
1000 psdir='${docdir}'
1001 libdir='${exec_prefix}/lib'
1002 localedir='${datarootdir}/locale'
1003 mandir='${datarootdir}/man'
1005 ac_prev=
1006 ac_dashdash=
1007 for ac_option
1008 do
1009   # If the previous option needs an argument, assign it.
1010   if test -n "$ac_prev"; then
1011     eval $ac_prev=\$ac_option
1012     ac_prev=
1013     continue
1014   fi
1016   case $ac_option in
1017   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018   *)    ac_optarg=yes ;;
1019   esac
1021   # Accept the important Cygnus configure options, so we can diagnose typos.
1023   case $ac_dashdash$ac_option in
1024   --)
1025     ac_dashdash=yes ;;
1027   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028     ac_prev=bindir ;;
1029   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030     bindir=$ac_optarg ;;
1032   -build | --build | --buil | --bui | --bu)
1033     ac_prev=build_alias ;;
1034   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035     build_alias=$ac_optarg ;;
1037   -cache-file | --cache-file | --cache-fil | --cache-fi \
1038   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039     ac_prev=cache_file ;;
1040   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042     cache_file=$ac_optarg ;;
1044   --config-cache | -C)
1045     cache_file=config.cache ;;
1047   -datadir | --datadir | --datadi | --datad)
1048     ac_prev=datadir ;;
1049   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1050     datadir=$ac_optarg ;;
1052   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053   | --dataroo | --dataro | --datar)
1054     ac_prev=datarootdir ;;
1055   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057     datarootdir=$ac_optarg ;;
1059   -disable-* | --disable-*)
1060     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1064    { (exit 1); exit 1; }; }
1065     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1066     eval enable_$ac_feature=no ;;
1068   -docdir | --docdir | --docdi | --doc | --do)
1069     ac_prev=docdir ;;
1070   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071     docdir=$ac_optarg ;;
1073   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074     ac_prev=dvidir ;;
1075   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076     dvidir=$ac_optarg ;;
1078   -enable-* | --enable-*)
1079     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080     # Reject names that are not valid shell variable names.
1081     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1082       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1083    { (exit 1); exit 1; }; }
1084     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1085     eval enable_$ac_feature=\$ac_optarg ;;
1087   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089   | --exec | --exe | --ex)
1090     ac_prev=exec_prefix ;;
1091   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093   | --exec=* | --exe=* | --ex=*)
1094     exec_prefix=$ac_optarg ;;
1096   -gas | --gas | --ga | --g)
1097     # Obsolete; use --with-gas.
1098     with_gas=yes ;;
1100   -help | --help | --hel | --he | -h)
1101     ac_init_help=long ;;
1102   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103     ac_init_help=recursive ;;
1104   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105     ac_init_help=short ;;
1107   -host | --host | --hos | --ho)
1108     ac_prev=host_alias ;;
1109   -host=* | --host=* | --hos=* | --ho=*)
1110     host_alias=$ac_optarg ;;
1112   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113     ac_prev=htmldir ;;
1114   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115   | --ht=*)
1116     htmldir=$ac_optarg ;;
1118   -includedir | --includedir | --includedi | --included | --include \
1119   | --includ | --inclu | --incl | --inc)
1120     ac_prev=includedir ;;
1121   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122   | --includ=* | --inclu=* | --incl=* | --inc=*)
1123     includedir=$ac_optarg ;;
1125   -infodir | --infodir | --infodi | --infod | --info | --inf)
1126     ac_prev=infodir ;;
1127   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128     infodir=$ac_optarg ;;
1130   -libdir | --libdir | --libdi | --libd)
1131     ac_prev=libdir ;;
1132   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133     libdir=$ac_optarg ;;
1135   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136   | --libexe | --libex | --libe)
1137     ac_prev=libexecdir ;;
1138   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139   | --libexe=* | --libex=* | --libe=*)
1140     libexecdir=$ac_optarg ;;
1142   -localedir | --localedir | --localedi | --localed | --locale)
1143     ac_prev=localedir ;;
1144   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145     localedir=$ac_optarg ;;
1147   -localstatedir | --localstatedir | --localstatedi | --localstated \
1148   | --localstate | --localstat | --localsta | --localst | --locals)
1149     ac_prev=localstatedir ;;
1150   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152     localstatedir=$ac_optarg ;;
1154   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155     ac_prev=mandir ;;
1156   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157     mandir=$ac_optarg ;;
1159   -nfp | --nfp | --nf)
1160     # Obsolete; use --without-fp.
1161     with_fp=no ;;
1163   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164   | --no-cr | --no-c | -n)
1165     no_create=yes ;;
1167   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169     no_recursion=yes ;;
1171   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173   | --oldin | --oldi | --old | --ol | --o)
1174     ac_prev=oldincludedir ;;
1175   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178     oldincludedir=$ac_optarg ;;
1180   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181     ac_prev=prefix ;;
1182   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183     prefix=$ac_optarg ;;
1185   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186   | --program-pre | --program-pr | --program-p)
1187     ac_prev=program_prefix ;;
1188   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190     program_prefix=$ac_optarg ;;
1192   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193   | --program-suf | --program-su | --program-s)
1194     ac_prev=program_suffix ;;
1195   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197     program_suffix=$ac_optarg ;;
1199   -program-transform-name | --program-transform-name \
1200   | --program-transform-nam | --program-transform-na \
1201   | --program-transform-n | --program-transform- \
1202   | --program-transform | --program-transfor \
1203   | --program-transfo | --program-transf \
1204   | --program-trans | --program-tran \
1205   | --progr-tra | --program-tr | --program-t)
1206     ac_prev=program_transform_name ;;
1207   -program-transform-name=* | --program-transform-name=* \
1208   | --program-transform-nam=* | --program-transform-na=* \
1209   | --program-transform-n=* | --program-transform-=* \
1210   | --program-transform=* | --program-transfor=* \
1211   | --program-transfo=* | --program-transf=* \
1212   | --program-trans=* | --program-tran=* \
1213   | --progr-tra=* | --program-tr=* | --program-t=*)
1214     program_transform_name=$ac_optarg ;;
1216   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217     ac_prev=pdfdir ;;
1218   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219     pdfdir=$ac_optarg ;;
1221   -psdir | --psdir | --psdi | --psd | --ps)
1222     ac_prev=psdir ;;
1223   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224     psdir=$ac_optarg ;;
1226   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227   | -silent | --silent | --silen | --sile | --sil)
1228     silent=yes ;;
1230   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231     ac_prev=sbindir ;;
1232   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233   | --sbi=* | --sb=*)
1234     sbindir=$ac_optarg ;;
1236   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238   | --sharedst | --shareds | --shared | --share | --shar \
1239   | --sha | --sh)
1240     ac_prev=sharedstatedir ;;
1241   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244   | --sha=* | --sh=*)
1245     sharedstatedir=$ac_optarg ;;
1247   -site | --site | --sit)
1248     ac_prev=site ;;
1249   -site=* | --site=* | --sit=*)
1250     site=$ac_optarg ;;
1252   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253     ac_prev=srcdir ;;
1254   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255     srcdir=$ac_optarg ;;
1257   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258   | --syscon | --sysco | --sysc | --sys | --sy)
1259     ac_prev=sysconfdir ;;
1260   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262     sysconfdir=$ac_optarg ;;
1264   -target | --target | --targe | --targ | --tar | --ta | --t)
1265     ac_prev=target_alias ;;
1266   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267     target_alias=$ac_optarg ;;
1269   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270     verbose=yes ;;
1272   -version | --version | --versio | --versi | --vers | -V)
1273     ac_init_version=: ;;
1275   -with-* | --with-*)
1276     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277     # Reject names that are not valid shell variable names.
1278     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279       { echo "$as_me: error: invalid package name: $ac_package" >&2
1280    { (exit 1); exit 1; }; }
1281     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1282     eval with_$ac_package=\$ac_optarg ;;
1284   -without-* | --without-*)
1285     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286     # Reject names that are not valid shell variable names.
1287     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1288       { echo "$as_me: error: invalid package name: $ac_package" >&2
1289    { (exit 1); exit 1; }; }
1290     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1291     eval with_$ac_package=no ;;
1293   --x)
1294     # Obsolete; use --with-x.
1295     with_x=yes ;;
1297   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298   | --x-incl | --x-inc | --x-in | --x-i)
1299     ac_prev=x_includes ;;
1300   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302     x_includes=$ac_optarg ;;
1304   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306     ac_prev=x_libraries ;;
1307   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309     x_libraries=$ac_optarg ;;
1311   -*) { echo "$as_me: error: unrecognized option: $ac_option
1312 Try \`$0 --help' for more information." >&2
1313    { (exit 1); exit 1; }; }
1314     ;;
1316   *=*)
1317     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318     # Reject names that are not valid shell variable names.
1319     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1320       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1321    { (exit 1); exit 1; }; }
1322     eval $ac_envvar=\$ac_optarg
1323     export $ac_envvar ;;
1325   *)
1326     # FIXME: should be removed in autoconf 3.0.
1327     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1331     ;;
1333   esac
1334 done
1336 if test -n "$ac_prev"; then
1337   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338   { echo "$as_me: error: missing argument to $ac_option" >&2
1339    { (exit 1); exit 1; }; }
1340 fi
1342 # Be sure to have absolute directory names.
1343 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344                 datadir sysconfdir sharedstatedir localstatedir includedir \
1345                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346                 libdir localedir mandir
1347 do
1348   eval ac_val=\$$ac_var
1349   case $ac_val in
1350     [\\/$]* | ?:[\\/]* )  continue;;
1351     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1352   esac
1353   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1354    { (exit 1); exit 1; }; }
1355 done
1357 # There might be people who depend on the old broken behavior: `$host'
1358 # used to hold the argument of --host etc.
1359 # FIXME: To remove some day.
1360 build=$build_alias
1361 host=$host_alias
1362 target=$target_alias
1364 # FIXME: To remove some day.
1365 if test "x$host_alias" != x; then
1366   if test "x$build_alias" = x; then
1367     cross_compiling=maybe
1368     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369     If a cross compiler is detected then cross compile mode will be used." >&2
1370   elif test "x$build_alias" != "x$host_alias"; then
1371     cross_compiling=yes
1372   fi
1373 fi
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378 test "$silent" = yes && exec 6>/dev/null
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384   { echo "$as_me: error: Working directory cannot be determined" >&2
1385    { (exit 1); exit 1; }; }
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387   { echo "$as_me: error: pwd does not report name of working directory" >&2
1388    { (exit 1); exit 1; }; }
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393   ac_srcdir_defaulted=yes
1394   # Try the directory containing this script, then the parent directory.
1395   ac_confdir=`$as_dirname -- "$0" ||
1396 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397          X"$0" : 'X\(//\)[^/]' \| \
1398          X"$0" : 'X\(//\)$' \| \
1399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1400 echo X"$0" |
1401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402             s//\1/
1403             q
1404           }
1405           /^X\(\/\/\)[^/].*/{
1406             s//\1/
1407             q
1408           }
1409           /^X\(\/\/\)$/{
1410             s//\1/
1411             q
1412           }
1413           /^X\(\/\).*/{
1414             s//\1/
1415             q
1416           }
1417           s/.*/./; q'`
1418   srcdir=$ac_confdir
1419   if test ! -r "$srcdir/$ac_unique_file"; then
1420     srcdir=..
1421   fi
1422 else
1423   ac_srcdir_defaulted=no
1424 fi
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1428    { (exit 1); exit 1; }; }
1429 fi
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 ac_abs_confdir=`(
1432         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1433    { (exit 1); exit 1; }; }
1434         pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437   srcdir=.
1438 fi
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_env_${ac_var}_value=\$${ac_var}
1448   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456   # Omit some internal or obsolete options to make the list less imposing.
1457   # This message is too long to be a string in the A/UX 3.1 sh.
1458   cat <<_ACEOF
1459 \`configure' configures rrdtool 1.2.28 to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE.  See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1468 Configuration:
1469   -h, --help              display this help and exit
1470       --help=short        display options specific to this package
1471       --help=recursive    display the short help of all the included packages
1472   -V, --version           display version information and exit
1473   -q, --quiet, --silent   do not print \`checking...' messages
1474       --cache-file=FILE   cache test results in FILE [disabled]
1475   -C, --config-cache      alias for \`--cache-file=config.cache'
1476   -n, --no-create         do not create output files
1477       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480   --prefix=PREFIX         install architecture-independent files in PREFIX
1481                           [$ac_default_prefix]
1482   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1483                           [PREFIX]
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493   --bindir=DIR           user executables [EPREFIX/bin]
1494   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1495   --libexecdir=DIR       program executables [EPREFIX/libexec]
1496   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1497   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1498   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1499   --libdir=DIR           object code libraries [EPREFIX/lib]
1500   --includedir=DIR       C header files [PREFIX/include]
1501   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1502   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1503   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1504   --infodir=DIR          info documentation [DATAROOTDIR/info]
1505   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1506   --mandir=DIR           man documentation [DATAROOTDIR/man]
1507   --docdir=DIR           documentation root [DATAROOTDIR/doc/rrdtool]
1508   --htmldir=DIR          html documentation [DOCDIR]
1509   --dvidir=DIR           dvi documentation [DOCDIR]
1510   --pdfdir=DIR           pdf documentation [DOCDIR]
1511   --psdir=DIR            ps documentation [DOCDIR]
1512 _ACEOF
1514   cat <<\_ACEOF
1516 Program names:
1517   --program-prefix=PREFIX            prepend PREFIX to installed program names
1518   --program-suffix=SUFFIX            append SUFFIX to installed program names
1519   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1521 System types:
1522   --build=BUILD     configure for building on BUILD [guessed]
1523   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1524   --target=TARGET   configure for building compilers for TARGET [HOST]
1525 _ACEOF
1526 fi
1528 if test -n "$ac_init_help"; then
1529   case $ac_init_help in
1530      short | recursive ) echo "Configuration of rrdtool 1.2.28:";;
1531    esac
1532   cat <<\_ACEOF
1534 Optional Features:
1535   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1536   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1537   --disable-rrdcgi        disable building of rrdcgi
1538   --disable-mmap          disable mmap in rrd_update, use seek+write instead
1539   --disable-pthread       disable multithread support
1540   --disable-dependency-tracking  speeds up one-time build
1541   --enable-dependency-tracking   do not reject slow dependency extractors
1542   --enable-shared[=PKGS]  build shared libraries [default=yes]
1543   --enable-static[=PKGS]  build static libraries [default=yes]
1544   --enable-fast-install[=PKGS]
1545                           optimize for fast installation [default=yes]
1546   --disable-libtool-lock  avoid locking (might break parallel builds)
1547   --disable-perl          do not build the perl modules
1548   --enable-perl-site-install   by default the rrdtool perl modules are installed
1549                           together with rrdtool in $prefix/lib/perl. You have to
1550                           put a 'use lib qw($prefix/lib/perl)' into your scripts
1551                           when you want to use them. When you set this option
1552                           the perl modules will get installed wherever
1553                           your perl setup thinks it is best.
1554   --disable-ruby          do not build the ruby modules
1555   --enable-ruby-site-install   by default the rrdtool ruby modules are installed
1556                           together with rrdtool in $prefix/lib/ruby. You have to
1557                           add $prefix/lib/ruby/$ruby_version/$sitearch to you $: variable
1558                           for ruby to find the RRD.so file.
1559   --disable-tcl           do not build the tcl modules
1560   --enable-tcl-site        install the tcl extension in the tcl tree
1561   --disable-python        do not build the python modules
1563 Optional Packages:
1564   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1565   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1566   --with-rrd-default-font=OPTIONS  set the full path to your default font.
1567   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1568   --with-pic              try to use only PIC/non-PIC objects [default=use
1569                           both]
1570   --with-tags[=TAGS]      include additional configurations [automatic]
1571   --with-perl-options=OPTIONS  options to pass on command-line when
1572                           generating Makefile from Makefile.PL. If you set this
1573                           option, interesting things may happen unless you know
1574                           what you are doing!
1575   --with-ruby-options=OPTIONS  options to pass on command-line when
1576                           generating Makefile from extconf.rb. If you set this
1577                           option, interesting things may happen unless you know
1578                           what you are doing!
1579   --with-tcllib=DIR       location of the tclConfig.sh
1581 Some influential environment variables:
1582   RRDGRAPH_YLEGEND_ANGLE
1583               Vertical label angle: 90.0 (default) or 270.0
1584   CC          C compiler command
1585   CFLAGS      C compiler flags
1586   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587               nonstandard directory <lib dir>
1588   LIBS        libraries to pass to the linker, e.g. -l<library>
1589   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590               you have headers in a nonstandard directory <include dir>
1591   CPP         C preprocessor
1592   CXX         C++ compiler command
1593   CXXFLAGS    C++ compiler flags
1594   CXXCPP      C++ preprocessor
1595   F77         Fortran 77 compiler command
1596   FFLAGS      Fortran 77 compiler flags
1597   PERLCC      [] C compiler for Perl modules
1598   PERLCCFLAGS [] CC flags for Perl modules
1599   PERLLD      [same], [as], [PERLCC] Linker for Perl modules
1600   PERLLDFLAGS [] LD flags for Perl modules
1601   RRDDOCDIR   [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1606 _ACEOF
1607 ac_status=$?
1608 fi
1610 if test "$ac_init_help" = "recursive"; then
1611   # If there are subdirs, report their specific --help.
1612   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613     test -d "$ac_dir" || continue
1614     ac_builddir=.
1616 case "$ac_dir" in
1617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *)
1619   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1620   # A ".." for each directory in $ac_dir_suffix.
1621   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1622   case $ac_top_builddir_sub in
1623   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625   esac ;;
1626 esac
1627 ac_abs_top_builddir=$ac_pwd
1628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629 # for backward compatibility:
1630 ac_top_builddir=$ac_top_build_prefix
1632 case $srcdir in
1633   .)  # We are building in place.
1634     ac_srcdir=.
1635     ac_top_srcdir=$ac_top_builddir_sub
1636     ac_abs_top_srcdir=$ac_pwd ;;
1637   [\\/]* | ?:[\\/]* )  # Absolute name.
1638     ac_srcdir=$srcdir$ac_dir_suffix;
1639     ac_top_srcdir=$srcdir
1640     ac_abs_top_srcdir=$srcdir ;;
1641   *) # Relative name.
1642     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643     ac_top_srcdir=$ac_top_build_prefix$srcdir
1644     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 esac
1646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1648     cd "$ac_dir" || { ac_status=$?; continue; }
1649     # Check for guested configure.
1650     if test -f "$ac_srcdir/configure.gnu"; then
1651       echo &&
1652       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653     elif test -f "$ac_srcdir/configure"; then
1654       echo &&
1655       $SHELL "$ac_srcdir/configure" --help=recursive
1656     else
1657       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658     fi || ac_status=$?
1659     cd "$ac_pwd" || { ac_status=$?; break; }
1660   done
1661 fi
1663 test -n "$ac_init_help" && exit $ac_status
1664 if $ac_init_version; then
1665   cat <<\_ACEOF
1666 rrdtool configure 1.2.28
1667 generated by GNU Autoconf 2.61
1669 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1670 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1671 This configure script is free software; the Free Software Foundation
1672 gives unlimited permission to copy, distribute and modify it.
1673 _ACEOF
1674   exit
1675 fi
1676 cat >config.log <<_ACEOF
1677 This file contains any messages produced by compilers while
1678 running configure, to aid debugging if configure makes a mistake.
1680 It was created by rrdtool $as_me 1.2.28, which was
1681 generated by GNU Autoconf 2.61.  Invocation command line was
1683   $ $0 $@
1685 _ACEOF
1686 exec 5>>config.log
1688 cat <<_ASUNAME
1689 ## --------- ##
1690 ## Platform. ##
1691 ## --------- ##
1693 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1694 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1695 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1696 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1697 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1699 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1700 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1702 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1703 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1704 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1705 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1706 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1707 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1708 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1710 _ASUNAME
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   echo "PATH: $as_dir"
1718 done
1719 IFS=$as_save_IFS
1721 } >&5
1723 cat >&5 <<_ACEOF
1726 ## ----------- ##
1727 ## Core tests. ##
1728 ## ----------- ##
1730 _ACEOF
1733 # Keep a trace of the command line.
1734 # Strip out --no-create and --no-recursion so they do not pile up.
1735 # Strip out --silent because we don't want to record it for future runs.
1736 # Also quote any args containing shell meta-characters.
1737 # Make two passes to allow for proper duplicate-argument suppression.
1738 ac_configure_args=
1739 ac_configure_args0=
1740 ac_configure_args1=
1741 ac_must_keep_next=false
1742 for ac_pass in 1 2
1743 do
1744   for ac_arg
1745   do
1746     case $ac_arg in
1747     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1748     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1749     | -silent | --silent | --silen | --sile | --sil)
1750       continue ;;
1751     *\'*)
1752       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1753     esac
1754     case $ac_pass in
1755     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1756     2)
1757       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1758       if test $ac_must_keep_next = true; then
1759         ac_must_keep_next=false # Got value, back to normal.
1760       else
1761         case $ac_arg in
1762           *=* | --config-cache | -C | -disable-* | --disable-* \
1763           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1764           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1765           | -with-* | --with-* | -without-* | --without-* | --x)
1766             case "$ac_configure_args0 " in
1767               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1768             esac
1769             ;;
1770           -* ) ac_must_keep_next=true ;;
1771         esac
1772       fi
1773       ac_configure_args="$ac_configure_args '$ac_arg'"
1774       ;;
1775     esac
1776   done
1777 done
1778 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1779 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1781 # When interrupted or exit'd, cleanup temporary files, and complete
1782 # config.log.  We remove comments because anyway the quotes in there
1783 # would cause problems or look ugly.
1784 # WARNING: Use '\'' to represent an apostrophe within the trap.
1785 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1786 trap 'exit_status=$?
1787   # Save into config.log some information that might help in debugging.
1788   {
1789     echo
1791     cat <<\_ASBOX
1792 ## ---------------- ##
1793 ## Cache variables. ##
1794 ## ---------------- ##
1795 _ASBOX
1796     echo
1797     # The following way of writing the cache mishandles newlines in values,
1799   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1800     eval ac_val=\$$ac_var
1801     case $ac_val in #(
1802     *${as_nl}*)
1803       case $ac_var in #(
1804       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1805 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1806       esac
1807       case $ac_var in #(
1808       _ | IFS | as_nl) ;; #(
1809       *) $as_unset $ac_var ;;
1810       esac ;;
1811     esac
1812   done
1813   (set) 2>&1 |
1814     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815     *${as_nl}ac_space=\ *)
1816       sed -n \
1817         "s/'\''/'\''\\\\'\'''\''/g;
1818           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819       ;; #(
1820     *)
1821       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1822       ;;
1823     esac |
1824     sort
1826     echo
1828     cat <<\_ASBOX
1829 ## ----------------- ##
1830 ## Output variables. ##
1831 ## ----------------- ##
1832 _ASBOX
1833     echo
1834     for ac_var in $ac_subst_vars
1835     do
1836       eval ac_val=\$$ac_var
1837       case $ac_val in
1838       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839       esac
1840       echo "$ac_var='\''$ac_val'\''"
1841     done | sort
1842     echo
1844     if test -n "$ac_subst_files"; then
1845       cat <<\_ASBOX
1846 ## ------------------- ##
1847 ## File substitutions. ##
1848 ## ------------------- ##
1849 _ASBOX
1850       echo
1851       for ac_var in $ac_subst_files
1852       do
1853         eval ac_val=\$$ac_var
1854         case $ac_val in
1855         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856         esac
1857         echo "$ac_var='\''$ac_val'\''"
1858       done | sort
1859       echo
1860     fi
1862     if test -s confdefs.h; then
1863       cat <<\_ASBOX
1864 ## ----------- ##
1865 ## confdefs.h. ##
1866 ## ----------- ##
1867 _ASBOX
1868       echo
1869       cat confdefs.h
1870       echo
1871     fi
1872     test "$ac_signal" != 0 &&
1873       echo "$as_me: caught signal $ac_signal"
1874     echo "$as_me: exit $exit_status"
1875   } >&5
1876   rm -f core *.core core.conftest.* &&
1877     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878     exit $exit_status
1879 ' 0
1880 for ac_signal in 1 2 13 15; do
1881   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882 done
1883 ac_signal=0
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1888 # Predefined preprocessor variables.
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_NAME "$PACKAGE_NAME"
1892 _ACEOF
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897 _ACEOF
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1902 _ACEOF
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_STRING "$PACKAGE_STRING"
1907 _ACEOF
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912 _ACEOF
1915 # Let the site file select an alternate cache file if it wants to.
1916 # Prefer explicitly selected file to automatically selected ones.
1917 if test -n "$CONFIG_SITE"; then
1918   set x "$CONFIG_SITE"
1919 elif test "x$prefix" != xNONE; then
1920   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1921 else
1922   set x "$ac_default_prefix/share/config.site" \
1923         "$ac_default_prefix/etc/config.site"
1924 fi
1925 shift
1926 for ac_site_file
1927 do
1928   if test -r "$ac_site_file"; then
1929     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1930 echo "$as_me: loading site script $ac_site_file" >&6;}
1931     sed 's/^/| /' "$ac_site_file" >&5
1932     . "$ac_site_file"
1933   fi
1934 done
1936 if test -r "$cache_file"; then
1937   # Some versions of bash will fail to source /dev/null (special
1938   # files actually), so we avoid doing that.
1939   if test -f "$cache_file"; then
1940     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1941 echo "$as_me: loading cache $cache_file" >&6;}
1942     case $cache_file in
1943       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1944       *)                      . "./$cache_file";;
1945     esac
1946   fi
1947 else
1948   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1949 echo "$as_me: creating cache $cache_file" >&6;}
1950   >$cache_file
1951 fi
1953 # Check that the precious variables saved in the cache have kept the same
1954 # value.
1955 ac_cache_corrupted=false
1956 for ac_var in $ac_precious_vars; do
1957   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1958   eval ac_new_set=\$ac_env_${ac_var}_set
1959   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1960   eval ac_new_val=\$ac_env_${ac_var}_value
1961   case $ac_old_set,$ac_new_set in
1962     set,)
1963       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1964 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1965       ac_cache_corrupted=: ;;
1966     ,set)
1967       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1968 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1969       ac_cache_corrupted=: ;;
1970     ,);;
1971     *)
1972       if test "x$ac_old_val" != "x$ac_new_val"; then
1973         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1976 echo "$as_me:   former value:  $ac_old_val" >&2;}
1977         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1978 echo "$as_me:   current value: $ac_new_val" >&2;}
1979         ac_cache_corrupted=:
1980       fi;;
1981   esac
1982   # Pass precious variables to config.status.
1983   if test "$ac_new_set" = set; then
1984     case $ac_new_val in
1985     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1986     *) ac_arg=$ac_var=$ac_new_val ;;
1987     esac
1988     case " $ac_configure_args " in
1989       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1990       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1991     esac
1992   fi
1993 done
1994 if $ac_cache_corrupted; then
1995   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1996 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1997   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1998 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1999    { (exit 1); exit 1; }; }
2000 fi
2026 ac_ext=c
2027 ac_cpp='$CPP $CPPFLAGS'
2028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 NUMVERS=1.2028
2035 ac_aux_dir=
2036 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2037   if test -f "$ac_dir/install-sh"; then
2038     ac_aux_dir=$ac_dir
2039     ac_install_sh="$ac_aux_dir/install-sh -c"
2040     break
2041   elif test -f "$ac_dir/install.sh"; then
2042     ac_aux_dir=$ac_dir
2043     ac_install_sh="$ac_aux_dir/install.sh -c"
2044     break
2045   elif test -f "$ac_dir/shtool"; then
2046     ac_aux_dir=$ac_dir
2047     ac_install_sh="$ac_aux_dir/shtool install -c"
2048     break
2049   fi
2050 done
2051 if test -z "$ac_aux_dir"; then
2052   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2053 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2054    { (exit 1); exit 1; }; }
2055 fi
2057 # These three variables are undocumented and unsupported,
2058 # and are intended to be withdrawn in a future Autoconf release.
2059 # They can cause serious problems if a builder's source tree is in a directory
2060 # whose full name contains unusual characters.
2061 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2062 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2063 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2066 # Make sure we can run config.sub.
2067 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2068   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2069 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2070    { (exit 1); exit 1; }; }
2072 { echo "$as_me:$LINENO: checking build system type" >&5
2073 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2074 if test "${ac_cv_build+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   ac_build_alias=$build_alias
2078 test "x$ac_build_alias" = x &&
2079   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2080 test "x$ac_build_alias" = x &&
2081   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2082 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2083    { (exit 1); exit 1; }; }
2084 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2085   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2086 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2087    { (exit 1); exit 1; }; }
2089 fi
2090 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2091 echo "${ECHO_T}$ac_cv_build" >&6; }
2092 case $ac_cv_build in
2093 *-*-*) ;;
2094 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2095 echo "$as_me: error: invalid value of canonical build" >&2;}
2096    { (exit 1); exit 1; }; };;
2097 esac
2098 build=$ac_cv_build
2099 ac_save_IFS=$IFS; IFS='-'
2100 set x $ac_cv_build
2101 shift
2102 build_cpu=$1
2103 build_vendor=$2
2104 shift; shift
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2107 build_os=$*
2108 IFS=$ac_save_IFS
2109 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2112 { echo "$as_me:$LINENO: checking host system type" >&5
2113 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2114 if test "${ac_cv_host+set}" = set; then
2115   echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117   if test "x$host_alias" = x; then
2118   ac_cv_host=$ac_cv_build
2119 else
2120   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2121     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2122 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2123    { (exit 1); exit 1; }; }
2124 fi
2126 fi
2127 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2128 echo "${ECHO_T}$ac_cv_host" >&6; }
2129 case $ac_cv_host in
2130 *-*-*) ;;
2131 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2132 echo "$as_me: error: invalid value of canonical host" >&2;}
2133    { (exit 1); exit 1; }; };;
2134 esac
2135 host=$ac_cv_host
2136 ac_save_IFS=$IFS; IFS='-'
2137 set x $ac_cv_host
2138 shift
2139 host_cpu=$1
2140 host_vendor=$2
2141 shift; shift
2142 # Remember, the first character of IFS is used to create $*,
2143 # except with old shells:
2144 host_os=$*
2145 IFS=$ac_save_IFS
2146 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2149 { echo "$as_me:$LINENO: checking target system type" >&5
2150 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_target+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   if test "x$target_alias" = x; then
2155   ac_cv_target=$ac_cv_host
2156 else
2157   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2158     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2159 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2160    { (exit 1); exit 1; }; }
2161 fi
2163 fi
2164 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2165 echo "${ECHO_T}$ac_cv_target" >&6; }
2166 case $ac_cv_target in
2167 *-*-*) ;;
2168 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2169 echo "$as_me: error: invalid value of canonical target" >&2;}
2170    { (exit 1); exit 1; }; };;
2171 esac
2172 target=$ac_cv_target
2173 ac_save_IFS=$IFS; IFS='-'
2174 set x $ac_cv_target
2175 shift
2176 target_cpu=$1
2177 target_vendor=$2
2178 shift; shift
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2181 target_os=$*
2182 IFS=$ac_save_IFS
2183 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2186 # The aliases save the names the user supplied, while $host etc.
2187 # will get canonicalized.
2188 test -n "$target_alias" &&
2189   test "$program_prefix$program_suffix$program_transform_name" = \
2190     NONENONEs,x,x, &&
2191   program_prefix=${target_alias}-
2192 am__api_version="1.9"
2193 # Find a good install program.  We prefer a C program (faster),
2194 # so one script is as good as another.  But avoid the broken or
2195 # incompatible versions:
2196 # SysV /etc/install, /usr/sbin/install
2197 # SunOS /usr/etc/install
2198 # IRIX /sbin/install
2199 # AIX /bin/install
2200 # AmigaOS /C/install, which installs bootblocks on floppy discs
2201 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2202 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2203 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2204 # OS/2's system install, which has a completely different semantic
2205 # ./install, which can be erroneously created by make from ./install.sh.
2206 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2207 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2208 if test -z "$INSTALL"; then
2209 if test "${ac_cv_path_install+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215   IFS=$as_save_IFS
2216   test -z "$as_dir" && as_dir=.
2217   # Account for people who put trailing slashes in PATH elements.
2218 case $as_dir/ in
2219   ./ | .// | /cC/* | \
2220   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2221   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2222   /usr/ucb/* ) ;;
2223   *)
2224     # OSF1 and SCO ODT 3.0 have their own names for install.
2225     # Don't use installbsd from OSF since it installs stuff as root
2226     # by default.
2227     for ac_prog in ginstall scoinst install; do
2228       for ac_exec_ext in '' $ac_executable_extensions; do
2229         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2230           if test $ac_prog = install &&
2231             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2232             # AIX install.  It has an incompatible calling convention.
2233             :
2234           elif test $ac_prog = install &&
2235             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2236             # program-specific install script used by HP pwplus--don't use.
2237             :
2238           else
2239             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2240             break 3
2241           fi
2242         fi
2243       done
2244     done
2245     ;;
2246 esac
2247 done
2248 IFS=$as_save_IFS
2251 fi
2252   if test "${ac_cv_path_install+set}" = set; then
2253     INSTALL=$ac_cv_path_install
2254   else
2255     # As a last resort, use the slow shell script.  Don't cache a
2256     # value for INSTALL within a source directory, because that will
2257     # break other packages using the cache if that directory is
2258     # removed, or if the value is a relative name.
2259     INSTALL=$ac_install_sh
2260   fi
2261 fi
2262 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2263 echo "${ECHO_T}$INSTALL" >&6; }
2265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2266 # It thinks the first close brace ends the variable substitution.
2267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2273 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2274 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2275 # Just in case
2276 sleep 1
2277 echo timestamp > conftest.file
2278 # Do `set' in a subshell so we don't clobber the current shell's
2279 # arguments.  Must try -L first in case configure is actually a
2280 # symlink; some systems play weird games with the mod time of symlinks
2281 # (eg FreeBSD returns the mod time of the symlink's containing
2282 # directory).
2283 if (
2284    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2285    if test "$*" = "X"; then
2286       # -L didn't work.
2287       set X `ls -t $srcdir/configure conftest.file`
2288    fi
2289    rm -f conftest.file
2290    if test "$*" != "X $srcdir/configure conftest.file" \
2291       && test "$*" != "X conftest.file $srcdir/configure"; then
2293       # If neither matched, then we have a broken ls.  This can happen
2294       # if, for instance, CONFIG_SHELL is bash and it inherits a
2295       # broken ls alias from the environment.  This has actually
2296       # happened.  Such a system could not be considered "sane".
2297       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2298 alias in your environment" >&5
2299 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2300 alias in your environment" >&2;}
2301    { (exit 1); exit 1; }; }
2302    fi
2304    test "$2" = conftest.file
2305    )
2306 then
2307    # Ok.
2308    :
2309 else
2310    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2311 Check your system clock" >&5
2312 echo "$as_me: error: newly created file is older than distributed files!
2313 Check your system clock" >&2;}
2314    { (exit 1); exit 1; }; }
2315 fi
2316 { echo "$as_me:$LINENO: result: yes" >&5
2317 echo "${ECHO_T}yes" >&6; }
2318 test "$program_prefix" != NONE &&
2319   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2320 # Use a double $ so make ignores it.
2321 test "$program_suffix" != NONE &&
2322   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2323 # Double any \ or $.  echo might interpret backslashes.
2324 # By default was `s,x,x', remove it if useless.
2325 cat <<\_ACEOF >conftest.sed
2326 s/[\\$]/&&/g;s/;s,x,x,$//
2327 _ACEOF
2328 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2329 rm -f conftest.sed
2331 # expand $ac_aux_dir to an absolute path
2332 am_aux_dir=`cd $ac_aux_dir && pwd`
2334 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2335 # Use eval to expand $SHELL
2336 if eval "$MISSING --run true"; then
2337   am_missing_run="$MISSING --run "
2338 else
2339   am_missing_run=
2340   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2341 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2342 fi
2344 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2345   # We used to keeping the `.' as first argument, in order to
2346   # allow $(mkdir_p) to be used without argument.  As in
2347   #   $(mkdir_p) $(somedir)
2348   # where $(somedir) is conditionally defined.  However this is wrong
2349   # for two reasons:
2350   #  1. if the package is installed by a user who cannot write `.'
2351   #     make install will fail,
2352   #  2. the above comment should most certainly read
2353   #     $(mkdir_p) $(DESTDIR)$(somedir)
2354   #     so it does not work when $(somedir) is undefined and
2355   #     $(DESTDIR) is not.
2356   #  To support the latter case, we have to write
2357   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2358   #  so the `.' trick is pointless.
2359   mkdir_p='mkdir -p --'
2360 else
2361   # On NextStep and OpenStep, the `mkdir' command does not
2362   # recognize any option.  It will interpret all options as
2363   # directories to create, and then abort because `.' already
2364   # exists.
2365   for d in ./-p ./--version;
2366   do
2367     test -d $d && rmdir $d
2368   done
2369   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2370   if test -f "$ac_aux_dir/mkinstalldirs"; then
2371     mkdir_p='$(mkinstalldirs)'
2372   else
2373     mkdir_p='$(install_sh) -d'
2374   fi
2375 fi
2377 for ac_prog in gawk mawk nawk awk
2378 do
2379   # Extract the first word of "$ac_prog", so it can be a program name with args.
2380 set dummy $ac_prog; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_AWK+set}" = set; then
2384   echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386   if test -n "$AWK"; then
2387   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2388 else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394   for ac_exec_ext in '' $ac_executable_extensions; do
2395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396     ac_cv_prog_AWK="$ac_prog"
2397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398     break 2
2399   fi
2400 done
2401 done
2402 IFS=$as_save_IFS
2404 fi
2405 fi
2406 AWK=$ac_cv_prog_AWK
2407 if test -n "$AWK"; then
2408   { echo "$as_me:$LINENO: result: $AWK" >&5
2409 echo "${ECHO_T}$AWK" >&6; }
2410 else
2411   { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2413 fi
2416   test -n "$AWK" && break
2417 done
2419 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2420 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2421 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2422 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2423   echo $ECHO_N "(cached) $ECHO_C" >&6
2424 else
2425   cat >conftest.make <<\_ACEOF
2426 SHELL = /bin/sh
2427 all:
2428         @echo '@@@%%%=$(MAKE)=@@@%%%'
2429 _ACEOF
2430 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2431 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2432   *@@@%%%=?*=@@@%%%*)
2433     eval ac_cv_prog_make_${ac_make}_set=yes;;
2434   *)
2435     eval ac_cv_prog_make_${ac_make}_set=no;;
2436 esac
2437 rm -f conftest.make
2438 fi
2439 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2440   { echo "$as_me:$LINENO: result: yes" >&5
2441 echo "${ECHO_T}yes" >&6; }
2442   SET_MAKE=
2443 else
2444   { echo "$as_me:$LINENO: result: no" >&5
2445 echo "${ECHO_T}no" >&6; }
2446   SET_MAKE="MAKE=${MAKE-make}"
2447 fi
2449 rm -rf .tst 2>/dev/null
2450 mkdir .tst 2>/dev/null
2451 if test -d .tst; then
2452   am__leading_dot=.
2453 else
2454   am__leading_dot=_
2455 fi
2456 rmdir .tst 2>/dev/null
2458 # test to see if srcdir already configured
2459 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2460    test -f $srcdir/config.status; then
2461   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2462 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2463    { (exit 1); exit 1; }; }
2464 fi
2466 # test whether we have cygpath
2467 if test -z "$CYGPATH_W"; then
2468   if (cygpath --version) >/dev/null 2>/dev/null; then
2469     CYGPATH_W='cygpath -w'
2470   else
2471     CYGPATH_W=echo
2472   fi
2473 fi
2476 # Define the identity of the package.
2477  PACKAGE='rrdtool'
2478  VERSION='1.2.28'
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE "$PACKAGE"
2483 _ACEOF
2486 cat >>confdefs.h <<_ACEOF
2487 #define VERSION "$VERSION"
2488 _ACEOF
2490 # Some tools Automake needs.
2492 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2495 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2498 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2501 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2504 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2506 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2508 # Installed binaries are usually stripped using `strip' when the user
2509 # run `make install-strip'.  However `strip' might not be the right
2510 # tool to use in cross-compilation environments, therefore Automake
2511 # will honor the `STRIP' environment variable to overrule this program.
2512 if test "$cross_compiling" != no; then
2513   if test -n "$ac_tool_prefix"; then
2514   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2515 set dummy ${ac_tool_prefix}strip; ac_word=$2
2516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2518 if test "${ac_cv_prog_STRIP+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   if test -n "$STRIP"; then
2522   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529   for ac_exec_ext in '' $ac_executable_extensions; do
2530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533     break 2
2534   fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2539 fi
2540 fi
2541 STRIP=$ac_cv_prog_STRIP
2542 if test -n "$STRIP"; then
2543   { echo "$as_me:$LINENO: result: $STRIP" >&5
2544 echo "${ECHO_T}$STRIP" >&6; }
2545 else
2546   { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2548 fi
2551 fi
2552 if test -z "$ac_cv_prog_STRIP"; then
2553   ac_ct_STRIP=$STRIP
2554   # Extract the first word of "strip", so it can be a program name with args.
2555 set dummy strip; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2559   echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561   if test -n "$ac_ct_STRIP"; then
2562   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567   IFS=$as_save_IFS
2568   test -z "$as_dir" && as_dir=.
2569   for ac_exec_ext in '' $ac_executable_extensions; do
2570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571     ac_cv_prog_ac_ct_STRIP="strip"
2572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573     break 2
2574   fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2579 fi
2580 fi
2581 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2582 if test -n "$ac_ct_STRIP"; then
2583   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2584 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2585 else
2586   { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2588 fi
2590   if test "x$ac_ct_STRIP" = x; then
2591     STRIP=":"
2592   else
2593     case $cross_compiling:$ac_tool_warned in
2594 yes:)
2595 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2596 whose name does not start with the host triplet.  If you think this
2597 configuration is useful to you, please write to autoconf@gnu.org." >&5
2598 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2599 whose name does not start with the host triplet.  If you think this
2600 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2601 ac_tool_warned=yes ;;
2602 esac
2603     STRIP=$ac_ct_STRIP
2604   fi
2605 else
2606   STRIP="$ac_cv_prog_STRIP"
2607 fi
2609 fi
2610 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2612 # We need awk for the "check" target.  The system "awk" is bad on
2613 # some platforms.
2614 # Always define AMTAR for backward compatibility.
2616 AMTAR=${AMTAR-"${am_missing_run}tar"}
2618 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2624 ac_config_headers="$ac_config_headers rrd_config.h"
2646 cat >>confdefs.h <<_ACEOF
2647 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
2648 _ACEOF
2651 # Check whether --enable-rrdcgi was given.
2652 if test "${enable_rrdcgi+set}" = set; then
2653   enableval=$enable_rrdcgi;
2654 else
2655   enable_rrdcgi=yes
2656 fi
2660 # Check whether --with-rrd-default-font was given.
2661 if test "${with_rrd_default_font+set}" = set; then
2662   withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
2663 else
2665   if test -d ${WINDIR:-nodir}/cour.ttf ; then
2666         RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
2667   else
2668         RRD_DEFAULT_FONT='$(fontsdir)/$(fonts_DATA)'
2669   fi
2671 fi
2674 # Check whether --enable-mmap was given.
2675 if test "${enable_mmap+set}" = set; then
2676   enableval=$enable_mmap;
2677 else
2678   enable_mmap=yes
2679 fi
2683  # Check whether --enable-pthread was given.
2684 if test "${enable_pthread+set}" = set; then
2685   enableval=$enable_pthread;
2686 else
2687   enable_pthread=yes
2688 fi
2694 case $TERM in
2695        #   for the most important terminal types we directly know the sequences
2696        xterm|xterm*|vt220|vt220*)
2697                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2698                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2699        ;;
2700        vt100|vt100*|cygwin)
2701                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
2702                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
2703        ;;
2704        *)
2705                T_MD=''
2706                T_ME=''
2707        ;;
2708 esac
2709   { echo "$as_me:$LINENO: result: " >&5
2710 echo "${ECHO_T}" >&6; }
2711   { echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
2712 echo "${ECHO_T}${T_MD}Audit Compilation Environment${T_ME}" >&6; }
2716 ac_ext=c
2717 ac_cpp='$CPP $CPPFLAGS'
2718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 if test -n "$ac_tool_prefix"; then
2722   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2726 if test "${ac_cv_prog_CC+set}" = set; then
2727   echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729   if test -n "$CC"; then
2730   ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737   for ac_exec_ext in '' $ac_executable_extensions; do
2738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2740     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744 done
2745 IFS=$as_save_IFS
2747 fi
2748 fi
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751   { echo "$as_me:$LINENO: result: $CC" >&5
2752 echo "${ECHO_T}$CC" >&6; }
2753 else
2754   { echo "$as_me:$LINENO: result: no" >&5
2755 echo "${ECHO_T}no" >&6; }
2756 fi
2759 fi
2760 if test -z "$ac_cv_prog_CC"; then
2761   ac_ct_CC=$CC
2762   # Extract the first word of "gcc", so it can be a program name with args.
2763 set dummy gcc; ac_word=$2
2764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2766 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2767   echo $ECHO_N "(cached) $ECHO_C" >&6
2768 else
2769   if test -n "$ac_ct_CC"; then
2770   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775   IFS=$as_save_IFS
2776   test -z "$as_dir" && as_dir=.
2777   for ac_exec_ext in '' $ac_executable_extensions; do
2778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779     ac_cv_prog_ac_ct_CC="gcc"
2780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781     break 2
2782   fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2787 fi
2788 fi
2789 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2790 if test -n "$ac_ct_CC"; then
2791   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2792 echo "${ECHO_T}$ac_ct_CC" >&6; }
2793 else
2794   { echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6; }
2796 fi
2798   if test "x$ac_ct_CC" = x; then
2799     CC=""
2800   else
2801     case $cross_compiling:$ac_tool_warned in
2802 yes:)
2803 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2804 whose name does not start with the host triplet.  If you think this
2805 configuration is useful to you, please write to autoconf@gnu.org." >&5
2806 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2807 whose name does not start with the host triplet.  If you think this
2808 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2809 ac_tool_warned=yes ;;
2810 esac
2811     CC=$ac_ct_CC
2812   fi
2813 else
2814   CC="$ac_cv_prog_CC"
2815 fi
2817 if test -z "$CC"; then
2818           if test -n "$ac_tool_prefix"; then
2819     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2820 set dummy ${ac_tool_prefix}cc; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_CC+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   if test -n "$CC"; then
2827   ac_cv_prog_CC="$CC" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832   IFS=$as_save_IFS
2833   test -z "$as_dir" && as_dir=.
2834   for ac_exec_ext in '' $ac_executable_extensions; do
2835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2836     ac_cv_prog_CC="${ac_tool_prefix}cc"
2837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838     break 2
2839   fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2844 fi
2845 fi
2846 CC=$ac_cv_prog_CC
2847 if test -n "$CC"; then
2848   { echo "$as_me:$LINENO: result: $CC" >&5
2849 echo "${ECHO_T}$CC" >&6; }
2850 else
2851   { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2853 fi
2856   fi
2857 fi
2858 if test -z "$CC"; then
2859   # Extract the first word of "cc", so it can be a program name with args.
2860 set dummy cc; ac_word=$2
2861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_CC+set}" = set; then
2864   echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866   if test -n "$CC"; then
2867   ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869   ac_prog_rejected=no
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875   for ac_exec_ext in '' $ac_executable_extensions; do
2876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2878        ac_prog_rejected=yes
2879        continue
2880      fi
2881     ac_cv_prog_CC="cc"
2882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883     break 2
2884   fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2889 if test $ac_prog_rejected = yes; then
2890   # We found a bogon in the path, so make sure we never use it.
2891   set dummy $ac_cv_prog_CC
2892   shift
2893   if test $# != 0; then
2894     # We chose a different compiler from the bogus one.
2895     # However, it has the same basename, so the bogon will be chosen
2896     # first if we set CC to just the basename; use the full file name.
2897     shift
2898     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2899   fi
2900 fi
2901 fi
2902 fi
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905   { echo "$as_me:$LINENO: result: $CC" >&5
2906 echo "${ECHO_T}$CC" >&6; }
2907 else
2908   { echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6; }
2910 fi
2913 fi
2914 if test -z "$CC"; then
2915   if test -n "$ac_tool_prefix"; then
2916   for ac_prog in cl.exe
2917   do
2918     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2922 if test "${ac_cv_prog_CC+set}" = set; then
2923   echo $ECHO_N "(cached) $ECHO_C" >&6
2924 else
2925   if test -n "$CC"; then
2926   ac_cv_prog_CC="$CC" # Let the user override the test.
2927 else
2928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 for as_dir in $PATH
2930 do
2931   IFS=$as_save_IFS
2932   test -z "$as_dir" && as_dir=.
2933   for ac_exec_ext in '' $ac_executable_extensions; do
2934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937     break 2
2938   fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2943 fi
2944 fi
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947   { echo "$as_me:$LINENO: result: $CC" >&5
2948 echo "${ECHO_T}$CC" >&6; }
2949 else
2950   { echo "$as_me:$LINENO: result: no" >&5
2951 echo "${ECHO_T}no" >&6; }
2952 fi
2955     test -n "$CC" && break
2956   done
2957 fi
2958 if test -z "$CC"; then
2959   ac_ct_CC=$CC
2960   for ac_prog in cl.exe
2961 do
2962   # Extract the first word of "$ac_prog", so it can be a program name with args.
2963 set dummy $ac_prog; ac_word=$2
2964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2967   echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969   if test -n "$ac_ct_CC"; then
2970   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977   for ac_exec_ext in '' $ac_executable_extensions; do
2978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979     ac_cv_prog_ac_ct_CC="$ac_prog"
2980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2987 fi
2988 fi
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2992 echo "${ECHO_T}$ac_ct_CC" >&6; }
2993 else
2994   { echo "$as_me:$LINENO: result: no" >&5
2995 echo "${ECHO_T}no" >&6; }
2996 fi
2999   test -n "$ac_ct_CC" && break
3000 done
3002   if test "x$ac_ct_CC" = x; then
3003     CC=""
3004   else
3005     case $cross_compiling:$ac_tool_warned in
3006 yes:)
3007 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3008 whose name does not start with the host triplet.  If you think this
3009 configuration is useful to you, please write to autoconf@gnu.org." >&5
3010 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3011 whose name does not start with the host triplet.  If you think this
3012 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3013 ac_tool_warned=yes ;;
3014 esac
3015     CC=$ac_ct_CC
3016   fi
3017 fi
3019 fi
3022 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&5
3024 echo "$as_me: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&2;}
3026    { (exit 1); exit 1; }; }
3028 # Provide some information about the compiler.
3029 echo "$as_me:$LINENO: checking for C compiler version" >&5
3030 ac_compiler=`set X $ac_compile; echo $2`
3031 { (ac_try="$ac_compiler --version >&5"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037   (eval "$ac_compiler --version >&5") 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }
3041 { (ac_try="$ac_compiler -v >&5"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_compiler -v >&5") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }
3051 { (ac_try="$ac_compiler -V >&5"
3052 case "(($ac_try" in
3053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054   *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057   (eval "$ac_compiler -V >&5") 2>&5
3058   ac_status=$?
3059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060   (exit $ac_status); }
3062 cat >conftest.$ac_ext <<_ACEOF
3063 /* confdefs.h.  */
3064 _ACEOF
3065 cat confdefs.h >>conftest.$ac_ext
3066 cat >>conftest.$ac_ext <<_ACEOF
3067 /* end confdefs.h.  */
3069 int
3070 main ()
3073   ;
3074   return 0;
3076 _ACEOF
3077 ac_clean_files_save=$ac_clean_files
3078 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3079 # Try to create an executable without -o first, disregard a.out.
3080 # It will help us diagnose broken compilers, and finding out an intuition
3081 # of exeext.
3082 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3083 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3084 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3086 # List of possible output files, starting from the most likely.
3087 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3088 # only as a last resort.  b.out is created by i960 compilers.
3089 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3091 # The IRIX 6 linker writes into existing files which may not be
3092 # executable, retaining their permissions.  Remove them first so a
3093 # subsequent execution test works.
3094 ac_rmfiles=
3095 for ac_file in $ac_files
3096 do
3097   case $ac_file in
3098     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3099     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3100   esac
3101 done
3102 rm -f $ac_rmfiles
3104 if { (ac_try="$ac_link_default"
3105 case "(($ac_try" in
3106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107   *) ac_try_echo=$ac_try;;
3108 esac
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110   (eval "$ac_link_default") 2>&5
3111   ac_status=$?
3112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113   (exit $ac_status); }; then
3114   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3115 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3116 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3117 # so that the user can short-circuit this test for compilers unknown to
3118 # Autoconf.
3119 for ac_file in $ac_files ''
3120 do
3121   test -f "$ac_file" || continue
3122   case $ac_file in
3123     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3124         ;;
3125     [ab].out )
3126         # We found the default executable, but exeext='' is most
3127         # certainly right.
3128         break;;
3129     *.* )
3130         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3131         then :; else
3132            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3133         fi
3134         # We set ac_cv_exeext here because the later test for it is not
3135         # safe: cross compilers may not add the suffix if given an `-o'
3136         # argument, so we may need to know it at that point already.
3137         # Even if this section looks crufty: it has the advantage of
3138         # actually working.
3139         break;;
3140     * )
3141         break;;
3142   esac
3143 done
3144 test "$ac_cv_exeext" = no && ac_cv_exeext=
3146 else
3147   ac_file=''
3148 fi
3150 { echo "$as_me:$LINENO: result: $ac_file" >&5
3151 echo "${ECHO_T}$ac_file" >&6; }
3152 if test -z "$ac_file"; then
3153   echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: C compiler cannot create executables
3159 See \`config.log' for more details." >&2;}
3160    { (exit 77); exit 77; }; }
3161 fi
3163 ac_exeext=$ac_cv_exeext
3165 # Check that the compiler produces executables we can run.  If not, either
3166 # the compiler is broken, or we cross compile.
3167 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3168 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3169 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3170 # If not cross compiling, check that we can run a simple program.
3171 if test "$cross_compiling" != yes; then
3172   if { ac_try='./$ac_file'
3173   { (case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_try") 2>&5
3179   ac_status=$?
3180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181   (exit $ac_status); }; }; then
3182     cross_compiling=no
3183   else
3184     if test "$cross_compiling" = maybe; then
3185         cross_compiling=yes
3186     else
3187         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details." >&5
3190 echo "$as_me: error: cannot run C compiled programs.
3191 If you meant to cross compile, use \`--host'.
3192 See \`config.log' for more details." >&2;}
3193    { (exit 1); exit 1; }; }
3194     fi
3195   fi
3196 fi
3197 { echo "$as_me:$LINENO: result: yes" >&5
3198 echo "${ECHO_T}yes" >&6; }
3200 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3201 ac_clean_files=$ac_clean_files_save
3202 # Check that the compiler produces executables we can run.  If not, either
3203 # the compiler is broken, or we cross compile.
3204 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3205 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3206 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3207 echo "${ECHO_T}$cross_compiling" >&6; }
3209 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3210 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3211 if { (ac_try="$ac_link"
3212 case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217   (eval "$ac_link") 2>&5
3218   ac_status=$?
3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); }; then
3221   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3222 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3223 # work properly (i.e., refer to `conftest.exe'), while it won't with
3224 # `rm'.
3225 for ac_file in conftest.exe conftest conftest.*; do
3226   test -f "$ac_file" || continue
3227   case $ac_file in
3228     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3229     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230           break;;
3231     * ) break;;
3232   esac
3233 done
3234 else
3235   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." >&5
3237 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3238 See \`config.log' for more details." >&2;}
3239    { (exit 1); exit 1; }; }
3240 fi
3242 rm -f conftest$ac_cv_exeext
3243 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3244 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3250 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3251 if test "${ac_cv_objext+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   cat >conftest.$ac_ext <<_ACEOF
3255 /* confdefs.h.  */
3256 _ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h.  */
3261 int
3262 main ()
3265   ;
3266   return 0;
3268 _ACEOF
3269 rm -f conftest.o conftest.obj
3270 if { (ac_try="$ac_compile"
3271 case "(($ac_try" in
3272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273   *) ac_try_echo=$ac_try;;
3274 esac
3275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276   (eval "$ac_compile") 2>&5
3277   ac_status=$?
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); }; then
3280   for ac_file in conftest.o conftest.obj conftest.*; do
3281   test -f "$ac_file" || continue;
3282   case $ac_file in
3283     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3284     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3285        break;;
3286   esac
3287 done
3288 else
3289   echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3292 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3293 See \`config.log' for more details." >&5
3294 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3295 See \`config.log' for more details." >&2;}
3296    { (exit 1); exit 1; }; }
3297 fi
3299 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3300 fi
3301 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3302 echo "${ECHO_T}$ac_cv_objext" >&6; }
3303 OBJEXT=$ac_cv_objext
3304 ac_objext=$OBJEXT
3305 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3306 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3307 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310   cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3317 int
3318 main ()
3320 #ifndef __GNUC__
3321        choke me
3322 #endif
3324   ;
3325   return 0;
3327 _ACEOF
3328 rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3330 case "(($ac_try" in
3331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332   *) ac_try_echo=$ac_try;;
3333 esac
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335   (eval "$ac_compile") 2>conftest.er1
3336   ac_status=$?
3337   grep -v '^ *+' conftest.er1 >conftest.err
3338   rm -f conftest.er1
3339   cat conftest.err >&5
3340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341   (exit $ac_status); } && {
3342          test -z "$ac_c_werror_flag" ||
3343          test ! -s conftest.err
3344        } && test -s conftest.$ac_objext; then
3345   ac_compiler_gnu=yes
3346 else
3347   echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350         ac_compiler_gnu=no
3351 fi
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3356 fi
3357 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3358 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3359 GCC=`test $ac_compiler_gnu = yes && echo yes`
3360 ac_test_CFLAGS=${CFLAGS+set}
3361 ac_save_CFLAGS=$CFLAGS
3362 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3363 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_cc_g+set}" = set; then
3365   echo $ECHO_N "(cached) $ECHO_C" >&6
3366 else
3367   ac_save_c_werror_flag=$ac_c_werror_flag
3368    ac_c_werror_flag=yes
3369    ac_cv_prog_cc_g=no
3370    CFLAGS="-g"
3371    cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h.  */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h.  */
3378 int
3379 main ()
3382   ;
3383   return 0;
3385 _ACEOF
3386 rm -f conftest.$ac_objext
3387 if { (ac_try="$ac_compile"
3388 case "(($ac_try" in
3389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390   *) ac_try_echo=$ac_try;;
3391 esac
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393   (eval "$ac_compile") 2>conftest.er1
3394   ac_status=$?
3395   grep -v '^ *+' conftest.er1 >conftest.err
3396   rm -f conftest.er1
3397   cat conftest.err >&5
3398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399   (exit $ac_status); } && {
3400          test -z "$ac_c_werror_flag" ||
3401          test ! -s conftest.err
3402        } && test -s conftest.$ac_objext; then
3403   ac_cv_prog_cc_g=yes
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408         CFLAGS=""
3409       cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h.  */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h.  */
3416 int
3417 main ()
3420   ;
3421   return 0;
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_compile") 2>conftest.er1
3432   ac_status=$?
3433   grep -v '^ *+' conftest.er1 >conftest.err
3434   rm -f conftest.er1
3435   cat conftest.err >&5
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); } && {
3438          test -z "$ac_c_werror_flag" ||
3439          test ! -s conftest.err
3440        } && test -s conftest.$ac_objext; then
3441   :
3442 else
3443   echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3446         ac_c_werror_flag=$ac_save_c_werror_flag
3447          CFLAGS="-g"
3448          cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h.  */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h.  */
3455 int
3456 main ()
3459   ;
3460   return 0;
3462 _ACEOF
3463 rm -f conftest.$ac_objext
3464 if { (ac_try="$ac_compile"
3465 case "(($ac_try" in
3466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3467   *) ac_try_echo=$ac_try;;
3468 esac
3469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3470   (eval "$ac_compile") 2>conftest.er1
3471   ac_status=$?
3472   grep -v '^ *+' conftest.er1 >conftest.err
3473   rm -f conftest.er1
3474   cat conftest.err >&5
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); } && {
3477          test -z "$ac_c_werror_flag" ||
3478          test ! -s conftest.err
3479        } && test -s conftest.$ac_objext; then
3480   ac_cv_prog_cc_g=yes
3481 else
3482   echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3486 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 fi
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 fi
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495    ac_c_werror_flag=$ac_save_c_werror_flag
3496 fi
3497 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3498 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3499 if test "$ac_test_CFLAGS" = set; then
3500   CFLAGS=$ac_save_CFLAGS
3501 elif test $ac_cv_prog_cc_g = yes; then
3502   if test "$GCC" = yes; then
3503     CFLAGS="-g -O2"
3504   else
3505     CFLAGS="-g"
3506   fi
3507 else
3508   if test "$GCC" = yes; then
3509     CFLAGS="-O2"
3510   else
3511     CFLAGS=
3512   fi
3513 fi
3514 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3515 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3516 if test "${ac_cv_prog_cc_c89+set}" = set; then
3517   echo $ECHO_N "(cached) $ECHO_C" >&6
3518 else
3519   ac_cv_prog_cc_c89=no
3520 ac_save_CC=$CC
3521 cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527 #include <stdarg.h>
3528 #include <stdio.h>
3529 #include <sys/types.h>
3530 #include <sys/stat.h>
3531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3532 struct buf { int x; };
3533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3534 static char *e (p, i)
3535      char **p;
3536      int i;
3538   return p[i];
3540 static char *f (char * (*g) (char **, int), char **p, ...)
3542   char *s;
3543   va_list v;
3544   va_start (v,p);
3545   s = g (p, va_arg (v,int));
3546   va_end (v);
3547   return s;
3550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3551    function prototypes and stuff, but not '\xHH' hex character constants.
3552    These don't provoke an error unfortunately, instead are silently treated
3553    as 'x'.  The following induces an error, until -std is added to get
3554    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3555    array size at least.  It's necessary to write '\x00'==0 to get something
3556    that's true only with -std.  */
3557 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3559 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3560    inside strings and character constants.  */
3561 #define FOO(x) 'x'
3562 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3564 int test (int i, double x);
3565 struct s1 {int (*f) (int a);};
3566 struct s2 {int (*f) (double a);};
3567 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3568 int argc;
3569 char **argv;
3570 int
3571 main ()
3573 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3574   ;
3575   return 0;
3577 _ACEOF
3578 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3579         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3580 do
3581   CC="$ac_save_CC $ac_arg"
3582   rm -f conftest.$ac_objext
3583 if { (ac_try="$ac_compile"
3584 case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589   (eval "$ac_compile") 2>conftest.er1
3590   ac_status=$?
3591   grep -v '^ *+' conftest.er1 >conftest.err
3592   rm -f conftest.er1
3593   cat conftest.err >&5
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); } && {
3596          test -z "$ac_c_werror_flag" ||
3597          test ! -s conftest.err
3598        } && test -s conftest.$ac_objext; then
3599   ac_cv_prog_cc_c89=$ac_arg
3600 else
3601   echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3605 fi
3607 rm -f core conftest.err conftest.$ac_objext
3608   test "x$ac_cv_prog_cc_c89" != "xno" && break
3609 done
3610 rm -f conftest.$ac_ext
3611 CC=$ac_save_CC
3613 fi
3614 # AC_CACHE_VAL
3615 case "x$ac_cv_prog_cc_c89" in
3616   x)
3617     { echo "$as_me:$LINENO: result: none needed" >&5
3618 echo "${ECHO_T}none needed" >&6; } ;;
3619   xno)
3620     { echo "$as_me:$LINENO: result: unsupported" >&5
3621 echo "${ECHO_T}unsupported" >&6; } ;;
3622   *)
3623     CC="$CC $ac_cv_prog_cc_c89"
3624     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3625 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3626 esac
3629 ac_ext=c
3630 ac_cpp='$CPP $CPPFLAGS'
3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 DEPDIR="${am__leading_dot}deps"
3636 ac_config_commands="$ac_config_commands depfiles"
3639 am_make=${MAKE-make}
3640 cat > confinc << 'END'
3641 am__doit:
3642         @echo done
3643 .PHONY: am__doit
3644 END
3645 # If we don't find an include directive, just comment out the code.
3646 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3647 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3648 am__include="#"
3649 am__quote=
3650 _am_result=none
3651 # First try GNU make style include.
3652 echo "include confinc" > confmf
3653 # We grep out `Entering directory' and `Leaving directory'
3654 # messages which can occur if `w' ends up in MAKEFLAGS.
3655 # In particular we don't look at `^make:' because GNU make might
3656 # be invoked under some other name (usually "gmake"), in which
3657 # case it prints its new name instead of `make'.
3658 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3659    am__include=include
3660    am__quote=
3661    _am_result=GNU
3662 fi
3663 # Now try BSD make style include.
3664 if test "$am__include" = "#"; then
3665    echo '.include "confinc"' > confmf
3666    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3667       am__include=.include
3668       am__quote="\""
3669       _am_result=BSD
3670    fi
3671 fi
3674 { echo "$as_me:$LINENO: result: $_am_result" >&5
3675 echo "${ECHO_T}$_am_result" >&6; }
3676 rm -f confinc confmf
3678 # Check whether --enable-dependency-tracking was given.
3679 if test "${enable_dependency_tracking+set}" = set; then
3680   enableval=$enable_dependency_tracking;
3681 fi
3683 if test "x$enable_dependency_tracking" != xno; then
3684   am_depcomp="$ac_aux_dir/depcomp"
3685   AMDEPBACKSLASH='\'
3686 fi
3689 if test "x$enable_dependency_tracking" != xno; then
3690   AMDEP_TRUE=
3691   AMDEP_FALSE='#'
3692 else
3693   AMDEP_TRUE='#'
3694   AMDEP_FALSE=
3695 fi
3700 depcc="$CC"   am_compiler_list=
3702 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3703 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3704 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3708   # We make a subdir and do the tests there.  Otherwise we can end up
3709   # making bogus files that we don't know about and never remove.  For
3710   # instance it was reported that on HP-UX the gcc test will end up
3711   # making a dummy file named `D' -- because `-MD' means `put the output
3712   # in D'.
3713   mkdir conftest.dir
3714   # Copy depcomp to subdir because otherwise we won't find it if we're
3715   # using a relative directory.
3716   cp "$am_depcomp" conftest.dir
3717   cd conftest.dir
3718   # We will build objects and dependencies in a subdirectory because
3719   # it helps to detect inapplicable dependency modes.  For instance
3720   # both Tru64's cc and ICC support -MD to output dependencies as a
3721   # side effect of compilation, but ICC will put the dependencies in
3722   # the current directory while Tru64 will put them in the object
3723   # directory.
3724   mkdir sub
3726   am_cv_CC_dependencies_compiler_type=none
3727   if test "$am_compiler_list" = ""; then
3728      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3729   fi
3730   for depmode in $am_compiler_list; do
3731     # Setup a source with many dependencies, because some compilers
3732     # like to wrap large dependency lists on column 80 (with \), and
3733     # we should not choose a depcomp mode which is confused by this.
3734     #
3735     # We need to recreate these files for each test, as the compiler may
3736     # overwrite some of them when testing with obscure command lines.
3737     # This happens at least with the AIX C compiler.
3738     : > sub/conftest.c
3739     for i in 1 2 3 4 5 6; do
3740       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3742       # Solaris 8's {/usr,}/bin/sh.
3743       touch sub/conftst$i.h
3744     done
3745     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3747     case $depmode in
3748     nosideeffect)
3749       # after this tag, mechanisms are not by side-effect, so they'll
3750       # only be used when explicitly requested
3751       if test "x$enable_dependency_tracking" = xyes; then
3752         continue
3753       else
3754         break
3755       fi
3756       ;;
3757     none) break ;;
3758     esac
3759     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3760     # mode.  It turns out that the SunPro C++ compiler does not properly
3761     # handle `-M -o', and we need to detect this.
3762     if depmode=$depmode \
3763        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3764        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3765        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3766          >/dev/null 2>conftest.err &&
3767        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3768        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3769        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3770       # icc doesn't choke on unknown options, it will just issue warnings
3771       # or remarks (even with -Werror).  So we grep stderr for any message
3772       # that says an option was ignored or not supported.
3773       # When given -MP, icc 7.0 and 7.1 complain thusly:
3774       #   icc: Command line warning: ignoring option '-M'; no argument required
3775       # The diagnosis changed in icc 8.0:
3776       #   icc: Command line remark: option '-MP' not supported
3777       if (grep 'ignoring option' conftest.err ||
3778           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3779         am_cv_CC_dependencies_compiler_type=$depmode
3780         break
3781       fi
3782     fi
3783   done
3785   cd ..
3786   rm -rf conftest.dir
3787 else
3788   am_cv_CC_dependencies_compiler_type=none
3789 fi
3791 fi
3792 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3793 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3794 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3798 if
3799   test "x$enable_dependency_tracking" != xno \
3800   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3801   am__fastdepCC_TRUE=
3802   am__fastdepCC_FALSE='#'
3803 else
3804   am__fastdepCC_TRUE='#'
3805   am__fastdepCC_FALSE=
3806 fi
3809 ac_ext=c
3810 ac_cpp='$CPP $CPPFLAGS'
3811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3815 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3816 # On Suns, sometimes $CPP names a directory.
3817 if test -n "$CPP" && test -d "$CPP"; then
3818   CPP=
3819 fi
3820 if test -z "$CPP"; then
3821   if test "${ac_cv_prog_CPP+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824       # Double quotes because CPP needs to be expanded
3825     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3826     do
3827       ac_preproc_ok=false
3828 for ac_c_preproc_warn_flag in '' yes
3829 do
3830   # Use a header file that comes with gcc, so configuring glibc
3831   # with a fresh cross-compiler works.
3832   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3833   # <limits.h> exists even on freestanding compilers.
3834   # On the NeXT, cc -E runs the code through the compiler's parser,
3835   # not just through cpp. "Syntax error" is here to catch this case.
3836   cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h.  */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h.  */
3842 #ifdef __STDC__
3843 # include <limits.h>
3844 #else
3845 # include <assert.h>
3846 #endif
3847                      Syntax error
3848 _ACEOF
3849 if { (ac_try="$ac_cpp conftest.$ac_ext"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3856   ac_status=$?
3857   grep -v '^ *+' conftest.er1 >conftest.err
3858   rm -f conftest.er1
3859   cat conftest.err >&5
3860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861   (exit $ac_status); } >/dev/null && {
3862          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3863          test ! -s conftest.err
3864        }; then
3865   :
3866 else
3867   echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870   # Broken: fails on valid input.
3871 continue
3872 fi
3874 rm -f conftest.err conftest.$ac_ext
3876   # OK, works on sane cases.  Now check whether nonexistent headers
3877   # can be detected and how.
3878   cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884 #include <ac_nonexistent.h>
3885 _ACEOF
3886 if { (ac_try="$ac_cpp conftest.$ac_ext"
3887 case "(($ac_try" in
3888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889   *) ac_try_echo=$ac_try;;
3890 esac
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3893   ac_status=$?
3894   grep -v '^ *+' conftest.er1 >conftest.err
3895   rm -f conftest.er1
3896   cat conftest.err >&5
3897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); } >/dev/null && {
3899          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3900          test ! -s conftest.err
3901        }; then
3902   # Broken: success on invalid input.
3903 continue
3904 else
3905   echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3908   # Passes both tests.
3909 ac_preproc_ok=:
3910 break
3911 fi
3913 rm -f conftest.err conftest.$ac_ext
3915 done
3916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917 rm -f conftest.err conftest.$ac_ext
3918 if $ac_preproc_ok; then
3919   break
3920 fi
3922     done
3923     ac_cv_prog_CPP=$CPP
3925 fi
3926   CPP=$ac_cv_prog_CPP
3927 else
3928   ac_cv_prog_CPP=$CPP
3929 fi
3930 { echo "$as_me:$LINENO: result: $CPP" >&5
3931 echo "${ECHO_T}$CPP" >&6; }
3932 ac_preproc_ok=false
3933 for ac_c_preproc_warn_flag in '' yes
3934 do
3935   # Use a header file that comes with gcc, so configuring glibc
3936   # with a fresh cross-compiler works.
3937   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938   # <limits.h> exists even on freestanding compilers.
3939   # On the NeXT, cc -E runs the code through the compiler's parser,
3940   # not just through cpp. "Syntax error" is here to catch this case.
3941   cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h.  */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h.  */
3947 #ifdef __STDC__
3948 # include <limits.h>
3949 #else
3950 # include <assert.h>
3951 #endif
3952                      Syntax error
3953 _ACEOF
3954 if { (ac_try="$ac_cpp conftest.$ac_ext"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3961   ac_status=$?
3962   grep -v '^ *+' conftest.er1 >conftest.err
3963   rm -f conftest.er1
3964   cat conftest.err >&5
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); } >/dev/null && {
3967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3968          test ! -s conftest.err
3969        }; then
3970   :
3971 else
3972   echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975   # Broken: fails on valid input.
3976 continue
3977 fi
3979 rm -f conftest.err conftest.$ac_ext
3981   # OK, works on sane cases.  Now check whether nonexistent headers
3982   # can be detected and how.
3983   cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h.  */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h.  */
3989 #include <ac_nonexistent.h>
3990 _ACEOF
3991 if { (ac_try="$ac_cpp conftest.$ac_ext"
3992 case "(($ac_try" in
3993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994   *) ac_try_echo=$ac_try;;
3995 esac
3996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3998   ac_status=$?
3999   grep -v '^ *+' conftest.er1 >conftest.err
4000   rm -f conftest.er1
4001   cat conftest.err >&5
4002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003   (exit $ac_status); } >/dev/null && {
4004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4005          test ! -s conftest.err
4006        }; then
4007   # Broken: success on invalid input.
4008 continue
4009 else
4010   echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4013   # Passes both tests.
4014 ac_preproc_ok=:
4015 break
4016 fi
4018 rm -f conftest.err conftest.$ac_ext
4020 done
4021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4022 rm -f conftest.err conftest.$ac_ext
4023 if $ac_preproc_ok; then
4024   :
4025 else
4026   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4027 See \`config.log' for more details." >&5
4028 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4029 See \`config.log' for more details." >&2;}
4030    { (exit 1); exit 1; }; }
4031 fi
4033 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039 # Check whether --enable-shared was given.
4040 if test "${enable_shared+set}" = set; then
4041   enableval=$enable_shared; p=${PACKAGE-default}
4042     case $enableval in
4043     yes) enable_shared=yes ;;
4044     no) enable_shared=no ;;
4045     *)
4046       enable_shared=no
4047       # Look at the argument we got.  We use all the common list separators.
4048       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4049       for pkg in $enableval; do
4050         IFS="$lt_save_ifs"
4051         if test "X$pkg" = "X$p"; then
4052           enable_shared=yes
4053         fi
4054       done
4055       IFS="$lt_save_ifs"
4056       ;;
4057     esac
4058 else
4059   enable_shared=yes
4060 fi
4063 # Check whether --enable-static was given.
4064 if test "${enable_static+set}" = set; then
4065   enableval=$enable_static; p=${PACKAGE-default}
4066     case $enableval in
4067     yes) enable_static=yes ;;
4068     no) enable_static=no ;;
4069     *)
4070      enable_static=no
4071       # Look at the argument we got.  We use all the common list separators.
4072       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4073       for pkg in $enableval; do
4074         IFS="$lt_save_ifs"
4075         if test "X$pkg" = "X$p"; then
4076           enable_static=yes
4077         fi
4078       done
4079       IFS="$lt_save_ifs"
4080       ;;
4081     esac
4082 else
4083   enable_static=yes
4084 fi
4087 # Check whether --enable-fast-install was given.
4088 if test "${enable_fast_install+set}" = set; then
4089   enableval=$enable_fast_install; p=${PACKAGE-default}
4090     case $enableval in
4091     yes) enable_fast_install=yes ;;
4092     no) enable_fast_install=no ;;
4093     *)
4094       enable_fast_install=no
4095       # Look at the argument we got.  We use all the common list separators.
4096       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4097       for pkg in $enableval; do
4098         IFS="$lt_save_ifs"
4099         if test "X$pkg" = "X$p"; then
4100           enable_fast_install=yes
4101         fi
4102       done
4103       IFS="$lt_save_ifs"
4104       ;;
4105     esac
4106 else
4107   enable_fast_install=yes
4108 fi
4111 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4112 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4113 if test "${lt_cv_path_SED+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   # Loop through the user's path and test for sed and gsed.
4117 # Then use that list of sed's as ones to test for truncation.
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4120 do
4121   IFS=$as_save_IFS
4122   test -z "$as_dir" && as_dir=.
4123   for lt_ac_prog in sed gsed; do
4124     for ac_exec_ext in '' $ac_executable_extensions; do
4125       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4126         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4127       fi
4128     done
4129   done
4130 done
4131 IFS=$as_save_IFS
4132 lt_ac_max=0
4133 lt_ac_count=0
4134 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4135 # along with /bin/sed that truncates output.
4136 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4137   test ! -f $lt_ac_sed && continue
4138   cat /dev/null > conftest.in
4139   lt_ac_count=0
4140   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4141   # Check for GNU sed and select it if it is found.
4142   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4143     lt_cv_path_SED=$lt_ac_sed
4144     break
4145   fi
4146   while true; do
4147     cat conftest.in conftest.in >conftest.tmp
4148     mv conftest.tmp conftest.in
4149     cp conftest.in conftest.nl
4150     echo >>conftest.nl
4151     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4152     cmp -s conftest.out conftest.nl || break
4153     # 10000 chars as input seems more than enough
4154     test $lt_ac_count -gt 10 && break
4155     lt_ac_count=`expr $lt_ac_count + 1`
4156     if test $lt_ac_count -gt $lt_ac_max; then
4157       lt_ac_max=$lt_ac_count
4158       lt_cv_path_SED=$lt_ac_sed
4159     fi
4160   done
4161 done
4163 fi
4165 SED=$lt_cv_path_SED
4167 { echo "$as_me:$LINENO: result: $SED" >&5
4168 echo "${ECHO_T}$SED" >&6; }
4170 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4171 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4172 if test "${ac_cv_path_GREP+set}" = set; then
4173   echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175   # Extract the first word of "grep ggrep" to use in msg output
4176 if test -z "$GREP"; then
4177 set dummy grep ggrep; ac_prog_name=$2
4178 if test "${ac_cv_path_GREP+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   ac_path_GREP_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4185 do
4186   IFS=$as_save_IFS
4187   test -z "$as_dir" && as_dir=.
4188   for ac_prog in grep ggrep; do
4189   for ac_exec_ext in '' $ac_executable_extensions; do
4190     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4191     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4192     # Check for GNU ac_path_GREP and select it if it is found.
4193   # Check for GNU $ac_path_GREP
4194 case `"$ac_path_GREP" --version 2>&1` in
4195 *GNU*)
4196   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4197 *)
4198   ac_count=0
4199   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4200   while :
4201   do
4202     cat "conftest.in" "conftest.in" >"conftest.tmp"
4203     mv "conftest.tmp" "conftest.in"
4204     cp "conftest.in" "conftest.nl"
4205     echo 'GREP' >> "conftest.nl"
4206     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208     ac_count=`expr $ac_count + 1`
4209     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4210       # Best one so far, save it but keep looking for a better one
4211       ac_cv_path_GREP="$ac_path_GREP"
4212       ac_path_GREP_max=$ac_count
4213     fi
4214     # 10*(2^10) chars as input seems more than enough
4215     test $ac_count -gt 10 && break
4216   done
4217   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4218 esac
4221     $ac_path_GREP_found && break 3
4222   done
4223 done
4225 done
4226 IFS=$as_save_IFS
4229 fi
4231 GREP="$ac_cv_path_GREP"
4232 if test -z "$GREP"; then
4233   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4234 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4235    { (exit 1); exit 1; }; }
4236 fi
4238 else
4239   ac_cv_path_GREP=$GREP
4240 fi
4243 fi
4244 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4245 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4246  GREP="$ac_cv_path_GREP"
4249 { echo "$as_me:$LINENO: checking for egrep" >&5
4250 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4251 if test "${ac_cv_path_EGREP+set}" = set; then
4252   echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4255    then ac_cv_path_EGREP="$GREP -E"
4256    else
4257      # Extract the first word of "egrep" to use in msg output
4258 if test -z "$EGREP"; then
4259 set dummy egrep; ac_prog_name=$2
4260 if test "${ac_cv_path_EGREP+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   ac_path_EGREP_found=false
4264 # Loop through the user's path and test for each of PROGNAME-LIST
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270   for ac_prog in egrep; do
4271   for ac_exec_ext in '' $ac_executable_extensions; do
4272     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4273     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4274     # Check for GNU ac_path_EGREP and select it if it is found.
4275   # Check for GNU $ac_path_EGREP
4276 case `"$ac_path_EGREP" --version 2>&1` in
4277 *GNU*)
4278   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4279 *)
4280   ac_count=0
4281   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4282   while :
4283   do
4284     cat "conftest.in" "conftest.in" >"conftest.tmp"
4285     mv "conftest.tmp" "conftest.in"
4286     cp "conftest.in" "conftest.nl"
4287     echo 'EGREP' >> "conftest.nl"
4288     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4290     ac_count=`expr $ac_count + 1`
4291     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4292       # Best one so far, save it but keep looking for a better one
4293       ac_cv_path_EGREP="$ac_path_EGREP"
4294       ac_path_EGREP_max=$ac_count
4295     fi
4296     # 10*(2^10) chars as input seems more than enough
4297     test $ac_count -gt 10 && break
4298   done
4299   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300 esac
4303     $ac_path_EGREP_found && break 3
4304   done
4305 done
4307 done
4308 IFS=$as_save_IFS
4311 fi
4313 EGREP="$ac_cv_path_EGREP"
4314 if test -z "$EGREP"; then
4315   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4316 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4317    { (exit 1); exit 1; }; }
4318 fi
4320 else
4321   ac_cv_path_EGREP=$EGREP
4322 fi
4325    fi
4326 fi
4327 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4328 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4329  EGREP="$ac_cv_path_EGREP"
4333 # Check whether --with-gnu-ld was given.
4334 if test "${with_gnu_ld+set}" = set; then
4335   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4336 else
4337   with_gnu_ld=no
4338 fi
4340 ac_prog=ld
4341 if test "$GCC" = yes; then
4342   # Check if gcc -print-prog-name=ld gives a path.
4343   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4344 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4345   case $host in
4346   *-*-mingw*)
4347     # gcc leaves a trailing carriage return which upsets mingw
4348     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4349   *)
4350     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4351   esac
4352   case $ac_prog in
4353     # Accept absolute paths.
4354     [\\/]* | ?:[\\/]*)
4355       re_direlt='/[^/][^/]*/\.\./'
4356       # Canonicalize the pathname of ld
4357       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4358       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4359         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4360       done
4361       test -z "$LD" && LD="$ac_prog"
4362       ;;
4363   "")
4364     # If it fails, then pretend we aren't using GCC.
4365     ac_prog=ld
4366     ;;
4367   *)
4368     # If it is relative, then search for the first ld in PATH.
4369     with_gnu_ld=unknown
4370     ;;
4371   esac
4372 elif test "$with_gnu_ld" = yes; then
4373   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4374 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4375 else
4376   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4377 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4378 fi
4379 if test "${lt_cv_path_LD+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   if test -z "$LD"; then
4383   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4384   for ac_dir in $PATH; do
4385     IFS="$lt_save_ifs"
4386     test -z "$ac_dir" && ac_dir=.
4387     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4388       lt_cv_path_LD="$ac_dir/$ac_prog"
4389       # Check to see if the program is GNU ld.  I'd rather use --version,
4390       # but apparently some variants of GNU ld only accept -v.
4391       # Break only if it was the GNU/non-GNU ld that we prefer.
4392       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4393       *GNU* | *'with BFD'*)
4394         test "$with_gnu_ld" != no && break
4395         ;;
4396       *)
4397         test "$with_gnu_ld" != yes && break
4398         ;;
4399       esac
4400     fi
4401   done
4402   IFS="$lt_save_ifs"
4403 else
4404   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4405 fi
4406 fi
4408 LD="$lt_cv_path_LD"
4409 if test -n "$LD"; then
4410   { echo "$as_me:$LINENO: result: $LD" >&5
4411 echo "${ECHO_T}$LD" >&6; }
4412 else
4413   { echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6; }
4415 fi
4416 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4417 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4418    { (exit 1); exit 1; }; }
4419 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4420 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4421 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4425 case `$LD -v 2>&1 </dev/null` in
4426 *GNU* | *'with BFD'*)
4427   lt_cv_prog_gnu_ld=yes
4428   ;;
4429 *)
4430   lt_cv_prog_gnu_ld=no
4431   ;;
4432 esac
4433 fi
4434 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4435 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4436 with_gnu_ld=$lt_cv_prog_gnu_ld
4439 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4440 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4441 if test "${lt_cv_ld_reload_flag+set}" = set; then
4442   echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444   lt_cv_ld_reload_flag='-r'
4445 fi
4446 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4447 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4448 reload_flag=$lt_cv_ld_reload_flag
4449 case $reload_flag in
4450 "" | " "*) ;;
4451 *) reload_flag=" $reload_flag" ;;
4452 esac
4453 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4454 case $host_os in
4455   darwin*)
4456     if test "$GCC" = yes; then
4457       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4458     else
4459       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4460     fi
4461     ;;
4462 esac
4464 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4465 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4466 if test "${lt_cv_path_NM+set}" = set; then
4467   echo $ECHO_N "(cached) $ECHO_C" >&6
4468 else
4469   if test -n "$NM"; then
4470   # Let the user override the test.
4471   lt_cv_path_NM="$NM"
4472 else
4473   lt_nm_to_check="${ac_tool_prefix}nm"
4474   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4475     lt_nm_to_check="$lt_nm_to_check nm"
4476   fi
4477   for lt_tmp_nm in $lt_nm_to_check; do
4478     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4479     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4480       IFS="$lt_save_ifs"
4481       test -z "$ac_dir" && ac_dir=.
4482       tmp_nm="$ac_dir/$lt_tmp_nm"
4483       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4484         # Check to see if the nm accepts a BSD-compat flag.
4485         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4486         #   nm: unknown option "B" ignored
4487         # Tru64's nm complains that /dev/null is an invalid object file
4488         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4489         */dev/null* | *'Invalid file or object type'*)
4490           lt_cv_path_NM="$tmp_nm -B"
4491           break
4492           ;;
4493         *)
4494           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4495           */dev/null*)
4496             lt_cv_path_NM="$tmp_nm -p"
4497             break
4498             ;;
4499           *)
4500             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4501             continue # so that we can try to find one that supports BSD flags
4502             ;;
4503           esac
4504           ;;
4505         esac
4506       fi
4507     done
4508     IFS="$lt_save_ifs"
4509   done
4510   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4511 fi
4512 fi
4513 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4514 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4515 NM="$lt_cv_path_NM"
4517 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4518 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4519 LN_S=$as_ln_s
4520 if test "$LN_S" = "ln -s"; then
4521   { echo "$as_me:$LINENO: result: yes" >&5
4522 echo "${ECHO_T}yes" >&6; }
4523 else
4524   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4525 echo "${ECHO_T}no, using $LN_S" >&6; }
4526 fi
4528 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4529 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4530 if test "${lt_cv_deplibs_check_method+set}" = set; then
4531   echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533   lt_cv_file_magic_cmd='$MAGIC_CMD'
4534 lt_cv_file_magic_test_file=
4535 lt_cv_deplibs_check_method='unknown'
4536 # Need to set the preceding variable on all platforms that support
4537 # interlibrary dependencies.
4538 # 'none' -- dependencies not supported.
4539 # `unknown' -- same as none, but documents that we really don't know.
4540 # 'pass_all' -- all dependencies passed with no checks.
4541 # 'test_compile' -- check by making test program.
4542 # 'file_magic [[regex]]' -- check by looking for files in library path
4543 # which responds to the $file_magic_cmd with a given extended regex.
4544 # If you have `file' or equivalent on your system and you're not sure
4545 # whether `pass_all' will *always* work, you probably want this one.
4547 case $host_os in
4548 aix[4-9]*)
4549   lt_cv_deplibs_check_method=pass_all
4550   ;;
4552 beos*)
4553   lt_cv_deplibs_check_method=pass_all
4554   ;;
4556 bsdi[45]*)
4557   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4558   lt_cv_file_magic_cmd='/usr/bin/file -L'
4559   lt_cv_file_magic_test_file=/shlib/libc.so
4560   ;;
4562 cygwin*)
4563   # func_win32_libid is a shell function defined in ltmain.sh
4564   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4565   lt_cv_file_magic_cmd='func_win32_libid'
4566   ;;
4568 mingw* | pw32*)
4569   # Base MSYS/MinGW do not provide the 'file' command needed by
4570   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4571   # unless we find 'file', for example because we are cross-compiling.
4572   if ( file / ) >/dev/null 2>&1; then
4573     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4574     lt_cv_file_magic_cmd='func_win32_libid'
4575   else
4576     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4577     lt_cv_file_magic_cmd='$OBJDUMP -f'
4578   fi
4579   ;;
4581 darwin* | rhapsody*)
4582   lt_cv_deplibs_check_method=pass_all
4583   ;;
4585 freebsd* | dragonfly*)
4586   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4587     case $host_cpu in
4588     i*86 )
4589       # Not sure whether the presence of OpenBSD here was a mistake.
4590       # Let's accept both of them until this is cleared up.
4591       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4592       lt_cv_file_magic_cmd=/usr/bin/file
4593       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4594       ;;
4595     esac
4596   else
4597     lt_cv_deplibs_check_method=pass_all
4598   fi
4599   ;;
4601 gnu*)
4602   lt_cv_deplibs_check_method=pass_all
4603   ;;
4605 hpux10.20* | hpux11*)
4606   lt_cv_file_magic_cmd=/usr/bin/file
4607   case $host_cpu in
4608   ia64*)
4609     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4610     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4611     ;;
4612   hppa*64*)
4613     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]'
4614     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4615     ;;
4616   *)
4617     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4618     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4619     ;;
4620   esac
4621   ;;
4623 interix[3-9]*)
4624   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4625   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4626   ;;
4628 irix5* | irix6* | nonstopux*)
4629   case $LD in
4630   *-32|*"-32 ") libmagic=32-bit;;
4631   *-n32|*"-n32 ") libmagic=N32;;
4632   *-64|*"-64 ") libmagic=64-bit;;
4633   *) libmagic=never-match;;
4634   esac
4635   lt_cv_deplibs_check_method=pass_all
4636   ;;
4638 # This must be Linux ELF.
4639 linux* | k*bsd*-gnu)
4640   lt_cv_deplibs_check_method=pass_all
4641   ;;
4643 netbsd* | netbsdelf*-gnu)
4644   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4645     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4646   else
4647     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4648   fi
4649   ;;
4651 newos6*)
4652   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4653   lt_cv_file_magic_cmd=/usr/bin/file
4654   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4655   ;;
4657 nto-qnx*)
4658   lt_cv_deplibs_check_method=unknown
4659   ;;
4661 openbsd*)
4662   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4663     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4664   else
4665     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4666   fi
4667   ;;
4669 osf3* | osf4* | osf5*)
4670   lt_cv_deplibs_check_method=pass_all
4671   ;;
4673 rdos*)
4674   lt_cv_deplibs_check_method=pass_all
4675   ;;
4677 solaris*)
4678   lt_cv_deplibs_check_method=pass_all
4679   ;;
4681 sysv4 | sysv4.3*)
4682   case $host_vendor in
4683   motorola)
4684     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]'
4685     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4686     ;;
4687   ncr)
4688     lt_cv_deplibs_check_method=pass_all
4689     ;;
4690   sequent)
4691     lt_cv_file_magic_cmd='/bin/file'
4692     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4693     ;;
4694   sni)
4695     lt_cv_file_magic_cmd='/bin/file'
4696     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4697     lt_cv_file_magic_test_file=/lib/libc.so
4698     ;;
4699   siemens)
4700     lt_cv_deplibs_check_method=pass_all
4701     ;;
4702   pc)
4703     lt_cv_deplibs_check_method=pass_all
4704     ;;
4705   esac
4706   ;;
4708 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4709   lt_cv_deplibs_check_method=pass_all
4710   ;;
4711 esac
4713 fi
4714 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4715 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4716 file_magic_cmd=$lt_cv_file_magic_cmd
4717 deplibs_check_method=$lt_cv_deplibs_check_method
4718 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4723 # If no C compiler was specified, use CC.
4724 LTCC=${LTCC-"$CC"}
4726 # If no C compiler flags were specified, use CFLAGS.
4727 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4729 # Allow CC to be a program name with arguments.
4730 compiler=$CC
4733 # Check whether --enable-libtool-lock was given.
4734 if test "${enable_libtool_lock+set}" = set; then
4735   enableval=$enable_libtool_lock;
4736 fi
4738 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4740 # Some flags need to be propagated to the compiler or linker for good
4741 # libtool support.
4742 case $host in
4743 ia64-*-hpux*)
4744   # Find out which ABI we are using.
4745   echo 'int i;' > conftest.$ac_ext
4746   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747   (eval $ac_compile) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; then
4751     case `/usr/bin/file conftest.$ac_objext` in
4752     *ELF-32*)
4753       HPUX_IA64_MODE="32"
4754       ;;
4755     *ELF-64*)
4756       HPUX_IA64_MODE="64"
4757       ;;
4758     esac
4759   fi
4760   rm -rf conftest*
4761   ;;
4762 *-*-irix6*)
4763   # Find out which ABI we are using.
4764   echo '#line 4764 "configure"' > conftest.$ac_ext
4765   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766   (eval $ac_compile) 2>&5
4767   ac_status=$?
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); }; then
4770    if test "$lt_cv_prog_gnu_ld" = yes; then
4771     case `/usr/bin/file conftest.$ac_objext` in
4772     *32-bit*)
4773       LD="${LD-ld} -melf32bsmip"
4774       ;;
4775     *N32*)
4776       LD="${LD-ld} -melf32bmipn32"
4777       ;;
4778     *64-bit*)
4779       LD="${LD-ld} -melf64bmip"
4780       ;;
4781     esac
4782    else
4783     case `/usr/bin/file conftest.$ac_objext` in
4784     *32-bit*)
4785       LD="${LD-ld} -32"
4786       ;;
4787     *N32*)
4788       LD="${LD-ld} -n32"
4789       ;;
4790     *64-bit*)
4791       LD="${LD-ld} -64"
4792       ;;
4793     esac
4794    fi
4795   fi
4796   rm -rf conftest*
4797   ;;
4799 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4800 s390*-*linux*|sparc*-*linux*)
4801   # Find out which ABI we are using.
4802   echo 'int i;' > conftest.$ac_ext
4803   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804   (eval $ac_compile) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; then
4808     case `/usr/bin/file conftest.o` in
4809     *32-bit*)
4810       case $host in
4811         x86_64-*kfreebsd*-gnu)
4812           LD="${LD-ld} -m elf_i386_fbsd"
4813           ;;
4814         x86_64-*linux*)
4815           LD="${LD-ld} -m elf_i386"
4816           ;;
4817         ppc64-*linux*|powerpc64-*linux*)
4818           LD="${LD-ld} -m elf32ppclinux"
4819           ;;
4820         s390x-*linux*)
4821           LD="${LD-ld} -m elf_s390"
4822           ;;
4823         sparc64-*linux*)
4824           LD="${LD-ld} -m elf32_sparc"
4825           ;;
4826       esac
4827       ;;
4828     *64-bit*)
4829       case $host in
4830         x86_64-*kfreebsd*-gnu)
4831           LD="${LD-ld} -m elf_x86_64_fbsd"
4832           ;;
4833         x86_64-*linux*)
4834           LD="${LD-ld} -m elf_x86_64"
4835           ;;
4836         ppc*-*linux*|powerpc*-*linux*)
4837           LD="${LD-ld} -m elf64ppc"
4838           ;;
4839         s390*-*linux*)
4840           LD="${LD-ld} -m elf64_s390"
4841           ;;
4842         sparc*-*linux*)
4843           LD="${LD-ld} -m elf64_sparc"
4844           ;;
4845       esac
4846       ;;
4847     esac
4848   fi
4849   rm -rf conftest*
4850   ;;
4852 *-*-sco3.2v5*)
4853   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4854   SAVE_CFLAGS="$CFLAGS"
4855   CFLAGS="$CFLAGS -belf"
4856   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4857 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4858 if test "${lt_cv_cc_needs_belf+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   ac_ext=c
4862 ac_cpp='$CPP $CPPFLAGS'
4863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867      cat >conftest.$ac_ext <<_ACEOF
4868 /* confdefs.h.  */
4869 _ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h.  */
4874 int
4875 main ()
4878   ;
4879   return 0;
4881 _ACEOF
4882 rm -f conftest.$ac_objext conftest$ac_exeext
4883 if { (ac_try="$ac_link"
4884 case "(($ac_try" in
4885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886   *) ac_try_echo=$ac_try;;
4887 esac
4888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889   (eval "$ac_link") 2>conftest.er1
4890   ac_status=$?
4891   grep -v '^ *+' conftest.er1 >conftest.err
4892   rm -f conftest.er1
4893   cat conftest.err >&5
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); } && {
4896          test -z "$ac_c_werror_flag" ||
4897          test ! -s conftest.err
4898        } && test -s conftest$ac_exeext &&
4899        $as_test_x conftest$ac_exeext; then
4900   lt_cv_cc_needs_belf=yes
4901 else
4902   echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4905         lt_cv_cc_needs_belf=no
4906 fi
4908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4909       conftest$ac_exeext conftest.$ac_ext
4910      ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916 fi
4917 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4918 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4919   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4920     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4921     CFLAGS="$SAVE_CFLAGS"
4922   fi
4923   ;;
4924 sparc*-*solaris*)
4925   # Find out which ABI we are using.
4926   echo 'int i;' > conftest.$ac_ext
4927   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928   (eval $ac_compile) 2>&5
4929   ac_status=$?
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); }; then
4932     case `/usr/bin/file conftest.o` in
4933     *64-bit*)
4934       case $lt_cv_prog_gnu_ld in
4935       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4936       *)
4937         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4938           LD="${LD-ld} -64"
4939         fi
4940         ;;
4941       esac
4942       ;;
4943     esac
4944   fi
4945   rm -rf conftest*
4946   ;;
4949 esac
4951 need_locks="$enable_libtool_lock"
4955 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4956 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4957 if test "${ac_cv_header_stdc+set}" = set; then
4958   echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960   cat >conftest.$ac_ext <<_ACEOF
4961 /* confdefs.h.  */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h.  */
4966 #include <stdlib.h>
4967 #include <stdarg.h>
4968 #include <string.h>
4969 #include <float.h>
4971 int
4972 main ()
4975   ;
4976   return 0;
4978 _ACEOF
4979 rm -f conftest.$ac_objext
4980 if { (ac_try="$ac_compile"
4981 case "(($ac_try" in
4982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983   *) ac_try_echo=$ac_try;;
4984 esac
4985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986   (eval "$ac_compile") 2>conftest.er1
4987   ac_status=$?
4988   grep -v '^ *+' conftest.er1 >conftest.err
4989   rm -f conftest.er1
4990   cat conftest.err >&5
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); } && {
4993          test -z "$ac_c_werror_flag" ||
4994          test ! -s conftest.err
4995        } && test -s conftest.$ac_objext; then
4996   ac_cv_header_stdc=yes
4997 else
4998   echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001         ac_cv_header_stdc=no
5002 fi
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 if test $ac_cv_header_stdc = yes; then
5007   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5008   cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h.  */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h.  */
5014 #include <string.h>
5016 _ACEOF
5017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5018   $EGREP "memchr" >/dev/null 2>&1; then
5019   :
5020 else
5021   ac_cv_header_stdc=no
5022 fi
5023 rm -f conftest*
5025 fi
5027 if test $ac_cv_header_stdc = yes; then
5028   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5029   cat >conftest.$ac_ext <<_ACEOF
5030 /* confdefs.h.  */
5031 _ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h.  */
5035 #include <stdlib.h>
5037 _ACEOF
5038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5039   $EGREP "free" >/dev/null 2>&1; then
5040   :
5041 else
5042   ac_cv_header_stdc=no
5043 fi
5044 rm -f conftest*
5046 fi
5048 if test $ac_cv_header_stdc = yes; then
5049   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5050   if test "$cross_compiling" = yes; then
5051   :
5052 else
5053   cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h.  */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h.  */
5059 #include <ctype.h>
5060 #include <stdlib.h>
5061 #if ((' ' & 0x0FF) == 0x020)
5062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5064 #else
5065 # define ISLOWER(c) \
5066                    (('a' <= (c) && (c) <= 'i') \
5067                      || ('j' <= (c) && (c) <= 'r') \
5068                      || ('s' <= (c) && (c) <= 'z'))
5069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5070 #endif
5072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5073 int
5074 main ()
5076   int i;
5077   for (i = 0; i < 256; i++)
5078     if (XOR (islower (i), ISLOWER (i))
5079         || toupper (i) != TOUPPER (i))
5080       return 2;
5081   return 0;
5083 _ACEOF
5084 rm -f conftest$ac_exeext
5085 if { (ac_try="$ac_link"
5086 case "(($ac_try" in
5087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088   *) ac_try_echo=$ac_try;;
5089 esac
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091   (eval "$ac_link") 2>&5
5092   ac_status=$?
5093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5095   { (case "(($ac_try" in
5096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097   *) ac_try_echo=$ac_try;;
5098 esac
5099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100   (eval "$ac_try") 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }; }; then
5104   :
5105 else
5106   echo "$as_me: program exited with status $ac_status" >&5
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 ( exit $ac_status )
5111 ac_cv_header_stdc=no
5112 fi
5113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5114 fi
5117 fi
5118 fi
5119 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5120 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5121 if test $ac_cv_header_stdc = yes; then
5123 cat >>confdefs.h <<\_ACEOF
5124 #define STDC_HEADERS 1
5125 _ACEOF
5127 fi
5129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5139 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5140                   inttypes.h stdint.h unistd.h
5141 do
5142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5146   echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148   cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h.  */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h.  */
5154 $ac_includes_default
5156 #include <$ac_header>
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5160 case "(($ac_try" in
5161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162   *) ac_try_echo=$ac_try;;
5163 esac
5164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165   (eval "$ac_compile") 2>conftest.er1
5166   ac_status=$?
5167   grep -v '^ *+' conftest.er1 >conftest.err
5168   rm -f conftest.er1
5169   cat conftest.err >&5
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); } && {
5172          test -z "$ac_c_werror_flag" ||
5173          test ! -s conftest.err
5174        } && test -s conftest.$ac_objext; then
5175   eval "$as_ac_Header=yes"
5176 else
5177   echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5180         eval "$as_ac_Header=no"
5181 fi
5183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5184 fi
5185 ac_res=`eval echo '${'$as_ac_Header'}'`
5186                { echo "$as_me:$LINENO: result: $ac_res" >&5
5187 echo "${ECHO_T}$ac_res" >&6; }
5188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5189   cat >>confdefs.h <<_ACEOF
5190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5191 _ACEOF
5193 fi
5195 done
5199 for ac_header in dlfcn.h
5200 do
5201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5203   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5206   echo $ECHO_N "(cached) $ECHO_C" >&6
5207 fi
5208 ac_res=`eval echo '${'$as_ac_Header'}'`
5209                { echo "$as_me:$LINENO: result: $ac_res" >&5
5210 echo "${ECHO_T}$ac_res" >&6; }
5211 else
5212   # Is the header compilable?
5213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h.  */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h.  */
5221 $ac_includes_default
5222 #include <$ac_header>
5223 _ACEOF
5224 rm -f conftest.$ac_objext
5225 if { (ac_try="$ac_compile"
5226 case "(($ac_try" in
5227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228   *) ac_try_echo=$ac_try;;
5229 esac
5230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231   (eval "$ac_compile") 2>conftest.er1
5232   ac_status=$?
5233   grep -v '^ *+' conftest.er1 >conftest.err
5234   rm -f conftest.er1
5235   cat conftest.err >&5
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); } && {
5238          test -z "$ac_c_werror_flag" ||
5239          test ! -s conftest.err
5240        } && test -s conftest.$ac_objext; then
5241   ac_header_compiler=yes
5242 else
5243   echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246         ac_header_compiler=no
5247 fi
5249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5251 echo "${ECHO_T}$ac_header_compiler" >&6; }
5253 # Is the header present?
5254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262 #include <$ac_header>
5263 _ACEOF
5264 if { (ac_try="$ac_cpp conftest.$ac_ext"
5265 case "(($ac_try" in
5266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267   *) ac_try_echo=$ac_try;;
5268 esac
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5271   ac_status=$?
5272   grep -v '^ *+' conftest.er1 >conftest.err
5273   rm -f conftest.er1
5274   cat conftest.err >&5
5275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276   (exit $ac_status); } >/dev/null && {
5277          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5278          test ! -s conftest.err
5279        }; then
5280   ac_header_preproc=yes
5281 else
5282   echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285   ac_header_preproc=no
5286 fi
5288 rm -f conftest.err conftest.$ac_ext
5289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 echo "${ECHO_T}$ac_header_preproc" >&6; }
5292 # So?  What about this header?
5293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5294   yes:no: )
5295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5299     ac_header_preproc=yes
5300     ;;
5301   no:yes:* )
5302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5315     ;;
5316 esac
5317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5320   echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322   eval "$as_ac_Header=\$ac_header_preproc"
5323 fi
5324 ac_res=`eval echo '${'$as_ac_Header'}'`
5325                { echo "$as_me:$LINENO: result: $ac_res" >&5
5326 echo "${ECHO_T}$ac_res" >&6; }
5328 fi
5329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5330   cat >>confdefs.h <<_ACEOF
5331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5332 _ACEOF
5334 fi
5336 done
5338 ac_ext=cpp
5339 ac_cpp='$CXXCPP $CPPFLAGS'
5340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5343 if test -z "$CXX"; then
5344   if test -n "$CCC"; then
5345     CXX=$CCC
5346   else
5347     if test -n "$ac_tool_prefix"; then
5348   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5349   do
5350     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5354 if test "${ac_cv_prog_CXX+set}" = set; then
5355   echo $ECHO_N "(cached) $ECHO_C" >&6
5356 else
5357   if test -n "$CXX"; then
5358   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365   for ac_exec_ext in '' $ac_executable_extensions; do
5366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369     break 2
5370   fi
5371 done
5372 done
5373 IFS=$as_save_IFS
5375 fi
5376 fi
5377 CXX=$ac_cv_prog_CXX
5378 if test -n "$CXX"; then
5379   { echo "$as_me:$LINENO: result: $CXX" >&5
5380 echo "${ECHO_T}$CXX" >&6; }
5381 else
5382   { echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6; }
5384 fi
5387     test -n "$CXX" && break
5388   done
5389 fi
5390 if test -z "$CXX"; then
5391   ac_ct_CXX=$CXX
5392   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5393 do
5394   # Extract the first word of "$ac_prog", so it can be a program name with args.
5395 set dummy $ac_prog; ac_word=$2
5396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5398 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5399   echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401   if test -n "$ac_ct_CXX"; then
5402   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407   IFS=$as_save_IFS
5408   test -z "$as_dir" && as_dir=.
5409   for ac_exec_ext in '' $ac_executable_extensions; do
5410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411     ac_cv_prog_ac_ct_CXX="$ac_prog"
5412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413     break 2
5414   fi
5415 done
5416 done
5417 IFS=$as_save_IFS
5419 fi
5420 fi
5421 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5422 if test -n "$ac_ct_CXX"; then
5423   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5424 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5425 else
5426   { echo "$as_me:$LINENO: result: no" >&5
5427 echo "${ECHO_T}no" >&6; }
5428 fi
5431   test -n "$ac_ct_CXX" && break
5432 done
5434   if test "x$ac_ct_CXX" = x; then
5435     CXX="g++"
5436   else
5437     case $cross_compiling:$ac_tool_warned in
5438 yes:)
5439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5440 whose name does not start with the host triplet.  If you think this
5441 configuration is useful to you, please write to autoconf@gnu.org." >&5
5442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5443 whose name does not start with the host triplet.  If you think this
5444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5445 ac_tool_warned=yes ;;
5446 esac
5447     CXX=$ac_ct_CXX
5448   fi
5449 fi
5451   fi
5452 fi
5453 # Provide some information about the compiler.
5454 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5455 ac_compiler=`set X $ac_compile; echo $2`
5456 { (ac_try="$ac_compiler --version >&5"
5457 case "(($ac_try" in
5458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459   *) ac_try_echo=$ac_try;;
5460 esac
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462   (eval "$ac_compiler --version >&5") 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); }
5466 { (ac_try="$ac_compiler -v >&5"
5467 case "(($ac_try" in
5468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469   *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472   (eval "$ac_compiler -v >&5") 2>&5
5473   ac_status=$?
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); }
5476 { (ac_try="$ac_compiler -V >&5"
5477 case "(($ac_try" in
5478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479   *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482   (eval "$ac_compiler -V >&5") 2>&5
5483   ac_status=$?
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); }
5487 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5488 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5489 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5490   echo $ECHO_N "(cached) $ECHO_C" >&6
5491 else
5492   cat >conftest.$ac_ext <<_ACEOF
5493 /* confdefs.h.  */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h.  */
5499 int
5500 main ()
5502 #ifndef __GNUC__
5503        choke me
5504 #endif
5506   ;
5507   return 0;
5509 _ACEOF
5510 rm -f conftest.$ac_objext
5511 if { (ac_try="$ac_compile"
5512 case "(($ac_try" in
5513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514   *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517   (eval "$ac_compile") 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } && {
5524          test -z "$ac_cxx_werror_flag" ||
5525          test ! -s conftest.err
5526        } && test -s conftest.$ac_objext; then
5527   ac_compiler_gnu=yes
5528 else
5529   echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532         ac_compiler_gnu=no
5533 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5538 fi
5539 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5540 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5541 GXX=`test $ac_compiler_gnu = yes && echo yes`
5542 ac_test_CXXFLAGS=${CXXFLAGS+set}
5543 ac_save_CXXFLAGS=$CXXFLAGS
5544 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5545 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5546 if test "${ac_cv_prog_cxx_g+set}" = set; then
5547   echo $ECHO_N "(cached) $ECHO_C" >&6
5548 else
5549   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5550    ac_cxx_werror_flag=yes
5551    ac_cv_prog_cxx_g=no
5552    CXXFLAGS="-g"
5553    cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h.  */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h.  */
5560 int
5561 main ()
5564   ;
5565   return 0;
5567 _ACEOF
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5570 case "(($ac_try" in
5571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572   *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575   (eval "$ac_compile") 2>conftest.er1
5576   ac_status=$?
5577   grep -v '^ *+' conftest.er1 >conftest.err
5578   rm -f conftest.er1
5579   cat conftest.err >&5
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } && {
5582          test -z "$ac_cxx_werror_flag" ||
5583          test ! -s conftest.err
5584        } && test -s conftest.$ac_objext; then
5585   ac_cv_prog_cxx_g=yes
5586 else
5587   echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590         CXXFLAGS=""
5591       cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h.  */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h.  */
5598 int
5599 main ()
5602   ;
5603   return 0;
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5608 case "(($ac_try" in
5609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610   *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613   (eval "$ac_compile") 2>conftest.er1
5614   ac_status=$?
5615   grep -v '^ *+' conftest.er1 >conftest.err
5616   rm -f conftest.er1
5617   cat conftest.err >&5
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } && {
5620          test -z "$ac_cxx_werror_flag" ||
5621          test ! -s conftest.err
5622        } && test -s conftest.$ac_objext; then
5623   :
5624 else
5625   echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5628         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5629          CXXFLAGS="-g"
5630          cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h.  */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h.  */
5637 int
5638 main ()
5641   ;
5642   return 0;
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (ac_try="$ac_compile"
5647 case "(($ac_try" in
5648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649   *) ac_try_echo=$ac_try;;
5650 esac
5651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652   (eval "$ac_compile") 2>conftest.er1
5653   ac_status=$?
5654   grep -v '^ *+' conftest.er1 >conftest.err
5655   rm -f conftest.er1
5656   cat conftest.err >&5
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); } && {
5659          test -z "$ac_cxx_werror_flag" ||
5660          test ! -s conftest.err
5661        } && test -s conftest.$ac_objext; then
5662   ac_cv_prog_cxx_g=yes
5663 else
5664   echo "$as_me: failed program was:" >&5
5665 sed 's/^/| /' conftest.$ac_ext >&5
5668 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5671 fi
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5678 fi
5679 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5681 if test "$ac_test_CXXFLAGS" = set; then
5682   CXXFLAGS=$ac_save_CXXFLAGS
5683 elif test $ac_cv_prog_cxx_g = yes; then
5684   if test "$GXX" = yes; then
5685     CXXFLAGS="-g -O2"
5686   else
5687     CXXFLAGS="-g"
5688   fi
5689 else
5690   if test "$GXX" = yes; then
5691     CXXFLAGS="-O2"
5692   else
5693     CXXFLAGS=
5694   fi
5695 fi
5696 ac_ext=cpp
5697 ac_cpp='$CXXCPP $CPPFLAGS'
5698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5702 depcc="$CXX"  am_compiler_list=
5704 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5705 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5706 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5710   # We make a subdir and do the tests there.  Otherwise we can end up
5711   # making bogus files that we don't know about and never remove.  For
5712   # instance it was reported that on HP-UX the gcc test will end up
5713   # making a dummy file named `D' -- because `-MD' means `put the output
5714   # in D'.
5715   mkdir conftest.dir
5716   # Copy depcomp to subdir because otherwise we won't find it if we're
5717   # using a relative directory.
5718   cp "$am_depcomp" conftest.dir
5719   cd conftest.dir
5720   # We will build objects and dependencies in a subdirectory because
5721   # it helps to detect inapplicable dependency modes.  For instance
5722   # both Tru64's cc and ICC support -MD to output dependencies as a
5723   # side effect of compilation, but ICC will put the dependencies in
5724   # the current directory while Tru64 will put them in the object
5725   # directory.
5726   mkdir sub
5728   am_cv_CXX_dependencies_compiler_type=none
5729   if test "$am_compiler_list" = ""; then
5730      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5731   fi
5732   for depmode in $am_compiler_list; do
5733     # Setup a source with many dependencies, because some compilers
5734     # like to wrap large dependency lists on column 80 (with \), and
5735     # we should not choose a depcomp mode which is confused by this.
5736     #
5737     # We need to recreate these files for each test, as the compiler may
5738     # overwrite some of them when testing with obscure command lines.
5739     # This happens at least with the AIX C compiler.
5740     : > sub/conftest.c
5741     for i in 1 2 3 4 5 6; do
5742       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5743       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5744       # Solaris 8's {/usr,}/bin/sh.
5745       touch sub/conftst$i.h
5746     done
5747     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5749     case $depmode in
5750     nosideeffect)
5751       # after this tag, mechanisms are not by side-effect, so they'll
5752       # only be used when explicitly requested
5753       if test "x$enable_dependency_tracking" = xyes; then
5754         continue
5755       else
5756         break
5757       fi
5758       ;;
5759     none) break ;;
5760     esac
5761     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5762     # mode.  It turns out that the SunPro C++ compiler does not properly
5763     # handle `-M -o', and we need to detect this.
5764     if depmode=$depmode \
5765        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5766        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5767        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5768          >/dev/null 2>conftest.err &&
5769        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5770        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5771        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5772       # icc doesn't choke on unknown options, it will just issue warnings
5773       # or remarks (even with -Werror).  So we grep stderr for any message
5774       # that says an option was ignored or not supported.
5775       # When given -MP, icc 7.0 and 7.1 complain thusly:
5776       #   icc: Command line warning: ignoring option '-M'; no argument required
5777       # The diagnosis changed in icc 8.0:
5778       #   icc: Command line remark: option '-MP' not supported
5779       if (grep 'ignoring option' conftest.err ||
5780           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5781         am_cv_CXX_dependencies_compiler_type=$depmode
5782         break
5783       fi
5784     fi
5785   done
5787   cd ..
5788   rm -rf conftest.dir
5789 else
5790   am_cv_CXX_dependencies_compiler_type=none
5791 fi
5793 fi
5794 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5795 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5796 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5800 if
5801   test "x$enable_dependency_tracking" != xno \
5802   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5803   am__fastdepCXX_TRUE=
5804   am__fastdepCXX_FALSE='#'
5805 else
5806   am__fastdepCXX_TRUE='#'
5807   am__fastdepCXX_FALSE=
5808 fi
5813 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5814     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5815     (test "X$CXX" != "Xg++"))) ; then
5816   ac_ext=cpp
5817 ac_cpp='$CXXCPP $CPPFLAGS'
5818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5821 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5822 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5823 if test -z "$CXXCPP"; then
5824   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827       # Double quotes because CXXCPP needs to be expanded
5828     for CXXCPP in "$CXX -E" "/lib/cpp"
5829     do
5830       ac_preproc_ok=false
5831 for ac_cxx_preproc_warn_flag in '' yes
5832 do
5833   # Use a header file that comes with gcc, so configuring glibc
5834   # with a fresh cross-compiler works.
5835   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836   # <limits.h> exists even on freestanding compilers.
5837   # On the NeXT, cc -E runs the code through the compiler's parser,
5838   # not just through cpp. "Syntax error" is here to catch this case.
5839   cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h.  */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h.  */
5845 #ifdef __STDC__
5846 # include <limits.h>
5847 #else
5848 # include <assert.h>
5849 #endif
5850                      Syntax error
5851 _ACEOF
5852 if { (ac_try="$ac_cpp conftest.$ac_ext"
5853 case "(($ac_try" in
5854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855   *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } >/dev/null && {
5865          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5866          test ! -s conftest.err
5867        }; then
5868   :
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873   # Broken: fails on valid input.
5874 continue
5875 fi
5877 rm -f conftest.err conftest.$ac_ext
5879   # OK, works on sane cases.  Now check whether nonexistent headers
5880   # can be detected and how.
5881   cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h.  */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h.  */
5887 #include <ac_nonexistent.h>
5888 _ACEOF
5889 if { (ac_try="$ac_cpp conftest.$ac_ext"
5890 case "(($ac_try" in
5891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5892   *) ac_try_echo=$ac_try;;
5893 esac
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5896   ac_status=$?
5897   grep -v '^ *+' conftest.er1 >conftest.err
5898   rm -f conftest.er1
5899   cat conftest.err >&5
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); } >/dev/null && {
5902          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5903          test ! -s conftest.err
5904        }; then
5905   # Broken: success on invalid input.
5906 continue
5907 else
5908   echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5911   # Passes both tests.
5912 ac_preproc_ok=:
5913 break
5914 fi
5916 rm -f conftest.err conftest.$ac_ext
5918 done
5919 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5920 rm -f conftest.err conftest.$ac_ext
5921 if $ac_preproc_ok; then
5922   break
5923 fi
5925     done
5926     ac_cv_prog_CXXCPP=$CXXCPP
5928 fi
5929   CXXCPP=$ac_cv_prog_CXXCPP
5930 else
5931   ac_cv_prog_CXXCPP=$CXXCPP
5932 fi
5933 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5934 echo "${ECHO_T}$CXXCPP" >&6; }
5935 ac_preproc_ok=false
5936 for ac_cxx_preproc_warn_flag in '' yes
5937 do
5938   # Use a header file that comes with gcc, so configuring glibc
5939   # with a fresh cross-compiler works.
5940   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5941   # <limits.h> exists even on freestanding compilers.
5942   # On the NeXT, cc -E runs the code through the compiler's parser,
5943   # not just through cpp. "Syntax error" is here to catch this case.
5944   cat >conftest.$ac_ext <<_ACEOF
5945 /* confdefs.h.  */
5946 _ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h.  */
5950 #ifdef __STDC__
5951 # include <limits.h>
5952 #else
5953 # include <assert.h>
5954 #endif
5955                      Syntax error
5956 _ACEOF
5957 if { (ac_try="$ac_cpp conftest.$ac_ext"
5958 case "(($ac_try" in
5959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960   *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5964   ac_status=$?
5965   grep -v '^ *+' conftest.er1 >conftest.err
5966   rm -f conftest.er1
5967   cat conftest.err >&5
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); } >/dev/null && {
5970          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5971          test ! -s conftest.err
5972        }; then
5973   :
5974 else
5975   echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978   # Broken: fails on valid input.
5979 continue
5980 fi
5982 rm -f conftest.err conftest.$ac_ext
5984   # OK, works on sane cases.  Now check whether nonexistent headers
5985   # can be detected and how.
5986   cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h.  */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h.  */
5992 #include <ac_nonexistent.h>
5993 _ACEOF
5994 if { (ac_try="$ac_cpp conftest.$ac_ext"
5995 case "(($ac_try" in
5996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997   *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6001   ac_status=$?
6002   grep -v '^ *+' conftest.er1 >conftest.err
6003   rm -f conftest.er1
6004   cat conftest.err >&5
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } >/dev/null && {
6007          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6008          test ! -s conftest.err
6009        }; then
6010   # Broken: success on invalid input.
6011 continue
6012 else
6013   echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6016   # Passes both tests.
6017 ac_preproc_ok=:
6018 break
6019 fi
6021 rm -f conftest.err conftest.$ac_ext
6023 done
6024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6025 rm -f conftest.err conftest.$ac_ext
6026 if $ac_preproc_ok; then
6027   :
6028 else
6029   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6030 See \`config.log' for more details." >&5
6031 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6032 See \`config.log' for more details." >&2;}
6033    { (exit 1); exit 1; }; }
6034 fi
6036 ac_ext=cpp
6037 ac_cpp='$CXXCPP $CPPFLAGS'
6038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6042 fi
6045 ac_ext=f
6046 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6047 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6048 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6049 if test -n "$ac_tool_prefix"; then
6050   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
6051   do
6052     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056 if test "${ac_cv_prog_F77+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   if test -n "$F77"; then
6060   ac_cv_prog_F77="$F77" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065   IFS=$as_save_IFS
6066   test -z "$as_dir" && as_dir=.
6067   for ac_exec_ext in '' $ac_executable_extensions; do
6068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071     break 2
6072   fi
6073 done
6074 done
6075 IFS=$as_save_IFS
6077 fi
6078 fi
6079 F77=$ac_cv_prog_F77
6080 if test -n "$F77"; then
6081   { echo "$as_me:$LINENO: result: $F77" >&5
6082 echo "${ECHO_T}$F77" >&6; }
6083 else
6084   { echo "$as_me:$LINENO: result: no" >&5
6085 echo "${ECHO_T}no" >&6; }
6086 fi
6089     test -n "$F77" && break
6090   done
6091 fi
6092 if test -z "$F77"; then
6093   ac_ct_F77=$F77
6094   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
6095 do
6096   # Extract the first word of "$ac_prog", so it can be a program name with args.
6097 set dummy $ac_prog; ac_word=$2
6098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103   if test -n "$ac_ct_F77"; then
6104   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6105 else
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109   IFS=$as_save_IFS
6110   test -z "$as_dir" && as_dir=.
6111   for ac_exec_ext in '' $ac_executable_extensions; do
6112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6113     ac_cv_prog_ac_ct_F77="$ac_prog"
6114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115     break 2
6116   fi
6117 done
6118 done
6119 IFS=$as_save_IFS
6121 fi
6122 fi
6123 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6124 if test -n "$ac_ct_F77"; then
6125   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6126 echo "${ECHO_T}$ac_ct_F77" >&6; }
6127 else
6128   { echo "$as_me:$LINENO: result: no" >&5
6129 echo "${ECHO_T}no" >&6; }
6130 fi
6133   test -n "$ac_ct_F77" && break
6134 done
6136   if test "x$ac_ct_F77" = x; then
6137     F77=""
6138   else
6139     case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6142 whose name does not start with the host triplet.  If you think this
6143 configuration is useful to you, please write to autoconf@gnu.org." >&5
6144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6145 whose name does not start with the host triplet.  If you think this
6146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6147 ac_tool_warned=yes ;;
6148 esac
6149     F77=$ac_ct_F77
6150   fi
6151 fi
6154 # Provide some information about the compiler.
6155 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6156 ac_compiler=`set X $ac_compile; echo $2`
6157 { (ac_try="$ac_compiler --version >&5"
6158 case "(($ac_try" in
6159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160   *) ac_try_echo=$ac_try;;
6161 esac
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163   (eval "$ac_compiler --version >&5") 2>&5
6164   ac_status=$?
6165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166   (exit $ac_status); }
6167 { (ac_try="$ac_compiler -v >&5"
6168 case "(($ac_try" in
6169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170   *) ac_try_echo=$ac_try;;
6171 esac
6172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173   (eval "$ac_compiler -v >&5") 2>&5
6174   ac_status=$?
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); }
6177 { (ac_try="$ac_compiler -V >&5"
6178 case "(($ac_try" in
6179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180   *) ac_try_echo=$ac_try;;
6181 esac
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183   (eval "$ac_compiler -V >&5") 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); }
6187 rm -f a.out
6189 # If we don't use `.F' as extension, the preprocessor is not run on the
6190 # input file.  (Note that this only needs to work for GNU compilers.)
6191 ac_save_ext=$ac_ext
6192 ac_ext=F
6193 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6194 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6195 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6196   echo $ECHO_N "(cached) $ECHO_C" >&6
6197 else
6198   cat >conftest.$ac_ext <<_ACEOF
6199       program main
6200 #ifndef __GNUC__
6201        choke me
6202 #endif
6204       end
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (ac_try="$ac_compile"
6208 case "(($ac_try" in
6209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210   *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213   (eval "$ac_compile") 2>conftest.er1
6214   ac_status=$?
6215   grep -v '^ *+' conftest.er1 >conftest.err
6216   rm -f conftest.er1
6217   cat conftest.err >&5
6218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219   (exit $ac_status); } && {
6220          test -z "$ac_f77_werror_flag" ||
6221          test ! -s conftest.err
6222        } && test -s conftest.$ac_objext; then
6223   ac_compiler_gnu=yes
6224 else
6225   echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6228         ac_compiler_gnu=no
6229 fi
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6234 fi
6235 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6236 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6237 ac_ext=$ac_save_ext
6238 ac_test_FFLAGS=${FFLAGS+set}
6239 ac_save_FFLAGS=$FFLAGS
6240 FFLAGS=
6241 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6242 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6243 if test "${ac_cv_prog_f77_g+set}" = set; then
6244   echo $ECHO_N "(cached) $ECHO_C" >&6
6245 else
6246   FFLAGS=-g
6247 cat >conftest.$ac_ext <<_ACEOF
6248       program main
6250       end
6251 _ACEOF
6252 rm -f conftest.$ac_objext
6253 if { (ac_try="$ac_compile"
6254 case "(($ac_try" in
6255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256   *) ac_try_echo=$ac_try;;
6257 esac
6258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6259   (eval "$ac_compile") 2>conftest.er1
6260   ac_status=$?
6261   grep -v '^ *+' conftest.er1 >conftest.err
6262   rm -f conftest.er1
6263   cat conftest.err >&5
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); } && {
6266          test -z "$ac_f77_werror_flag" ||
6267          test ! -s conftest.err
6268        } && test -s conftest.$ac_objext; then
6269   ac_cv_prog_f77_g=yes
6270 else
6271   echo "$as_me: failed program was:" >&5
6272 sed 's/^/| /' conftest.$ac_ext >&5
6274         ac_cv_prog_f77_g=no
6275 fi
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 fi
6280 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6281 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6282 if test "$ac_test_FFLAGS" = set; then
6283   FFLAGS=$ac_save_FFLAGS
6284 elif test $ac_cv_prog_f77_g = yes; then
6285   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6286     FFLAGS="-g -O2"
6287   else
6288     FFLAGS="-g"
6289   fi
6290 else
6291   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6292     FFLAGS="-O2"
6293   else
6294     FFLAGS=
6295   fi
6296 fi
6298 G77=`test $ac_compiler_gnu = yes && echo yes`
6299 ac_ext=c
6300 ac_cpp='$CPP $CPPFLAGS'
6301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6307 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6308 # find the maximum length of command line arguments
6309 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6310 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6311 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314     i=0
6315   teststring="ABCD"
6317   case $build_os in
6318   msdosdjgpp*)
6319     # On DJGPP, this test can blow up pretty badly due to problems in libc
6320     # (any single argument exceeding 2000 bytes causes a buffer overrun
6321     # during glob expansion).  Even if it were fixed, the result of this
6322     # check would be larger than it should be.
6323     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6324     ;;
6326   gnu*)
6327     # Under GNU Hurd, this test is not required because there is
6328     # no limit to the length of command line arguments.
6329     # Libtool will interpret -1 as no limit whatsoever
6330     lt_cv_sys_max_cmd_len=-1;
6331     ;;
6333   cygwin* | mingw*)
6334     # On Win9x/ME, this test blows up -- it succeeds, but takes
6335     # about 5 minutes as the teststring grows exponentially.
6336     # Worse, since 9x/ME are not pre-emptively multitasking,
6337     # you end up with a "frozen" computer, even though with patience
6338     # the test eventually succeeds (with a max line length of 256k).
6339     # Instead, let's just punt: use the minimum linelength reported by
6340     # all of the supported platforms: 8192 (on NT/2K/XP).
6341     lt_cv_sys_max_cmd_len=8192;
6342     ;;
6344   amigaos*)
6345     # On AmigaOS with pdksh, this test takes hours, literally.
6346     # So we just punt and use a minimum line length of 8192.
6347     lt_cv_sys_max_cmd_len=8192;
6348     ;;
6350   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6351     # This has been around since 386BSD, at least.  Likely further.
6352     if test -x /sbin/sysctl; then
6353       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6354     elif test -x /usr/sbin/sysctl; then
6355       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6356     else
6357       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6358     fi
6359     # And add a safety zone
6360     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6361     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6362     ;;
6364   interix*)
6365     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6366     lt_cv_sys_max_cmd_len=196608
6367     ;;
6369   osf*)
6370     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6371     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6372     # nice to cause kernel panics so lets avoid the loop below.
6373     # First set a reasonable default.
6374     lt_cv_sys_max_cmd_len=16384
6375     #
6376     if test -x /sbin/sysconfig; then
6377       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6378         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6379       esac
6380     fi
6381     ;;
6382   sco3.2v5*)
6383     lt_cv_sys_max_cmd_len=102400
6384     ;;
6385   sysv5* | sco5v6* | sysv4.2uw2*)
6386     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6387     if test -n "$kargmax"; then
6388       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6389     else
6390       lt_cv_sys_max_cmd_len=32768
6391     fi
6392     ;;
6393   *)
6394     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6395     if test -n "$lt_cv_sys_max_cmd_len"; then
6396       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6397       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6398     else
6399       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6400       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6401                = "XX$teststring") >/dev/null 2>&1 &&
6402               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6403               lt_cv_sys_max_cmd_len=$new_result &&
6404               test $i != 17 # 1/2 MB should be enough
6405       do
6406         i=`expr $i + 1`
6407         teststring=$teststring$teststring
6408       done
6409       teststring=
6410       # Add a significant safety factor because C++ compilers can tack on massive
6411       # amounts of additional arguments before passing them to the linker.
6412       # It appears as though 1/2 is a usable value.
6413       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6414     fi
6415     ;;
6416   esac
6418 fi
6420 if test -n $lt_cv_sys_max_cmd_len ; then
6421   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6422 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6423 else
6424   { echo "$as_me:$LINENO: result: none" >&5
6425 echo "${ECHO_T}none" >&6; }
6426 fi
6432 # Check for command to grab the raw symbol name followed by C symbol from nm.
6433 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6434 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6435 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6436   echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6439 # These are sane defaults that work on at least a few old systems.
6440 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6442 # Character class describing NM global symbol codes.
6443 symcode='[BCDEGRST]'
6445 # Regexp to match symbols that can be accessed directly from C.
6446 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6448 # Transform an extracted symbol line into a proper C declaration
6449 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6451 # Transform an extracted symbol line into symbol name and symbol address
6452 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'"
6454 # Define system-specific variables.
6455 case $host_os in
6456 aix*)
6457   symcode='[BCDT]'
6458   ;;
6459 cygwin* | mingw* | pw32*)
6460   symcode='[ABCDGISTW]'
6461   ;;
6462 hpux*) # Its linker distinguishes data from code symbols
6463   if test "$host_cpu" = ia64; then
6464     symcode='[ABCDEGRST]'
6465   fi
6466   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6467   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'"
6468   ;;
6469 linux* | k*bsd*-gnu)
6470   if test "$host_cpu" = ia64; then
6471     symcode='[ABCDGIRSTW]'
6472     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6473     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'"
6474   fi
6475   ;;
6476 irix* | nonstopux*)
6477   symcode='[BCDEGRST]'
6478   ;;
6479 osf*)
6480   symcode='[BCDEGQRST]'
6481   ;;
6482 solaris*)
6483   symcode='[BDRT]'
6484   ;;
6485 sco3.2v5*)
6486   symcode='[DT]'
6487   ;;
6488 sysv4.2uw2*)
6489   symcode='[DT]'
6490   ;;
6491 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6492   symcode='[ABDT]'
6493   ;;
6494 sysv4)
6495   symcode='[DFNSTU]'
6496   ;;
6497 esac
6499 # Handle CRLF in mingw tool chain
6500 opt_cr=
6501 case $build_os in
6502 mingw*)
6503   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6504   ;;
6505 esac
6507 # If we're using GNU nm, then use its standard symbol codes.
6508 case `$NM -V 2>&1` in
6509 *GNU* | *'with BFD'*)
6510   symcode='[ABCDGIRSTW]' ;;
6511 esac
6513 # Try without a prefix undercore, then with it.
6514 for ac_symprfx in "" "_"; do
6516   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6517   symxfrm="\\1 $ac_symprfx\\2 \\2"
6519   # Write the raw and C identifiers.
6520   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6522   # Check to see that the pipe works correctly.
6523   pipe_works=no
6525   rm -f conftest*
6526   cat > conftest.$ac_ext <<EOF
6527 #ifdef __cplusplus
6528 extern "C" {
6529 #endif
6530 char nm_test_var;
6531 void nm_test_func(){}
6532 #ifdef __cplusplus
6534 #endif
6535 int main(){nm_test_var='a';nm_test_func();return(0);}
6536 EOF
6538   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539   (eval $ac_compile) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }; then
6543     # Now try to grab the symbols.
6544     nlist=conftest.nm
6545     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6546   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6547   ac_status=$?
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } && test -s "$nlist"; then
6550       # Try sorting and uniquifying the output.
6551       if sort "$nlist" | uniq > "$nlist"T; then
6552         mv -f "$nlist"T "$nlist"
6553       else
6554         rm -f "$nlist"T
6555       fi
6557       # Make sure that we snagged all the symbols we need.
6558       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6559         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6560           cat <<EOF > conftest.$ac_ext
6561 #ifdef __cplusplus
6562 extern "C" {
6563 #endif
6565 EOF
6566           # Now generate the symbol file.
6567           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6569           cat <<EOF >> conftest.$ac_ext
6570 #if defined (__STDC__) && __STDC__
6571 # define lt_ptr_t void *
6572 #else
6573 # define lt_ptr_t char *
6574 # define const
6575 #endif
6577 /* The mapping between symbol names and symbols. */
6578 const struct {
6579   const char *name;
6580   lt_ptr_t address;
6582 lt_preloaded_symbols[] =
6584 EOF
6585           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6586           cat <<\EOF >> conftest.$ac_ext
6587   {0, (lt_ptr_t) 0}
6588 };
6590 #ifdef __cplusplus
6592 #endif
6593 EOF
6594           # Now try linking the two files.
6595           mv conftest.$ac_objext conftstm.$ac_objext
6596           lt_save_LIBS="$LIBS"
6597           lt_save_CFLAGS="$CFLAGS"
6598           LIBS="conftstm.$ac_objext"
6599           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6600           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6601   (eval $ac_link) 2>&5
6602   ac_status=$?
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6605             pipe_works=yes
6606           fi
6607           LIBS="$lt_save_LIBS"
6608           CFLAGS="$lt_save_CFLAGS"
6609         else
6610           echo "cannot find nm_test_func in $nlist" >&5
6611         fi
6612       else
6613         echo "cannot find nm_test_var in $nlist" >&5
6614       fi
6615     else
6616       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6617     fi
6618   else
6619     echo "$progname: failed program was:" >&5
6620     cat conftest.$ac_ext >&5
6621   fi
6622   rm -rf conftest* conftst*
6624   # Do not use the global_symbol_pipe unless it works.
6625   if test "$pipe_works" = yes; then
6626     break
6627   else
6628     lt_cv_sys_global_symbol_pipe=
6629   fi
6630 done
6632 fi
6634 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6635   lt_cv_sys_global_symbol_to_cdecl=
6636 fi
6637 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6638   { echo "$as_me:$LINENO: result: failed" >&5
6639 echo "${ECHO_T}failed" >&6; }
6640 else
6641   { echo "$as_me:$LINENO: result: ok" >&5
6642 echo "${ECHO_T}ok" >&6; }
6643 fi
6645 { echo "$as_me:$LINENO: checking for objdir" >&5
6646 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6647 if test "${lt_cv_objdir+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   rm -f .libs 2>/dev/null
6651 mkdir .libs 2>/dev/null
6652 if test -d .libs; then
6653   lt_cv_objdir=.libs
6654 else
6655   # MS-DOS does not allow filenames that begin with a dot.
6656   lt_cv_objdir=_libs
6657 fi
6658 rmdir .libs 2>/dev/null
6659 fi
6660 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6661 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6662 objdir=$lt_cv_objdir
6668 case $host_os in
6669 aix3*)
6670   # AIX sometimes has problems with the GCC collect2 program.  For some
6671   # reason, if we set the COLLECT_NAMES environment variable, the problems
6672   # vanish in a puff of smoke.
6673   if test "X${COLLECT_NAMES+set}" != Xset; then
6674     COLLECT_NAMES=
6675     export COLLECT_NAMES
6676   fi
6677   ;;
6678 esac
6680 # Sed substitution that helps us do robust quoting.  It backslashifies
6681 # metacharacters that are still active within double-quoted strings.
6682 Xsed='sed -e 1s/^X//'
6683 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6685 # Same as above, but do not quote variable references.
6686 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6688 # Sed substitution to delay expansion of an escaped shell variable in a
6689 # double_quote_subst'ed string.
6690 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6692 # Sed substitution to avoid accidental globbing in evaled expressions
6693 no_glob_subst='s/\*/\\\*/g'
6695 # Constants:
6696 rm="rm -f"
6698 # Global variables:
6699 default_ofile=libtool
6700 can_build_shared=yes
6702 # All known linkers require a `.a' archive for static linking (except MSVC,
6703 # which needs '.lib').
6704 libext=a
6705 ltmain="$ac_aux_dir/ltmain.sh"
6706 ofile="$default_ofile"
6707 with_gnu_ld="$lt_cv_prog_gnu_ld"
6709 if test -n "$ac_tool_prefix"; then
6710   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6711 set dummy ${ac_tool_prefix}ar; ac_word=$2
6712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6714 if test "${ac_cv_prog_AR+set}" = set; then
6715   echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717   if test -n "$AR"; then
6718   ac_cv_prog_AR="$AR" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725   for ac_exec_ext in '' $ac_executable_extensions; do
6726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6727     ac_cv_prog_AR="${ac_tool_prefix}ar"
6728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732 done
6733 IFS=$as_save_IFS
6735 fi
6736 fi
6737 AR=$ac_cv_prog_AR
6738 if test -n "$AR"; then
6739   { echo "$as_me:$LINENO: result: $AR" >&5
6740 echo "${ECHO_T}$AR" >&6; }
6741 else
6742   { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6744 fi
6747 fi
6748 if test -z "$ac_cv_prog_AR"; then
6749   ac_ct_AR=$AR
6750   # Extract the first word of "ar", so it can be a program name with args.
6751 set dummy ar; ac_word=$2
6752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6754 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6755   echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757   if test -n "$ac_ct_AR"; then
6758   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765   for ac_exec_ext in '' $ac_executable_extensions; do
6766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6767     ac_cv_prog_ac_ct_AR="ar"
6768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6775 fi
6776 fi
6777 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6778 if test -n "$ac_ct_AR"; then
6779   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6780 echo "${ECHO_T}$ac_ct_AR" >&6; }
6781 else
6782   { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6784 fi
6786   if test "x$ac_ct_AR" = x; then
6787     AR="false"
6788   else
6789     case $cross_compiling:$ac_tool_warned in
6790 yes:)
6791 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6792 whose name does not start with the host triplet.  If you think this
6793 configuration is useful to you, please write to autoconf@gnu.org." >&5
6794 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6795 whose name does not start with the host triplet.  If you think this
6796 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799     AR=$ac_ct_AR
6800   fi
6801 else
6802   AR="$ac_cv_prog_AR"
6803 fi
6805 if test -n "$ac_tool_prefix"; then
6806   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_prog_RANLIB+set}" = set; then
6811   echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813   if test -n "$RANLIB"; then
6814   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821   for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6831 fi
6832 fi
6833 RANLIB=$ac_cv_prog_RANLIB
6834 if test -n "$RANLIB"; then
6835   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6836 echo "${ECHO_T}$RANLIB" >&6; }
6837 else
6838   { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6840 fi
6843 fi
6844 if test -z "$ac_cv_prog_RANLIB"; then
6845   ac_ct_RANLIB=$RANLIB
6846   # Extract the first word of "ranlib", so it can be a program name with args.
6847 set dummy ranlib; ac_word=$2
6848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6851   echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853   if test -n "$ac_ct_RANLIB"; then
6854   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861   for ac_exec_ext in '' $ac_executable_extensions; do
6862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863     ac_cv_prog_ac_ct_RANLIB="ranlib"
6864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868 done
6869 IFS=$as_save_IFS
6871 fi
6872 fi
6873 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6874 if test -n "$ac_ct_RANLIB"; then
6875   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6876 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6877 else
6878   { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6880 fi
6882   if test "x$ac_ct_RANLIB" = x; then
6883     RANLIB=":"
6884   else
6885     case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6888 whose name does not start with the host triplet.  If you think this
6889 configuration is useful to you, please write to autoconf@gnu.org." >&5
6890 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6891 whose name does not start with the host triplet.  If you think this
6892 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6893 ac_tool_warned=yes ;;
6894 esac
6895     RANLIB=$ac_ct_RANLIB
6896   fi
6897 else
6898   RANLIB="$ac_cv_prog_RANLIB"
6899 fi
6901 if test -n "$ac_tool_prefix"; then
6902   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6903 set dummy ${ac_tool_prefix}strip; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_prog_STRIP+set}" = set; then
6907   echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909   if test -n "$STRIP"; then
6910   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917   for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6927 fi
6928 fi
6929 STRIP=$ac_cv_prog_STRIP
6930 if test -n "$STRIP"; then
6931   { echo "$as_me:$LINENO: result: $STRIP" >&5
6932 echo "${ECHO_T}$STRIP" >&6; }
6933 else
6934   { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6936 fi
6939 fi
6940 if test -z "$ac_cv_prog_STRIP"; then
6941   ac_ct_STRIP=$STRIP
6942   # Extract the first word of "strip", so it can be a program name with args.
6943 set dummy strip; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6947   echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949   if test -n "$ac_ct_STRIP"; then
6950   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955   IFS=$as_save_IFS
6956   test -z "$as_dir" && as_dir=.
6957   for ac_exec_ext in '' $ac_executable_extensions; do
6958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959     ac_cv_prog_ac_ct_STRIP="strip"
6960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961     break 2
6962   fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6967 fi
6968 fi
6969 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6970 if test -n "$ac_ct_STRIP"; then
6971   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6972 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6973 else
6974   { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6976 fi
6978   if test "x$ac_ct_STRIP" = x; then
6979     STRIP=":"
6980   else
6981     case $cross_compiling:$ac_tool_warned in
6982 yes:)
6983 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6984 whose name does not start with the host triplet.  If you think this
6985 configuration is useful to you, please write to autoconf@gnu.org." >&5
6986 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6987 whose name does not start with the host triplet.  If you think this
6988 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6989 ac_tool_warned=yes ;;
6990 esac
6991     STRIP=$ac_ct_STRIP
6992   fi
6993 else
6994   STRIP="$ac_cv_prog_STRIP"
6995 fi
6998 old_CC="$CC"
6999 old_CFLAGS="$CFLAGS"
7001 # Set sane defaults for various variables
7002 test -z "$AR" && AR=ar
7003 test -z "$AR_FLAGS" && AR_FLAGS=cru
7004 test -z "$AS" && AS=as
7005 test -z "$CC" && CC=cc
7006 test -z "$LTCC" && LTCC=$CC
7007 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7008 test -z "$DLLTOOL" && DLLTOOL=dlltool
7009 test -z "$LD" && LD=ld
7010 test -z "$LN_S" && LN_S="ln -s"
7011 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7012 test -z "$NM" && NM=nm
7013 test -z "$SED" && SED=sed
7014 test -z "$OBJDUMP" && OBJDUMP=objdump
7015 test -z "$RANLIB" && RANLIB=:
7016 test -z "$STRIP" && STRIP=:
7017 test -z "$ac_objext" && ac_objext=o
7019 # Determine commands to create old-style static archives.
7020 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7021 old_postinstall_cmds='chmod 644 $oldlib'
7022 old_postuninstall_cmds=
7024 if test -n "$RANLIB"; then
7025   case $host_os in
7026   openbsd*)
7027     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7028     ;;
7029   *)
7030     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7031     ;;
7032   esac
7033   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7034 fi
7036 for cc_temp in $compiler""; do
7037   case $cc_temp in
7038     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7039     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7040     \-*) ;;
7041     *) break;;
7042   esac
7043 done
7044 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7047 # Only perform the check for file, if the check method requires it
7048 case $deplibs_check_method in
7049 file_magic*)
7050   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7051     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7052 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7053 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7054   echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056   case $MAGIC_CMD in
7057 [\\/*] |  ?:[\\/]*)
7058   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7059   ;;
7060 *)
7061   lt_save_MAGIC_CMD="$MAGIC_CMD"
7062   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7063   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7064   for ac_dir in $ac_dummy; do
7065     IFS="$lt_save_ifs"
7066     test -z "$ac_dir" && ac_dir=.
7067     if test -f $ac_dir/${ac_tool_prefix}file; then
7068       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7069       if test -n "$file_magic_test_file"; then
7070         case $deplibs_check_method in
7071         "file_magic "*)
7072           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7073           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7074           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7075             $EGREP "$file_magic_regex" > /dev/null; then
7076             :
7077           else
7078             cat <<EOF 1>&2
7080 *** Warning: the command libtool uses to detect shared libraries,
7081 *** $file_magic_cmd, produces output that libtool cannot recognize.
7082 *** The result is that libtool may fail to recognize shared libraries
7083 *** as such.  This will affect the creation of libtool libraries that
7084 *** depend on shared libraries, but programs linked with such libtool
7085 *** libraries will work regardless of this problem.  Nevertheless, you
7086 *** may want to report the problem to your system manager and/or to
7087 *** bug-libtool@gnu.org
7089 EOF
7090           fi ;;
7091         esac
7092       fi
7093       break
7094     fi
7095   done
7096   IFS="$lt_save_ifs"
7097   MAGIC_CMD="$lt_save_MAGIC_CMD"
7098   ;;
7099 esac
7100 fi
7102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7103 if test -n "$MAGIC_CMD"; then
7104   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7105 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7106 else
7107   { echo "$as_me:$LINENO: result: no" >&5
7108 echo "${ECHO_T}no" >&6; }
7109 fi
7111 if test -z "$lt_cv_path_MAGIC_CMD"; then
7112   if test -n "$ac_tool_prefix"; then
7113     { echo "$as_me:$LINENO: checking for file" >&5
7114 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7115 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7116   echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118   case $MAGIC_CMD in
7119 [\\/*] |  ?:[\\/]*)
7120   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7121   ;;
7122 *)
7123   lt_save_MAGIC_CMD="$MAGIC_CMD"
7124   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7125   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7126   for ac_dir in $ac_dummy; do
7127     IFS="$lt_save_ifs"
7128     test -z "$ac_dir" && ac_dir=.
7129     if test -f $ac_dir/file; then
7130       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7131       if test -n "$file_magic_test_file"; then
7132         case $deplibs_check_method in
7133         "file_magic "*)
7134           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7135           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7136           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7137             $EGREP "$file_magic_regex" > /dev/null; then
7138             :
7139           else
7140             cat <<EOF 1>&2
7142 *** Warning: the command libtool uses to detect shared libraries,
7143 *** $file_magic_cmd, produces output that libtool cannot recognize.
7144 *** The result is that libtool may fail to recognize shared libraries
7145 *** as such.  This will affect the creation of libtool libraries that
7146 *** depend on shared libraries, but programs linked with such libtool
7147 *** libraries will work regardless of this problem.  Nevertheless, you
7148 *** may want to report the problem to your system manager and/or to
7149 *** bug-libtool@gnu.org
7151 EOF
7152           fi ;;
7153         esac
7154       fi
7155       break
7156     fi
7157   done
7158   IFS="$lt_save_ifs"
7159   MAGIC_CMD="$lt_save_MAGIC_CMD"
7160   ;;
7161 esac
7162 fi
7164 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7165 if test -n "$MAGIC_CMD"; then
7166   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7167 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7168 else
7169   { echo "$as_me:$LINENO: result: no" >&5
7170 echo "${ECHO_T}no" >&6; }
7171 fi
7173   else
7174     MAGIC_CMD=:
7175   fi
7176 fi
7178   fi
7179   ;;
7180 esac
7183   case $host_os in
7184     rhapsody* | darwin*)
7185     if test -n "$ac_tool_prefix"; then
7186   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7190 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   if test -n "$DSYMUTIL"; then
7194   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201   for ac_exec_ext in '' $ac_executable_extensions; do
7202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7211 fi
7212 fi
7213 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7214 if test -n "$DSYMUTIL"; then
7215   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7216 echo "${ECHO_T}$DSYMUTIL" >&6; }
7217 else
7218   { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7220 fi
7223 fi
7224 if test -z "$ac_cv_prog_DSYMUTIL"; then
7225   ac_ct_DSYMUTIL=$DSYMUTIL
7226   # Extract the first word of "dsymutil", so it can be a program name with args.
7227 set dummy dsymutil; ac_word=$2
7228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7230 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7231   echo $ECHO_N "(cached) $ECHO_C" >&6
7232 else
7233   if test -n "$ac_ct_DSYMUTIL"; then
7234   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241   for ac_exec_ext in '' $ac_executable_extensions; do
7242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7251 fi
7252 fi
7253 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7254 if test -n "$ac_ct_DSYMUTIL"; then
7255   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7256 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7257 else
7258   { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7260 fi
7262   if test "x$ac_ct_DSYMUTIL" = x; then
7263     DSYMUTIL=":"
7264   else
7265     case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7268 whose name does not start with the host triplet.  If you think this
7269 configuration is useful to you, please write to autoconf@gnu.org." >&5
7270 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7271 whose name does not start with the host triplet.  If you think this
7272 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7273 ac_tool_warned=yes ;;
7274 esac
7275     DSYMUTIL=$ac_ct_DSYMUTIL
7276   fi
7277 else
7278   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7279 fi
7281     if test -n "$ac_tool_prefix"; then
7282   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7283 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   if test -n "$NMEDIT"; then
7290   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295   IFS=$as_save_IFS
7296   test -z "$as_dir" && as_dir=.
7297   for ac_exec_ext in '' $ac_executable_extensions; do
7298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301     break 2
7302   fi
7303 done
7304 done
7305 IFS=$as_save_IFS
7307 fi
7308 fi
7309 NMEDIT=$ac_cv_prog_NMEDIT
7310 if test -n "$NMEDIT"; then
7311   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7312 echo "${ECHO_T}$NMEDIT" >&6; }
7313 else
7314   { echo "$as_me:$LINENO: result: no" >&5
7315 echo "${ECHO_T}no" >&6; }
7316 fi
7319 fi
7320 if test -z "$ac_cv_prog_NMEDIT"; then
7321   ac_ct_NMEDIT=$NMEDIT
7322   # Extract the first word of "nmedit", so it can be a program name with args.
7323 set dummy nmedit; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   if test -n "$ac_ct_NMEDIT"; then
7330   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335   IFS=$as_save_IFS
7336   test -z "$as_dir" && as_dir=.
7337   for ac_exec_ext in '' $ac_executable_extensions; do
7338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7341     break 2
7342   fi
7343 done
7344 done
7345 IFS=$as_save_IFS
7347 fi
7348 fi
7349 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7350 if test -n "$ac_ct_NMEDIT"; then
7351   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7352 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7353 else
7354   { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7356 fi
7358   if test "x$ac_ct_NMEDIT" = x; then
7359     NMEDIT=":"
7360   else
7361     case $cross_compiling:$ac_tool_warned in
7362 yes:)
7363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7364 whose name does not start with the host triplet.  If you think this
7365 configuration is useful to you, please write to autoconf@gnu.org." >&5
7366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7367 whose name does not start with the host triplet.  If you think this
7368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7369 ac_tool_warned=yes ;;
7370 esac
7371     NMEDIT=$ac_ct_NMEDIT
7372   fi
7373 else
7374   NMEDIT="$ac_cv_prog_NMEDIT"
7375 fi
7378     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7379 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7380 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7381   echo $ECHO_N "(cached) $ECHO_C" >&6
7382 else
7383   lt_cv_apple_cc_single_mod=no
7384       if test -z "${LT_MULTI_MODULE}"; then
7385    # By default we will add the -single_module flag. You can override
7386    # by either setting the environment variable LT_MULTI_MODULE
7387    # non-empty at configure time, or by adding -multi_module to the
7388    # link flags.
7389    echo "int foo(void){return 1;}" > conftest.c
7390    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7391      -dynamiclib ${wl}-single_module conftest.c
7392    if test -f libconftest.dylib; then
7393      lt_cv_apple_cc_single_mod=yes
7394      rm -rf libconftest.dylib*
7395    fi
7396    rm conftest.c
7397       fi
7398 fi
7399 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7400 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7401     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7402 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7403 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7404   echo $ECHO_N "(cached) $ECHO_C" >&6
7405 else
7406   lt_cv_ld_exported_symbols_list=no
7407       save_LDFLAGS=$LDFLAGS
7408       echo "_main" > conftest.sym
7409       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7410       cat >conftest.$ac_ext <<_ACEOF
7411 /* confdefs.h.  */
7412 _ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h.  */
7417 int
7418 main ()
7421   ;
7422   return 0;
7424 _ACEOF
7425 rm -f conftest.$ac_objext conftest$ac_exeext
7426 if { (ac_try="$ac_link"
7427 case "(($ac_try" in
7428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429   *) ac_try_echo=$ac_try;;
7430 esac
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432   (eval "$ac_link") 2>conftest.er1
7433   ac_status=$?
7434   grep -v '^ *+' conftest.er1 >conftest.err
7435   rm -f conftest.er1
7436   cat conftest.err >&5
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); } && {
7439          test -z "$ac_c_werror_flag" ||
7440          test ! -s conftest.err
7441        } && test -s conftest$ac_exeext &&
7442        $as_test_x conftest$ac_exeext; then
7443   lt_cv_ld_exported_symbols_list=yes
7444 else
7445   echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7448         lt_cv_ld_exported_symbols_list=no
7449 fi
7451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7452       conftest$ac_exeext conftest.$ac_ext
7453    LDFLAGS="$save_LDFLAGS"
7455 fi
7456 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7457 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7458     case $host_os in
7459     rhapsody* | darwin1.[0123])
7460       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7461     darwin1.*)
7462      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7463     darwin*)
7464       # if running on 10.5 or later, the deployment target defaults
7465       # to the OS version, if on x86, and 10.4, the deployment
7466       # target defaults to 10.4. Don't you love it?
7467       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7468    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7469      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7470    10.[012]*)
7471      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7472    10.*)
7473      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7474       esac
7475     ;;
7476   esac
7477     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7478       _lt_dar_single_mod='$single_module'
7479     fi
7480     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7481       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7482     else
7483       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7484     fi
7485     if test "$DSYMUTIL" != ":"; then
7486       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7487     else
7488       _lt_dsymutil=
7489     fi
7490     ;;
7491   esac
7494 enable_dlopen=no
7495 enable_win32_dll=no
7497 # Check whether --enable-libtool-lock was given.
7498 if test "${enable_libtool_lock+set}" = set; then
7499   enableval=$enable_libtool_lock;
7500 fi
7502 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7505 # Check whether --with-pic was given.
7506 if test "${with_pic+set}" = set; then
7507   withval=$with_pic; pic_mode="$withval"
7508 else
7509   pic_mode=default
7510 fi
7512 test -z "$pic_mode" && pic_mode=default
7514 # Use C for the default configuration in the libtool script
7515 tagname=
7516 lt_save_CC="$CC"
7517 ac_ext=c
7518 ac_cpp='$CPP $CPPFLAGS'
7519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524 # Source file extension for C test sources.
7525 ac_ext=c
7527 # Object file extension for compiled C test sources.
7528 objext=o
7529 objext=$objext
7531 # Code to be used in simple compile tests
7532 lt_simple_compile_test_code="int some_variable = 0;"
7534 # Code to be used in simple link tests
7535 lt_simple_link_test_code='int main(){return(0);}'
7538 # If no C compiler was specified, use CC.
7539 LTCC=${LTCC-"$CC"}
7541 # If no C compiler flags were specified, use CFLAGS.
7542 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7544 # Allow CC to be a program name with arguments.
7545 compiler=$CC
7548 # save warnings/boilerplate of simple test code
7549 ac_outfile=conftest.$ac_objext
7550 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7551 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7552 _lt_compiler_boilerplate=`cat conftest.err`
7553 $rm conftest*
7555 ac_outfile=conftest.$ac_objext
7556 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7557 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7558 _lt_linker_boilerplate=`cat conftest.err`
7559 $rm -r conftest*
7563 lt_prog_compiler_no_builtin_flag=
7565 if test "$GCC" = yes; then
7566   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7569 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7570 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7571 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574   lt_cv_prog_compiler_rtti_exceptions=no
7575   ac_outfile=conftest.$ac_objext
7576    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7577    lt_compiler_flag="-fno-rtti -fno-exceptions"
7578    # Insert the option either (1) after the last *FLAGS variable, or
7579    # (2) before a word containing "conftest.", or (3) at the end.
7580    # Note that $ac_compile itself does not contain backslashes and begins
7581    # with a dollar sign (not a hyphen), so the echo should work correctly.
7582    # The option is referenced via a variable to avoid confusing sed.
7583    lt_compile=`echo "$ac_compile" | $SED \
7584    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7585    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7586    -e 's:$: $lt_compiler_flag:'`
7587    (eval echo "\"\$as_me:7587: $lt_compile\"" >&5)
7588    (eval "$lt_compile" 2>conftest.err)
7589    ac_status=$?
7590    cat conftest.err >&5
7591    echo "$as_me:7591: \$? = $ac_status" >&5
7592    if (exit $ac_status) && test -s "$ac_outfile"; then
7593      # The compiler can only warn and ignore the option if not recognized
7594      # So say no if there are warnings other than the usual output.
7595      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7596      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7597      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7598        lt_cv_prog_compiler_rtti_exceptions=yes
7599      fi
7600    fi
7601    $rm conftest*
7603 fi
7604 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7605 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7607 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7608     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7609 else
7610     :
7611 fi
7613 fi
7615 lt_prog_compiler_wl=
7616 lt_prog_compiler_pic=
7617 lt_prog_compiler_static=
7619 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7620 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7622   if test "$GCC" = yes; then
7623     lt_prog_compiler_wl='-Wl,'
7624     lt_prog_compiler_static='-static'
7626     case $host_os in
7627       aix*)
7628       # All AIX code is PIC.
7629       if test "$host_cpu" = ia64; then
7630         # AIX 5 now supports IA64 processor
7631         lt_prog_compiler_static='-Bstatic'
7632       fi
7633       ;;
7635     amigaos*)
7636       # FIXME: we need at least 68020 code to build shared libraries, but
7637       # adding the `-m68020' flag to GCC prevents building anything better,
7638       # like `-m68040'.
7639       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7640       ;;
7642     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7643       # PIC is the default for these OSes.
7644       ;;
7646     mingw* | cygwin* | pw32* | os2*)
7647       # This hack is so that the source file can tell whether it is being
7648       # built for inclusion in a dll (and should export symbols for example).
7649       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7650       # (--disable-auto-import) libraries
7651       lt_prog_compiler_pic='-DDLL_EXPORT'
7652       ;;
7654     darwin* | rhapsody*)
7655       # PIC is the default on this platform
7656       # Common symbols not allowed in MH_DYLIB files
7657       lt_prog_compiler_pic='-fno-common'
7658       ;;
7660     interix[3-9]*)
7661       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7662       # Instead, we relocate shared libraries at runtime.
7663       ;;
7665     msdosdjgpp*)
7666       # Just because we use GCC doesn't mean we suddenly get shared libraries
7667       # on systems that don't support them.
7668       lt_prog_compiler_can_build_shared=no
7669       enable_shared=no
7670       ;;
7672     sysv4*MP*)
7673       if test -d /usr/nec; then
7674         lt_prog_compiler_pic=-Kconform_pic
7675       fi
7676       ;;
7678     hpux*)
7679       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7680       # not for PA HP-UX.
7681       case $host_cpu in
7682       hppa*64*|ia64*)
7683         # +Z the default
7684         ;;
7685       *)
7686         lt_prog_compiler_pic='-fPIC'
7687         ;;
7688       esac
7689       ;;
7691     *)
7692       lt_prog_compiler_pic='-fPIC'
7693       ;;
7694     esac
7695   else
7696     # PORTME Check for flag to pass linker flags through the system compiler.
7697     case $host_os in
7698     aix*)
7699       lt_prog_compiler_wl='-Wl,'
7700       if test "$host_cpu" = ia64; then
7701         # AIX 5 now supports IA64 processor
7702         lt_prog_compiler_static='-Bstatic'
7703       else
7704         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7705       fi
7706       ;;
7707       darwin*)
7708         # PIC is the default on this platform
7709         # Common symbols not allowed in MH_DYLIB files
7710        case $cc_basename in
7711          xlc*)
7712          lt_prog_compiler_pic='-qnocommon'
7713          lt_prog_compiler_wl='-Wl,'
7714          ;;
7715        esac
7716        ;;
7718     mingw* | cygwin* | pw32* | os2*)
7719       # This hack is so that the source file can tell whether it is being
7720       # built for inclusion in a dll (and should export symbols for example).
7721       lt_prog_compiler_pic='-DDLL_EXPORT'
7722       ;;
7724     hpux9* | hpux10* | hpux11*)
7725       lt_prog_compiler_wl='-Wl,'
7726       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7727       # not for PA HP-UX.
7728       case $host_cpu in
7729       hppa*64*|ia64*)
7730         # +Z the default
7731         ;;
7732       *)
7733         lt_prog_compiler_pic='+Z'
7734         ;;
7735       esac
7736       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7737       lt_prog_compiler_static='${wl}-a ${wl}archive'
7738       ;;
7740     irix5* | irix6* | nonstopux*)
7741       lt_prog_compiler_wl='-Wl,'
7742       # PIC (with -KPIC) is the default.
7743       lt_prog_compiler_static='-non_shared'
7744       ;;
7746     newsos6)
7747       lt_prog_compiler_pic='-KPIC'
7748       lt_prog_compiler_static='-Bstatic'
7749       ;;
7751     linux* | k*bsd*-gnu)
7752       case $cc_basename in
7753       icc* | ecc*)
7754         lt_prog_compiler_wl='-Wl,'
7755         lt_prog_compiler_pic='-KPIC'
7756         lt_prog_compiler_static='-static'
7757         ;;
7758       pgcc* | pgf77* | pgf90* | pgf95*)
7759         # Portland Group compilers (*not* the Pentium gcc compiler,
7760         # which looks to be a dead project)
7761         lt_prog_compiler_wl='-Wl,'
7762         lt_prog_compiler_pic='-fpic'
7763         lt_prog_compiler_static='-Bstatic'
7764         ;;
7765       ccc*)
7766         lt_prog_compiler_wl='-Wl,'
7767         # All Alpha code is PIC.
7768         lt_prog_compiler_static='-non_shared'
7769         ;;
7770       *)
7771         case `$CC -V 2>&1 | sed 5q` in
7772         *Sun\ C*)
7773           # Sun C 5.9
7774           lt_prog_compiler_pic='-KPIC'
7775           lt_prog_compiler_static='-Bstatic'
7776           lt_prog_compiler_wl='-Wl,'
7777           ;;
7778         *Sun\ F*)
7779           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7780           lt_prog_compiler_pic='-KPIC'
7781           lt_prog_compiler_static='-Bstatic'
7782           lt_prog_compiler_wl=''
7783           ;;
7784         esac
7785         ;;
7786       esac
7787       ;;
7789     osf3* | osf4* | osf5*)
7790       lt_prog_compiler_wl='-Wl,'
7791       # All OSF/1 code is PIC.
7792       lt_prog_compiler_static='-non_shared'
7793       ;;
7795     rdos*)
7796       lt_prog_compiler_static='-non_shared'
7797       ;;
7799     solaris*)
7800       lt_prog_compiler_pic='-KPIC'
7801       lt_prog_compiler_static='-Bstatic'
7802       case $cc_basename in
7803       f77* | f90* | f95*)
7804         lt_prog_compiler_wl='-Qoption ld ';;
7805       *)
7806         lt_prog_compiler_wl='-Wl,';;
7807       esac
7808       ;;
7810     sunos4*)
7811       lt_prog_compiler_wl='-Qoption ld '
7812       lt_prog_compiler_pic='-PIC'
7813       lt_prog_compiler_static='-Bstatic'
7814       ;;
7816     sysv4 | sysv4.2uw2* | sysv4.3*)
7817       lt_prog_compiler_wl='-Wl,'
7818       lt_prog_compiler_pic='-KPIC'
7819       lt_prog_compiler_static='-Bstatic'
7820       ;;
7822     sysv4*MP*)
7823       if test -d /usr/nec ;then
7824         lt_prog_compiler_pic='-Kconform_pic'
7825         lt_prog_compiler_static='-Bstatic'
7826       fi
7827       ;;
7829     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7830       lt_prog_compiler_wl='-Wl,'
7831       lt_prog_compiler_pic='-KPIC'
7832       lt_prog_compiler_static='-Bstatic'
7833       ;;
7835     unicos*)
7836       lt_prog_compiler_wl='-Wl,'
7837       lt_prog_compiler_can_build_shared=no
7838       ;;
7840     uts4*)
7841       lt_prog_compiler_pic='-pic'
7842       lt_prog_compiler_static='-Bstatic'
7843       ;;
7845     *)
7846       lt_prog_compiler_can_build_shared=no
7847       ;;
7848     esac
7849   fi
7851 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7852 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7855 # Check to make sure the PIC flag actually works.
7857 if test -n "$lt_prog_compiler_pic"; then
7859 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7860 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7861 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7862   echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864   lt_cv_prog_compiler_pic_works=no
7865   ac_outfile=conftest.$ac_objext
7866    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7867    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7868    # Insert the option either (1) after the last *FLAGS variable, or
7869    # (2) before a word containing "conftest.", or (3) at the end.
7870    # Note that $ac_compile itself does not contain backslashes and begins
7871    # with a dollar sign (not a hyphen), so the echo should work correctly.
7872    # The option is referenced via a variable to avoid confusing sed.
7873    lt_compile=`echo "$ac_compile" | $SED \
7874    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7875    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7876    -e 's:$: $lt_compiler_flag:'`
7877    (eval echo "\"\$as_me:7877: $lt_compile\"" >&5)
7878    (eval "$lt_compile" 2>conftest.err)
7879    ac_status=$?
7880    cat conftest.err >&5
7881    echo "$as_me:7881: \$? = $ac_status" >&5
7882    if (exit $ac_status) && test -s "$ac_outfile"; then
7883      # The compiler can only warn and ignore the option if not recognized
7884      # So say no if there are warnings other than the usual output.
7885      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7886      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7887      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7888        lt_cv_prog_compiler_pic_works=yes
7889      fi
7890    fi
7891    $rm conftest*
7893 fi
7894 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7895 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7897 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7898     case $lt_prog_compiler_pic in
7899      "" | " "*) ;;
7900      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7901      esac
7902 else
7903     lt_prog_compiler_pic=
7904      lt_prog_compiler_can_build_shared=no
7905 fi
7907 fi
7908 case $host_os in
7909   # For platforms which do not support PIC, -DPIC is meaningless:
7910   *djgpp*)
7911     lt_prog_compiler_pic=
7912     ;;
7913   *)
7914     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7915     ;;
7916 esac
7919 # Check to make sure the static flag actually works.
7921 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7922 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7923 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7924 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7925   echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927   lt_cv_prog_compiler_static_works=no
7928    save_LDFLAGS="$LDFLAGS"
7929    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7930    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7931    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7932      # The linker can only warn and ignore the option if not recognized
7933      # So say no if there are warnings
7934      if test -s conftest.err; then
7935        # Append any errors to the config.log.
7936        cat conftest.err 1>&5
7937        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7938        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7939        if diff conftest.exp conftest.er2 >/dev/null; then
7940          lt_cv_prog_compiler_static_works=yes
7941        fi
7942      else
7943        lt_cv_prog_compiler_static_works=yes
7944      fi
7945    fi
7946    $rm -r conftest*
7947    LDFLAGS="$save_LDFLAGS"
7949 fi
7950 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7951 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7953 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7954     :
7955 else
7956     lt_prog_compiler_static=
7957 fi
7960 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7961 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7962 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7963   echo $ECHO_N "(cached) $ECHO_C" >&6
7964 else
7965   lt_cv_prog_compiler_c_o=no
7966    $rm -r conftest 2>/dev/null
7967    mkdir conftest
7968    cd conftest
7969    mkdir out
7970    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7972    lt_compiler_flag="-o out/conftest2.$ac_objext"
7973    # Insert the option either (1) after the last *FLAGS variable, or
7974    # (2) before a word containing "conftest.", or (3) at the end.
7975    # Note that $ac_compile itself does not contain backslashes and begins
7976    # with a dollar sign (not a hyphen), so the echo should work correctly.
7977    lt_compile=`echo "$ac_compile" | $SED \
7978    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7979    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7980    -e 's:$: $lt_compiler_flag:'`
7981    (eval echo "\"\$as_me:7981: $lt_compile\"" >&5)
7982    (eval "$lt_compile" 2>out/conftest.err)
7983    ac_status=$?
7984    cat out/conftest.err >&5
7985    echo "$as_me:7985: \$? = $ac_status" >&5
7986    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7987    then
7988      # The compiler can only warn and ignore the option if not recognized
7989      # So say no if there are warnings
7990      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7991      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7992      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7993        lt_cv_prog_compiler_c_o=yes
7994      fi
7995    fi
7996    chmod u+w . 2>&5
7997    $rm conftest*
7998    # SGI C++ compiler will create directory out/ii_files/ for
7999    # template instantiation
8000    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8001    $rm out/* && rmdir out
8002    cd ..
8003    rmdir conftest
8004    $rm conftest*
8006 fi
8007 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8008 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8011 hard_links="nottested"
8012 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8013   # do not overwrite the value of need_locks provided by the user
8014   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8015 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8016   hard_links=yes
8017   $rm conftest*
8018   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8019   touch conftest.a
8020   ln conftest.a conftest.b 2>&5 || hard_links=no
8021   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8022   { echo "$as_me:$LINENO: result: $hard_links" >&5
8023 echo "${ECHO_T}$hard_links" >&6; }
8024   if test "$hard_links" = no; then
8025     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8026 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8027     need_locks=warn
8028   fi
8029 else
8030   need_locks=no
8031 fi
8033 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8034 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8036   runpath_var=
8037   allow_undefined_flag=
8038   enable_shared_with_static_runtimes=no
8039   archive_cmds=
8040   archive_expsym_cmds=
8041   old_archive_From_new_cmds=
8042   old_archive_from_expsyms_cmds=
8043   export_dynamic_flag_spec=
8044   whole_archive_flag_spec=
8045   thread_safe_flag_spec=
8046   hardcode_libdir_flag_spec=
8047   hardcode_libdir_flag_spec_ld=
8048   hardcode_libdir_separator=
8049   hardcode_direct=no
8050   hardcode_minus_L=no
8051   hardcode_shlibpath_var=unsupported
8052   link_all_deplibs=unknown
8053   hardcode_automatic=no
8054   module_cmds=
8055   module_expsym_cmds=
8056   always_export_symbols=no
8057   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8058   # include_expsyms should be a list of space-separated symbols to be *always*
8059   # included in the symbol list
8060   include_expsyms=
8061   # exclude_expsyms can be an extended regexp of symbols to exclude
8062   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8063   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8064   # as well as any symbol that contains `d'.
8065   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8066   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8067   # platforms (ab)use it in PIC code, but their linkers get confused if
8068   # the symbol is explicitly referenced.  Since portable code cannot
8069   # rely on this symbol name, it's probably fine to never include it in
8070   # preloaded symbol tables.
8071   # Exclude shared library initialization/finalization symbols.
8072   extract_expsyms_cmds=
8073   # Just being paranoid about ensuring that cc_basename is set.
8074   for cc_temp in $compiler""; do
8075   case $cc_temp in
8076     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8077     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8078     \-*) ;;
8079     *) break;;
8080   esac
8081 done
8082 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8084   case $host_os in
8085   cygwin* | mingw* | pw32*)
8086     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8087     # When not using gcc, we currently assume that we are using
8088     # Microsoft Visual C++.
8089     if test "$GCC" != yes; then
8090       with_gnu_ld=no
8091     fi
8092     ;;
8093   interix*)
8094     # we just hope/assume this is gcc and not c89 (= MSVC++)
8095     with_gnu_ld=yes
8096     ;;
8097   openbsd*)
8098     with_gnu_ld=no
8099     ;;
8100   esac
8102   ld_shlibs=yes
8103   if test "$with_gnu_ld" = yes; then
8104     # If archive_cmds runs LD, not CC, wlarc should be empty
8105     wlarc='${wl}'
8107     # Set some defaults for GNU ld with shared library support. These
8108     # are reset later if shared libraries are not supported. Putting them
8109     # here allows them to be overridden if necessary.
8110     runpath_var=LD_RUN_PATH
8111     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8112     export_dynamic_flag_spec='${wl}--export-dynamic'
8113     # ancient GNU ld didn't support --whole-archive et. al.
8114     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8115         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8116       else
8117         whole_archive_flag_spec=
8118     fi
8119     supports_anon_versioning=no
8120     case `$LD -v 2>/dev/null` in
8121       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8122       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8123       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8124       *\ 2.11.*) ;; # other 2.11 versions
8125       *) supports_anon_versioning=yes ;;
8126     esac
8128     # See if GNU ld supports shared libraries.
8129     case $host_os in
8130     aix[3-9]*)
8131       # On AIX/PPC, the GNU linker is very broken
8132       if test "$host_cpu" != ia64; then
8133         ld_shlibs=no
8134         cat <<EOF 1>&2
8136 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8137 *** to be unable to reliably create shared libraries on AIX.
8138 *** Therefore, libtool is disabling shared libraries support.  If you
8139 *** really care for shared libraries, you may want to modify your PATH
8140 *** so that a non-GNU linker is found, and then restart.
8142 EOF
8143       fi
8144       ;;
8146     amigaos*)
8147       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)'
8148       hardcode_libdir_flag_spec='-L$libdir'
8149       hardcode_minus_L=yes
8151       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8152       # that the semantics of dynamic libraries on AmigaOS, at least up
8153       # to version 4, is to share data among multiple programs linked
8154       # with the same dynamic library.  Since this doesn't match the
8155       # behavior of shared libraries on other platforms, we can't use
8156       # them.
8157       ld_shlibs=no
8158       ;;
8160     beos*)
8161       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8162         allow_undefined_flag=unsupported
8163         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8164         # support --undefined.  This deserves some investigation.  FIXME
8165         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8166       else
8167         ld_shlibs=no
8168       fi
8169       ;;
8171     cygwin* | mingw* | pw32*)
8172       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8173       # as there is no search path for DLLs.
8174       hardcode_libdir_flag_spec='-L$libdir'
8175       allow_undefined_flag=unsupported
8176       always_export_symbols=no
8177       enable_shared_with_static_runtimes=yes
8178       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8180       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8181         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8182         # If the export-symbols file already is a .def file (1st line
8183         # is EXPORTS), use it as is; otherwise, prepend...
8184         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8185           cp $export_symbols $output_objdir/$soname.def;
8186         else
8187           echo EXPORTS > $output_objdir/$soname.def;
8188           cat $export_symbols >> $output_objdir/$soname.def;
8189         fi~
8190         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8191       else
8192         ld_shlibs=no
8193       fi
8194       ;;
8196     interix[3-9]*)
8197       hardcode_direct=no
8198       hardcode_shlibpath_var=no
8199       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8200       export_dynamic_flag_spec='${wl}-E'
8201       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8202       # Instead, shared libraries are loaded at an image base (0x10000000 by
8203       # default) and relocated if they conflict, which is a slow very memory
8204       # consuming and fragmenting process.  To avoid this, we pick a random,
8205       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8206       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8207       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8208       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'
8209       ;;
8211     gnu* | linux* | k*bsd*-gnu)
8212       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8213         tmp_addflag=
8214         case $cc_basename,$host_cpu in
8215         pgcc*)                          # Portland Group C compiler
8216           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'
8217           tmp_addflag=' $pic_flag'
8218           ;;
8219         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8220           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'
8221           tmp_addflag=' $pic_flag -Mnomain' ;;
8222         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8223           tmp_addflag=' -i_dynamic' ;;
8224         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8225           tmp_addflag=' -i_dynamic -nofor_main' ;;
8226         ifc* | ifort*)                  # Intel Fortran compiler
8227           tmp_addflag=' -nofor_main' ;;
8228         esac
8229         case `$CC -V 2>&1 | sed 5q` in
8230         *Sun\ C*)                       # Sun C 5.9
8231           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'
8232           tmp_sharedflag='-G' ;;
8233         *Sun\ F*)                       # Sun Fortran 8.3
8234           tmp_sharedflag='-G' ;;
8235         *)
8236           tmp_sharedflag='-shared' ;;
8237         esac
8238         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240         if test $supports_anon_versioning = yes; then
8241           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8242   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8243   $echo "local: *; };" >> $output_objdir/$libname.ver~
8244           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8245         fi
8246         link_all_deplibs=no
8247       else
8248         ld_shlibs=no
8249       fi
8250       ;;
8252     netbsd* | netbsdelf*-gnu)
8253       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8254         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8255         wlarc=
8256       else
8257         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8258         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8259       fi
8260       ;;
8262     solaris*)
8263       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8264         ld_shlibs=no
8265         cat <<EOF 1>&2
8267 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8268 *** create shared libraries on Solaris systems.  Therefore, libtool
8269 *** is disabling shared libraries support.  We urge you to upgrade GNU
8270 *** binutils to release 2.9.1 or newer.  Another option is to modify
8271 *** your PATH or compiler configuration so that the native linker is
8272 *** used, and then restart.
8274 EOF
8275       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8276         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8277         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8278       else
8279         ld_shlibs=no
8280       fi
8281       ;;
8283     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8284       case `$LD -v 2>&1` in
8285         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8286         ld_shlibs=no
8287         cat <<_LT_EOF 1>&2
8289 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8290 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8291 *** is disabling shared libraries support.  We urge you to upgrade GNU
8292 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8293 *** your PATH or compiler configuration so that the native linker is
8294 *** used, and then restart.
8296 _LT_EOF
8297         ;;
8298         *)
8299           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8300             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8301             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8302             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8303           else
8304             ld_shlibs=no
8305           fi
8306         ;;
8307       esac
8308       ;;
8310     sunos4*)
8311       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8312       wlarc=
8313       hardcode_direct=yes
8314       hardcode_shlibpath_var=no
8315       ;;
8317     *)
8318       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8319         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8321       else
8322         ld_shlibs=no
8323       fi
8324       ;;
8325     esac
8327     if test "$ld_shlibs" = no; then
8328       runpath_var=
8329       hardcode_libdir_flag_spec=
8330       export_dynamic_flag_spec=
8331       whole_archive_flag_spec=
8332     fi
8333   else
8334     # PORTME fill in a description of your system's linker (not GNU ld)
8335     case $host_os in
8336     aix3*)
8337       allow_undefined_flag=unsupported
8338       always_export_symbols=yes
8339       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'
8340       # Note: this linker hardcodes the directories in LIBPATH if there
8341       # are no directories specified by -L.
8342       hardcode_minus_L=yes
8343       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8344         # Neither direct hardcoding nor static linking is supported with a
8345         # broken collect2.
8346         hardcode_direct=unsupported
8347       fi
8348       ;;
8350     aix[4-9]*)
8351       if test "$host_cpu" = ia64; then
8352         # On IA64, the linker does run time linking by default, so we don't
8353         # have to do anything special.
8354         aix_use_runtimelinking=no
8355         exp_sym_flag='-Bexport'
8356         no_entry_flag=""
8357       else
8358         # If we're using GNU nm, then we don't want the "-C" option.
8359         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8360         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8361           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'
8362         else
8363           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'
8364         fi
8365         aix_use_runtimelinking=no
8367         # Test if we are trying to use run time linking or normal
8368         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8369         # need to do runtime linking.
8370         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8371           for ld_flag in $LDFLAGS; do
8372           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8373             aix_use_runtimelinking=yes
8374             break
8375           fi
8376           done
8377           ;;
8378         esac
8380         exp_sym_flag='-bexport'
8381         no_entry_flag='-bnoentry'
8382       fi
8384       # When large executables or shared objects are built, AIX ld can
8385       # have problems creating the table of contents.  If linking a library
8386       # or program results in "error TOC overflow" add -mminimal-toc to
8387       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8388       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8390       archive_cmds=''
8391       hardcode_direct=yes
8392       hardcode_libdir_separator=':'
8393       link_all_deplibs=yes
8395       if test "$GCC" = yes; then
8396         case $host_os in aix4.[012]|aix4.[012].*)
8397         # We only want to do this on AIX 4.2 and lower, the check
8398         # below for broken collect2 doesn't work under 4.3+
8399           collect2name=`${CC} -print-prog-name=collect2`
8400           if test -f "$collect2name" && \
8401            strings "$collect2name" | grep resolve_lib_name >/dev/null
8402           then
8403           # We have reworked collect2
8404           :
8405           else
8406           # We have old collect2
8407           hardcode_direct=unsupported
8408           # It fails to find uninstalled libraries when the uninstalled
8409           # path is not listed in the libpath.  Setting hardcode_minus_L
8410           # to unsupported forces relinking
8411           hardcode_minus_L=yes
8412           hardcode_libdir_flag_spec='-L$libdir'
8413           hardcode_libdir_separator=
8414           fi
8415           ;;
8416         esac
8417         shared_flag='-shared'
8418         if test "$aix_use_runtimelinking" = yes; then
8419           shared_flag="$shared_flag "'${wl}-G'
8420         fi
8421       else
8422         # not using gcc
8423         if test "$host_cpu" = ia64; then
8424         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8425         # chokes on -Wl,-G. The following line is correct:
8426           shared_flag='-G'
8427         else
8428           if test "$aix_use_runtimelinking" = yes; then
8429             shared_flag='${wl}-G'
8430           else
8431             shared_flag='${wl}-bM:SRE'
8432           fi
8433         fi
8434       fi
8436       # It seems that -bexpall does not export symbols beginning with
8437       # underscore (_), so it is better to generate a list of symbols to export.
8438       always_export_symbols=yes
8439       if test "$aix_use_runtimelinking" = yes; then
8440         # Warning - without using the other runtime loading flags (-brtl),
8441         # -berok will link without error, but may produce a broken library.
8442         allow_undefined_flag='-berok'
8443        # Determine the default libpath from the value encoded in an empty executable.
8444        cat >conftest.$ac_ext <<_ACEOF
8445 /* confdefs.h.  */
8446 _ACEOF
8447 cat confdefs.h >>conftest.$ac_ext
8448 cat >>conftest.$ac_ext <<_ACEOF
8449 /* end confdefs.h.  */
8451 int
8452 main ()
8455   ;
8456   return 0;
8458 _ACEOF
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (ac_try="$ac_link"
8461 case "(($ac_try" in
8462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463   *) ac_try_echo=$ac_try;;
8464 esac
8465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8466   (eval "$ac_link") 2>conftest.er1
8467   ac_status=$?
8468   grep -v '^ *+' conftest.er1 >conftest.err
8469   rm -f conftest.er1
8470   cat conftest.err >&5
8471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } && {
8473          test -z "$ac_c_werror_flag" ||
8474          test ! -s conftest.err
8475        } && test -s conftest$ac_exeext &&
8476        $as_test_x conftest$ac_exeext; then
8478 lt_aix_libpath_sed='
8479     /Import File Strings/,/^$/ {
8480         /^0/ {
8481             s/^0  *\(.*\)$/\1/
8482             p
8483         }
8484     }'
8485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8486 # Check for a 64-bit object if we didn't find anything.
8487 if test -z "$aix_libpath"; then
8488   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8489 fi
8490 else
8491   echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8495 fi
8497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8498       conftest$ac_exeext conftest.$ac_ext
8499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8501        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8502         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"
8503        else
8504         if test "$host_cpu" = ia64; then
8505           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8506           allow_undefined_flag="-z nodefs"
8507           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"
8508         else
8509          # Determine the default libpath from the value encoded in an empty executable.
8510          cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h.  */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h.  */
8517 int
8518 main ()
8521   ;
8522   return 0;
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (ac_try="$ac_link"
8527 case "(($ac_try" in
8528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529   *) ac_try_echo=$ac_try;;
8530 esac
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532   (eval "$ac_link") 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } && {
8539          test -z "$ac_c_werror_flag" ||
8540          test ! -s conftest.err
8541        } && test -s conftest$ac_exeext &&
8542        $as_test_x conftest$ac_exeext; then
8544 lt_aix_libpath_sed='
8545     /Import File Strings/,/^$/ {
8546         /^0/ {
8547             s/^0  *\(.*\)$/\1/
8548             p
8549         }
8550     }'
8551 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8552 # Check for a 64-bit object if we didn't find anything.
8553 if test -z "$aix_libpath"; then
8554   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8555 fi
8556 else
8557   echo "$as_me: failed program was:" >&5
8558 sed 's/^/| /' conftest.$ac_ext >&5
8561 fi
8563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8564       conftest$ac_exeext conftest.$ac_ext
8565 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8567          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8568           # Warning - without using the other run time loading flags,
8569           # -berok will link without error, but may produce a broken library.
8570           no_undefined_flag=' ${wl}-bernotok'
8571           allow_undefined_flag=' ${wl}-berok'
8572           # Exported symbols can be pulled into shared objects from archives
8573           whole_archive_flag_spec='$convenience'
8574           archive_cmds_need_lc=yes
8575           # This is similar to how AIX traditionally builds its shared libraries.
8576           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'
8577         fi
8578       fi
8579       ;;
8581     amigaos*)
8582       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)'
8583       hardcode_libdir_flag_spec='-L$libdir'
8584       hardcode_minus_L=yes
8585       # see comment about different semantics on the GNU ld section
8586       ld_shlibs=no
8587       ;;
8589     bsdi[45]*)
8590       export_dynamic_flag_spec=-rdynamic
8591       ;;
8593     cygwin* | mingw* | pw32*)
8594       # When not using gcc, we currently assume that we are using
8595       # Microsoft Visual C++.
8596       # hardcode_libdir_flag_spec is actually meaningless, as there is
8597       # no search path for DLLs.
8598       hardcode_libdir_flag_spec=' '
8599       allow_undefined_flag=unsupported
8600       # Tell ltmain to make .lib files, not .a files.
8601       libext=lib
8602       # Tell ltmain to make .dll files, not .so files.
8603       shrext_cmds=".dll"
8604       # FIXME: Setting linknames here is a bad hack.
8605       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8606       # The linker will automatically build a .lib file if we build a DLL.
8607       old_archive_From_new_cmds='true'
8608       # FIXME: Should let the user specify the lib program.
8609       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8610       fix_srcfile_path='`cygpath -w "$srcfile"`'
8611       enable_shared_with_static_runtimes=yes
8612       ;;
8614     darwin* | rhapsody*)
8615       case $host_os in
8616         rhapsody* | darwin1.[012])
8617          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8618          ;;
8619        *) # Darwin 1.3 on
8620          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8621            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8622          else
8623            case ${MACOSX_DEPLOYMENT_TARGET} in
8624              10.[012])
8625                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8626                ;;
8627              10.*)
8628                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8629                ;;
8630            esac
8631          fi
8632          ;;
8633       esac
8634       archive_cmds_need_lc=no
8635       hardcode_direct=no
8636       hardcode_automatic=yes
8637       hardcode_shlibpath_var=unsupported
8638       whole_archive_flag_spec=''
8639       link_all_deplibs=yes
8640     if test "$GCC" = yes ; then
8641         output_verbose_link_cmd='echo'
8642         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8643         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8644         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}"
8645         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}"
8646     else
8647       case $cc_basename in
8648         xlc*)
8649          output_verbose_link_cmd='echo'
8650          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8651          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8652           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8653          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}'
8654           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}'
8655           ;;
8656        *)
8657          ld_shlibs=no
8658           ;;
8659       esac
8660     fi
8661       ;;
8663     dgux*)
8664       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665       hardcode_libdir_flag_spec='-L$libdir'
8666       hardcode_shlibpath_var=no
8667       ;;
8669     freebsd1*)
8670       ld_shlibs=no
8671       ;;
8673     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8674     # support.  Future versions do this automatically, but an explicit c++rt0.o
8675     # does not break anything, and helps significantly (at the cost of a little
8676     # extra space).
8677     freebsd2.2*)
8678       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8679       hardcode_libdir_flag_spec='-R$libdir'
8680       hardcode_direct=yes
8681       hardcode_shlibpath_var=no
8682       ;;
8684     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8685     freebsd2*)
8686       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8687       hardcode_direct=yes
8688       hardcode_minus_L=yes
8689       hardcode_shlibpath_var=no
8690       ;;
8692     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8693     freebsd* | dragonfly*)
8694       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8695       hardcode_libdir_flag_spec='-R$libdir'
8696       hardcode_direct=yes
8697       hardcode_shlibpath_var=no
8698       ;;
8700     hpux9*)
8701       if test "$GCC" = yes; then
8702         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'
8703       else
8704         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'
8705       fi
8706       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8707       hardcode_libdir_separator=:
8708       hardcode_direct=yes
8710       # hardcode_minus_L: Not really in the search PATH,
8711       # but as the default location of the library.
8712       hardcode_minus_L=yes
8713       export_dynamic_flag_spec='${wl}-E'
8714       ;;
8716     hpux10*)
8717       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8718         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8719       else
8720         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8721       fi
8722       if test "$with_gnu_ld" = no; then
8723         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8724         hardcode_libdir_separator=:
8726         hardcode_direct=yes
8727         export_dynamic_flag_spec='${wl}-E'
8729         # hardcode_minus_L: Not really in the search PATH,
8730         # but as the default location of the library.
8731         hardcode_minus_L=yes
8732       fi
8733       ;;
8735     hpux11*)
8736       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8737         case $host_cpu in
8738         hppa*64*)
8739           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8740           ;;
8741         ia64*)
8742           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8743           ;;
8744         *)
8745           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8746           ;;
8747         esac
8748       else
8749         case $host_cpu in
8750         hppa*64*)
8751           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8752           ;;
8753         ia64*)
8754           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8755           ;;
8756         *)
8757           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8758           ;;
8759         esac
8760       fi
8761       if test "$with_gnu_ld" = no; then
8762         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8763         hardcode_libdir_separator=:
8765         case $host_cpu in
8766         hppa*64*|ia64*)
8767           hardcode_libdir_flag_spec_ld='+b $libdir'
8768           hardcode_direct=no
8769           hardcode_shlibpath_var=no
8770           ;;
8771         *)
8772           hardcode_direct=yes
8773           export_dynamic_flag_spec='${wl}-E'
8775           # hardcode_minus_L: Not really in the search PATH,
8776           # but as the default location of the library.
8777           hardcode_minus_L=yes
8778           ;;
8779         esac
8780       fi
8781       ;;
8783     irix5* | irix6* | nonstopux*)
8784       if test "$GCC" = yes; then
8785         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'
8786       else
8787         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'
8788         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8789       fi
8790       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8791       hardcode_libdir_separator=:
8792       link_all_deplibs=yes
8793       ;;
8795     netbsd* | netbsdelf*-gnu)
8796       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8797         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8798       else
8799         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8800       fi
8801       hardcode_libdir_flag_spec='-R$libdir'
8802       hardcode_direct=yes
8803       hardcode_shlibpath_var=no
8804       ;;
8806     newsos6)
8807       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8808       hardcode_direct=yes
8809       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8810       hardcode_libdir_separator=:
8811       hardcode_shlibpath_var=no
8812       ;;
8814     openbsd*)
8815       if test -f /usr/libexec/ld.so; then
8816         hardcode_direct=yes
8817         hardcode_shlibpath_var=no
8818         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8819           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8820           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8821           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8822           export_dynamic_flag_spec='${wl}-E'
8823         else
8824           case $host_os in
8825            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8826              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8827              hardcode_libdir_flag_spec='-R$libdir'
8828              ;;
8829            *)
8830              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8831              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832              ;;
8833           esac
8834         fi
8835       else
8836         ld_shlibs=no
8837       fi
8838       ;;
8840     os2*)
8841       hardcode_libdir_flag_spec='-L$libdir'
8842       hardcode_minus_L=yes
8843       allow_undefined_flag=unsupported
8844       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'
8845       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8846       ;;
8848     osf3*)
8849       if test "$GCC" = yes; then
8850         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8851         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'
8852       else
8853         allow_undefined_flag=' -expect_unresolved \*'
8854         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'
8855       fi
8856       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8857       hardcode_libdir_separator=:
8858       ;;
8860     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8861       if test "$GCC" = yes; then
8862         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8863         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'
8864         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865       else
8866         allow_undefined_flag=' -expect_unresolved \*'
8867         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'
8868         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8869         $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'
8871         # Both c and cxx compiler support -rpath directly
8872         hardcode_libdir_flag_spec='-rpath $libdir'
8873       fi
8874       hardcode_libdir_separator=:
8875       ;;
8877     solaris*)
8878       no_undefined_flag=' -z text'
8879       if test "$GCC" = yes; then
8880         wlarc='${wl}'
8881         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8882         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8883           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8884       else
8885         wlarc=''
8886         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8887         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8888         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8889       fi
8890       hardcode_libdir_flag_spec='-R$libdir'
8891       hardcode_shlibpath_var=no
8892       case $host_os in
8893       solaris2.[0-5] | solaris2.[0-5].*) ;;
8894       *)
8895         # The compiler driver will combine and reorder linker options,
8896         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8897         # but is careful enough not to reorder.
8898         # Supported since Solaris 2.6 (maybe 2.5.1?)
8899         if test "$GCC" = yes; then
8900           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8901         else
8902           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8903         fi
8904         ;;
8905       esac
8906       link_all_deplibs=yes
8907       ;;
8909     sunos4*)
8910       if test "x$host_vendor" = xsequent; then
8911         # Use $CC to link under sequent, because it throws in some extra .o
8912         # files that make .init and .fini sections work.
8913         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8914       else
8915         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8916       fi
8917       hardcode_libdir_flag_spec='-L$libdir'
8918       hardcode_direct=yes
8919       hardcode_minus_L=yes
8920       hardcode_shlibpath_var=no
8921       ;;
8923     sysv4)
8924       case $host_vendor in
8925         sni)
8926           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8927           hardcode_direct=yes # is this really true???
8928         ;;
8929         siemens)
8930           ## LD is ld it makes a PLAMLIB
8931           ## CC just makes a GrossModule.
8932           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8933           reload_cmds='$CC -r -o $output$reload_objs'
8934           hardcode_direct=no
8935         ;;
8936         motorola)
8937           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8939         ;;
8940       esac
8941       runpath_var='LD_RUN_PATH'
8942       hardcode_shlibpath_var=no
8943       ;;
8945     sysv4.3*)
8946       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8947       hardcode_shlibpath_var=no
8948       export_dynamic_flag_spec='-Bexport'
8949       ;;
8951     sysv4*MP*)
8952       if test -d /usr/nec; then
8953         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8954         hardcode_shlibpath_var=no
8955         runpath_var=LD_RUN_PATH
8956         hardcode_runpath_var=yes
8957         ld_shlibs=yes
8958       fi
8959       ;;
8961     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8962       no_undefined_flag='${wl}-z,text'
8963       archive_cmds_need_lc=no
8964       hardcode_shlibpath_var=no
8965       runpath_var='LD_RUN_PATH'
8967       if test "$GCC" = yes; then
8968         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8969         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8970       else
8971         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8972         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8973       fi
8974       ;;
8976     sysv5* | sco3.2v5* | sco5v6*)
8977       # Note: We can NOT use -z defs as we might desire, because we do not
8978       # link with -lc, and that would cause any symbols used from libc to
8979       # always be unresolved, which means just about no library would
8980       # ever link correctly.  If we're not using GNU ld we use -z text
8981       # though, which does catch some bad symbols but isn't as heavy-handed
8982       # as -z defs.
8983       no_undefined_flag='${wl}-z,text'
8984       allow_undefined_flag='${wl}-z,nodefs'
8985       archive_cmds_need_lc=no
8986       hardcode_shlibpath_var=no
8987       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8988       hardcode_libdir_separator=':'
8989       link_all_deplibs=yes
8990       export_dynamic_flag_spec='${wl}-Bexport'
8991       runpath_var='LD_RUN_PATH'
8993       if test "$GCC" = yes; then
8994         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8995         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8996       else
8997         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8998         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8999       fi
9000       ;;
9002     uts4*)
9003       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9004       hardcode_libdir_flag_spec='-L$libdir'
9005       hardcode_shlibpath_var=no
9006       ;;
9008     *)
9009       ld_shlibs=no
9010       ;;
9011     esac
9012   fi
9014 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9015 echo "${ECHO_T}$ld_shlibs" >&6; }
9016 test "$ld_shlibs" = no && can_build_shared=no
9019 # Do we need to explicitly link libc?
9021 case "x$archive_cmds_need_lc" in
9022 x|xyes)
9023   # Assume -lc should be added
9024   archive_cmds_need_lc=yes
9026   if test "$enable_shared" = yes && test "$GCC" = yes; then
9027     case $archive_cmds in
9028     *'~'*)
9029       # FIXME: we may have to deal with multi-command sequences.
9030       ;;
9031     '$CC '*)
9032       # Test whether the compiler implicitly links with -lc since on some
9033       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9034       # to ld, don't add -lc before -lgcc.
9035       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9036 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9037       $rm conftest*
9038       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9040       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9041   (eval $ac_compile) 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } 2>conftest.err; then
9045         soname=conftest
9046         lib=conftest
9047         libobjs=conftest.$ac_objext
9048         deplibs=
9049         wl=$lt_prog_compiler_wl
9050         pic_flag=$lt_prog_compiler_pic
9051         compiler_flags=-v
9052         linker_flags=-v
9053         verstring=
9054         output_objdir=.
9055         libname=conftest
9056         lt_save_allow_undefined_flag=$allow_undefined_flag
9057         allow_undefined_flag=
9058         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9059   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }
9063         then
9064           archive_cmds_need_lc=no
9065         else
9066           archive_cmds_need_lc=yes
9067         fi
9068         allow_undefined_flag=$lt_save_allow_undefined_flag
9069       else
9070         cat conftest.err 1>&5
9071       fi
9072       $rm conftest*
9073       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9074 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9075       ;;
9076     esac
9077   fi
9078   ;;
9079 esac
9081 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9082 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9083 library_names_spec=
9084 libname_spec='lib$name'
9085 soname_spec=
9086 shrext_cmds=".so"
9087 postinstall_cmds=
9088 postuninstall_cmds=
9089 finish_cmds=
9090 finish_eval=
9091 shlibpath_var=
9092 shlibpath_overrides_runpath=unknown
9093 version_type=none
9094 dynamic_linker="$host_os ld.so"
9095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9097 if test "$GCC" = yes; then
9098   case $host_os in
9099     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9100     *) lt_awk_arg="/^libraries:/" ;;
9101   esac
9102   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9103   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9104     # if the path contains ";" then we assume it to be the separator
9105     # otherwise default to the standard path separator (i.e. ":") - it is
9106     # assumed that no part of a normal pathname contains ";" but that should
9107     # okay in the real world where ";" in dirpaths is itself problematic.
9108     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9109   else
9110     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9111   fi
9112   # Ok, now we have the path, separated by spaces, we can step through it
9113   # and add multilib dir if necessary.
9114   lt_tmp_lt_search_path_spec=
9115   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9116   for lt_sys_path in $lt_search_path_spec; do
9117     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9118       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9119     else
9120       test -d "$lt_sys_path" && \
9121         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9122     fi
9123   done
9124   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9125 BEGIN {RS=" "; FS="/|\n";} {
9126   lt_foo="";
9127   lt_count=0;
9128   for (lt_i = NF; lt_i > 0; lt_i--) {
9129     if ($lt_i != "" && $lt_i != ".") {
9130       if ($lt_i == "..") {
9131         lt_count++;
9132       } else {
9133         if (lt_count == 0) {
9134           lt_foo="/" $lt_i lt_foo;
9135         } else {
9136           lt_count--;
9137         }
9138       }
9139     }
9140   }
9141   if (lt_foo != "") { lt_freq[lt_foo]++; }
9142   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9143 }'`
9144   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9145 else
9146   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9147 fi
9148 need_lib_prefix=unknown
9149 hardcode_into_libs=no
9151 # when you set need_version to no, make sure it does not cause -set_version
9152 # flags to be left without arguments
9153 need_version=unknown
9155 case $host_os in
9156 aix3*)
9157   version_type=linux
9158   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9159   shlibpath_var=LIBPATH
9161   # AIX 3 has no versioning support, so we append a major version to the name.
9162   soname_spec='${libname}${release}${shared_ext}$major'
9163   ;;
9165 aix[4-9]*)
9166   version_type=linux
9167   need_lib_prefix=no
9168   need_version=no
9169   hardcode_into_libs=yes
9170   if test "$host_cpu" = ia64; then
9171     # AIX 5 supports IA64
9172     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9173     shlibpath_var=LD_LIBRARY_PATH
9174   else
9175     # With GCC up to 2.95.x, collect2 would create an import file
9176     # for dependence libraries.  The import file would start with
9177     # the line `#! .'.  This would cause the generated library to
9178     # depend on `.', always an invalid library.  This was fixed in
9179     # development snapshots of GCC prior to 3.0.
9180     case $host_os in
9181       aix4 | aix4.[01] | aix4.[01].*)
9182       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9183            echo ' yes '
9184            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9185         :
9186       else
9187         can_build_shared=no
9188       fi
9189       ;;
9190     esac
9191     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9192     # soname into executable. Probably we can add versioning support to
9193     # collect2, so additional links can be useful in future.
9194     if test "$aix_use_runtimelinking" = yes; then
9195       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9196       # instead of lib<name>.a to let people know that these are not
9197       # typical AIX shared libraries.
9198       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199     else
9200       # We preserve .a as extension for shared libraries through AIX4.2
9201       # and later when we are not doing run time linking.
9202       library_names_spec='${libname}${release}.a $libname.a'
9203       soname_spec='${libname}${release}${shared_ext}$major'
9204     fi
9205     shlibpath_var=LIBPATH
9206   fi
9207   ;;
9209 amigaos*)
9210   library_names_spec='$libname.ixlibrary $libname.a'
9211   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9212   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'
9213   ;;
9215 beos*)
9216   library_names_spec='${libname}${shared_ext}'
9217   dynamic_linker="$host_os ld.so"
9218   shlibpath_var=LIBRARY_PATH
9219   ;;
9221 bsdi[45]*)
9222   version_type=linux
9223   need_version=no
9224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225   soname_spec='${libname}${release}${shared_ext}$major'
9226   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9227   shlibpath_var=LD_LIBRARY_PATH
9228   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9229   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9230   # the default ld.so.conf also contains /usr/contrib/lib and
9231   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9232   # libtool to hard-code these into programs
9233   ;;
9235 cygwin* | mingw* | pw32*)
9236   version_type=windows
9237   shrext_cmds=".dll"
9238   need_version=no
9239   need_lib_prefix=no
9241   case $GCC,$host_os in
9242   yes,cygwin* | yes,mingw* | yes,pw32*)
9243     library_names_spec='$libname.dll.a'
9244     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9245     postinstall_cmds='base_file=`basename \${file}`~
9246       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9247       dldir=$destdir/`dirname \$dlpath`~
9248       test -d \$dldir || mkdir -p \$dldir~
9249       $install_prog $dir/$dlname \$dldir/$dlname~
9250       chmod a+x \$dldir/$dlname'
9251     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9252       dlpath=$dir/\$dldll~
9253        $rm \$dlpath'
9254     shlibpath_overrides_runpath=yes
9256     case $host_os in
9257     cygwin*)
9258       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9259       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9260       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9261       ;;
9262     mingw*)
9263       # MinGW DLLs use traditional 'lib' prefix
9264       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9265       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9266       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9267         # It is most probably a Windows format PATH printed by
9268         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9269         # path with ; separators, and with drive letters. We can handle the
9270         # drive letters (cygwin fileutils understands them), so leave them,
9271         # especially as we might pass files found there to a mingw objdump,
9272         # which wouldn't understand a cygwinified path. Ahh.
9273         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9274       else
9275         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9276       fi
9277       ;;
9278     pw32*)
9279       # pw32 DLLs use 'pw' prefix rather than 'lib'
9280       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9281       ;;
9282     esac
9283     ;;
9285   *)
9286     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9287     ;;
9288   esac
9289   dynamic_linker='Win32 ld.exe'
9290   # FIXME: first we should search . and the directory the executable is in
9291   shlibpath_var=PATH
9292   ;;
9294 darwin* | rhapsody*)
9295   dynamic_linker="$host_os dyld"
9296   version_type=darwin
9297   need_lib_prefix=no
9298   need_version=no
9299   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9300   soname_spec='${libname}${release}${major}$shared_ext'
9301   shlibpath_overrides_runpath=yes
9302   shlibpath_var=DYLD_LIBRARY_PATH
9303   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9305   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9306   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9307   ;;
9309 dgux*)
9310   version_type=linux
9311   need_lib_prefix=no
9312   need_version=no
9313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9314   soname_spec='${libname}${release}${shared_ext}$major'
9315   shlibpath_var=LD_LIBRARY_PATH
9316   ;;
9318 freebsd1*)
9319   dynamic_linker=no
9320   ;;
9322 freebsd* | dragonfly*)
9323   # DragonFly does not have aout.  When/if they implement a new
9324   # versioning mechanism, adjust this.
9325   if test -x /usr/bin/objformat; then
9326     objformat=`/usr/bin/objformat`
9327   else
9328     case $host_os in
9329     freebsd[123]*) objformat=aout ;;
9330     *) objformat=elf ;;
9331     esac
9332   fi
9333   version_type=freebsd-$objformat
9334   case $version_type in
9335     freebsd-elf*)
9336       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9337       need_version=no
9338       need_lib_prefix=no
9339       ;;
9340     freebsd-*)
9341       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9342       need_version=yes
9343       ;;
9344   esac
9345   shlibpath_var=LD_LIBRARY_PATH
9346   case $host_os in
9347   freebsd2*)
9348     shlibpath_overrides_runpath=yes
9349     ;;
9350   freebsd3.[01]* | freebsdelf3.[01]*)
9351     shlibpath_overrides_runpath=yes
9352     hardcode_into_libs=yes
9353     ;;
9354   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9355   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9356     shlibpath_overrides_runpath=no
9357     hardcode_into_libs=yes
9358     ;;
9359   *) # from 4.6 on, and DragonFly
9360     shlibpath_overrides_runpath=yes
9361     hardcode_into_libs=yes
9362     ;;
9363   esac
9364   ;;
9366 gnu*)
9367   version_type=linux
9368   need_lib_prefix=no
9369   need_version=no
9370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9371   soname_spec='${libname}${release}${shared_ext}$major'
9372   shlibpath_var=LD_LIBRARY_PATH
9373   hardcode_into_libs=yes
9374   ;;
9376 hpux9* | hpux10* | hpux11*)
9377   # Give a soname corresponding to the major version so that dld.sl refuses to
9378   # link against other versions.
9379   version_type=sunos
9380   need_lib_prefix=no
9381   need_version=no
9382   case $host_cpu in
9383   ia64*)
9384     shrext_cmds='.so'
9385     hardcode_into_libs=yes
9386     dynamic_linker="$host_os dld.so"
9387     shlibpath_var=LD_LIBRARY_PATH
9388     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9389     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9390     soname_spec='${libname}${release}${shared_ext}$major'
9391     if test "X$HPUX_IA64_MODE" = X32; then
9392       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9393     else
9394       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9395     fi
9396     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9397     ;;
9398    hppa*64*)
9399      shrext_cmds='.sl'
9400      hardcode_into_libs=yes
9401      dynamic_linker="$host_os dld.sl"
9402      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9403      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9404      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405      soname_spec='${libname}${release}${shared_ext}$major'
9406      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9407      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9408      ;;
9409    *)
9410     shrext_cmds='.sl'
9411     dynamic_linker="$host_os dld.sl"
9412     shlibpath_var=SHLIB_PATH
9413     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9414     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9415     soname_spec='${libname}${release}${shared_ext}$major'
9416     ;;
9417   esac
9418   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9419   postinstall_cmds='chmod 555 $lib'
9420   ;;
9422 interix[3-9]*)
9423   version_type=linux
9424   need_lib_prefix=no
9425   need_version=no
9426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9427   soname_spec='${libname}${release}${shared_ext}$major'
9428   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9429   shlibpath_var=LD_LIBRARY_PATH
9430   shlibpath_overrides_runpath=no
9431   hardcode_into_libs=yes
9432   ;;
9434 irix5* | irix6* | nonstopux*)
9435   case $host_os in
9436     nonstopux*) version_type=nonstopux ;;
9437     *)
9438         if test "$lt_cv_prog_gnu_ld" = yes; then
9439                 version_type=linux
9440         else
9441                 version_type=irix
9442         fi ;;
9443   esac
9444   need_lib_prefix=no
9445   need_version=no
9446   soname_spec='${libname}${release}${shared_ext}$major'
9447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9448   case $host_os in
9449   irix5* | nonstopux*)
9450     libsuff= shlibsuff=
9451     ;;
9452   *)
9453     case $LD in # libtool.m4 will add one of these switches to LD
9454     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9455       libsuff= shlibsuff= libmagic=32-bit;;
9456     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9457       libsuff=32 shlibsuff=N32 libmagic=N32;;
9458     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9459       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9460     *) libsuff= shlibsuff= libmagic=never-match;;
9461     esac
9462     ;;
9463   esac
9464   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9465   shlibpath_overrides_runpath=no
9466   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9467   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9468   hardcode_into_libs=yes
9469   ;;
9471 # No shared lib support for Linux oldld, aout, or coff.
9472 linux*oldld* | linux*aout* | linux*coff*)
9473   dynamic_linker=no
9474   ;;
9476 # This must be Linux ELF.
9477 linux* | k*bsd*-gnu)
9478   version_type=linux
9479   need_lib_prefix=no
9480   need_version=no
9481   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9482   soname_spec='${libname}${release}${shared_ext}$major'
9483   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9484   shlibpath_var=LD_LIBRARY_PATH
9485   shlibpath_overrides_runpath=no
9486   # This implies no fast_install, which is unacceptable.
9487   # Some rework will be needed to allow for fast_install
9488   # before this can be enabled.
9489   hardcode_into_libs=yes
9491   # Append ld.so.conf contents to the search path
9492   if test -f /etc/ld.so.conf; then
9493     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' ' '`
9494     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9495   fi
9497   # We used to test for /lib/ld.so.1 and disable shared libraries on
9498   # powerpc, because MkLinux only supported shared libraries with the
9499   # GNU dynamic linker.  Since this was broken with cross compilers,
9500   # most powerpc-linux boxes support dynamic linking these days and
9501   # people can always --disable-shared, the test was removed, and we
9502   # assume the GNU/Linux dynamic linker is in use.
9503   dynamic_linker='GNU/Linux ld.so'
9504   ;;
9506 netbsdelf*-gnu)
9507   version_type=linux
9508   need_lib_prefix=no
9509   need_version=no
9510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9511   soname_spec='${libname}${release}${shared_ext}$major'
9512   shlibpath_var=LD_LIBRARY_PATH
9513   shlibpath_overrides_runpath=no
9514   hardcode_into_libs=yes
9515   dynamic_linker='NetBSD ld.elf_so'
9516   ;;
9518 netbsd*)
9519   version_type=sunos
9520   need_lib_prefix=no
9521   need_version=no
9522   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9523     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9524     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9525     dynamic_linker='NetBSD (a.out) ld.so'
9526   else
9527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9528     soname_spec='${libname}${release}${shared_ext}$major'
9529     dynamic_linker='NetBSD ld.elf_so'
9530   fi
9531   shlibpath_var=LD_LIBRARY_PATH
9532   shlibpath_overrides_runpath=yes
9533   hardcode_into_libs=yes
9534   ;;
9536 newsos6)
9537   version_type=linux
9538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9539   shlibpath_var=LD_LIBRARY_PATH
9540   shlibpath_overrides_runpath=yes
9541   ;;
9543 nto-qnx*)
9544   version_type=linux
9545   need_lib_prefix=no
9546   need_version=no
9547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548   soname_spec='${libname}${release}${shared_ext}$major'
9549   shlibpath_var=LD_LIBRARY_PATH
9550   shlibpath_overrides_runpath=yes
9551   ;;
9553 openbsd*)
9554   version_type=sunos
9555   sys_lib_dlsearch_path_spec="/usr/lib"
9556   need_lib_prefix=no
9557   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9558   case $host_os in
9559     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9560     *)                         need_version=no  ;;
9561   esac
9562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9563   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9564   shlibpath_var=LD_LIBRARY_PATH
9565   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9566     case $host_os in
9567       openbsd2.[89] | openbsd2.[89].*)
9568         shlibpath_overrides_runpath=no
9569         ;;
9570       *)
9571         shlibpath_overrides_runpath=yes
9572         ;;
9573       esac
9574   else
9575     shlibpath_overrides_runpath=yes
9576   fi
9577   ;;
9579 os2*)
9580   libname_spec='$name'
9581   shrext_cmds=".dll"
9582   need_lib_prefix=no
9583   library_names_spec='$libname${shared_ext} $libname.a'
9584   dynamic_linker='OS/2 ld.exe'
9585   shlibpath_var=LIBPATH
9586   ;;
9588 osf3* | osf4* | osf5*)
9589   version_type=osf
9590   need_lib_prefix=no
9591   need_version=no
9592   soname_spec='${libname}${release}${shared_ext}$major'
9593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594   shlibpath_var=LD_LIBRARY_PATH
9595   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9596   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9597   ;;
9599 rdos*)
9600   dynamic_linker=no
9601   ;;
9603 solaris*)
9604   version_type=linux
9605   need_lib_prefix=no
9606   need_version=no
9607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608   soname_spec='${libname}${release}${shared_ext}$major'
9609   shlibpath_var=LD_LIBRARY_PATH
9610   shlibpath_overrides_runpath=yes
9611   hardcode_into_libs=yes
9612   # ldd complains unless libraries are executable
9613   postinstall_cmds='chmod +x $lib'
9614   ;;
9616 sunos4*)
9617   version_type=sunos
9618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9620   shlibpath_var=LD_LIBRARY_PATH
9621   shlibpath_overrides_runpath=yes
9622   if test "$with_gnu_ld" = yes; then
9623     need_lib_prefix=no
9624   fi
9625   need_version=yes
9626   ;;
9628 sysv4 | sysv4.3*)
9629   version_type=linux
9630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631   soname_spec='${libname}${release}${shared_ext}$major'
9632   shlibpath_var=LD_LIBRARY_PATH
9633   case $host_vendor in
9634     sni)
9635       shlibpath_overrides_runpath=no
9636       need_lib_prefix=no
9637       export_dynamic_flag_spec='${wl}-Blargedynsym'
9638       runpath_var=LD_RUN_PATH
9639       ;;
9640     siemens)
9641       need_lib_prefix=no
9642       ;;
9643     motorola)
9644       need_lib_prefix=no
9645       need_version=no
9646       shlibpath_overrides_runpath=no
9647       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9648       ;;
9649   esac
9650   ;;
9652 sysv4*MP*)
9653   if test -d /usr/nec ;then
9654     version_type=linux
9655     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9656     soname_spec='$libname${shared_ext}.$major'
9657     shlibpath_var=LD_LIBRARY_PATH
9658   fi
9659   ;;
9661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9662   version_type=freebsd-elf
9663   need_lib_prefix=no
9664   need_version=no
9665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9666   soname_spec='${libname}${release}${shared_ext}$major'
9667   shlibpath_var=LD_LIBRARY_PATH
9668   hardcode_into_libs=yes
9669   if test "$with_gnu_ld" = yes; then
9670     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9671     shlibpath_overrides_runpath=no
9672   else
9673     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9674     shlibpath_overrides_runpath=yes
9675     case $host_os in
9676       sco3.2v5*)
9677         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9678         ;;
9679     esac
9680   fi
9681   sys_lib_dlsearch_path_spec='/usr/lib'
9682   ;;
9684 uts4*)
9685   version_type=linux
9686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687   soname_spec='${libname}${release}${shared_ext}$major'
9688   shlibpath_var=LD_LIBRARY_PATH
9689   ;;
9691 *)
9692   dynamic_linker=no
9693   ;;
9694 esac
9695 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9696 echo "${ECHO_T}$dynamic_linker" >&6; }
9697 test "$dynamic_linker" = no && can_build_shared=no
9699 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9700   echo $ECHO_N "(cached) $ECHO_C" >&6
9701 else
9702   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9703 fi
9705 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9706 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9707   echo $ECHO_N "(cached) $ECHO_C" >&6
9708 else
9709   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9710 fi
9712 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9714 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9715 if test "$GCC" = yes; then
9716   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9717 fi
9719 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9720 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9721 hardcode_action=
9722 if test -n "$hardcode_libdir_flag_spec" || \
9723    test -n "$runpath_var" || \
9724    test "X$hardcode_automatic" = "Xyes" ; then
9726   # We can hardcode non-existant directories.
9727   if test "$hardcode_direct" != no &&
9728      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9729      # have to relink, otherwise we might link with an installed library
9730      # when we should be linking with a yet-to-be-installed one
9731      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9732      test "$hardcode_minus_L" != no; then
9733     # Linking always hardcodes the temporary library directory.
9734     hardcode_action=relink
9735   else
9736     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9737     hardcode_action=immediate
9738   fi
9739 else
9740   # We cannot hardcode anything, or else we can only hardcode existing
9741   # directories.
9742   hardcode_action=unsupported
9743 fi
9744 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9745 echo "${ECHO_T}$hardcode_action" >&6; }
9747 if test "$hardcode_action" = relink; then
9748   # Fast installation is not supported
9749   enable_fast_install=no
9750 elif test "$shlibpath_overrides_runpath" = yes ||
9751      test "$enable_shared" = no; then
9752   # Fast installation is not necessary
9753   enable_fast_install=needless
9754 fi
9756 striplib=
9757 old_striplib=
9758 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9759 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9760 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9761   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9762   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9763   { echo "$as_me:$LINENO: result: yes" >&5
9764 echo "${ECHO_T}yes" >&6; }
9765 else
9766 # FIXME - insert some real tests, host_os isn't really good enough
9767   case $host_os in
9768    darwin*)
9769        if test -n "$STRIP" ; then
9770          striplib="$STRIP -x"
9771          old_striplib="$STRIP -S"
9772          { echo "$as_me:$LINENO: result: yes" >&5
9773 echo "${ECHO_T}yes" >&6; }
9774        else
9775   { echo "$as_me:$LINENO: result: no" >&5
9776 echo "${ECHO_T}no" >&6; }
9777 fi
9778        ;;
9779    *)
9780   { echo "$as_me:$LINENO: result: no" >&5
9781 echo "${ECHO_T}no" >&6; }
9782     ;;
9783   esac
9784 fi
9786 if test "x$enable_dlopen" != xyes; then
9787   enable_dlopen=unknown
9788   enable_dlopen_self=unknown
9789   enable_dlopen_self_static=unknown
9790 else
9791   lt_cv_dlopen=no
9792   lt_cv_dlopen_libs=
9794   case $host_os in
9795   beos*)
9796     lt_cv_dlopen="load_add_on"
9797     lt_cv_dlopen_libs=
9798     lt_cv_dlopen_self=yes
9799     ;;
9801   mingw* | pw32*)
9802     lt_cv_dlopen="LoadLibrary"
9803     lt_cv_dlopen_libs=
9804    ;;
9806   cygwin*)
9807     lt_cv_dlopen="dlopen"
9808     lt_cv_dlopen_libs=
9809    ;;
9811   darwin*)
9812   # if libdl is installed we need to link against it
9813     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9814 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9815 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818   ac_check_lib_save_LIBS=$LIBS
9819 LIBS="-ldl  $LIBS"
9820 cat >conftest.$ac_ext <<_ACEOF
9821 /* confdefs.h.  */
9822 _ACEOF
9823 cat confdefs.h >>conftest.$ac_ext
9824 cat >>conftest.$ac_ext <<_ACEOF
9825 /* end confdefs.h.  */
9827 /* Override any GCC internal prototype to avoid an error.
9828    Use char because int might match the return type of a GCC
9829    builtin and then its argument prototype would still apply.  */
9830 #ifdef __cplusplus
9831 extern "C"
9832 #endif
9833 char dlopen ();
9834 int
9835 main ()
9837 return dlopen ();
9838   ;
9839   return 0;
9841 _ACEOF
9842 rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9844 case "(($ac_try" in
9845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846   *) ac_try_echo=$ac_try;;
9847 esac
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849   (eval "$ac_link") 2>conftest.er1
9850   ac_status=$?
9851   grep -v '^ *+' conftest.er1 >conftest.err
9852   rm -f conftest.er1
9853   cat conftest.err >&5
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } && {
9856          test -z "$ac_c_werror_flag" ||
9857          test ! -s conftest.err
9858        } && test -s conftest$ac_exeext &&
9859        $as_test_x conftest$ac_exeext; then
9860   ac_cv_lib_dl_dlopen=yes
9861 else
9862   echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9865         ac_cv_lib_dl_dlopen=no
9866 fi
9868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9869       conftest$ac_exeext conftest.$ac_ext
9870 LIBS=$ac_check_lib_save_LIBS
9871 fi
9872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9873 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9874 if test $ac_cv_lib_dl_dlopen = yes; then
9875   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9876 else
9878     lt_cv_dlopen="dyld"
9879     lt_cv_dlopen_libs=
9880     lt_cv_dlopen_self=yes
9882 fi
9884    ;;
9886   *)
9887     { echo "$as_me:$LINENO: checking for shl_load" >&5
9888 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9889 if test "${ac_cv_func_shl_load+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9899    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9900 #define shl_load innocuous_shl_load
9902 /* System header to define __stub macros and hopefully few prototypes,
9903     which can conflict with char shl_load (); below.
9904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9905     <limits.h> exists even on freestanding compilers.  */
9907 #ifdef __STDC__
9908 # include <limits.h>
9909 #else
9910 # include <assert.h>
9911 #endif
9913 #undef shl_load
9915 /* Override any GCC internal prototype to avoid an error.
9916    Use char because int might match the return type of a GCC
9917    builtin and then its argument prototype would still apply.  */
9918 #ifdef __cplusplus
9919 extern "C"
9920 #endif
9921 char shl_load ();
9922 /* The GNU C library defines this for functions which it implements
9923     to always fail with ENOSYS.  Some functions are actually named
9924     something starting with __ and the normal name is an alias.  */
9925 #if defined __stub_shl_load || defined __stub___shl_load
9926 choke me
9927 #endif
9929 int
9930 main ()
9932 return shl_load ();
9933   ;
9934   return 0;
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (ac_try="$ac_link"
9939 case "(($ac_try" in
9940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941   *) ac_try_echo=$ac_try;;
9942 esac
9943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9944   (eval "$ac_link") 2>conftest.er1
9945   ac_status=$?
9946   grep -v '^ *+' conftest.er1 >conftest.err
9947   rm -f conftest.er1
9948   cat conftest.err >&5
9949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950   (exit $ac_status); } && {
9951          test -z "$ac_c_werror_flag" ||
9952          test ! -s conftest.err
9953        } && test -s conftest$ac_exeext &&
9954        $as_test_x conftest$ac_exeext; then
9955   ac_cv_func_shl_load=yes
9956 else
9957   echo "$as_me: failed program was:" >&5
9958 sed 's/^/| /' conftest.$ac_ext >&5
9960         ac_cv_func_shl_load=no
9961 fi
9963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9964       conftest$ac_exeext conftest.$ac_ext
9965 fi
9966 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9967 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9968 if test $ac_cv_func_shl_load = yes; then
9969   lt_cv_dlopen="shl_load"
9970 else
9971   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9972 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9973 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9974   echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976   ac_check_lib_save_LIBS=$LIBS
9977 LIBS="-ldld  $LIBS"
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h.  */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h.  */
9985 /* Override any GCC internal prototype to avoid an error.
9986    Use char because int might match the return type of a GCC
9987    builtin and then its argument prototype would still apply.  */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 char shl_load ();
9992 int
9993 main ()
9995 return shl_load ();
9996   ;
9997   return 0;
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004   *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007   (eval "$ac_link") 2>conftest.er1
10008   ac_status=$?
10009   grep -v '^ *+' conftest.er1 >conftest.err
10010   rm -f conftest.er1
10011   cat conftest.err >&5
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); } && {
10014          test -z "$ac_c_werror_flag" ||
10015          test ! -s conftest.err
10016        } && test -s conftest$ac_exeext &&
10017        $as_test_x conftest$ac_exeext; then
10018   ac_cv_lib_dld_shl_load=yes
10019 else
10020   echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10023         ac_cv_lib_dld_shl_load=no
10026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027       conftest$ac_exeext conftest.$ac_ext
10028 LIBS=$ac_check_lib_save_LIBS
10030 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10031 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10032 if test $ac_cv_lib_dld_shl_load = yes; then
10033   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10034 else
10035   { echo "$as_me:$LINENO: checking for dlopen" >&5
10036 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10037 if test "${ac_cv_func_dlopen+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h.  */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h.  */
10046 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10048 #define dlopen innocuous_dlopen
10050 /* System header to define __stub macros and hopefully few prototypes,
10051     which can conflict with char dlopen (); below.
10052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10053     <limits.h> exists even on freestanding compilers.  */
10055 #ifdef __STDC__
10056 # include <limits.h>
10057 #else
10058 # include <assert.h>
10059 #endif
10061 #undef dlopen
10063 /* Override any GCC internal prototype to avoid an error.
10064    Use char because int might match the return type of a GCC
10065    builtin and then its argument prototype would still apply.  */
10066 #ifdef __cplusplus
10067 extern "C"
10068 #endif
10069 char dlopen ();
10070 /* The GNU C library defines this for functions which it implements
10071     to always fail with ENOSYS.  Some functions are actually named
10072     something starting with __ and the normal name is an alias.  */
10073 #if defined __stub_dlopen || defined __stub___dlopen
10074 choke me
10075 #endif
10077 int
10078 main ()
10080 return dlopen ();
10081   ;
10082   return 0;
10084 _ACEOF
10085 rm -f conftest.$ac_objext conftest$ac_exeext
10086 if { (ac_try="$ac_link"
10087 case "(($ac_try" in
10088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089   *) ac_try_echo=$ac_try;;
10090 esac
10091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092   (eval "$ac_link") 2>conftest.er1
10093   ac_status=$?
10094   grep -v '^ *+' conftest.er1 >conftest.err
10095   rm -f conftest.er1
10096   cat conftest.err >&5
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); } && {
10099          test -z "$ac_c_werror_flag" ||
10100          test ! -s conftest.err
10101        } && test -s conftest$ac_exeext &&
10102        $as_test_x conftest$ac_exeext; then
10103   ac_cv_func_dlopen=yes
10104 else
10105   echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108         ac_cv_func_dlopen=no
10111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10112       conftest$ac_exeext conftest.$ac_ext
10114 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10115 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10116 if test $ac_cv_func_dlopen = yes; then
10117   lt_cv_dlopen="dlopen"
10118 else
10119   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10120 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-ldl  $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10133 /* Override any GCC internal prototype to avoid an error.
10134    Use char because int might match the return type of a GCC
10135    builtin and then its argument prototype would still apply.  */
10136 #ifdef __cplusplus
10137 extern "C"
10138 #endif
10139 char dlopen ();
10140 int
10141 main ()
10143 return dlopen ();
10144   ;
10145   return 0;
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (ac_try="$ac_link"
10150 case "(($ac_try" in
10151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152   *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155   (eval "$ac_link") 2>conftest.er1
10156   ac_status=$?
10157   grep -v '^ *+' conftest.er1 >conftest.err
10158   rm -f conftest.er1
10159   cat conftest.err >&5
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } && {
10162          test -z "$ac_c_werror_flag" ||
10163          test ! -s conftest.err
10164        } && test -s conftest$ac_exeext &&
10165        $as_test_x conftest$ac_exeext; then
10166   ac_cv_lib_dl_dlopen=yes
10167 else
10168   echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171         ac_cv_lib_dl_dlopen=no
10174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10175       conftest$ac_exeext conftest.$ac_ext
10176 LIBS=$ac_check_lib_save_LIBS
10178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10179 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10180 if test $ac_cv_lib_dl_dlopen = yes; then
10181   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10182 else
10183   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10184 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10185 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 else
10188   ac_check_lib_save_LIBS=$LIBS
10189 LIBS="-lsvld  $LIBS"
10190 cat >conftest.$ac_ext <<_ACEOF
10191 /* confdefs.h.  */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h.  */
10197 /* Override any GCC internal prototype to avoid an error.
10198    Use char because int might match the return type of a GCC
10199    builtin and then its argument prototype would still apply.  */
10200 #ifdef __cplusplus
10201 extern "C"
10202 #endif
10203 char dlopen ();
10204 int
10205 main ()
10207 return dlopen ();
10208   ;
10209   return 0;
10211 _ACEOF
10212 rm -f conftest.$ac_objext conftest$ac_exeext
10213 if { (ac_try="$ac_link"
10214 case "(($ac_try" in
10215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216   *) ac_try_echo=$ac_try;;
10217 esac
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219   (eval "$ac_link") 2>conftest.er1
10220   ac_status=$?
10221   grep -v '^ *+' conftest.er1 >conftest.err
10222   rm -f conftest.er1
10223   cat conftest.err >&5
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); } && {
10226          test -z "$ac_c_werror_flag" ||
10227          test ! -s conftest.err
10228        } && test -s conftest$ac_exeext &&
10229        $as_test_x conftest$ac_exeext; then
10230   ac_cv_lib_svld_dlopen=yes
10231 else
10232   echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10235         ac_cv_lib_svld_dlopen=no
10238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239       conftest$ac_exeext conftest.$ac_ext
10240 LIBS=$ac_check_lib_save_LIBS
10242 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10243 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10244 if test $ac_cv_lib_svld_dlopen = yes; then
10245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10246 else
10247   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10248 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10249 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10250   echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252   ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-ldld  $LIBS"
10254 cat >conftest.$ac_ext <<_ACEOF
10255 /* confdefs.h.  */
10256 _ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h.  */
10261 /* Override any GCC internal prototype to avoid an error.
10262    Use char because int might match the return type of a GCC
10263    builtin and then its argument prototype would still apply.  */
10264 #ifdef __cplusplus
10265 extern "C"
10266 #endif
10267 char dld_link ();
10268 int
10269 main ()
10271 return dld_link ();
10272   ;
10273   return 0;
10275 _ACEOF
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (ac_try="$ac_link"
10278 case "(($ac_try" in
10279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280   *) ac_try_echo=$ac_try;;
10281 esac
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283   (eval "$ac_link") 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } && {
10290          test -z "$ac_c_werror_flag" ||
10291          test ! -s conftest.err
10292        } && test -s conftest$ac_exeext &&
10293        $as_test_x conftest$ac_exeext; then
10294   ac_cv_lib_dld_dld_link=yes
10295 else
10296   echo "$as_me: failed program was:" >&5
10297 sed 's/^/| /' conftest.$ac_ext >&5
10299         ac_cv_lib_dld_dld_link=no
10302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10303       conftest$ac_exeext conftest.$ac_ext
10304 LIBS=$ac_check_lib_save_LIBS
10306 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10307 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10308 if test $ac_cv_lib_dld_dld_link = yes; then
10309   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10327     ;;
10328   esac
10330   if test "x$lt_cv_dlopen" != xno; then
10331     enable_dlopen=yes
10332   else
10333     enable_dlopen=no
10334   fi
10336   case $lt_cv_dlopen in
10337   dlopen)
10338     save_CPPFLAGS="$CPPFLAGS"
10339     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10341     save_LDFLAGS="$LDFLAGS"
10342     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10344     save_LIBS="$LIBS"
10345     LIBS="$lt_cv_dlopen_libs $LIBS"
10347     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10348 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10349 if test "${lt_cv_dlopen_self+set}" = set; then
10350   echo $ECHO_N "(cached) $ECHO_C" >&6
10351 else
10352           if test "$cross_compiling" = yes; then :
10353   lt_cv_dlopen_self=cross
10354 else
10355   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10356   lt_status=$lt_dlunknown
10357   cat > conftest.$ac_ext <<EOF
10358 #line 10358 "configure"
10359 #include "confdefs.h"
10361 #if HAVE_DLFCN_H
10362 #include <dlfcn.h>
10363 #endif
10365 #include <stdio.h>
10367 #ifdef RTLD_GLOBAL
10368 #  define LT_DLGLOBAL           RTLD_GLOBAL
10369 #else
10370 #  ifdef DL_GLOBAL
10371 #    define LT_DLGLOBAL         DL_GLOBAL
10372 #  else
10373 #    define LT_DLGLOBAL         0
10374 #  endif
10375 #endif
10377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10378    find out it does not work in some platform. */
10379 #ifndef LT_DLLAZY_OR_NOW
10380 #  ifdef RTLD_LAZY
10381 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10382 #  else
10383 #    ifdef DL_LAZY
10384 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10385 #    else
10386 #      ifdef RTLD_NOW
10387 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10388 #      else
10389 #        ifdef DL_NOW
10390 #          define LT_DLLAZY_OR_NOW      DL_NOW
10391 #        else
10392 #          define LT_DLLAZY_OR_NOW      0
10393 #        endif
10394 #      endif
10395 #    endif
10396 #  endif
10397 #endif
10399 #ifdef __cplusplus
10400 extern "C" void exit (int);
10401 #endif
10403 void fnord() { int i=42;}
10404 int main ()
10406   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10407   int status = $lt_dlunknown;
10409   if (self)
10410     {
10411       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10412       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10413       /* dlclose (self); */
10414     }
10415   else
10416     puts (dlerror ());
10418     exit (status);
10420 EOF
10421   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10422   (eval $ac_link) 2>&5
10423   ac_status=$?
10424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10426     (./conftest; exit; ) >&5 2>/dev/null
10427     lt_status=$?
10428     case x$lt_status in
10429       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10430       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10431       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10432     esac
10433   else :
10434     # compilation failed
10435     lt_cv_dlopen_self=no
10436   fi
10438 rm -fr conftest*
10442 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10443 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10445     if test "x$lt_cv_dlopen_self" = xyes; then
10446       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10447       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10448 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10449 if test "${lt_cv_dlopen_self_static+set}" = set; then
10450   echo $ECHO_N "(cached) $ECHO_C" >&6
10451 else
10452           if test "$cross_compiling" = yes; then :
10453   lt_cv_dlopen_self_static=cross
10454 else
10455   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10456   lt_status=$lt_dlunknown
10457   cat > conftest.$ac_ext <<EOF
10458 #line 10458 "configure"
10459 #include "confdefs.h"
10461 #if HAVE_DLFCN_H
10462 #include <dlfcn.h>
10463 #endif
10465 #include <stdio.h>
10467 #ifdef RTLD_GLOBAL
10468 #  define LT_DLGLOBAL           RTLD_GLOBAL
10469 #else
10470 #  ifdef DL_GLOBAL
10471 #    define LT_DLGLOBAL         DL_GLOBAL
10472 #  else
10473 #    define LT_DLGLOBAL         0
10474 #  endif
10475 #endif
10477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10478    find out it does not work in some platform. */
10479 #ifndef LT_DLLAZY_OR_NOW
10480 #  ifdef RTLD_LAZY
10481 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10482 #  else
10483 #    ifdef DL_LAZY
10484 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10485 #    else
10486 #      ifdef RTLD_NOW
10487 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10488 #      else
10489 #        ifdef DL_NOW
10490 #          define LT_DLLAZY_OR_NOW      DL_NOW
10491 #        else
10492 #          define LT_DLLAZY_OR_NOW      0
10493 #        endif
10494 #      endif
10495 #    endif
10496 #  endif
10497 #endif
10499 #ifdef __cplusplus
10500 extern "C" void exit (int);
10501 #endif
10503 void fnord() { int i=42;}
10504 int main ()
10506   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10507   int status = $lt_dlunknown;
10509   if (self)
10510     {
10511       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10512       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10513       /* dlclose (self); */
10514     }
10515   else
10516     puts (dlerror ());
10518     exit (status);
10520 EOF
10521   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10522   (eval $ac_link) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10526     (./conftest; exit; ) >&5 2>/dev/null
10527     lt_status=$?
10528     case x$lt_status in
10529       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10530       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10531       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10532     esac
10533   else :
10534     # compilation failed
10535     lt_cv_dlopen_self_static=no
10536   fi
10538 rm -fr conftest*
10542 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10543 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10544     fi
10546     CPPFLAGS="$save_CPPFLAGS"
10547     LDFLAGS="$save_LDFLAGS"
10548     LIBS="$save_LIBS"
10549     ;;
10550   esac
10552   case $lt_cv_dlopen_self in
10553   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10554   *) enable_dlopen_self=unknown ;;
10555   esac
10557   case $lt_cv_dlopen_self_static in
10558   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10559   *) enable_dlopen_self_static=unknown ;;
10560   esac
10564 # Report which library types will actually be built
10565 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10566 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10567 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10568 echo "${ECHO_T}$can_build_shared" >&6; }
10570 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10571 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10572 test "$can_build_shared" = "no" && enable_shared=no
10574 # On AIX, shared libraries and static libraries use the same namespace, and
10575 # are all built from PIC.
10576 case $host_os in
10577 aix3*)
10578   test "$enable_shared" = yes && enable_static=no
10579   if test -n "$RANLIB"; then
10580     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10581     postinstall_cmds='$RANLIB $lib'
10582   fi
10583   ;;
10585 aix[4-9]*)
10586   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10587     test "$enable_shared" = yes && enable_static=no
10588   fi
10589     ;;
10590 esac
10591 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10592 echo "${ECHO_T}$enable_shared" >&6; }
10594 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10595 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10596 # Make sure either enable_shared or enable_static is yes.
10597 test "$enable_shared" = yes || enable_static=yes
10598 { echo "$as_me:$LINENO: result: $enable_static" >&5
10599 echo "${ECHO_T}$enable_static" >&6; }
10601 # The else clause should only fire when bootstrapping the
10602 # libtool distribution, otherwise you forgot to ship ltmain.sh
10603 # with your package, and you will get complaints that there are
10604 # no rules to generate ltmain.sh.
10605 if test -f "$ltmain"; then
10606   # See if we are running on zsh, and set the options which allow our commands through
10607   # without removal of \ escapes.
10608   if test -n "${ZSH_VERSION+set}" ; then
10609     setopt NO_GLOB_SUBST
10610   fi
10611   # Now quote all the things that may contain metacharacters while being
10612   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10613   # variables and quote the copies for generation of the libtool script.
10614   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10615     SED SHELL STRIP \
10616     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10617     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10618     deplibs_check_method reload_flag reload_cmds need_locks \
10619     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10620     lt_cv_sys_global_symbol_to_c_name_address \
10621     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10622     old_postinstall_cmds old_postuninstall_cmds \
10623     compiler \
10624     CC \
10625     LD \
10626     lt_prog_compiler_wl \
10627     lt_prog_compiler_pic \
10628     lt_prog_compiler_static \
10629     lt_prog_compiler_no_builtin_flag \
10630     export_dynamic_flag_spec \
10631     thread_safe_flag_spec \
10632     whole_archive_flag_spec \
10633     enable_shared_with_static_runtimes \
10634     old_archive_cmds \
10635     old_archive_from_new_cmds \
10636     predep_objects \
10637     postdep_objects \
10638     predeps \
10639     postdeps \
10640     compiler_lib_search_path \
10641     compiler_lib_search_dirs \
10642     archive_cmds \
10643     archive_expsym_cmds \
10644     postinstall_cmds \
10645     postuninstall_cmds \
10646     old_archive_from_expsyms_cmds \
10647     allow_undefined_flag \
10648     no_undefined_flag \
10649     export_symbols_cmds \
10650     hardcode_libdir_flag_spec \
10651     hardcode_libdir_flag_spec_ld \
10652     hardcode_libdir_separator \
10653     hardcode_automatic \
10654     module_cmds \
10655     module_expsym_cmds \
10656     lt_cv_prog_compiler_c_o \
10657     fix_srcfile_path \
10658     exclude_expsyms \
10659     include_expsyms; do
10661     case $var in
10662     old_archive_cmds | \
10663     old_archive_from_new_cmds | \
10664     archive_cmds | \
10665     archive_expsym_cmds | \
10666     module_cmds | \
10667     module_expsym_cmds | \
10668     old_archive_from_expsyms_cmds | \
10669     export_symbols_cmds | \
10670     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10671     postinstall_cmds | postuninstall_cmds | \
10672     old_postinstall_cmds | old_postuninstall_cmds | \
10673     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10674       # Double-quote double-evaled strings.
10675       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10676       ;;
10677     *)
10678       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10679       ;;
10680     esac
10681   done
10683   case $lt_echo in
10684   *'\$0 --fallback-echo"')
10685     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10686     ;;
10687   esac
10689 cfgfile="${ofile}T"
10690   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10691   $rm -f "$cfgfile"
10692   { echo "$as_me:$LINENO: creating $ofile" >&5
10693 echo "$as_me: creating $ofile" >&6;}
10695   cat <<__EOF__ >> "$cfgfile"
10696 #! $SHELL
10698 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10699 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10700 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10702 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10703 # Free Software Foundation, Inc.
10705 # This file is part of GNU Libtool:
10706 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10708 # This program is free software; you can redistribute it and/or modify
10709 # it under the terms of the GNU General Public License as published by
10710 # the Free Software Foundation; either version 2 of the License, or
10711 # (at your option) any later version.
10713 # This program is distributed in the hope that it will be useful, but
10714 # WITHOUT ANY WARRANTY; without even the implied warranty of
10715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10716 # General Public License for more details.
10718 # You should have received a copy of the GNU General Public License
10719 # along with this program; if not, write to the Free Software
10720 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10722 # As a special exception to the GNU General Public License, if you
10723 # distribute this file as part of a program that contains a
10724 # configuration script generated by Autoconf, you may include it under
10725 # the same distribution terms that you use for the rest of that program.
10727 # A sed program that does not truncate output.
10728 SED=$lt_SED
10730 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10731 Xsed="$SED -e 1s/^X//"
10733 # The HP-UX ksh and POSIX shell print the target directory to stdout
10734 # if CDPATH is set.
10735 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10737 # The names of the tagged configurations supported by this script.
10738 available_tags=
10740 # ### BEGIN LIBTOOL CONFIG
10742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10744 # Shell to use when invoking shell scripts.
10745 SHELL=$lt_SHELL
10747 # Whether or not to build shared libraries.
10748 build_libtool_libs=$enable_shared
10750 # Whether or not to build static libraries.
10751 build_old_libs=$enable_static
10753 # Whether or not to add -lc for building shared libraries.
10754 build_libtool_need_lc=$archive_cmds_need_lc
10756 # Whether or not to disallow shared libs when runtime libs are static
10757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10759 # Whether or not to optimize for fast installation.
10760 fast_install=$enable_fast_install
10762 # The host system.
10763 host_alias=$host_alias
10764 host=$host
10765 host_os=$host_os
10767 # The build system.
10768 build_alias=$build_alias
10769 build=$build
10770 build_os=$build_os
10772 # An echo program that does not interpret backslashes.
10773 echo=$lt_echo
10775 # The archiver.
10776 AR=$lt_AR
10777 AR_FLAGS=$lt_AR_FLAGS
10779 # A C compiler.
10780 LTCC=$lt_LTCC
10782 # LTCC compiler flags.
10783 LTCFLAGS=$lt_LTCFLAGS
10785 # A language-specific compiler.
10786 CC=$lt_compiler
10788 # Is the compiler the GNU C compiler?
10789 with_gcc=$GCC
10791 # An ERE matcher.
10792 EGREP=$lt_EGREP
10794 # The linker used to build libraries.
10795 LD=$lt_LD
10797 # Whether we need hard or soft links.
10798 LN_S=$lt_LN_S
10800 # A BSD-compatible nm program.
10801 NM=$lt_NM
10803 # A symbol stripping program
10804 STRIP=$lt_STRIP
10806 # Used to examine libraries when file_magic_cmd begins "file"
10807 MAGIC_CMD=$MAGIC_CMD
10809 # Used on cygwin: DLL creation program.
10810 DLLTOOL="$DLLTOOL"
10812 # Used on cygwin: object dumper.
10813 OBJDUMP="$OBJDUMP"
10815 # Used on cygwin: assembler.
10816 AS="$AS"
10818 # The name of the directory that contains temporary libtool files.
10819 objdir=$objdir
10821 # How to create reloadable object files.
10822 reload_flag=$lt_reload_flag
10823 reload_cmds=$lt_reload_cmds
10825 # How to pass a linker flag through the compiler.
10826 wl=$lt_lt_prog_compiler_wl
10828 # Object file suffix (normally "o").
10829 objext="$ac_objext"
10831 # Old archive suffix (normally "a").
10832 libext="$libext"
10834 # Shared library suffix (normally ".so").
10835 shrext_cmds='$shrext_cmds'
10837 # Executable file suffix (normally "").
10838 exeext="$exeext"
10840 # Additional compiler flags for building library objects.
10841 pic_flag=$lt_lt_prog_compiler_pic
10842 pic_mode=$pic_mode
10844 # What is the maximum length of a command?
10845 max_cmd_len=$lt_cv_sys_max_cmd_len
10847 # Does compiler simultaneously support -c and -o options?
10848 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10850 # Must we lock files when doing compilation?
10851 need_locks=$lt_need_locks
10853 # Do we need the lib prefix for modules?
10854 need_lib_prefix=$need_lib_prefix
10856 # Do we need a version for libraries?
10857 need_version=$need_version
10859 # Whether dlopen is supported.
10860 dlopen_support=$enable_dlopen
10862 # Whether dlopen of programs is supported.
10863 dlopen_self=$enable_dlopen_self
10865 # Whether dlopen of statically linked programs is supported.
10866 dlopen_self_static=$enable_dlopen_self_static
10868 # Compiler flag to prevent dynamic linking.
10869 link_static_flag=$lt_lt_prog_compiler_static
10871 # Compiler flag to turn off builtin functions.
10872 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10874 # Compiler flag to allow reflexive dlopens.
10875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10877 # Compiler flag to generate shared objects directly from archives.
10878 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10880 # Compiler flag to generate thread-safe objects.
10881 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10883 # Library versioning type.
10884 version_type=$version_type
10886 # Format of library name prefix.
10887 libname_spec=$lt_libname_spec
10889 # List of archive names.  First name is the real one, the rest are links.
10890 # The last name is the one that the linker finds with -lNAME.
10891 library_names_spec=$lt_library_names_spec
10893 # The coded name of the library, if different from the real name.
10894 soname_spec=$lt_soname_spec
10896 # Commands used to build and install an old-style archive.
10897 RANLIB=$lt_RANLIB
10898 old_archive_cmds=$lt_old_archive_cmds
10899 old_postinstall_cmds=$lt_old_postinstall_cmds
10900 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10902 # Create an old-style archive from a shared archive.
10903 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10905 # Create a temporary old-style archive to link instead of a shared archive.
10906 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10908 # Commands used to build and install a shared archive.
10909 archive_cmds=$lt_archive_cmds
10910 archive_expsym_cmds=$lt_archive_expsym_cmds
10911 postinstall_cmds=$lt_postinstall_cmds
10912 postuninstall_cmds=$lt_postuninstall_cmds
10914 # Commands used to build a loadable module (assumed same as above if empty)
10915 module_cmds=$lt_module_cmds
10916 module_expsym_cmds=$lt_module_expsym_cmds
10918 # Commands to strip libraries.
10919 old_striplib=$lt_old_striplib
10920 striplib=$lt_striplib
10922 # Dependencies to place before the objects being linked to create a
10923 # shared library.
10924 predep_objects=$lt_predep_objects
10926 # Dependencies to place after the objects being linked to create a
10927 # shared library.
10928 postdep_objects=$lt_postdep_objects
10930 # Dependencies to place before the objects being linked to create a
10931 # shared library.
10932 predeps=$lt_predeps
10934 # Dependencies to place after the objects being linked to create a
10935 # shared library.
10936 postdeps=$lt_postdeps
10938 # The directories searched by this compiler when creating a shared
10939 # library
10940 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10942 # The library search path used internally by the compiler when linking
10943 # a shared library.
10944 compiler_lib_search_path=$lt_compiler_lib_search_path
10946 # Method to check whether dependent libraries are shared objects.
10947 deplibs_check_method=$lt_deplibs_check_method
10949 # Command to use when deplibs_check_method == file_magic.
10950 file_magic_cmd=$lt_file_magic_cmd
10952 # Flag that allows shared libraries with undefined symbols to be built.
10953 allow_undefined_flag=$lt_allow_undefined_flag
10955 # Flag that forces no undefined symbols.
10956 no_undefined_flag=$lt_no_undefined_flag
10958 # Commands used to finish a libtool library installation in a directory.
10959 finish_cmds=$lt_finish_cmds
10961 # Same as above, but a single script fragment to be evaled but not shown.
10962 finish_eval=$lt_finish_eval
10964 # Take the output of nm and produce a listing of raw symbols and C names.
10965 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10967 # Transform the output of nm in a proper C declaration
10968 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10970 # Transform the output of nm in a C name address pair
10971 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10973 # This is the shared library runtime path variable.
10974 runpath_var=$runpath_var
10976 # This is the shared library path variable.
10977 shlibpath_var=$shlibpath_var
10979 # Is shlibpath searched before the hard-coded library search path?
10980 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10982 # How to hardcode a shared library path into an executable.
10983 hardcode_action=$hardcode_action
10985 # Whether we should hardcode library paths into libraries.
10986 hardcode_into_libs=$hardcode_into_libs
10988 # Flag to hardcode \$libdir into a binary during linking.
10989 # This must work even if \$libdir does not exist.
10990 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10992 # If ld is used when linking, flag to hardcode \$libdir into
10993 # a binary during linking. This must work even if \$libdir does
10994 # not exist.
10995 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10997 # Whether we need a single -rpath flag with a separated argument.
10998 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11000 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11001 # resulting binary.
11002 hardcode_direct=$hardcode_direct
11004 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11005 # resulting binary.
11006 hardcode_minus_L=$hardcode_minus_L
11008 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11009 # the resulting binary.
11010 hardcode_shlibpath_var=$hardcode_shlibpath_var
11012 # Set to yes if building a shared library automatically hardcodes DIR into the library
11013 # and all subsequent libraries and executables linked against it.
11014 hardcode_automatic=$hardcode_automatic
11016 # Variables whose values should be saved in libtool wrapper scripts and
11017 # restored at relink time.
11018 variables_saved_for_relink="$variables_saved_for_relink"
11020 # Whether libtool must link a program against all its dependency libraries.
11021 link_all_deplibs=$link_all_deplibs
11023 # Compile-time system search path for libraries
11024 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11026 # Run-time system search path for libraries
11027 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11029 # Fix the shell variable \$srcfile for the compiler.
11030 fix_srcfile_path=$lt_fix_srcfile_path
11032 # Set to yes if exported symbols are required.
11033 always_export_symbols=$always_export_symbols
11035 # The commands to list exported symbols.
11036 export_symbols_cmds=$lt_export_symbols_cmds
11038 # The commands to extract the exported symbol list from a shared archive.
11039 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11041 # Symbols that should not be listed in the preloaded symbols.
11042 exclude_expsyms=$lt_exclude_expsyms
11044 # Symbols that must always be exported.
11045 include_expsyms=$lt_include_expsyms
11047 # ### END LIBTOOL CONFIG
11049 __EOF__
11052   case $host_os in
11053   aix3*)
11054     cat <<\EOF >> "$cfgfile"
11056 # AIX sometimes has problems with the GCC collect2 program.  For some
11057 # reason, if we set the COLLECT_NAMES environment variable, the problems
11058 # vanish in a puff of smoke.
11059 if test "X${COLLECT_NAMES+set}" != Xset; then
11060   COLLECT_NAMES=
11061   export COLLECT_NAMES
11063 EOF
11064     ;;
11065   esac
11067   # We use sed instead of cat because bash on DJGPP gets confused if
11068   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11069   # text mode, it properly converts lines to CR/LF.  This bash problem
11070   # is reportedly fixed, but why not run on old versions too?
11071   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11073   mv -f "$cfgfile" "$ofile" || \
11074     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11075   chmod +x "$ofile"
11077 else
11078   # If there is no Makefile yet, we rely on a make rule to execute
11079   # `config.status --recheck' to rerun these tests and create the
11080   # libtool script then.
11081   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11082   if test -f "$ltmain_in"; then
11083     test -f Makefile && make "$ltmain"
11084   fi
11088 ac_ext=c
11089 ac_cpp='$CPP $CPPFLAGS'
11090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11094 CC="$lt_save_CC"
11097 # Check whether --with-tags was given.
11098 if test "${with_tags+set}" = set; then
11099   withval=$with_tags; tagnames="$withval"
11103 if test -f "$ltmain" && test -n "$tagnames"; then
11104   if test ! -f "${ofile}"; then
11105     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11106 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11107   fi
11109   if test -z "$LTCC"; then
11110     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11111     if test -z "$LTCC"; then
11112       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11113 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11114     else
11115       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11116 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11117     fi
11118   fi
11119   if test -z "$LTCFLAGS"; then
11120     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11121   fi
11123   # Extract list of available tagged configurations in $ofile.
11124   # Note that this assumes the entire list is on one line.
11125   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11127   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11128   for tagname in $tagnames; do
11129     IFS="$lt_save_ifs"
11130     # Check whether tagname contains only valid characters
11131     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11132     "") ;;
11133     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11134 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11135    { (exit 1); exit 1; }; }
11136         ;;
11137     esac
11139     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11140     then
11141       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11142 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11143    { (exit 1); exit 1; }; }
11144     fi
11146     # Update the list of available tags.
11147     if test -n "$tagname"; then
11148       echo appending configuration tag \"$tagname\" to $ofile
11150       case $tagname in
11151       CXX)
11152         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11153             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11154             (test "X$CXX" != "Xg++"))) ; then
11155           ac_ext=cpp
11156 ac_cpp='$CXXCPP $CPPFLAGS'
11157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11164 archive_cmds_need_lc_CXX=no
11165 allow_undefined_flag_CXX=
11166 always_export_symbols_CXX=no
11167 archive_expsym_cmds_CXX=
11168 export_dynamic_flag_spec_CXX=
11169 hardcode_direct_CXX=no
11170 hardcode_libdir_flag_spec_CXX=
11171 hardcode_libdir_flag_spec_ld_CXX=
11172 hardcode_libdir_separator_CXX=
11173 hardcode_minus_L_CXX=no
11174 hardcode_shlibpath_var_CXX=unsupported
11175 hardcode_automatic_CXX=no
11176 module_cmds_CXX=
11177 module_expsym_cmds_CXX=
11178 link_all_deplibs_CXX=unknown
11179 old_archive_cmds_CXX=$old_archive_cmds
11180 no_undefined_flag_CXX=
11181 whole_archive_flag_spec_CXX=
11182 enable_shared_with_static_runtimes_CXX=no
11184 # Dependencies to place before and after the object being linked:
11185 predep_objects_CXX=
11186 postdep_objects_CXX=
11187 predeps_CXX=
11188 postdeps_CXX=
11189 compiler_lib_search_path_CXX=
11190 compiler_lib_search_dirs_CXX=
11192 # Source file extension for C++ test sources.
11193 ac_ext=cpp
11195 # Object file extension for compiled C++ test sources.
11196 objext=o
11197 objext_CXX=$objext
11199 # Code to be used in simple compile tests
11200 lt_simple_compile_test_code="int some_variable = 0;"
11202 # Code to be used in simple link tests
11203 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11205 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11207 # If no C compiler was specified, use CC.
11208 LTCC=${LTCC-"$CC"}
11210 # If no C compiler flags were specified, use CFLAGS.
11211 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11213 # Allow CC to be a program name with arguments.
11214 compiler=$CC
11217 # save warnings/boilerplate of simple test code
11218 ac_outfile=conftest.$ac_objext
11219 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11220 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11221 _lt_compiler_boilerplate=`cat conftest.err`
11222 $rm conftest*
11224 ac_outfile=conftest.$ac_objext
11225 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11226 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11227 _lt_linker_boilerplate=`cat conftest.err`
11228 $rm -r conftest*
11231 # Allow CC to be a program name with arguments.
11232 lt_save_CC=$CC
11233 lt_save_LD=$LD
11234 lt_save_GCC=$GCC
11235 GCC=$GXX
11236 lt_save_with_gnu_ld=$with_gnu_ld
11237 lt_save_path_LD=$lt_cv_path_LD
11238 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11239   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11240 else
11241   $as_unset lt_cv_prog_gnu_ld
11243 if test -n "${lt_cv_path_LDCXX+set}"; then
11244   lt_cv_path_LD=$lt_cv_path_LDCXX
11245 else
11246   $as_unset lt_cv_path_LD
11248 test -z "${LDCXX+set}" || LD=$LDCXX
11249 CC=${CXX-"c++"}
11250 compiler=$CC
11251 compiler_CXX=$CC
11252 for cc_temp in $compiler""; do
11253   case $cc_temp in
11254     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11255     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11256     \-*) ;;
11257     *) break;;
11258   esac
11259 done
11260 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11263 # We don't want -fno-exception wen compiling C++ code, so set the
11264 # no_builtin_flag separately
11265 if test "$GXX" = yes; then
11266   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11267 else
11268   lt_prog_compiler_no_builtin_flag_CXX=
11271 if test "$GXX" = yes; then
11272   # Set up default GNU C++ configuration
11275 # Check whether --with-gnu-ld was given.
11276 if test "${with_gnu_ld+set}" = set; then
11277   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11278 else
11279   with_gnu_ld=no
11282 ac_prog=ld
11283 if test "$GCC" = yes; then
11284   # Check if gcc -print-prog-name=ld gives a path.
11285   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11286 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11287   case $host in
11288   *-*-mingw*)
11289     # gcc leaves a trailing carriage return which upsets mingw
11290     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11291   *)
11292     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11293   esac
11294   case $ac_prog in
11295     # Accept absolute paths.
11296     [\\/]* | ?:[\\/]*)
11297       re_direlt='/[^/][^/]*/\.\./'
11298       # Canonicalize the pathname of ld
11299       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11300       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11301         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11302       done
11303       test -z "$LD" && LD="$ac_prog"
11304       ;;
11305   "")
11306     # If it fails, then pretend we aren't using GCC.
11307     ac_prog=ld
11308     ;;
11309   *)
11310     # If it is relative, then search for the first ld in PATH.
11311     with_gnu_ld=unknown
11312     ;;
11313   esac
11314 elif test "$with_gnu_ld" = yes; then
11315   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11316 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11317 else
11318   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11319 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11321 if test "${lt_cv_path_LD+set}" = set; then
11322   echo $ECHO_N "(cached) $ECHO_C" >&6
11323 else
11324   if test -z "$LD"; then
11325   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11326   for ac_dir in $PATH; do
11327     IFS="$lt_save_ifs"
11328     test -z "$ac_dir" && ac_dir=.
11329     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11330       lt_cv_path_LD="$ac_dir/$ac_prog"
11331       # Check to see if the program is GNU ld.  I'd rather use --version,
11332       # but apparently some variants of GNU ld only accept -v.
11333       # Break only if it was the GNU/non-GNU ld that we prefer.
11334       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11335       *GNU* | *'with BFD'*)
11336         test "$with_gnu_ld" != no && break
11337         ;;
11338       *)
11339         test "$with_gnu_ld" != yes && break
11340         ;;
11341       esac
11342     fi
11343   done
11344   IFS="$lt_save_ifs"
11345 else
11346   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11350 LD="$lt_cv_path_LD"
11351 if test -n "$LD"; then
11352   { echo "$as_me:$LINENO: result: $LD" >&5
11353 echo "${ECHO_T}$LD" >&6; }
11354 else
11355   { echo "$as_me:$LINENO: result: no" >&5
11356 echo "${ECHO_T}no" >&6; }
11358 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11359 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11360    { (exit 1); exit 1; }; }
11361 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11362 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11363 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11364   echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11367 case `$LD -v 2>&1 </dev/null` in
11368 *GNU* | *'with BFD'*)
11369   lt_cv_prog_gnu_ld=yes
11370   ;;
11372   lt_cv_prog_gnu_ld=no
11373   ;;
11374 esac
11376 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11377 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11378 with_gnu_ld=$lt_cv_prog_gnu_ld
11382   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11383   # archiving commands below assume that GNU ld is being used.
11384   if test "$with_gnu_ld" = yes; then
11385     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11386     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'
11388     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11389     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11391     # If archive_cmds runs LD, not CC, wlarc should be empty
11392     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11393     #     investigate it a little bit more. (MM)
11394     wlarc='${wl}'
11396     # ancient GNU ld didn't support --whole-archive et. al.
11397     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11398         grep 'no-whole-archive' > /dev/null; then
11399       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11400     else
11401       whole_archive_flag_spec_CXX=
11402     fi
11403   else
11404     with_gnu_ld=no
11405     wlarc=
11407     # A generic and very simple default shared library creation
11408     # command for GNU C++ for the case where it uses the native
11409     # linker, instead of GNU ld.  If possible, this setting should
11410     # overridden to take advantage of the native linker features on
11411     # the platform it is being used on.
11412     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11413   fi
11415   # Commands to make compiler produce verbose output that lists
11416   # what "hidden" libraries, object files and flags are used when
11417   # linking a shared library.
11418   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11420 else
11421   GXX=no
11422   with_gnu_ld=no
11423   wlarc=
11426 # PORTME: fill in a description of your system's C++ link characteristics
11427 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11428 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11429 ld_shlibs_CXX=yes
11430 case $host_os in
11431   aix3*)
11432     # FIXME: insert proper C++ library support
11433     ld_shlibs_CXX=no
11434     ;;
11435   aix[4-9]*)
11436     if test "$host_cpu" = ia64; then
11437       # On IA64, the linker does run time linking by default, so we don't
11438       # have to do anything special.
11439       aix_use_runtimelinking=no
11440       exp_sym_flag='-Bexport'
11441       no_entry_flag=""
11442     else
11443       aix_use_runtimelinking=no
11445       # Test if we are trying to use run time linking or normal
11446       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11447       # need to do runtime linking.
11448       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11449         for ld_flag in $LDFLAGS; do
11450           case $ld_flag in
11451           *-brtl*)
11452             aix_use_runtimelinking=yes
11453             break
11454             ;;
11455           esac
11456         done
11457         ;;
11458       esac
11460       exp_sym_flag='-bexport'
11461       no_entry_flag='-bnoentry'
11462     fi
11464     # When large executables or shared objects are built, AIX ld can
11465     # have problems creating the table of contents.  If linking a library
11466     # or program results in "error TOC overflow" add -mminimal-toc to
11467     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11468     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11470     archive_cmds_CXX=''
11471     hardcode_direct_CXX=yes
11472     hardcode_libdir_separator_CXX=':'
11473     link_all_deplibs_CXX=yes
11475     if test "$GXX" = yes; then
11476       case $host_os in aix4.[012]|aix4.[012].*)
11477       # We only want to do this on AIX 4.2 and lower, the check
11478       # below for broken collect2 doesn't work under 4.3+
11479         collect2name=`${CC} -print-prog-name=collect2`
11480         if test -f "$collect2name" && \
11481            strings "$collect2name" | grep resolve_lib_name >/dev/null
11482         then
11483           # We have reworked collect2
11484           :
11485         else
11486           # We have old collect2
11487           hardcode_direct_CXX=unsupported
11488           # It fails to find uninstalled libraries when the uninstalled
11489           # path is not listed in the libpath.  Setting hardcode_minus_L
11490           # to unsupported forces relinking
11491           hardcode_minus_L_CXX=yes
11492           hardcode_libdir_flag_spec_CXX='-L$libdir'
11493           hardcode_libdir_separator_CXX=
11494         fi
11495         ;;
11496       esac
11497       shared_flag='-shared'
11498       if test "$aix_use_runtimelinking" = yes; then
11499         shared_flag="$shared_flag "'${wl}-G'
11500       fi
11501     else
11502       # not using gcc
11503       if test "$host_cpu" = ia64; then
11504         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11505         # chokes on -Wl,-G. The following line is correct:
11506         shared_flag='-G'
11507       else
11508         if test "$aix_use_runtimelinking" = yes; then
11509           shared_flag='${wl}-G'
11510         else
11511           shared_flag='${wl}-bM:SRE'
11512         fi
11513       fi
11514     fi
11516     # It seems that -bexpall does not export symbols beginning with
11517     # underscore (_), so it is better to generate a list of symbols to export.
11518     always_export_symbols_CXX=yes
11519     if test "$aix_use_runtimelinking" = yes; then
11520       # Warning - without using the other runtime loading flags (-brtl),
11521       # -berok will link without error, but may produce a broken library.
11522       allow_undefined_flag_CXX='-berok'
11523       # Determine the default libpath from the value encoded in an empty executable.
11524       cat >conftest.$ac_ext <<_ACEOF
11525 /* confdefs.h.  */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h.  */
11531 int
11532 main ()
11535   ;
11536   return 0;
11538 _ACEOF
11539 rm -f conftest.$ac_objext conftest$ac_exeext
11540 if { (ac_try="$ac_link"
11541 case "(($ac_try" in
11542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543   *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546   (eval "$ac_link") 2>conftest.er1
11547   ac_status=$?
11548   grep -v '^ *+' conftest.er1 >conftest.err
11549   rm -f conftest.er1
11550   cat conftest.err >&5
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); } && {
11553          test -z "$ac_cxx_werror_flag" ||
11554          test ! -s conftest.err
11555        } && test -s conftest$ac_exeext &&
11556        $as_test_x conftest$ac_exeext; then
11558 lt_aix_libpath_sed='
11559     /Import File Strings/,/^$/ {
11560         /^0/ {
11561             s/^0  *\(.*\)$/\1/
11562             p
11563         }
11564     }'
11565 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11566 # Check for a 64-bit object if we didn't find anything.
11567 if test -z "$aix_libpath"; then
11568   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11570 else
11571   echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11578       conftest$ac_exeext conftest.$ac_ext
11579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11581       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11583       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"
11584      else
11585       if test "$host_cpu" = ia64; then
11586         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11587         allow_undefined_flag_CXX="-z nodefs"
11588         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"
11589       else
11590         # Determine the default libpath from the value encoded in an empty executable.
11591         cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h.  */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h.  */
11598 int
11599 main ()
11602   ;
11603   return 0;
11605 _ACEOF
11606 rm -f conftest.$ac_objext conftest$ac_exeext
11607 if { (ac_try="$ac_link"
11608 case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613   (eval "$ac_link") 2>conftest.er1
11614   ac_status=$?
11615   grep -v '^ *+' conftest.er1 >conftest.err
11616   rm -f conftest.er1
11617   cat conftest.err >&5
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); } && {
11620          test -z "$ac_cxx_werror_flag" ||
11621          test ! -s conftest.err
11622        } && test -s conftest$ac_exeext &&
11623        $as_test_x conftest$ac_exeext; then
11625 lt_aix_libpath_sed='
11626     /Import File Strings/,/^$/ {
11627         /^0/ {
11628             s/^0  *\(.*\)$/\1/
11629             p
11630         }
11631     }'
11632 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11633 # Check for a 64-bit object if we didn't find anything.
11634 if test -z "$aix_libpath"; then
11635   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11637 else
11638   echo "$as_me: failed program was:" >&5
11639 sed 's/^/| /' conftest.$ac_ext >&5
11644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11645       conftest$ac_exeext conftest.$ac_ext
11646 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11648         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11649         # Warning - without using the other run time loading flags,
11650         # -berok will link without error, but may produce a broken library.
11651         no_undefined_flag_CXX=' ${wl}-bernotok'
11652         allow_undefined_flag_CXX=' ${wl}-berok'
11653         # Exported symbols can be pulled into shared objects from archives
11654         whole_archive_flag_spec_CXX='$convenience'
11655         archive_cmds_need_lc_CXX=yes
11656         # This is similar to how AIX traditionally builds its shared libraries.
11657         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'
11658       fi
11659     fi
11660     ;;
11662   beos*)
11663     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11664       allow_undefined_flag_CXX=unsupported
11665       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11666       # support --undefined.  This deserves some investigation.  FIXME
11667       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11668     else
11669       ld_shlibs_CXX=no
11670     fi
11671     ;;
11673   chorus*)
11674     case $cc_basename in
11675       *)
11676         # FIXME: insert proper C++ library support
11677         ld_shlibs_CXX=no
11678         ;;
11679     esac
11680     ;;
11682   cygwin* | mingw* | pw32*)
11683     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11684     # as there is no search path for DLLs.
11685     hardcode_libdir_flag_spec_CXX='-L$libdir'
11686     allow_undefined_flag_CXX=unsupported
11687     always_export_symbols_CXX=no
11688     enable_shared_with_static_runtimes_CXX=yes
11690     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11691       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'
11692       # If the export-symbols file already is a .def file (1st line
11693       # is EXPORTS), use it as is; otherwise, prepend...
11694       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11695         cp $export_symbols $output_objdir/$soname.def;
11696       else
11697         echo EXPORTS > $output_objdir/$soname.def;
11698         cat $export_symbols >> $output_objdir/$soname.def;
11699       fi~
11700       $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'
11701     else
11702       ld_shlibs_CXX=no
11703     fi
11704   ;;
11705       darwin* | rhapsody*)
11706       archive_cmds_need_lc_CXX=no
11707       hardcode_direct_CXX=no
11708       hardcode_automatic_CXX=yes
11709       hardcode_shlibpath_var_CXX=unsupported
11710       whole_archive_flag_spec_CXX=''
11711       link_all_deplibs_CXX=yes
11712       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11713       if test "$GXX" = yes ; then
11714       output_verbose_link_cmd='echo'
11715       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}"
11716       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11717       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}"
11718       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}"
11719       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11720         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}"
11721         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}"
11722       fi
11723       else
11724       case $cc_basename in
11725         xlc*)
11726          output_verbose_link_cmd='echo'
11727           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'
11728           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11729           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11730           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}'
11731           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}'
11732           ;;
11733        *)
11734          ld_shlibs_CXX=no
11735           ;;
11736       esac
11737       fi
11738         ;;
11740   dgux*)
11741     case $cc_basename in
11742       ec++*)
11743         # FIXME: insert proper C++ library support
11744         ld_shlibs_CXX=no
11745         ;;
11746       ghcx*)
11747         # Green Hills C++ Compiler
11748         # FIXME: insert proper C++ library support
11749         ld_shlibs_CXX=no
11750         ;;
11751       *)
11752         # FIXME: insert proper C++ library support
11753         ld_shlibs_CXX=no
11754         ;;
11755     esac
11756     ;;
11757   freebsd[12]*)
11758     # C++ shared libraries reported to be fairly broken before switch to ELF
11759     ld_shlibs_CXX=no
11760     ;;
11761   freebsd-elf*)
11762     archive_cmds_need_lc_CXX=no
11763     ;;
11764   freebsd* | dragonfly*)
11765     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11766     # conventions
11767     ld_shlibs_CXX=yes
11768     ;;
11769   gnu*)
11770     ;;
11771   hpux9*)
11772     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11773     hardcode_libdir_separator_CXX=:
11774     export_dynamic_flag_spec_CXX='${wl}-E'
11775     hardcode_direct_CXX=yes
11776     hardcode_minus_L_CXX=yes # Not in the search PATH,
11777                                 # but as the default
11778                                 # location of the library.
11780     case $cc_basename in
11781     CC*)
11782       # FIXME: insert proper C++ library support
11783       ld_shlibs_CXX=no
11784       ;;
11785     aCC*)
11786       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'
11787       # Commands to make compiler produce verbose output that lists
11788       # what "hidden" libraries, object files and flags are used when
11789       # linking a shared library.
11790       #
11791       # There doesn't appear to be a way to prevent this compiler from
11792       # explicitly linking system object files so we need to strip them
11793       # from the output so that they don't get included in the library
11794       # dependencies.
11795       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'
11796       ;;
11797     *)
11798       if test "$GXX" = yes; then
11799         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'
11800       else
11801         # FIXME: insert proper C++ library support
11802         ld_shlibs_CXX=no
11803       fi
11804       ;;
11805     esac
11806     ;;
11807   hpux10*|hpux11*)
11808     if test $with_gnu_ld = no; then
11809       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11810       hardcode_libdir_separator_CXX=:
11812       case $host_cpu in
11813       hppa*64*|ia64*) ;;
11814       *)
11815         export_dynamic_flag_spec_CXX='${wl}-E'
11816         ;;
11817       esac
11818     fi
11819     case $host_cpu in
11820     hppa*64*|ia64*)
11821       hardcode_direct_CXX=no
11822       hardcode_shlibpath_var_CXX=no
11823       ;;
11824     *)
11825       hardcode_direct_CXX=yes
11826       hardcode_minus_L_CXX=yes # Not in the search PATH,
11827                                               # but as the default
11828                                               # location of the library.
11829       ;;
11830     esac
11832     case $cc_basename in
11833       CC*)
11834         # FIXME: insert proper C++ library support
11835         ld_shlibs_CXX=no
11836         ;;
11837       aCC*)
11838         case $host_cpu in
11839         hppa*64*)
11840           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11841           ;;
11842         ia64*)
11843           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11844           ;;
11845         *)
11846           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11847           ;;
11848         esac
11849         # Commands to make compiler produce verbose output that lists
11850         # what "hidden" libraries, object files and flags are used when
11851         # linking a shared library.
11852         #
11853         # There doesn't appear to be a way to prevent this compiler from
11854         # explicitly linking system object files so we need to strip them
11855         # from the output so that they don't get included in the library
11856         # dependencies.
11857         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'
11858         ;;
11859       *)
11860         if test "$GXX" = yes; then
11861           if test $with_gnu_ld = no; then
11862             case $host_cpu in
11863             hppa*64*)
11864               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11865               ;;
11866             ia64*)
11867               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11868               ;;
11869             *)
11870               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'
11871               ;;
11872             esac
11873           fi
11874         else
11875           # FIXME: insert proper C++ library support
11876           ld_shlibs_CXX=no
11877         fi
11878         ;;
11879     esac
11880     ;;
11881   interix[3-9]*)
11882     hardcode_direct_CXX=no
11883     hardcode_shlibpath_var_CXX=no
11884     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11885     export_dynamic_flag_spec_CXX='${wl}-E'
11886     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11887     # Instead, shared libraries are loaded at an image base (0x10000000 by
11888     # default) and relocated if they conflict, which is a slow very memory
11889     # consuming and fragmenting process.  To avoid this, we pick a random,
11890     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11891     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11892     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'
11893     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'
11894     ;;
11895   irix5* | irix6*)
11896     case $cc_basename in
11897       CC*)
11898         # SGI C++
11899         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'
11901         # Archives containing C++ object files must be created using
11902         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11903         # necessary to make sure instantiated templates are included
11904         # in the archive.
11905         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11906         ;;
11907       *)
11908         if test "$GXX" = yes; then
11909           if test "$with_gnu_ld" = no; then
11910             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'
11911           else
11912             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'
11913           fi
11914         fi
11915         link_all_deplibs_CXX=yes
11916         ;;
11917     esac
11918     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11919     hardcode_libdir_separator_CXX=:
11920     ;;
11921   linux* | k*bsd*-gnu)
11922     case $cc_basename in
11923       KCC*)
11924         # Kuck and Associates, Inc. (KAI) C++ Compiler
11926         # KCC will only create a shared library if the output file
11927         # ends with ".so" (or ".sl" for HP-UX), so rename the library
11928         # to its proper name (with version) after linking.
11929         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'
11930         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'
11931         # Commands to make compiler produce verbose output that lists
11932         # what "hidden" libraries, object files and flags are used when
11933         # linking a shared library.
11934         #
11935         # There doesn't appear to be a way to prevent this compiler from
11936         # explicitly linking system object files so we need to strip them
11937         # from the output so that they don't get included in the library
11938         # dependencies.
11939         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'
11941         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11942         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11944         # Archives containing C++ object files must be created using
11945         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11946         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11947         ;;
11948       icpc*)
11949         # Intel C++
11950         with_gnu_ld=yes
11951         # version 8.0 and above of icpc choke on multiply defined symbols
11952         # if we add $predep_objects and $postdep_objects, however 7.1 and
11953         # earlier do not add the objects themselves.
11954         case `$CC -V 2>&1` in
11955         *"Version 7."*)
11956           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11957           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'
11958           ;;
11959         *)  # Version 8.0 or newer
11960           tmp_idyn=
11961           case $host_cpu in
11962             ia64*) tmp_idyn=' -i_dynamic';;
11963           esac
11964           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11965           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'
11966           ;;
11967         esac
11968         archive_cmds_need_lc_CXX=no
11969         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11970         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11971         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11972         ;;
11973       pgCC* | pgcpp*)
11974         # Portland Group C++ compiler
11975         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11976         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'
11978         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11979         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11980         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'
11981         ;;
11982       cxx*)
11983         # Compaq C++
11984         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11985         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'
11987         runpath_var=LD_RUN_PATH
11988         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11989         hardcode_libdir_separator_CXX=:
11991         # Commands to make compiler produce verbose output that lists
11992         # what "hidden" libraries, object files and flags are used when
11993         # linking a shared library.
11994         #
11995         # There doesn't appear to be a way to prevent this compiler from
11996         # explicitly linking system object files so we need to strip them
11997         # from the output so that they don't get included in the library
11998         # dependencies.
11999         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'
12000         ;;
12001       *)
12002         case `$CC -V 2>&1 | sed 5q` in
12003         *Sun\ C*)
12004           # Sun C++ 5.9
12005           no_undefined_flag_CXX=' -zdefs'
12006           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12007           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'
12008           hardcode_libdir_flag_spec_CXX='-R$libdir'
12009           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'
12011           # Not sure whether something based on
12012           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12013           # would be better.
12014           output_verbose_link_cmd='echo'
12016           # Archives containing C++ object files must be created using
12017           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12018           # necessary to make sure instantiated templates are included
12019           # in the archive.
12020           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12021           ;;
12022         esac
12023         ;;
12024     esac
12025     ;;
12026   lynxos*)
12027     # FIXME: insert proper C++ library support
12028     ld_shlibs_CXX=no
12029     ;;
12030   m88k*)
12031     # FIXME: insert proper C++ library support
12032     ld_shlibs_CXX=no
12033     ;;
12034   mvs*)
12035     case $cc_basename in
12036       cxx*)
12037         # FIXME: insert proper C++ library support
12038         ld_shlibs_CXX=no
12039         ;;
12040       *)
12041         # FIXME: insert proper C++ library support
12042         ld_shlibs_CXX=no
12043         ;;
12044     esac
12045     ;;
12046   netbsd* | netbsdelf*-gnu)
12047     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12048       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12049       wlarc=
12050       hardcode_libdir_flag_spec_CXX='-R$libdir'
12051       hardcode_direct_CXX=yes
12052       hardcode_shlibpath_var_CXX=no
12053     fi
12054     # Workaround some broken pre-1.5 toolchains
12055     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12056     ;;
12057   openbsd2*)
12058     # C++ shared libraries are fairly broken
12059     ld_shlibs_CXX=no
12060     ;;
12061   openbsd*)
12062     if test -f /usr/libexec/ld.so; then
12063       hardcode_direct_CXX=yes
12064       hardcode_shlibpath_var_CXX=no
12065       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12066       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12067       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12068         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12069         export_dynamic_flag_spec_CXX='${wl}-E'
12070         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12071       fi
12072       output_verbose_link_cmd='echo'
12073     else
12074       ld_shlibs_CXX=no
12075     fi
12076     ;;
12077   osf3*)
12078     case $cc_basename in
12079       KCC*)
12080         # Kuck and Associates, Inc. (KAI) C++ Compiler
12082         # KCC will only create a shared library if the output file
12083         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12084         # to its proper name (with version) after linking.
12085         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'
12087         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12088         hardcode_libdir_separator_CXX=:
12090         # Archives containing C++ object files must be created using
12091         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12092         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12094         ;;
12095       RCC*)
12096         # Rational C++ 2.4.1
12097         # FIXME: insert proper C++ library support
12098         ld_shlibs_CXX=no
12099         ;;
12100       cxx*)
12101         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12102         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'
12104         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12105         hardcode_libdir_separator_CXX=:
12107         # Commands to make compiler produce verbose output that lists
12108         # what "hidden" libraries, object files and flags are used when
12109         # linking a shared library.
12110         #
12111         # There doesn't appear to be a way to prevent this compiler from
12112         # explicitly linking system object files so we need to strip them
12113         # from the output so that they don't get included in the library
12114         # dependencies.
12115         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'
12116         ;;
12117       *)
12118         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12119           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12120           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'
12122           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12123           hardcode_libdir_separator_CXX=:
12125           # Commands to make compiler produce verbose output that lists
12126           # what "hidden" libraries, object files and flags are used when
12127           # linking a shared library.
12128           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12130         else
12131           # FIXME: insert proper C++ library support
12132           ld_shlibs_CXX=no
12133         fi
12134         ;;
12135     esac
12136     ;;
12137   osf4* | osf5*)
12138     case $cc_basename in
12139       KCC*)
12140         # Kuck and Associates, Inc. (KAI) C++ Compiler
12142         # KCC will only create a shared library if the output file
12143         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12144         # to its proper name (with version) after linking.
12145         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'
12147         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12148         hardcode_libdir_separator_CXX=:
12150         # Archives containing C++ object files must be created using
12151         # the KAI C++ compiler.
12152         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12153         ;;
12154       RCC*)
12155         # Rational C++ 2.4.1
12156         # FIXME: insert proper C++ library support
12157         ld_shlibs_CXX=no
12158         ;;
12159       cxx*)
12160         allow_undefined_flag_CXX=' -expect_unresolved \*'
12161         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'
12162         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12163           echo "-hidden">> $lib.exp~
12164           $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~
12165           $rm $lib.exp'
12167         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12168         hardcode_libdir_separator_CXX=:
12170         # Commands to make compiler produce verbose output that lists
12171         # what "hidden" libraries, object files and flags are used when
12172         # linking a shared library.
12173         #
12174         # There doesn't appear to be a way to prevent this compiler from
12175         # explicitly linking system object files so we need to strip them
12176         # from the output so that they don't get included in the library
12177         # dependencies.
12178         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'
12179         ;;
12180       *)
12181         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12182           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12183          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'
12185           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12186           hardcode_libdir_separator_CXX=:
12188           # Commands to make compiler produce verbose output that lists
12189           # what "hidden" libraries, object files and flags are used when
12190           # linking a shared library.
12191           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12193         else
12194           # FIXME: insert proper C++ library support
12195           ld_shlibs_CXX=no
12196         fi
12197         ;;
12198     esac
12199     ;;
12200   psos*)
12201     # FIXME: insert proper C++ library support
12202     ld_shlibs_CXX=no
12203     ;;
12204   sunos4*)
12205     case $cc_basename in
12206       CC*)
12207         # Sun C++ 4.x
12208         # FIXME: insert proper C++ library support
12209         ld_shlibs_CXX=no
12210         ;;
12211       lcc*)
12212         # Lucid
12213         # FIXME: insert proper C++ library support
12214         ld_shlibs_CXX=no
12215         ;;
12216       *)
12217         # FIXME: insert proper C++ library support
12218         ld_shlibs_CXX=no
12219         ;;
12220     esac
12221     ;;
12222   solaris*)
12223     case $cc_basename in
12224       CC*)
12225         # Sun C++ 4.2, 5.x and Centerline C++
12226         archive_cmds_need_lc_CXX=yes
12227         no_undefined_flag_CXX=' -zdefs'
12228         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12229         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12230         $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'
12232         hardcode_libdir_flag_spec_CXX='-R$libdir'
12233         hardcode_shlibpath_var_CXX=no
12234         case $host_os in
12235           solaris2.[0-5] | solaris2.[0-5].*) ;;
12236           *)
12237             # The compiler driver will combine and reorder linker options,
12238             # but understands `-z linker_flag'.
12239             # Supported since Solaris 2.6 (maybe 2.5.1?)
12240             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12241             ;;
12242         esac
12243         link_all_deplibs_CXX=yes
12245         output_verbose_link_cmd='echo'
12247         # Archives containing C++ object files must be created using
12248         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12249         # necessary to make sure instantiated templates are included
12250         # in the archive.
12251         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12252         ;;
12253       gcx*)
12254         # Green Hills C++ Compiler
12255         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12257         # The C++ compiler must be used to create the archive.
12258         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12259         ;;
12260       *)
12261         # GNU C++ compiler with Solaris linker
12262         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12263           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12264           if $CC --version | grep -v '^2\.7' > /dev/null; then
12265             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12266             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12267                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12269             # Commands to make compiler produce verbose output that lists
12270             # what "hidden" libraries, object files and flags are used when
12271             # linking a shared library.
12272             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12273           else
12274             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12275             # platform.
12276             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12277             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12278                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12280             # Commands to make compiler produce verbose output that lists
12281             # what "hidden" libraries, object files and flags are used when
12282             # linking a shared library.
12283             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12284           fi
12286           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12287           case $host_os in
12288           solaris2.[0-5] | solaris2.[0-5].*) ;;
12289           *)
12290             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12291             ;;
12292           esac
12293         fi
12294         ;;
12295     esac
12296     ;;
12297   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12298     no_undefined_flag_CXX='${wl}-z,text'
12299     archive_cmds_need_lc_CXX=no
12300     hardcode_shlibpath_var_CXX=no
12301     runpath_var='LD_RUN_PATH'
12303     case $cc_basename in
12304       CC*)
12305         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12306         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12307         ;;
12308       *)
12309         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12310         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12311         ;;
12312     esac
12313     ;;
12314   sysv5* | sco3.2v5* | sco5v6*)
12315     # Note: We can NOT use -z defs as we might desire, because we do not
12316     # link with -lc, and that would cause any symbols used from libc to
12317     # always be unresolved, which means just about no library would
12318     # ever link correctly.  If we're not using GNU ld we use -z text
12319     # though, which does catch some bad symbols but isn't as heavy-handed
12320     # as -z defs.
12321     # For security reasons, it is highly recommended that you always
12322     # use absolute paths for naming shared libraries, and exclude the
12323     # DT_RUNPATH tag from executables and libraries.  But doing so
12324     # requires that you compile everything twice, which is a pain.
12325     # So that behaviour is only enabled if SCOABSPATH is set to a
12326     # non-empty value in the environment.  Most likely only useful for
12327     # creating official distributions of packages.
12328     # This is a hack until libtool officially supports absolute path
12329     # names for shared libraries.
12330     no_undefined_flag_CXX='${wl}-z,text'
12331     allow_undefined_flag_CXX='${wl}-z,nodefs'
12332     archive_cmds_need_lc_CXX=no
12333     hardcode_shlibpath_var_CXX=no
12334     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12335     hardcode_libdir_separator_CXX=':'
12336     link_all_deplibs_CXX=yes
12337     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12338     runpath_var='LD_RUN_PATH'
12340     case $cc_basename in
12341       CC*)
12342         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12343         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12344         ;;
12345       *)
12346         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12347         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12348         ;;
12349     esac
12350     ;;
12351   tandem*)
12352     case $cc_basename in
12353       NCC*)
12354         # NonStop-UX NCC 3.20
12355         # FIXME: insert proper C++ library support
12356         ld_shlibs_CXX=no
12357         ;;
12358       *)
12359         # FIXME: insert proper C++ library support
12360         ld_shlibs_CXX=no
12361         ;;
12362     esac
12363     ;;
12364   vxworks*)
12365     # FIXME: insert proper C++ library support
12366     ld_shlibs_CXX=no
12367     ;;
12368   *)
12369     # FIXME: insert proper C++ library support
12370     ld_shlibs_CXX=no
12371     ;;
12372 esac
12373 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12374 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12375 test "$ld_shlibs_CXX" = no && can_build_shared=no
12377 GCC_CXX="$GXX"
12378 LD_CXX="$LD"
12380 cat > conftest.$ac_ext <<EOF
12381 class Foo
12383 public:
12384   Foo (void) { a = 0; }
12385 private:
12386   int a;
12388 EOF
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391   (eval $ac_compile) 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; then
12395   # Parse the compiler output and extract the necessary
12396   # objects, libraries and library flags.
12398   # Sentinel used to keep track of whether or not we are before
12399   # the conftest object file.
12400   pre_test_object_deps_done=no
12402   # The `*' in the case matches for architectures that use `case' in
12403   # $output_verbose_cmd can trigger glob expansion during the loop
12404   # eval without this substitution.
12405   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12407   for p in `eval $output_verbose_link_cmd`; do
12408     case $p in
12410     -L* | -R* | -l*)
12411        # Some compilers place space between "-{L,R}" and the path.
12412        # Remove the space.
12413        if test $p = "-L" \
12414           || test $p = "-R"; then
12415          prev=$p
12416          continue
12417        else
12418          prev=
12419        fi
12421        if test "$pre_test_object_deps_done" = no; then
12422          case $p in
12423          -L* | -R*)
12424            # Internal compiler library paths should come after those
12425            # provided the user.  The postdeps already come after the
12426            # user supplied libs so there is no need to process them.
12427            if test -z "$compiler_lib_search_path_CXX"; then
12428              compiler_lib_search_path_CXX="${prev}${p}"
12429            else
12430              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12431            fi
12432            ;;
12433          # The "-l" case would never come before the object being
12434          # linked, so don't bother handling this case.
12435          esac
12436        else
12437          if test -z "$postdeps_CXX"; then
12438            postdeps_CXX="${prev}${p}"
12439          else
12440            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12441          fi
12442        fi
12443        ;;
12445     *.$objext)
12446        # This assumes that the test object file only shows up
12447        # once in the compiler output.
12448        if test "$p" = "conftest.$objext"; then
12449          pre_test_object_deps_done=yes
12450          continue
12451        fi
12453        if test "$pre_test_object_deps_done" = no; then
12454          if test -z "$predep_objects_CXX"; then
12455            predep_objects_CXX="$p"
12456          else
12457            predep_objects_CXX="$predep_objects_CXX $p"
12458          fi
12459        else
12460          if test -z "$postdep_objects_CXX"; then
12461            postdep_objects_CXX="$p"
12462          else
12463            postdep_objects_CXX="$postdep_objects_CXX $p"
12464          fi
12465        fi
12466        ;;
12468     *) ;; # Ignore the rest.
12470     esac
12471   done
12473   # Clean up.
12474   rm -f a.out a.exe
12475 else
12476   echo "libtool.m4: error: problem compiling CXX test program"
12479 $rm -f confest.$objext
12481 compiler_lib_search_dirs_CXX=
12482 if test -n "$compiler_lib_search_path_CXX"; then
12483   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12486 # PORTME: override above test on systems where it is broken
12487 case $host_os in
12488 interix[3-9]*)
12489   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12490   # hack all around it, let's just trust "g++" to DTRT.
12491   predep_objects_CXX=
12492   postdep_objects_CXX=
12493   postdeps_CXX=
12494   ;;
12496 linux*)
12497   case `$CC -V 2>&1 | sed 5q` in
12498   *Sun\ C*)
12499     # Sun C++ 5.9
12500     #
12501     # The more standards-conforming stlport4 library is
12502     # incompatible with the Cstd library. Avoid specifying
12503     # it if it's in CXXFLAGS. Ignore libCrun as
12504     # -library=stlport4 depends on it.
12505     case " $CXX $CXXFLAGS " in
12506     *" -library=stlport4 "*)
12507       solaris_use_stlport4=yes
12508       ;;
12509     esac
12510     if test "$solaris_use_stlport4" != yes; then
12511       postdeps_CXX='-library=Cstd -library=Crun'
12512     fi
12513     ;;
12514   esac
12515   ;;
12517 solaris*)
12518   case $cc_basename in
12519   CC*)
12520     # The more standards-conforming stlport4 library is
12521     # incompatible with the Cstd library. Avoid specifying
12522     # it if it's in CXXFLAGS. Ignore libCrun as
12523     # -library=stlport4 depends on it.
12524     case " $CXX $CXXFLAGS " in
12525     *" -library=stlport4 "*)
12526       solaris_use_stlport4=yes
12527       ;;
12528     esac
12530     # Adding this requires a known-good setup of shared libraries for
12531     # Sun compiler versions before 5.6, else PIC objects from an old
12532     # archive will be linked into the output, leading to subtle bugs.
12533     if test "$solaris_use_stlport4" != yes; then
12534       postdeps_CXX='-library=Cstd -library=Crun'
12535     fi
12536     ;;
12537   esac
12538   ;;
12539 esac
12541 case " $postdeps_CXX " in
12542 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12543 esac
12545 lt_prog_compiler_wl_CXX=
12546 lt_prog_compiler_pic_CXX=
12547 lt_prog_compiler_static_CXX=
12549 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12550 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12552   # C++ specific cases for pic, static, wl, etc.
12553   if test "$GXX" = yes; then
12554     lt_prog_compiler_wl_CXX='-Wl,'
12555     lt_prog_compiler_static_CXX='-static'
12557     case $host_os in
12558     aix*)
12559       # All AIX code is PIC.
12560       if test "$host_cpu" = ia64; then
12561         # AIX 5 now supports IA64 processor
12562         lt_prog_compiler_static_CXX='-Bstatic'
12563       fi
12564       ;;
12565     amigaos*)
12566       # FIXME: we need at least 68020 code to build shared libraries, but
12567       # adding the `-m68020' flag to GCC prevents building anything better,
12568       # like `-m68040'.
12569       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12570       ;;
12571     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12572       # PIC is the default for these OSes.
12573       ;;
12574     mingw* | cygwin* | os2* | pw32*)
12575       # This hack is so that the source file can tell whether it is being
12576       # built for inclusion in a dll (and should export symbols for example).
12577       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12578       # (--disable-auto-import) libraries
12579       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12580       ;;
12581     darwin* | rhapsody*)
12582       # PIC is the default on this platform
12583       # Common symbols not allowed in MH_DYLIB files
12584       lt_prog_compiler_pic_CXX='-fno-common'
12585       ;;
12586     *djgpp*)
12587       # DJGPP does not support shared libraries at all
12588       lt_prog_compiler_pic_CXX=
12589       ;;
12590     interix[3-9]*)
12591       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12592       # Instead, we relocate shared libraries at runtime.
12593       ;;
12594     sysv4*MP*)
12595       if test -d /usr/nec; then
12596         lt_prog_compiler_pic_CXX=-Kconform_pic
12597       fi
12598       ;;
12599     hpux*)
12600       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12601       # not for PA HP-UX.
12602       case $host_cpu in
12603       hppa*64*|ia64*)
12604         ;;
12605       *)
12606         lt_prog_compiler_pic_CXX='-fPIC'
12607         ;;
12608       esac
12609       ;;
12610     *)
12611       lt_prog_compiler_pic_CXX='-fPIC'
12612       ;;
12613     esac
12614   else
12615     case $host_os in
12616       aix[4-9]*)
12617         # All AIX code is PIC.
12618         if test "$host_cpu" = ia64; then
12619           # AIX 5 now supports IA64 processor
12620           lt_prog_compiler_static_CXX='-Bstatic'
12621         else
12622           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12623         fi
12624         ;;
12625       chorus*)
12626         case $cc_basename in
12627         cxch68*)
12628           # Green Hills C++ Compiler
12629           # _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"
12630           ;;
12631         esac
12632         ;;
12633        darwin*)
12634          # PIC is the default on this platform
12635          # Common symbols not allowed in MH_DYLIB files
12636          case $cc_basename in
12637            xlc*)
12638            lt_prog_compiler_pic_CXX='-qnocommon'
12639            lt_prog_compiler_wl_CXX='-Wl,'
12640            ;;
12641          esac
12642        ;;
12643       dgux*)
12644         case $cc_basename in
12645           ec++*)
12646             lt_prog_compiler_pic_CXX='-KPIC'
12647             ;;
12648           ghcx*)
12649             # Green Hills C++ Compiler
12650             lt_prog_compiler_pic_CXX='-pic'
12651             ;;
12652           *)
12653             ;;
12654         esac
12655         ;;
12656       freebsd* | dragonfly*)
12657         # FreeBSD uses GNU C++
12658         ;;
12659       hpux9* | hpux10* | hpux11*)
12660         case $cc_basename in
12661           CC*)
12662             lt_prog_compiler_wl_CXX='-Wl,'
12663             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12664             if test "$host_cpu" != ia64; then
12665               lt_prog_compiler_pic_CXX='+Z'
12666             fi
12667             ;;
12668           aCC*)
12669             lt_prog_compiler_wl_CXX='-Wl,'
12670             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12671             case $host_cpu in
12672             hppa*64*|ia64*)
12673               # +Z the default
12674               ;;
12675             *)
12676               lt_prog_compiler_pic_CXX='+Z'
12677               ;;
12678             esac
12679             ;;
12680           *)
12681             ;;
12682         esac
12683         ;;
12684       interix*)
12685         # This is c89, which is MS Visual C++ (no shared libs)
12686         # Anyone wants to do a port?
12687         ;;
12688       irix5* | irix6* | nonstopux*)
12689         case $cc_basename in
12690           CC*)
12691             lt_prog_compiler_wl_CXX='-Wl,'
12692             lt_prog_compiler_static_CXX='-non_shared'
12693             # CC pic flag -KPIC is the default.
12694             ;;
12695           *)
12696             ;;
12697         esac
12698         ;;
12699       linux* | k*bsd*-gnu)
12700         case $cc_basename in
12701           KCC*)
12702             # KAI C++ Compiler
12703             lt_prog_compiler_wl_CXX='--backend -Wl,'
12704             lt_prog_compiler_pic_CXX='-fPIC'
12705             ;;
12706           icpc* | ecpc*)
12707             # Intel C++
12708             lt_prog_compiler_wl_CXX='-Wl,'
12709             lt_prog_compiler_pic_CXX='-KPIC'
12710             lt_prog_compiler_static_CXX='-static'
12711             ;;
12712           pgCC* | pgcpp*)
12713             # Portland Group C++ compiler.
12714             lt_prog_compiler_wl_CXX='-Wl,'
12715             lt_prog_compiler_pic_CXX='-fpic'
12716             lt_prog_compiler_static_CXX='-Bstatic'
12717             ;;
12718           cxx*)
12719             # Compaq C++
12720             # Make sure the PIC flag is empty.  It appears that all Alpha
12721             # Linux and Compaq Tru64 Unix objects are PIC.
12722             lt_prog_compiler_pic_CXX=
12723             lt_prog_compiler_static_CXX='-non_shared'
12724             ;;
12725           *)
12726             case `$CC -V 2>&1 | sed 5q` in
12727             *Sun\ C*)
12728               # Sun C++ 5.9
12729               lt_prog_compiler_pic_CXX='-KPIC'
12730               lt_prog_compiler_static_CXX='-Bstatic'
12731               lt_prog_compiler_wl_CXX='-Qoption ld '
12732               ;;
12733             esac
12734             ;;
12735         esac
12736         ;;
12737       lynxos*)
12738         ;;
12739       m88k*)
12740         ;;
12741       mvs*)
12742         case $cc_basename in
12743           cxx*)
12744             lt_prog_compiler_pic_CXX='-W c,exportall'
12745             ;;
12746           *)
12747             ;;
12748         esac
12749         ;;
12750       netbsd* | netbsdelf*-gnu)
12751         ;;
12752       osf3* | osf4* | osf5*)
12753         case $cc_basename in
12754           KCC*)
12755             lt_prog_compiler_wl_CXX='--backend -Wl,'
12756             ;;
12757           RCC*)
12758             # Rational C++ 2.4.1
12759             lt_prog_compiler_pic_CXX='-pic'
12760             ;;
12761           cxx*)
12762             # Digital/Compaq C++
12763             lt_prog_compiler_wl_CXX='-Wl,'
12764             # Make sure the PIC flag is empty.  It appears that all Alpha
12765             # Linux and Compaq Tru64 Unix objects are PIC.
12766             lt_prog_compiler_pic_CXX=
12767             lt_prog_compiler_static_CXX='-non_shared'
12768             ;;
12769           *)
12770             ;;
12771         esac
12772         ;;
12773       psos*)
12774         ;;
12775       solaris*)
12776         case $cc_basename in
12777           CC*)
12778             # Sun C++ 4.2, 5.x and Centerline C++
12779             lt_prog_compiler_pic_CXX='-KPIC'
12780             lt_prog_compiler_static_CXX='-Bstatic'
12781             lt_prog_compiler_wl_CXX='-Qoption ld '
12782             ;;
12783           gcx*)
12784             # Green Hills C++ Compiler
12785             lt_prog_compiler_pic_CXX='-PIC'
12786             ;;
12787           *)
12788             ;;
12789         esac
12790         ;;
12791       sunos4*)
12792         case $cc_basename in
12793           CC*)
12794             # Sun C++ 4.x
12795             lt_prog_compiler_pic_CXX='-pic'
12796             lt_prog_compiler_static_CXX='-Bstatic'
12797             ;;
12798           lcc*)
12799             # Lucid
12800             lt_prog_compiler_pic_CXX='-pic'
12801             ;;
12802           *)
12803             ;;
12804         esac
12805         ;;
12806       tandem*)
12807         case $cc_basename in
12808           NCC*)
12809             # NonStop-UX NCC 3.20
12810             lt_prog_compiler_pic_CXX='-KPIC'
12811             ;;
12812           *)
12813             ;;
12814         esac
12815         ;;
12816       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12817         case $cc_basename in
12818           CC*)
12819             lt_prog_compiler_wl_CXX='-Wl,'
12820             lt_prog_compiler_pic_CXX='-KPIC'
12821             lt_prog_compiler_static_CXX='-Bstatic'
12822             ;;
12823         esac
12824         ;;
12825       vxworks*)
12826         ;;
12827       *)
12828         lt_prog_compiler_can_build_shared_CXX=no
12829         ;;
12830     esac
12831   fi
12833 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12834 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12837 # Check to make sure the PIC flag actually works.
12839 if test -n "$lt_prog_compiler_pic_CXX"; then
12841 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12842 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12843 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12844   echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846   lt_cv_prog_compiler_pic_works_CXX=no
12847   ac_outfile=conftest.$ac_objext
12848    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12849    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12850    # Insert the option either (1) after the last *FLAGS variable, or
12851    # (2) before a word containing "conftest.", or (3) at the end.
12852    # Note that $ac_compile itself does not contain backslashes and begins
12853    # with a dollar sign (not a hyphen), so the echo should work correctly.
12854    # The option is referenced via a variable to avoid confusing sed.
12855    lt_compile=`echo "$ac_compile" | $SED \
12856    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12857    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12858    -e 's:$: $lt_compiler_flag:'`
12859    (eval echo "\"\$as_me:12859: $lt_compile\"" >&5)
12860    (eval "$lt_compile" 2>conftest.err)
12861    ac_status=$?
12862    cat conftest.err >&5
12863    echo "$as_me:12863: \$? = $ac_status" >&5
12864    if (exit $ac_status) && test -s "$ac_outfile"; then
12865      # The compiler can only warn and ignore the option if not recognized
12866      # So say no if there are warnings other than the usual output.
12867      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12868      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12869      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12870        lt_cv_prog_compiler_pic_works_CXX=yes
12871      fi
12872    fi
12873    $rm conftest*
12876 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12877 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12879 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12880     case $lt_prog_compiler_pic_CXX in
12881      "" | " "*) ;;
12882      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12883      esac
12884 else
12885     lt_prog_compiler_pic_CXX=
12886      lt_prog_compiler_can_build_shared_CXX=no
12890 case $host_os in
12891   # For platforms which do not support PIC, -DPIC is meaningless:
12892   *djgpp*)
12893     lt_prog_compiler_pic_CXX=
12894     ;;
12895   *)
12896     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12897     ;;
12898 esac
12901 # Check to make sure the static flag actually works.
12903 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12904 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12905 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12906 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12907   echo $ECHO_N "(cached) $ECHO_C" >&6
12908 else
12909   lt_cv_prog_compiler_static_works_CXX=no
12910    save_LDFLAGS="$LDFLAGS"
12911    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12912    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12913    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12914      # The linker can only warn and ignore the option if not recognized
12915      # So say no if there are warnings
12916      if test -s conftest.err; then
12917        # Append any errors to the config.log.
12918        cat conftest.err 1>&5
12919        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12920        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12921        if diff conftest.exp conftest.er2 >/dev/null; then
12922          lt_cv_prog_compiler_static_works_CXX=yes
12923        fi
12924      else
12925        lt_cv_prog_compiler_static_works_CXX=yes
12926      fi
12927    fi
12928    $rm -r conftest*
12929    LDFLAGS="$save_LDFLAGS"
12932 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12933 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12935 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12936     :
12937 else
12938     lt_prog_compiler_static_CXX=
12942 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12944 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12945   echo $ECHO_N "(cached) $ECHO_C" >&6
12946 else
12947   lt_cv_prog_compiler_c_o_CXX=no
12948    $rm -r conftest 2>/dev/null
12949    mkdir conftest
12950    cd conftest
12951    mkdir out
12952    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12954    lt_compiler_flag="-o out/conftest2.$ac_objext"
12955    # Insert the option either (1) after the last *FLAGS variable, or
12956    # (2) before a word containing "conftest.", or (3) at the end.
12957    # Note that $ac_compile itself does not contain backslashes and begins
12958    # with a dollar sign (not a hyphen), so the echo should work correctly.
12959    lt_compile=`echo "$ac_compile" | $SED \
12960    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12961    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12962    -e 's:$: $lt_compiler_flag:'`
12963    (eval echo "\"\$as_me:12963: $lt_compile\"" >&5)
12964    (eval "$lt_compile" 2>out/conftest.err)
12965    ac_status=$?
12966    cat out/conftest.err >&5
12967    echo "$as_me:12967: \$? = $ac_status" >&5
12968    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12969    then
12970      # The compiler can only warn and ignore the option if not recognized
12971      # So say no if there are warnings
12972      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12973      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12974      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12975        lt_cv_prog_compiler_c_o_CXX=yes
12976      fi
12977    fi
12978    chmod u+w . 2>&5
12979    $rm conftest*
12980    # SGI C++ compiler will create directory out/ii_files/ for
12981    # template instantiation
12982    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12983    $rm out/* && rmdir out
12984    cd ..
12985    rmdir conftest
12986    $rm conftest*
12989 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12990 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12993 hard_links="nottested"
12994 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12995   # do not overwrite the value of need_locks provided by the user
12996   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12997 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12998   hard_links=yes
12999   $rm conftest*
13000   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13001   touch conftest.a
13002   ln conftest.a conftest.b 2>&5 || hard_links=no
13003   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13004   { echo "$as_me:$LINENO: result: $hard_links" >&5
13005 echo "${ECHO_T}$hard_links" >&6; }
13006   if test "$hard_links" = no; then
13007     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13008 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13009     need_locks=warn
13010   fi
13011 else
13012   need_locks=no
13015 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13016 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13018   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13019   case $host_os in
13020   aix[4-9]*)
13021     # If we're using GNU nm, then we don't want the "-C" option.
13022     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13023     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13024       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'
13025     else
13026       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'
13027     fi
13028     ;;
13029   pw32*)
13030     export_symbols_cmds_CXX="$ltdll_cmds"
13031   ;;
13032   cygwin* | mingw*)
13033     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'
13034   ;;
13035   linux* | k*bsd*-gnu)
13036     link_all_deplibs_CXX=no
13037   ;;
13038   *)
13039     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13040   ;;
13041   esac
13042   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13044 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13045 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13046 test "$ld_shlibs_CXX" = no && can_build_shared=no
13049 # Do we need to explicitly link libc?
13051 case "x$archive_cmds_need_lc_CXX" in
13052 x|xyes)
13053   # Assume -lc should be added
13054   archive_cmds_need_lc_CXX=yes
13056   if test "$enable_shared" = yes && test "$GCC" = yes; then
13057     case $archive_cmds_CXX in
13058     *'~'*)
13059       # FIXME: we may have to deal with multi-command sequences.
13060       ;;
13061     '$CC '*)
13062       # Test whether the compiler implicitly links with -lc since on some
13063       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13064       # to ld, don't add -lc before -lgcc.
13065       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13066 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13067       $rm conftest*
13068       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13070       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13071   (eval $ac_compile) 2>&5
13072   ac_status=$?
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); } 2>conftest.err; then
13075         soname=conftest
13076         lib=conftest
13077         libobjs=conftest.$ac_objext
13078         deplibs=
13079         wl=$lt_prog_compiler_wl_CXX
13080         pic_flag=$lt_prog_compiler_pic_CXX
13081         compiler_flags=-v
13082         linker_flags=-v
13083         verstring=
13084         output_objdir=.
13085         libname=conftest
13086         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13087         allow_undefined_flag_CXX=
13088         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13089   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13090   ac_status=$?
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); }
13093         then
13094           archive_cmds_need_lc_CXX=no
13095         else
13096           archive_cmds_need_lc_CXX=yes
13097         fi
13098         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13099       else
13100         cat conftest.err 1>&5
13101       fi
13102       $rm conftest*
13103       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13104 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13105       ;;
13106     esac
13107   fi
13108   ;;
13109 esac
13111 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13112 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13113 library_names_spec=
13114 libname_spec='lib$name'
13115 soname_spec=
13116 shrext_cmds=".so"
13117 postinstall_cmds=
13118 postuninstall_cmds=
13119 finish_cmds=
13120 finish_eval=
13121 shlibpath_var=
13122 shlibpath_overrides_runpath=unknown
13123 version_type=none
13124 dynamic_linker="$host_os ld.so"
13125 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13127 need_lib_prefix=unknown
13128 hardcode_into_libs=no
13130 # when you set need_version to no, make sure it does not cause -set_version
13131 # flags to be left without arguments
13132 need_version=unknown
13134 case $host_os in
13135 aix3*)
13136   version_type=linux
13137   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13138   shlibpath_var=LIBPATH
13140   # AIX 3 has no versioning support, so we append a major version to the name.
13141   soname_spec='${libname}${release}${shared_ext}$major'
13142   ;;
13144 aix[4-9]*)
13145   version_type=linux
13146   need_lib_prefix=no
13147   need_version=no
13148   hardcode_into_libs=yes
13149   if test "$host_cpu" = ia64; then
13150     # AIX 5 supports IA64
13151     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13152     shlibpath_var=LD_LIBRARY_PATH
13153   else
13154     # With GCC up to 2.95.x, collect2 would create an import file
13155     # for dependence libraries.  The import file would start with
13156     # the line `#! .'.  This would cause the generated library to
13157     # depend on `.', always an invalid library.  This was fixed in
13158     # development snapshots of GCC prior to 3.0.
13159     case $host_os in
13160       aix4 | aix4.[01] | aix4.[01].*)
13161       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13162            echo ' yes '
13163            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13164         :
13165       else
13166         can_build_shared=no
13167       fi
13168       ;;
13169     esac
13170     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13171     # soname into executable. Probably we can add versioning support to
13172     # collect2, so additional links can be useful in future.
13173     if test "$aix_use_runtimelinking" = yes; then
13174       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13175       # instead of lib<name>.a to let people know that these are not
13176       # typical AIX shared libraries.
13177       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13178     else
13179       # We preserve .a as extension for shared libraries through AIX4.2
13180       # and later when we are not doing run time linking.
13181       library_names_spec='${libname}${release}.a $libname.a'
13182       soname_spec='${libname}${release}${shared_ext}$major'
13183     fi
13184     shlibpath_var=LIBPATH
13185   fi
13186   ;;
13188 amigaos*)
13189   library_names_spec='$libname.ixlibrary $libname.a'
13190   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13191   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'
13192   ;;
13194 beos*)
13195   library_names_spec='${libname}${shared_ext}'
13196   dynamic_linker="$host_os ld.so"
13197   shlibpath_var=LIBRARY_PATH
13198   ;;
13200 bsdi[45]*)
13201   version_type=linux
13202   need_version=no
13203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13204   soname_spec='${libname}${release}${shared_ext}$major'
13205   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13206   shlibpath_var=LD_LIBRARY_PATH
13207   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13208   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13209   # the default ld.so.conf also contains /usr/contrib/lib and
13210   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13211   # libtool to hard-code these into programs
13212   ;;
13214 cygwin* | mingw* | pw32*)
13215   version_type=windows
13216   shrext_cmds=".dll"
13217   need_version=no
13218   need_lib_prefix=no
13220   case $GCC,$host_os in
13221   yes,cygwin* | yes,mingw* | yes,pw32*)
13222     library_names_spec='$libname.dll.a'
13223     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13224     postinstall_cmds='base_file=`basename \${file}`~
13225       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13226       dldir=$destdir/`dirname \$dlpath`~
13227       test -d \$dldir || mkdir -p \$dldir~
13228       $install_prog $dir/$dlname \$dldir/$dlname~
13229       chmod a+x \$dldir/$dlname'
13230     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13231       dlpath=$dir/\$dldll~
13232        $rm \$dlpath'
13233     shlibpath_overrides_runpath=yes
13235     case $host_os in
13236     cygwin*)
13237       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13238       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13239       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13240       ;;
13241     mingw*)
13242       # MinGW DLLs use traditional 'lib' prefix
13243       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13244       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13245       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13246         # It is most probably a Windows format PATH printed by
13247         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13248         # path with ; separators, and with drive letters. We can handle the
13249         # drive letters (cygwin fileutils understands them), so leave them,
13250         # especially as we might pass files found there to a mingw objdump,
13251         # which wouldn't understand a cygwinified path. Ahh.
13252         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13253       else
13254         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13255       fi
13256       ;;
13257     pw32*)
13258       # pw32 DLLs use 'pw' prefix rather than 'lib'
13259       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13260       ;;
13261     esac
13262     ;;
13264   *)
13265     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13266     ;;
13267   esac
13268   dynamic_linker='Win32 ld.exe'
13269   # FIXME: first we should search . and the directory the executable is in
13270   shlibpath_var=PATH
13271   ;;
13273 darwin* | rhapsody*)
13274   dynamic_linker="$host_os dyld"
13275   version_type=darwin
13276   need_lib_prefix=no
13277   need_version=no
13278   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13279   soname_spec='${libname}${release}${major}$shared_ext'
13280   shlibpath_overrides_runpath=yes
13281   shlibpath_var=DYLD_LIBRARY_PATH
13282   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13284   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13285   ;;
13287 dgux*)
13288   version_type=linux
13289   need_lib_prefix=no
13290   need_version=no
13291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13292   soname_spec='${libname}${release}${shared_ext}$major'
13293   shlibpath_var=LD_LIBRARY_PATH
13294   ;;
13296 freebsd1*)
13297   dynamic_linker=no
13298   ;;
13300 freebsd* | dragonfly*)
13301   # DragonFly does not have aout.  When/if they implement a new
13302   # versioning mechanism, adjust this.
13303   if test -x /usr/bin/objformat; then
13304     objformat=`/usr/bin/objformat`
13305   else
13306     case $host_os in
13307     freebsd[123]*) objformat=aout ;;
13308     *) objformat=elf ;;
13309     esac
13310   fi
13311   version_type=freebsd-$objformat
13312   case $version_type in
13313     freebsd-elf*)
13314       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13315       need_version=no
13316       need_lib_prefix=no
13317       ;;
13318     freebsd-*)
13319       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13320       need_version=yes
13321       ;;
13322   esac
13323   shlibpath_var=LD_LIBRARY_PATH
13324   case $host_os in
13325   freebsd2*)
13326     shlibpath_overrides_runpath=yes
13327     ;;
13328   freebsd3.[01]* | freebsdelf3.[01]*)
13329     shlibpath_overrides_runpath=yes
13330     hardcode_into_libs=yes
13331     ;;
13332   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13333   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13334     shlibpath_overrides_runpath=no
13335     hardcode_into_libs=yes
13336     ;;
13337   *) # from 4.6 on, and DragonFly
13338     shlibpath_overrides_runpath=yes
13339     hardcode_into_libs=yes
13340     ;;
13341   esac
13342   ;;
13344 gnu*)
13345   version_type=linux
13346   need_lib_prefix=no
13347   need_version=no
13348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13349   soname_spec='${libname}${release}${shared_ext}$major'
13350   shlibpath_var=LD_LIBRARY_PATH
13351   hardcode_into_libs=yes
13352   ;;
13354 hpux9* | hpux10* | hpux11*)
13355   # Give a soname corresponding to the major version so that dld.sl refuses to
13356   # link against other versions.
13357   version_type=sunos
13358   need_lib_prefix=no
13359   need_version=no
13360   case $host_cpu in
13361   ia64*)
13362     shrext_cmds='.so'
13363     hardcode_into_libs=yes
13364     dynamic_linker="$host_os dld.so"
13365     shlibpath_var=LD_LIBRARY_PATH
13366     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13368     soname_spec='${libname}${release}${shared_ext}$major'
13369     if test "X$HPUX_IA64_MODE" = X32; then
13370       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13371     else
13372       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13373     fi
13374     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13375     ;;
13376    hppa*64*)
13377      shrext_cmds='.sl'
13378      hardcode_into_libs=yes
13379      dynamic_linker="$host_os dld.sl"
13380      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13381      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13382      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13383      soname_spec='${libname}${release}${shared_ext}$major'
13384      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13385      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13386      ;;
13387    *)
13388     shrext_cmds='.sl'
13389     dynamic_linker="$host_os dld.sl"
13390     shlibpath_var=SHLIB_PATH
13391     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13392     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13393     soname_spec='${libname}${release}${shared_ext}$major'
13394     ;;
13395   esac
13396   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13397   postinstall_cmds='chmod 555 $lib'
13398   ;;
13400 interix[3-9]*)
13401   version_type=linux
13402   need_lib_prefix=no
13403   need_version=no
13404   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13405   soname_spec='${libname}${release}${shared_ext}$major'
13406   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13407   shlibpath_var=LD_LIBRARY_PATH
13408   shlibpath_overrides_runpath=no
13409   hardcode_into_libs=yes
13410   ;;
13412 irix5* | irix6* | nonstopux*)
13413   case $host_os in
13414     nonstopux*) version_type=nonstopux ;;
13415     *)
13416         if test "$lt_cv_prog_gnu_ld" = yes; then
13417                 version_type=linux
13418         else
13419                 version_type=irix
13420         fi ;;
13421   esac
13422   need_lib_prefix=no
13423   need_version=no
13424   soname_spec='${libname}${release}${shared_ext}$major'
13425   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13426   case $host_os in
13427   irix5* | nonstopux*)
13428     libsuff= shlibsuff=
13429     ;;
13430   *)
13431     case $LD in # libtool.m4 will add one of these switches to LD
13432     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13433       libsuff= shlibsuff= libmagic=32-bit;;
13434     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13435       libsuff=32 shlibsuff=N32 libmagic=N32;;
13436     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13437       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13438     *) libsuff= shlibsuff= libmagic=never-match;;
13439     esac
13440     ;;
13441   esac
13442   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13443   shlibpath_overrides_runpath=no
13444   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13445   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13446   hardcode_into_libs=yes
13447   ;;
13449 # No shared lib support for Linux oldld, aout, or coff.
13450 linux*oldld* | linux*aout* | linux*coff*)
13451   dynamic_linker=no
13452   ;;
13454 # This must be Linux ELF.
13455 linux* | k*bsd*-gnu)
13456   version_type=linux
13457   need_lib_prefix=no
13458   need_version=no
13459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460   soname_spec='${libname}${release}${shared_ext}$major'
13461   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13462   shlibpath_var=LD_LIBRARY_PATH
13463   shlibpath_overrides_runpath=no
13464   # This implies no fast_install, which is unacceptable.
13465   # Some rework will be needed to allow for fast_install
13466   # before this can be enabled.
13467   hardcode_into_libs=yes
13469   # Append ld.so.conf contents to the search path
13470   if test -f /etc/ld.so.conf; then
13471     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' ' '`
13472     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13473   fi
13475   # We used to test for /lib/ld.so.1 and disable shared libraries on
13476   # powerpc, because MkLinux only supported shared libraries with the
13477   # GNU dynamic linker.  Since this was broken with cross compilers,
13478   # most powerpc-linux boxes support dynamic linking these days and
13479   # people can always --disable-shared, the test was removed, and we
13480   # assume the GNU/Linux dynamic linker is in use.
13481   dynamic_linker='GNU/Linux ld.so'
13482   ;;
13484 netbsdelf*-gnu)
13485   version_type=linux
13486   need_lib_prefix=no
13487   need_version=no
13488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13489   soname_spec='${libname}${release}${shared_ext}$major'
13490   shlibpath_var=LD_LIBRARY_PATH
13491   shlibpath_overrides_runpath=no
13492   hardcode_into_libs=yes
13493   dynamic_linker='NetBSD ld.elf_so'
13494   ;;
13496 netbsd*)
13497   version_type=sunos
13498   need_lib_prefix=no
13499   need_version=no
13500   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13501     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13502     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13503     dynamic_linker='NetBSD (a.out) ld.so'
13504   else
13505     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13506     soname_spec='${libname}${release}${shared_ext}$major'
13507     dynamic_linker='NetBSD ld.elf_so'
13508   fi
13509   shlibpath_var=LD_LIBRARY_PATH
13510   shlibpath_overrides_runpath=yes
13511   hardcode_into_libs=yes
13512   ;;
13514 newsos6)
13515   version_type=linux
13516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517   shlibpath_var=LD_LIBRARY_PATH
13518   shlibpath_overrides_runpath=yes
13519   ;;
13521 nto-qnx*)
13522   version_type=linux
13523   need_lib_prefix=no
13524   need_version=no
13525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13526   soname_spec='${libname}${release}${shared_ext}$major'
13527   shlibpath_var=LD_LIBRARY_PATH
13528   shlibpath_overrides_runpath=yes
13529   ;;
13531 openbsd*)
13532   version_type=sunos
13533   sys_lib_dlsearch_path_spec="/usr/lib"
13534   need_lib_prefix=no
13535   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13536   case $host_os in
13537     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13538     *)                         need_version=no  ;;
13539   esac
13540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13541   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13542   shlibpath_var=LD_LIBRARY_PATH
13543   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13544     case $host_os in
13545       openbsd2.[89] | openbsd2.[89].*)
13546         shlibpath_overrides_runpath=no
13547         ;;
13548       *)
13549         shlibpath_overrides_runpath=yes
13550         ;;
13551       esac
13552   else
13553     shlibpath_overrides_runpath=yes
13554   fi
13555   ;;
13557 os2*)
13558   libname_spec='$name'
13559   shrext_cmds=".dll"
13560   need_lib_prefix=no
13561   library_names_spec='$libname${shared_ext} $libname.a'
13562   dynamic_linker='OS/2 ld.exe'
13563   shlibpath_var=LIBPATH
13564   ;;
13566 osf3* | osf4* | osf5*)
13567   version_type=osf
13568   need_lib_prefix=no
13569   need_version=no
13570   soname_spec='${libname}${release}${shared_ext}$major'
13571   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13572   shlibpath_var=LD_LIBRARY_PATH
13573   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13574   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13575   ;;
13577 rdos*)
13578   dynamic_linker=no
13579   ;;
13581 solaris*)
13582   version_type=linux
13583   need_lib_prefix=no
13584   need_version=no
13585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13586   soname_spec='${libname}${release}${shared_ext}$major'
13587   shlibpath_var=LD_LIBRARY_PATH
13588   shlibpath_overrides_runpath=yes
13589   hardcode_into_libs=yes
13590   # ldd complains unless libraries are executable
13591   postinstall_cmds='chmod +x $lib'
13592   ;;
13594 sunos4*)
13595   version_type=sunos
13596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13597   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13598   shlibpath_var=LD_LIBRARY_PATH
13599   shlibpath_overrides_runpath=yes
13600   if test "$with_gnu_ld" = yes; then
13601     need_lib_prefix=no
13602   fi
13603   need_version=yes
13604   ;;
13606 sysv4 | sysv4.3*)
13607   version_type=linux
13608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13609   soname_spec='${libname}${release}${shared_ext}$major'
13610   shlibpath_var=LD_LIBRARY_PATH
13611   case $host_vendor in
13612     sni)
13613       shlibpath_overrides_runpath=no
13614       need_lib_prefix=no
13615       export_dynamic_flag_spec='${wl}-Blargedynsym'
13616       runpath_var=LD_RUN_PATH
13617       ;;
13618     siemens)
13619       need_lib_prefix=no
13620       ;;
13621     motorola)
13622       need_lib_prefix=no
13623       need_version=no
13624       shlibpath_overrides_runpath=no
13625       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13626       ;;
13627   esac
13628   ;;
13630 sysv4*MP*)
13631   if test -d /usr/nec ;then
13632     version_type=linux
13633     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13634     soname_spec='$libname${shared_ext}.$major'
13635     shlibpath_var=LD_LIBRARY_PATH
13636   fi
13637   ;;
13639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13640   version_type=freebsd-elf
13641   need_lib_prefix=no
13642   need_version=no
13643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13644   soname_spec='${libname}${release}${shared_ext}$major'
13645   shlibpath_var=LD_LIBRARY_PATH
13646   hardcode_into_libs=yes
13647   if test "$with_gnu_ld" = yes; then
13648     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13649     shlibpath_overrides_runpath=no
13650   else
13651     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13652     shlibpath_overrides_runpath=yes
13653     case $host_os in
13654       sco3.2v5*)
13655         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13656         ;;
13657     esac
13658   fi
13659   sys_lib_dlsearch_path_spec='/usr/lib'
13660   ;;
13662 uts4*)
13663   version_type=linux
13664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13665   soname_spec='${libname}${release}${shared_ext}$major'
13666   shlibpath_var=LD_LIBRARY_PATH
13667   ;;
13670   dynamic_linker=no
13671   ;;
13672 esac
13673 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13674 echo "${ECHO_T}$dynamic_linker" >&6; }
13675 test "$dynamic_linker" = no && can_build_shared=no
13677 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13678   echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13683 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13684 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13685   echo $ECHO_N "(cached) $ECHO_C" >&6
13686 else
13687   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13692 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13693 if test "$GCC" = yes; then
13694   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13697 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13698 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13699 hardcode_action_CXX=
13700 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13701    test -n "$runpath_var_CXX" || \
13702    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13704   # We can hardcode non-existant directories.
13705   if test "$hardcode_direct_CXX" != no &&
13706      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13707      # have to relink, otherwise we might link with an installed library
13708      # when we should be linking with a yet-to-be-installed one
13709      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13710      test "$hardcode_minus_L_CXX" != no; then
13711     # Linking always hardcodes the temporary library directory.
13712     hardcode_action_CXX=relink
13713   else
13714     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13715     hardcode_action_CXX=immediate
13716   fi
13717 else
13718   # We cannot hardcode anything, or else we can only hardcode existing
13719   # directories.
13720   hardcode_action_CXX=unsupported
13722 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13723 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13725 if test "$hardcode_action_CXX" = relink; then
13726   # Fast installation is not supported
13727   enable_fast_install=no
13728 elif test "$shlibpath_overrides_runpath" = yes ||
13729      test "$enable_shared" = no; then
13730   # Fast installation is not necessary
13731   enable_fast_install=needless
13735 # The else clause should only fire when bootstrapping the
13736 # libtool distribution, otherwise you forgot to ship ltmain.sh
13737 # with your package, and you will get complaints that there are
13738 # no rules to generate ltmain.sh.
13739 if test -f "$ltmain"; then
13740   # See if we are running on zsh, and set the options which allow our commands through
13741   # without removal of \ escapes.
13742   if test -n "${ZSH_VERSION+set}" ; then
13743     setopt NO_GLOB_SUBST
13744   fi
13745   # Now quote all the things that may contain metacharacters while being
13746   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13747   # variables and quote the copies for generation of the libtool script.
13748   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13749     SED SHELL STRIP \
13750     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13751     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13752     deplibs_check_method reload_flag reload_cmds need_locks \
13753     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13754     lt_cv_sys_global_symbol_to_c_name_address \
13755     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13756     old_postinstall_cmds old_postuninstall_cmds \
13757     compiler_CXX \
13758     CC_CXX \
13759     LD_CXX \
13760     lt_prog_compiler_wl_CXX \
13761     lt_prog_compiler_pic_CXX \
13762     lt_prog_compiler_static_CXX \
13763     lt_prog_compiler_no_builtin_flag_CXX \
13764     export_dynamic_flag_spec_CXX \
13765     thread_safe_flag_spec_CXX \
13766     whole_archive_flag_spec_CXX \
13767     enable_shared_with_static_runtimes_CXX \
13768     old_archive_cmds_CXX \
13769     old_archive_from_new_cmds_CXX \
13770     predep_objects_CXX \
13771     postdep_objects_CXX \
13772     predeps_CXX \
13773     postdeps_CXX \
13774     compiler_lib_search_path_CXX \
13775     compiler_lib_search_dirs_CXX \
13776     archive_cmds_CXX \
13777     archive_expsym_cmds_CXX \
13778     postinstall_cmds_CXX \
13779     postuninstall_cmds_CXX \
13780     old_archive_from_expsyms_cmds_CXX \
13781     allow_undefined_flag_CXX \
13782     no_undefined_flag_CXX \
13783     export_symbols_cmds_CXX \
13784     hardcode_libdir_flag_spec_CXX \
13785     hardcode_libdir_flag_spec_ld_CXX \
13786     hardcode_libdir_separator_CXX \
13787     hardcode_automatic_CXX \
13788     module_cmds_CXX \
13789     module_expsym_cmds_CXX \
13790     lt_cv_prog_compiler_c_o_CXX \
13791     fix_srcfile_path_CXX \
13792     exclude_expsyms_CXX \
13793     include_expsyms_CXX; do
13795     case $var in
13796     old_archive_cmds_CXX | \
13797     old_archive_from_new_cmds_CXX | \
13798     archive_cmds_CXX | \
13799     archive_expsym_cmds_CXX | \
13800     module_cmds_CXX | \
13801     module_expsym_cmds_CXX | \
13802     old_archive_from_expsyms_cmds_CXX | \
13803     export_symbols_cmds_CXX | \
13804     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13805     postinstall_cmds | postuninstall_cmds | \
13806     old_postinstall_cmds | old_postuninstall_cmds | \
13807     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13808       # Double-quote double-evaled strings.
13809       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13810       ;;
13811     *)
13812       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13813       ;;
13814     esac
13815   done
13817   case $lt_echo in
13818   *'\$0 --fallback-echo"')
13819     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13820     ;;
13821   esac
13823 cfgfile="$ofile"
13825   cat <<__EOF__ >> "$cfgfile"
13826 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13828 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13830 # Shell to use when invoking shell scripts.
13831 SHELL=$lt_SHELL
13833 # Whether or not to build shared libraries.
13834 build_libtool_libs=$enable_shared
13836 # Whether or not to build static libraries.
13837 build_old_libs=$enable_static
13839 # Whether or not to add -lc for building shared libraries.
13840 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13842 # Whether or not to disallow shared libs when runtime libs are static
13843 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13845 # Whether or not to optimize for fast installation.
13846 fast_install=$enable_fast_install
13848 # The host system.
13849 host_alias=$host_alias
13850 host=$host
13851 host_os=$host_os
13853 # The build system.
13854 build_alias=$build_alias
13855 build=$build
13856 build_os=$build_os
13858 # An echo program that does not interpret backslashes.
13859 echo=$lt_echo
13861 # The archiver.
13862 AR=$lt_AR
13863 AR_FLAGS=$lt_AR_FLAGS
13865 # A C compiler.
13866 LTCC=$lt_LTCC
13868 # LTCC compiler flags.
13869 LTCFLAGS=$lt_LTCFLAGS
13871 # A language-specific compiler.
13872 CC=$lt_compiler_CXX
13874 # Is the compiler the GNU C compiler?
13875 with_gcc=$GCC_CXX
13877 # An ERE matcher.
13878 EGREP=$lt_EGREP
13880 # The linker used to build libraries.
13881 LD=$lt_LD_CXX
13883 # Whether we need hard or soft links.
13884 LN_S=$lt_LN_S
13886 # A BSD-compatible nm program.
13887 NM=$lt_NM
13889 # A symbol stripping program
13890 STRIP=$lt_STRIP
13892 # Used to examine libraries when file_magic_cmd begins "file"
13893 MAGIC_CMD=$MAGIC_CMD
13895 # Used on cygwin: DLL creation program.
13896 DLLTOOL="$DLLTOOL"
13898 # Used on cygwin: object dumper.
13899 OBJDUMP="$OBJDUMP"
13901 # Used on cygwin: assembler.
13902 AS="$AS"
13904 # The name of the directory that contains temporary libtool files.
13905 objdir=$objdir
13907 # How to create reloadable object files.
13908 reload_flag=$lt_reload_flag
13909 reload_cmds=$lt_reload_cmds
13911 # How to pass a linker flag through the compiler.
13912 wl=$lt_lt_prog_compiler_wl_CXX
13914 # Object file suffix (normally "o").
13915 objext="$ac_objext"
13917 # Old archive suffix (normally "a").
13918 libext="$libext"
13920 # Shared library suffix (normally ".so").
13921 shrext_cmds='$shrext_cmds'
13923 # Executable file suffix (normally "").
13924 exeext="$exeext"
13926 # Additional compiler flags for building library objects.
13927 pic_flag=$lt_lt_prog_compiler_pic_CXX
13928 pic_mode=$pic_mode
13930 # What is the maximum length of a command?
13931 max_cmd_len=$lt_cv_sys_max_cmd_len
13933 # Does compiler simultaneously support -c and -o options?
13934 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13936 # Must we lock files when doing compilation?
13937 need_locks=$lt_need_locks
13939 # Do we need the lib prefix for modules?
13940 need_lib_prefix=$need_lib_prefix
13942 # Do we need a version for libraries?
13943 need_version=$need_version
13945 # Whether dlopen is supported.
13946 dlopen_support=$enable_dlopen
13948 # Whether dlopen of programs is supported.
13949 dlopen_self=$enable_dlopen_self
13951 # Whether dlopen of statically linked programs is supported.
13952 dlopen_self_static=$enable_dlopen_self_static
13954 # Compiler flag to prevent dynamic linking.
13955 link_static_flag=$lt_lt_prog_compiler_static_CXX
13957 # Compiler flag to turn off builtin functions.
13958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13960 # Compiler flag to allow reflexive dlopens.
13961 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13963 # Compiler flag to generate shared objects directly from archives.
13964 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13966 # Compiler flag to generate thread-safe objects.
13967 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13969 # Library versioning type.
13970 version_type=$version_type
13972 # Format of library name prefix.
13973 libname_spec=$lt_libname_spec
13975 # List of archive names.  First name is the real one, the rest are links.
13976 # The last name is the one that the linker finds with -lNAME.
13977 library_names_spec=$lt_library_names_spec
13979 # The coded name of the library, if different from the real name.
13980 soname_spec=$lt_soname_spec
13982 # Commands used to build and install an old-style archive.
13983 RANLIB=$lt_RANLIB
13984 old_archive_cmds=$lt_old_archive_cmds_CXX
13985 old_postinstall_cmds=$lt_old_postinstall_cmds
13986 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13988 # Create an old-style archive from a shared archive.
13989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13991 # Create a temporary old-style archive to link instead of a shared archive.
13992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13994 # Commands used to build and install a shared archive.
13995 archive_cmds=$lt_archive_cmds_CXX
13996 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13997 postinstall_cmds=$lt_postinstall_cmds
13998 postuninstall_cmds=$lt_postuninstall_cmds
14000 # Commands used to build a loadable module (assumed same as above if empty)
14001 module_cmds=$lt_module_cmds_CXX
14002 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14004 # Commands to strip libraries.
14005 old_striplib=$lt_old_striplib
14006 striplib=$lt_striplib
14008 # Dependencies to place before the objects being linked to create a
14009 # shared library.
14010 predep_objects=$lt_predep_objects_CXX
14012 # Dependencies to place after the objects being linked to create a
14013 # shared library.
14014 postdep_objects=$lt_postdep_objects_CXX
14016 # Dependencies to place before the objects being linked to create a
14017 # shared library.
14018 predeps=$lt_predeps_CXX
14020 # Dependencies to place after the objects being linked to create a
14021 # shared library.
14022 postdeps=$lt_postdeps_CXX
14024 # The directories searched by this compiler when creating a shared
14025 # library
14026 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14028 # The library search path used internally by the compiler when linking
14029 # a shared library.
14030 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14032 # Method to check whether dependent libraries are shared objects.
14033 deplibs_check_method=$lt_deplibs_check_method
14035 # Command to use when deplibs_check_method == file_magic.
14036 file_magic_cmd=$lt_file_magic_cmd
14038 # Flag that allows shared libraries with undefined symbols to be built.
14039 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14041 # Flag that forces no undefined symbols.
14042 no_undefined_flag=$lt_no_undefined_flag_CXX
14044 # Commands used to finish a libtool library installation in a directory.
14045 finish_cmds=$lt_finish_cmds
14047 # Same as above, but a single script fragment to be evaled but not shown.
14048 finish_eval=$lt_finish_eval
14050 # Take the output of nm and produce a listing of raw symbols and C names.
14051 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14053 # Transform the output of nm in a proper C declaration
14054 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14056 # Transform the output of nm in a C name address pair
14057 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14059 # This is the shared library runtime path variable.
14060 runpath_var=$runpath_var
14062 # This is the shared library path variable.
14063 shlibpath_var=$shlibpath_var
14065 # Is shlibpath searched before the hard-coded library search path?
14066 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14068 # How to hardcode a shared library path into an executable.
14069 hardcode_action=$hardcode_action_CXX
14071 # Whether we should hardcode library paths into libraries.
14072 hardcode_into_libs=$hardcode_into_libs
14074 # Flag to hardcode \$libdir into a binary during linking.
14075 # This must work even if \$libdir does not exist.
14076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14078 # If ld is used when linking, flag to hardcode \$libdir into
14079 # a binary during linking. This must work even if \$libdir does
14080 # not exist.
14081 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14083 # Whether we need a single -rpath flag with a separated argument.
14084 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14086 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14087 # resulting binary.
14088 hardcode_direct=$hardcode_direct_CXX
14090 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14091 # resulting binary.
14092 hardcode_minus_L=$hardcode_minus_L_CXX
14094 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14095 # the resulting binary.
14096 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14098 # Set to yes if building a shared library automatically hardcodes DIR into the library
14099 # and all subsequent libraries and executables linked against it.
14100 hardcode_automatic=$hardcode_automatic_CXX
14102 # Variables whose values should be saved in libtool wrapper scripts and
14103 # restored at relink time.
14104 variables_saved_for_relink="$variables_saved_for_relink"
14106 # Whether libtool must link a program against all its dependency libraries.
14107 link_all_deplibs=$link_all_deplibs_CXX
14109 # Compile-time system search path for libraries
14110 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14112 # Run-time system search path for libraries
14113 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14115 # Fix the shell variable \$srcfile for the compiler.
14116 fix_srcfile_path=$lt_fix_srcfile_path
14118 # Set to yes if exported symbols are required.
14119 always_export_symbols=$always_export_symbols_CXX
14121 # The commands to list exported symbols.
14122 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14124 # The commands to extract the exported symbol list from a shared archive.
14125 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14127 # Symbols that should not be listed in the preloaded symbols.
14128 exclude_expsyms=$lt_exclude_expsyms_CXX
14130 # Symbols that must always be exported.
14131 include_expsyms=$lt_include_expsyms_CXX
14133 # ### END LIBTOOL TAG CONFIG: $tagname
14135 __EOF__
14138 else
14139   # If there is no Makefile yet, we rely on a make rule to execute
14140   # `config.status --recheck' to rerun these tests and create the
14141   # libtool script then.
14142   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14143   if test -f "$ltmain_in"; then
14144     test -f Makefile && make "$ltmain"
14145   fi
14149 ac_ext=c
14150 ac_cpp='$CPP $CPPFLAGS'
14151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14155 CC=$lt_save_CC
14156 LDCXX=$LD
14157 LD=$lt_save_LD
14158 GCC=$lt_save_GCC
14159 with_gnu_ldcxx=$with_gnu_ld
14160 with_gnu_ld=$lt_save_with_gnu_ld
14161 lt_cv_path_LDCXX=$lt_cv_path_LD
14162 lt_cv_path_LD=$lt_save_path_LD
14163 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14164 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14166         else
14167           tagname=""
14168         fi
14169         ;;
14171       F77)
14172         if test -n "$F77" && test "X$F77" != "Xno"; then
14174 ac_ext=f
14175 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14176 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14177 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14180 archive_cmds_need_lc_F77=no
14181 allow_undefined_flag_F77=
14182 always_export_symbols_F77=no
14183 archive_expsym_cmds_F77=
14184 export_dynamic_flag_spec_F77=
14185 hardcode_direct_F77=no
14186 hardcode_libdir_flag_spec_F77=
14187 hardcode_libdir_flag_spec_ld_F77=
14188 hardcode_libdir_separator_F77=
14189 hardcode_minus_L_F77=no
14190 hardcode_automatic_F77=no
14191 module_cmds_F77=
14192 module_expsym_cmds_F77=
14193 link_all_deplibs_F77=unknown
14194 old_archive_cmds_F77=$old_archive_cmds
14195 no_undefined_flag_F77=
14196 whole_archive_flag_spec_F77=
14197 enable_shared_with_static_runtimes_F77=no
14199 # Source file extension for f77 test sources.
14200 ac_ext=f
14202 # Object file extension for compiled f77 test sources.
14203 objext=o
14204 objext_F77=$objext
14206 # Code to be used in simple compile tests
14207 lt_simple_compile_test_code="\
14208       subroutine t
14209       return
14210       end
14213 # Code to be used in simple link tests
14214 lt_simple_link_test_code="\
14215       program t
14216       end
14219 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14221 # If no C compiler was specified, use CC.
14222 LTCC=${LTCC-"$CC"}
14224 # If no C compiler flags were specified, use CFLAGS.
14225 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14227 # Allow CC to be a program name with arguments.
14228 compiler=$CC
14231 # save warnings/boilerplate of simple test code
14232 ac_outfile=conftest.$ac_objext
14233 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14234 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14235 _lt_compiler_boilerplate=`cat conftest.err`
14236 $rm conftest*
14238 ac_outfile=conftest.$ac_objext
14239 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14240 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14241 _lt_linker_boilerplate=`cat conftest.err`
14242 $rm -r conftest*
14245 # Allow CC to be a program name with arguments.
14246 lt_save_CC="$CC"
14247 CC=${F77-"f77"}
14248 compiler=$CC
14249 compiler_F77=$CC
14250 for cc_temp in $compiler""; do
14251   case $cc_temp in
14252     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14253     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14254     \-*) ;;
14255     *) break;;
14256   esac
14257 done
14258 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14261 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14262 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14263 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14264 echo "${ECHO_T}$can_build_shared" >&6; }
14266 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14267 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14268 test "$can_build_shared" = "no" && enable_shared=no
14270 # On AIX, shared libraries and static libraries use the same namespace, and
14271 # are all built from PIC.
14272 case $host_os in
14273 aix3*)
14274   test "$enable_shared" = yes && enable_static=no
14275   if test -n "$RANLIB"; then
14276     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14277     postinstall_cmds='$RANLIB $lib'
14278   fi
14279   ;;
14280 aix[4-9]*)
14281   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14282     test "$enable_shared" = yes && enable_static=no
14283   fi
14284   ;;
14285 esac
14286 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14287 echo "${ECHO_T}$enable_shared" >&6; }
14289 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14290 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14291 # Make sure either enable_shared or enable_static is yes.
14292 test "$enable_shared" = yes || enable_static=yes
14293 { echo "$as_me:$LINENO: result: $enable_static" >&5
14294 echo "${ECHO_T}$enable_static" >&6; }
14296 GCC_F77="$G77"
14297 LD_F77="$LD"
14299 lt_prog_compiler_wl_F77=
14300 lt_prog_compiler_pic_F77=
14301 lt_prog_compiler_static_F77=
14303 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14304 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14306   if test "$GCC" = yes; then
14307     lt_prog_compiler_wl_F77='-Wl,'
14308     lt_prog_compiler_static_F77='-static'
14310     case $host_os in
14311       aix*)
14312       # All AIX code is PIC.
14313       if test "$host_cpu" = ia64; then
14314         # AIX 5 now supports IA64 processor
14315         lt_prog_compiler_static_F77='-Bstatic'
14316       fi
14317       ;;
14319     amigaos*)
14320       # FIXME: we need at least 68020 code to build shared libraries, but
14321       # adding the `-m68020' flag to GCC prevents building anything better,
14322       # like `-m68040'.
14323       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14324       ;;
14326     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14327       # PIC is the default for these OSes.
14328       ;;
14330     mingw* | cygwin* | pw32* | os2*)
14331       # This hack is so that the source file can tell whether it is being
14332       # built for inclusion in a dll (and should export symbols for example).
14333       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14334       # (--disable-auto-import) libraries
14335       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14336       ;;
14338     darwin* | rhapsody*)
14339       # PIC is the default on this platform
14340       # Common symbols not allowed in MH_DYLIB files
14341       lt_prog_compiler_pic_F77='-fno-common'
14342       ;;
14344     interix[3-9]*)
14345       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14346       # Instead, we relocate shared libraries at runtime.
14347       ;;
14349     msdosdjgpp*)
14350       # Just because we use GCC doesn't mean we suddenly get shared libraries
14351       # on systems that don't support them.
14352       lt_prog_compiler_can_build_shared_F77=no
14353       enable_shared=no
14354       ;;
14356     sysv4*MP*)
14357       if test -d /usr/nec; then
14358         lt_prog_compiler_pic_F77=-Kconform_pic
14359       fi
14360       ;;
14362     hpux*)
14363       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14364       # not for PA HP-UX.
14365       case $host_cpu in
14366       hppa*64*|ia64*)
14367         # +Z the default
14368         ;;
14369       *)
14370         lt_prog_compiler_pic_F77='-fPIC'
14371         ;;
14372       esac
14373       ;;
14375     *)
14376       lt_prog_compiler_pic_F77='-fPIC'
14377       ;;
14378     esac
14379   else
14380     # PORTME Check for flag to pass linker flags through the system compiler.
14381     case $host_os in
14382     aix*)
14383       lt_prog_compiler_wl_F77='-Wl,'
14384       if test "$host_cpu" = ia64; then
14385         # AIX 5 now supports IA64 processor
14386         lt_prog_compiler_static_F77='-Bstatic'
14387       else
14388         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14389       fi
14390       ;;
14391       darwin*)
14392         # PIC is the default on this platform
14393         # Common symbols not allowed in MH_DYLIB files
14394        case $cc_basename in
14395          xlc*)
14396          lt_prog_compiler_pic_F77='-qnocommon'
14397          lt_prog_compiler_wl_F77='-Wl,'
14398          ;;
14399        esac
14400        ;;
14402     mingw* | cygwin* | pw32* | os2*)
14403       # This hack is so that the source file can tell whether it is being
14404       # built for inclusion in a dll (and should export symbols for example).
14405       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14406       ;;
14408     hpux9* | hpux10* | hpux11*)
14409       lt_prog_compiler_wl_F77='-Wl,'
14410       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14411       # not for PA HP-UX.
14412       case $host_cpu in
14413       hppa*64*|ia64*)
14414         # +Z the default
14415         ;;
14416       *)
14417         lt_prog_compiler_pic_F77='+Z'
14418         ;;
14419       esac
14420       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14421       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14422       ;;
14424     irix5* | irix6* | nonstopux*)
14425       lt_prog_compiler_wl_F77='-Wl,'
14426       # PIC (with -KPIC) is the default.
14427       lt_prog_compiler_static_F77='-non_shared'
14428       ;;
14430     newsos6)
14431       lt_prog_compiler_pic_F77='-KPIC'
14432       lt_prog_compiler_static_F77='-Bstatic'
14433       ;;
14435     linux* | k*bsd*-gnu)
14436       case $cc_basename in
14437       icc* | ecc*)
14438         lt_prog_compiler_wl_F77='-Wl,'
14439         lt_prog_compiler_pic_F77='-KPIC'
14440         lt_prog_compiler_static_F77='-static'
14441         ;;
14442       pgcc* | pgf77* | pgf90* | pgf95*)
14443         # Portland Group compilers (*not* the Pentium gcc compiler,
14444         # which looks to be a dead project)
14445         lt_prog_compiler_wl_F77='-Wl,'
14446         lt_prog_compiler_pic_F77='-fpic'
14447         lt_prog_compiler_static_F77='-Bstatic'
14448         ;;
14449       ccc*)
14450         lt_prog_compiler_wl_F77='-Wl,'
14451         # All Alpha code is PIC.
14452         lt_prog_compiler_static_F77='-non_shared'
14453         ;;
14454       *)
14455         case `$CC -V 2>&1 | sed 5q` in
14456         *Sun\ C*)
14457           # Sun C 5.9
14458           lt_prog_compiler_pic_F77='-KPIC'
14459           lt_prog_compiler_static_F77='-Bstatic'
14460           lt_prog_compiler_wl_F77='-Wl,'
14461           ;;
14462         *Sun\ F*)
14463           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14464           lt_prog_compiler_pic_F77='-KPIC'
14465           lt_prog_compiler_static_F77='-Bstatic'
14466           lt_prog_compiler_wl_F77=''
14467           ;;
14468         esac
14469         ;;
14470       esac
14471       ;;
14473     osf3* | osf4* | osf5*)
14474       lt_prog_compiler_wl_F77='-Wl,'
14475       # All OSF/1 code is PIC.
14476       lt_prog_compiler_static_F77='-non_shared'
14477       ;;
14479     rdos*)
14480       lt_prog_compiler_static_F77='-non_shared'
14481       ;;
14483     solaris*)
14484       lt_prog_compiler_pic_F77='-KPIC'
14485       lt_prog_compiler_static_F77='-Bstatic'
14486       case $cc_basename in
14487       f77* | f90* | f95*)
14488         lt_prog_compiler_wl_F77='-Qoption ld ';;
14489       *)
14490         lt_prog_compiler_wl_F77='-Wl,';;
14491       esac
14492       ;;
14494     sunos4*)
14495       lt_prog_compiler_wl_F77='-Qoption ld '
14496       lt_prog_compiler_pic_F77='-PIC'
14497       lt_prog_compiler_static_F77='-Bstatic'
14498       ;;
14500     sysv4 | sysv4.2uw2* | sysv4.3*)
14501       lt_prog_compiler_wl_F77='-Wl,'
14502       lt_prog_compiler_pic_F77='-KPIC'
14503       lt_prog_compiler_static_F77='-Bstatic'
14504       ;;
14506     sysv4*MP*)
14507       if test -d /usr/nec ;then
14508         lt_prog_compiler_pic_F77='-Kconform_pic'
14509         lt_prog_compiler_static_F77='-Bstatic'
14510       fi
14511       ;;
14513     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14514       lt_prog_compiler_wl_F77='-Wl,'
14515       lt_prog_compiler_pic_F77='-KPIC'
14516       lt_prog_compiler_static_F77='-Bstatic'
14517       ;;
14519     unicos*)
14520       lt_prog_compiler_wl_F77='-Wl,'
14521       lt_prog_compiler_can_build_shared_F77=no
14522       ;;
14524     uts4*)
14525       lt_prog_compiler_pic_F77='-pic'
14526       lt_prog_compiler_static_F77='-Bstatic'
14527       ;;
14529     *)
14530       lt_prog_compiler_can_build_shared_F77=no
14531       ;;
14532     esac
14533   fi
14535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14536 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14539 # Check to make sure the PIC flag actually works.
14541 if test -n "$lt_prog_compiler_pic_F77"; then
14543 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14544 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14545 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   lt_cv_prog_compiler_pic_works_F77=no
14549   ac_outfile=conftest.$ac_objext
14550    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14551    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14552    # Insert the option either (1) after the last *FLAGS variable, or
14553    # (2) before a word containing "conftest.", or (3) at the end.
14554    # Note that $ac_compile itself does not contain backslashes and begins
14555    # with a dollar sign (not a hyphen), so the echo should work correctly.
14556    # The option is referenced via a variable to avoid confusing sed.
14557    lt_compile=`echo "$ac_compile" | $SED \
14558    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14560    -e 's:$: $lt_compiler_flag:'`
14561    (eval echo "\"\$as_me:14561: $lt_compile\"" >&5)
14562    (eval "$lt_compile" 2>conftest.err)
14563    ac_status=$?
14564    cat conftest.err >&5
14565    echo "$as_me:14565: \$? = $ac_status" >&5
14566    if (exit $ac_status) && test -s "$ac_outfile"; then
14567      # The compiler can only warn and ignore the option if not recognized
14568      # So say no if there are warnings other than the usual output.
14569      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14570      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14571      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14572        lt_cv_prog_compiler_pic_works_F77=yes
14573      fi
14574    fi
14575    $rm conftest*
14578 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14579 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14581 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14582     case $lt_prog_compiler_pic_F77 in
14583      "" | " "*) ;;
14584      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14585      esac
14586 else
14587     lt_prog_compiler_pic_F77=
14588      lt_prog_compiler_can_build_shared_F77=no
14592 case $host_os in
14593   # For platforms which do not support PIC, -DPIC is meaningless:
14594   *djgpp*)
14595     lt_prog_compiler_pic_F77=
14596     ;;
14597   *)
14598     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14599     ;;
14600 esac
14603 # Check to make sure the static flag actually works.
14605 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14606 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14607 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14608 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   lt_cv_prog_compiler_static_works_F77=no
14612    save_LDFLAGS="$LDFLAGS"
14613    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14614    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14615    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14616      # The linker can only warn and ignore the option if not recognized
14617      # So say no if there are warnings
14618      if test -s conftest.err; then
14619        # Append any errors to the config.log.
14620        cat conftest.err 1>&5
14621        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14622        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14623        if diff conftest.exp conftest.er2 >/dev/null; then
14624          lt_cv_prog_compiler_static_works_F77=yes
14625        fi
14626      else
14627        lt_cv_prog_compiler_static_works_F77=yes
14628      fi
14629    fi
14630    $rm -r conftest*
14631    LDFLAGS="$save_LDFLAGS"
14634 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14635 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14637 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14638     :
14639 else
14640     lt_prog_compiler_static_F77=
14644 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14645 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14646 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14647   echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649   lt_cv_prog_compiler_c_o_F77=no
14650    $rm -r conftest 2>/dev/null
14651    mkdir conftest
14652    cd conftest
14653    mkdir out
14654    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14656    lt_compiler_flag="-o out/conftest2.$ac_objext"
14657    # Insert the option either (1) after the last *FLAGS variable, or
14658    # (2) before a word containing "conftest.", or (3) at the end.
14659    # Note that $ac_compile itself does not contain backslashes and begins
14660    # with a dollar sign (not a hyphen), so the echo should work correctly.
14661    lt_compile=`echo "$ac_compile" | $SED \
14662    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14663    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14664    -e 's:$: $lt_compiler_flag:'`
14665    (eval echo "\"\$as_me:14665: $lt_compile\"" >&5)
14666    (eval "$lt_compile" 2>out/conftest.err)
14667    ac_status=$?
14668    cat out/conftest.err >&5
14669    echo "$as_me:14669: \$? = $ac_status" >&5
14670    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14671    then
14672      # The compiler can only warn and ignore the option if not recognized
14673      # So say no if there are warnings
14674      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14675      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14676      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14677        lt_cv_prog_compiler_c_o_F77=yes
14678      fi
14679    fi
14680    chmod u+w . 2>&5
14681    $rm conftest*
14682    # SGI C++ compiler will create directory out/ii_files/ for
14683    # template instantiation
14684    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14685    $rm out/* && rmdir out
14686    cd ..
14687    rmdir conftest
14688    $rm conftest*
14691 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14692 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14695 hard_links="nottested"
14696 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14697   # do not overwrite the value of need_locks provided by the user
14698   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14699 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14700   hard_links=yes
14701   $rm conftest*
14702   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14703   touch conftest.a
14704   ln conftest.a conftest.b 2>&5 || hard_links=no
14705   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14706   { echo "$as_me:$LINENO: result: $hard_links" >&5
14707 echo "${ECHO_T}$hard_links" >&6; }
14708   if test "$hard_links" = no; then
14709     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14710 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14711     need_locks=warn
14712   fi
14713 else
14714   need_locks=no
14717 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14718 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14720   runpath_var=
14721   allow_undefined_flag_F77=
14722   enable_shared_with_static_runtimes_F77=no
14723   archive_cmds_F77=
14724   archive_expsym_cmds_F77=
14725   old_archive_From_new_cmds_F77=
14726   old_archive_from_expsyms_cmds_F77=
14727   export_dynamic_flag_spec_F77=
14728   whole_archive_flag_spec_F77=
14729   thread_safe_flag_spec_F77=
14730   hardcode_libdir_flag_spec_F77=
14731   hardcode_libdir_flag_spec_ld_F77=
14732   hardcode_libdir_separator_F77=
14733   hardcode_direct_F77=no
14734   hardcode_minus_L_F77=no
14735   hardcode_shlibpath_var_F77=unsupported
14736   link_all_deplibs_F77=unknown
14737   hardcode_automatic_F77=no
14738   module_cmds_F77=
14739   module_expsym_cmds_F77=
14740   always_export_symbols_F77=no
14741   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14742   # include_expsyms should be a list of space-separated symbols to be *always*
14743   # included in the symbol list
14744   include_expsyms_F77=
14745   # exclude_expsyms can be an extended regexp of symbols to exclude
14746   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14747   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14748   # as well as any symbol that contains `d'.
14749   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14750   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14751   # platforms (ab)use it in PIC code, but their linkers get confused if
14752   # the symbol is explicitly referenced.  Since portable code cannot
14753   # rely on this symbol name, it's probably fine to never include it in
14754   # preloaded symbol tables.
14755   # Exclude shared library initialization/finalization symbols.
14756   extract_expsyms_cmds=
14757   # Just being paranoid about ensuring that cc_basename is set.
14758   for cc_temp in $compiler""; do
14759   case $cc_temp in
14760     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14761     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14762     \-*) ;;
14763     *) break;;
14764   esac
14765 done
14766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14768   case $host_os in
14769   cygwin* | mingw* | pw32*)
14770     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14771     # When not using gcc, we currently assume that we are using
14772     # Microsoft Visual C++.
14773     if test "$GCC" != yes; then
14774       with_gnu_ld=no
14775     fi
14776     ;;
14777   interix*)
14778     # we just hope/assume this is gcc and not c89 (= MSVC++)
14779     with_gnu_ld=yes
14780     ;;
14781   openbsd*)
14782     with_gnu_ld=no
14783     ;;
14784   esac
14786   ld_shlibs_F77=yes
14787   if test "$with_gnu_ld" = yes; then
14788     # If archive_cmds runs LD, not CC, wlarc should be empty
14789     wlarc='${wl}'
14791     # Set some defaults for GNU ld with shared library support. These
14792     # are reset later if shared libraries are not supported. Putting them
14793     # here allows them to be overridden if necessary.
14794     runpath_var=LD_RUN_PATH
14795     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14796     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14797     # ancient GNU ld didn't support --whole-archive et. al.
14798     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14799         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14800       else
14801         whole_archive_flag_spec_F77=
14802     fi
14803     supports_anon_versioning=no
14804     case `$LD -v 2>/dev/null` in
14805       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14806       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14807       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14808       *\ 2.11.*) ;; # other 2.11 versions
14809       *) supports_anon_versioning=yes ;;
14810     esac
14812     # See if GNU ld supports shared libraries.
14813     case $host_os in
14814     aix[3-9]*)
14815       # On AIX/PPC, the GNU linker is very broken
14816       if test "$host_cpu" != ia64; then
14817         ld_shlibs_F77=no
14818         cat <<EOF 1>&2
14820 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14821 *** to be unable to reliably create shared libraries on AIX.
14822 *** Therefore, libtool is disabling shared libraries support.  If you
14823 *** really care for shared libraries, you may want to modify your PATH
14824 *** so that a non-GNU linker is found, and then restart.
14826 EOF
14827       fi
14828       ;;
14830     amigaos*)
14831       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)'
14832       hardcode_libdir_flag_spec_F77='-L$libdir'
14833       hardcode_minus_L_F77=yes
14835       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14836       # that the semantics of dynamic libraries on AmigaOS, at least up
14837       # to version 4, is to share data among multiple programs linked
14838       # with the same dynamic library.  Since this doesn't match the
14839       # behavior of shared libraries on other platforms, we can't use
14840       # them.
14841       ld_shlibs_F77=no
14842       ;;
14844     beos*)
14845       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14846         allow_undefined_flag_F77=unsupported
14847         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14848         # support --undefined.  This deserves some investigation.  FIXME
14849         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14850       else
14851         ld_shlibs_F77=no
14852       fi
14853       ;;
14855     cygwin* | mingw* | pw32*)
14856       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14857       # as there is no search path for DLLs.
14858       hardcode_libdir_flag_spec_F77='-L$libdir'
14859       allow_undefined_flag_F77=unsupported
14860       always_export_symbols_F77=no
14861       enable_shared_with_static_runtimes_F77=yes
14862       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14864       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14865         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14866         # If the export-symbols file already is a .def file (1st line
14867         # is EXPORTS), use it as is; otherwise, prepend...
14868         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14869           cp $export_symbols $output_objdir/$soname.def;
14870         else
14871           echo EXPORTS > $output_objdir/$soname.def;
14872           cat $export_symbols >> $output_objdir/$soname.def;
14873         fi~
14874         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14875       else
14876         ld_shlibs_F77=no
14877       fi
14878       ;;
14880     interix[3-9]*)
14881       hardcode_direct_F77=no
14882       hardcode_shlibpath_var_F77=no
14883       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14884       export_dynamic_flag_spec_F77='${wl}-E'
14885       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14886       # Instead, shared libraries are loaded at an image base (0x10000000 by
14887       # default) and relocated if they conflict, which is a slow very memory
14888       # consuming and fragmenting process.  To avoid this, we pick a random,
14889       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14890       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14891       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'
14892       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'
14893       ;;
14895     gnu* | linux* | k*bsd*-gnu)
14896       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14897         tmp_addflag=
14898         case $cc_basename,$host_cpu in
14899         pgcc*)                          # Portland Group C compiler
14900           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'
14901           tmp_addflag=' $pic_flag'
14902           ;;
14903         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14904           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'
14905           tmp_addflag=' $pic_flag -Mnomain' ;;
14906         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14907           tmp_addflag=' -i_dynamic' ;;
14908         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14909           tmp_addflag=' -i_dynamic -nofor_main' ;;
14910         ifc* | ifort*)                  # Intel Fortran compiler
14911           tmp_addflag=' -nofor_main' ;;
14912         esac
14913         case `$CC -V 2>&1 | sed 5q` in
14914         *Sun\ C*)                       # Sun C 5.9
14915           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'
14916           tmp_sharedflag='-G' ;;
14917         *Sun\ F*)                       # Sun Fortran 8.3
14918           tmp_sharedflag='-G' ;;
14919         *)
14920           tmp_sharedflag='-shared' ;;
14921         esac
14922         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14924         if test $supports_anon_versioning = yes; then
14925           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14926   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14927   $echo "local: *; };" >> $output_objdir/$libname.ver~
14928           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14929         fi
14930         link_all_deplibs_F77=no
14931       else
14932         ld_shlibs_F77=no
14933       fi
14934       ;;
14936     netbsd* | netbsdelf*-gnu)
14937       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14938         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14939         wlarc=
14940       else
14941         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14942         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14943       fi
14944       ;;
14946     solaris*)
14947       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14948         ld_shlibs_F77=no
14949         cat <<EOF 1>&2
14951 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14952 *** create shared libraries on Solaris systems.  Therefore, libtool
14953 *** is disabling shared libraries support.  We urge you to upgrade GNU
14954 *** binutils to release 2.9.1 or newer.  Another option is to modify
14955 *** your PATH or compiler configuration so that the native linker is
14956 *** used, and then restart.
14958 EOF
14959       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14960         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14961         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14962       else
14963         ld_shlibs_F77=no
14964       fi
14965       ;;
14967     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14968       case `$LD -v 2>&1` in
14969         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14970         ld_shlibs_F77=no
14971         cat <<_LT_EOF 1>&2
14973 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14974 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14975 *** is disabling shared libraries support.  We urge you to upgrade GNU
14976 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14977 *** your PATH or compiler configuration so that the native linker is
14978 *** used, and then restart.
14980 _LT_EOF
14981         ;;
14982         *)
14983           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14984             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14985             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14986             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14987           else
14988             ld_shlibs_F77=no
14989           fi
14990         ;;
14991       esac
14992       ;;
14994     sunos4*)
14995       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14996       wlarc=
14997       hardcode_direct_F77=yes
14998       hardcode_shlibpath_var_F77=no
14999       ;;
15001     *)
15002       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15003         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15004         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15005       else
15006         ld_shlibs_F77=no
15007       fi
15008       ;;
15009     esac
15011     if test "$ld_shlibs_F77" = no; then
15012       runpath_var=
15013       hardcode_libdir_flag_spec_F77=
15014       export_dynamic_flag_spec_F77=
15015       whole_archive_flag_spec_F77=
15016     fi
15017   else
15018     # PORTME fill in a description of your system's linker (not GNU ld)
15019     case $host_os in
15020     aix3*)
15021       allow_undefined_flag_F77=unsupported
15022       always_export_symbols_F77=yes
15023       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'
15024       # Note: this linker hardcodes the directories in LIBPATH if there
15025       # are no directories specified by -L.
15026       hardcode_minus_L_F77=yes
15027       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15028         # Neither direct hardcoding nor static linking is supported with a
15029         # broken collect2.
15030         hardcode_direct_F77=unsupported
15031       fi
15032       ;;
15034     aix[4-9]*)
15035       if test "$host_cpu" = ia64; then
15036         # On IA64, the linker does run time linking by default, so we don't
15037         # have to do anything special.
15038         aix_use_runtimelinking=no
15039         exp_sym_flag='-Bexport'
15040         no_entry_flag=""
15041       else
15042         # If we're using GNU nm, then we don't want the "-C" option.
15043         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15044         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15045           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'
15046         else
15047           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'
15048         fi
15049         aix_use_runtimelinking=no
15051         # Test if we are trying to use run time linking or normal
15052         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15053         # need to do runtime linking.
15054         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15055           for ld_flag in $LDFLAGS; do
15056           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15057             aix_use_runtimelinking=yes
15058             break
15059           fi
15060           done
15061           ;;
15062         esac
15064         exp_sym_flag='-bexport'
15065         no_entry_flag='-bnoentry'
15066       fi
15068       # When large executables or shared objects are built, AIX ld can
15069       # have problems creating the table of contents.  If linking a library
15070       # or program results in "error TOC overflow" add -mminimal-toc to
15071       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15072       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15074       archive_cmds_F77=''
15075       hardcode_direct_F77=yes
15076       hardcode_libdir_separator_F77=':'
15077       link_all_deplibs_F77=yes
15079       if test "$GCC" = yes; then
15080         case $host_os in aix4.[012]|aix4.[012].*)
15081         # We only want to do this on AIX 4.2 and lower, the check
15082         # below for broken collect2 doesn't work under 4.3+
15083           collect2name=`${CC} -print-prog-name=collect2`
15084           if test -f "$collect2name" && \
15085            strings "$collect2name" | grep resolve_lib_name >/dev/null
15086           then
15087           # We have reworked collect2
15088           :
15089           else
15090           # We have old collect2
15091           hardcode_direct_F77=unsupported
15092           # It fails to find uninstalled libraries when the uninstalled
15093           # path is not listed in the libpath.  Setting hardcode_minus_L
15094           # to unsupported forces relinking
15095           hardcode_minus_L_F77=yes
15096           hardcode_libdir_flag_spec_F77='-L$libdir'
15097           hardcode_libdir_separator_F77=
15098           fi
15099           ;;
15100         esac
15101         shared_flag='-shared'
15102         if test "$aix_use_runtimelinking" = yes; then
15103           shared_flag="$shared_flag "'${wl}-G'
15104         fi
15105       else
15106         # not using gcc
15107         if test "$host_cpu" = ia64; then
15108         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15109         # chokes on -Wl,-G. The following line is correct:
15110           shared_flag='-G'
15111         else
15112           if test "$aix_use_runtimelinking" = yes; then
15113             shared_flag='${wl}-G'
15114           else
15115             shared_flag='${wl}-bM:SRE'
15116           fi
15117         fi
15118       fi
15120       # It seems that -bexpall does not export symbols beginning with
15121       # underscore (_), so it is better to generate a list of symbols to export.
15122       always_export_symbols_F77=yes
15123       if test "$aix_use_runtimelinking" = yes; then
15124         # Warning - without using the other runtime loading flags (-brtl),
15125         # -berok will link without error, but may produce a broken library.
15126         allow_undefined_flag_F77='-berok'
15127        # Determine the default libpath from the value encoded in an empty executable.
15128        cat >conftest.$ac_ext <<_ACEOF
15129       program main
15131       end
15132 _ACEOF
15133 rm -f conftest.$ac_objext conftest$ac_exeext
15134 if { (ac_try="$ac_link"
15135 case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_link") 2>conftest.er1
15141   ac_status=$?
15142   grep -v '^ *+' conftest.er1 >conftest.err
15143   rm -f conftest.er1
15144   cat conftest.err >&5
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } && {
15147          test -z "$ac_f77_werror_flag" ||
15148          test ! -s conftest.err
15149        } && test -s conftest$ac_exeext &&
15150        $as_test_x conftest$ac_exeext; then
15152 lt_aix_libpath_sed='
15153     /Import File Strings/,/^$/ {
15154         /^0/ {
15155             s/^0  *\(.*\)$/\1/
15156             p
15157         }
15158     }'
15159 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15160 # Check for a 64-bit object if we didn't find anything.
15161 if test -z "$aix_libpath"; then
15162   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15164 else
15165   echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15172       conftest$ac_exeext conftest.$ac_ext
15173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15175        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15176         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"
15177        else
15178         if test "$host_cpu" = ia64; then
15179           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15180           allow_undefined_flag_F77="-z nodefs"
15181           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"
15182         else
15183          # Determine the default libpath from the value encoded in an empty executable.
15184          cat >conftest.$ac_ext <<_ACEOF
15185       program main
15187       end
15188 _ACEOF
15189 rm -f conftest.$ac_objext conftest$ac_exeext
15190 if { (ac_try="$ac_link"
15191 case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_link") 2>conftest.er1
15197   ac_status=$?
15198   grep -v '^ *+' conftest.er1 >conftest.err
15199   rm -f conftest.er1
15200   cat conftest.err >&5
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); } && {
15203          test -z "$ac_f77_werror_flag" ||
15204          test ! -s conftest.err
15205        } && test -s conftest$ac_exeext &&
15206        $as_test_x conftest$ac_exeext; then
15208 lt_aix_libpath_sed='
15209     /Import File Strings/,/^$/ {
15210         /^0/ {
15211             s/^0  *\(.*\)$/\1/
15212             p
15213         }
15214     }'
15215 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15216 # Check for a 64-bit object if we didn't find anything.
15217 if test -z "$aix_libpath"; then
15218   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15220 else
15221   echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15228       conftest$ac_exeext conftest.$ac_ext
15229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15231          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15232           # Warning - without using the other run time loading flags,
15233           # -berok will link without error, but may produce a broken library.
15234           no_undefined_flag_F77=' ${wl}-bernotok'
15235           allow_undefined_flag_F77=' ${wl}-berok'
15236           # Exported symbols can be pulled into shared objects from archives
15237           whole_archive_flag_spec_F77='$convenience'
15238           archive_cmds_need_lc_F77=yes
15239           # This is similar to how AIX traditionally builds its shared libraries.
15240           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'
15241         fi
15242       fi
15243       ;;
15245     amigaos*)
15246       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)'
15247       hardcode_libdir_flag_spec_F77='-L$libdir'
15248       hardcode_minus_L_F77=yes
15249       # see comment about different semantics on the GNU ld section
15250       ld_shlibs_F77=no
15251       ;;
15253     bsdi[45]*)
15254       export_dynamic_flag_spec_F77=-rdynamic
15255       ;;
15257     cygwin* | mingw* | pw32*)
15258       # When not using gcc, we currently assume that we are using
15259       # Microsoft Visual C++.
15260       # hardcode_libdir_flag_spec is actually meaningless, as there is
15261       # no search path for DLLs.
15262       hardcode_libdir_flag_spec_F77=' '
15263       allow_undefined_flag_F77=unsupported
15264       # Tell ltmain to make .lib files, not .a files.
15265       libext=lib
15266       # Tell ltmain to make .dll files, not .so files.
15267       shrext_cmds=".dll"
15268       # FIXME: Setting linknames here is a bad hack.
15269       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15270       # The linker will automatically build a .lib file if we build a DLL.
15271       old_archive_From_new_cmds_F77='true'
15272       # FIXME: Should let the user specify the lib program.
15273       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15274       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15275       enable_shared_with_static_runtimes_F77=yes
15276       ;;
15278     darwin* | rhapsody*)
15279       case $host_os in
15280         rhapsody* | darwin1.[012])
15281          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15282          ;;
15283        *) # Darwin 1.3 on
15284          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15285            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15286          else
15287            case ${MACOSX_DEPLOYMENT_TARGET} in
15288              10.[012])
15289                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15290                ;;
15291              10.*)
15292                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15293                ;;
15294            esac
15295          fi
15296          ;;
15297       esac
15298       archive_cmds_need_lc_F77=no
15299       hardcode_direct_F77=no
15300       hardcode_automatic_F77=yes
15301       hardcode_shlibpath_var_F77=unsupported
15302       whole_archive_flag_spec_F77=''
15303       link_all_deplibs_F77=yes
15304     if test "$GCC" = yes ; then
15305         output_verbose_link_cmd='echo'
15306         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}"
15307         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15308         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}"
15309         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}"
15310     else
15311       case $cc_basename in
15312         xlc*)
15313          output_verbose_link_cmd='echo'
15314          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15315          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15316           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15317          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}'
15318           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}'
15319           ;;
15320        *)
15321          ld_shlibs_F77=no
15322           ;;
15323       esac
15324     fi
15325       ;;
15327     dgux*)
15328       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15329       hardcode_libdir_flag_spec_F77='-L$libdir'
15330       hardcode_shlibpath_var_F77=no
15331       ;;
15333     freebsd1*)
15334       ld_shlibs_F77=no
15335       ;;
15337     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15338     # support.  Future versions do this automatically, but an explicit c++rt0.o
15339     # does not break anything, and helps significantly (at the cost of a little
15340     # extra space).
15341     freebsd2.2*)
15342       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15343       hardcode_libdir_flag_spec_F77='-R$libdir'
15344       hardcode_direct_F77=yes
15345       hardcode_shlibpath_var_F77=no
15346       ;;
15348     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15349     freebsd2*)
15350       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15351       hardcode_direct_F77=yes
15352       hardcode_minus_L_F77=yes
15353       hardcode_shlibpath_var_F77=no
15354       ;;
15356     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15357     freebsd* | dragonfly*)
15358       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15359       hardcode_libdir_flag_spec_F77='-R$libdir'
15360       hardcode_direct_F77=yes
15361       hardcode_shlibpath_var_F77=no
15362       ;;
15364     hpux9*)
15365       if test "$GCC" = yes; then
15366         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'
15367       else
15368         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'
15369       fi
15370       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15371       hardcode_libdir_separator_F77=:
15372       hardcode_direct_F77=yes
15374       # hardcode_minus_L: Not really in the search PATH,
15375       # but as the default location of the library.
15376       hardcode_minus_L_F77=yes
15377       export_dynamic_flag_spec_F77='${wl}-E'
15378       ;;
15380     hpux10*)
15381       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15382         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15383       else
15384         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15385       fi
15386       if test "$with_gnu_ld" = no; then
15387         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15388         hardcode_libdir_separator_F77=:
15390         hardcode_direct_F77=yes
15391         export_dynamic_flag_spec_F77='${wl}-E'
15393         # hardcode_minus_L: Not really in the search PATH,
15394         # but as the default location of the library.
15395         hardcode_minus_L_F77=yes
15396       fi
15397       ;;
15399     hpux11*)
15400       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15401         case $host_cpu in
15402         hppa*64*)
15403           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15404           ;;
15405         ia64*)
15406           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15407           ;;
15408         *)
15409           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15410           ;;
15411         esac
15412       else
15413         case $host_cpu in
15414         hppa*64*)
15415           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15416           ;;
15417         ia64*)
15418           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15419           ;;
15420         *)
15421           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15422           ;;
15423         esac
15424       fi
15425       if test "$with_gnu_ld" = no; then
15426         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15427         hardcode_libdir_separator_F77=:
15429         case $host_cpu in
15430         hppa*64*|ia64*)
15431           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15432           hardcode_direct_F77=no
15433           hardcode_shlibpath_var_F77=no
15434           ;;
15435         *)
15436           hardcode_direct_F77=yes
15437           export_dynamic_flag_spec_F77='${wl}-E'
15439           # hardcode_minus_L: Not really in the search PATH,
15440           # but as the default location of the library.
15441           hardcode_minus_L_F77=yes
15442           ;;
15443         esac
15444       fi
15445       ;;
15447     irix5* | irix6* | nonstopux*)
15448       if test "$GCC" = yes; then
15449         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'
15450       else
15451         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'
15452         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15453       fi
15454       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15455       hardcode_libdir_separator_F77=:
15456       link_all_deplibs_F77=yes
15457       ;;
15459     netbsd* | netbsdelf*-gnu)
15460       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15461         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15462       else
15463         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15464       fi
15465       hardcode_libdir_flag_spec_F77='-R$libdir'
15466       hardcode_direct_F77=yes
15467       hardcode_shlibpath_var_F77=no
15468       ;;
15470     newsos6)
15471       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15472       hardcode_direct_F77=yes
15473       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15474       hardcode_libdir_separator_F77=:
15475       hardcode_shlibpath_var_F77=no
15476       ;;
15478     openbsd*)
15479       if test -f /usr/libexec/ld.so; then
15480         hardcode_direct_F77=yes
15481         hardcode_shlibpath_var_F77=no
15482         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15483           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15484           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15485           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15486           export_dynamic_flag_spec_F77='${wl}-E'
15487         else
15488           case $host_os in
15489            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15490              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15491              hardcode_libdir_flag_spec_F77='-R$libdir'
15492              ;;
15493            *)
15494              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15495              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15496              ;;
15497           esac
15498         fi
15499       else
15500         ld_shlibs_F77=no
15501       fi
15502       ;;
15504     os2*)
15505       hardcode_libdir_flag_spec_F77='-L$libdir'
15506       hardcode_minus_L_F77=yes
15507       allow_undefined_flag_F77=unsupported
15508       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'
15509       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15510       ;;
15512     osf3*)
15513       if test "$GCC" = yes; then
15514         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15515         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'
15516       else
15517         allow_undefined_flag_F77=' -expect_unresolved \*'
15518         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'
15519       fi
15520       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15521       hardcode_libdir_separator_F77=:
15522       ;;
15524     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15525       if test "$GCC" = yes; then
15526         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15527         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'
15528         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15529       else
15530         allow_undefined_flag_F77=' -expect_unresolved \*'
15531         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'
15532         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~
15533         $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'
15535         # Both c and cxx compiler support -rpath directly
15536         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15537       fi
15538       hardcode_libdir_separator_F77=:
15539       ;;
15541     solaris*)
15542       no_undefined_flag_F77=' -z text'
15543       if test "$GCC" = yes; then
15544         wlarc='${wl}'
15545         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15546         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15547           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15548       else
15549         wlarc=''
15550         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15551         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15552         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15553       fi
15554       hardcode_libdir_flag_spec_F77='-R$libdir'
15555       hardcode_shlibpath_var_F77=no
15556       case $host_os in
15557       solaris2.[0-5] | solaris2.[0-5].*) ;;
15558       *)
15559         # The compiler driver will combine and reorder linker options,
15560         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15561         # but is careful enough not to reorder.
15562         # Supported since Solaris 2.6 (maybe 2.5.1?)
15563         if test "$GCC" = yes; then
15564           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15565         else
15566           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15567         fi
15568         ;;
15569       esac
15570       link_all_deplibs_F77=yes
15571       ;;
15573     sunos4*)
15574       if test "x$host_vendor" = xsequent; then
15575         # Use $CC to link under sequent, because it throws in some extra .o
15576         # files that make .init and .fini sections work.
15577         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15578       else
15579         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15580       fi
15581       hardcode_libdir_flag_spec_F77='-L$libdir'
15582       hardcode_direct_F77=yes
15583       hardcode_minus_L_F77=yes
15584       hardcode_shlibpath_var_F77=no
15585       ;;
15587     sysv4)
15588       case $host_vendor in
15589         sni)
15590           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15591           hardcode_direct_F77=yes # is this really true???
15592         ;;
15593         siemens)
15594           ## LD is ld it makes a PLAMLIB
15595           ## CC just makes a GrossModule.
15596           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15597           reload_cmds_F77='$CC -r -o $output$reload_objs'
15598           hardcode_direct_F77=no
15599         ;;
15600         motorola)
15601           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15602           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15603         ;;
15604       esac
15605       runpath_var='LD_RUN_PATH'
15606       hardcode_shlibpath_var_F77=no
15607       ;;
15609     sysv4.3*)
15610       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611       hardcode_shlibpath_var_F77=no
15612       export_dynamic_flag_spec_F77='-Bexport'
15613       ;;
15615     sysv4*MP*)
15616       if test -d /usr/nec; then
15617         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15618         hardcode_shlibpath_var_F77=no
15619         runpath_var=LD_RUN_PATH
15620         hardcode_runpath_var=yes
15621         ld_shlibs_F77=yes
15622       fi
15623       ;;
15625     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15626       no_undefined_flag_F77='${wl}-z,text'
15627       archive_cmds_need_lc_F77=no
15628       hardcode_shlibpath_var_F77=no
15629       runpath_var='LD_RUN_PATH'
15631       if test "$GCC" = yes; then
15632         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15633         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15634       else
15635         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15636         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637       fi
15638       ;;
15640     sysv5* | sco3.2v5* | sco5v6*)
15641       # Note: We can NOT use -z defs as we might desire, because we do not
15642       # link with -lc, and that would cause any symbols used from libc to
15643       # always be unresolved, which means just about no library would
15644       # ever link correctly.  If we're not using GNU ld we use -z text
15645       # though, which does catch some bad symbols but isn't as heavy-handed
15646       # as -z defs.
15647       no_undefined_flag_F77='${wl}-z,text'
15648       allow_undefined_flag_F77='${wl}-z,nodefs'
15649       archive_cmds_need_lc_F77=no
15650       hardcode_shlibpath_var_F77=no
15651       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15652       hardcode_libdir_separator_F77=':'
15653       link_all_deplibs_F77=yes
15654       export_dynamic_flag_spec_F77='${wl}-Bexport'
15655       runpath_var='LD_RUN_PATH'
15657       if test "$GCC" = yes; then
15658         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15659         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15660       else
15661         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15662         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15663       fi
15664       ;;
15666     uts4*)
15667       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15668       hardcode_libdir_flag_spec_F77='-L$libdir'
15669       hardcode_shlibpath_var_F77=no
15670       ;;
15672     *)
15673       ld_shlibs_F77=no
15674       ;;
15675     esac
15676   fi
15678 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15679 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15680 test "$ld_shlibs_F77" = no && can_build_shared=no
15683 # Do we need to explicitly link libc?
15685 case "x$archive_cmds_need_lc_F77" in
15686 x|xyes)
15687   # Assume -lc should be added
15688   archive_cmds_need_lc_F77=yes
15690   if test "$enable_shared" = yes && test "$GCC" = yes; then
15691     case $archive_cmds_F77 in
15692     *'~'*)
15693       # FIXME: we may have to deal with multi-command sequences.
15694       ;;
15695     '$CC '*)
15696       # Test whether the compiler implicitly links with -lc since on some
15697       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15698       # to ld, don't add -lc before -lgcc.
15699       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15700 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15701       $rm conftest*
15702       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15704       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15705   (eval $ac_compile) 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } 2>conftest.err; then
15709         soname=conftest
15710         lib=conftest
15711         libobjs=conftest.$ac_objext
15712         deplibs=
15713         wl=$lt_prog_compiler_wl_F77
15714         pic_flag=$lt_prog_compiler_pic_F77
15715         compiler_flags=-v
15716         linker_flags=-v
15717         verstring=
15718         output_objdir=.
15719         libname=conftest
15720         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15721         allow_undefined_flag_F77=
15722         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15723   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15724   ac_status=$?
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); }
15727         then
15728           archive_cmds_need_lc_F77=no
15729         else
15730           archive_cmds_need_lc_F77=yes
15731         fi
15732         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15733       else
15734         cat conftest.err 1>&5
15735       fi
15736       $rm conftest*
15737       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15738 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15739       ;;
15740     esac
15741   fi
15742   ;;
15743 esac
15745 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15746 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15747 library_names_spec=
15748 libname_spec='lib$name'
15749 soname_spec=
15750 shrext_cmds=".so"
15751 postinstall_cmds=
15752 postuninstall_cmds=
15753 finish_cmds=
15754 finish_eval=
15755 shlibpath_var=
15756 shlibpath_overrides_runpath=unknown
15757 version_type=none
15758 dynamic_linker="$host_os ld.so"
15759 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15761 need_lib_prefix=unknown
15762 hardcode_into_libs=no
15764 # when you set need_version to no, make sure it does not cause -set_version
15765 # flags to be left without arguments
15766 need_version=unknown
15768 case $host_os in
15769 aix3*)
15770   version_type=linux
15771   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15772   shlibpath_var=LIBPATH
15774   # AIX 3 has no versioning support, so we append a major version to the name.
15775   soname_spec='${libname}${release}${shared_ext}$major'
15776   ;;
15778 aix[4-9]*)
15779   version_type=linux
15780   need_lib_prefix=no
15781   need_version=no
15782   hardcode_into_libs=yes
15783   if test "$host_cpu" = ia64; then
15784     # AIX 5 supports IA64
15785     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15786     shlibpath_var=LD_LIBRARY_PATH
15787   else
15788     # With GCC up to 2.95.x, collect2 would create an import file
15789     # for dependence libraries.  The import file would start with
15790     # the line `#! .'.  This would cause the generated library to
15791     # depend on `.', always an invalid library.  This was fixed in
15792     # development snapshots of GCC prior to 3.0.
15793     case $host_os in
15794       aix4 | aix4.[01] | aix4.[01].*)
15795       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15796            echo ' yes '
15797            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15798         :
15799       else
15800         can_build_shared=no
15801       fi
15802       ;;
15803     esac
15804     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15805     # soname into executable. Probably we can add versioning support to
15806     # collect2, so additional links can be useful in future.
15807     if test "$aix_use_runtimelinking" = yes; then
15808       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15809       # instead of lib<name>.a to let people know that these are not
15810       # typical AIX shared libraries.
15811       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15812     else
15813       # We preserve .a as extension for shared libraries through AIX4.2
15814       # and later when we are not doing run time linking.
15815       library_names_spec='${libname}${release}.a $libname.a'
15816       soname_spec='${libname}${release}${shared_ext}$major'
15817     fi
15818     shlibpath_var=LIBPATH
15819   fi
15820   ;;
15822 amigaos*)
15823   library_names_spec='$libname.ixlibrary $libname.a'
15824   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15825   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'
15826   ;;
15828 beos*)
15829   library_names_spec='${libname}${shared_ext}'
15830   dynamic_linker="$host_os ld.so"
15831   shlibpath_var=LIBRARY_PATH
15832   ;;
15834 bsdi[45]*)
15835   version_type=linux
15836   need_version=no
15837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838   soname_spec='${libname}${release}${shared_ext}$major'
15839   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15840   shlibpath_var=LD_LIBRARY_PATH
15841   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15842   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15843   # the default ld.so.conf also contains /usr/contrib/lib and
15844   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15845   # libtool to hard-code these into programs
15846   ;;
15848 cygwin* | mingw* | pw32*)
15849   version_type=windows
15850   shrext_cmds=".dll"
15851   need_version=no
15852   need_lib_prefix=no
15854   case $GCC,$host_os in
15855   yes,cygwin* | yes,mingw* | yes,pw32*)
15856     library_names_spec='$libname.dll.a'
15857     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15858     postinstall_cmds='base_file=`basename \${file}`~
15859       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15860       dldir=$destdir/`dirname \$dlpath`~
15861       test -d \$dldir || mkdir -p \$dldir~
15862       $install_prog $dir/$dlname \$dldir/$dlname~
15863       chmod a+x \$dldir/$dlname'
15864     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15865       dlpath=$dir/\$dldll~
15866        $rm \$dlpath'
15867     shlibpath_overrides_runpath=yes
15869     case $host_os in
15870     cygwin*)
15871       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15872       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15873       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15874       ;;
15875     mingw*)
15876       # MinGW DLLs use traditional 'lib' prefix
15877       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15878       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15879       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15880         # It is most probably a Windows format PATH printed by
15881         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15882         # path with ; separators, and with drive letters. We can handle the
15883         # drive letters (cygwin fileutils understands them), so leave them,
15884         # especially as we might pass files found there to a mingw objdump,
15885         # which wouldn't understand a cygwinified path. Ahh.
15886         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15887       else
15888         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15889       fi
15890       ;;
15891     pw32*)
15892       # pw32 DLLs use 'pw' prefix rather than 'lib'
15893       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15894       ;;
15895     esac
15896     ;;
15898   *)
15899     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15900     ;;
15901   esac
15902   dynamic_linker='Win32 ld.exe'
15903   # FIXME: first we should search . and the directory the executable is in
15904   shlibpath_var=PATH
15905   ;;
15907 darwin* | rhapsody*)
15908   dynamic_linker="$host_os dyld"
15909   version_type=darwin
15910   need_lib_prefix=no
15911   need_version=no
15912   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15913   soname_spec='${libname}${release}${major}$shared_ext'
15914   shlibpath_overrides_runpath=yes
15915   shlibpath_var=DYLD_LIBRARY_PATH
15916   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15918   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15919   ;;
15921 dgux*)
15922   version_type=linux
15923   need_lib_prefix=no
15924   need_version=no
15925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15926   soname_spec='${libname}${release}${shared_ext}$major'
15927   shlibpath_var=LD_LIBRARY_PATH
15928   ;;
15930 freebsd1*)
15931   dynamic_linker=no
15932   ;;
15934 freebsd* | dragonfly*)
15935   # DragonFly does not have aout.  When/if they implement a new
15936   # versioning mechanism, adjust this.
15937   if test -x /usr/bin/objformat; then
15938     objformat=`/usr/bin/objformat`
15939   else
15940     case $host_os in
15941     freebsd[123]*) objformat=aout ;;
15942     *) objformat=elf ;;
15943     esac
15944   fi
15945   version_type=freebsd-$objformat
15946   case $version_type in
15947     freebsd-elf*)
15948       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15949       need_version=no
15950       need_lib_prefix=no
15951       ;;
15952     freebsd-*)
15953       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15954       need_version=yes
15955       ;;
15956   esac
15957   shlibpath_var=LD_LIBRARY_PATH
15958   case $host_os in
15959   freebsd2*)
15960     shlibpath_overrides_runpath=yes
15961     ;;
15962   freebsd3.[01]* | freebsdelf3.[01]*)
15963     shlibpath_overrides_runpath=yes
15964     hardcode_into_libs=yes
15965     ;;
15966   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15967   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15968     shlibpath_overrides_runpath=no
15969     hardcode_into_libs=yes
15970     ;;
15971   *) # from 4.6 on, and DragonFly
15972     shlibpath_overrides_runpath=yes
15973     hardcode_into_libs=yes
15974     ;;
15975   esac
15976   ;;
15978 gnu*)
15979   version_type=linux
15980   need_lib_prefix=no
15981   need_version=no
15982   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15983   soname_spec='${libname}${release}${shared_ext}$major'
15984   shlibpath_var=LD_LIBRARY_PATH
15985   hardcode_into_libs=yes
15986   ;;
15988 hpux9* | hpux10* | hpux11*)
15989   # Give a soname corresponding to the major version so that dld.sl refuses to
15990   # link against other versions.
15991   version_type=sunos
15992   need_lib_prefix=no
15993   need_version=no
15994   case $host_cpu in
15995   ia64*)
15996     shrext_cmds='.so'
15997     hardcode_into_libs=yes
15998     dynamic_linker="$host_os dld.so"
15999     shlibpath_var=LD_LIBRARY_PATH
16000     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16001     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002     soname_spec='${libname}${release}${shared_ext}$major'
16003     if test "X$HPUX_IA64_MODE" = X32; then
16004       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16005     else
16006       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16007     fi
16008     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16009     ;;
16010    hppa*64*)
16011      shrext_cmds='.sl'
16012      hardcode_into_libs=yes
16013      dynamic_linker="$host_os dld.sl"
16014      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16015      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16016      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017      soname_spec='${libname}${release}${shared_ext}$major'
16018      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16019      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16020      ;;
16021    *)
16022     shrext_cmds='.sl'
16023     dynamic_linker="$host_os dld.sl"
16024     shlibpath_var=SHLIB_PATH
16025     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027     soname_spec='${libname}${release}${shared_ext}$major'
16028     ;;
16029   esac
16030   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16031   postinstall_cmds='chmod 555 $lib'
16032   ;;
16034 interix[3-9]*)
16035   version_type=linux
16036   need_lib_prefix=no
16037   need_version=no
16038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16039   soname_spec='${libname}${release}${shared_ext}$major'
16040   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16041   shlibpath_var=LD_LIBRARY_PATH
16042   shlibpath_overrides_runpath=no
16043   hardcode_into_libs=yes
16044   ;;
16046 irix5* | irix6* | nonstopux*)
16047   case $host_os in
16048     nonstopux*) version_type=nonstopux ;;
16049     *)
16050         if test "$lt_cv_prog_gnu_ld" = yes; then
16051                 version_type=linux
16052         else
16053                 version_type=irix
16054         fi ;;
16055   esac
16056   need_lib_prefix=no
16057   need_version=no
16058   soname_spec='${libname}${release}${shared_ext}$major'
16059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16060   case $host_os in
16061   irix5* | nonstopux*)
16062     libsuff= shlibsuff=
16063     ;;
16064   *)
16065     case $LD in # libtool.m4 will add one of these switches to LD
16066     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16067       libsuff= shlibsuff= libmagic=32-bit;;
16068     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16069       libsuff=32 shlibsuff=N32 libmagic=N32;;
16070     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16071       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16072     *) libsuff= shlibsuff= libmagic=never-match;;
16073     esac
16074     ;;
16075   esac
16076   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16077   shlibpath_overrides_runpath=no
16078   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16079   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16080   hardcode_into_libs=yes
16081   ;;
16083 # No shared lib support for Linux oldld, aout, or coff.
16084 linux*oldld* | linux*aout* | linux*coff*)
16085   dynamic_linker=no
16086   ;;
16088 # This must be Linux ELF.
16089 linux* | k*bsd*-gnu)
16090   version_type=linux
16091   need_lib_prefix=no
16092   need_version=no
16093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094   soname_spec='${libname}${release}${shared_ext}$major'
16095   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16096   shlibpath_var=LD_LIBRARY_PATH
16097   shlibpath_overrides_runpath=no
16098   # This implies no fast_install, which is unacceptable.
16099   # Some rework will be needed to allow for fast_install
16100   # before this can be enabled.
16101   hardcode_into_libs=yes
16103   # Append ld.so.conf contents to the search path
16104   if test -f /etc/ld.so.conf; then
16105     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' ' '`
16106     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16107   fi
16109   # We used to test for /lib/ld.so.1 and disable shared libraries on
16110   # powerpc, because MkLinux only supported shared libraries with the
16111   # GNU dynamic linker.  Since this was broken with cross compilers,
16112   # most powerpc-linux boxes support dynamic linking these days and
16113   # people can always --disable-shared, the test was removed, and we
16114   # assume the GNU/Linux dynamic linker is in use.
16115   dynamic_linker='GNU/Linux ld.so'
16116   ;;
16118 netbsdelf*-gnu)
16119   version_type=linux
16120   need_lib_prefix=no
16121   need_version=no
16122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16123   soname_spec='${libname}${release}${shared_ext}$major'
16124   shlibpath_var=LD_LIBRARY_PATH
16125   shlibpath_overrides_runpath=no
16126   hardcode_into_libs=yes
16127   dynamic_linker='NetBSD ld.elf_so'
16128   ;;
16130 netbsd*)
16131   version_type=sunos
16132   need_lib_prefix=no
16133   need_version=no
16134   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16136     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16137     dynamic_linker='NetBSD (a.out) ld.so'
16138   else
16139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16140     soname_spec='${libname}${release}${shared_ext}$major'
16141     dynamic_linker='NetBSD ld.elf_so'
16142   fi
16143   shlibpath_var=LD_LIBRARY_PATH
16144   shlibpath_overrides_runpath=yes
16145   hardcode_into_libs=yes
16146   ;;
16148 newsos6)
16149   version_type=linux
16150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16151   shlibpath_var=LD_LIBRARY_PATH
16152   shlibpath_overrides_runpath=yes
16153   ;;
16155 nto-qnx*)
16156   version_type=linux
16157   need_lib_prefix=no
16158   need_version=no
16159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160   soname_spec='${libname}${release}${shared_ext}$major'
16161   shlibpath_var=LD_LIBRARY_PATH
16162   shlibpath_overrides_runpath=yes
16163   ;;
16165 openbsd*)
16166   version_type=sunos
16167   sys_lib_dlsearch_path_spec="/usr/lib"
16168   need_lib_prefix=no
16169   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16170   case $host_os in
16171     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16172     *)                         need_version=no  ;;
16173   esac
16174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16175   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16176   shlibpath_var=LD_LIBRARY_PATH
16177   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16178     case $host_os in
16179       openbsd2.[89] | openbsd2.[89].*)
16180         shlibpath_overrides_runpath=no
16181         ;;
16182       *)
16183         shlibpath_overrides_runpath=yes
16184         ;;
16185       esac
16186   else
16187     shlibpath_overrides_runpath=yes
16188   fi
16189   ;;
16191 os2*)
16192   libname_spec='$name'
16193   shrext_cmds=".dll"
16194   need_lib_prefix=no
16195   library_names_spec='$libname${shared_ext} $libname.a'
16196   dynamic_linker='OS/2 ld.exe'
16197   shlibpath_var=LIBPATH
16198   ;;
16200 osf3* | osf4* | osf5*)
16201   version_type=osf
16202   need_lib_prefix=no
16203   need_version=no
16204   soname_spec='${libname}${release}${shared_ext}$major'
16205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16206   shlibpath_var=LD_LIBRARY_PATH
16207   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16208   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16209   ;;
16211 rdos*)
16212   dynamic_linker=no
16213   ;;
16215 solaris*)
16216   version_type=linux
16217   need_lib_prefix=no
16218   need_version=no
16219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220   soname_spec='${libname}${release}${shared_ext}$major'
16221   shlibpath_var=LD_LIBRARY_PATH
16222   shlibpath_overrides_runpath=yes
16223   hardcode_into_libs=yes
16224   # ldd complains unless libraries are executable
16225   postinstall_cmds='chmod +x $lib'
16226   ;;
16228 sunos4*)
16229   version_type=sunos
16230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16231   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16232   shlibpath_var=LD_LIBRARY_PATH
16233   shlibpath_overrides_runpath=yes
16234   if test "$with_gnu_ld" = yes; then
16235     need_lib_prefix=no
16236   fi
16237   need_version=yes
16238   ;;
16240 sysv4 | sysv4.3*)
16241   version_type=linux
16242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243   soname_spec='${libname}${release}${shared_ext}$major'
16244   shlibpath_var=LD_LIBRARY_PATH
16245   case $host_vendor in
16246     sni)
16247       shlibpath_overrides_runpath=no
16248       need_lib_prefix=no
16249       export_dynamic_flag_spec='${wl}-Blargedynsym'
16250       runpath_var=LD_RUN_PATH
16251       ;;
16252     siemens)
16253       need_lib_prefix=no
16254       ;;
16255     motorola)
16256       need_lib_prefix=no
16257       need_version=no
16258       shlibpath_overrides_runpath=no
16259       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16260       ;;
16261   esac
16262   ;;
16264 sysv4*MP*)
16265   if test -d /usr/nec ;then
16266     version_type=linux
16267     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16268     soname_spec='$libname${shared_ext}.$major'
16269     shlibpath_var=LD_LIBRARY_PATH
16270   fi
16271   ;;
16273 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16274   version_type=freebsd-elf
16275   need_lib_prefix=no
16276   need_version=no
16277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16278   soname_spec='${libname}${release}${shared_ext}$major'
16279   shlibpath_var=LD_LIBRARY_PATH
16280   hardcode_into_libs=yes
16281   if test "$with_gnu_ld" = yes; then
16282     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16283     shlibpath_overrides_runpath=no
16284   else
16285     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16286     shlibpath_overrides_runpath=yes
16287     case $host_os in
16288       sco3.2v5*)
16289         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16290         ;;
16291     esac
16292   fi
16293   sys_lib_dlsearch_path_spec='/usr/lib'
16294   ;;
16296 uts4*)
16297   version_type=linux
16298   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16299   soname_spec='${libname}${release}${shared_ext}$major'
16300   shlibpath_var=LD_LIBRARY_PATH
16301   ;;
16304   dynamic_linker=no
16305   ;;
16306 esac
16307 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16308 echo "${ECHO_T}$dynamic_linker" >&6; }
16309 test "$dynamic_linker" = no && can_build_shared=no
16311 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16312   echo $ECHO_N "(cached) $ECHO_C" >&6
16313 else
16314   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16317 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16318 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16319   echo $ECHO_N "(cached) $ECHO_C" >&6
16320 else
16321   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16324 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16326 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16327 if test "$GCC" = yes; then
16328   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16331 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16332 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16333 hardcode_action_F77=
16334 if test -n "$hardcode_libdir_flag_spec_F77" || \
16335    test -n "$runpath_var_F77" || \
16336    test "X$hardcode_automatic_F77" = "Xyes" ; then
16338   # We can hardcode non-existant directories.
16339   if test "$hardcode_direct_F77" != no &&
16340      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16341      # have to relink, otherwise we might link with an installed library
16342      # when we should be linking with a yet-to-be-installed one
16343      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16344      test "$hardcode_minus_L_F77" != no; then
16345     # Linking always hardcodes the temporary library directory.
16346     hardcode_action_F77=relink
16347   else
16348     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16349     hardcode_action_F77=immediate
16350   fi
16351 else
16352   # We cannot hardcode anything, or else we can only hardcode existing
16353   # directories.
16354   hardcode_action_F77=unsupported
16356 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16357 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16359 if test "$hardcode_action_F77" = relink; then
16360   # Fast installation is not supported
16361   enable_fast_install=no
16362 elif test "$shlibpath_overrides_runpath" = yes ||
16363      test "$enable_shared" = no; then
16364   # Fast installation is not necessary
16365   enable_fast_install=needless
16369 # The else clause should only fire when bootstrapping the
16370 # libtool distribution, otherwise you forgot to ship ltmain.sh
16371 # with your package, and you will get complaints that there are
16372 # no rules to generate ltmain.sh.
16373 if test -f "$ltmain"; then
16374   # See if we are running on zsh, and set the options which allow our commands through
16375   # without removal of \ escapes.
16376   if test -n "${ZSH_VERSION+set}" ; then
16377     setopt NO_GLOB_SUBST
16378   fi
16379   # Now quote all the things that may contain metacharacters while being
16380   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16381   # variables and quote the copies for generation of the libtool script.
16382   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16383     SED SHELL STRIP \
16384     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16385     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16386     deplibs_check_method reload_flag reload_cmds need_locks \
16387     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16388     lt_cv_sys_global_symbol_to_c_name_address \
16389     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16390     old_postinstall_cmds old_postuninstall_cmds \
16391     compiler_F77 \
16392     CC_F77 \
16393     LD_F77 \
16394     lt_prog_compiler_wl_F77 \
16395     lt_prog_compiler_pic_F77 \
16396     lt_prog_compiler_static_F77 \
16397     lt_prog_compiler_no_builtin_flag_F77 \
16398     export_dynamic_flag_spec_F77 \
16399     thread_safe_flag_spec_F77 \
16400     whole_archive_flag_spec_F77 \
16401     enable_shared_with_static_runtimes_F77 \
16402     old_archive_cmds_F77 \
16403     old_archive_from_new_cmds_F77 \
16404     predep_objects_F77 \
16405     postdep_objects_F77 \
16406     predeps_F77 \
16407     postdeps_F77 \
16408     compiler_lib_search_path_F77 \
16409     compiler_lib_search_dirs_F77 \
16410     archive_cmds_F77 \
16411     archive_expsym_cmds_F77 \
16412     postinstall_cmds_F77 \
16413     postuninstall_cmds_F77 \
16414     old_archive_from_expsyms_cmds_F77 \
16415     allow_undefined_flag_F77 \
16416     no_undefined_flag_F77 \
16417     export_symbols_cmds_F77 \
16418     hardcode_libdir_flag_spec_F77 \
16419     hardcode_libdir_flag_spec_ld_F77 \
16420     hardcode_libdir_separator_F77 \
16421     hardcode_automatic_F77 \
16422     module_cmds_F77 \
16423     module_expsym_cmds_F77 \
16424     lt_cv_prog_compiler_c_o_F77 \
16425     fix_srcfile_path_F77 \
16426     exclude_expsyms_F77 \
16427     include_expsyms_F77; do
16429     case $var in
16430     old_archive_cmds_F77 | \
16431     old_archive_from_new_cmds_F77 | \
16432     archive_cmds_F77 | \
16433     archive_expsym_cmds_F77 | \
16434     module_cmds_F77 | \
16435     module_expsym_cmds_F77 | \
16436     old_archive_from_expsyms_cmds_F77 | \
16437     export_symbols_cmds_F77 | \
16438     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16439     postinstall_cmds | postuninstall_cmds | \
16440     old_postinstall_cmds | old_postuninstall_cmds | \
16441     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16442       # Double-quote double-evaled strings.
16443       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16444       ;;
16445     *)
16446       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16447       ;;
16448     esac
16449   done
16451   case $lt_echo in
16452   *'\$0 --fallback-echo"')
16453     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16454     ;;
16455   esac
16457 cfgfile="$ofile"
16459   cat <<__EOF__ >> "$cfgfile"
16460 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16462 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16464 # Shell to use when invoking shell scripts.
16465 SHELL=$lt_SHELL
16467 # Whether or not to build shared libraries.
16468 build_libtool_libs=$enable_shared
16470 # Whether or not to build static libraries.
16471 build_old_libs=$enable_static
16473 # Whether or not to add -lc for building shared libraries.
16474 build_libtool_need_lc=$archive_cmds_need_lc_F77
16476 # Whether or not to disallow shared libs when runtime libs are static
16477 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16479 # Whether or not to optimize for fast installation.
16480 fast_install=$enable_fast_install
16482 # The host system.
16483 host_alias=$host_alias
16484 host=$host
16485 host_os=$host_os
16487 # The build system.
16488 build_alias=$build_alias
16489 build=$build
16490 build_os=$build_os
16492 # An echo program that does not interpret backslashes.
16493 echo=$lt_echo
16495 # The archiver.
16496 AR=$lt_AR
16497 AR_FLAGS=$lt_AR_FLAGS
16499 # A C compiler.
16500 LTCC=$lt_LTCC
16502 # LTCC compiler flags.
16503 LTCFLAGS=$lt_LTCFLAGS
16505 # A language-specific compiler.
16506 CC=$lt_compiler_F77
16508 # Is the compiler the GNU C compiler?
16509 with_gcc=$GCC_F77
16511 # An ERE matcher.
16512 EGREP=$lt_EGREP
16514 # The linker used to build libraries.
16515 LD=$lt_LD_F77
16517 # Whether we need hard or soft links.
16518 LN_S=$lt_LN_S
16520 # A BSD-compatible nm program.
16521 NM=$lt_NM
16523 # A symbol stripping program
16524 STRIP=$lt_STRIP
16526 # Used to examine libraries when file_magic_cmd begins "file"
16527 MAGIC_CMD=$MAGIC_CMD
16529 # Used on cygwin: DLL creation program.
16530 DLLTOOL="$DLLTOOL"
16532 # Used on cygwin: object dumper.
16533 OBJDUMP="$OBJDUMP"
16535 # Used on cygwin: assembler.
16536 AS="$AS"
16538 # The name of the directory that contains temporary libtool files.
16539 objdir=$objdir
16541 # How to create reloadable object files.
16542 reload_flag=$lt_reload_flag
16543 reload_cmds=$lt_reload_cmds
16545 # How to pass a linker flag through the compiler.
16546 wl=$lt_lt_prog_compiler_wl_F77
16548 # Object file suffix (normally "o").
16549 objext="$ac_objext"
16551 # Old archive suffix (normally "a").
16552 libext="$libext"
16554 # Shared library suffix (normally ".so").
16555 shrext_cmds='$shrext_cmds'
16557 # Executable file suffix (normally "").
16558 exeext="$exeext"
16560 # Additional compiler flags for building library objects.
16561 pic_flag=$lt_lt_prog_compiler_pic_F77
16562 pic_mode=$pic_mode
16564 # What is the maximum length of a command?
16565 max_cmd_len=$lt_cv_sys_max_cmd_len
16567 # Does compiler simultaneously support -c and -o options?
16568 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16570 # Must we lock files when doing compilation?
16571 need_locks=$lt_need_locks
16573 # Do we need the lib prefix for modules?
16574 need_lib_prefix=$need_lib_prefix
16576 # Do we need a version for libraries?
16577 need_version=$need_version
16579 # Whether dlopen is supported.
16580 dlopen_support=$enable_dlopen
16582 # Whether dlopen of programs is supported.
16583 dlopen_self=$enable_dlopen_self
16585 # Whether dlopen of statically linked programs is supported.
16586 dlopen_self_static=$enable_dlopen_self_static
16588 # Compiler flag to prevent dynamic linking.
16589 link_static_flag=$lt_lt_prog_compiler_static_F77
16591 # Compiler flag to turn off builtin functions.
16592 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16594 # Compiler flag to allow reflexive dlopens.
16595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16597 # Compiler flag to generate shared objects directly from archives.
16598 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16600 # Compiler flag to generate thread-safe objects.
16601 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16603 # Library versioning type.
16604 version_type=$version_type
16606 # Format of library name prefix.
16607 libname_spec=$lt_libname_spec
16609 # List of archive names.  First name is the real one, the rest are links.
16610 # The last name is the one that the linker finds with -lNAME.
16611 library_names_spec=$lt_library_names_spec
16613 # The coded name of the library, if different from the real name.
16614 soname_spec=$lt_soname_spec
16616 # Commands used to build and install an old-style archive.
16617 RANLIB=$lt_RANLIB
16618 old_archive_cmds=$lt_old_archive_cmds_F77
16619 old_postinstall_cmds=$lt_old_postinstall_cmds
16620 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16622 # Create an old-style archive from a shared archive.
16623 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16625 # Create a temporary old-style archive to link instead of a shared archive.
16626 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16628 # Commands used to build and install a shared archive.
16629 archive_cmds=$lt_archive_cmds_F77
16630 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16631 postinstall_cmds=$lt_postinstall_cmds
16632 postuninstall_cmds=$lt_postuninstall_cmds
16634 # Commands used to build a loadable module (assumed same as above if empty)
16635 module_cmds=$lt_module_cmds_F77
16636 module_expsym_cmds=$lt_module_expsym_cmds_F77
16638 # Commands to strip libraries.
16639 old_striplib=$lt_old_striplib
16640 striplib=$lt_striplib
16642 # Dependencies to place before the objects being linked to create a
16643 # shared library.
16644 predep_objects=$lt_predep_objects_F77
16646 # Dependencies to place after the objects being linked to create a
16647 # shared library.
16648 postdep_objects=$lt_postdep_objects_F77
16650 # Dependencies to place before the objects being linked to create a
16651 # shared library.
16652 predeps=$lt_predeps_F77
16654 # Dependencies to place after the objects being linked to create a
16655 # shared library.
16656 postdeps=$lt_postdeps_F77
16658 # The directories searched by this compiler when creating a shared
16659 # library
16660 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16662 # The library search path used internally by the compiler when linking
16663 # a shared library.
16664 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16666 # Method to check whether dependent libraries are shared objects.
16667 deplibs_check_method=$lt_deplibs_check_method
16669 # Command to use when deplibs_check_method == file_magic.
16670 file_magic_cmd=$lt_file_magic_cmd
16672 # Flag that allows shared libraries with undefined symbols to be built.
16673 allow_undefined_flag=$lt_allow_undefined_flag_F77
16675 # Flag that forces no undefined symbols.
16676 no_undefined_flag=$lt_no_undefined_flag_F77
16678 # Commands used to finish a libtool library installation in a directory.
16679 finish_cmds=$lt_finish_cmds
16681 # Same as above, but a single script fragment to be evaled but not shown.
16682 finish_eval=$lt_finish_eval
16684 # Take the output of nm and produce a listing of raw symbols and C names.
16685 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16687 # Transform the output of nm in a proper C declaration
16688 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16690 # Transform the output of nm in a C name address pair
16691 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16693 # This is the shared library runtime path variable.
16694 runpath_var=$runpath_var
16696 # This is the shared library path variable.
16697 shlibpath_var=$shlibpath_var
16699 # Is shlibpath searched before the hard-coded library search path?
16700 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16702 # How to hardcode a shared library path into an executable.
16703 hardcode_action=$hardcode_action_F77
16705 # Whether we should hardcode library paths into libraries.
16706 hardcode_into_libs=$hardcode_into_libs
16708 # Flag to hardcode \$libdir into a binary during linking.
16709 # This must work even if \$libdir does not exist.
16710 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16712 # If ld is used when linking, flag to hardcode \$libdir into
16713 # a binary during linking. This must work even if \$libdir does
16714 # not exist.
16715 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16717 # Whether we need a single -rpath flag with a separated argument.
16718 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16720 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16721 # resulting binary.
16722 hardcode_direct=$hardcode_direct_F77
16724 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16725 # resulting binary.
16726 hardcode_minus_L=$hardcode_minus_L_F77
16728 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16729 # the resulting binary.
16730 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16732 # Set to yes if building a shared library automatically hardcodes DIR into the library
16733 # and all subsequent libraries and executables linked against it.
16734 hardcode_automatic=$hardcode_automatic_F77
16736 # Variables whose values should be saved in libtool wrapper scripts and
16737 # restored at relink time.
16738 variables_saved_for_relink="$variables_saved_for_relink"
16740 # Whether libtool must link a program against all its dependency libraries.
16741 link_all_deplibs=$link_all_deplibs_F77
16743 # Compile-time system search path for libraries
16744 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16746 # Run-time system search path for libraries
16747 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16749 # Fix the shell variable \$srcfile for the compiler.
16750 fix_srcfile_path=$lt_fix_srcfile_path
16752 # Set to yes if exported symbols are required.
16753 always_export_symbols=$always_export_symbols_F77
16755 # The commands to list exported symbols.
16756 export_symbols_cmds=$lt_export_symbols_cmds_F77
16758 # The commands to extract the exported symbol list from a shared archive.
16759 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16761 # Symbols that should not be listed in the preloaded symbols.
16762 exclude_expsyms=$lt_exclude_expsyms_F77
16764 # Symbols that must always be exported.
16765 include_expsyms=$lt_include_expsyms_F77
16767 # ### END LIBTOOL TAG CONFIG: $tagname
16769 __EOF__
16772 else
16773   # If there is no Makefile yet, we rely on a make rule to execute
16774   # `config.status --recheck' to rerun these tests and create the
16775   # libtool script then.
16776   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16777   if test -f "$ltmain_in"; then
16778     test -f Makefile && make "$ltmain"
16779   fi
16783 ac_ext=c
16784 ac_cpp='$CPP $CPPFLAGS'
16785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16789 CC="$lt_save_CC"
16791         else
16792           tagname=""
16793         fi
16794         ;;
16796       GCJ)
16797         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16800 # Source file extension for Java test sources.
16801 ac_ext=java
16803 # Object file extension for compiled Java test sources.
16804 objext=o
16805 objext_GCJ=$objext
16807 # Code to be used in simple compile tests
16808 lt_simple_compile_test_code="class foo {}"
16810 # Code to be used in simple link tests
16811 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16813 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16815 # If no C compiler was specified, use CC.
16816 LTCC=${LTCC-"$CC"}
16818 # If no C compiler flags were specified, use CFLAGS.
16819 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16821 # Allow CC to be a program name with arguments.
16822 compiler=$CC
16825 # save warnings/boilerplate of simple test code
16826 ac_outfile=conftest.$ac_objext
16827 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16828 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16829 _lt_compiler_boilerplate=`cat conftest.err`
16830 $rm conftest*
16832 ac_outfile=conftest.$ac_objext
16833 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16834 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16835 _lt_linker_boilerplate=`cat conftest.err`
16836 $rm -r conftest*
16839 # Allow CC to be a program name with arguments.
16840 lt_save_CC="$CC"
16841 CC=${GCJ-"gcj"}
16842 compiler=$CC
16843 compiler_GCJ=$CC
16844 for cc_temp in $compiler""; do
16845   case $cc_temp in
16846     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16847     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16848     \-*) ;;
16849     *) break;;
16850   esac
16851 done
16852 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16855 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16856 archive_cmds_need_lc_GCJ=no
16858 old_archive_cmds_GCJ=$old_archive_cmds
16861 lt_prog_compiler_no_builtin_flag_GCJ=
16863 if test "$GCC" = yes; then
16864   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16867 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16868 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16869 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16870   echo $ECHO_N "(cached) $ECHO_C" >&6
16871 else
16872   lt_cv_prog_compiler_rtti_exceptions=no
16873   ac_outfile=conftest.$ac_objext
16874    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16875    lt_compiler_flag="-fno-rtti -fno-exceptions"
16876    # Insert the option either (1) after the last *FLAGS variable, or
16877    # (2) before a word containing "conftest.", or (3) at the end.
16878    # Note that $ac_compile itself does not contain backslashes and begins
16879    # with a dollar sign (not a hyphen), so the echo should work correctly.
16880    # The option is referenced via a variable to avoid confusing sed.
16881    lt_compile=`echo "$ac_compile" | $SED \
16882    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16883    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16884    -e 's:$: $lt_compiler_flag:'`
16885    (eval echo "\"\$as_me:16885: $lt_compile\"" >&5)
16886    (eval "$lt_compile" 2>conftest.err)
16887    ac_status=$?
16888    cat conftest.err >&5
16889    echo "$as_me:16889: \$? = $ac_status" >&5
16890    if (exit $ac_status) && test -s "$ac_outfile"; then
16891      # The compiler can only warn and ignore the option if not recognized
16892      # So say no if there are warnings other than the usual output.
16893      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16894      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16895      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16896        lt_cv_prog_compiler_rtti_exceptions=yes
16897      fi
16898    fi
16899    $rm conftest*
16902 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16903 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16905 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16906     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16907 else
16908     :
16913 lt_prog_compiler_wl_GCJ=
16914 lt_prog_compiler_pic_GCJ=
16915 lt_prog_compiler_static_GCJ=
16917 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16918 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16920   if test "$GCC" = yes; then
16921     lt_prog_compiler_wl_GCJ='-Wl,'
16922     lt_prog_compiler_static_GCJ='-static'
16924     case $host_os in
16925       aix*)
16926       # All AIX code is PIC.
16927       if test "$host_cpu" = ia64; then
16928         # AIX 5 now supports IA64 processor
16929         lt_prog_compiler_static_GCJ='-Bstatic'
16930       fi
16931       ;;
16933     amigaos*)
16934       # FIXME: we need at least 68020 code to build shared libraries, but
16935       # adding the `-m68020' flag to GCC prevents building anything better,
16936       # like `-m68040'.
16937       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16938       ;;
16940     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16941       # PIC is the default for these OSes.
16942       ;;
16944     mingw* | cygwin* | pw32* | os2*)
16945       # This hack is so that the source file can tell whether it is being
16946       # built for inclusion in a dll (and should export symbols for example).
16947       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16948       # (--disable-auto-import) libraries
16950       ;;
16952     darwin* | rhapsody*)
16953       # PIC is the default on this platform
16954       # Common symbols not allowed in MH_DYLIB files
16955       lt_prog_compiler_pic_GCJ='-fno-common'
16956       ;;
16958     interix[3-9]*)
16959       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16960       # Instead, we relocate shared libraries at runtime.
16961       ;;
16963     msdosdjgpp*)
16964       # Just because we use GCC doesn't mean we suddenly get shared libraries
16965       # on systems that don't support them.
16966       lt_prog_compiler_can_build_shared_GCJ=no
16967       enable_shared=no
16968       ;;
16970     sysv4*MP*)
16971       if test -d /usr/nec; then
16972         lt_prog_compiler_pic_GCJ=-Kconform_pic
16973       fi
16974       ;;
16976     hpux*)
16977       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16978       # not for PA HP-UX.
16979       case $host_cpu in
16980       hppa*64*|ia64*)
16981         # +Z the default
16982         ;;
16983       *)
16984         lt_prog_compiler_pic_GCJ='-fPIC'
16985         ;;
16986       esac
16987       ;;
16989     *)
16990       lt_prog_compiler_pic_GCJ='-fPIC'
16991       ;;
16992     esac
16993   else
16994     # PORTME Check for flag to pass linker flags through the system compiler.
16995     case $host_os in
16996     aix*)
16997       lt_prog_compiler_wl_GCJ='-Wl,'
16998       if test "$host_cpu" = ia64; then
16999         # AIX 5 now supports IA64 processor
17000         lt_prog_compiler_static_GCJ='-Bstatic'
17001       else
17002         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17003       fi
17004       ;;
17005       darwin*)
17006         # PIC is the default on this platform
17007         # Common symbols not allowed in MH_DYLIB files
17008        case $cc_basename in
17009          xlc*)
17010          lt_prog_compiler_pic_GCJ='-qnocommon'
17011          lt_prog_compiler_wl_GCJ='-Wl,'
17012          ;;
17013        esac
17014        ;;
17016     mingw* | cygwin* | pw32* | os2*)
17017       # This hack is so that the source file can tell whether it is being
17018       # built for inclusion in a dll (and should export symbols for example).
17020       ;;
17022     hpux9* | hpux10* | hpux11*)
17023       lt_prog_compiler_wl_GCJ='-Wl,'
17024       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17025       # not for PA HP-UX.
17026       case $host_cpu in
17027       hppa*64*|ia64*)
17028         # +Z the default
17029         ;;
17030       *)
17031         lt_prog_compiler_pic_GCJ='+Z'
17032         ;;
17033       esac
17034       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17035       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17036       ;;
17038     irix5* | irix6* | nonstopux*)
17039       lt_prog_compiler_wl_GCJ='-Wl,'
17040       # PIC (with -KPIC) is the default.
17041       lt_prog_compiler_static_GCJ='-non_shared'
17042       ;;
17044     newsos6)
17045       lt_prog_compiler_pic_GCJ='-KPIC'
17046       lt_prog_compiler_static_GCJ='-Bstatic'
17047       ;;
17049     linux* | k*bsd*-gnu)
17050       case $cc_basename in
17051       icc* | ecc*)
17052         lt_prog_compiler_wl_GCJ='-Wl,'
17053         lt_prog_compiler_pic_GCJ='-KPIC'
17054         lt_prog_compiler_static_GCJ='-static'
17055         ;;
17056       pgcc* | pgf77* | pgf90* | pgf95*)
17057         # Portland Group compilers (*not* the Pentium gcc compiler,
17058         # which looks to be a dead project)
17059         lt_prog_compiler_wl_GCJ='-Wl,'
17060         lt_prog_compiler_pic_GCJ='-fpic'
17061         lt_prog_compiler_static_GCJ='-Bstatic'
17062         ;;
17063       ccc*)
17064         lt_prog_compiler_wl_GCJ='-Wl,'
17065         # All Alpha code is PIC.
17066         lt_prog_compiler_static_GCJ='-non_shared'
17067         ;;
17068       *)
17069         case `$CC -V 2>&1 | sed 5q` in
17070         *Sun\ C*)
17071           # Sun C 5.9
17072           lt_prog_compiler_pic_GCJ='-KPIC'
17073           lt_prog_compiler_static_GCJ='-Bstatic'
17074           lt_prog_compiler_wl_GCJ='-Wl,'
17075           ;;
17076         *Sun\ F*)
17077           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17078           lt_prog_compiler_pic_GCJ='-KPIC'
17079           lt_prog_compiler_static_GCJ='-Bstatic'
17080           lt_prog_compiler_wl_GCJ=''
17081           ;;
17082         esac
17083         ;;
17084       esac
17085       ;;
17087     osf3* | osf4* | osf5*)
17088       lt_prog_compiler_wl_GCJ='-Wl,'
17089       # All OSF/1 code is PIC.
17090       lt_prog_compiler_static_GCJ='-non_shared'
17091       ;;
17093     rdos*)
17094       lt_prog_compiler_static_GCJ='-non_shared'
17095       ;;
17097     solaris*)
17098       lt_prog_compiler_pic_GCJ='-KPIC'
17099       lt_prog_compiler_static_GCJ='-Bstatic'
17100       case $cc_basename in
17101       f77* | f90* | f95*)
17102         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17103       *)
17104         lt_prog_compiler_wl_GCJ='-Wl,';;
17105       esac
17106       ;;
17108     sunos4*)
17109       lt_prog_compiler_wl_GCJ='-Qoption ld '
17110       lt_prog_compiler_pic_GCJ='-PIC'
17111       lt_prog_compiler_static_GCJ='-Bstatic'
17112       ;;
17114     sysv4 | sysv4.2uw2* | sysv4.3*)
17115       lt_prog_compiler_wl_GCJ='-Wl,'
17116       lt_prog_compiler_pic_GCJ='-KPIC'
17117       lt_prog_compiler_static_GCJ='-Bstatic'
17118       ;;
17120     sysv4*MP*)
17121       if test -d /usr/nec ;then
17122         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17123         lt_prog_compiler_static_GCJ='-Bstatic'
17124       fi
17125       ;;
17127     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17128       lt_prog_compiler_wl_GCJ='-Wl,'
17129       lt_prog_compiler_pic_GCJ='-KPIC'
17130       lt_prog_compiler_static_GCJ='-Bstatic'
17131       ;;
17133     unicos*)
17134       lt_prog_compiler_wl_GCJ='-Wl,'
17135       lt_prog_compiler_can_build_shared_GCJ=no
17136       ;;
17138     uts4*)
17139       lt_prog_compiler_pic_GCJ='-pic'
17140       lt_prog_compiler_static_GCJ='-Bstatic'
17141       ;;
17143     *)
17144       lt_prog_compiler_can_build_shared_GCJ=no
17145       ;;
17146     esac
17147   fi
17149 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17150 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17153 # Check to make sure the PIC flag actually works.
17155 if test -n "$lt_prog_compiler_pic_GCJ"; then
17157 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17158 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17159 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17160   echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162   lt_cv_prog_compiler_pic_works_GCJ=no
17163   ac_outfile=conftest.$ac_objext
17164    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17165    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17166    # Insert the option either (1) after the last *FLAGS variable, or
17167    # (2) before a word containing "conftest.", or (3) at the end.
17168    # Note that $ac_compile itself does not contain backslashes and begins
17169    # with a dollar sign (not a hyphen), so the echo should work correctly.
17170    # The option is referenced via a variable to avoid confusing sed.
17171    lt_compile=`echo "$ac_compile" | $SED \
17172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17174    -e 's:$: $lt_compiler_flag:'`
17175    (eval echo "\"\$as_me:17175: $lt_compile\"" >&5)
17176    (eval "$lt_compile" 2>conftest.err)
17177    ac_status=$?
17178    cat conftest.err >&5
17179    echo "$as_me:17179: \$? = $ac_status" >&5
17180    if (exit $ac_status) && test -s "$ac_outfile"; then
17181      # The compiler can only warn and ignore the option if not recognized
17182      # So say no if there are warnings other than the usual output.
17183      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17184      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17185      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17186        lt_cv_prog_compiler_pic_works_GCJ=yes
17187      fi
17188    fi
17189    $rm conftest*
17192 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17193 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17195 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17196     case $lt_prog_compiler_pic_GCJ in
17197      "" | " "*) ;;
17198      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17199      esac
17200 else
17201     lt_prog_compiler_pic_GCJ=
17202      lt_prog_compiler_can_build_shared_GCJ=no
17206 case $host_os in
17207   # For platforms which do not support PIC, -DPIC is meaningless:
17208   *djgpp*)
17209     lt_prog_compiler_pic_GCJ=
17210     ;;
17211   *)
17212     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17213     ;;
17214 esac
17217 # Check to make sure the static flag actually works.
17219 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17220 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17221 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17222 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17223   echo $ECHO_N "(cached) $ECHO_C" >&6
17224 else
17225   lt_cv_prog_compiler_static_works_GCJ=no
17226    save_LDFLAGS="$LDFLAGS"
17227    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17228    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17229    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17230      # The linker can only warn and ignore the option if not recognized
17231      # So say no if there are warnings
17232      if test -s conftest.err; then
17233        # Append any errors to the config.log.
17234        cat conftest.err 1>&5
17235        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17236        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17237        if diff conftest.exp conftest.er2 >/dev/null; then
17238          lt_cv_prog_compiler_static_works_GCJ=yes
17239        fi
17240      else
17241        lt_cv_prog_compiler_static_works_GCJ=yes
17242      fi
17243    fi
17244    $rm -r conftest*
17245    LDFLAGS="$save_LDFLAGS"
17248 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17249 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17251 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17252     :
17253 else
17254     lt_prog_compiler_static_GCJ=
17258 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17259 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17260 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17261   echo $ECHO_N "(cached) $ECHO_C" >&6
17262 else
17263   lt_cv_prog_compiler_c_o_GCJ=no
17264    $rm -r conftest 2>/dev/null
17265    mkdir conftest
17266    cd conftest
17267    mkdir out
17268    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17270    lt_compiler_flag="-o out/conftest2.$ac_objext"
17271    # Insert the option either (1) after the last *FLAGS variable, or
17272    # (2) before a word containing "conftest.", or (3) at the end.
17273    # Note that $ac_compile itself does not contain backslashes and begins
17274    # with a dollar sign (not a hyphen), so the echo should work correctly.
17275    lt_compile=`echo "$ac_compile" | $SED \
17276    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17277    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17278    -e 's:$: $lt_compiler_flag:'`
17279    (eval echo "\"\$as_me:17279: $lt_compile\"" >&5)
17280    (eval "$lt_compile" 2>out/conftest.err)
17281    ac_status=$?
17282    cat out/conftest.err >&5
17283    echo "$as_me:17283: \$? = $ac_status" >&5
17284    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17285    then
17286      # The compiler can only warn and ignore the option if not recognized
17287      # So say no if there are warnings
17288      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17289      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17290      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17291        lt_cv_prog_compiler_c_o_GCJ=yes
17292      fi
17293    fi
17294    chmod u+w . 2>&5
17295    $rm conftest*
17296    # SGI C++ compiler will create directory out/ii_files/ for
17297    # template instantiation
17298    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17299    $rm out/* && rmdir out
17300    cd ..
17301    rmdir conftest
17302    $rm conftest*
17305 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17306 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17309 hard_links="nottested"
17310 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17311   # do not overwrite the value of need_locks provided by the user
17312   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17313 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17314   hard_links=yes
17315   $rm conftest*
17316   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17317   touch conftest.a
17318   ln conftest.a conftest.b 2>&5 || hard_links=no
17319   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17320   { echo "$as_me:$LINENO: result: $hard_links" >&5
17321 echo "${ECHO_T}$hard_links" >&6; }
17322   if test "$hard_links" = no; then
17323     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17324 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17325     need_locks=warn
17326   fi
17327 else
17328   need_locks=no
17331 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17332 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17334   runpath_var=
17335   allow_undefined_flag_GCJ=
17336   enable_shared_with_static_runtimes_GCJ=no
17337   archive_cmds_GCJ=
17338   archive_expsym_cmds_GCJ=
17339   old_archive_From_new_cmds_GCJ=
17340   old_archive_from_expsyms_cmds_GCJ=
17341   export_dynamic_flag_spec_GCJ=
17342   whole_archive_flag_spec_GCJ=
17343   thread_safe_flag_spec_GCJ=
17344   hardcode_libdir_flag_spec_GCJ=
17345   hardcode_libdir_flag_spec_ld_GCJ=
17346   hardcode_libdir_separator_GCJ=
17347   hardcode_direct_GCJ=no
17348   hardcode_minus_L_GCJ=no
17349   hardcode_shlibpath_var_GCJ=unsupported
17350   link_all_deplibs_GCJ=unknown
17351   hardcode_automatic_GCJ=no
17352   module_cmds_GCJ=
17353   module_expsym_cmds_GCJ=
17354   always_export_symbols_GCJ=no
17355   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17356   # include_expsyms should be a list of space-separated symbols to be *always*
17357   # included in the symbol list
17358   include_expsyms_GCJ=
17359   # exclude_expsyms can be an extended regexp of symbols to exclude
17360   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17361   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17362   # as well as any symbol that contains `d'.
17363   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17364   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17365   # platforms (ab)use it in PIC code, but their linkers get confused if
17366   # the symbol is explicitly referenced.  Since portable code cannot
17367   # rely on this symbol name, it's probably fine to never include it in
17368   # preloaded symbol tables.
17369   # Exclude shared library initialization/finalization symbols.
17370   extract_expsyms_cmds=
17371   # Just being paranoid about ensuring that cc_basename is set.
17372   for cc_temp in $compiler""; do
17373   case $cc_temp in
17374     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17375     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17376     \-*) ;;
17377     *) break;;
17378   esac
17379 done
17380 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17382   case $host_os in
17383   cygwin* | mingw* | pw32*)
17384     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17385     # When not using gcc, we currently assume that we are using
17386     # Microsoft Visual C++.
17387     if test "$GCC" != yes; then
17388       with_gnu_ld=no
17389     fi
17390     ;;
17391   interix*)
17392     # we just hope/assume this is gcc and not c89 (= MSVC++)
17393     with_gnu_ld=yes
17394     ;;
17395   openbsd*)
17396     with_gnu_ld=no
17397     ;;
17398   esac
17400   ld_shlibs_GCJ=yes
17401   if test "$with_gnu_ld" = yes; then
17402     # If archive_cmds runs LD, not CC, wlarc should be empty
17403     wlarc='${wl}'
17405     # Set some defaults for GNU ld with shared library support. These
17406     # are reset later if shared libraries are not supported. Putting them
17407     # here allows them to be overridden if necessary.
17408     runpath_var=LD_RUN_PATH
17409     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17410     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17411     # ancient GNU ld didn't support --whole-archive et. al.
17412     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17413         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17414       else
17415         whole_archive_flag_spec_GCJ=
17416     fi
17417     supports_anon_versioning=no
17418     case `$LD -v 2>/dev/null` in
17419       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17420       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17421       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17422       *\ 2.11.*) ;; # other 2.11 versions
17423       *) supports_anon_versioning=yes ;;
17424     esac
17426     # See if GNU ld supports shared libraries.
17427     case $host_os in
17428     aix[3-9]*)
17429       # On AIX/PPC, the GNU linker is very broken
17430       if test "$host_cpu" != ia64; then
17431         ld_shlibs_GCJ=no
17432         cat <<EOF 1>&2
17434 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17435 *** to be unable to reliably create shared libraries on AIX.
17436 *** Therefore, libtool is disabling shared libraries support.  If you
17437 *** really care for shared libraries, you may want to modify your PATH
17438 *** so that a non-GNU linker is found, and then restart.
17440 EOF
17441       fi
17442       ;;
17444     amigaos*)
17445       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)'
17446       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17447       hardcode_minus_L_GCJ=yes
17449       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17450       # that the semantics of dynamic libraries on AmigaOS, at least up
17451       # to version 4, is to share data among multiple programs linked
17452       # with the same dynamic library.  Since this doesn't match the
17453       # behavior of shared libraries on other platforms, we can't use
17454       # them.
17455       ld_shlibs_GCJ=no
17456       ;;
17458     beos*)
17459       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17460         allow_undefined_flag_GCJ=unsupported
17461         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17462         # support --undefined.  This deserves some investigation.  FIXME
17463         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17464       else
17465         ld_shlibs_GCJ=no
17466       fi
17467       ;;
17469     cygwin* | mingw* | pw32*)
17470       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17471       # as there is no search path for DLLs.
17472       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17473       allow_undefined_flag_GCJ=unsupported
17474       always_export_symbols_GCJ=no
17475       enable_shared_with_static_runtimes_GCJ=yes
17476       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17478       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17479         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17480         # If the export-symbols file already is a .def file (1st line
17481         # is EXPORTS), use it as is; otherwise, prepend...
17482         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17483           cp $export_symbols $output_objdir/$soname.def;
17484         else
17485           echo EXPORTS > $output_objdir/$soname.def;
17486           cat $export_symbols >> $output_objdir/$soname.def;
17487         fi~
17488         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17489       else
17490         ld_shlibs_GCJ=no
17491       fi
17492       ;;
17494     interix[3-9]*)
17495       hardcode_direct_GCJ=no
17496       hardcode_shlibpath_var_GCJ=no
17497       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17498       export_dynamic_flag_spec_GCJ='${wl}-E'
17499       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17500       # Instead, shared libraries are loaded at an image base (0x10000000 by
17501       # default) and relocated if they conflict, which is a slow very memory
17502       # consuming and fragmenting process.  To avoid this, we pick a random,
17503       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17504       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17505       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'
17506       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'
17507       ;;
17509     gnu* | linux* | k*bsd*-gnu)
17510       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17511         tmp_addflag=
17512         case $cc_basename,$host_cpu in
17513         pgcc*)                          # Portland Group C compiler
17514           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'
17515           tmp_addflag=' $pic_flag'
17516           ;;
17517         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17518           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'
17519           tmp_addflag=' $pic_flag -Mnomain' ;;
17520         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17521           tmp_addflag=' -i_dynamic' ;;
17522         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17523           tmp_addflag=' -i_dynamic -nofor_main' ;;
17524         ifc* | ifort*)                  # Intel Fortran compiler
17525           tmp_addflag=' -nofor_main' ;;
17526         esac
17527         case `$CC -V 2>&1 | sed 5q` in
17528         *Sun\ C*)                       # Sun C 5.9
17529           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'
17530           tmp_sharedflag='-G' ;;
17531         *Sun\ F*)                       # Sun Fortran 8.3
17532           tmp_sharedflag='-G' ;;
17533         *)
17534           tmp_sharedflag='-shared' ;;
17535         esac
17536         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17538         if test $supports_anon_versioning = yes; then
17539           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17540   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17541   $echo "local: *; };" >> $output_objdir/$libname.ver~
17542           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17543         fi
17544         link_all_deplibs_GCJ=no
17545       else
17546         ld_shlibs_GCJ=no
17547       fi
17548       ;;
17550     netbsd* | netbsdelf*-gnu)
17551       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17552         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17553         wlarc=
17554       else
17555         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17556         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17557       fi
17558       ;;
17560     solaris*)
17561       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17562         ld_shlibs_GCJ=no
17563         cat <<EOF 1>&2
17565 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17566 *** create shared libraries on Solaris systems.  Therefore, libtool
17567 *** is disabling shared libraries support.  We urge you to upgrade GNU
17568 *** binutils to release 2.9.1 or newer.  Another option is to modify
17569 *** your PATH or compiler configuration so that the native linker is
17570 *** used, and then restart.
17572 EOF
17573       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17574         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17575         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17576       else
17577         ld_shlibs_GCJ=no
17578       fi
17579       ;;
17581     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17582       case `$LD -v 2>&1` in
17583         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17584         ld_shlibs_GCJ=no
17585         cat <<_LT_EOF 1>&2
17587 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17588 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17589 *** is disabling shared libraries support.  We urge you to upgrade GNU
17590 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17591 *** your PATH or compiler configuration so that the native linker is
17592 *** used, and then restart.
17594 _LT_EOF
17595         ;;
17596         *)
17597           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17598             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17599             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17600             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17601           else
17602             ld_shlibs_GCJ=no
17603           fi
17604         ;;
17605       esac
17606       ;;
17608     sunos4*)
17609       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17610       wlarc=
17611       hardcode_direct_GCJ=yes
17612       hardcode_shlibpath_var_GCJ=no
17613       ;;
17615     *)
17616       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17617         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17618         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17619       else
17620         ld_shlibs_GCJ=no
17621       fi
17622       ;;
17623     esac
17625     if test "$ld_shlibs_GCJ" = no; then
17626       runpath_var=
17627       hardcode_libdir_flag_spec_GCJ=
17628       export_dynamic_flag_spec_GCJ=
17629       whole_archive_flag_spec_GCJ=
17630     fi
17631   else
17632     # PORTME fill in a description of your system's linker (not GNU ld)
17633     case $host_os in
17634     aix3*)
17635       allow_undefined_flag_GCJ=unsupported
17636       always_export_symbols_GCJ=yes
17637       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'
17638       # Note: this linker hardcodes the directories in LIBPATH if there
17639       # are no directories specified by -L.
17640       hardcode_minus_L_GCJ=yes
17641       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17642         # Neither direct hardcoding nor static linking is supported with a
17643         # broken collect2.
17644         hardcode_direct_GCJ=unsupported
17645       fi
17646       ;;
17648     aix[4-9]*)
17649       if test "$host_cpu" = ia64; then
17650         # On IA64, the linker does run time linking by default, so we don't
17651         # have to do anything special.
17652         aix_use_runtimelinking=no
17653         exp_sym_flag='-Bexport'
17654         no_entry_flag=""
17655       else
17656         # If we're using GNU nm, then we don't want the "-C" option.
17657         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17658         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17659           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'
17660         else
17661           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'
17662         fi
17663         aix_use_runtimelinking=no
17665         # Test if we are trying to use run time linking or normal
17666         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17667         # need to do runtime linking.
17668         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17669           for ld_flag in $LDFLAGS; do
17670           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17671             aix_use_runtimelinking=yes
17672             break
17673           fi
17674           done
17675           ;;
17676         esac
17678         exp_sym_flag='-bexport'
17679         no_entry_flag='-bnoentry'
17680       fi
17682       # When large executables or shared objects are built, AIX ld can
17683       # have problems creating the table of contents.  If linking a library
17684       # or program results in "error TOC overflow" add -mminimal-toc to
17685       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17686       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17688       archive_cmds_GCJ=''
17689       hardcode_direct_GCJ=yes
17690       hardcode_libdir_separator_GCJ=':'
17691       link_all_deplibs_GCJ=yes
17693       if test "$GCC" = yes; then
17694         case $host_os in aix4.[012]|aix4.[012].*)
17695         # We only want to do this on AIX 4.2 and lower, the check
17696         # below for broken collect2 doesn't work under 4.3+
17697           collect2name=`${CC} -print-prog-name=collect2`
17698           if test -f "$collect2name" && \
17699            strings "$collect2name" | grep resolve_lib_name >/dev/null
17700           then
17701           # We have reworked collect2
17702           :
17703           else
17704           # We have old collect2
17705           hardcode_direct_GCJ=unsupported
17706           # It fails to find uninstalled libraries when the uninstalled
17707           # path is not listed in the libpath.  Setting hardcode_minus_L
17708           # to unsupported forces relinking
17709           hardcode_minus_L_GCJ=yes
17710           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17711           hardcode_libdir_separator_GCJ=
17712           fi
17713           ;;
17714         esac
17715         shared_flag='-shared'
17716         if test "$aix_use_runtimelinking" = yes; then
17717           shared_flag="$shared_flag "'${wl}-G'
17718         fi
17719       else
17720         # not using gcc
17721         if test "$host_cpu" = ia64; then
17722         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17723         # chokes on -Wl,-G. The following line is correct:
17724           shared_flag='-G'
17725         else
17726           if test "$aix_use_runtimelinking" = yes; then
17727             shared_flag='${wl}-G'
17728           else
17729             shared_flag='${wl}-bM:SRE'
17730           fi
17731         fi
17732       fi
17734       # It seems that -bexpall does not export symbols beginning with
17735       # underscore (_), so it is better to generate a list of symbols to export.
17736       always_export_symbols_GCJ=yes
17737       if test "$aix_use_runtimelinking" = yes; then
17738         # Warning - without using the other runtime loading flags (-brtl),
17739         # -berok will link without error, but may produce a broken library.
17740         allow_undefined_flag_GCJ='-berok'
17741        # Determine the default libpath from the value encoded in an empty executable.
17742        cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h.  */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h.  */
17749 int
17750 main ()
17753   ;
17754   return 0;
17756 _ACEOF
17757 rm -f conftest.$ac_objext conftest$ac_exeext
17758 if { (ac_try="$ac_link"
17759 case "(($ac_try" in
17760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761   *) ac_try_echo=$ac_try;;
17762 esac
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764   (eval "$ac_link") 2>conftest.er1
17765   ac_status=$?
17766   grep -v '^ *+' conftest.er1 >conftest.err
17767   rm -f conftest.er1
17768   cat conftest.err >&5
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); } && {
17771          test -z "$ac_c_werror_flag" ||
17772          test ! -s conftest.err
17773        } && test -s conftest$ac_exeext &&
17774        $as_test_x conftest$ac_exeext; then
17776 lt_aix_libpath_sed='
17777     /Import File Strings/,/^$/ {
17778         /^0/ {
17779             s/^0  *\(.*\)$/\1/
17780             p
17781         }
17782     }'
17783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17784 # Check for a 64-bit object if we didn't find anything.
17785 if test -z "$aix_libpath"; then
17786   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17788 else
17789   echo "$as_me: failed program was:" >&5
17790 sed 's/^/| /' conftest.$ac_ext >&5
17795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17796       conftest$ac_exeext conftest.$ac_ext
17797 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17799        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17800         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"
17801        else
17802         if test "$host_cpu" = ia64; then
17803           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17804           allow_undefined_flag_GCJ="-z nodefs"
17805           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"
17806         else
17807          # Determine the default libpath from the value encoded in an empty executable.
17808          cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h.  */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h.  */
17815 int
17816 main ()
17819   ;
17820   return 0;
17822 _ACEOF
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_link") 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } && {
17837          test -z "$ac_c_werror_flag" ||
17838          test ! -s conftest.err
17839        } && test -s conftest$ac_exeext &&
17840        $as_test_x conftest$ac_exeext; then
17842 lt_aix_libpath_sed='
17843     /Import File Strings/,/^$/ {
17844         /^0/ {
17845             s/^0  *\(.*\)$/\1/
17846             p
17847         }
17848     }'
17849 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17850 # Check for a 64-bit object if we didn't find anything.
17851 if test -z "$aix_libpath"; then
17852   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17854 else
17855   echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17862       conftest$ac_exeext conftest.$ac_ext
17863 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17865          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17866           # Warning - without using the other run time loading flags,
17867           # -berok will link without error, but may produce a broken library.
17868           no_undefined_flag_GCJ=' ${wl}-bernotok'
17869           allow_undefined_flag_GCJ=' ${wl}-berok'
17870           # Exported symbols can be pulled into shared objects from archives
17871           whole_archive_flag_spec_GCJ='$convenience'
17872           archive_cmds_need_lc_GCJ=yes
17873           # This is similar to how AIX traditionally builds its shared libraries.
17874           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'
17875         fi
17876       fi
17877       ;;
17879     amigaos*)
17880       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)'
17881       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17882       hardcode_minus_L_GCJ=yes
17883       # see comment about different semantics on the GNU ld section
17884       ld_shlibs_GCJ=no
17885       ;;
17887     bsdi[45]*)
17888       export_dynamic_flag_spec_GCJ=-rdynamic
17889       ;;
17891     cygwin* | mingw* | pw32*)
17892       # When not using gcc, we currently assume that we are using
17893       # Microsoft Visual C++.
17894       # hardcode_libdir_flag_spec is actually meaningless, as there is
17895       # no search path for DLLs.
17896       hardcode_libdir_flag_spec_GCJ=' '
17897       allow_undefined_flag_GCJ=unsupported
17898       # Tell ltmain to make .lib files, not .a files.
17899       libext=lib
17900       # Tell ltmain to make .dll files, not .so files.
17901       shrext_cmds=".dll"
17902       # FIXME: Setting linknames here is a bad hack.
17903       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17904       # The linker will automatically build a .lib file if we build a DLL.
17905       old_archive_From_new_cmds_GCJ='true'
17906       # FIXME: Should let the user specify the lib program.
17907       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17908       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17909       enable_shared_with_static_runtimes_GCJ=yes
17910       ;;
17912     darwin* | rhapsody*)
17913       case $host_os in
17914         rhapsody* | darwin1.[012])
17915          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17916          ;;
17917        *) # Darwin 1.3 on
17918          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17919            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17920          else
17921            case ${MACOSX_DEPLOYMENT_TARGET} in
17922              10.[012])
17923                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17924                ;;
17925              10.*)
17926                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17927                ;;
17928            esac
17929          fi
17930          ;;
17931       esac
17932       archive_cmds_need_lc_GCJ=no
17933       hardcode_direct_GCJ=no
17934       hardcode_automatic_GCJ=yes
17935       hardcode_shlibpath_var_GCJ=unsupported
17936       whole_archive_flag_spec_GCJ=''
17937       link_all_deplibs_GCJ=yes
17938     if test "$GCC" = yes ; then
17939         output_verbose_link_cmd='echo'
17940         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}"
17941         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17942         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}"
17943         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}"
17944     else
17945       case $cc_basename in
17946         xlc*)
17947          output_verbose_link_cmd='echo'
17948          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17949          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17950           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17951          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}'
17952           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}'
17953           ;;
17954        *)
17955          ld_shlibs_GCJ=no
17956           ;;
17957       esac
17958     fi
17959       ;;
17961     dgux*)
17962       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17963       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17964       hardcode_shlibpath_var_GCJ=no
17965       ;;
17967     freebsd1*)
17968       ld_shlibs_GCJ=no
17969       ;;
17971     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17972     # support.  Future versions do this automatically, but an explicit c++rt0.o
17973     # does not break anything, and helps significantly (at the cost of a little
17974     # extra space).
17975     freebsd2.2*)
17976       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17977       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17978       hardcode_direct_GCJ=yes
17979       hardcode_shlibpath_var_GCJ=no
17980       ;;
17982     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17983     freebsd2*)
17984       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17985       hardcode_direct_GCJ=yes
17986       hardcode_minus_L_GCJ=yes
17987       hardcode_shlibpath_var_GCJ=no
17988       ;;
17990     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17991     freebsd* | dragonfly*)
17992       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17993       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17994       hardcode_direct_GCJ=yes
17995       hardcode_shlibpath_var_GCJ=no
17996       ;;
17998     hpux9*)
17999       if test "$GCC" = yes; then
18000         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'
18001       else
18002         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'
18003       fi
18004       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18005       hardcode_libdir_separator_GCJ=:
18006       hardcode_direct_GCJ=yes
18008       # hardcode_minus_L: Not really in the search PATH,
18009       # but as the default location of the library.
18010       hardcode_minus_L_GCJ=yes
18011       export_dynamic_flag_spec_GCJ='${wl}-E'
18012       ;;
18014     hpux10*)
18015       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18016         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18017       else
18018         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18019       fi
18020       if test "$with_gnu_ld" = no; then
18021         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18022         hardcode_libdir_separator_GCJ=:
18024         hardcode_direct_GCJ=yes
18025         export_dynamic_flag_spec_GCJ='${wl}-E'
18027         # hardcode_minus_L: Not really in the search PATH,
18028         # but as the default location of the library.
18029         hardcode_minus_L_GCJ=yes
18030       fi
18031       ;;
18033     hpux11*)
18034       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18035         case $host_cpu in
18036         hppa*64*)
18037           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18038           ;;
18039         ia64*)
18040           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18041           ;;
18042         *)
18043           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18044           ;;
18045         esac
18046       else
18047         case $host_cpu in
18048         hppa*64*)
18049           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18050           ;;
18051         ia64*)
18052           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18053           ;;
18054         *)
18055           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18056           ;;
18057         esac
18058       fi
18059       if test "$with_gnu_ld" = no; then
18060         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18061         hardcode_libdir_separator_GCJ=:
18063         case $host_cpu in
18064         hppa*64*|ia64*)
18065           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18066           hardcode_direct_GCJ=no
18067           hardcode_shlibpath_var_GCJ=no
18068           ;;
18069         *)
18070           hardcode_direct_GCJ=yes
18071           export_dynamic_flag_spec_GCJ='${wl}-E'
18073           # hardcode_minus_L: Not really in the search PATH,
18074           # but as the default location of the library.
18075           hardcode_minus_L_GCJ=yes
18076           ;;
18077         esac
18078       fi
18079       ;;
18081     irix5* | irix6* | nonstopux*)
18082       if test "$GCC" = yes; then
18083         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'
18084       else
18085         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'
18086         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18087       fi
18088       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18089       hardcode_libdir_separator_GCJ=:
18090       link_all_deplibs_GCJ=yes
18091       ;;
18093     netbsd* | netbsdelf*-gnu)
18094       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18095         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18096       else
18097         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18098       fi
18099       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18100       hardcode_direct_GCJ=yes
18101       hardcode_shlibpath_var_GCJ=no
18102       ;;
18104     newsos6)
18105       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18106       hardcode_direct_GCJ=yes
18107       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18108       hardcode_libdir_separator_GCJ=:
18109       hardcode_shlibpath_var_GCJ=no
18110       ;;
18112     openbsd*)
18113       if test -f /usr/libexec/ld.so; then
18114         hardcode_direct_GCJ=yes
18115         hardcode_shlibpath_var_GCJ=no
18116         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18117           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18118           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18119           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18120           export_dynamic_flag_spec_GCJ='${wl}-E'
18121         else
18122           case $host_os in
18123            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18124              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18125              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18126              ;;
18127            *)
18128              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18129              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18130              ;;
18131           esac
18132         fi
18133       else
18134         ld_shlibs_GCJ=no
18135       fi
18136       ;;
18138     os2*)
18139       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18140       hardcode_minus_L_GCJ=yes
18141       allow_undefined_flag_GCJ=unsupported
18142       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'
18143       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18144       ;;
18146     osf3*)
18147       if test "$GCC" = yes; then
18148         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18149         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'
18150       else
18151         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18152         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'
18153       fi
18154       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18155       hardcode_libdir_separator_GCJ=:
18156       ;;
18158     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18159       if test "$GCC" = yes; then
18160         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18161         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'
18162         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18163       else
18164         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18165         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'
18166         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~
18167         $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'
18169         # Both c and cxx compiler support -rpath directly
18170         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18171       fi
18172       hardcode_libdir_separator_GCJ=:
18173       ;;
18175     solaris*)
18176       no_undefined_flag_GCJ=' -z text'
18177       if test "$GCC" = yes; then
18178         wlarc='${wl}'
18179         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18180         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18181           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18182       else
18183         wlarc=''
18184         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18185         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18186         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18187       fi
18188       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18189       hardcode_shlibpath_var_GCJ=no
18190       case $host_os in
18191       solaris2.[0-5] | solaris2.[0-5].*) ;;
18192       *)
18193         # The compiler driver will combine and reorder linker options,
18194         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18195         # but is careful enough not to reorder.
18196         # Supported since Solaris 2.6 (maybe 2.5.1?)
18197         if test "$GCC" = yes; then
18198           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18199         else
18200           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18201         fi
18202         ;;
18203       esac
18204       link_all_deplibs_GCJ=yes
18205       ;;
18207     sunos4*)
18208       if test "x$host_vendor" = xsequent; then
18209         # Use $CC to link under sequent, because it throws in some extra .o
18210         # files that make .init and .fini sections work.
18211         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18212       else
18213         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18214       fi
18215       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18216       hardcode_direct_GCJ=yes
18217       hardcode_minus_L_GCJ=yes
18218       hardcode_shlibpath_var_GCJ=no
18219       ;;
18221     sysv4)
18222       case $host_vendor in
18223         sni)
18224           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18225           hardcode_direct_GCJ=yes # is this really true???
18226         ;;
18227         siemens)
18228           ## LD is ld it makes a PLAMLIB
18229           ## CC just makes a GrossModule.
18230           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18231           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18232           hardcode_direct_GCJ=no
18233         ;;
18234         motorola)
18235           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18236           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18237         ;;
18238       esac
18239       runpath_var='LD_RUN_PATH'
18240       hardcode_shlibpath_var_GCJ=no
18241       ;;
18243     sysv4.3*)
18244       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18245       hardcode_shlibpath_var_GCJ=no
18246       export_dynamic_flag_spec_GCJ='-Bexport'
18247       ;;
18249     sysv4*MP*)
18250       if test -d /usr/nec; then
18251         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18252         hardcode_shlibpath_var_GCJ=no
18253         runpath_var=LD_RUN_PATH
18254         hardcode_runpath_var=yes
18255         ld_shlibs_GCJ=yes
18256       fi
18257       ;;
18259     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18260       no_undefined_flag_GCJ='${wl}-z,text'
18261       archive_cmds_need_lc_GCJ=no
18262       hardcode_shlibpath_var_GCJ=no
18263       runpath_var='LD_RUN_PATH'
18265       if test "$GCC" = yes; then
18266         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18267         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18268       else
18269         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18270         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18271       fi
18272       ;;
18274     sysv5* | sco3.2v5* | sco5v6*)
18275       # Note: We can NOT use -z defs as we might desire, because we do not
18276       # link with -lc, and that would cause any symbols used from libc to
18277       # always be unresolved, which means just about no library would
18278       # ever link correctly.  If we're not using GNU ld we use -z text
18279       # though, which does catch some bad symbols but isn't as heavy-handed
18280       # as -z defs.
18281       no_undefined_flag_GCJ='${wl}-z,text'
18282       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18283       archive_cmds_need_lc_GCJ=no
18284       hardcode_shlibpath_var_GCJ=no
18285       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18286       hardcode_libdir_separator_GCJ=':'
18287       link_all_deplibs_GCJ=yes
18288       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18289       runpath_var='LD_RUN_PATH'
18291       if test "$GCC" = yes; then
18292         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18293         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18294       else
18295         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18296         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18297       fi
18298       ;;
18300     uts4*)
18301       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18302       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18303       hardcode_shlibpath_var_GCJ=no
18304       ;;
18306     *)
18307       ld_shlibs_GCJ=no
18308       ;;
18309     esac
18310   fi
18312 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18313 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18314 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18317 # Do we need to explicitly link libc?
18319 case "x$archive_cmds_need_lc_GCJ" in
18320 x|xyes)
18321   # Assume -lc should be added
18322   archive_cmds_need_lc_GCJ=yes
18324   if test "$enable_shared" = yes && test "$GCC" = yes; then
18325     case $archive_cmds_GCJ in
18326     *'~'*)
18327       # FIXME: we may have to deal with multi-command sequences.
18328       ;;
18329     '$CC '*)
18330       # Test whether the compiler implicitly links with -lc since on some
18331       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18332       # to ld, don't add -lc before -lgcc.
18333       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18334 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18335       $rm conftest*
18336       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18338       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18339   (eval $ac_compile) 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); } 2>conftest.err; then
18343         soname=conftest
18344         lib=conftest
18345         libobjs=conftest.$ac_objext
18346         deplibs=
18347         wl=$lt_prog_compiler_wl_GCJ
18348         pic_flag=$lt_prog_compiler_pic_GCJ
18349         compiler_flags=-v
18350         linker_flags=-v
18351         verstring=
18352         output_objdir=.
18353         libname=conftest
18354         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18355         allow_undefined_flag_GCJ=
18356         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18357   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); }
18361         then
18362           archive_cmds_need_lc_GCJ=no
18363         else
18364           archive_cmds_need_lc_GCJ=yes
18365         fi
18366         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18367       else
18368         cat conftest.err 1>&5
18369       fi
18370       $rm conftest*
18371       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18372 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18373       ;;
18374     esac
18375   fi
18376   ;;
18377 esac
18379 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18380 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18381 library_names_spec=
18382 libname_spec='lib$name'
18383 soname_spec=
18384 shrext_cmds=".so"
18385 postinstall_cmds=
18386 postuninstall_cmds=
18387 finish_cmds=
18388 finish_eval=
18389 shlibpath_var=
18390 shlibpath_overrides_runpath=unknown
18391 version_type=none
18392 dynamic_linker="$host_os ld.so"
18393 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18395 need_lib_prefix=unknown
18396 hardcode_into_libs=no
18398 # when you set need_version to no, make sure it does not cause -set_version
18399 # flags to be left without arguments
18400 need_version=unknown
18402 case $host_os in
18403 aix3*)
18404   version_type=linux
18405   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18406   shlibpath_var=LIBPATH
18408   # AIX 3 has no versioning support, so we append a major version to the name.
18409   soname_spec='${libname}${release}${shared_ext}$major'
18410   ;;
18412 aix[4-9]*)
18413   version_type=linux
18414   need_lib_prefix=no
18415   need_version=no
18416   hardcode_into_libs=yes
18417   if test "$host_cpu" = ia64; then
18418     # AIX 5 supports IA64
18419     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18420     shlibpath_var=LD_LIBRARY_PATH
18421   else
18422     # With GCC up to 2.95.x, collect2 would create an import file
18423     # for dependence libraries.  The import file would start with
18424     # the line `#! .'.  This would cause the generated library to
18425     # depend on `.', always an invalid library.  This was fixed in
18426     # development snapshots of GCC prior to 3.0.
18427     case $host_os in
18428       aix4 | aix4.[01] | aix4.[01].*)
18429       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18430            echo ' yes '
18431            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18432         :
18433       else
18434         can_build_shared=no
18435       fi
18436       ;;
18437     esac
18438     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18439     # soname into executable. Probably we can add versioning support to
18440     # collect2, so additional links can be useful in future.
18441     if test "$aix_use_runtimelinking" = yes; then
18442       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18443       # instead of lib<name>.a to let people know that these are not
18444       # typical AIX shared libraries.
18445       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18446     else
18447       # We preserve .a as extension for shared libraries through AIX4.2
18448       # and later when we are not doing run time linking.
18449       library_names_spec='${libname}${release}.a $libname.a'
18450       soname_spec='${libname}${release}${shared_ext}$major'
18451     fi
18452     shlibpath_var=LIBPATH
18453   fi
18454   ;;
18456 amigaos*)
18457   library_names_spec='$libname.ixlibrary $libname.a'
18458   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18459   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'
18460   ;;
18462 beos*)
18463   library_names_spec='${libname}${shared_ext}'
18464   dynamic_linker="$host_os ld.so"
18465   shlibpath_var=LIBRARY_PATH
18466   ;;
18468 bsdi[45]*)
18469   version_type=linux
18470   need_version=no
18471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18472   soname_spec='${libname}${release}${shared_ext}$major'
18473   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18474   shlibpath_var=LD_LIBRARY_PATH
18475   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18476   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18477   # the default ld.so.conf also contains /usr/contrib/lib and
18478   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18479   # libtool to hard-code these into programs
18480   ;;
18482 cygwin* | mingw* | pw32*)
18483   version_type=windows
18484   shrext_cmds=".dll"
18485   need_version=no
18486   need_lib_prefix=no
18488   case $GCC,$host_os in
18489   yes,cygwin* | yes,mingw* | yes,pw32*)
18490     library_names_spec='$libname.dll.a'
18491     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18492     postinstall_cmds='base_file=`basename \${file}`~
18493       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18494       dldir=$destdir/`dirname \$dlpath`~
18495       test -d \$dldir || mkdir -p \$dldir~
18496       $install_prog $dir/$dlname \$dldir/$dlname~
18497       chmod a+x \$dldir/$dlname'
18498     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18499       dlpath=$dir/\$dldll~
18500        $rm \$dlpath'
18501     shlibpath_overrides_runpath=yes
18503     case $host_os in
18504     cygwin*)
18505       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18506       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18507       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18508       ;;
18509     mingw*)
18510       # MinGW DLLs use traditional 'lib' prefix
18511       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18512       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18513       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18514         # It is most probably a Windows format PATH printed by
18515         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18516         # path with ; separators, and with drive letters. We can handle the
18517         # drive letters (cygwin fileutils understands them), so leave them,
18518         # especially as we might pass files found there to a mingw objdump,
18519         # which wouldn't understand a cygwinified path. Ahh.
18520         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18521       else
18522         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18523       fi
18524       ;;
18525     pw32*)
18526       # pw32 DLLs use 'pw' prefix rather than 'lib'
18527       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18528       ;;
18529     esac
18530     ;;
18532   *)
18533     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18534     ;;
18535   esac
18536   dynamic_linker='Win32 ld.exe'
18537   # FIXME: first we should search . and the directory the executable is in
18538   shlibpath_var=PATH
18539   ;;
18541 darwin* | rhapsody*)
18542   dynamic_linker="$host_os dyld"
18543   version_type=darwin
18544   need_lib_prefix=no
18545   need_version=no
18546   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18547   soname_spec='${libname}${release}${major}$shared_ext'
18548   shlibpath_overrides_runpath=yes
18549   shlibpath_var=DYLD_LIBRARY_PATH
18550   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18552   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18553   ;;
18555 dgux*)
18556   version_type=linux
18557   need_lib_prefix=no
18558   need_version=no
18559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18560   soname_spec='${libname}${release}${shared_ext}$major'
18561   shlibpath_var=LD_LIBRARY_PATH
18562   ;;
18564 freebsd1*)
18565   dynamic_linker=no
18566   ;;
18568 freebsd* | dragonfly*)
18569   # DragonFly does not have aout.  When/if they implement a new
18570   # versioning mechanism, adjust this.
18571   if test -x /usr/bin/objformat; then
18572     objformat=`/usr/bin/objformat`
18573   else
18574     case $host_os in
18575     freebsd[123]*) objformat=aout ;;
18576     *) objformat=elf ;;
18577     esac
18578   fi
18579   version_type=freebsd-$objformat
18580   case $version_type in
18581     freebsd-elf*)
18582       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18583       need_version=no
18584       need_lib_prefix=no
18585       ;;
18586     freebsd-*)
18587       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18588       need_version=yes
18589       ;;
18590   esac
18591   shlibpath_var=LD_LIBRARY_PATH
18592   case $host_os in
18593   freebsd2*)
18594     shlibpath_overrides_runpath=yes
18595     ;;
18596   freebsd3.[01]* | freebsdelf3.[01]*)
18597     shlibpath_overrides_runpath=yes
18598     hardcode_into_libs=yes
18599     ;;
18600   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18601   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18602     shlibpath_overrides_runpath=no
18603     hardcode_into_libs=yes
18604     ;;
18605   *) # from 4.6 on, and DragonFly
18606     shlibpath_overrides_runpath=yes
18607     hardcode_into_libs=yes
18608     ;;
18609   esac
18610   ;;
18612 gnu*)
18613   version_type=linux
18614   need_lib_prefix=no
18615   need_version=no
18616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18617   soname_spec='${libname}${release}${shared_ext}$major'
18618   shlibpath_var=LD_LIBRARY_PATH
18619   hardcode_into_libs=yes
18620   ;;
18622 hpux9* | hpux10* | hpux11*)
18623   # Give a soname corresponding to the major version so that dld.sl refuses to
18624   # link against other versions.
18625   version_type=sunos
18626   need_lib_prefix=no
18627   need_version=no
18628   case $host_cpu in
18629   ia64*)
18630     shrext_cmds='.so'
18631     hardcode_into_libs=yes
18632     dynamic_linker="$host_os dld.so"
18633     shlibpath_var=LD_LIBRARY_PATH
18634     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18635     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18636     soname_spec='${libname}${release}${shared_ext}$major'
18637     if test "X$HPUX_IA64_MODE" = X32; then
18638       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18639     else
18640       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18641     fi
18642     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18643     ;;
18644    hppa*64*)
18645      shrext_cmds='.sl'
18646      hardcode_into_libs=yes
18647      dynamic_linker="$host_os dld.sl"
18648      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18649      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18650      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18651      soname_spec='${libname}${release}${shared_ext}$major'
18652      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18653      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18654      ;;
18655    *)
18656     shrext_cmds='.sl'
18657     dynamic_linker="$host_os dld.sl"
18658     shlibpath_var=SHLIB_PATH
18659     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18660     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18661     soname_spec='${libname}${release}${shared_ext}$major'
18662     ;;
18663   esac
18664   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18665   postinstall_cmds='chmod 555 $lib'
18666   ;;
18668 interix[3-9]*)
18669   version_type=linux
18670   need_lib_prefix=no
18671   need_version=no
18672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18673   soname_spec='${libname}${release}${shared_ext}$major'
18674   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18675   shlibpath_var=LD_LIBRARY_PATH
18676   shlibpath_overrides_runpath=no
18677   hardcode_into_libs=yes
18678   ;;
18680 irix5* | irix6* | nonstopux*)
18681   case $host_os in
18682     nonstopux*) version_type=nonstopux ;;
18683     *)
18684         if test "$lt_cv_prog_gnu_ld" = yes; then
18685                 version_type=linux
18686         else
18687                 version_type=irix
18688         fi ;;
18689   esac
18690   need_lib_prefix=no
18691   need_version=no
18692   soname_spec='${libname}${release}${shared_ext}$major'
18693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18694   case $host_os in
18695   irix5* | nonstopux*)
18696     libsuff= shlibsuff=
18697     ;;
18698   *)
18699     case $LD in # libtool.m4 will add one of these switches to LD
18700     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18701       libsuff= shlibsuff= libmagic=32-bit;;
18702     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18703       libsuff=32 shlibsuff=N32 libmagic=N32;;
18704     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18705       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18706     *) libsuff= shlibsuff= libmagic=never-match;;
18707     esac
18708     ;;
18709   esac
18710   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18711   shlibpath_overrides_runpath=no
18712   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18713   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18714   hardcode_into_libs=yes
18715   ;;
18717 # No shared lib support for Linux oldld, aout, or coff.
18718 linux*oldld* | linux*aout* | linux*coff*)
18719   dynamic_linker=no
18720   ;;
18722 # This must be Linux ELF.
18723 linux* | k*bsd*-gnu)
18724   version_type=linux
18725   need_lib_prefix=no
18726   need_version=no
18727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18728   soname_spec='${libname}${release}${shared_ext}$major'
18729   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18730   shlibpath_var=LD_LIBRARY_PATH
18731   shlibpath_overrides_runpath=no
18732   # This implies no fast_install, which is unacceptable.
18733   # Some rework will be needed to allow for fast_install
18734   # before this can be enabled.
18735   hardcode_into_libs=yes
18737   # Append ld.so.conf contents to the search path
18738   if test -f /etc/ld.so.conf; then
18739     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' ' '`
18740     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18741   fi
18743   # We used to test for /lib/ld.so.1 and disable shared libraries on
18744   # powerpc, because MkLinux only supported shared libraries with the
18745   # GNU dynamic linker.  Since this was broken with cross compilers,
18746   # most powerpc-linux boxes support dynamic linking these days and
18747   # people can always --disable-shared, the test was removed, and we
18748   # assume the GNU/Linux dynamic linker is in use.
18749   dynamic_linker='GNU/Linux ld.so'
18750   ;;
18752 netbsdelf*-gnu)
18753   version_type=linux
18754   need_lib_prefix=no
18755   need_version=no
18756   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18757   soname_spec='${libname}${release}${shared_ext}$major'
18758   shlibpath_var=LD_LIBRARY_PATH
18759   shlibpath_overrides_runpath=no
18760   hardcode_into_libs=yes
18761   dynamic_linker='NetBSD ld.elf_so'
18762   ;;
18764 netbsd*)
18765   version_type=sunos
18766   need_lib_prefix=no
18767   need_version=no
18768   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18769     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18770     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18771     dynamic_linker='NetBSD (a.out) ld.so'
18772   else
18773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18774     soname_spec='${libname}${release}${shared_ext}$major'
18775     dynamic_linker='NetBSD ld.elf_so'
18776   fi
18777   shlibpath_var=LD_LIBRARY_PATH
18778   shlibpath_overrides_runpath=yes
18779   hardcode_into_libs=yes
18780   ;;
18782 newsos6)
18783   version_type=linux
18784   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785   shlibpath_var=LD_LIBRARY_PATH
18786   shlibpath_overrides_runpath=yes
18787   ;;
18789 nto-qnx*)
18790   version_type=linux
18791   need_lib_prefix=no
18792   need_version=no
18793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18794   soname_spec='${libname}${release}${shared_ext}$major'
18795   shlibpath_var=LD_LIBRARY_PATH
18796   shlibpath_overrides_runpath=yes
18797   ;;
18799 openbsd*)
18800   version_type=sunos
18801   sys_lib_dlsearch_path_spec="/usr/lib"
18802   need_lib_prefix=no
18803   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18804   case $host_os in
18805     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18806     *)                         need_version=no  ;;
18807   esac
18808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18809   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18810   shlibpath_var=LD_LIBRARY_PATH
18811   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18812     case $host_os in
18813       openbsd2.[89] | openbsd2.[89].*)
18814         shlibpath_overrides_runpath=no
18815         ;;
18816       *)
18817         shlibpath_overrides_runpath=yes
18818         ;;
18819       esac
18820   else
18821     shlibpath_overrides_runpath=yes
18822   fi
18823   ;;
18825 os2*)
18826   libname_spec='$name'
18827   shrext_cmds=".dll"
18828   need_lib_prefix=no
18829   library_names_spec='$libname${shared_ext} $libname.a'
18830   dynamic_linker='OS/2 ld.exe'
18831   shlibpath_var=LIBPATH
18832   ;;
18834 osf3* | osf4* | osf5*)
18835   version_type=osf
18836   need_lib_prefix=no
18837   need_version=no
18838   soname_spec='${libname}${release}${shared_ext}$major'
18839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18840   shlibpath_var=LD_LIBRARY_PATH
18841   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18842   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18843   ;;
18845 rdos*)
18846   dynamic_linker=no
18847   ;;
18849 solaris*)
18850   version_type=linux
18851   need_lib_prefix=no
18852   need_version=no
18853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18854   soname_spec='${libname}${release}${shared_ext}$major'
18855   shlibpath_var=LD_LIBRARY_PATH
18856   shlibpath_overrides_runpath=yes
18857   hardcode_into_libs=yes
18858   # ldd complains unless libraries are executable
18859   postinstall_cmds='chmod +x $lib'
18860   ;;
18862 sunos4*)
18863   version_type=sunos
18864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18865   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18866   shlibpath_var=LD_LIBRARY_PATH
18867   shlibpath_overrides_runpath=yes
18868   if test "$with_gnu_ld" = yes; then
18869     need_lib_prefix=no
18870   fi
18871   need_version=yes
18872   ;;
18874 sysv4 | sysv4.3*)
18875   version_type=linux
18876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18877   soname_spec='${libname}${release}${shared_ext}$major'
18878   shlibpath_var=LD_LIBRARY_PATH
18879   case $host_vendor in
18880     sni)
18881       shlibpath_overrides_runpath=no
18882       need_lib_prefix=no
18883       export_dynamic_flag_spec='${wl}-Blargedynsym'
18884       runpath_var=LD_RUN_PATH
18885       ;;
18886     siemens)
18887       need_lib_prefix=no
18888       ;;
18889     motorola)
18890       need_lib_prefix=no
18891       need_version=no
18892       shlibpath_overrides_runpath=no
18893       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18894       ;;
18895   esac
18896   ;;
18898 sysv4*MP*)
18899   if test -d /usr/nec ;then
18900     version_type=linux
18901     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18902     soname_spec='$libname${shared_ext}.$major'
18903     shlibpath_var=LD_LIBRARY_PATH
18904   fi
18905   ;;
18907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18908   version_type=freebsd-elf
18909   need_lib_prefix=no
18910   need_version=no
18911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18912   soname_spec='${libname}${release}${shared_ext}$major'
18913   shlibpath_var=LD_LIBRARY_PATH
18914   hardcode_into_libs=yes
18915   if test "$with_gnu_ld" = yes; then
18916     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18917     shlibpath_overrides_runpath=no
18918   else
18919     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18920     shlibpath_overrides_runpath=yes
18921     case $host_os in
18922       sco3.2v5*)
18923         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18924         ;;
18925     esac
18926   fi
18927   sys_lib_dlsearch_path_spec='/usr/lib'
18928   ;;
18930 uts4*)
18931   version_type=linux
18932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933   soname_spec='${libname}${release}${shared_ext}$major'
18934   shlibpath_var=LD_LIBRARY_PATH
18935   ;;
18938   dynamic_linker=no
18939   ;;
18940 esac
18941 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18942 echo "${ECHO_T}$dynamic_linker" >&6; }
18943 test "$dynamic_linker" = no && can_build_shared=no
18945 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18946   echo $ECHO_N "(cached) $ECHO_C" >&6
18947 else
18948   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18951 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18952 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18958 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18960 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18961 if test "$GCC" = yes; then
18962   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18965 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18966 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18967 hardcode_action_GCJ=
18968 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18969    test -n "$runpath_var_GCJ" || \
18970    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18972   # We can hardcode non-existant directories.
18973   if test "$hardcode_direct_GCJ" != no &&
18974      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18975      # have to relink, otherwise we might link with an installed library
18976      # when we should be linking with a yet-to-be-installed one
18977      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18978      test "$hardcode_minus_L_GCJ" != no; then
18979     # Linking always hardcodes the temporary library directory.
18980     hardcode_action_GCJ=relink
18981   else
18982     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18983     hardcode_action_GCJ=immediate
18984   fi
18985 else
18986   # We cannot hardcode anything, or else we can only hardcode existing
18987   # directories.
18988   hardcode_action_GCJ=unsupported
18990 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18991 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18993 if test "$hardcode_action_GCJ" = relink; then
18994   # Fast installation is not supported
18995   enable_fast_install=no
18996 elif test "$shlibpath_overrides_runpath" = yes ||
18997      test "$enable_shared" = no; then
18998   # Fast installation is not necessary
18999   enable_fast_install=needless
19003 # The else clause should only fire when bootstrapping the
19004 # libtool distribution, otherwise you forgot to ship ltmain.sh
19005 # with your package, and you will get complaints that there are
19006 # no rules to generate ltmain.sh.
19007 if test -f "$ltmain"; then
19008   # See if we are running on zsh, and set the options which allow our commands through
19009   # without removal of \ escapes.
19010   if test -n "${ZSH_VERSION+set}" ; then
19011     setopt NO_GLOB_SUBST
19012   fi
19013   # Now quote all the things that may contain metacharacters while being
19014   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19015   # variables and quote the copies for generation of the libtool script.
19016   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19017     SED SHELL STRIP \
19018     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19019     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19020     deplibs_check_method reload_flag reload_cmds need_locks \
19021     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19022     lt_cv_sys_global_symbol_to_c_name_address \
19023     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19024     old_postinstall_cmds old_postuninstall_cmds \
19025     compiler_GCJ \
19026     CC_GCJ \
19027     LD_GCJ \
19028     lt_prog_compiler_wl_GCJ \
19029     lt_prog_compiler_pic_GCJ \
19030     lt_prog_compiler_static_GCJ \
19031     lt_prog_compiler_no_builtin_flag_GCJ \
19032     export_dynamic_flag_spec_GCJ \
19033     thread_safe_flag_spec_GCJ \
19034     whole_archive_flag_spec_GCJ \
19035     enable_shared_with_static_runtimes_GCJ \
19036     old_archive_cmds_GCJ \
19037     old_archive_from_new_cmds_GCJ \
19038     predep_objects_GCJ \
19039     postdep_objects_GCJ \
19040     predeps_GCJ \
19041     postdeps_GCJ \
19042     compiler_lib_search_path_GCJ \
19043     compiler_lib_search_dirs_GCJ \
19044     archive_cmds_GCJ \
19045     archive_expsym_cmds_GCJ \
19046     postinstall_cmds_GCJ \
19047     postuninstall_cmds_GCJ \
19048     old_archive_from_expsyms_cmds_GCJ \
19049     allow_undefined_flag_GCJ \
19050     no_undefined_flag_GCJ \
19051     export_symbols_cmds_GCJ \
19052     hardcode_libdir_flag_spec_GCJ \
19053     hardcode_libdir_flag_spec_ld_GCJ \
19054     hardcode_libdir_separator_GCJ \
19055     hardcode_automatic_GCJ \
19056     module_cmds_GCJ \
19057     module_expsym_cmds_GCJ \
19058     lt_cv_prog_compiler_c_o_GCJ \
19059     fix_srcfile_path_GCJ \
19060     exclude_expsyms_GCJ \
19061     include_expsyms_GCJ; do
19063     case $var in
19064     old_archive_cmds_GCJ | \
19065     old_archive_from_new_cmds_GCJ | \
19066     archive_cmds_GCJ | \
19067     archive_expsym_cmds_GCJ | \
19068     module_cmds_GCJ | \
19069     module_expsym_cmds_GCJ | \
19070     old_archive_from_expsyms_cmds_GCJ | \
19071     export_symbols_cmds_GCJ | \
19072     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19073     postinstall_cmds | postuninstall_cmds | \
19074     old_postinstall_cmds | old_postuninstall_cmds | \
19075     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19076       # Double-quote double-evaled strings.
19077       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19078       ;;
19079     *)
19080       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19081       ;;
19082     esac
19083   done
19085   case $lt_echo in
19086   *'\$0 --fallback-echo"')
19087     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19088     ;;
19089   esac
19091 cfgfile="$ofile"
19093   cat <<__EOF__ >> "$cfgfile"
19094 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19096 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19098 # Shell to use when invoking shell scripts.
19099 SHELL=$lt_SHELL
19101 # Whether or not to build shared libraries.
19102 build_libtool_libs=$enable_shared
19104 # Whether or not to build static libraries.
19105 build_old_libs=$enable_static
19107 # Whether or not to add -lc for building shared libraries.
19108 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19110 # Whether or not to disallow shared libs when runtime libs are static
19111 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19113 # Whether or not to optimize for fast installation.
19114 fast_install=$enable_fast_install
19116 # The host system.
19117 host_alias=$host_alias
19118 host=$host
19119 host_os=$host_os
19121 # The build system.
19122 build_alias=$build_alias
19123 build=$build
19124 build_os=$build_os
19126 # An echo program that does not interpret backslashes.
19127 echo=$lt_echo
19129 # The archiver.
19130 AR=$lt_AR
19131 AR_FLAGS=$lt_AR_FLAGS
19133 # A C compiler.
19134 LTCC=$lt_LTCC
19136 # LTCC compiler flags.
19137 LTCFLAGS=$lt_LTCFLAGS
19139 # A language-specific compiler.
19140 CC=$lt_compiler_GCJ
19142 # Is the compiler the GNU C compiler?
19143 with_gcc=$GCC_GCJ
19145 # An ERE matcher.
19146 EGREP=$lt_EGREP
19148 # The linker used to build libraries.
19149 LD=$lt_LD_GCJ
19151 # Whether we need hard or soft links.
19152 LN_S=$lt_LN_S
19154 # A BSD-compatible nm program.
19155 NM=$lt_NM
19157 # A symbol stripping program
19158 STRIP=$lt_STRIP
19160 # Used to examine libraries when file_magic_cmd begins "file"
19161 MAGIC_CMD=$MAGIC_CMD
19163 # Used on cygwin: DLL creation program.
19164 DLLTOOL="$DLLTOOL"
19166 # Used on cygwin: object dumper.
19167 OBJDUMP="$OBJDUMP"
19169 # Used on cygwin: assembler.
19170 AS="$AS"
19172 # The name of the directory that contains temporary libtool files.
19173 objdir=$objdir
19175 # How to create reloadable object files.
19176 reload_flag=$lt_reload_flag
19177 reload_cmds=$lt_reload_cmds
19179 # How to pass a linker flag through the compiler.
19180 wl=$lt_lt_prog_compiler_wl_GCJ
19182 # Object file suffix (normally "o").
19183 objext="$ac_objext"
19185 # Old archive suffix (normally "a").
19186 libext="$libext"
19188 # Shared library suffix (normally ".so").
19189 shrext_cmds='$shrext_cmds'
19191 # Executable file suffix (normally "").
19192 exeext="$exeext"
19194 # Additional compiler flags for building library objects.
19195 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19196 pic_mode=$pic_mode
19198 # What is the maximum length of a command?
19199 max_cmd_len=$lt_cv_sys_max_cmd_len
19201 # Does compiler simultaneously support -c and -o options?
19202 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19204 # Must we lock files when doing compilation?
19205 need_locks=$lt_need_locks
19207 # Do we need the lib prefix for modules?
19208 need_lib_prefix=$need_lib_prefix
19210 # Do we need a version for libraries?
19211 need_version=$need_version
19213 # Whether dlopen is supported.
19214 dlopen_support=$enable_dlopen
19216 # Whether dlopen of programs is supported.
19217 dlopen_self=$enable_dlopen_self
19219 # Whether dlopen of statically linked programs is supported.
19220 dlopen_self_static=$enable_dlopen_self_static
19222 # Compiler flag to prevent dynamic linking.
19223 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19225 # Compiler flag to turn off builtin functions.
19226 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19228 # Compiler flag to allow reflexive dlopens.
19229 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19231 # Compiler flag to generate shared objects directly from archives.
19232 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19234 # Compiler flag to generate thread-safe objects.
19235 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19237 # Library versioning type.
19238 version_type=$version_type
19240 # Format of library name prefix.
19241 libname_spec=$lt_libname_spec
19243 # List of archive names.  First name is the real one, the rest are links.
19244 # The last name is the one that the linker finds with -lNAME.
19245 library_names_spec=$lt_library_names_spec
19247 # The coded name of the library, if different from the real name.
19248 soname_spec=$lt_soname_spec
19250 # Commands used to build and install an old-style archive.
19251 RANLIB=$lt_RANLIB
19252 old_archive_cmds=$lt_old_archive_cmds_GCJ
19253 old_postinstall_cmds=$lt_old_postinstall_cmds
19254 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19256 # Create an old-style archive from a shared archive.
19257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19259 # Create a temporary old-style archive to link instead of a shared archive.
19260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19262 # Commands used to build and install a shared archive.
19263 archive_cmds=$lt_archive_cmds_GCJ
19264 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19265 postinstall_cmds=$lt_postinstall_cmds
19266 postuninstall_cmds=$lt_postuninstall_cmds
19268 # Commands used to build a loadable module (assumed same as above if empty)
19269 module_cmds=$lt_module_cmds_GCJ
19270 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19272 # Commands to strip libraries.
19273 old_striplib=$lt_old_striplib
19274 striplib=$lt_striplib
19276 # Dependencies to place before the objects being linked to create a
19277 # shared library.
19278 predep_objects=$lt_predep_objects_GCJ
19280 # Dependencies to place after the objects being linked to create a
19281 # shared library.
19282 postdep_objects=$lt_postdep_objects_GCJ
19284 # Dependencies to place before the objects being linked to create a
19285 # shared library.
19286 predeps=$lt_predeps_GCJ
19288 # Dependencies to place after the objects being linked to create a
19289 # shared library.
19290 postdeps=$lt_postdeps_GCJ
19292 # The directories searched by this compiler when creating a shared
19293 # library
19294 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19296 # The library search path used internally by the compiler when linking
19297 # a shared library.
19298 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19300 # Method to check whether dependent libraries are shared objects.
19301 deplibs_check_method=$lt_deplibs_check_method
19303 # Command to use when deplibs_check_method == file_magic.
19304 file_magic_cmd=$lt_file_magic_cmd
19306 # Flag that allows shared libraries with undefined symbols to be built.
19307 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19309 # Flag that forces no undefined symbols.
19310 no_undefined_flag=$lt_no_undefined_flag_GCJ
19312 # Commands used to finish a libtool library installation in a directory.
19313 finish_cmds=$lt_finish_cmds
19315 # Same as above, but a single script fragment to be evaled but not shown.
19316 finish_eval=$lt_finish_eval
19318 # Take the output of nm and produce a listing of raw symbols and C names.
19319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19321 # Transform the output of nm in a proper C declaration
19322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19324 # Transform the output of nm in a C name address pair
19325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19327 # This is the shared library runtime path variable.
19328 runpath_var=$runpath_var
19330 # This is the shared library path variable.
19331 shlibpath_var=$shlibpath_var
19333 # Is shlibpath searched before the hard-coded library search path?
19334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19336 # How to hardcode a shared library path into an executable.
19337 hardcode_action=$hardcode_action_GCJ
19339 # Whether we should hardcode library paths into libraries.
19340 hardcode_into_libs=$hardcode_into_libs
19342 # Flag to hardcode \$libdir into a binary during linking.
19343 # This must work even if \$libdir does not exist.
19344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19346 # If ld is used when linking, flag to hardcode \$libdir into
19347 # a binary during linking. This must work even if \$libdir does
19348 # not exist.
19349 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19351 # Whether we need a single -rpath flag with a separated argument.
19352 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19354 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19355 # resulting binary.
19356 hardcode_direct=$hardcode_direct_GCJ
19358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19359 # resulting binary.
19360 hardcode_minus_L=$hardcode_minus_L_GCJ
19362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19363 # the resulting binary.
19364 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19366 # Set to yes if building a shared library automatically hardcodes DIR into the library
19367 # and all subsequent libraries and executables linked against it.
19368 hardcode_automatic=$hardcode_automatic_GCJ
19370 # Variables whose values should be saved in libtool wrapper scripts and
19371 # restored at relink time.
19372 variables_saved_for_relink="$variables_saved_for_relink"
19374 # Whether libtool must link a program against all its dependency libraries.
19375 link_all_deplibs=$link_all_deplibs_GCJ
19377 # Compile-time system search path for libraries
19378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19380 # Run-time system search path for libraries
19381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19383 # Fix the shell variable \$srcfile for the compiler.
19384 fix_srcfile_path=$lt_fix_srcfile_path
19386 # Set to yes if exported symbols are required.
19387 always_export_symbols=$always_export_symbols_GCJ
19389 # The commands to list exported symbols.
19390 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19392 # The commands to extract the exported symbol list from a shared archive.
19393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19395 # Symbols that should not be listed in the preloaded symbols.
19396 exclude_expsyms=$lt_exclude_expsyms_GCJ
19398 # Symbols that must always be exported.
19399 include_expsyms=$lt_include_expsyms_GCJ
19401 # ### END LIBTOOL TAG CONFIG: $tagname
19403 __EOF__
19406 else
19407   # If there is no Makefile yet, we rely on a make rule to execute
19408   # `config.status --recheck' to rerun these tests and create the
19409   # libtool script then.
19410   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19411   if test -f "$ltmain_in"; then
19412     test -f Makefile && make "$ltmain"
19413   fi
19417 ac_ext=c
19418 ac_cpp='$CPP $CPPFLAGS'
19419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19423 CC="$lt_save_CC"
19425         else
19426           tagname=""
19427         fi
19428         ;;
19430       RC)
19433 # Source file extension for RC test sources.
19434 ac_ext=rc
19436 # Object file extension for compiled RC test sources.
19437 objext=o
19438 objext_RC=$objext
19440 # Code to be used in simple compile tests
19441 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19443 # Code to be used in simple link tests
19444 lt_simple_link_test_code="$lt_simple_compile_test_code"
19446 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19448 # If no C compiler was specified, use CC.
19449 LTCC=${LTCC-"$CC"}
19451 # If no C compiler flags were specified, use CFLAGS.
19452 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19454 # Allow CC to be a program name with arguments.
19455 compiler=$CC
19458 # save warnings/boilerplate of simple test code
19459 ac_outfile=conftest.$ac_objext
19460 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19462 _lt_compiler_boilerplate=`cat conftest.err`
19463 $rm conftest*
19465 ac_outfile=conftest.$ac_objext
19466 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19468 _lt_linker_boilerplate=`cat conftest.err`
19469 $rm -r conftest*
19472 # Allow CC to be a program name with arguments.
19473 lt_save_CC="$CC"
19474 CC=${RC-"windres"}
19475 compiler=$CC
19476 compiler_RC=$CC
19477 for cc_temp in $compiler""; do
19478   case $cc_temp in
19479     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19480     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19481     \-*) ;;
19482     *) break;;
19483   esac
19484 done
19485 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19487 lt_cv_prog_compiler_c_o_RC=yes
19489 # The else clause should only fire when bootstrapping the
19490 # libtool distribution, otherwise you forgot to ship ltmain.sh
19491 # with your package, and you will get complaints that there are
19492 # no rules to generate ltmain.sh.
19493 if test -f "$ltmain"; then
19494   # See if we are running on zsh, and set the options which allow our commands through
19495   # without removal of \ escapes.
19496   if test -n "${ZSH_VERSION+set}" ; then
19497     setopt NO_GLOB_SUBST
19498   fi
19499   # Now quote all the things that may contain metacharacters while being
19500   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19501   # variables and quote the copies for generation of the libtool script.
19502   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19503     SED SHELL STRIP \
19504     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19505     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19506     deplibs_check_method reload_flag reload_cmds need_locks \
19507     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19508     lt_cv_sys_global_symbol_to_c_name_address \
19509     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19510     old_postinstall_cmds old_postuninstall_cmds \
19511     compiler_RC \
19512     CC_RC \
19513     LD_RC \
19514     lt_prog_compiler_wl_RC \
19515     lt_prog_compiler_pic_RC \
19516     lt_prog_compiler_static_RC \
19517     lt_prog_compiler_no_builtin_flag_RC \
19518     export_dynamic_flag_spec_RC \
19519     thread_safe_flag_spec_RC \
19520     whole_archive_flag_spec_RC \
19521     enable_shared_with_static_runtimes_RC \
19522     old_archive_cmds_RC \
19523     old_archive_from_new_cmds_RC \
19524     predep_objects_RC \
19525     postdep_objects_RC \
19526     predeps_RC \
19527     postdeps_RC \
19528     compiler_lib_search_path_RC \
19529     compiler_lib_search_dirs_RC \
19530     archive_cmds_RC \
19531     archive_expsym_cmds_RC \
19532     postinstall_cmds_RC \
19533     postuninstall_cmds_RC \
19534     old_archive_from_expsyms_cmds_RC \
19535     allow_undefined_flag_RC \
19536     no_undefined_flag_RC \
19537     export_symbols_cmds_RC \
19538     hardcode_libdir_flag_spec_RC \
19539     hardcode_libdir_flag_spec_ld_RC \
19540     hardcode_libdir_separator_RC \
19541     hardcode_automatic_RC \
19542     module_cmds_RC \
19543     module_expsym_cmds_RC \
19544     lt_cv_prog_compiler_c_o_RC \
19545     fix_srcfile_path_RC \
19546     exclude_expsyms_RC \
19547     include_expsyms_RC; do
19549     case $var in
19550     old_archive_cmds_RC | \
19551     old_archive_from_new_cmds_RC | \
19552     archive_cmds_RC | \
19553     archive_expsym_cmds_RC | \
19554     module_cmds_RC | \
19555     module_expsym_cmds_RC | \
19556     old_archive_from_expsyms_cmds_RC | \
19557     export_symbols_cmds_RC | \
19558     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19559     postinstall_cmds | postuninstall_cmds | \
19560     old_postinstall_cmds | old_postuninstall_cmds | \
19561     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19562       # Double-quote double-evaled strings.
19563       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19564       ;;
19565     *)
19566       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19567       ;;
19568     esac
19569   done
19571   case $lt_echo in
19572   *'\$0 --fallback-echo"')
19573     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19574     ;;
19575   esac
19577 cfgfile="$ofile"
19579   cat <<__EOF__ >> "$cfgfile"
19580 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19584 # Shell to use when invoking shell scripts.
19585 SHELL=$lt_SHELL
19587 # Whether or not to build shared libraries.
19588 build_libtool_libs=$enable_shared
19590 # Whether or not to build static libraries.
19591 build_old_libs=$enable_static
19593 # Whether or not to add -lc for building shared libraries.
19594 build_libtool_need_lc=$archive_cmds_need_lc_RC
19596 # Whether or not to disallow shared libs when runtime libs are static
19597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19599 # Whether or not to optimize for fast installation.
19600 fast_install=$enable_fast_install
19602 # The host system.
19603 host_alias=$host_alias
19604 host=$host
19605 host_os=$host_os
19607 # The build system.
19608 build_alias=$build_alias
19609 build=$build
19610 build_os=$build_os
19612 # An echo program that does not interpret backslashes.
19613 echo=$lt_echo
19615 # The archiver.
19616 AR=$lt_AR
19617 AR_FLAGS=$lt_AR_FLAGS
19619 # A C compiler.
19620 LTCC=$lt_LTCC
19622 # LTCC compiler flags.
19623 LTCFLAGS=$lt_LTCFLAGS
19625 # A language-specific compiler.
19626 CC=$lt_compiler_RC
19628 # Is the compiler the GNU C compiler?
19629 with_gcc=$GCC_RC
19631 # An ERE matcher.
19632 EGREP=$lt_EGREP
19634 # The linker used to build libraries.
19635 LD=$lt_LD_RC
19637 # Whether we need hard or soft links.
19638 LN_S=$lt_LN_S
19640 # A BSD-compatible nm program.
19641 NM=$lt_NM
19643 # A symbol stripping program
19644 STRIP=$lt_STRIP
19646 # Used to examine libraries when file_magic_cmd begins "file"
19647 MAGIC_CMD=$MAGIC_CMD
19649 # Used on cygwin: DLL creation program.
19650 DLLTOOL="$DLLTOOL"
19652 # Used on cygwin: object dumper.
19653 OBJDUMP="$OBJDUMP"
19655 # Used on cygwin: assembler.
19656 AS="$AS"
19658 # The name of the directory that contains temporary libtool files.
19659 objdir=$objdir
19661 # How to create reloadable object files.
19662 reload_flag=$lt_reload_flag
19663 reload_cmds=$lt_reload_cmds
19665 # How to pass a linker flag through the compiler.
19666 wl=$lt_lt_prog_compiler_wl_RC
19668 # Object file suffix (normally "o").
19669 objext="$ac_objext"
19671 # Old archive suffix (normally "a").
19672 libext="$libext"
19674 # Shared library suffix (normally ".so").
19675 shrext_cmds='$shrext_cmds'
19677 # Executable file suffix (normally "").
19678 exeext="$exeext"
19680 # Additional compiler flags for building library objects.
19681 pic_flag=$lt_lt_prog_compiler_pic_RC
19682 pic_mode=$pic_mode
19684 # What is the maximum length of a command?
19685 max_cmd_len=$lt_cv_sys_max_cmd_len
19687 # Does compiler simultaneously support -c and -o options?
19688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19690 # Must we lock files when doing compilation?
19691 need_locks=$lt_need_locks
19693 # Do we need the lib prefix for modules?
19694 need_lib_prefix=$need_lib_prefix
19696 # Do we need a version for libraries?
19697 need_version=$need_version
19699 # Whether dlopen is supported.
19700 dlopen_support=$enable_dlopen
19702 # Whether dlopen of programs is supported.
19703 dlopen_self=$enable_dlopen_self
19705 # Whether dlopen of statically linked programs is supported.
19706 dlopen_self_static=$enable_dlopen_self_static
19708 # Compiler flag to prevent dynamic linking.
19709 link_static_flag=$lt_lt_prog_compiler_static_RC
19711 # Compiler flag to turn off builtin functions.
19712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19714 # Compiler flag to allow reflexive dlopens.
19715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19717 # Compiler flag to generate shared objects directly from archives.
19718 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19720 # Compiler flag to generate thread-safe objects.
19721 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19723 # Library versioning type.
19724 version_type=$version_type
19726 # Format of library name prefix.
19727 libname_spec=$lt_libname_spec
19729 # List of archive names.  First name is the real one, the rest are links.
19730 # The last name is the one that the linker finds with -lNAME.
19731 library_names_spec=$lt_library_names_spec
19733 # The coded name of the library, if different from the real name.
19734 soname_spec=$lt_soname_spec
19736 # Commands used to build and install an old-style archive.
19737 RANLIB=$lt_RANLIB
19738 old_archive_cmds=$lt_old_archive_cmds_RC
19739 old_postinstall_cmds=$lt_old_postinstall_cmds
19740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19742 # Create an old-style archive from a shared archive.
19743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19745 # Create a temporary old-style archive to link instead of a shared archive.
19746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19748 # Commands used to build and install a shared archive.
19749 archive_cmds=$lt_archive_cmds_RC
19750 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19751 postinstall_cmds=$lt_postinstall_cmds
19752 postuninstall_cmds=$lt_postuninstall_cmds
19754 # Commands used to build a loadable module (assumed same as above if empty)
19755 module_cmds=$lt_module_cmds_RC
19756 module_expsym_cmds=$lt_module_expsym_cmds_RC
19758 # Commands to strip libraries.
19759 old_striplib=$lt_old_striplib
19760 striplib=$lt_striplib
19762 # Dependencies to place before the objects being linked to create a
19763 # shared library.
19764 predep_objects=$lt_predep_objects_RC
19766 # Dependencies to place after the objects being linked to create a
19767 # shared library.
19768 postdep_objects=$lt_postdep_objects_RC
19770 # Dependencies to place before the objects being linked to create a
19771 # shared library.
19772 predeps=$lt_predeps_RC
19774 # Dependencies to place after the objects being linked to create a
19775 # shared library.
19776 postdeps=$lt_postdeps_RC
19778 # The directories searched by this compiler when creating a shared
19779 # library
19780 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19782 # The library search path used internally by the compiler when linking
19783 # a shared library.
19784 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19786 # Method to check whether dependent libraries are shared objects.
19787 deplibs_check_method=$lt_deplibs_check_method
19789 # Command to use when deplibs_check_method == file_magic.
19790 file_magic_cmd=$lt_file_magic_cmd
19792 # Flag that allows shared libraries with undefined symbols to be built.
19793 allow_undefined_flag=$lt_allow_undefined_flag_RC
19795 # Flag that forces no undefined symbols.
19796 no_undefined_flag=$lt_no_undefined_flag_RC
19798 # Commands used to finish a libtool library installation in a directory.
19799 finish_cmds=$lt_finish_cmds
19801 # Same as above, but a single script fragment to be evaled but not shown.
19802 finish_eval=$lt_finish_eval
19804 # Take the output of nm and produce a listing of raw symbols and C names.
19805 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19807 # Transform the output of nm in a proper C declaration
19808 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19810 # Transform the output of nm in a C name address pair
19811 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19813 # This is the shared library runtime path variable.
19814 runpath_var=$runpath_var
19816 # This is the shared library path variable.
19817 shlibpath_var=$shlibpath_var
19819 # Is shlibpath searched before the hard-coded library search path?
19820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19822 # How to hardcode a shared library path into an executable.
19823 hardcode_action=$hardcode_action_RC
19825 # Whether we should hardcode library paths into libraries.
19826 hardcode_into_libs=$hardcode_into_libs
19828 # Flag to hardcode \$libdir into a binary during linking.
19829 # This must work even if \$libdir does not exist.
19830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19832 # If ld is used when linking, flag to hardcode \$libdir into
19833 # a binary during linking. This must work even if \$libdir does
19834 # not exist.
19835 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19837 # Whether we need a single -rpath flag with a separated argument.
19838 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19840 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19841 # resulting binary.
19842 hardcode_direct=$hardcode_direct_RC
19844 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19845 # resulting binary.
19846 hardcode_minus_L=$hardcode_minus_L_RC
19848 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19849 # the resulting binary.
19850 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19852 # Set to yes if building a shared library automatically hardcodes DIR into the library
19853 # and all subsequent libraries and executables linked against it.
19854 hardcode_automatic=$hardcode_automatic_RC
19856 # Variables whose values should be saved in libtool wrapper scripts and
19857 # restored at relink time.
19858 variables_saved_for_relink="$variables_saved_for_relink"
19860 # Whether libtool must link a program against all its dependency libraries.
19861 link_all_deplibs=$link_all_deplibs_RC
19863 # Compile-time system search path for libraries
19864 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19866 # Run-time system search path for libraries
19867 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19869 # Fix the shell variable \$srcfile for the compiler.
19870 fix_srcfile_path=$lt_fix_srcfile_path
19872 # Set to yes if exported symbols are required.
19873 always_export_symbols=$always_export_symbols_RC
19875 # The commands to list exported symbols.
19876 export_symbols_cmds=$lt_export_symbols_cmds_RC
19878 # The commands to extract the exported symbol list from a shared archive.
19879 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19881 # Symbols that should not be listed in the preloaded symbols.
19882 exclude_expsyms=$lt_exclude_expsyms_RC
19884 # Symbols that must always be exported.
19885 include_expsyms=$lt_include_expsyms_RC
19887 # ### END LIBTOOL TAG CONFIG: $tagname
19889 __EOF__
19892 else
19893   # If there is no Makefile yet, we rely on a make rule to execute
19894   # `config.status --recheck' to rerun these tests and create the
19895   # libtool script then.
19896   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19897   if test -f "$ltmain_in"; then
19898     test -f Makefile && make "$ltmain"
19899   fi
19903 ac_ext=c
19904 ac_cpp='$CPP $CPPFLAGS'
19905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19909 CC="$lt_save_CC"
19911         ;;
19913       *)
19914         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19915 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19916    { (exit 1); exit 1; }; }
19917         ;;
19918       esac
19920       # Append the new tag name to the list of available tags.
19921       if test -n "$tagname" ; then
19922       available_tags="$available_tags $tagname"
19923     fi
19924     fi
19925   done
19926   IFS="$lt_save_ifs"
19928   # Now substitute the updated list of available tags.
19929   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19930     mv "${ofile}T" "$ofile"
19931     chmod +x "$ofile"
19932   else
19933     rm -f "${ofile}T"
19934     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19935 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19936    { (exit 1); exit 1; }; }
19937   fi
19942 # This can be used to rebuild libtool when needed
19943 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19945 # Always use our own libtool.
19946 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19948 # Prevent multiple expansion
19970 if test "$GCC" = "yes"; then
19971   for flag in -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W; do
19972     oCFLAGS=$CFLAGS
19973     CFLAGS="$CFLAGS $flag"
19974     cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
19975     { echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
19976 echo $ECHO_N "checking if gcc likes the $flag flag... $ECHO_C" >&6; }
19977 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
19978   echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980   cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19987 int
19988 main ()
19990 return 0
19991   ;
19992   return 0;
19994 _ACEOF
19995 rm -f conftest.$ac_objext
19996 if { (ac_try="$ac_compile"
19997 case "(($ac_try" in
19998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999   *) ac_try_echo=$ac_try;;
20000 esac
20001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20002   (eval "$ac_compile") 2>conftest.er1
20003   ac_status=$?
20004   grep -v '^ *+' conftest.er1 >conftest.err
20005   rm -f conftest.er1
20006   cat conftest.err >&5
20007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008   (exit $ac_status); } && {
20009          test -z "$ac_c_werror_flag" ||
20010          test ! -s conftest.err
20011        } && test -s conftest.$ac_objext; then
20012   eval $cachename=yes
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017         eval $cachename=no
20020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20022 ac_res=`eval echo '${'$cachename'}'`
20023                { echo "$as_me:$LINENO: result: $ac_res" >&5
20024 echo "${ECHO_T}$ac_res" >&6; }
20025     if eval test \$$cachename = no; then
20026          CFLAGS=$oCFLAGS
20027     fi
20028   done
20036 case $TERM in
20037        #   for the most important terminal types we directly know the sequences
20038        xterm|xterm*|vt220|vt220*)
20039                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20040                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20041        ;;
20042        vt100|vt100*|cygwin)
20043                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20044                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20045        ;;
20046        *)
20047                T_MD=''
20048                T_ME=''
20049        ;;
20050 esac
20051   { echo "$as_me:$LINENO: result: " >&5
20052 echo "${ECHO_T}" >&6; }
20053   { echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
20054 echo "${ECHO_T}${T_MD}Checking for Header Files${T_ME}" >&6; }
20057 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20058 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20059 if test "${ac_cv_header_stdc+set}" = set; then
20060   echo $ECHO_N "(cached) $ECHO_C" >&6
20061 else
20062   cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h.  */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h.  */
20068 #include <stdlib.h>
20069 #include <stdarg.h>
20070 #include <string.h>
20071 #include <float.h>
20073 int
20074 main ()
20077   ;
20078   return 0;
20080 _ACEOF
20081 rm -f conftest.$ac_objext
20082 if { (ac_try="$ac_compile"
20083 case "(($ac_try" in
20084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085   *) ac_try_echo=$ac_try;;
20086 esac
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088   (eval "$ac_compile") 2>conftest.er1
20089   ac_status=$?
20090   grep -v '^ *+' conftest.er1 >conftest.err
20091   rm -f conftest.er1
20092   cat conftest.err >&5
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); } && {
20095          test -z "$ac_c_werror_flag" ||
20096          test ! -s conftest.err
20097        } && test -s conftest.$ac_objext; then
20098   ac_cv_header_stdc=yes
20099 else
20100   echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20103         ac_cv_header_stdc=no
20106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20108 if test $ac_cv_header_stdc = yes; then
20109   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20110   cat >conftest.$ac_ext <<_ACEOF
20111 /* confdefs.h.  */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h.  */
20116 #include <string.h>
20118 _ACEOF
20119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20120   $EGREP "memchr" >/dev/null 2>&1; then
20121   :
20122 else
20123   ac_cv_header_stdc=no
20125 rm -f conftest*
20129 if test $ac_cv_header_stdc = yes; then
20130   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20131   cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137 #include <stdlib.h>
20139 _ACEOF
20140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20141   $EGREP "free" >/dev/null 2>&1; then
20142   :
20143 else
20144   ac_cv_header_stdc=no
20146 rm -f conftest*
20150 if test $ac_cv_header_stdc = yes; then
20151   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20152   if test "$cross_compiling" = yes; then
20153   :
20154 else
20155   cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h.  */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h.  */
20161 #include <ctype.h>
20162 #include <stdlib.h>
20163 #if ((' ' & 0x0FF) == 0x020)
20164 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20165 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20166 #else
20167 # define ISLOWER(c) \
20168                    (('a' <= (c) && (c) <= 'i') \
20169                      || ('j' <= (c) && (c) <= 'r') \
20170                      || ('s' <= (c) && (c) <= 'z'))
20171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20172 #endif
20174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20175 int
20176 main ()
20178   int i;
20179   for (i = 0; i < 256; i++)
20180     if (XOR (islower (i), ISLOWER (i))
20181         || toupper (i) != TOUPPER (i))
20182       return 2;
20183   return 0;
20185 _ACEOF
20186 rm -f conftest$ac_exeext
20187 if { (ac_try="$ac_link"
20188 case "(($ac_try" in
20189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190   *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193   (eval "$ac_link") 2>&5
20194   ac_status=$?
20195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20197   { (case "(($ac_try" in
20198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199   *) ac_try_echo=$ac_try;;
20200 esac
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202   (eval "$ac_try") 2>&5
20203   ac_status=$?
20204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205   (exit $ac_status); }; }; then
20206   :
20207 else
20208   echo "$as_me: program exited with status $ac_status" >&5
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ( exit $ac_status )
20213 ac_cv_header_stdc=no
20215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20221 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20222 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20223 if test $ac_cv_header_stdc = yes; then
20225 cat >>confdefs.h <<\_ACEOF
20226 #define STDC_HEADERS 1
20227 _ACEOF
20236 ac_header_dirent=no
20237 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20238   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20239 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20240 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20242   echo $ECHO_N "(cached) $ECHO_C" >&6
20243 else
20244   cat >conftest.$ac_ext <<_ACEOF
20245 /* confdefs.h.  */
20246 _ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h.  */
20250 #include <sys/types.h>
20251 #include <$ac_hdr>
20253 int
20254 main ()
20256 if ((DIR *) 0)
20257 return 0;
20258   ;
20259   return 0;
20261 _ACEOF
20262 rm -f conftest.$ac_objext
20263 if { (ac_try="$ac_compile"
20264 case "(($ac_try" in
20265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266   *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269   (eval "$ac_compile") 2>conftest.er1
20270   ac_status=$?
20271   grep -v '^ *+' conftest.er1 >conftest.err
20272   rm -f conftest.er1
20273   cat conftest.err >&5
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } && {
20276          test -z "$ac_c_werror_flag" ||
20277          test ! -s conftest.err
20278        } && test -s conftest.$ac_objext; then
20279   eval "$as_ac_Header=yes"
20280 else
20281   echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20284         eval "$as_ac_Header=no"
20287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20289 ac_res=`eval echo '${'$as_ac_Header'}'`
20290                { echo "$as_me:$LINENO: result: $ac_res" >&5
20291 echo "${ECHO_T}$ac_res" >&6; }
20292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20293   cat >>confdefs.h <<_ACEOF
20294 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20295 _ACEOF
20297 ac_header_dirent=$ac_hdr; break
20300 done
20301 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20302 if test $ac_header_dirent = dirent.h; then
20303   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20304 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20305 if test "${ac_cv_search_opendir+set}" = set; then
20306   echo $ECHO_N "(cached) $ECHO_C" >&6
20307 else
20308   ac_func_search_save_LIBS=$LIBS
20309 cat >conftest.$ac_ext <<_ACEOF
20310 /* confdefs.h.  */
20311 _ACEOF
20312 cat confdefs.h >>conftest.$ac_ext
20313 cat >>conftest.$ac_ext <<_ACEOF
20314 /* end confdefs.h.  */
20316 /* Override any GCC internal prototype to avoid an error.
20317    Use char because int might match the return type of a GCC
20318    builtin and then its argument prototype would still apply.  */
20319 #ifdef __cplusplus
20320 extern "C"
20321 #endif
20322 char opendir ();
20323 int
20324 main ()
20326 return opendir ();
20327   ;
20328   return 0;
20330 _ACEOF
20331 for ac_lib in '' dir; do
20332   if test -z "$ac_lib"; then
20333     ac_res="none required"
20334   else
20335     ac_res=-l$ac_lib
20336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20337   fi
20338   rm -f conftest.$ac_objext conftest$ac_exeext
20339 if { (ac_try="$ac_link"
20340 case "(($ac_try" in
20341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342   *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345   (eval "$ac_link") 2>conftest.er1
20346   ac_status=$?
20347   grep -v '^ *+' conftest.er1 >conftest.err
20348   rm -f conftest.er1
20349   cat conftest.err >&5
20350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351   (exit $ac_status); } && {
20352          test -z "$ac_c_werror_flag" ||
20353          test ! -s conftest.err
20354        } && test -s conftest$ac_exeext &&
20355        $as_test_x conftest$ac_exeext; then
20356   ac_cv_search_opendir=$ac_res
20357 else
20358   echo "$as_me: failed program was:" >&5
20359 sed 's/^/| /' conftest.$ac_ext >&5
20364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20365       conftest$ac_exeext
20366   if test "${ac_cv_search_opendir+set}" = set; then
20367   break
20369 done
20370 if test "${ac_cv_search_opendir+set}" = set; then
20371   :
20372 else
20373   ac_cv_search_opendir=no
20375 rm conftest.$ac_ext
20376 LIBS=$ac_func_search_save_LIBS
20378 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20379 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20380 ac_res=$ac_cv_search_opendir
20381 if test "$ac_res" != no; then
20382   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20386 else
20387   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20388 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20389 if test "${ac_cv_search_opendir+set}" = set; then
20390   echo $ECHO_N "(cached) $ECHO_C" >&6
20391 else
20392   ac_func_search_save_LIBS=$LIBS
20393 cat >conftest.$ac_ext <<_ACEOF
20394 /* confdefs.h.  */
20395 _ACEOF
20396 cat confdefs.h >>conftest.$ac_ext
20397 cat >>conftest.$ac_ext <<_ACEOF
20398 /* end confdefs.h.  */
20400 /* Override any GCC internal prototype to avoid an error.
20401    Use char because int might match the return type of a GCC
20402    builtin and then its argument prototype would still apply.  */
20403 #ifdef __cplusplus
20404 extern "C"
20405 #endif
20406 char opendir ();
20407 int
20408 main ()
20410 return opendir ();
20411   ;
20412   return 0;
20414 _ACEOF
20415 for ac_lib in '' x; do
20416   if test -z "$ac_lib"; then
20417     ac_res="none required"
20418   else
20419     ac_res=-l$ac_lib
20420     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20421   fi
20422   rm -f conftest.$ac_objext conftest$ac_exeext
20423 if { (ac_try="$ac_link"
20424 case "(($ac_try" in
20425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426   *) ac_try_echo=$ac_try;;
20427 esac
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429   (eval "$ac_link") 2>conftest.er1
20430   ac_status=$?
20431   grep -v '^ *+' conftest.er1 >conftest.err
20432   rm -f conftest.er1
20433   cat conftest.err >&5
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } && {
20436          test -z "$ac_c_werror_flag" ||
20437          test ! -s conftest.err
20438        } && test -s conftest$ac_exeext &&
20439        $as_test_x conftest$ac_exeext; then
20440   ac_cv_search_opendir=$ac_res
20441 else
20442   echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20449       conftest$ac_exeext
20450   if test "${ac_cv_search_opendir+set}" = set; then
20451   break
20453 done
20454 if test "${ac_cv_search_opendir+set}" = set; then
20455   :
20456 else
20457   ac_cv_search_opendir=no
20459 rm conftest.$ac_ext
20460 LIBS=$ac_func_search_save_LIBS
20462 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20463 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20464 ac_res=$ac_cv_search_opendir
20465 if test "$ac_res" != no; then
20466   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20487 for ac_header in features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h float.h strings.h
20489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20491   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20494   echo $ECHO_N "(cached) $ECHO_C" >&6
20496 ac_res=`eval echo '${'$as_ac_Header'}'`
20497                { echo "$as_me:$LINENO: result: $ac_res" >&5
20498 echo "${ECHO_T}$ac_res" >&6; }
20499 else
20500   # Is the header compilable?
20501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20503 cat >conftest.$ac_ext <<_ACEOF
20504 /* confdefs.h.  */
20505 _ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h.  */
20509 $ac_includes_default
20510 #include <$ac_header>
20511 _ACEOF
20512 rm -f conftest.$ac_objext
20513 if { (ac_try="$ac_compile"
20514 case "(($ac_try" in
20515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516   *) ac_try_echo=$ac_try;;
20517 esac
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519   (eval "$ac_compile") 2>conftest.er1
20520   ac_status=$?
20521   grep -v '^ *+' conftest.er1 >conftest.err
20522   rm -f conftest.er1
20523   cat conftest.err >&5
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); } && {
20526          test -z "$ac_c_werror_flag" ||
20527          test ! -s conftest.err
20528        } && test -s conftest.$ac_objext; then
20529   ac_header_compiler=yes
20530 else
20531   echo "$as_me: failed program was:" >&5
20532 sed 's/^/| /' conftest.$ac_ext >&5
20534         ac_header_compiler=no
20537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20539 echo "${ECHO_T}$ac_header_compiler" >&6; }
20541 # Is the header present?
20542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20544 cat >conftest.$ac_ext <<_ACEOF
20545 /* confdefs.h.  */
20546 _ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h.  */
20550 #include <$ac_header>
20551 _ACEOF
20552 if { (ac_try="$ac_cpp conftest.$ac_ext"
20553 case "(($ac_try" in
20554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555   *) ac_try_echo=$ac_try;;
20556 esac
20557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20559   ac_status=$?
20560   grep -v '^ *+' conftest.er1 >conftest.err
20561   rm -f conftest.er1
20562   cat conftest.err >&5
20563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564   (exit $ac_status); } >/dev/null && {
20565          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20566          test ! -s conftest.err
20567        }; then
20568   ac_header_preproc=yes
20569 else
20570   echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573   ac_header_preproc=no
20576 rm -f conftest.err conftest.$ac_ext
20577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20578 echo "${ECHO_T}$ac_header_preproc" >&6; }
20580 # So?  What about this header?
20581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20582   yes:no: )
20583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20587     ac_header_preproc=yes
20588     ;;
20589   no:yes:* )
20590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20603     ;;
20604 esac
20605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20608   echo $ECHO_N "(cached) $ECHO_C" >&6
20609 else
20610   eval "$as_ac_Header=\$ac_header_preproc"
20612 ac_res=`eval echo '${'$as_ac_Header'}'`
20613                { echo "$as_me:$LINENO: result: $ac_res" >&5
20614 echo "${ECHO_T}$ac_res" >&6; }
20617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20618   cat >>confdefs.h <<_ACEOF
20619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20620 _ACEOF
20624 done
20627 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20628 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20629 if test "${ac_cv_c_const+set}" = set; then
20630   echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632   cat >conftest.$ac_ext <<_ACEOF
20633 /* confdefs.h.  */
20634 _ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h.  */
20639 int
20640 main ()
20642 /* FIXME: Include the comments suggested by Paul. */
20643 #ifndef __cplusplus
20644   /* Ultrix mips cc rejects this.  */
20645   typedef int charset[2];
20646   const charset cs;
20647   /* SunOS 4.1.1 cc rejects this.  */
20648   char const *const *pcpcc;
20649   char **ppc;
20650   /* NEC SVR4.0.2 mips cc rejects this.  */
20651   struct point {int x, y;};
20652   static struct point const zero = {0,0};
20653   /* AIX XL C 1.02.0.0 rejects this.
20654      It does not let you subtract one const X* pointer from another in
20655      an arm of an if-expression whose if-part is not a constant
20656      expression */
20657   const char *g = "string";
20658   pcpcc = &g + (g ? g-g : 0);
20659   /* HPUX 7.0 cc rejects these. */
20660   ++pcpcc;
20661   ppc = (char**) pcpcc;
20662   pcpcc = (char const *const *) ppc;
20663   { /* SCO 3.2v4 cc rejects this.  */
20664     char *t;
20665     char const *s = 0 ? (char *) 0 : (char const *) 0;
20667     *t++ = 0;
20668     if (s) return 0;
20669   }
20670   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20671     int x[] = {25, 17};
20672     const int *foo = &x[0];
20673     ++foo;
20674   }
20675   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20676     typedef const int *iptr;
20677     iptr p = 0;
20678     ++p;
20679   }
20680   { /* AIX XL C 1.02.0.0 rejects this saying
20681        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20682     struct s { int j; const int *ap[3]; };
20683     struct s *b; b->j = 5;
20684   }
20685   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20686     const int foo = 10;
20687     if (!foo) return 0;
20688   }
20689   return !cs[0] && !zero.x;
20690 #endif
20692   ;
20693   return 0;
20695 _ACEOF
20696 rm -f conftest.$ac_objext
20697 if { (ac_try="$ac_compile"
20698 case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_compile") 2>conftest.er1
20704   ac_status=$?
20705   grep -v '^ *+' conftest.er1 >conftest.err
20706   rm -f conftest.er1
20707   cat conftest.err >&5
20708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709   (exit $ac_status); } && {
20710          test -z "$ac_c_werror_flag" ||
20711          test ! -s conftest.err
20712        } && test -s conftest.$ac_objext; then
20713   ac_cv_c_const=yes
20714 else
20715   echo "$as_me: failed program was:" >&5
20716 sed 's/^/| /' conftest.$ac_ext >&5
20718         ac_cv_c_const=no
20721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20723 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20724 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20725 if test $ac_cv_c_const = no; then
20727 cat >>confdefs.h <<\_ACEOF
20728 #define const
20729 _ACEOF
20733 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20734 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20735 if test "${ac_cv_header_time+set}" = set; then
20736   echo $ECHO_N "(cached) $ECHO_C" >&6
20737 else
20738   cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744 #include <sys/types.h>
20745 #include <sys/time.h>
20746 #include <time.h>
20748 int
20749 main ()
20751 if ((struct tm *) 0)
20752 return 0;
20753   ;
20754   return 0;
20756 _ACEOF
20757 rm -f conftest.$ac_objext
20758 if { (ac_try="$ac_compile"
20759 case "(($ac_try" in
20760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761   *) ac_try_echo=$ac_try;;
20762 esac
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764   (eval "$ac_compile") 2>conftest.er1
20765   ac_status=$?
20766   grep -v '^ *+' conftest.er1 >conftest.err
20767   rm -f conftest.er1
20768   cat conftest.err >&5
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); } && {
20771          test -z "$ac_c_werror_flag" ||
20772          test ! -s conftest.err
20773        } && test -s conftest.$ac_objext; then
20774   ac_cv_header_time=yes
20775 else
20776   echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20779         ac_cv_header_time=no
20782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20784 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20785 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20786 if test $ac_cv_header_time = yes; then
20788 cat >>confdefs.h <<\_ACEOF
20789 #define TIME_WITH_SYS_TIME 1
20790 _ACEOF
20794 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20795 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20796 if test "${ac_cv_struct_tm+set}" = set; then
20797   echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799   cat >conftest.$ac_ext <<_ACEOF
20800 /* confdefs.h.  */
20801 _ACEOF
20802 cat confdefs.h >>conftest.$ac_ext
20803 cat >>conftest.$ac_ext <<_ACEOF
20804 /* end confdefs.h.  */
20805 #include <sys/types.h>
20806 #include <time.h>
20808 int
20809 main ()
20811 struct tm tm;
20812                                      int *p = &tm.tm_sec;
20813                                      return !p;
20814   ;
20815   return 0;
20817 _ACEOF
20818 rm -f conftest.$ac_objext
20819 if { (ac_try="$ac_compile"
20820 case "(($ac_try" in
20821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822   *) ac_try_echo=$ac_try;;
20823 esac
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825   (eval "$ac_compile") 2>conftest.er1
20826   ac_status=$?
20827   grep -v '^ *+' conftest.er1 >conftest.err
20828   rm -f conftest.er1
20829   cat conftest.err >&5
20830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831   (exit $ac_status); } && {
20832          test -z "$ac_c_werror_flag" ||
20833          test ! -s conftest.err
20834        } && test -s conftest.$ac_objext; then
20835   ac_cv_struct_tm=time.h
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840         ac_cv_struct_tm=sys/time.h
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20846 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20847 if test $ac_cv_struct_tm = sys/time.h; then
20849 cat >>confdefs.h <<\_ACEOF
20850 #define TM_IN_SYS_TIME 1
20851 _ACEOF
20856 { echo "$as_me:$LINENO: checking for acos" >&5
20857 echo $ECHO_N "checking for acos... $ECHO_C" >&6; }
20858 if test "${ac_cv_func_acos+set}" = set; then
20859   echo $ECHO_N "(cached) $ECHO_C" >&6
20860 else
20861   cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h.  */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h.  */
20867 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
20868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20869 #define acos innocuous_acos
20871 /* System header to define __stub macros and hopefully few prototypes,
20872     which can conflict with char acos (); below.
20873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20874     <limits.h> exists even on freestanding compilers.  */
20876 #ifdef __STDC__
20877 # include <limits.h>
20878 #else
20879 # include <assert.h>
20880 #endif
20882 #undef acos
20884 /* Override any GCC internal prototype to avoid an error.
20885    Use char because int might match the return type of a GCC
20886    builtin and then its argument prototype would still apply.  */
20887 #ifdef __cplusplus
20888 extern "C"
20889 #endif
20890 char acos ();
20891 /* The GNU C library defines this for functions which it implements
20892     to always fail with ENOSYS.  Some functions are actually named
20893     something starting with __ and the normal name is an alias.  */
20894 #if defined __stub_acos || defined __stub___acos
20895 choke me
20896 #endif
20898 int
20899 main ()
20901 return acos ();
20902   ;
20903   return 0;
20905 _ACEOF
20906 rm -f conftest.$ac_objext conftest$ac_exeext
20907 if { (ac_try="$ac_link"
20908 case "(($ac_try" in
20909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910   *) ac_try_echo=$ac_try;;
20911 esac
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913   (eval "$ac_link") 2>conftest.er1
20914   ac_status=$?
20915   grep -v '^ *+' conftest.er1 >conftest.err
20916   rm -f conftest.er1
20917   cat conftest.err >&5
20918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919   (exit $ac_status); } && {
20920          test -z "$ac_c_werror_flag" ||
20921          test ! -s conftest.err
20922        } && test -s conftest$ac_exeext &&
20923        $as_test_x conftest$ac_exeext; then
20924   ac_cv_func_acos=yes
20925 else
20926   echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929         ac_cv_func_acos=no
20932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20933       conftest$ac_exeext conftest.$ac_ext
20935 { echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
20936 echo "${ECHO_T}$ac_cv_func_acos" >&6; }
20937 if test $ac_cv_func_acos = yes; then
20938   :
20939 else
20941 { echo "$as_me:$LINENO: checking for acos in -lm" >&5
20942 echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6; }
20943 if test "${ac_cv_lib_m_acos+set}" = set; then
20944   echo $ECHO_N "(cached) $ECHO_C" >&6
20945 else
20946   ac_check_lib_save_LIBS=$LIBS
20947 LIBS="-lm  $LIBS"
20948 cat >conftest.$ac_ext <<_ACEOF
20949 /* confdefs.h.  */
20950 _ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h.  */
20955 /* Override any GCC internal prototype to avoid an error.
20956    Use char because int might match the return type of a GCC
20957    builtin and then its argument prototype would still apply.  */
20958 #ifdef __cplusplus
20959 extern "C"
20960 #endif
20961 char acos ();
20962 int
20963 main ()
20965 return acos ();
20966   ;
20967   return 0;
20969 _ACEOF
20970 rm -f conftest.$ac_objext conftest$ac_exeext
20971 if { (ac_try="$ac_link"
20972 case "(($ac_try" in
20973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974   *) ac_try_echo=$ac_try;;
20975 esac
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977   (eval "$ac_link") 2>conftest.er1
20978   ac_status=$?
20979   grep -v '^ *+' conftest.er1 >conftest.err
20980   rm -f conftest.er1
20981   cat conftest.err >&5
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); } && {
20984          test -z "$ac_c_werror_flag" ||
20985          test ! -s conftest.err
20986        } && test -s conftest$ac_exeext &&
20987        $as_test_x conftest$ac_exeext; then
20988   ac_cv_lib_m_acos=yes
20989 else
20990   echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20993         ac_cv_lib_m_acos=no
20996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20997       conftest$ac_exeext conftest.$ac_ext
20998 LIBS=$ac_check_lib_save_LIBS
21000 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
21001 echo "${ECHO_T}$ac_cv_lib_m_acos" >&6; }
21002 if test $ac_cv_lib_m_acos = yes; then
21003   cat >>confdefs.h <<_ACEOF
21004 #define HAVE_LIBM 1
21005 _ACEOF
21007   LIBS="-lm $LIBS"
21014 eval `./libtool --config | grep pic_flag`
21015 CFLAGS="$CFLAGS $pic_flag"
21018 case $TERM in
21019        #   for the most important terminal types we directly know the sequences
21020        xterm|xterm*|vt220|vt220*)
21021                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
21022                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
21023        ;;
21024        vt100|vt100*|cygwin)
21025                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
21026                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
21027        ;;
21028        *)
21029                T_MD=''
21030                T_ME=''
21031        ;;
21032 esac
21033   { echo "$as_me:$LINENO: result: " >&5
21034 echo "${ECHO_T}" >&6; }
21035   { echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
21036 echo "${ECHO_T}${T_MD}Test Library Functions${T_ME}" >&6; }
21040 for ac_func in strftime
21042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21046   echo $ECHO_N "(cached) $ECHO_C" >&6
21047 else
21048   cat >conftest.$ac_ext <<_ACEOF
21049 /* confdefs.h.  */
21050 _ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h.  */
21054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21056 #define $ac_func innocuous_$ac_func
21058 /* System header to define __stub macros and hopefully few prototypes,
21059     which can conflict with char $ac_func (); below.
21060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21061     <limits.h> exists even on freestanding compilers.  */
21063 #ifdef __STDC__
21064 # include <limits.h>
21065 #else
21066 # include <assert.h>
21067 #endif
21069 #undef $ac_func
21071 /* Override any GCC internal prototype to avoid an error.
21072    Use char because int might match the return type of a GCC
21073    builtin and then its argument prototype would still apply.  */
21074 #ifdef __cplusplus
21075 extern "C"
21076 #endif
21077 char $ac_func ();
21078 /* The GNU C library defines this for functions which it implements
21079     to always fail with ENOSYS.  Some functions are actually named
21080     something starting with __ and the normal name is an alias.  */
21081 #if defined __stub_$ac_func || defined __stub___$ac_func
21082 choke me
21083 #endif
21085 int
21086 main ()
21088 return $ac_func ();
21089   ;
21090   return 0;
21092 _ACEOF
21093 rm -f conftest.$ac_objext conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097   *) ac_try_echo=$ac_try;;
21098 esac
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100   (eval "$ac_link") 2>conftest.er1
21101   ac_status=$?
21102   grep -v '^ *+' conftest.er1 >conftest.err
21103   rm -f conftest.er1
21104   cat conftest.err >&5
21105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106   (exit $ac_status); } && {
21107          test -z "$ac_c_werror_flag" ||
21108          test ! -s conftest.err
21109        } && test -s conftest$ac_exeext &&
21110        $as_test_x conftest$ac_exeext; then
21111   eval "$as_ac_var=yes"
21112 else
21113   echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116         eval "$as_ac_var=no"
21119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21120       conftest$ac_exeext conftest.$ac_ext
21122 ac_res=`eval echo '${'$as_ac_var'}'`
21123                { echo "$as_me:$LINENO: result: $ac_res" >&5
21124 echo "${ECHO_T}$ac_res" >&6; }
21125 if test `eval echo '${'$as_ac_var'}'` = yes; then
21126   cat >>confdefs.h <<_ACEOF
21127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21128 _ACEOF
21130 else
21131   # strftime is in -lintl on SCO UNIX.
21132 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21133 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
21134 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21135   echo $ECHO_N "(cached) $ECHO_C" >&6
21136 else
21137   ac_check_lib_save_LIBS=$LIBS
21138 LIBS="-lintl  $LIBS"
21139 cat >conftest.$ac_ext <<_ACEOF
21140 /* confdefs.h.  */
21141 _ACEOF
21142 cat confdefs.h >>conftest.$ac_ext
21143 cat >>conftest.$ac_ext <<_ACEOF
21144 /* end confdefs.h.  */
21146 /* Override any GCC internal prototype to avoid an error.
21147    Use char because int might match the return type of a GCC
21148    builtin and then its argument prototype would still apply.  */
21149 #ifdef __cplusplus
21150 extern "C"
21151 #endif
21152 char strftime ();
21153 int
21154 main ()
21156 return strftime ();
21157   ;
21158   return 0;
21160 _ACEOF
21161 rm -f conftest.$ac_objext conftest$ac_exeext
21162 if { (ac_try="$ac_link"
21163 case "(($ac_try" in
21164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165   *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168   (eval "$ac_link") 2>conftest.er1
21169   ac_status=$?
21170   grep -v '^ *+' conftest.er1 >conftest.err
21171   rm -f conftest.er1
21172   cat conftest.err >&5
21173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174   (exit $ac_status); } && {
21175          test -z "$ac_c_werror_flag" ||
21176          test ! -s conftest.err
21177        } && test -s conftest$ac_exeext &&
21178        $as_test_x conftest$ac_exeext; then
21179   ac_cv_lib_intl_strftime=yes
21180 else
21181   echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21184         ac_cv_lib_intl_strftime=no
21187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21188       conftest$ac_exeext conftest.$ac_ext
21189 LIBS=$ac_check_lib_save_LIBS
21191 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21192 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
21193 if test $ac_cv_lib_intl_strftime = yes; then
21194   cat >>confdefs.h <<\_ACEOF
21195 #define HAVE_STRFTIME 1
21196 _ACEOF
21198 LIBS="-lintl $LIBS"
21202 done
21205 for ac_func in vprintf
21207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21211   echo $ECHO_N "(cached) $ECHO_C" >&6
21212 else
21213   cat >conftest.$ac_ext <<_ACEOF
21214 /* confdefs.h.  */
21215 _ACEOF
21216 cat confdefs.h >>conftest.$ac_ext
21217 cat >>conftest.$ac_ext <<_ACEOF
21218 /* end confdefs.h.  */
21219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21221 #define $ac_func innocuous_$ac_func
21223 /* System header to define __stub macros and hopefully few prototypes,
21224     which can conflict with char $ac_func (); below.
21225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21226     <limits.h> exists even on freestanding compilers.  */
21228 #ifdef __STDC__
21229 # include <limits.h>
21230 #else
21231 # include <assert.h>
21232 #endif
21234 #undef $ac_func
21236 /* Override any GCC internal prototype to avoid an error.
21237    Use char because int might match the return type of a GCC
21238    builtin and then its argument prototype would still apply.  */
21239 #ifdef __cplusplus
21240 extern "C"
21241 #endif
21242 char $ac_func ();
21243 /* The GNU C library defines this for functions which it implements
21244     to always fail with ENOSYS.  Some functions are actually named
21245     something starting with __ and the normal name is an alias.  */
21246 #if defined __stub_$ac_func || defined __stub___$ac_func
21247 choke me
21248 #endif
21250 int
21251 main ()
21253 return $ac_func ();
21254   ;
21255   return 0;
21257 _ACEOF
21258 rm -f conftest.$ac_objext conftest$ac_exeext
21259 if { (ac_try="$ac_link"
21260 case "(($ac_try" in
21261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21262   *) ac_try_echo=$ac_try;;
21263 esac
21264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21265   (eval "$ac_link") 2>conftest.er1
21266   ac_status=$?
21267   grep -v '^ *+' conftest.er1 >conftest.err
21268   rm -f conftest.er1
21269   cat conftest.err >&5
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); } && {
21272          test -z "$ac_c_werror_flag" ||
21273          test ! -s conftest.err
21274        } && test -s conftest$ac_exeext &&
21275        $as_test_x conftest$ac_exeext; then
21276   eval "$as_ac_var=yes"
21277 else
21278   echo "$as_me: failed program was:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21281         eval "$as_ac_var=no"
21284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21285       conftest$ac_exeext conftest.$ac_ext
21287 ac_res=`eval echo '${'$as_ac_var'}'`
21288                { echo "$as_me:$LINENO: result: $ac_res" >&5
21289 echo "${ECHO_T}$ac_res" >&6; }
21290 if test `eval echo '${'$as_ac_var'}'` = yes; then
21291   cat >>confdefs.h <<_ACEOF
21292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21293 _ACEOF
21295 { echo "$as_me:$LINENO: checking for _doprnt" >&5
21296 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
21297 if test "${ac_cv_func__doprnt+set}" = set; then
21298   echo $ECHO_N "(cached) $ECHO_C" >&6
21299 else
21300   cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h.  */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h.  */
21306 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21308 #define _doprnt innocuous__doprnt
21310 /* System header to define __stub macros and hopefully few prototypes,
21311     which can conflict with char _doprnt (); below.
21312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21313     <limits.h> exists even on freestanding compilers.  */
21315 #ifdef __STDC__
21316 # include <limits.h>
21317 #else
21318 # include <assert.h>
21319 #endif
21321 #undef _doprnt
21323 /* Override any GCC internal prototype to avoid an error.
21324    Use char because int might match the return type of a GCC
21325    builtin and then its argument prototype would still apply.  */
21326 #ifdef __cplusplus
21327 extern "C"
21328 #endif
21329 char _doprnt ();
21330 /* The GNU C library defines this for functions which it implements
21331     to always fail with ENOSYS.  Some functions are actually named
21332     something starting with __ and the normal name is an alias.  */
21333 #if defined __stub__doprnt || defined __stub____doprnt
21334 choke me
21335 #endif
21337 int
21338 main ()
21340 return _doprnt ();
21341   ;
21342   return 0;
21344 _ACEOF
21345 rm -f conftest.$ac_objext conftest$ac_exeext
21346 if { (ac_try="$ac_link"
21347 case "(($ac_try" in
21348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21349   *) ac_try_echo=$ac_try;;
21350 esac
21351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21352   (eval "$ac_link") 2>conftest.er1
21353   ac_status=$?
21354   grep -v '^ *+' conftest.er1 >conftest.err
21355   rm -f conftest.er1
21356   cat conftest.err >&5
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); } && {
21359          test -z "$ac_c_werror_flag" ||
21360          test ! -s conftest.err
21361        } && test -s conftest$ac_exeext &&
21362        $as_test_x conftest$ac_exeext; then
21363   ac_cv_func__doprnt=yes
21364 else
21365   echo "$as_me: failed program was:" >&5
21366 sed 's/^/| /' conftest.$ac_ext >&5
21368         ac_cv_func__doprnt=no
21371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21372       conftest$ac_exeext conftest.$ac_ext
21374 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21375 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
21376 if test $ac_cv_func__doprnt = yes; then
21378 cat >>confdefs.h <<\_ACEOF
21379 #define HAVE_DOPRNT 1
21380 _ACEOF
21385 done
21389 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21390 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21391 if test "${ac_cv_c_bigendian+set}" = set; then
21392   echo $ECHO_N "(cached) $ECHO_C" >&6
21393 else
21394   # See if sys/param.h defines the BYTE_ORDER macro.
21395 cat >conftest.$ac_ext <<_ACEOF
21396 /* confdefs.h.  */
21397 _ACEOF
21398 cat confdefs.h >>conftest.$ac_ext
21399 cat >>conftest.$ac_ext <<_ACEOF
21400 /* end confdefs.h.  */
21401 #include <sys/types.h>
21402 #include <sys/param.h>
21404 int
21405 main ()
21407 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21408         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21409  bogus endian macros
21410 #endif
21412   ;
21413   return 0;
21415 _ACEOF
21416 rm -f conftest.$ac_objext
21417 if { (ac_try="$ac_compile"
21418 case "(($ac_try" in
21419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420   *) ac_try_echo=$ac_try;;
21421 esac
21422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423   (eval "$ac_compile") 2>conftest.er1
21424   ac_status=$?
21425   grep -v '^ *+' conftest.er1 >conftest.err
21426   rm -f conftest.er1
21427   cat conftest.err >&5
21428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429   (exit $ac_status); } && {
21430          test -z "$ac_c_werror_flag" ||
21431          test ! -s conftest.err
21432        } && test -s conftest.$ac_objext; then
21433   # It does; now see whether it defined to BIG_ENDIAN or not.
21434 cat >conftest.$ac_ext <<_ACEOF
21435 /* confdefs.h.  */
21436 _ACEOF
21437 cat confdefs.h >>conftest.$ac_ext
21438 cat >>conftest.$ac_ext <<_ACEOF
21439 /* end confdefs.h.  */
21440 #include <sys/types.h>
21441 #include <sys/param.h>
21443 int
21444 main ()
21446 #if BYTE_ORDER != BIG_ENDIAN
21447  not big endian
21448 #endif
21450   ;
21451   return 0;
21453 _ACEOF
21454 rm -f conftest.$ac_objext
21455 if { (ac_try="$ac_compile"
21456 case "(($ac_try" in
21457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21458   *) ac_try_echo=$ac_try;;
21459 esac
21460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21461   (eval "$ac_compile") 2>conftest.er1
21462   ac_status=$?
21463   grep -v '^ *+' conftest.er1 >conftest.err
21464   rm -f conftest.er1
21465   cat conftest.err >&5
21466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467   (exit $ac_status); } && {
21468          test -z "$ac_c_werror_flag" ||
21469          test ! -s conftest.err
21470        } && test -s conftest.$ac_objext; then
21471   ac_cv_c_bigendian=yes
21472 else
21473   echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.$ac_ext >&5
21476         ac_cv_c_bigendian=no
21479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21480 else
21481   echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484         # It does not; compile a test program.
21485 if test "$cross_compiling" = yes; then
21486   # try to guess the endianness by grepping values into an object file
21487   ac_cv_c_bigendian=unknown
21488   cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h.  */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h.  */
21494 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21495 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21496 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21497 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21498 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21499 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21500 int
21501 main ()
21503  _ascii (); _ebcdic ();
21504   ;
21505   return 0;
21507 _ACEOF
21508 rm -f conftest.$ac_objext
21509 if { (ac_try="$ac_compile"
21510 case "(($ac_try" in
21511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21512   *) ac_try_echo=$ac_try;;
21513 esac
21514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21515   (eval "$ac_compile") 2>conftest.er1
21516   ac_status=$?
21517   grep -v '^ *+' conftest.er1 >conftest.err
21518   rm -f conftest.er1
21519   cat conftest.err >&5
21520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521   (exit $ac_status); } && {
21522          test -z "$ac_c_werror_flag" ||
21523          test ! -s conftest.err
21524        } && test -s conftest.$ac_objext; then
21525   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21526   ac_cv_c_bigendian=yes
21528 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21529   if test "$ac_cv_c_bigendian" = unknown; then
21530     ac_cv_c_bigendian=no
21531   else
21532     # finding both strings is unlikely to happen, but who knows?
21533     ac_cv_c_bigendian=unknown
21534   fi
21536 else
21537   echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21544 else
21545   cat >conftest.$ac_ext <<_ACEOF
21546 /* confdefs.h.  */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h.  */
21551 $ac_includes_default
21552 int
21553 main ()
21556   /* Are we little or big endian?  From Harbison&Steele.  */
21557   union
21558   {
21559     long int l;
21560     char c[sizeof (long int)];
21561   } u;
21562   u.l = 1;
21563   return u.c[sizeof (long int) - 1] == 1;
21565   ;
21566   return 0;
21568 _ACEOF
21569 rm -f conftest$ac_exeext
21570 if { (ac_try="$ac_link"
21571 case "(($ac_try" in
21572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573   *) ac_try_echo=$ac_try;;
21574 esac
21575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576   (eval "$ac_link") 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21580   { (case "(($ac_try" in
21581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582   *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585   (eval "$ac_try") 2>&5
21586   ac_status=$?
21587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588   (exit $ac_status); }; }; then
21589   ac_cv_c_bigendian=no
21590 else
21591   echo "$as_me: program exited with status $ac_status" >&5
21592 echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21595 ( exit $ac_status )
21596 ac_cv_c_bigendian=yes
21598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21606 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21607 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21608 case $ac_cv_c_bigendian in
21609   yes)
21611 cat >>confdefs.h <<\_ACEOF
21612 #define WORDS_BIGENDIAN 1
21613 _ACEOF
21614  ;;
21615   no)
21616      ;;
21617   *)
21618     { { echo "$as_me:$LINENO: error: unknown endianness
21619 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21620 echo "$as_me: error: unknown endianness
21621 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21622    { (exit 1); exit 1; }; } ;;
21623 esac
21650 for ac_func in tzset mbstowcs opendir readdir chdir chroot getuid setlocale strerror strerror_r snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday posix_fadvise madvise
21652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21656   echo $ECHO_N "(cached) $ECHO_C" >&6
21657 else
21658   cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h.  */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h.  */
21664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21665    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21666 #define $ac_func innocuous_$ac_func
21668 /* System header to define __stub macros and hopefully few prototypes,
21669     which can conflict with char $ac_func (); below.
21670     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21671     <limits.h> exists even on freestanding compilers.  */
21673 #ifdef __STDC__
21674 # include <limits.h>
21675 #else
21676 # include <assert.h>
21677 #endif
21679 #undef $ac_func
21681 /* Override any GCC internal prototype to avoid an error.
21682    Use char because int might match the return type of a GCC
21683    builtin and then its argument prototype would still apply.  */
21684 #ifdef __cplusplus
21685 extern "C"
21686 #endif
21687 char $ac_func ();
21688 /* The GNU C library defines this for functions which it implements
21689     to always fail with ENOSYS.  Some functions are actually named
21690     something starting with __ and the normal name is an alias.  */
21691 #if defined __stub_$ac_func || defined __stub___$ac_func
21692 choke me
21693 #endif
21695 int
21696 main ()
21698 return $ac_func ();
21699   ;
21700   return 0;
21702 _ACEOF
21703 rm -f conftest.$ac_objext conftest$ac_exeext
21704 if { (ac_try="$ac_link"
21705 case "(($ac_try" in
21706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707   *) ac_try_echo=$ac_try;;
21708 esac
21709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710   (eval "$ac_link") 2>conftest.er1
21711   ac_status=$?
21712   grep -v '^ *+' conftest.er1 >conftest.err
21713   rm -f conftest.er1
21714   cat conftest.err >&5
21715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716   (exit $ac_status); } && {
21717          test -z "$ac_c_werror_flag" ||
21718          test ! -s conftest.err
21719        } && test -s conftest$ac_exeext &&
21720        $as_test_x conftest$ac_exeext; then
21721   eval "$as_ac_var=yes"
21722 else
21723   echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21726         eval "$as_ac_var=no"
21729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21730       conftest$ac_exeext conftest.$ac_ext
21732 ac_res=`eval echo '${'$as_ac_var'}'`
21733                { echo "$as_me:$LINENO: result: $ac_res" >&5
21734 echo "${ECHO_T}$ac_res" >&6; }
21735 if test `eval echo '${'$as_ac_var'}'` = yes; then
21736   cat >>confdefs.h <<_ACEOF
21737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21738 _ACEOF
21741 done
21744 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
21745 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
21746 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
21747   echo $ECHO_N "(cached) $ECHO_C" >&6
21748 else
21749   cat >conftest.$ac_ext <<_ACEOF
21750 /* confdefs.h.  */
21751 _ACEOF
21752 cat confdefs.h >>conftest.$ac_ext
21753 cat >>conftest.$ac_ext <<_ACEOF
21754 /* end confdefs.h.  */
21755 #include <unistd.h>
21757 int
21758 main ()
21760 #ifndef fdatasync
21761   (void) fdatasync;
21762 #endif
21764   ;
21765   return 0;
21767 _ACEOF
21768 rm -f conftest.$ac_objext
21769 if { (ac_try="$ac_compile"
21770 case "(($ac_try" in
21771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772   *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775   (eval "$ac_compile") 2>conftest.er1
21776   ac_status=$?
21777   grep -v '^ *+' conftest.er1 >conftest.err
21778   rm -f conftest.er1
21779   cat conftest.err >&5
21780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781   (exit $ac_status); } && {
21782          test -z "$ac_c_werror_flag" ||
21783          test ! -s conftest.err
21784        } && test -s conftest.$ac_objext; then
21785   ac_cv_have_decl_fdatasync=yes
21786 else
21787   echo "$as_me: failed program was:" >&5
21788 sed 's/^/| /' conftest.$ac_ext >&5
21790         ac_cv_have_decl_fdatasync=no
21793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21795 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
21796 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
21797 if test $ac_cv_have_decl_fdatasync = yes; then
21799 cat >>confdefs.h <<_ACEOF
21800 #define HAVE_DECL_FDATASYNC 1
21801 _ACEOF
21804 else
21805   cat >>confdefs.h <<_ACEOF
21806 #define HAVE_DECL_FDATASYNC 0
21807 _ACEOF
21814 if test "x$enable_mmap" = "xyes"; then
21815   case "$host" in
21816   *cygwin*)
21817     # the normal mmap test does not work in cygwin
21819 for ac_func in mmap
21821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21825   echo $ECHO_N "(cached) $ECHO_C" >&6
21826 else
21827   cat >conftest.$ac_ext <<_ACEOF
21828 /* confdefs.h.  */
21829 _ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h.  */
21833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21835 #define $ac_func innocuous_$ac_func
21837 /* System header to define __stub macros and hopefully few prototypes,
21838     which can conflict with char $ac_func (); below.
21839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21840     <limits.h> exists even on freestanding compilers.  */
21842 #ifdef __STDC__
21843 # include <limits.h>
21844 #else
21845 # include <assert.h>
21846 #endif
21848 #undef $ac_func
21850 /* Override any GCC internal prototype to avoid an error.
21851    Use char because int might match the return type of a GCC
21852    builtin and then its argument prototype would still apply.  */
21853 #ifdef __cplusplus
21854 extern "C"
21855 #endif
21856 char $ac_func ();
21857 /* The GNU C library defines this for functions which it implements
21858     to always fail with ENOSYS.  Some functions are actually named
21859     something starting with __ and the normal name is an alias.  */
21860 #if defined __stub_$ac_func || defined __stub___$ac_func
21861 choke me
21862 #endif
21864 int
21865 main ()
21867 return $ac_func ();
21868   ;
21869   return 0;
21871 _ACEOF
21872 rm -f conftest.$ac_objext conftest$ac_exeext
21873 if { (ac_try="$ac_link"
21874 case "(($ac_try" in
21875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876   *) ac_try_echo=$ac_try;;
21877 esac
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879   (eval "$ac_link") 2>conftest.er1
21880   ac_status=$?
21881   grep -v '^ *+' conftest.er1 >conftest.err
21882   rm -f conftest.er1
21883   cat conftest.err >&5
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); } && {
21886          test -z "$ac_c_werror_flag" ||
21887          test ! -s conftest.err
21888        } && test -s conftest$ac_exeext &&
21889        $as_test_x conftest$ac_exeext; then
21890   eval "$as_ac_var=yes"
21891 else
21892   echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21895         eval "$as_ac_var=no"
21898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21899       conftest$ac_exeext conftest.$ac_ext
21901 ac_res=`eval echo '${'$as_ac_var'}'`
21902                { echo "$as_me:$LINENO: result: $ac_res" >&5
21903 echo "${ECHO_T}$ac_res" >&6; }
21904 if test `eval echo '${'$as_ac_var'}'` = yes; then
21905   cat >>confdefs.h <<_ACEOF
21906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21907 _ACEOF
21910 done
21912     if test "x$ac_cv_func_mmap" = "xyes"; then
21913       ac_cv_func_mmap_fixed_mapped=yes
21914     fi
21915   ;;
21916   *)
21918 for ac_header in sys/mman.h
21920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21922   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21925   echo $ECHO_N "(cached) $ECHO_C" >&6
21927 ac_res=`eval echo '${'$as_ac_Header'}'`
21928                { echo "$as_me:$LINENO: result: $ac_res" >&5
21929 echo "${ECHO_T}$ac_res" >&6; }
21930 else
21931   # Is the header compilable?
21932 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21934 cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h.  */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h.  */
21940 $ac_includes_default
21941 #include <$ac_header>
21942 _ACEOF
21943 rm -f conftest.$ac_objext
21944 if { (ac_try="$ac_compile"
21945 case "(($ac_try" in
21946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947   *) ac_try_echo=$ac_try;;
21948 esac
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950   (eval "$ac_compile") 2>conftest.er1
21951   ac_status=$?
21952   grep -v '^ *+' conftest.er1 >conftest.err
21953   rm -f conftest.er1
21954   cat conftest.err >&5
21955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); } && {
21957          test -z "$ac_c_werror_flag" ||
21958          test ! -s conftest.err
21959        } && test -s conftest.$ac_objext; then
21960   ac_header_compiler=yes
21961 else
21962   echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21965         ac_header_compiler=no
21968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21970 echo "${ECHO_T}$ac_header_compiler" >&6; }
21972 # Is the header present?
21973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21975 cat >conftest.$ac_ext <<_ACEOF
21976 /* confdefs.h.  */
21977 _ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h.  */
21981 #include <$ac_header>
21982 _ACEOF
21983 if { (ac_try="$ac_cpp conftest.$ac_ext"
21984 case "(($ac_try" in
21985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986   *) ac_try_echo=$ac_try;;
21987 esac
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21990   ac_status=$?
21991   grep -v '^ *+' conftest.er1 >conftest.err
21992   rm -f conftest.er1
21993   cat conftest.err >&5
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); } >/dev/null && {
21996          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21997          test ! -s conftest.err
21998        }; then
21999   ac_header_preproc=yes
22000 else
22001   echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004   ac_header_preproc=no
22007 rm -f conftest.err conftest.$ac_ext
22008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22009 echo "${ECHO_T}$ac_header_preproc" >&6; }
22011 # So?  What about this header?
22012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22013   yes:no: )
22014     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22018     ac_header_preproc=yes
22019     ;;
22020   no:yes:* )
22021     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22023     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22024 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22025     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22027     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22028 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22031     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22034     ;;
22035 esac
22036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22039   echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041   eval "$as_ac_Header=\$ac_header_preproc"
22043 ac_res=`eval echo '${'$as_ac_Header'}'`
22044                { echo "$as_me:$LINENO: result: $ac_res" >&5
22045 echo "${ECHO_T}$ac_res" >&6; }
22048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22049   cat >>confdefs.h <<_ACEOF
22050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22051 _ACEOF
22055 done
22059 for ac_header in stdlib.h unistd.h
22061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22063   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22066   echo $ECHO_N "(cached) $ECHO_C" >&6
22068 ac_res=`eval echo '${'$as_ac_Header'}'`
22069                { echo "$as_me:$LINENO: result: $ac_res" >&5
22070 echo "${ECHO_T}$ac_res" >&6; }
22071 else
22072   # Is the header compilable?
22073 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22075 cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h.  */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h.  */
22081 $ac_includes_default
22082 #include <$ac_header>
22083 _ACEOF
22084 rm -f conftest.$ac_objext
22085 if { (ac_try="$ac_compile"
22086 case "(($ac_try" in
22087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088   *) ac_try_echo=$ac_try;;
22089 esac
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091   (eval "$ac_compile") 2>conftest.er1
22092   ac_status=$?
22093   grep -v '^ *+' conftest.er1 >conftest.err
22094   rm -f conftest.er1
22095   cat conftest.err >&5
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); } && {
22098          test -z "$ac_c_werror_flag" ||
22099          test ! -s conftest.err
22100        } && test -s conftest.$ac_objext; then
22101   ac_header_compiler=yes
22102 else
22103   echo "$as_me: failed program was:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106         ac_header_compiler=no
22109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22111 echo "${ECHO_T}$ac_header_compiler" >&6; }
22113 # Is the header present?
22114 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22116 cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h.  */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h.  */
22122 #include <$ac_header>
22123 _ACEOF
22124 if { (ac_try="$ac_cpp conftest.$ac_ext"
22125 case "(($ac_try" in
22126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22127   *) ac_try_echo=$ac_try;;
22128 esac
22129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22131   ac_status=$?
22132   grep -v '^ *+' conftest.er1 >conftest.err
22133   rm -f conftest.er1
22134   cat conftest.err >&5
22135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22136   (exit $ac_status); } >/dev/null && {
22137          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22138          test ! -s conftest.err
22139        }; then
22140   ac_header_preproc=yes
22141 else
22142   echo "$as_me: failed program was:" >&5
22143 sed 's/^/| /' conftest.$ac_ext >&5
22145   ac_header_preproc=no
22148 rm -f conftest.err conftest.$ac_ext
22149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22150 echo "${ECHO_T}$ac_header_preproc" >&6; }
22152 # So?  What about this header?
22153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22154   yes:no: )
22155     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22159     ac_header_preproc=yes
22160     ;;
22161   no:yes:* )
22162     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22164     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22165 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22166     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22168     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22169 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22172     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22175     ;;
22176 esac
22177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22180   echo $ECHO_N "(cached) $ECHO_C" >&6
22181 else
22182   eval "$as_ac_Header=\$ac_header_preproc"
22184 ac_res=`eval echo '${'$as_ac_Header'}'`
22185                { echo "$as_me:$LINENO: result: $ac_res" >&5
22186 echo "${ECHO_T}$ac_res" >&6; }
22189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22190   cat >>confdefs.h <<_ACEOF
22191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22192 _ACEOF
22196 done
22199 for ac_func in getpagesize
22201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22205   echo $ECHO_N "(cached) $ECHO_C" >&6
22206 else
22207   cat >conftest.$ac_ext <<_ACEOF
22208 /* confdefs.h.  */
22209 _ACEOF
22210 cat confdefs.h >>conftest.$ac_ext
22211 cat >>conftest.$ac_ext <<_ACEOF
22212 /* end confdefs.h.  */
22213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22214    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22215 #define $ac_func innocuous_$ac_func
22217 /* System header to define __stub macros and hopefully few prototypes,
22218     which can conflict with char $ac_func (); below.
22219     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22220     <limits.h> exists even on freestanding compilers.  */
22222 #ifdef __STDC__
22223 # include <limits.h>
22224 #else
22225 # include <assert.h>
22226 #endif
22228 #undef $ac_func
22230 /* Override any GCC internal prototype to avoid an error.
22231    Use char because int might match the return type of a GCC
22232    builtin and then its argument prototype would still apply.  */
22233 #ifdef __cplusplus
22234 extern "C"
22235 #endif
22236 char $ac_func ();
22237 /* The GNU C library defines this for functions which it implements
22238     to always fail with ENOSYS.  Some functions are actually named
22239     something starting with __ and the normal name is an alias.  */
22240 #if defined __stub_$ac_func || defined __stub___$ac_func
22241 choke me
22242 #endif
22244 int
22245 main ()
22247 return $ac_func ();
22248   ;
22249   return 0;
22251 _ACEOF
22252 rm -f conftest.$ac_objext conftest$ac_exeext
22253 if { (ac_try="$ac_link"
22254 case "(($ac_try" in
22255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22256   *) ac_try_echo=$ac_try;;
22257 esac
22258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22259   (eval "$ac_link") 2>conftest.er1
22260   ac_status=$?
22261   grep -v '^ *+' conftest.er1 >conftest.err
22262   rm -f conftest.er1
22263   cat conftest.err >&5
22264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265   (exit $ac_status); } && {
22266          test -z "$ac_c_werror_flag" ||
22267          test ! -s conftest.err
22268        } && test -s conftest$ac_exeext &&
22269        $as_test_x conftest$ac_exeext; then
22270   eval "$as_ac_var=yes"
22271 else
22272   echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22275         eval "$as_ac_var=no"
22278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22279       conftest$ac_exeext conftest.$ac_ext
22281 ac_res=`eval echo '${'$as_ac_var'}'`
22282                { echo "$as_me:$LINENO: result: $ac_res" >&5
22283 echo "${ECHO_T}$ac_res" >&6; }
22284 if test `eval echo '${'$as_ac_var'}'` = yes; then
22285   cat >>confdefs.h <<_ACEOF
22286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22287 _ACEOF
22290 done
22292 { echo "$as_me:$LINENO: checking for working mmap" >&5
22293 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22294 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22295   echo $ECHO_N "(cached) $ECHO_C" >&6
22296 else
22297   if test "$cross_compiling" = yes; then
22298   ac_cv_func_mmap_fixed_mapped=no
22299 else
22300   cat >conftest.$ac_ext <<_ACEOF
22301 /* confdefs.h.  */
22302 _ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h.  */
22306 $ac_includes_default
22307 /* malloc might have been renamed as rpl_malloc. */
22308 #undef malloc
22310 /* Thanks to Mike Haertel and Jim Avera for this test.
22311    Here is a matrix of mmap possibilities:
22312         mmap private not fixed
22313         mmap private fixed at somewhere currently unmapped
22314         mmap private fixed at somewhere already mapped
22315         mmap shared not fixed
22316         mmap shared fixed at somewhere currently unmapped
22317         mmap shared fixed at somewhere already mapped
22318    For private mappings, we should verify that changes cannot be read()
22319    back from the file, nor mmap's back from the file at a different
22320    address.  (There have been systems where private was not correctly
22321    implemented like the infamous i386 svr4.0, and systems where the
22322    VM page cache was not coherent with the file system buffer cache
22323    like early versions of FreeBSD and possibly contemporary NetBSD.)
22324    For shared mappings, we should conversely verify that changes get
22325    propagated back to all the places they're supposed to be.
22327    Grep wants private fixed already mapped.
22328    The main things grep needs to know about mmap are:
22329    * does it exist and is it safe to write into the mmap'd area
22330    * how to use it (BSD variants)  */
22332 #include <fcntl.h>
22333 #include <sys/mman.h>
22335 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22336 char *malloc ();
22337 #endif
22339 /* This mess was copied from the GNU getpagesize.h.  */
22340 #ifndef HAVE_GETPAGESIZE
22341 /* Assume that all systems that can run configure have sys/param.h.  */
22342 # ifndef HAVE_SYS_PARAM_H
22343 #  define HAVE_SYS_PARAM_H 1
22344 # endif
22346 # ifdef _SC_PAGESIZE
22347 #  define getpagesize() sysconf(_SC_PAGESIZE)
22348 # else /* no _SC_PAGESIZE */
22349 #  ifdef HAVE_SYS_PARAM_H
22350 #   include <sys/param.h>
22351 #   ifdef EXEC_PAGESIZE
22352 #    define getpagesize() EXEC_PAGESIZE
22353 #   else /* no EXEC_PAGESIZE */
22354 #    ifdef NBPG
22355 #     define getpagesize() NBPG * CLSIZE
22356 #     ifndef CLSIZE
22357 #      define CLSIZE 1
22358 #     endif /* no CLSIZE */
22359 #    else /* no NBPG */
22360 #     ifdef NBPC
22361 #      define getpagesize() NBPC
22362 #     else /* no NBPC */
22363 #      ifdef PAGESIZE
22364 #       define getpagesize() PAGESIZE
22365 #      endif /* PAGESIZE */
22366 #     endif /* no NBPC */
22367 #    endif /* no NBPG */
22368 #   endif /* no EXEC_PAGESIZE */
22369 #  else /* no HAVE_SYS_PARAM_H */
22370 #   define getpagesize() 8192   /* punt totally */
22371 #  endif /* no HAVE_SYS_PARAM_H */
22372 # endif /* no _SC_PAGESIZE */
22374 #endif /* no HAVE_GETPAGESIZE */
22376 int
22377 main ()
22379   char *data, *data2, *data3;
22380   int i, pagesize;
22381   int fd;
22383   pagesize = getpagesize ();
22385   /* First, make a file with some known garbage in it. */
22386   data = (char *) malloc (pagesize);
22387   if (!data)
22388     return 1;
22389   for (i = 0; i < pagesize; ++i)
22390     *(data + i) = rand ();
22391   umask (0);
22392   fd = creat ("conftest.mmap", 0600);
22393   if (fd < 0)
22394     return 1;
22395   if (write (fd, data, pagesize) != pagesize)
22396     return 1;
22397   close (fd);
22399   /* Next, try to mmap the file at a fixed address which already has
22400      something else allocated at it.  If we can, also make sure that
22401      we see the same garbage.  */
22402   fd = open ("conftest.mmap", O_RDWR);
22403   if (fd < 0)
22404     return 1;
22405   data2 = (char *) malloc (2 * pagesize);
22406   if (!data2)
22407     return 1;
22408   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22409   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22410                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22411     return 1;
22412   for (i = 0; i < pagesize; ++i)
22413     if (*(data + i) != *(data2 + i))
22414       return 1;
22416   /* Finally, make sure that changes to the mapped area do not
22417      percolate back to the file as seen by read().  (This is a bug on
22418      some variants of i386 svr4.0.)  */
22419   for (i = 0; i < pagesize; ++i)
22420     *(data2 + i) = *(data2 + i) + 1;
22421   data3 = (char *) malloc (pagesize);
22422   if (!data3)
22423     return 1;
22424   if (read (fd, data3, pagesize) != pagesize)
22425     return 1;
22426   for (i = 0; i < pagesize; ++i)
22427     if (*(data + i) != *(data3 + i))
22428       return 1;
22429   close (fd);
22430   return 0;
22432 _ACEOF
22433 rm -f conftest$ac_exeext
22434 if { (ac_try="$ac_link"
22435 case "(($ac_try" in
22436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22437   *) ac_try_echo=$ac_try;;
22438 esac
22439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22440   (eval "$ac_link") 2>&5
22441   ac_status=$?
22442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22444   { (case "(($ac_try" in
22445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446   *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449   (eval "$ac_try") 2>&5
22450   ac_status=$?
22451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452   (exit $ac_status); }; }; then
22453   ac_cv_func_mmap_fixed_mapped=yes
22454 else
22455   echo "$as_me: program exited with status $ac_status" >&5
22456 echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22459 ( exit $ac_status )
22460 ac_cv_func_mmap_fixed_mapped=no
22462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22467 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22468 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22469 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22471 cat >>confdefs.h <<\_ACEOF
22472 #define HAVE_MMAP 1
22473 _ACEOF
22476 rm -f conftest.mmap
22481 for ac_func in mmap munmap msync
22483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22487   echo $ECHO_N "(cached) $ECHO_C" >&6
22488 else
22489   cat >conftest.$ac_ext <<_ACEOF
22490 /* confdefs.h.  */
22491 _ACEOF
22492 cat confdefs.h >>conftest.$ac_ext
22493 cat >>conftest.$ac_ext <<_ACEOF
22494 /* end confdefs.h.  */
22495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22497 #define $ac_func innocuous_$ac_func
22499 /* System header to define __stub macros and hopefully few prototypes,
22500     which can conflict with char $ac_func (); below.
22501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22502     <limits.h> exists even on freestanding compilers.  */
22504 #ifdef __STDC__
22505 # include <limits.h>
22506 #else
22507 # include <assert.h>
22508 #endif
22510 #undef $ac_func
22512 /* Override any GCC internal prototype to avoid an error.
22513    Use char because int might match the return type of a GCC
22514    builtin and then its argument prototype would still apply.  */
22515 #ifdef __cplusplus
22516 extern "C"
22517 #endif
22518 char $ac_func ();
22519 /* The GNU C library defines this for functions which it implements
22520     to always fail with ENOSYS.  Some functions are actually named
22521     something starting with __ and the normal name is an alias.  */
22522 #if defined __stub_$ac_func || defined __stub___$ac_func
22523 choke me
22524 #endif
22526 int
22527 main ()
22529 return $ac_func ();
22530   ;
22531   return 0;
22533 _ACEOF
22534 rm -f conftest.$ac_objext conftest$ac_exeext
22535 if { (ac_try="$ac_link"
22536 case "(($ac_try" in
22537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538   *) ac_try_echo=$ac_try;;
22539 esac
22540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541   (eval "$ac_link") 2>conftest.er1
22542   ac_status=$?
22543   grep -v '^ *+' conftest.er1 >conftest.err
22544   rm -f conftest.er1
22545   cat conftest.err >&5
22546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547   (exit $ac_status); } && {
22548          test -z "$ac_c_werror_flag" ||
22549          test ! -s conftest.err
22550        } && test -s conftest$ac_exeext &&
22551        $as_test_x conftest$ac_exeext; then
22552   eval "$as_ac_var=yes"
22553 else
22554   echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22557         eval "$as_ac_var=no"
22560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22561       conftest$ac_exeext conftest.$ac_ext
22563 ac_res=`eval echo '${'$as_ac_var'}'`
22564                { echo "$as_me:$LINENO: result: $ac_res" >&5
22565 echo "${ECHO_T}$ac_res" >&6; }
22566 if test `eval echo '${'$as_ac_var'}'` = yes; then
22567   cat >>confdefs.h <<_ACEOF
22568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22569 _ACEOF
22572 done
22574     { echo "$as_me:$LINENO: checking whether madvise is declared" >&5
22575 echo $ECHO_N "checking whether madvise is declared... $ECHO_C" >&6; }
22576 if test "${ac_cv_have_decl_madvise+set}" = set; then
22577   echo $ECHO_N "(cached) $ECHO_C" >&6
22578 else
22579   cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h.  */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h.  */
22585 #ifdef HAVE_SYS_MMAN_H
22586                                      # include <sys/mman.h>
22587                                      #endif
22589 int
22590 main ()
22592 #ifndef madvise
22593   (void) madvise;
22594 #endif
22596   ;
22597   return 0;
22599 _ACEOF
22600 rm -f conftest.$ac_objext
22601 if { (ac_try="$ac_compile"
22602 case "(($ac_try" in
22603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604   *) ac_try_echo=$ac_try;;
22605 esac
22606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607   (eval "$ac_compile") 2>conftest.er1
22608   ac_status=$?
22609   grep -v '^ *+' conftest.er1 >conftest.err
22610   rm -f conftest.er1
22611   cat conftest.err >&5
22612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613   (exit $ac_status); } && {
22614          test -z "$ac_c_werror_flag" ||
22615          test ! -s conftest.err
22616        } && test -s conftest.$ac_objext; then
22617   ac_cv_have_decl_madvise=yes
22618 else
22619   echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22622         ac_cv_have_decl_madvise=no
22625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22627 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
22628 echo "${ECHO_T}$ac_cv_have_decl_madvise" >&6; }
22629 if test $ac_cv_have_decl_madvise = yes; then
22631 cat >>confdefs.h <<_ACEOF
22632 #define HAVE_DECL_MADVISE 1
22633 _ACEOF
22636 else
22637   cat >>confdefs.h <<_ACEOF
22638 #define HAVE_DECL_MADVISE 0
22639 _ACEOF
22645     if test "x$ac_cv_have_decl_madvise" = "xyes";
22646     then
22648 for ac_func in madvise
22650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22654   echo $ECHO_N "(cached) $ECHO_C" >&6
22655 else
22656   cat >conftest.$ac_ext <<_ACEOF
22657 /* confdefs.h.  */
22658 _ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h.  */
22662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22664 #define $ac_func innocuous_$ac_func
22666 /* System header to define __stub macros and hopefully few prototypes,
22667     which can conflict with char $ac_func (); below.
22668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22669     <limits.h> exists even on freestanding compilers.  */
22671 #ifdef __STDC__
22672 # include <limits.h>
22673 #else
22674 # include <assert.h>
22675 #endif
22677 #undef $ac_func
22679 /* Override any GCC internal prototype to avoid an error.
22680    Use char because int might match the return type of a GCC
22681    builtin and then its argument prototype would still apply.  */
22682 #ifdef __cplusplus
22683 extern "C"
22684 #endif
22685 char $ac_func ();
22686 /* The GNU C library defines this for functions which it implements
22687     to always fail with ENOSYS.  Some functions are actually named
22688     something starting with __ and the normal name is an alias.  */
22689 #if defined __stub_$ac_func || defined __stub___$ac_func
22690 choke me
22691 #endif
22693 int
22694 main ()
22696 return $ac_func ();
22697   ;
22698   return 0;
22700 _ACEOF
22701 rm -f conftest.$ac_objext conftest$ac_exeext
22702 if { (ac_try="$ac_link"
22703 case "(($ac_try" in
22704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705   *) ac_try_echo=$ac_try;;
22706 esac
22707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22708   (eval "$ac_link") 2>conftest.er1
22709   ac_status=$?
22710   grep -v '^ *+' conftest.er1 >conftest.err
22711   rm -f conftest.er1
22712   cat conftest.err >&5
22713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714   (exit $ac_status); } && {
22715          test -z "$ac_c_werror_flag" ||
22716          test ! -s conftest.err
22717        } && test -s conftest$ac_exeext &&
22718        $as_test_x conftest$ac_exeext; then
22719   eval "$as_ac_var=yes"
22720 else
22721   echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22724         eval "$as_ac_var=no"
22727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22728       conftest$ac_exeext conftest.$ac_ext
22730 ac_res=`eval echo '${'$as_ac_var'}'`
22731                { echo "$as_me:$LINENO: result: $ac_res" >&5
22732 echo "${ECHO_T}$ac_res" >&6; }
22733 if test `eval echo '${'$as_ac_var'}'` = yes; then
22734   cat >>confdefs.h <<_ACEOF
22735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22736 _ACEOF
22739 done
22741     else
22743 for ac_func in posix_madvise
22745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22749   echo $ECHO_N "(cached) $ECHO_C" >&6
22750 else
22751   cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h.  */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h.  */
22757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22759 #define $ac_func innocuous_$ac_func
22761 /* System header to define __stub macros and hopefully few prototypes,
22762     which can conflict with char $ac_func (); below.
22763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22764     <limits.h> exists even on freestanding compilers.  */
22766 #ifdef __STDC__
22767 # include <limits.h>
22768 #else
22769 # include <assert.h>
22770 #endif
22772 #undef $ac_func
22774 /* Override any GCC internal prototype to avoid an error.
22775    Use char because int might match the return type of a GCC
22776    builtin and then its argument prototype would still apply.  */
22777 #ifdef __cplusplus
22778 extern "C"
22779 #endif
22780 char $ac_func ();
22781 /* The GNU C library defines this for functions which it implements
22782     to always fail with ENOSYS.  Some functions are actually named
22783     something starting with __ and the normal name is an alias.  */
22784 #if defined __stub_$ac_func || defined __stub___$ac_func
22785 choke me
22786 #endif
22788 int
22789 main ()
22791 return $ac_func ();
22792   ;
22793   return 0;
22795 _ACEOF
22796 rm -f conftest.$ac_objext conftest$ac_exeext
22797 if { (ac_try="$ac_link"
22798 case "(($ac_try" in
22799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800   *) ac_try_echo=$ac_try;;
22801 esac
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803   (eval "$ac_link") 2>conftest.er1
22804   ac_status=$?
22805   grep -v '^ *+' conftest.er1 >conftest.err
22806   rm -f conftest.er1
22807   cat conftest.err >&5
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); } && {
22810          test -z "$ac_c_werror_flag" ||
22811          test ! -s conftest.err
22812        } && test -s conftest$ac_exeext &&
22813        $as_test_x conftest$ac_exeext; then
22814   eval "$as_ac_var=yes"
22815 else
22816   echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22819         eval "$as_ac_var=no"
22822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22823       conftest$ac_exeext conftest.$ac_ext
22825 ac_res=`eval echo '${'$as_ac_var'}'`
22826                { echo "$as_me:$LINENO: result: $ac_res" >&5
22827 echo "${ECHO_T}$ac_res" >&6; }
22828 if test `eval echo '${'$as_ac_var'}'` = yes; then
22829   cat >>confdefs.h <<_ACEOF
22830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22831 _ACEOF
22834 done
22836       if test "x$ac_cv_func_posix_madvise" != "xyes"; then
22837         { echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
22838 echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
22839       fi
22840     fi
22841   ;;
22842   esac
22843   if test "x$ac_cv_func_mmap" != "xyes";
22844   then
22845     { { echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
22846 echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
22847    { (exit 1); exit 1; }; }
22848   fi
22851 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
22852 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
22853 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
22854   echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22856   cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862 #define _XOPEN_SOURCE 600
22863 #include <fcntl.h>
22865 int
22866 main ()
22868 #ifndef posix_fadvise
22869   (void) posix_fadvise;
22870 #endif
22872   ;
22873   return 0;
22875 _ACEOF
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880   *) ac_try_echo=$ac_try;;
22881 esac
22882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883   (eval "$ac_compile") 2>conftest.er1
22884   ac_status=$?
22885   grep -v '^ *+' conftest.er1 >conftest.err
22886   rm -f conftest.er1
22887   cat conftest.err >&5
22888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); } && {
22890          test -z "$ac_c_werror_flag" ||
22891          test ! -s conftest.err
22892        } && test -s conftest.$ac_objext; then
22893   ac_cv_have_decl_posix_fadvise=yes
22894 else
22895   echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898         ac_cv_have_decl_posix_fadvise=no
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
22904 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
22905 if test $ac_cv_have_decl_posix_fadvise = yes; then
22907 cat >>confdefs.h <<_ACEOF
22908 #define HAVE_DECL_POSIX_FADVISE 1
22909 _ACEOF
22912 else
22913   cat >>confdefs.h <<_ACEOF
22914 #define HAVE_DECL_POSIX_FADVISE 0
22915 _ACEOF
22922 for ac_func in posix_fadvise
22924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22928   echo $ECHO_N "(cached) $ECHO_C" >&6
22929 else
22930   cat >conftest.$ac_ext <<_ACEOF
22931 /* confdefs.h.  */
22932 _ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h.  */
22936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22938 #define $ac_func innocuous_$ac_func
22940 /* System header to define __stub macros and hopefully few prototypes,
22941     which can conflict with char $ac_func (); below.
22942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22943     <limits.h> exists even on freestanding compilers.  */
22945 #ifdef __STDC__
22946 # include <limits.h>
22947 #else
22948 # include <assert.h>
22949 #endif
22951 #undef $ac_func
22953 /* Override any GCC internal prototype to avoid an error.
22954    Use char because int might match the return type of a GCC
22955    builtin and then its argument prototype would still apply.  */
22956 #ifdef __cplusplus
22957 extern "C"
22958 #endif
22959 char $ac_func ();
22960 /* The GNU C library defines this for functions which it implements
22961     to always fail with ENOSYS.  Some functions are actually named
22962     something starting with __ and the normal name is an alias.  */
22963 #if defined __stub_$ac_func || defined __stub___$ac_func
22964 choke me
22965 #endif
22967 int
22968 main ()
22970 return $ac_func ();
22971   ;
22972   return 0;
22974 _ACEOF
22975 rm -f conftest.$ac_objext conftest$ac_exeext
22976 if { (ac_try="$ac_link"
22977 case "(($ac_try" in
22978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979   *) ac_try_echo=$ac_try;;
22980 esac
22981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22982   (eval "$ac_link") 2>conftest.er1
22983   ac_status=$?
22984   grep -v '^ *+' conftest.er1 >conftest.err
22985   rm -f conftest.er1
22986   cat conftest.err >&5
22987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988   (exit $ac_status); } && {
22989          test -z "$ac_c_werror_flag" ||
22990          test ! -s conftest.err
22991        } && test -s conftest$ac_exeext &&
22992        $as_test_x conftest$ac_exeext; then
22993   eval "$as_ac_var=yes"
22994 else
22995   echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998         eval "$as_ac_var=no"
23001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23002       conftest$ac_exeext conftest.$ac_ext
23004 ac_res=`eval echo '${'$as_ac_var'}'`
23005                { echo "$as_me:$LINENO: result: $ac_res" >&5
23006 echo "${ECHO_T}$ac_res" >&6; }
23007 if test `eval echo '${'$as_ac_var'}'` = yes; then
23008   cat >>confdefs.h <<_ACEOF
23009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23010 _ACEOF
23013 done
23016 if test "x$enable_mmap" = xyes; then
23017   case "$host" in
23018     *cygwin*)
23019        # the normal mmap test does not work in cygwin
23021 for ac_func in mmap
23023 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23024 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23025 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23027   echo $ECHO_N "(cached) $ECHO_C" >&6
23028 else
23029   cat >conftest.$ac_ext <<_ACEOF
23030 /* confdefs.h.  */
23031 _ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h.  */
23035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23037 #define $ac_func innocuous_$ac_func
23039 /* System header to define __stub macros and hopefully few prototypes,
23040     which can conflict with char $ac_func (); below.
23041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23042     <limits.h> exists even on freestanding compilers.  */
23044 #ifdef __STDC__
23045 # include <limits.h>
23046 #else
23047 # include <assert.h>
23048 #endif
23050 #undef $ac_func
23052 /* Override any GCC internal prototype to avoid an error.
23053    Use char because int might match the return type of a GCC
23054    builtin and then its argument prototype would still apply.  */
23055 #ifdef __cplusplus
23056 extern "C"
23057 #endif
23058 char $ac_func ();
23059 /* The GNU C library defines this for functions which it implements
23060     to always fail with ENOSYS.  Some functions are actually named
23061     something starting with __ and the normal name is an alias.  */
23062 #if defined __stub_$ac_func || defined __stub___$ac_func
23063 choke me
23064 #endif
23066 int
23067 main ()
23069 return $ac_func ();
23070   ;
23071   return 0;
23073 _ACEOF
23074 rm -f conftest.$ac_objext conftest$ac_exeext
23075 if { (ac_try="$ac_link"
23076 case "(($ac_try" in
23077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078   *) ac_try_echo=$ac_try;;
23079 esac
23080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081   (eval "$ac_link") 2>conftest.er1
23082   ac_status=$?
23083   grep -v '^ *+' conftest.er1 >conftest.err
23084   rm -f conftest.er1
23085   cat conftest.err >&5
23086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087   (exit $ac_status); } && {
23088          test -z "$ac_c_werror_flag" ||
23089          test ! -s conftest.err
23090        } && test -s conftest$ac_exeext &&
23091        $as_test_x conftest$ac_exeext; then
23092   eval "$as_ac_var=yes"
23093 else
23094   echo "$as_me: failed program was:" >&5
23095 sed 's/^/| /' conftest.$ac_ext >&5
23097         eval "$as_ac_var=no"
23100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23101       conftest$ac_exeext conftest.$ac_ext
23103 ac_res=`eval echo '${'$as_ac_var'}'`
23104                { echo "$as_me:$LINENO: result: $ac_res" >&5
23105 echo "${ECHO_T}$ac_res" >&6; }
23106 if test `eval echo '${'$as_ac_var'}'` = yes; then
23107   cat >>confdefs.h <<_ACEOF
23108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23109 _ACEOF
23112 done
23114        if  "x${ac_cv_func_mmap}" = xyes ; then
23115          ac_cv_func_mmap_fixed_mapped=yes
23116        fi
23117     ;;
23118     *)
23121 for ac_header in stdlib.h unistd.h
23123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23125   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23128   echo $ECHO_N "(cached) $ECHO_C" >&6
23130 ac_res=`eval echo '${'$as_ac_Header'}'`
23131                { echo "$as_me:$LINENO: result: $ac_res" >&5
23132 echo "${ECHO_T}$ac_res" >&6; }
23133 else
23134   # Is the header compilable?
23135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h.  */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h.  */
23143 $ac_includes_default
23144 #include <$ac_header>
23145 _ACEOF
23146 rm -f conftest.$ac_objext
23147 if { (ac_try="$ac_compile"
23148 case "(($ac_try" in
23149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150   *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153   (eval "$ac_compile") 2>conftest.er1
23154   ac_status=$?
23155   grep -v '^ *+' conftest.er1 >conftest.err
23156   rm -f conftest.er1
23157   cat conftest.err >&5
23158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159   (exit $ac_status); } && {
23160          test -z "$ac_c_werror_flag" ||
23161          test ! -s conftest.err
23162        } && test -s conftest.$ac_objext; then
23163   ac_header_compiler=yes
23164 else
23165   echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168         ac_header_compiler=no
23171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23173 echo "${ECHO_T}$ac_header_compiler" >&6; }
23175 # Is the header present?
23176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23178 cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h.  */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h.  */
23184 #include <$ac_header>
23185 _ACEOF
23186 if { (ac_try="$ac_cpp conftest.$ac_ext"
23187 case "(($ac_try" in
23188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23189   *) ac_try_echo=$ac_try;;
23190 esac
23191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23193   ac_status=$?
23194   grep -v '^ *+' conftest.er1 >conftest.err
23195   rm -f conftest.er1
23196   cat conftest.err >&5
23197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198   (exit $ac_status); } >/dev/null && {
23199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23200          test ! -s conftest.err
23201        }; then
23202   ac_header_preproc=yes
23203 else
23204   echo "$as_me: failed program was:" >&5
23205 sed 's/^/| /' conftest.$ac_ext >&5
23207   ac_header_preproc=no
23210 rm -f conftest.err conftest.$ac_ext
23211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23212 echo "${ECHO_T}$ac_header_preproc" >&6; }
23214 # So?  What about this header?
23215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23216   yes:no: )
23217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23221     ac_header_preproc=yes
23222     ;;
23223   no:yes:* )
23224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23237     ;;
23238 esac
23239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23242   echo $ECHO_N "(cached) $ECHO_C" >&6
23243 else
23244   eval "$as_ac_Header=\$ac_header_preproc"
23246 ac_res=`eval echo '${'$as_ac_Header'}'`
23247                { echo "$as_me:$LINENO: result: $ac_res" >&5
23248 echo "${ECHO_T}$ac_res" >&6; }
23251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23252   cat >>confdefs.h <<_ACEOF
23253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23254 _ACEOF
23258 done
23261 for ac_func in getpagesize
23263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23267   echo $ECHO_N "(cached) $ECHO_C" >&6
23268 else
23269   cat >conftest.$ac_ext <<_ACEOF
23270 /* confdefs.h.  */
23271 _ACEOF
23272 cat confdefs.h >>conftest.$ac_ext
23273 cat >>conftest.$ac_ext <<_ACEOF
23274 /* end confdefs.h.  */
23275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23277 #define $ac_func innocuous_$ac_func
23279 /* System header to define __stub macros and hopefully few prototypes,
23280     which can conflict with char $ac_func (); below.
23281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23282     <limits.h> exists even on freestanding compilers.  */
23284 #ifdef __STDC__
23285 # include <limits.h>
23286 #else
23287 # include <assert.h>
23288 #endif
23290 #undef $ac_func
23292 /* Override any GCC internal prototype to avoid an error.
23293    Use char because int might match the return type of a GCC
23294    builtin and then its argument prototype would still apply.  */
23295 #ifdef __cplusplus
23296 extern "C"
23297 #endif
23298 char $ac_func ();
23299 /* The GNU C library defines this for functions which it implements
23300     to always fail with ENOSYS.  Some functions are actually named
23301     something starting with __ and the normal name is an alias.  */
23302 #if defined __stub_$ac_func || defined __stub___$ac_func
23303 choke me
23304 #endif
23306 int
23307 main ()
23309 return $ac_func ();
23310   ;
23311   return 0;
23313 _ACEOF
23314 rm -f conftest.$ac_objext conftest$ac_exeext
23315 if { (ac_try="$ac_link"
23316 case "(($ac_try" in
23317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318   *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321   (eval "$ac_link") 2>conftest.er1
23322   ac_status=$?
23323   grep -v '^ *+' conftest.er1 >conftest.err
23324   rm -f conftest.er1
23325   cat conftest.err >&5
23326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327   (exit $ac_status); } && {
23328          test -z "$ac_c_werror_flag" ||
23329          test ! -s conftest.err
23330        } && test -s conftest$ac_exeext &&
23331        $as_test_x conftest$ac_exeext; then
23332   eval "$as_ac_var=yes"
23333 else
23334   echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23337         eval "$as_ac_var=no"
23340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23341       conftest$ac_exeext conftest.$ac_ext
23343 ac_res=`eval echo '${'$as_ac_var'}'`
23344                { echo "$as_me:$LINENO: result: $ac_res" >&5
23345 echo "${ECHO_T}$ac_res" >&6; }
23346 if test `eval echo '${'$as_ac_var'}'` = yes; then
23347   cat >>confdefs.h <<_ACEOF
23348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23349 _ACEOF
23352 done
23354 { echo "$as_me:$LINENO: checking for working mmap" >&5
23355 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
23356 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23357   echo $ECHO_N "(cached) $ECHO_C" >&6
23358 else
23359   if test "$cross_compiling" = yes; then
23360   ac_cv_func_mmap_fixed_mapped=no
23361 else
23362   cat >conftest.$ac_ext <<_ACEOF
23363 /* confdefs.h.  */
23364 _ACEOF
23365 cat confdefs.h >>conftest.$ac_ext
23366 cat >>conftest.$ac_ext <<_ACEOF
23367 /* end confdefs.h.  */
23368 $ac_includes_default
23369 /* malloc might have been renamed as rpl_malloc. */
23370 #undef malloc
23372 /* Thanks to Mike Haertel and Jim Avera for this test.
23373    Here is a matrix of mmap possibilities:
23374         mmap private not fixed
23375         mmap private fixed at somewhere currently unmapped
23376         mmap private fixed at somewhere already mapped
23377         mmap shared not fixed
23378         mmap shared fixed at somewhere currently unmapped
23379         mmap shared fixed at somewhere already mapped
23380    For private mappings, we should verify that changes cannot be read()
23381    back from the file, nor mmap's back from the file at a different
23382    address.  (There have been systems where private was not correctly
23383    implemented like the infamous i386 svr4.0, and systems where the
23384    VM page cache was not coherent with the file system buffer cache
23385    like early versions of FreeBSD and possibly contemporary NetBSD.)
23386    For shared mappings, we should conversely verify that changes get
23387    propagated back to all the places they're supposed to be.
23389    Grep wants private fixed already mapped.
23390    The main things grep needs to know about mmap are:
23391    * does it exist and is it safe to write into the mmap'd area
23392    * how to use it (BSD variants)  */
23394 #include <fcntl.h>
23395 #include <sys/mman.h>
23397 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23398 char *malloc ();
23399 #endif
23401 /* This mess was copied from the GNU getpagesize.h.  */
23402 #ifndef HAVE_GETPAGESIZE
23403 /* Assume that all systems that can run configure have sys/param.h.  */
23404 # ifndef HAVE_SYS_PARAM_H
23405 #  define HAVE_SYS_PARAM_H 1
23406 # endif
23408 # ifdef _SC_PAGESIZE
23409 #  define getpagesize() sysconf(_SC_PAGESIZE)
23410 # else /* no _SC_PAGESIZE */
23411 #  ifdef HAVE_SYS_PARAM_H
23412 #   include <sys/param.h>
23413 #   ifdef EXEC_PAGESIZE
23414 #    define getpagesize() EXEC_PAGESIZE
23415 #   else /* no EXEC_PAGESIZE */
23416 #    ifdef NBPG
23417 #     define getpagesize() NBPG * CLSIZE
23418 #     ifndef CLSIZE
23419 #      define CLSIZE 1
23420 #     endif /* no CLSIZE */
23421 #    else /* no NBPG */
23422 #     ifdef NBPC
23423 #      define getpagesize() NBPC
23424 #     else /* no NBPC */
23425 #      ifdef PAGESIZE
23426 #       define getpagesize() PAGESIZE
23427 #      endif /* PAGESIZE */
23428 #     endif /* no NBPC */
23429 #    endif /* no NBPG */
23430 #   endif /* no EXEC_PAGESIZE */
23431 #  else /* no HAVE_SYS_PARAM_H */
23432 #   define getpagesize() 8192   /* punt totally */
23433 #  endif /* no HAVE_SYS_PARAM_H */
23434 # endif /* no _SC_PAGESIZE */
23436 #endif /* no HAVE_GETPAGESIZE */
23438 int
23439 main ()
23441   char *data, *data2, *data3;
23442   int i, pagesize;
23443   int fd;
23445   pagesize = getpagesize ();
23447   /* First, make a file with some known garbage in it. */
23448   data = (char *) malloc (pagesize);
23449   if (!data)
23450     return 1;
23451   for (i = 0; i < pagesize; ++i)
23452     *(data + i) = rand ();
23453   umask (0);
23454   fd = creat ("conftest.mmap", 0600);
23455   if (fd < 0)
23456     return 1;
23457   if (write (fd, data, pagesize) != pagesize)
23458     return 1;
23459   close (fd);
23461   /* Next, try to mmap the file at a fixed address which already has
23462      something else allocated at it.  If we can, also make sure that
23463      we see the same garbage.  */
23464   fd = open ("conftest.mmap", O_RDWR);
23465   if (fd < 0)
23466     return 1;
23467   data2 = (char *) malloc (2 * pagesize);
23468   if (!data2)
23469     return 1;
23470   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
23471   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23472                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23473     return 1;
23474   for (i = 0; i < pagesize; ++i)
23475     if (*(data + i) != *(data2 + i))
23476       return 1;
23478   /* Finally, make sure that changes to the mapped area do not
23479      percolate back to the file as seen by read().  (This is a bug on
23480      some variants of i386 svr4.0.)  */
23481   for (i = 0; i < pagesize; ++i)
23482     *(data2 + i) = *(data2 + i) + 1;
23483   data3 = (char *) malloc (pagesize);
23484   if (!data3)
23485     return 1;
23486   if (read (fd, data3, pagesize) != pagesize)
23487     return 1;
23488   for (i = 0; i < pagesize; ++i)
23489     if (*(data + i) != *(data3 + i))
23490       return 1;
23491   close (fd);
23492   return 0;
23494 _ACEOF
23495 rm -f conftest$ac_exeext
23496 if { (ac_try="$ac_link"
23497 case "(($ac_try" in
23498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499   *) ac_try_echo=$ac_try;;
23500 esac
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502   (eval "$ac_link") 2>&5
23503   ac_status=$?
23504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23506   { (case "(($ac_try" in
23507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508   *) ac_try_echo=$ac_try;;
23509 esac
23510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511   (eval "$ac_try") 2>&5
23512   ac_status=$?
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); }; }; then
23515   ac_cv_func_mmap_fixed_mapped=yes
23516 else
23517   echo "$as_me: program exited with status $ac_status" >&5
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23521 ( exit $ac_status )
23522 ac_cv_func_mmap_fixed_mapped=no
23524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23529 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23530 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
23531 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23533 cat >>confdefs.h <<\_ACEOF
23534 #define HAVE_MMAP 1
23535 _ACEOF
23538 rm -f conftest.mmap
23540     ;;
23541   esac
23546 case $TERM in
23547        #   for the most important terminal types we directly know the sequences
23548        xterm|xterm*|vt220|vt220*)
23549                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
23550                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
23551        ;;
23552        vt100|vt100*|cygwin)
23553                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
23554                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
23555        ;;
23556        *)
23557                T_MD=''
23558                T_ME=''
23559        ;;
23560 esac
23561   { echo "$as_me:$LINENO: result: " >&5
23562 echo "${ECHO_T}" >&6; }
23563   { echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
23564 echo "${ECHO_T}${T_MD}IEEE Math Checks${T_ME}" >&6; }
23568 for ac_func in fpclassify
23570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23574   echo $ECHO_N "(cached) $ECHO_C" >&6
23575 else
23576   cat >conftest.$ac_ext <<_ACEOF
23577 /* confdefs.h.  */
23578 _ACEOF
23579 cat confdefs.h >>conftest.$ac_ext
23580 cat >>conftest.$ac_ext <<_ACEOF
23581 /* end confdefs.h.  */
23582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23584 #define $ac_func innocuous_$ac_func
23586 /* System header to define __stub macros and hopefully few prototypes,
23587     which can conflict with char $ac_func (); below.
23588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23589     <limits.h> exists even on freestanding compilers.  */
23591 #ifdef __STDC__
23592 # include <limits.h>
23593 #else
23594 # include <assert.h>
23595 #endif
23597 #undef $ac_func
23599 /* Override any GCC internal prototype to avoid an error.
23600    Use char because int might match the return type of a GCC
23601    builtin and then its argument prototype would still apply.  */
23602 #ifdef __cplusplus
23603 extern "C"
23604 #endif
23605 char $ac_func ();
23606 /* The GNU C library defines this for functions which it implements
23607     to always fail with ENOSYS.  Some functions are actually named
23608     something starting with __ and the normal name is an alias.  */
23609 #if defined __stub_$ac_func || defined __stub___$ac_func
23610 choke me
23611 #endif
23613 int
23614 main ()
23616 return $ac_func ();
23617   ;
23618   return 0;
23620 _ACEOF
23621 rm -f conftest.$ac_objext conftest$ac_exeext
23622 if { (ac_try="$ac_link"
23623 case "(($ac_try" in
23624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625   *) ac_try_echo=$ac_try;;
23626 esac
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628   (eval "$ac_link") 2>conftest.er1
23629   ac_status=$?
23630   grep -v '^ *+' conftest.er1 >conftest.err
23631   rm -f conftest.er1
23632   cat conftest.err >&5
23633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); } && {
23635          test -z "$ac_c_werror_flag" ||
23636          test ! -s conftest.err
23637        } && test -s conftest$ac_exeext &&
23638        $as_test_x conftest$ac_exeext; then
23639   eval "$as_ac_var=yes"
23640 else
23641   echo "$as_me: failed program was:" >&5
23642 sed 's/^/| /' conftest.$ac_ext >&5
23644         eval "$as_ac_var=no"
23647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23648       conftest$ac_exeext conftest.$ac_ext
23650 ac_res=`eval echo '${'$as_ac_var'}'`
23651                { echo "$as_me:$LINENO: result: $ac_res" >&5
23652 echo "${ECHO_T}$ac_res" >&6; }
23653 if test `eval echo '${'$as_ac_var'}'` = yes; then
23654   cat >>confdefs.h <<_ACEOF
23655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23656 _ACEOF
23658 else
23659   { echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
23660 echo $ECHO_N "checking for fpclassify with <math.h>... $ECHO_C" >&6; }
23661     cat >conftest.$ac_ext <<_ACEOF
23662 /* confdefs.h.  */
23663 _ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h.  */
23667 #include <math.h>
23668 volatile int x;volatile float f;
23669 int
23670 main ()
23672 x = fpclassify(f)
23673   ;
23674   return 0;
23676 _ACEOF
23677 rm -f conftest.$ac_objext conftest$ac_exeext
23678 if { (ac_try="$ac_link"
23679 case "(($ac_try" in
23680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681   *) ac_try_echo=$ac_try;;
23682 esac
23683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23684   (eval "$ac_link") 2>conftest.er1
23685   ac_status=$?
23686   grep -v '^ *+' conftest.er1 >conftest.err
23687   rm -f conftest.er1
23688   cat conftest.err >&5
23689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690   (exit $ac_status); } && {
23691          test -z "$ac_c_werror_flag" ||
23692          test ! -s conftest.err
23693        } && test -s conftest$ac_exeext &&
23694        $as_test_x conftest$ac_exeext; then
23695   { echo "$as_me:$LINENO: result: yes" >&5
23696 echo "${ECHO_T}yes" >&6; }
23697       cat >>confdefs.h <<\_ACEOF
23698 #define HAVE_FPCLASSIFY 1
23699 _ACEOF
23701 else
23702   echo "$as_me: failed program was:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23705         { echo "$as_me:$LINENO: result: no" >&5
23706 echo "${ECHO_T}no" >&6; }
23709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23710       conftest$ac_exeext conftest.$ac_ext
23712 done
23715 for ac_func in finite
23717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23721   echo $ECHO_N "(cached) $ECHO_C" >&6
23722 else
23723   cat >conftest.$ac_ext <<_ACEOF
23724 /* confdefs.h.  */
23725 _ACEOF
23726 cat confdefs.h >>conftest.$ac_ext
23727 cat >>conftest.$ac_ext <<_ACEOF
23728 /* end confdefs.h.  */
23729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23730    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23731 #define $ac_func innocuous_$ac_func
23733 /* System header to define __stub macros and hopefully few prototypes,
23734     which can conflict with char $ac_func (); below.
23735     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23736     <limits.h> exists even on freestanding compilers.  */
23738 #ifdef __STDC__
23739 # include <limits.h>
23740 #else
23741 # include <assert.h>
23742 #endif
23744 #undef $ac_func
23746 /* Override any GCC internal prototype to avoid an error.
23747    Use char because int might match the return type of a GCC
23748    builtin and then its argument prototype would still apply.  */
23749 #ifdef __cplusplus
23750 extern "C"
23751 #endif
23752 char $ac_func ();
23753 /* The GNU C library defines this for functions which it implements
23754     to always fail with ENOSYS.  Some functions are actually named
23755     something starting with __ and the normal name is an alias.  */
23756 #if defined __stub_$ac_func || defined __stub___$ac_func
23757 choke me
23758 #endif
23760 int
23761 main ()
23763 return $ac_func ();
23764   ;
23765   return 0;
23767 _ACEOF
23768 rm -f conftest.$ac_objext conftest$ac_exeext
23769 if { (ac_try="$ac_link"
23770 case "(($ac_try" in
23771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23772   *) ac_try_echo=$ac_try;;
23773 esac
23774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23775   (eval "$ac_link") 2>conftest.er1
23776   ac_status=$?
23777   grep -v '^ *+' conftest.er1 >conftest.err
23778   rm -f conftest.er1
23779   cat conftest.err >&5
23780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781   (exit $ac_status); } && {
23782          test -z "$ac_c_werror_flag" ||
23783          test ! -s conftest.err
23784        } && test -s conftest$ac_exeext &&
23785        $as_test_x conftest$ac_exeext; then
23786   eval "$as_ac_var=yes"
23787 else
23788   echo "$as_me: failed program was:" >&5
23789 sed 's/^/| /' conftest.$ac_ext >&5
23791         eval "$as_ac_var=no"
23794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23795       conftest$ac_exeext conftest.$ac_ext
23797 ac_res=`eval echo '${'$as_ac_var'}'`
23798                { echo "$as_me:$LINENO: result: $ac_res" >&5
23799 echo "${ECHO_T}$ac_res" >&6; }
23800 if test `eval echo '${'$as_ac_var'}'` = yes; then
23801   cat >>confdefs.h <<_ACEOF
23802 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23803 _ACEOF
23805 else
23807 for ac_func in isfinite
23809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23813   echo $ECHO_N "(cached) $ECHO_C" >&6
23814 else
23815   cat >conftest.$ac_ext <<_ACEOF
23816 /* confdefs.h.  */
23817 _ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h.  */
23821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23823 #define $ac_func innocuous_$ac_func
23825 /* System header to define __stub macros and hopefully few prototypes,
23826     which can conflict with char $ac_func (); below.
23827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23828     <limits.h> exists even on freestanding compilers.  */
23830 #ifdef __STDC__
23831 # include <limits.h>
23832 #else
23833 # include <assert.h>
23834 #endif
23836 #undef $ac_func
23838 /* Override any GCC internal prototype to avoid an error.
23839    Use char because int might match the return type of a GCC
23840    builtin and then its argument prototype would still apply.  */
23841 #ifdef __cplusplus
23842 extern "C"
23843 #endif
23844 char $ac_func ();
23845 /* The GNU C library defines this for functions which it implements
23846     to always fail with ENOSYS.  Some functions are actually named
23847     something starting with __ and the normal name is an alias.  */
23848 #if defined __stub_$ac_func || defined __stub___$ac_func
23849 choke me
23850 #endif
23852 int
23853 main ()
23855 return $ac_func ();
23856   ;
23857   return 0;
23859 _ACEOF
23860 rm -f conftest.$ac_objext conftest$ac_exeext
23861 if { (ac_try="$ac_link"
23862 case "(($ac_try" in
23863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864   *) ac_try_echo=$ac_try;;
23865 esac
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867   (eval "$ac_link") 2>conftest.er1
23868   ac_status=$?
23869   grep -v '^ *+' conftest.er1 >conftest.err
23870   rm -f conftest.er1
23871   cat conftest.err >&5
23872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873   (exit $ac_status); } && {
23874          test -z "$ac_c_werror_flag" ||
23875          test ! -s conftest.err
23876        } && test -s conftest$ac_exeext &&
23877        $as_test_x conftest$ac_exeext; then
23878   eval "$as_ac_var=yes"
23879 else
23880   echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23883         eval "$as_ac_var=no"
23886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23887       conftest$ac_exeext conftest.$ac_ext
23889 ac_res=`eval echo '${'$as_ac_var'}'`
23890                { echo "$as_me:$LINENO: result: $ac_res" >&5
23891 echo "${ECHO_T}$ac_res" >&6; }
23892 if test `eval echo '${'$as_ac_var'}'` = yes; then
23893   cat >>confdefs.h <<_ACEOF
23894 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23895 _ACEOF
23897 else
23898   { echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
23899 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6; }
23900     cat >conftest.$ac_ext <<_ACEOF
23901 /* confdefs.h.  */
23902 _ACEOF
23903 cat confdefs.h >>conftest.$ac_ext
23904 cat >>conftest.$ac_ext <<_ACEOF
23905 /* end confdefs.h.  */
23906 #include <math.h>
23907 volatile int x;volatile float f;
23908 int
23909 main ()
23911 x = isfinite(f)
23912   ;
23913   return 0;
23915 _ACEOF
23916 rm -f conftest.$ac_objext conftest$ac_exeext
23917 if { (ac_try="$ac_link"
23918 case "(($ac_try" in
23919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23920   *) ac_try_echo=$ac_try;;
23921 esac
23922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23923   (eval "$ac_link") 2>conftest.er1
23924   ac_status=$?
23925   grep -v '^ *+' conftest.er1 >conftest.err
23926   rm -f conftest.er1
23927   cat conftest.err >&5
23928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23929   (exit $ac_status); } && {
23930          test -z "$ac_c_werror_flag" ||
23931          test ! -s conftest.err
23932        } && test -s conftest$ac_exeext &&
23933        $as_test_x conftest$ac_exeext; then
23934   { echo "$as_me:$LINENO: result: yes" >&5
23935 echo "${ECHO_T}yes" >&6; }
23936       cat >>confdefs.h <<\_ACEOF
23937 #define HAVE_ISFINITE 1
23938 _ACEOF
23940 else
23941   echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23944         { echo "$as_me:$LINENO: result: no" >&5
23945 echo "${ECHO_T}no" >&6; }
23948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23949       conftest$ac_exeext conftest.$ac_ext
23951 done
23954 done
23957 for ac_func in isinf
23959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23963   echo $ECHO_N "(cached) $ECHO_C" >&6
23964 else
23965   cat >conftest.$ac_ext <<_ACEOF
23966 /* confdefs.h.  */
23967 _ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h.  */
23971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23973 #define $ac_func innocuous_$ac_func
23975 /* System header to define __stub macros and hopefully few prototypes,
23976     which can conflict with char $ac_func (); below.
23977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23978     <limits.h> exists even on freestanding compilers.  */
23980 #ifdef __STDC__
23981 # include <limits.h>
23982 #else
23983 # include <assert.h>
23984 #endif
23986 #undef $ac_func
23988 /* Override any GCC internal prototype to avoid an error.
23989    Use char because int might match the return type of a GCC
23990    builtin and then its argument prototype would still apply.  */
23991 #ifdef __cplusplus
23992 extern "C"
23993 #endif
23994 char $ac_func ();
23995 /* The GNU C library defines this for functions which it implements
23996     to always fail with ENOSYS.  Some functions are actually named
23997     something starting with __ and the normal name is an alias.  */
23998 #if defined __stub_$ac_func || defined __stub___$ac_func
23999 choke me
24000 #endif
24002 int
24003 main ()
24005 return $ac_func ();
24006   ;
24007   return 0;
24009 _ACEOF
24010 rm -f conftest.$ac_objext conftest$ac_exeext
24011 if { (ac_try="$ac_link"
24012 case "(($ac_try" in
24013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014   *) ac_try_echo=$ac_try;;
24015 esac
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017   (eval "$ac_link") 2>conftest.er1
24018   ac_status=$?
24019   grep -v '^ *+' conftest.er1 >conftest.err
24020   rm -f conftest.er1
24021   cat conftest.err >&5
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); } && {
24024          test -z "$ac_c_werror_flag" ||
24025          test ! -s conftest.err
24026        } && test -s conftest$ac_exeext &&
24027        $as_test_x conftest$ac_exeext; then
24028   eval "$as_ac_var=yes"
24029 else
24030   echo "$as_me: failed program was:" >&5
24031 sed 's/^/| /' conftest.$ac_ext >&5
24033         eval "$as_ac_var=no"
24036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24037       conftest$ac_exeext conftest.$ac_ext
24039 ac_res=`eval echo '${'$as_ac_var'}'`
24040                { echo "$as_me:$LINENO: result: $ac_res" >&5
24041 echo "${ECHO_T}$ac_res" >&6; }
24042 if test `eval echo '${'$as_ac_var'}'` = yes; then
24043   cat >>confdefs.h <<_ACEOF
24044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24045 _ACEOF
24047 else
24048   { echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
24049 echo $ECHO_N "checking for isinf with <math.h>... $ECHO_C" >&6; }
24050     cat >conftest.$ac_ext <<_ACEOF
24051 /* confdefs.h.  */
24052 _ACEOF
24053 cat confdefs.h >>conftest.$ac_ext
24054 cat >>conftest.$ac_ext <<_ACEOF
24055 /* end confdefs.h.  */
24056 #include <math.h>
24057 volatile int x;volatile float f;
24058 int
24059 main ()
24061 x = isinf(f)
24062   ;
24063   return 0;
24065 _ACEOF
24066 rm -f conftest.$ac_objext conftest$ac_exeext
24067 if { (ac_try="$ac_link"
24068 case "(($ac_try" in
24069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24070   *) ac_try_echo=$ac_try;;
24071 esac
24072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24073   (eval "$ac_link") 2>conftest.er1
24074   ac_status=$?
24075   grep -v '^ *+' conftest.er1 >conftest.err
24076   rm -f conftest.er1
24077   cat conftest.err >&5
24078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079   (exit $ac_status); } && {
24080          test -z "$ac_c_werror_flag" ||
24081          test ! -s conftest.err
24082        } && test -s conftest$ac_exeext &&
24083        $as_test_x conftest$ac_exeext; then
24084   { echo "$as_me:$LINENO: result: yes" >&5
24085 echo "${ECHO_T}yes" >&6; }
24086       cat >>confdefs.h <<\_ACEOF
24087 #define HAVE_ISINF 1
24088 _ACEOF
24090 else
24091   echo "$as_me: failed program was:" >&5
24092 sed 's/^/| /' conftest.$ac_ext >&5
24094         { echo "$as_me:$LINENO: result: no" >&5
24095 echo "${ECHO_T}no" >&6; }
24098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24099       conftest$ac_exeext conftest.$ac_ext
24101 done
24105 ac_ext=c
24106 ac_cpp='$CPP $CPPFLAGS'
24107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24111 _cflags=${CFLAGS}
24113 { echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
24114 echo $ECHO_N "checking if IEEE math works out of the box... $ECHO_C" >&6; }
24115 if test "${rd_cv_ieee_works+set}" = set; then
24116   echo $ECHO_N "(cached) $ECHO_C" >&6
24117 else
24118   if test "$cross_compiling" = yes; then
24119   :
24120 else
24121   cat >conftest.$ac_ext <<_ACEOF
24122 /* confdefs.h.  */
24123 _ACEOF
24124 cat confdefs.h >>conftest.$ac_ext
24125 cat >>conftest.$ac_ext <<_ACEOF
24126 /* end confdefs.h.  */
24129 #if HAVE_MATH_H
24130 #  include <math.h>
24131 #endif
24133 #if HAVE_FLOAT_H
24134 #  include <float.h>
24135 #endif
24137 #if HAVE_IEEEFP_H
24138 #  include <ieeefp.h>
24139 #endif
24141 #if HAVE_FP_CLASS_H
24142 #  include <fp_class.h>
24143 #endif
24145 /* Solaris */
24146 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24147 #  define HAVE_ISINF 1
24148 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24149 #endif
24151 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24152 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24153 #  undef isnan
24154 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24155 #endif
24157 /* Digital UNIX */
24158 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24159 #  define HAVE_ISINF 1
24160 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24161 #endif
24163 /* AIX */
24164 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24165 #  define HAVE_ISINF 1
24166 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24167 #endif
24169 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24170 #  define HAVE_ISINF 1
24171 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24172 #endif
24174 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24175 #  define HAVE_ISINF 1
24176 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24177 #endif
24179 #include <stdio.h>
24180 int main(void){
24181     double rrdnan,rrdinf,rrdc,rrdzero;
24182     ;
24183     /* some math to see if we get a floating point exception */
24184     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24185     rrdnan=0.0/rrdzero; /* especially here */
24186     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24187                   /* at run time without sig fpe */
24188     rrdc = rrdinf + rrdnan;
24189     rrdc = rrdinf / rrdnan;
24190     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24191     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24192     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24193     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24194     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24195     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24196     return 0;
24197  }
24198 _ACEOF
24199 rm -f conftest$ac_exeext
24200 if { (ac_try="$ac_link"
24201 case "(($ac_try" in
24202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24203   *) ac_try_echo=$ac_try;;
24204 esac
24205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24206   (eval "$ac_link") 2>&5
24207   ac_status=$?
24208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24210   { (case "(($ac_try" in
24211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24212   *) ac_try_echo=$ac_try;;
24213 esac
24214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24215   (eval "$ac_try") 2>&5
24216   ac_status=$?
24217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218   (exit $ac_status); }; }; then
24219   rd_cv_ieee_works=yes
24220 else
24221   echo "$as_me: program exited with status $ac_status" >&5
24222 echo "$as_me: failed program was:" >&5
24223 sed 's/^/| /' conftest.$ac_ext >&5
24225 ( exit $ac_status )
24226 rd_cv_ieee_works=no
24228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24234 if test x${rd_cv_ieee_works} = "xyes"; then
24235  { echo "$as_me:$LINENO: result: yes" >&5
24236 echo "${ECHO_T}yes" >&6; }
24238 else
24239  { echo "$as_me:$LINENO: result: no" >&5
24240 echo "${ECHO_T}no" >&6; }
24241  CFLAGS="$_cflags -ieee"
24243 { echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
24244 echo $ECHO_N "checking if IEEE math works with the -ieee switch... $ECHO_C" >&6; }
24245 if test "${rd_cv_ieee_switch+set}" = set; then
24246   echo $ECHO_N "(cached) $ECHO_C" >&6
24247 else
24248   if test "$cross_compiling" = yes; then
24249   :
24250 else
24251   cat >conftest.$ac_ext <<_ACEOF
24252 /* confdefs.h.  */
24253 _ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h.  */
24259 #if HAVE_MATH_H
24260 #  include <math.h>
24261 #endif
24263 #if HAVE_FLOAT_H
24264 #  include <float.h>
24265 #endif
24267 #if HAVE_IEEEFP_H
24268 #  include <ieeefp.h>
24269 #endif
24271 #if HAVE_FP_CLASS_H
24272 #  include <fp_class.h>
24273 #endif
24275 /* Solaris */
24276 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24277 #  define HAVE_ISINF 1
24278 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24279 #endif
24281 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24282 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24283 #  undef isnan
24284 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24285 #endif
24287 /* Digital UNIX */
24288 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24289 #  define HAVE_ISINF 1
24290 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24291 #endif
24293 /* AIX */
24294 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24295 #  define HAVE_ISINF 1
24296 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24297 #endif
24299 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24300 #  define HAVE_ISINF 1
24301 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24302 #endif
24304 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24305 #  define HAVE_ISINF 1
24306 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24307 #endif
24309 #include <stdio.h>
24310 int main(void){
24311     double rrdnan,rrdinf,rrdc,rrdzero;
24312     ;
24313     /* some math to see if we get a floating point exception */
24314     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24315     rrdnan=0.0/rrdzero; /* especially here */
24316     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24317                   /* at run time without sig fpe */
24318     rrdc = rrdinf + rrdnan;
24319     rrdc = rrdinf / rrdnan;
24320     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24321     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24322     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24323     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24324     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24325     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24326     return 0;
24327  }
24328 _ACEOF
24329 rm -f conftest$ac_exeext
24330 if { (ac_try="$ac_link"
24331 case "(($ac_try" in
24332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24333   *) ac_try_echo=$ac_try;;
24334 esac
24335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24336   (eval "$ac_link") 2>&5
24337   ac_status=$?
24338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24340   { (case "(($ac_try" in
24341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24342   *) ac_try_echo=$ac_try;;
24343 esac
24344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24345   (eval "$ac_try") 2>&5
24346   ac_status=$?
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); }; }; then
24349   rd_cv_ieee_switch=yes
24350 else
24351   echo "$as_me: program exited with status $ac_status" >&5
24352 echo "$as_me: failed program was:" >&5
24353 sed 's/^/| /' conftest.$ac_ext >&5
24355 ( exit $ac_status )
24356 rd_cv_ieee_switch=no
24358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24364 if test x${rd_cv_ieee_switch} = "xyes"; then
24365  { echo "$as_me:$LINENO: result: yes" >&5
24366 echo "${ECHO_T}yes" >&6; }
24368 else
24369  { echo "$as_me:$LINENO: result: no" >&5
24370 echo "${ECHO_T}no" >&6; }
24371  CFLAGS="$_cflags -qfloat=nofold"
24373 { echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
24374 echo $ECHO_N "checking if IEEE math works with the -qfloat=nofold switch... $ECHO_C" >&6; }
24375 if test "${rd_cv_ieee_nofold+set}" = set; then
24376   echo $ECHO_N "(cached) $ECHO_C" >&6
24377 else
24378   if test "$cross_compiling" = yes; then
24379   :
24380 else
24381   cat >conftest.$ac_ext <<_ACEOF
24382 /* confdefs.h.  */
24383 _ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h.  */
24389 #if HAVE_MATH_H
24390 #  include <math.h>
24391 #endif
24393 #if HAVE_FLOAT_H
24394 #  include <float.h>
24395 #endif
24397 #if HAVE_IEEEFP_H
24398 #  include <ieeefp.h>
24399 #endif
24401 #if HAVE_FP_CLASS_H
24402 #  include <fp_class.h>
24403 #endif
24405 /* Solaris */
24406 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24407 #  define HAVE_ISINF 1
24408 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24409 #endif
24411 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24412 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24413 #  undef isnan
24414 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24415 #endif
24417 /* Digital UNIX */
24418 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24419 #  define HAVE_ISINF 1
24420 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24421 #endif
24423 /* AIX */
24424 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24425 #  define HAVE_ISINF 1
24426 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24427 #endif
24429 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24430 #  define HAVE_ISINF 1
24431 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24432 #endif
24434 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24435 #  define HAVE_ISINF 1
24436 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24437 #endif
24439 #include <stdio.h>
24440 int main(void){
24441     double rrdnan,rrdinf,rrdc,rrdzero;
24442     ;
24443     /* some math to see if we get a floating point exception */
24444     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24445     rrdnan=0.0/rrdzero; /* especially here */
24446     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24447                   /* at run time without sig fpe */
24448     rrdc = rrdinf + rrdnan;
24449     rrdc = rrdinf / rrdnan;
24450     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24451     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24452     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24453     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24454     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24455     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24456     return 0;
24457  }
24458 _ACEOF
24459 rm -f conftest$ac_exeext
24460 if { (ac_try="$ac_link"
24461 case "(($ac_try" in
24462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463   *) ac_try_echo=$ac_try;;
24464 esac
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466   (eval "$ac_link") 2>&5
24467   ac_status=$?
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24470   { (case "(($ac_try" in
24471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24472   *) ac_try_echo=$ac_try;;
24473 esac
24474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24475   (eval "$ac_try") 2>&5
24476   ac_status=$?
24477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); }; }; then
24479   rd_cv_ieee_nofold=yes
24480 else
24481   echo "$as_me: program exited with status $ac_status" >&5
24482 echo "$as_me: failed program was:" >&5
24483 sed 's/^/| /' conftest.$ac_ext >&5
24485 ( exit $ac_status )
24486 rd_cv_ieee_nofold=no
24488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24494 if test x${rd_cv_ieee_nofold} = "xyes"; then
24495  { echo "$as_me:$LINENO: result: yes" >&5
24496 echo "${ECHO_T}yes" >&6; }
24498 else
24499  { echo "$as_me:$LINENO: result: no" >&5
24500 echo "${ECHO_T}no" >&6; }
24501  CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
24503 { echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
24504 echo $ECHO_N "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... $ECHO_C" >&6; }
24505 if test "${rd_cv_ieee_flttrap+set}" = set; then
24506   echo $ECHO_N "(cached) $ECHO_C" >&6
24507 else
24508   if test "$cross_compiling" = yes; then
24509   :
24510 else
24511   cat >conftest.$ac_ext <<_ACEOF
24512 /* confdefs.h.  */
24513 _ACEOF
24514 cat confdefs.h >>conftest.$ac_ext
24515 cat >>conftest.$ac_ext <<_ACEOF
24516 /* end confdefs.h.  */
24519 #if HAVE_MATH_H
24520 #  include <math.h>
24521 #endif
24523 #if HAVE_FLOAT_H
24524 #  include <float.h>
24525 #endif
24527 #if HAVE_IEEEFP_H
24528 #  include <ieeefp.h>
24529 #endif
24531 #if HAVE_FP_CLASS_H
24532 #  include <fp_class.h>
24533 #endif
24535 /* Solaris */
24536 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24537 #  define HAVE_ISINF 1
24538 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24539 #endif
24541 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24542 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24543 #  undef isnan
24544 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24545 #endif
24547 /* Digital UNIX */
24548 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24549 #  define HAVE_ISINF 1
24550 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24551 #endif
24553 /* AIX */
24554 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24555 #  define HAVE_ISINF 1
24556 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24557 #endif
24559 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24560 #  define HAVE_ISINF 1
24561 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24562 #endif
24564 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24565 #  define HAVE_ISINF 1
24566 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24567 #endif
24569 #include <stdio.h>
24570 int main(void){
24571     double rrdnan,rrdinf,rrdc,rrdzero;
24572     ;
24573     /* some math to see if we get a floating point exception */
24574     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24575     rrdnan=0.0/rrdzero; /* especially here */
24576     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24577                   /* at run time without sig fpe */
24578     rrdc = rrdinf + rrdnan;
24579     rrdc = rrdinf / rrdnan;
24580     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24581     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24582     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24583     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24584     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24585     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24586     return 0;
24587  }
24588 _ACEOF
24589 rm -f conftest$ac_exeext
24590 if { (ac_try="$ac_link"
24591 case "(($ac_try" in
24592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24593   *) ac_try_echo=$ac_try;;
24594 esac
24595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24596   (eval "$ac_link") 2>&5
24597   ac_status=$?
24598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24600   { (case "(($ac_try" in
24601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24602   *) ac_try_echo=$ac_try;;
24603 esac
24604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24605   (eval "$ac_try") 2>&5
24606   ac_status=$?
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); }; }; then
24609   rd_cv_ieee_flttrap=yes
24610 else
24611   echo "$as_me: program exited with status $ac_status" >&5
24612 echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24615 ( exit $ac_status )
24616 rd_cv_ieee_flttrap=no
24618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24624 if test x${rd_cv_ieee_flttrap} = "xyes"; then
24625  { echo "$as_me:$LINENO: result: yes" >&5
24626 echo "${ECHO_T}yes" >&6; }
24628 else
24629  { echo "$as_me:$LINENO: result: no" >&5
24630 echo "${ECHO_T}no" >&6; }
24631  CFLAGS="$_cflags -mieee"
24633 { echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
24634 echo $ECHO_N "checking if IEEE math works with the -mieee switch... $ECHO_C" >&6; }
24635 if test "${rd_cv_ieee_mswitch+set}" = set; then
24636   echo $ECHO_N "(cached) $ECHO_C" >&6
24637 else
24638   if test "$cross_compiling" = yes; then
24639   :
24640 else
24641   cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h.  */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h.  */
24649 #if HAVE_MATH_H
24650 #  include <math.h>
24651 #endif
24653 #if HAVE_FLOAT_H
24654 #  include <float.h>
24655 #endif
24657 #if HAVE_IEEEFP_H
24658 #  include <ieeefp.h>
24659 #endif
24661 #if HAVE_FP_CLASS_H
24662 #  include <fp_class.h>
24663 #endif
24665 /* Solaris */
24666 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24667 #  define HAVE_ISINF 1
24668 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24669 #endif
24671 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24672 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24673 #  undef isnan
24674 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24675 #endif
24677 /* Digital UNIX */
24678 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24679 #  define HAVE_ISINF 1
24680 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24681 #endif
24683 /* AIX */
24684 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24685 #  define HAVE_ISINF 1
24686 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24687 #endif
24689 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24690 #  define HAVE_ISINF 1
24691 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24692 #endif
24694 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24695 #  define HAVE_ISINF 1
24696 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24697 #endif
24699 #include <stdio.h>
24700 int main(void){
24701     double rrdnan,rrdinf,rrdc,rrdzero;
24702     ;
24703     /* some math to see if we get a floating point exception */
24704     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24705     rrdnan=0.0/rrdzero; /* especially here */
24706     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24707                   /* at run time without sig fpe */
24708     rrdc = rrdinf + rrdnan;
24709     rrdc = rrdinf / rrdnan;
24710     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24711     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24712     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24713     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24714     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24715     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24716     return 0;
24717  }
24718 _ACEOF
24719 rm -f conftest$ac_exeext
24720 if { (ac_try="$ac_link"
24721 case "(($ac_try" in
24722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723   *) ac_try_echo=$ac_try;;
24724 esac
24725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726   (eval "$ac_link") 2>&5
24727   ac_status=$?
24728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24730   { (case "(($ac_try" in
24731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24732   *) ac_try_echo=$ac_try;;
24733 esac
24734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24735   (eval "$ac_try") 2>&5
24736   ac_status=$?
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); }; }; then
24739   rd_cv_ieee_mswitch=yes
24740 else
24741   echo "$as_me: program exited with status $ac_status" >&5
24742 echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.$ac_ext >&5
24745 ( exit $ac_status )
24746 rd_cv_ieee_mswitch=no
24748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24754 if test x${rd_cv_ieee_mswitch} = "xyes"; then
24755  { echo "$as_me:$LINENO: result: yes" >&5
24756 echo "${ECHO_T}yes" >&6; }
24758 else
24759  { echo "$as_me:$LINENO: result: no" >&5
24760 echo "${ECHO_T}no" >&6; }
24761  CFLAGS="$_cflags -q float=rndsngl"
24763 { echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
24764 echo $ECHO_N "checking if IEEE math works with the -q float=rndsngl switch... $ECHO_C" >&6; }
24765 if test "${rd_cv_ieee_qswitch+set}" = set; then
24766   echo $ECHO_N "(cached) $ECHO_C" >&6
24767 else
24768   if test "$cross_compiling" = yes; then
24769   :
24770 else
24771   cat >conftest.$ac_ext <<_ACEOF
24772 /* confdefs.h.  */
24773 _ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h.  */
24779 #if HAVE_MATH_H
24780 #  include <math.h>
24781 #endif
24783 #if HAVE_FLOAT_H
24784 #  include <float.h>
24785 #endif
24787 #if HAVE_IEEEFP_H
24788 #  include <ieeefp.h>
24789 #endif
24791 #if HAVE_FP_CLASS_H
24792 #  include <fp_class.h>
24793 #endif
24795 /* Solaris */
24796 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24797 #  define HAVE_ISINF 1
24798 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24799 #endif
24801 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24802 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24803 #  undef isnan
24804 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24805 #endif
24807 /* Digital UNIX */
24808 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24809 #  define HAVE_ISINF 1
24810 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24811 #endif
24813 /* AIX */
24814 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24815 #  define HAVE_ISINF 1
24816 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24817 #endif
24819 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24820 #  define HAVE_ISINF 1
24821 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24822 #endif
24824 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24825 #  define HAVE_ISINF 1
24826 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24827 #endif
24829 #include <stdio.h>
24830 int main(void){
24831     double rrdnan,rrdinf,rrdc,rrdzero;
24832     ;
24833     /* some math to see if we get a floating point exception */
24834     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24835     rrdnan=0.0/rrdzero; /* especially here */
24836     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24837                   /* at run time without sig fpe */
24838     rrdc = rrdinf + rrdnan;
24839     rrdc = rrdinf / rrdnan;
24840     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24841     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24842     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24843     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24844     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24845     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24846     return 0;
24847  }
24848 _ACEOF
24849 rm -f conftest$ac_exeext
24850 if { (ac_try="$ac_link"
24851 case "(($ac_try" in
24852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853   *) ac_try_echo=$ac_try;;
24854 esac
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856   (eval "$ac_link") 2>&5
24857   ac_status=$?
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24860   { (case "(($ac_try" in
24861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24862   *) ac_try_echo=$ac_try;;
24863 esac
24864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24865   (eval "$ac_try") 2>&5
24866   ac_status=$?
24867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868   (exit $ac_status); }; }; then
24869   rd_cv_ieee_qswitch=yes
24870 else
24871   echo "$as_me: program exited with status $ac_status" >&5
24872 echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.$ac_ext >&5
24875 ( exit $ac_status )
24876 rd_cv_ieee_qswitch=no
24878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24884 if test x${rd_cv_ieee_qswitch} = "xyes"; then
24885  { echo "$as_me:$LINENO: result: yes" >&5
24886 echo "${ECHO_T}yes" >&6; }
24888 else
24889  { echo "$as_me:$LINENO: result: no" >&5
24890 echo "${ECHO_T}no" >&6; }
24891  CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
24893 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
24894 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... $ECHO_C" >&6; }
24895 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
24896   echo $ECHO_N "(cached) $ECHO_C" >&6
24897 else
24898   if test "$cross_compiling" = yes; then
24899   :
24900 else
24901   cat >conftest.$ac_ext <<_ACEOF
24902 /* confdefs.h.  */
24903 _ACEOF
24904 cat confdefs.h >>conftest.$ac_ext
24905 cat >>conftest.$ac_ext <<_ACEOF
24906 /* end confdefs.h.  */
24909 #if HAVE_MATH_H
24910 #  include <math.h>
24911 #endif
24913 #if HAVE_FLOAT_H
24914 #  include <float.h>
24915 #endif
24917 #if HAVE_IEEEFP_H
24918 #  include <ieeefp.h>
24919 #endif
24921 #if HAVE_FP_CLASS_H
24922 #  include <fp_class.h>
24923 #endif
24925 /* Solaris */
24926 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
24927 #  define HAVE_ISINF 1
24928 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
24929 #endif
24931 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
24932 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
24933 #  undef isnan
24934 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
24935 #endif
24937 /* Digital UNIX */
24938 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
24939 #  define HAVE_ISINF 1
24940 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
24941 #endif
24943 /* AIX */
24944 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
24945 #  define HAVE_ISINF 1
24946 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
24947 #endif
24949 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
24950 #  define HAVE_ISINF 1
24951 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
24952 #endif
24954 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
24955 #  define HAVE_ISINF 1
24956 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
24957 #endif
24959 #include <stdio.h>
24960 int main(void){
24961     double rrdnan,rrdinf,rrdc,rrdzero;
24962     ;
24963     /* some math to see if we get a floating point exception */
24964     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
24965     rrdnan=0.0/rrdzero; /* especially here */
24966     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
24967                   /* at run time without sig fpe */
24968     rrdc = rrdinf + rrdnan;
24969     rrdc = rrdinf / rrdnan;
24970     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
24971     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
24972     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
24973     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
24974     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
24975     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
24976     return 0;
24977  }
24978 _ACEOF
24979 rm -f conftest$ac_exeext
24980 if { (ac_try="$ac_link"
24981 case "(($ac_try" in
24982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983   *) ac_try_echo=$ac_try;;
24984 esac
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986   (eval "$ac_link") 2>&5
24987   ac_status=$?
24988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24990   { (case "(($ac_try" in
24991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24992   *) ac_try_echo=$ac_try;;
24993 esac
24994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24995   (eval "$ac_try") 2>&5
24996   ac_status=$?
24997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); }; }; then
24999   rd_cv_ieee_ieeenaninfswitch=yes
25000 else
25001   echo "$as_me: program exited with status $ac_status" >&5
25002 echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.$ac_ext >&5
25005 ( exit $ac_status )
25006 rd_cv_ieee_ieeenaninfswitch=no
25008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25014 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
25015  { echo "$as_me:$LINENO: result: yes" >&5
25016 echo "${ECHO_T}yes" >&6; }
25018 else
25019  { echo "$as_me:$LINENO: result: no" >&5
25020 echo "${ECHO_T}no" >&6; }
25021  CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
25023 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
25024 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... $ECHO_C" >&6; }
25025 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
25026   echo $ECHO_N "(cached) $ECHO_C" >&6
25027 else
25028   if test "$cross_compiling" = yes; then
25029   :
25030 else
25031   cat >conftest.$ac_ext <<_ACEOF
25032 /* confdefs.h.  */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h.  */
25039 #if HAVE_MATH_H
25040 #  include <math.h>
25041 #endif
25043 #if HAVE_FLOAT_H
25044 #  include <float.h>
25045 #endif
25047 #if HAVE_IEEEFP_H
25048 #  include <ieeefp.h>
25049 #endif
25051 #if HAVE_FP_CLASS_H
25052 #  include <fp_class.h>
25053 #endif
25055 /* Solaris */
25056 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
25057 #  define HAVE_ISINF 1
25058 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
25059 #endif
25061 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
25062 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
25063 #  undef isnan
25064 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
25065 #endif
25067 /* Digital UNIX */
25068 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
25069 #  define HAVE_ISINF 1
25070 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
25071 #endif
25073 /* AIX */
25074 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
25075 #  define HAVE_ISINF 1
25076 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
25077 #endif
25079 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
25080 #  define HAVE_ISINF 1
25081 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
25082 #endif
25084 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
25085 #  define HAVE_ISINF 1
25086 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
25087 #endif
25089 #include <stdio.h>
25090 int main(void){
25091     double rrdnan,rrdinf,rrdc,rrdzero;
25092     ;
25093     /* some math to see if we get a floating point exception */
25094     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
25095     rrdnan=0.0/rrdzero; /* especially here */
25096     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25097                   /* at run time without sig fpe */
25098     rrdc = rrdinf + rrdnan;
25099     rrdc = rrdinf / rrdnan;
25100     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25101     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25102     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25103     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25104     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25105     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25106     return 0;
25107  }
25108 _ACEOF
25109 rm -f conftest$ac_exeext
25110 if { (ac_try="$ac_link"
25111 case "(($ac_try" in
25112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113   *) ac_try_echo=$ac_try;;
25114 esac
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116   (eval "$ac_link") 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25120   { (case "(($ac_try" in
25121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122   *) ac_try_echo=$ac_try;;
25123 esac
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125   (eval "$ac_try") 2>&5
25126   ac_status=$?
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); }; }; then
25129   rd_cv_ieee_ieeecmpswitch=yes
25130 else
25131   echo "$as_me: program exited with status $ac_status" >&5
25132 echo "$as_me: failed program was:" >&5
25133 sed 's/^/| /' conftest.$ac_ext >&5
25135 ( exit $ac_status )
25136 rd_cv_ieee_ieeecmpswitch=no
25138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25144 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
25145  { echo "$as_me:$LINENO: result: yes" >&5
25146 echo "${ECHO_T}yes" >&6; }
25148 else
25149  { echo "$as_me:$LINENO: result: no" >&5
25150 echo "${ECHO_T}no" >&6; }
25151  CFLAGS=$_cflags
25153 { echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
25154 echo $ECHO_N "checking if IEEE math works with fpsetmask(0)... $ECHO_C" >&6; }
25155 if test "${rd_cv_ieee_mask+set}" = set; then
25156   echo $ECHO_N "(cached) $ECHO_C" >&6
25157 else
25158   if test "$cross_compiling" = yes; then
25159   :
25160 else
25161   cat >conftest.$ac_ext <<_ACEOF
25162 /* confdefs.h.  */
25163 _ACEOF
25164 cat confdefs.h >>conftest.$ac_ext
25165 cat >>conftest.$ac_ext <<_ACEOF
25166 /* end confdefs.h.  */
25167 #include <floatingpoint.h>
25169 #if HAVE_MATH_H
25170 #  include <math.h>
25171 #endif
25173 #if HAVE_FLOAT_H
25174 #  include <float.h>
25175 #endif
25177 #if HAVE_IEEEFP_H
25178 #  include <ieeefp.h>
25179 #endif
25181 #if HAVE_FP_CLASS_H
25182 #  include <fp_class.h>
25183 #endif
25185 /* Solaris */
25186 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
25187 #  define HAVE_ISINF 1
25188 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
25189 #endif
25191 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
25192 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
25193 #  undef isnan
25194 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
25195 #endif
25197 /* Digital UNIX */
25198 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
25199 #  define HAVE_ISINF 1
25200 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
25201 #endif
25203 /* AIX */
25204 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
25205 #  define HAVE_ISINF 1
25206 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
25207 #endif
25209 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
25210 #  define HAVE_ISINF 1
25211 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
25212 #endif
25214 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
25215 #  define HAVE_ISINF 1
25216 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
25217 #endif
25219 #include <stdio.h>
25220 int main(void){
25221     double rrdnan,rrdinf,rrdc,rrdzero;
25222     fpsetmask(0);
25223     /* some math to see if we get a floating point exception */
25224     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
25225     rrdnan=0.0/rrdzero; /* especially here */
25226     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25227                   /* at run time without sig fpe */
25228     rrdc = rrdinf + rrdnan;
25229     rrdc = rrdinf / rrdnan;
25230     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25231     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25232     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25233     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25234     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25235     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25236     return 0;
25237  }
25238 _ACEOF
25239 rm -f conftest$ac_exeext
25240 if { (ac_try="$ac_link"
25241 case "(($ac_try" in
25242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243   *) ac_try_echo=$ac_try;;
25244 esac
25245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25246   (eval "$ac_link") 2>&5
25247   ac_status=$?
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25250   { (case "(($ac_try" in
25251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25252   *) ac_try_echo=$ac_try;;
25253 esac
25254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25255   (eval "$ac_try") 2>&5
25256   ac_status=$?
25257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); }; }; then
25259   rd_cv_ieee_mask=yes
25260 else
25261   echo "$as_me: program exited with status $ac_status" >&5
25262 echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25265 ( exit $ac_status )
25266 rd_cv_ieee_mask=no
25268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25274 if test x${rd_cv_ieee_mask} = "xyes"; then
25275  { echo "$as_me:$LINENO: result: yes" >&5
25276 echo "${ECHO_T}yes" >&6; }
25277  cat >>confdefs.h <<\_ACEOF
25278 #define MUST_DISABLE_FPMASK 1
25279 _ACEOF
25281                  PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
25282 else
25283  { echo "$as_me:$LINENO: result: no" >&5
25284 echo "${ECHO_T}no" >&6; }
25286 { echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
25287 echo $ECHO_N "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... $ECHO_C" >&6; }
25288 if test "${rd_cv_ieee_sigfpe+set}" = set; then
25289   echo $ECHO_N "(cached) $ECHO_C" >&6
25290 else
25291   if test "$cross_compiling" = yes; then
25292   :
25293 else
25294   cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h.  */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h.  */
25300 #include <signal.h>
25302 #if HAVE_MATH_H
25303 #  include <math.h>
25304 #endif
25306 #if HAVE_FLOAT_H
25307 #  include <float.h>
25308 #endif
25310 #if HAVE_IEEEFP_H
25311 #  include <ieeefp.h>
25312 #endif
25314 #if HAVE_FP_CLASS_H
25315 #  include <fp_class.h>
25316 #endif
25318 /* Solaris */
25319 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
25320 #  define HAVE_ISINF 1
25321 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
25322 #endif
25324 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
25325 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
25326 #  undef isnan
25327 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
25328 #endif
25330 /* Digital UNIX */
25331 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
25332 #  define HAVE_ISINF 1
25333 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
25334 #endif
25336 /* AIX */
25337 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
25338 #  define HAVE_ISINF 1
25339 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
25340 #endif
25342 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
25343 #  define HAVE_ISINF 1
25344 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
25345 #endif
25347 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
25348 #  define HAVE_ISINF 1
25349 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
25350 #endif
25352 #include <stdio.h>
25353 int main(void){
25354     double rrdnan,rrdinf,rrdc,rrdzero;
25355     signal(SIGFPE,SIG_IGN);
25356     /* some math to see if we get a floating point exception */
25357     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
25358     rrdnan=0.0/rrdzero; /* especially here */
25359     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
25360                   /* at run time without sig fpe */
25361     rrdc = rrdinf + rrdnan;
25362     rrdc = rrdinf / rrdnan;
25363     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
25364     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
25365     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
25366     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
25367     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
25368     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
25369     return 0;
25370  }
25371 _ACEOF
25372 rm -f conftest$ac_exeext
25373 if { (ac_try="$ac_link"
25374 case "(($ac_try" in
25375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376   *) ac_try_echo=$ac_try;;
25377 esac
25378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379   (eval "$ac_link") 2>&5
25380   ac_status=$?
25381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25383   { (case "(($ac_try" in
25384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25385   *) ac_try_echo=$ac_try;;
25386 esac
25387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25388   (eval "$ac_try") 2>&5
25389   ac_status=$?
25390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391   (exit $ac_status); }; }; then
25392   rd_cv_ieee_sigfpe=yes
25393 else
25394   echo "$as_me: program exited with status $ac_status" >&5
25395 echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25398 ( exit $ac_status )
25399 rd_cv_ieee_sigfpe=no
25401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25407 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
25408  { echo "$as_me:$LINENO: result: yes" >&5
25409 echo "${ECHO_T}yes" >&6; }
25410  cat >>confdefs.h <<\_ACEOF
25411 #define MUST_DISABLE_SIGFPE 1
25412 _ACEOF
25414                    PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
25415 else
25416  { echo "$as_me:$LINENO: result: no" >&5
25417 echo "${ECHO_T}no" >&6; }
25418  { { echo "$as_me:$LINENO: error:
25419 Your Compiler does not do propper IEEE math ... Please find out how to
25420 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
25421 Check config.log to see what went wrong ...
25422 " >&5
25423 echo "$as_me: error:
25424 Your Compiler does not do propper IEEE math ... Please find out how to
25425 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
25426 Check config.log to see what went wrong ...
25427 " >&2;}
25428    { (exit 1); exit 1; }; }
25460 ac_ext=c
25461 ac_cpp='$CPP $CPPFLAGS'
25462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25470 case $TERM in
25471        #   for the most important terminal types we directly know the sequences
25472        xterm|xterm*|vt220|vt220*)
25473                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
25474                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
25475        ;;
25476        vt100|vt100*|cygwin)
25477                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
25478                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
25479        ;;
25480        *)
25481                T_MD=''
25482                T_ME=''
25483        ;;
25484 esac
25485   { echo "$as_me:$LINENO: result: " >&5
25486 echo "${ECHO_T}" >&6; }
25487   { echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
25488 echo "${ECHO_T}${T_MD}Resolve Portability Issues${T_ME}" >&6; }
25492 { echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
25493 echo $ECHO_N "checking if realloc can deal with NULL... $ECHO_C" >&6; }
25494 if test "${rd_cv_null_realloc+set}" = set; then
25495   echo $ECHO_N "(cached) $ECHO_C" >&6
25496 else
25497   if test "$cross_compiling" = yes; then
25498   :
25499 else
25500   cat >conftest.$ac_ext <<_ACEOF
25501 /* confdefs.h.  */
25502 _ACEOF
25503 cat confdefs.h >>conftest.$ac_ext
25504 cat >>conftest.$ac_ext <<_ACEOF
25505 /* end confdefs.h.  */
25506 #include <stdlib.h>
25507               int main(void){
25508               char *x = NULL;
25509               x = realloc (x,10);
25510               if (x==NULL) return 1;
25511               return 0;
25512              }
25513 _ACEOF
25514 rm -f conftest$ac_exeext
25515 if { (ac_try="$ac_link"
25516 case "(($ac_try" in
25517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25518   *) ac_try_echo=$ac_try;;
25519 esac
25520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25521   (eval "$ac_link") 2>&5
25522   ac_status=$?
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25525   { (case "(($ac_try" in
25526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25527   *) ac_try_echo=$ac_try;;
25528 esac
25529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25530   (eval "$ac_try") 2>&5
25531   ac_status=$?
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); }; }; then
25534   rd_cv_null_realloc=yes
25535 else
25536   echo "$as_me: program exited with status $ac_status" >&5
25537 echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 ( exit $ac_status )
25541 rd_cv_null_realloc=nope
25543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25548 { echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
25549 echo "${ECHO_T}$rd_cv_null_realloc" >&6; }
25551 if test x"$rd_cv_null_realloc" = xnope; then
25552 cat >>confdefs.h <<\_ACEOF
25553 #define NO_NULL_REALLOC 1
25554 _ACEOF
25558 ac_ext=c
25559 ac_cpp='$CPP $CPPFLAGS'
25560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25564 { echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
25565 echo $ECHO_N "checking if ctime_r need special care to act posixly correct... $ECHO_C" >&6; }
25566 cat >conftest.$ac_ext <<_ACEOF
25567 /* confdefs.h.  */
25568 _ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h.  */
25572 #include <time.h>
25573 int
25574 main ()
25576 ctime_r(NULL,NULL,0)
25578   ;
25579   return 0;
25581 _ACEOF
25582 rm -f conftest.$ac_objext conftest$ac_exeext
25583 if { (ac_try="$ac_link"
25584 case "(($ac_try" in
25585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586   *) ac_try_echo=$ac_try;;
25587 esac
25588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589   (eval "$ac_link") 2>conftest.er1
25590   ac_status=$?
25591   grep -v '^ *+' conftest.er1 >conftest.err
25592   rm -f conftest.er1
25593   cat conftest.err >&5
25594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595   (exit $ac_status); } && {
25596          test -z "$ac_c_werror_flag" ||
25597          test ! -s conftest.err
25598        } && test -s conftest$ac_exeext &&
25599        $as_test_x conftest$ac_exeext; then
25600    CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
25601       cat >conftest.$ac_ext <<_ACEOF
25602 /* confdefs.h.  */
25603 _ACEOF
25604 cat confdefs.h >>conftest.$ac_ext
25605 cat >>conftest.$ac_ext <<_ACEOF
25606 /* end confdefs.h.  */
25607 #include <time.h>
25608 int
25609 main ()
25611 ctime_r(NULL,NULL)
25613   ;
25614   return 0;
25616 _ACEOF
25617 rm -f conftest.$ac_objext conftest$ac_exeext
25618 if { (ac_try="$ac_link"
25619 case "(($ac_try" in
25620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621   *) ac_try_echo=$ac_try;;
25622 esac
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624   (eval "$ac_link") 2>conftest.er1
25625   ac_status=$?
25626   grep -v '^ *+' conftest.er1 >conftest.err
25627   rm -f conftest.er1
25628   cat conftest.err >&5
25629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630   (exit $ac_status); } && {
25631          test -z "$ac_c_werror_flag" ||
25632          test ! -s conftest.err
25633        } && test -s conftest$ac_exeext &&
25634        $as_test_x conftest$ac_exeext; then
25635   { echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
25636 echo "${ECHO_T}yes, this seems to be solaris style" >&6; }
25637 else
25638   echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25641         { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
25642 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
25643    { (exit 1); exit 1; }; }
25647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25648       conftest$ac_exeext conftest.$ac_ext
25650 else
25651   echo "$as_me: failed program was:" >&5
25652 sed 's/^/| /' conftest.$ac_ext >&5
25654          cat >conftest.$ac_ext <<_ACEOF
25655 /* confdefs.h.  */
25656 _ACEOF
25657 cat confdefs.h >>conftest.$ac_ext
25658 cat >>conftest.$ac_ext <<_ACEOF
25659 /* end confdefs.h.  */
25660 #include <time.h>
25661 int
25662 main ()
25664 ctime_r(NULL,NULL)
25666   ;
25667   return 0;
25669 _ACEOF
25670 rm -f conftest.$ac_objext conftest$ac_exeext
25671 if { (ac_try="$ac_link"
25672 case "(($ac_try" in
25673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25674   *) ac_try_echo=$ac_try;;
25675 esac
25676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25677   (eval "$ac_link") 2>conftest.er1
25678   ac_status=$?
25679   grep -v '^ *+' conftest.er1 >conftest.err
25680   rm -f conftest.er1
25681   cat conftest.err >&5
25682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683   (exit $ac_status); } && {
25684          test -z "$ac_c_werror_flag" ||
25685          test ! -s conftest.err
25686        } && test -s conftest$ac_exeext &&
25687        $as_test_x conftest$ac_exeext; then
25688   { echo "$as_me:$LINENO: result: no" >&5
25689 echo "${ECHO_T}no" >&6; }
25690 else
25691   echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25694         { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
25695 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
25696    { (exit 1); exit 1; }; }
25700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25701       conftest$ac_exeext conftest.$ac_ext
25706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25707       conftest$ac_exeext conftest.$ac_ext
25708 ac_ext=c
25709 ac_cpp='$CPP $CPPFLAGS'
25710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25719 if test $enable_pthread != no; then
25722 ac_ext=c
25723 ac_cpp='$CPP $CPPFLAGS'
25724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25728 acx_pthread_ok=no
25730 # We used to check for pthread.h first, but this fails if pthread.h
25731 # requires special compiler flags (e.g. on True64 or Sequent).
25732 # It gets checked for in the link test anyway.
25734 # First of all, check if the user has set any of the PTHREAD_LIBS,
25735 # etcetera environment variables, and if threads linking works using
25736 # them:
25737 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
25738         save_CFLAGS="$CFLAGS"
25739         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25740         save_LIBS="$LIBS"
25741         LIBS="$PTHREAD_LIBS $LIBS"
25742         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
25743 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
25744         cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h.  */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h.  */
25751 /* Override any GCC internal prototype to avoid an error.
25752    Use char because int might match the return type of a GCC
25753    builtin and then its argument prototype would still apply.  */
25754 #ifdef __cplusplus
25755 extern "C"
25756 #endif
25757 char pthread_join ();
25758 int
25759 main ()
25761 return pthread_join ();
25762   ;
25763   return 0;
25765 _ACEOF
25766 rm -f conftest.$ac_objext conftest$ac_exeext
25767 if { (ac_try="$ac_link"
25768 case "(($ac_try" in
25769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770   *) ac_try_echo=$ac_try;;
25771 esac
25772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773   (eval "$ac_link") 2>conftest.er1
25774   ac_status=$?
25775   grep -v '^ *+' conftest.er1 >conftest.err
25776   rm -f conftest.er1
25777   cat conftest.err >&5
25778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779   (exit $ac_status); } && {
25780          test -z "$ac_c_werror_flag" ||
25781          test ! -s conftest.err
25782        } && test -s conftest$ac_exeext &&
25783        $as_test_x conftest$ac_exeext; then
25784   acx_pthread_ok=yes
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25793       conftest$ac_exeext conftest.$ac_ext
25794         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
25795 echo "${ECHO_T}$acx_pthread_ok" >&6; }
25796         if test x"$acx_pthread_ok" = xno; then
25797                 PTHREAD_LIBS=""
25798                 PTHREAD_CFLAGS=""
25799         fi
25800         LIBS="$save_LIBS"
25801         CFLAGS="$save_CFLAGS"
25804 # We must check for the threads library under a number of different
25805 # names; the ordering is very important because some systems
25806 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
25807 # libraries is broken (non-POSIX).
25809 # Create a list of thread flags to try.  Items starting with a "-" are
25810 # C compiler flags, and other items are library names, except for "none"
25811 # which indicates that we try without any flags at all, and "pthread-config"
25812 # which is a program returning the flags for the Pth emulation library.
25814 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
25816 # The ordering *is* (sometimes) important.  Some notes on the
25817 # individual items follow:
25819 # pthreads: AIX (must check this before -lpthread)
25820 # none: in case threads are in libc; should be tried before -Kthread and
25821 #       other compiler flags to prevent continual compiler warnings
25822 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
25823 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
25824 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
25825 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
25826 # -pthreads: Solaris/gcc
25827 # -mthreads: Mingw32/gcc, Lynx/gcc
25828 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
25829 #      doesn't hurt to check since this sometimes defines pthreads too;
25830 #      also defines -D_REENTRANT)
25831 # pthread: Linux, etcetera
25832 # --thread-safe: KAI C++
25833 # pthread-config: use pthread-config program (for GNU Pth library)
25835 case "${host_cpu}-${host_os}" in
25836         *solaris*)
25838         # On Solaris (at least, for some versions), libc contains stubbed
25839         # (non-functional) versions of the pthreads routines, so link-based
25840         # tests will erroneously succeed.  (We need to link with -pthread or
25841         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
25842         # a function called by this macro, so we could check for that, but
25843         # who knows whether they'll stub that too in a future libc.)  So,
25844         # we'll just look for -pthreads and -lpthread first:
25846         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
25847         ;;
25848 esac
25850 if test x"$acx_pthread_ok" = xno; then
25851 for flag in $acx_pthread_flags; do
25853         case $flag in
25854                 none)
25855                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
25856 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
25857                 ;;
25859                 -*)
25860                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
25861 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
25862                 PTHREAD_CFLAGS="$flag"
25863                 ;;
25865                 pthread-config)
25866                 # Extract the first word of "pthread-config", so it can be a program name with args.
25867 set dummy pthread-config; ac_word=$2
25868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25870 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
25871   echo $ECHO_N "(cached) $ECHO_C" >&6
25872 else
25873   if test -n "$acx_pthread_config"; then
25874   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
25875 else
25876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25877 for as_dir in $PATH
25879   IFS=$as_save_IFS
25880   test -z "$as_dir" && as_dir=.
25881   for ac_exec_ext in '' $ac_executable_extensions; do
25882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25883     ac_cv_prog_acx_pthread_config="yes"
25884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25885     break 2
25886   fi
25887 done
25888 done
25889 IFS=$as_save_IFS
25891   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
25894 acx_pthread_config=$ac_cv_prog_acx_pthread_config
25895 if test -n "$acx_pthread_config"; then
25896   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
25897 echo "${ECHO_T}$acx_pthread_config" >&6; }
25898 else
25899   { echo "$as_me:$LINENO: result: no" >&5
25900 echo "${ECHO_T}no" >&6; }
25904                 if test x"$acx_pthread_config" = xno; then continue; fi
25905                 PTHREAD_CFLAGS="`pthread-config --cflags`"
25906                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
25907                 ;;
25909                 *)
25910                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
25911 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
25912                 PTHREAD_LIBS="-l$flag"
25913                 ;;
25914         esac
25916         save_LIBS="$LIBS"
25917         save_CFLAGS="$CFLAGS"
25918         LIBS="$PTHREAD_LIBS $LIBS"
25919         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25921         # Check for various functions.  We must include pthread.h,
25922         # since some functions may be macros.  (On the Sequent, we
25923         # need a special flag -Kthread to make this header compile.)
25924         # We check for pthread_join because it is in -lpthread on IRIX
25925         # while pthread_create is in libc.  We check for pthread_attr_init
25926         # due to DEC craziness with -lpthreads.  We check for
25927         # pthread_cleanup_push because it is one of the few pthread
25928         # functions on Solaris that doesn't have a non-functional libc stub.
25929         # We try pthread_create on general principles.
25930         cat >conftest.$ac_ext <<_ACEOF
25931 /* confdefs.h.  */
25932 _ACEOF
25933 cat confdefs.h >>conftest.$ac_ext
25934 cat >>conftest.$ac_ext <<_ACEOF
25935 /* end confdefs.h.  */
25936 #include <pthread.h>
25937 int
25938 main ()
25940 pthread_t th; pthread_join(th, 0);
25941                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
25942                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
25943   ;
25944   return 0;
25946 _ACEOF
25947 rm -f conftest.$ac_objext conftest$ac_exeext
25948 if { (ac_try="$ac_link"
25949 case "(($ac_try" in
25950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25951   *) ac_try_echo=$ac_try;;
25952 esac
25953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25954   (eval "$ac_link") 2>conftest.er1
25955   ac_status=$?
25956   grep -v '^ *+' conftest.er1 >conftest.err
25957   rm -f conftest.er1
25958   cat conftest.err >&5
25959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960   (exit $ac_status); } && {
25961          test -z "$ac_c_werror_flag" ||
25962          test ! -s conftest.err
25963        } && test -s conftest$ac_exeext &&
25964        $as_test_x conftest$ac_exeext; then
25965   acx_pthread_ok=yes
25966 else
25967   echo "$as_me: failed program was:" >&5
25968 sed 's/^/| /' conftest.$ac_ext >&5
25973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25974       conftest$ac_exeext conftest.$ac_ext
25976         LIBS="$save_LIBS"
25977         CFLAGS="$save_CFLAGS"
25979         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
25980 echo "${ECHO_T}$acx_pthread_ok" >&6; }
25981         if test "x$acx_pthread_ok" = xyes; then
25982                 break;
25983         fi
25985         PTHREAD_LIBS=""
25986         PTHREAD_CFLAGS=""
25987 done
25990 # Various other checks:
25991 if test "x$acx_pthread_ok" = xyes; then
25992         save_LIBS="$LIBS"
25993         LIBS="$PTHREAD_LIBS $LIBS"
25994         save_CFLAGS="$CFLAGS"
25995         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25997         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
25998         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
25999 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
26000         attr_name=unknown
26001         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
26002             cat >conftest.$ac_ext <<_ACEOF
26003 /* confdefs.h.  */
26004 _ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h.  */
26008 #include <pthread.h>
26009 int
26010 main ()
26012 int attr=$attr;
26013   ;
26014   return 0;
26016 _ACEOF
26017 rm -f conftest.$ac_objext conftest$ac_exeext
26018 if { (ac_try="$ac_link"
26019 case "(($ac_try" in
26020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26021   *) ac_try_echo=$ac_try;;
26022 esac
26023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26024   (eval "$ac_link") 2>conftest.er1
26025   ac_status=$?
26026   grep -v '^ *+' conftest.er1 >conftest.err
26027   rm -f conftest.er1
26028   cat conftest.err >&5
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); } && {
26031          test -z "$ac_c_werror_flag" ||
26032          test ! -s conftest.err
26033        } && test -s conftest$ac_exeext &&
26034        $as_test_x conftest$ac_exeext; then
26035   attr_name=$attr; break
26036 else
26037   echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26044       conftest$ac_exeext conftest.$ac_ext
26045         done
26046         { echo "$as_me:$LINENO: result: $attr_name" >&5
26047 echo "${ECHO_T}$attr_name" >&6; }
26048         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
26050 cat >>confdefs.h <<_ACEOF
26051 #define PTHREAD_CREATE_JOINABLE $attr_name
26052 _ACEOF
26054         fi
26056         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
26057 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
26058         x_rflag=no
26059         case "${host_cpu}-${host_os}" in
26060             *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
26061             *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
26062             *-linux*)
26063             if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
26064                 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
26065                 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
26066                 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
26067             fi;;
26068         esac
26069         { echo "$as_me:$LINENO: result: ${x_rflag}" >&5
26070 echo "${ECHO_T}${x_rflag}" >&6; }
26071         if test "x$x_rflag" != xno; then
26072             PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
26073         fi
26075         LIBS="$save_LIBS"
26076         CFLAGS="$save_CFLAGS"
26078         # More AIX lossage: must compile with cc_r
26079         # Extract the first word of "cc_r", so it can be a program name with args.
26080 set dummy cc_r; ac_word=$2
26081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26083 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
26084   echo $ECHO_N "(cached) $ECHO_C" >&6
26085 else
26086   if test -n "$PTHREAD_CC"; then
26087   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
26088 else
26089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26090 for as_dir in $PATH
26092   IFS=$as_save_IFS
26093   test -z "$as_dir" && as_dir=.
26094   for ac_exec_ext in '' $ac_executable_extensions; do
26095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26096     ac_cv_prog_PTHREAD_CC="cc_r"
26097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26098     break 2
26099   fi
26100 done
26101 done
26102 IFS=$as_save_IFS
26104   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
26107 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
26108 if test -n "$PTHREAD_CC"; then
26109   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
26110 echo "${ECHO_T}$PTHREAD_CC" >&6; }
26111 else
26112   { echo "$as_me:$LINENO: result: no" >&5
26113 echo "${ECHO_T}no" >&6; }
26117 else
26118         PTHREAD_CC="$CC"
26125 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
26126 if test x"$acx_pthread_ok" = xyes; then
26128     MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
26129     MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
26131         :
26132 else
26133         acx_pthread_ok=no
26136 ac_ext=c
26137 ac_cpp='$CPP $CPPFLAGS'
26138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26146 if test  "x$x_rflag" != "xno"; then
26147    CPPFLAGS="$CPPFLAGS $x_rflag"
26152 if test $enable_pthread != no; then
26153   BUILD_MULTITHREAD_TRUE=
26154   BUILD_MULTITHREAD_FALSE='#'
26155 else
26156   BUILD_MULTITHREAD_TRUE='#'
26157   BUILD_MULTITHREAD_FALSE=
26161 ac_ext=c
26162 ac_cpp='$CPP $CPPFLAGS'
26163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26167 { echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
26168 echo $ECHO_N "checking do we need malloc/malloc.h... $ECHO_C" >&6; }
26169 cat >conftest.$ac_ext <<_ACEOF
26170 /* confdefs.h.  */
26171 _ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h.  */
26175 #include <stdlib.h>
26176 int
26177 main ()
26179 malloc(1)
26181   ;
26182   return 0;
26184 _ACEOF
26185 rm -f conftest.$ac_objext conftest$ac_exeext
26186 if { (ac_try="$ac_link"
26187 case "(($ac_try" in
26188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26189   *) ac_try_echo=$ac_try;;
26190 esac
26191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26192   (eval "$ac_link") 2>conftest.er1
26193   ac_status=$?
26194   grep -v '^ *+' conftest.er1 >conftest.err
26195   rm -f conftest.er1
26196   cat conftest.err >&5
26197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198   (exit $ac_status); } && {
26199          test -z "$ac_c_werror_flag" ||
26200          test ! -s conftest.err
26201        } && test -s conftest$ac_exeext &&
26202        $as_test_x conftest$ac_exeext; then
26203    { echo "$as_me:$LINENO: result: nope, works out of the box" >&5
26204 echo "${ECHO_T}nope, works out of the box" >&6; }
26205 else
26206   echo "$as_me: failed program was:" >&5
26207 sed 's/^/| /' conftest.$ac_ext >&5
26209          cat >conftest.$ac_ext <<_ACEOF
26210 /* confdefs.h.  */
26211 _ACEOF
26212 cat confdefs.h >>conftest.$ac_ext
26213 cat >>conftest.$ac_ext <<_ACEOF
26214 /* end confdefs.h.  */
26215 #include <stdlib.h>
26216                   #include <malloc/malloc.h>
26217 int
26218 main ()
26220 malloc(1)
26222   ;
26223   return 0;
26225 _ACEOF
26226 rm -f conftest.$ac_objext conftest$ac_exeext
26227 if { (ac_try="$ac_link"
26228 case "(($ac_try" in
26229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26230   *) ac_try_echo=$ac_try;;
26231 esac
26232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26233   (eval "$ac_link") 2>conftest.er1
26234   ac_status=$?
26235   grep -v '^ *+' conftest.er1 >conftest.err
26236   rm -f conftest.er1
26237   cat conftest.err >&5
26238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26239   (exit $ac_status); } && {
26240          test -z "$ac_c_werror_flag" ||
26241          test ! -s conftest.err
26242        } && test -s conftest$ac_exeext &&
26243        $as_test_x conftest$ac_exeext; then
26244   cat >>confdefs.h <<\_ACEOF
26245 #define NEED_MALLOC_MALLOC_H 1
26246 _ACEOF
26248            { echo "$as_me:$LINENO: result: yes we do" >&5
26249 echo "${ECHO_T}yes we do" >&6; }
26250 else
26251   echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26254         { { echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
26255 echo "$as_me: error: Can not figure how to compile malloc" >&2;}
26256    { (exit 1); exit 1; }; }
26260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26261       conftest$ac_exeext conftest.$ac_ext
26266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26267       conftest$ac_exeext conftest.$ac_ext
26268 ac_ext=c
26269 ac_cpp='$CPP $CPPFLAGS'
26270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26276 case $TERM in
26277        #   for the most important terminal types we directly know the sequences
26278        xterm|xterm*|vt220|vt220*)
26279                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
26280                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
26281        ;;
26282        vt100|vt100*|cygwin)
26283                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
26284                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
26285        ;;
26286        *)
26287                T_MD=''
26288                T_ME=''
26289        ;;
26290 esac
26291   { echo "$as_me:$LINENO: result: " >&5
26292 echo "${ECHO_T}" >&6; }
26293   { echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
26294 echo "${ECHO_T}${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
26300 if test $enable_rrdcgi != no; then
26301   BUILD_RRDCGI_TRUE=
26302   BUILD_RRDCGI_FALSE='#'
26303 else
26304   BUILD_RRDCGI_TRUE='#'
26305   BUILD_RRDCGI_FALSE=
26309 CORE_LIBS="$LIBS"
26312  ac_ext=c
26313 ac_cpp='$CPP $CPPFLAGS'
26314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26318  EX_CHECK_STATE=NO
26319  ex_check_save_LIBS=${LIBS}
26320  ex_check_save_CPPFLAGS=${CPPFLAGS}
26321  ex_check_save_LDFLAGS=${LDFLAGS}
26322  if test "x/usr/include/libart-2.0" != "x"; then
26323    CPPFLAGS="$CPPFLAGS -I/usr/include/libart-2.0"
26324  fi
26325   { echo "$as_me:$LINENO: checking for art_vpath_add_point in -lart_lgpl_2" >&5
26326 echo $ECHO_N "checking for art_vpath_add_point in -lart_lgpl_2... $ECHO_C" >&6; }
26327 if test "${ac_cv_lib_art_lgpl_2_art_vpath_add_point+set}" = set; then
26328   echo $ECHO_N "(cached) $ECHO_C" >&6
26329 else
26330   ac_check_lib_save_LIBS=$LIBS
26331 LIBS="-lart_lgpl_2  $LIBS"
26332 cat >conftest.$ac_ext <<_ACEOF
26333 /* confdefs.h.  */
26334 _ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h.  */
26339 /* Override any GCC internal prototype to avoid an error.
26340    Use char because int might match the return type of a GCC
26341    builtin and then its argument prototype would still apply.  */
26342 #ifdef __cplusplus
26343 extern "C"
26344 #endif
26345 char art_vpath_add_point ();
26346 int
26347 main ()
26349 return art_vpath_add_point ();
26350   ;
26351   return 0;
26353 _ACEOF
26354 rm -f conftest.$ac_objext conftest$ac_exeext
26355 if { (ac_try="$ac_link"
26356 case "(($ac_try" in
26357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26358   *) ac_try_echo=$ac_try;;
26359 esac
26360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26361   (eval "$ac_link") 2>conftest.er1
26362   ac_status=$?
26363   grep -v '^ *+' conftest.er1 >conftest.err
26364   rm -f conftest.er1
26365   cat conftest.err >&5
26366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367   (exit $ac_status); } && {
26368          test -z "$ac_c_werror_flag" ||
26369          test ! -s conftest.err
26370        } && test -s conftest$ac_exeext &&
26371        $as_test_x conftest$ac_exeext; then
26372   ac_cv_lib_art_lgpl_2_art_vpath_add_point=yes
26373 else
26374   echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.$ac_ext >&5
26377         ac_cv_lib_art_lgpl_2_art_vpath_add_point=no
26380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26381       conftest$ac_exeext conftest.$ac_ext
26382 LIBS=$ac_check_lib_save_LIBS
26384 { echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&5
26385 echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&6; }
26386 if test $ac_cv_lib_art_lgpl_2_art_vpath_add_point = yes; then
26388     if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
26389   { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
26390 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
26391 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
26392   echo $ECHO_N "(cached) $ECHO_C" >&6
26394 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
26395 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
26396 else
26397   # Is the header compilable?
26398 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h usability" >&5
26399 echo $ECHO_N "checking libart_lgpl/libart.h usability... $ECHO_C" >&6; }
26400 cat >conftest.$ac_ext <<_ACEOF
26401 /* confdefs.h.  */
26402 _ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h.  */
26406 $ac_includes_default
26407 #include <libart_lgpl/libart.h>
26408 _ACEOF
26409 rm -f conftest.$ac_objext
26410 if { (ac_try="$ac_compile"
26411 case "(($ac_try" in
26412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26413   *) ac_try_echo=$ac_try;;
26414 esac
26415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26416   (eval "$ac_compile") 2>conftest.er1
26417   ac_status=$?
26418   grep -v '^ *+' conftest.er1 >conftest.err
26419   rm -f conftest.er1
26420   cat conftest.err >&5
26421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26422   (exit $ac_status); } && {
26423          test -z "$ac_c_werror_flag" ||
26424          test ! -s conftest.err
26425        } && test -s conftest.$ac_objext; then
26426   ac_header_compiler=yes
26427 else
26428   echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26431         ac_header_compiler=no
26434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26436 echo "${ECHO_T}$ac_header_compiler" >&6; }
26438 # Is the header present?
26439 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h presence" >&5
26440 echo $ECHO_N "checking libart_lgpl/libart.h presence... $ECHO_C" >&6; }
26441 cat >conftest.$ac_ext <<_ACEOF
26442 /* confdefs.h.  */
26443 _ACEOF
26444 cat confdefs.h >>conftest.$ac_ext
26445 cat >>conftest.$ac_ext <<_ACEOF
26446 /* end confdefs.h.  */
26447 #include <libart_lgpl/libart.h>
26448 _ACEOF
26449 if { (ac_try="$ac_cpp conftest.$ac_ext"
26450 case "(($ac_try" in
26451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26452   *) ac_try_echo=$ac_try;;
26453 esac
26454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26456   ac_status=$?
26457   grep -v '^ *+' conftest.er1 >conftest.err
26458   rm -f conftest.er1
26459   cat conftest.err >&5
26460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461   (exit $ac_status); } >/dev/null && {
26462          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26463          test ! -s conftest.err
26464        }; then
26465   ac_header_preproc=yes
26466 else
26467   echo "$as_me: failed program was:" >&5
26468 sed 's/^/| /' conftest.$ac_ext >&5
26470   ac_header_preproc=no
26473 rm -f conftest.err conftest.$ac_ext
26474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26475 echo "${ECHO_T}$ac_header_preproc" >&6; }
26477 # So?  What about this header?
26478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26479   yes:no: )
26480     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&5
26481 echo "$as_me: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26482     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&5
26483 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&2;}
26484     ac_header_preproc=yes
26485     ;;
26486   no:yes:* )
26487     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&5
26488 echo "$as_me: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&2;}
26489     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h:     check for missing prerequisite headers?" >&5
26490 echo "$as_me: WARNING: libart_lgpl/libart.h:     check for missing prerequisite headers?" >&2;}
26491     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&5
26492 echo "$as_me: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&2;}
26493     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h:     section \"Present But Cannot Be Compiled\"" >&5
26494 echo "$as_me: WARNING: libart_lgpl/libart.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26495     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&5
26496 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&2;}
26497     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&5
26498 echo "$as_me: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&2;}
26500     ;;
26501 esac
26502 { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
26503 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
26504 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
26505   echo $ECHO_N "(cached) $ECHO_C" >&6
26506 else
26507   ac_cv_header_libart_lgpl_libart_h=$ac_header_preproc
26509 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
26510 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
26513 if test $ac_cv_header_libart_lgpl_libart_h = yes; then
26514   LIBS="-lart_lgpl_2 ${LIBS}";EX_CHECK_STATE=YES
26520  if test $EX_CHECK_STATE = NO; then
26521         for ac_prog in pkg-config
26523   # Extract the first word of "$ac_prog", so it can be a program name with args.
26524 set dummy $ac_prog; ac_word=$2
26525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26527 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
26528   echo $ECHO_N "(cached) $ECHO_C" >&6
26529 else
26530   if test -n "$PKGCONFIG"; then
26531   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
26532 else
26533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26534 for as_dir in $PATH
26536   IFS=$as_save_IFS
26537   test -z "$as_dir" && as_dir=.
26538   for ac_exec_ext in '' $ac_executable_extensions; do
26539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26540     ac_cv_prog_PKGCONFIG="$ac_prog"
26541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26542     break 2
26543   fi
26544 done
26545 done
26546 IFS=$as_save_IFS
26550 PKGCONFIG=$ac_cv_prog_PKGCONFIG
26551 if test -n "$PKGCONFIG"; then
26552   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
26553 echo "${ECHO_T}$PKGCONFIG" >&6; }
26554 else
26555   { echo "$as_me:$LINENO: result: no" >&5
26556 echo "${ECHO_T}no" >&6; }
26560   test -n "$PKGCONFIG" && break
26561 done
26562 test -n "$PKGCONFIG" || PKGCONFIG="no"
26564     if test "$PKGCONFIG" != "no"; then
26565           if $PKGCONFIG --exists libart-2.0; then
26566              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libart-2.0`
26567              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libart-2.0`
26568              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libart-2.0`
26569              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libart-2.0`
26570                      unset ac_cv_lib_art_lgpl_2_art_vpath_add_point
26571              { echo "$as_me:$LINENO: checking for art_vpath_add_point in -lart_lgpl_2" >&5
26572 echo $ECHO_N "checking for art_vpath_add_point in -lart_lgpl_2... $ECHO_C" >&6; }
26573 if test "${ac_cv_lib_art_lgpl_2_art_vpath_add_point+set}" = set; then
26574   echo $ECHO_N "(cached) $ECHO_C" >&6
26575 else
26576   ac_check_lib_save_LIBS=$LIBS
26577 LIBS="-lart_lgpl_2  $LIBS"
26578 cat >conftest.$ac_ext <<_ACEOF
26579 /* confdefs.h.  */
26580 _ACEOF
26581 cat confdefs.h >>conftest.$ac_ext
26582 cat >>conftest.$ac_ext <<_ACEOF
26583 /* end confdefs.h.  */
26585 /* Override any GCC internal prototype to avoid an error.
26586    Use char because int might match the return type of a GCC
26587    builtin and then its argument prototype would still apply.  */
26588 #ifdef __cplusplus
26589 extern "C"
26590 #endif
26591 char art_vpath_add_point ();
26592 int
26593 main ()
26595 return art_vpath_add_point ();
26596   ;
26597   return 0;
26599 _ACEOF
26600 rm -f conftest.$ac_objext conftest$ac_exeext
26601 if { (ac_try="$ac_link"
26602 case "(($ac_try" in
26603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26604   *) ac_try_echo=$ac_try;;
26605 esac
26606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26607   (eval "$ac_link") 2>conftest.er1
26608   ac_status=$?
26609   grep -v '^ *+' conftest.er1 >conftest.err
26610   rm -f conftest.er1
26611   cat conftest.err >&5
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); } && {
26614          test -z "$ac_c_werror_flag" ||
26615          test ! -s conftest.err
26616        } && test -s conftest$ac_exeext &&
26617        $as_test_x conftest$ac_exeext; then
26618   ac_cv_lib_art_lgpl_2_art_vpath_add_point=yes
26619 else
26620   echo "$as_me: failed program was:" >&5
26621 sed 's/^/| /' conftest.$ac_ext >&5
26623         ac_cv_lib_art_lgpl_2_art_vpath_add_point=no
26626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26627       conftest$ac_exeext conftest.$ac_ext
26628 LIBS=$ac_check_lib_save_LIBS
26630 { echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&5
26631 echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_art_vpath_add_point" >&6; }
26632 if test $ac_cv_lib_art_lgpl_2_art_vpath_add_point = yes; then
26634                  unset ac_cv_header_`echo libart_lgpl/libart.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
26635                  if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
26636   { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
26637 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
26638 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
26639   echo $ECHO_N "(cached) $ECHO_C" >&6
26641 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
26642 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
26643 else
26644   # Is the header compilable?
26645 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h usability" >&5
26646 echo $ECHO_N "checking libart_lgpl/libart.h usability... $ECHO_C" >&6; }
26647 cat >conftest.$ac_ext <<_ACEOF
26648 /* confdefs.h.  */
26649 _ACEOF
26650 cat confdefs.h >>conftest.$ac_ext
26651 cat >>conftest.$ac_ext <<_ACEOF
26652 /* end confdefs.h.  */
26653 $ac_includes_default
26654 #include <libart_lgpl/libart.h>
26655 _ACEOF
26656 rm -f conftest.$ac_objext
26657 if { (ac_try="$ac_compile"
26658 case "(($ac_try" in
26659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26660   *) ac_try_echo=$ac_try;;
26661 esac
26662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26663   (eval "$ac_compile") 2>conftest.er1
26664   ac_status=$?
26665   grep -v '^ *+' conftest.er1 >conftest.err
26666   rm -f conftest.er1
26667   cat conftest.err >&5
26668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669   (exit $ac_status); } && {
26670          test -z "$ac_c_werror_flag" ||
26671          test ! -s conftest.err
26672        } && test -s conftest.$ac_objext; then
26673   ac_header_compiler=yes
26674 else
26675   echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26678         ac_header_compiler=no
26681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26683 echo "${ECHO_T}$ac_header_compiler" >&6; }
26685 # Is the header present?
26686 { echo "$as_me:$LINENO: checking libart_lgpl/libart.h presence" >&5
26687 echo $ECHO_N "checking libart_lgpl/libart.h presence... $ECHO_C" >&6; }
26688 cat >conftest.$ac_ext <<_ACEOF
26689 /* confdefs.h.  */
26690 _ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h.  */
26694 #include <libart_lgpl/libart.h>
26695 _ACEOF
26696 if { (ac_try="$ac_cpp conftest.$ac_ext"
26697 case "(($ac_try" in
26698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26699   *) ac_try_echo=$ac_try;;
26700 esac
26701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26703   ac_status=$?
26704   grep -v '^ *+' conftest.er1 >conftest.err
26705   rm -f conftest.er1
26706   cat conftest.err >&5
26707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708   (exit $ac_status); } >/dev/null && {
26709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26710          test ! -s conftest.err
26711        }; then
26712   ac_header_preproc=yes
26713 else
26714   echo "$as_me: failed program was:" >&5
26715 sed 's/^/| /' conftest.$ac_ext >&5
26717   ac_header_preproc=no
26720 rm -f conftest.err conftest.$ac_ext
26721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26722 echo "${ECHO_T}$ac_header_preproc" >&6; }
26724 # So?  What about this header?
26725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26726   yes:no: )
26727     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&5
26728 echo "$as_me: WARNING: libart_lgpl/libart.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26729     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&5
26730 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the compiler's result" >&2;}
26731     ac_header_preproc=yes
26732     ;;
26733   no:yes:* )
26734     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&5
26735 echo "$as_me: WARNING: libart_lgpl/libart.h: present but cannot be compiled" >&2;}
26736     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h:     check for missing prerequisite headers?" >&5
26737 echo "$as_me: WARNING: libart_lgpl/libart.h:     check for missing prerequisite headers?" >&2;}
26738     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&5
26739 echo "$as_me: WARNING: libart_lgpl/libart.h: see the Autoconf documentation" >&2;}
26740     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h:     section \"Present But Cannot Be Compiled\"" >&5
26741 echo "$as_me: WARNING: libart_lgpl/libart.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26742     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&5
26743 echo "$as_me: WARNING: libart_lgpl/libart.h: proceeding with the preprocessor's result" >&2;}
26744     { echo "$as_me:$LINENO: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&5
26745 echo "$as_me: WARNING: libart_lgpl/libart.h: in the future, the compiler will take precedence" >&2;}
26747     ;;
26748 esac
26749 { echo "$as_me:$LINENO: checking for libart_lgpl/libart.h" >&5
26750 echo $ECHO_N "checking for libart_lgpl/libart.h... $ECHO_C" >&6; }
26751 if test "${ac_cv_header_libart_lgpl_libart_h+set}" = set; then
26752   echo $ECHO_N "(cached) $ECHO_C" >&6
26753 else
26754   ac_cv_header_libart_lgpl_libart_h=$ac_header_preproc
26756 { echo "$as_me:$LINENO: result: $ac_cv_header_libart_lgpl_libart_h" >&5
26757 echo "${ECHO_T}$ac_cv_header_libart_lgpl_libart_h" >&6; }
26760 if test $ac_cv_header_libart_lgpl_libart_h = yes; then
26761   EX_CHECK_STATE=YES
26768           else
26769              { echo "$as_me:$LINENO: WARNING:
26770 ----------------------------------------------------------------------------
26771 * I found a copy of pkgconfig, but there is no libart-2.0.pc file around.
26772   You may want to set the PKG_CONFIG_PATH variable to point to its
26773   location.
26774 ----------------------------------------------------------------------------
26775                         " >&5
26776 echo "$as_me: WARNING:
26777 ----------------------------------------------------------------------------
26778 * I found a copy of pkgconfig, but there is no libart-2.0.pc file around.
26779   You may want to set the PKG_CONFIG_PATH variable to point to its
26780   location.
26781 ----------------------------------------------------------------------------
26782                         " >&2;}
26783            fi
26784      fi
26785   fi
26787   if test ${EX_CHECK_STATE} = NO; then
26788      { echo "$as_me:$LINENO: WARNING:
26789 ----------------------------------------------------------------------------
26790 * I could not find a working copy of libart-2.0. Check config.log for hints on why
26791   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26792   so that compiler and the linker can find libart_lgpl_2 and its header files. If
26793   you have not installed libart-2.0, you can get it either from its original home on
26795      ftp://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/
26797   You can find also find an archive copy on
26799      http://oss.oetiker.ch/rrdtool/pub/libs
26801   The last tested version of libart-2.0 is 2.3.17.
26803        LIBS=$LIBS
26804    LDFLAGS=$LDFLAGS
26805   CPPFLAGS=$CPPFLAGS
26807 ----------------------------------------------------------------------------
26808                 " >&5
26809 echo "$as_me: WARNING:
26810 ----------------------------------------------------------------------------
26811 * I could not find a working copy of libart-2.0. Check config.log for hints on why
26812   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
26813   so that compiler and the linker can find libart_lgpl_2 and its header files. If
26814   you have not installed libart-2.0, you can get it either from its original home on
26816      ftp://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/2.3/
26818   You can find also find an archive copy on
26820      http://oss.oetiker.ch/rrdtool/pub/libs
26822   The last tested version of libart-2.0 is 2.3.17.
26824        LIBS=$LIBS
26825    LDFLAGS=$LDFLAGS
26826   CPPFLAGS=$CPPFLAGS
26828 ----------------------------------------------------------------------------
26829                 " >&2;}
26830        EX_CHECK_ALL_ERR=YES
26831        LIBS="${ex_check_save_LIBS}"
26832        CPPFLAGS="${ex_check_save_CPPFLAGS}"
26833        LDFLAGS="${ex_check_save_LDFLAGS}"
26834     fi
26835     ac_ext=c
26836 ac_cpp='$CPP $CPPFLAGS'
26837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26844  ac_ext=c
26845 ac_cpp='$CPP $CPPFLAGS'
26846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26850  EX_CHECK_STATE=NO
26851  ex_check_save_LIBS=${LIBS}
26852  ex_check_save_CPPFLAGS=${CPPFLAGS}
26853  ex_check_save_LDFLAGS=${LDFLAGS}
26854  if test "x""" != "x"; then
26855    CPPFLAGS="$CPPFLAGS -I"""
26856  fi
26857   { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
26858 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
26859 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
26860   echo $ECHO_N "(cached) $ECHO_C" >&6
26861 else
26862   ac_check_lib_save_LIBS=$LIBS
26863 LIBS="-lz  $LIBS"
26864 cat >conftest.$ac_ext <<_ACEOF
26865 /* confdefs.h.  */
26866 _ACEOF
26867 cat confdefs.h >>conftest.$ac_ext
26868 cat >>conftest.$ac_ext <<_ACEOF
26869 /* end confdefs.h.  */
26871 /* Override any GCC internal prototype to avoid an error.
26872    Use char because int might match the return type of a GCC
26873    builtin and then its argument prototype would still apply.  */
26874 #ifdef __cplusplus
26875 extern "C"
26876 #endif
26877 char zlibVersion ();
26878 int
26879 main ()
26881 return zlibVersion ();
26882   ;
26883   return 0;
26885 _ACEOF
26886 rm -f conftest.$ac_objext conftest$ac_exeext
26887 if { (ac_try="$ac_link"
26888 case "(($ac_try" in
26889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26890   *) ac_try_echo=$ac_try;;
26891 esac
26892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893   (eval "$ac_link") 2>conftest.er1
26894   ac_status=$?
26895   grep -v '^ *+' conftest.er1 >conftest.err
26896   rm -f conftest.er1
26897   cat conftest.err >&5
26898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899   (exit $ac_status); } && {
26900          test -z "$ac_c_werror_flag" ||
26901          test ! -s conftest.err
26902        } && test -s conftest$ac_exeext &&
26903        $as_test_x conftest$ac_exeext; then
26904   ac_cv_lib_z_zlibVersion=yes
26905 else
26906   echo "$as_me: failed program was:" >&5
26907 sed 's/^/| /' conftest.$ac_ext >&5
26909         ac_cv_lib_z_zlibVersion=no
26912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26913       conftest$ac_exeext conftest.$ac_ext
26914 LIBS=$ac_check_lib_save_LIBS
26916 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
26917 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
26918 if test $ac_cv_lib_z_zlibVersion = yes; then
26920     if test "${ac_cv_header_zlib_h+set}" = set; then
26921   { echo "$as_me:$LINENO: checking for zlib.h" >&5
26922 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26923 if test "${ac_cv_header_zlib_h+set}" = set; then
26924   echo $ECHO_N "(cached) $ECHO_C" >&6
26926 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26927 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26928 else
26929   # Is the header compilable?
26930 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
26931 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
26932 cat >conftest.$ac_ext <<_ACEOF
26933 /* confdefs.h.  */
26934 _ACEOF
26935 cat confdefs.h >>conftest.$ac_ext
26936 cat >>conftest.$ac_ext <<_ACEOF
26937 /* end confdefs.h.  */
26938 $ac_includes_default
26939 #include <zlib.h>
26940 _ACEOF
26941 rm -f conftest.$ac_objext
26942 if { (ac_try="$ac_compile"
26943 case "(($ac_try" in
26944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945   *) ac_try_echo=$ac_try;;
26946 esac
26947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26948   (eval "$ac_compile") 2>conftest.er1
26949   ac_status=$?
26950   grep -v '^ *+' conftest.er1 >conftest.err
26951   rm -f conftest.er1
26952   cat conftest.err >&5
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); } && {
26955          test -z "$ac_c_werror_flag" ||
26956          test ! -s conftest.err
26957        } && test -s conftest.$ac_objext; then
26958   ac_header_compiler=yes
26959 else
26960   echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26963         ac_header_compiler=no
26966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26968 echo "${ECHO_T}$ac_header_compiler" >&6; }
26970 # Is the header present?
26971 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
26972 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
26973 cat >conftest.$ac_ext <<_ACEOF
26974 /* confdefs.h.  */
26975 _ACEOF
26976 cat confdefs.h >>conftest.$ac_ext
26977 cat >>conftest.$ac_ext <<_ACEOF
26978 /* end confdefs.h.  */
26979 #include <zlib.h>
26980 _ACEOF
26981 if { (ac_try="$ac_cpp conftest.$ac_ext"
26982 case "(($ac_try" in
26983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984   *) ac_try_echo=$ac_try;;
26985 esac
26986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26988   ac_status=$?
26989   grep -v '^ *+' conftest.er1 >conftest.err
26990   rm -f conftest.er1
26991   cat conftest.err >&5
26992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993   (exit $ac_status); } >/dev/null && {
26994          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26995          test ! -s conftest.err
26996        }; then
26997   ac_header_preproc=yes
26998 else
26999   echo "$as_me: failed program was:" >&5
27000 sed 's/^/| /' conftest.$ac_ext >&5
27002   ac_header_preproc=no
27005 rm -f conftest.err conftest.$ac_ext
27006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27007 echo "${ECHO_T}$ac_header_preproc" >&6; }
27009 # So?  What about this header?
27010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27011   yes:no: )
27012     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27013 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27014     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
27015 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
27016     ac_header_preproc=yes
27017     ;;
27018   no:yes:* )
27019     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
27020 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
27021     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
27022 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
27023     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
27024 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
27025     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
27026 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27027     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
27028 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
27029     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
27030 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
27032     ;;
27033 esac
27034 { echo "$as_me:$LINENO: checking for zlib.h" >&5
27035 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27036 if test "${ac_cv_header_zlib_h+set}" = set; then
27037   echo $ECHO_N "(cached) $ECHO_C" >&6
27038 else
27039   ac_cv_header_zlib_h=$ac_header_preproc
27041 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27042 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27045 if test $ac_cv_header_zlib_h = yes; then
27046   LIBS="-lz ${LIBS}";EX_CHECK_STATE=YES
27052  if test $EX_CHECK_STATE = NO; then
27053         for ac_prog in pkg-config
27055   # Extract the first word of "$ac_prog", so it can be a program name with args.
27056 set dummy $ac_prog; ac_word=$2
27057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27059 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
27060   echo $ECHO_N "(cached) $ECHO_C" >&6
27061 else
27062   if test -n "$PKGCONFIG"; then
27063   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
27064 else
27065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27066 for as_dir in $PATH
27068   IFS=$as_save_IFS
27069   test -z "$as_dir" && as_dir=.
27070   for ac_exec_ext in '' $ac_executable_extensions; do
27071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27072     ac_cv_prog_PKGCONFIG="$ac_prog"
27073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27074     break 2
27075   fi
27076 done
27077 done
27078 IFS=$as_save_IFS
27082 PKGCONFIG=$ac_cv_prog_PKGCONFIG
27083 if test -n "$PKGCONFIG"; then
27084   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
27085 echo "${ECHO_T}$PKGCONFIG" >&6; }
27086 else
27087   { echo "$as_me:$LINENO: result: no" >&5
27088 echo "${ECHO_T}no" >&6; }
27092   test -n "$PKGCONFIG" && break
27093 done
27094 test -n "$PKGCONFIG" || PKGCONFIG="no"
27096     if test "$PKGCONFIG" != "no"; then
27097           if $PKGCONFIG --exists zlib; then
27098              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags zlib`
27099              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L zlib`
27100              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other zlib`
27101              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l zlib`
27102                      unset ac_cv_lib_z_zlibVersion
27103              { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
27104 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
27105 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
27106   echo $ECHO_N "(cached) $ECHO_C" >&6
27107 else
27108   ac_check_lib_save_LIBS=$LIBS
27109 LIBS="-lz  $LIBS"
27110 cat >conftest.$ac_ext <<_ACEOF
27111 /* confdefs.h.  */
27112 _ACEOF
27113 cat confdefs.h >>conftest.$ac_ext
27114 cat >>conftest.$ac_ext <<_ACEOF
27115 /* end confdefs.h.  */
27117 /* Override any GCC internal prototype to avoid an error.
27118    Use char because int might match the return type of a GCC
27119    builtin and then its argument prototype would still apply.  */
27120 #ifdef __cplusplus
27121 extern "C"
27122 #endif
27123 char zlibVersion ();
27124 int
27125 main ()
27127 return zlibVersion ();
27128   ;
27129   return 0;
27131 _ACEOF
27132 rm -f conftest.$ac_objext conftest$ac_exeext
27133 if { (ac_try="$ac_link"
27134 case "(($ac_try" in
27135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136   *) ac_try_echo=$ac_try;;
27137 esac
27138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139   (eval "$ac_link") 2>conftest.er1
27140   ac_status=$?
27141   grep -v '^ *+' conftest.er1 >conftest.err
27142   rm -f conftest.er1
27143   cat conftest.err >&5
27144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145   (exit $ac_status); } && {
27146          test -z "$ac_c_werror_flag" ||
27147          test ! -s conftest.err
27148        } && test -s conftest$ac_exeext &&
27149        $as_test_x conftest$ac_exeext; then
27150   ac_cv_lib_z_zlibVersion=yes
27151 else
27152   echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27155         ac_cv_lib_z_zlibVersion=no
27158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27159       conftest$ac_exeext conftest.$ac_ext
27160 LIBS=$ac_check_lib_save_LIBS
27162 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
27163 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
27164 if test $ac_cv_lib_z_zlibVersion = yes; then
27166                  unset ac_cv_header_`echo zlib.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
27167                  if test "${ac_cv_header_zlib_h+set}" = set; then
27168   { echo "$as_me:$LINENO: checking for zlib.h" >&5
27169 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27170 if test "${ac_cv_header_zlib_h+set}" = set; then
27171   echo $ECHO_N "(cached) $ECHO_C" >&6
27173 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27174 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27175 else
27176   # Is the header compilable?
27177 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
27178 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
27179 cat >conftest.$ac_ext <<_ACEOF
27180 /* confdefs.h.  */
27181 _ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h.  */
27185 $ac_includes_default
27186 #include <zlib.h>
27187 _ACEOF
27188 rm -f conftest.$ac_objext
27189 if { (ac_try="$ac_compile"
27190 case "(($ac_try" in
27191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192   *) ac_try_echo=$ac_try;;
27193 esac
27194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195   (eval "$ac_compile") 2>conftest.er1
27196   ac_status=$?
27197   grep -v '^ *+' conftest.er1 >conftest.err
27198   rm -f conftest.er1
27199   cat conftest.err >&5
27200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201   (exit $ac_status); } && {
27202          test -z "$ac_c_werror_flag" ||
27203          test ! -s conftest.err
27204        } && test -s conftest.$ac_objext; then
27205   ac_header_compiler=yes
27206 else
27207   echo "$as_me: failed program was:" >&5
27208 sed 's/^/| /' conftest.$ac_ext >&5
27210         ac_header_compiler=no
27213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27215 echo "${ECHO_T}$ac_header_compiler" >&6; }
27217 # Is the header present?
27218 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
27219 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
27220 cat >conftest.$ac_ext <<_ACEOF
27221 /* confdefs.h.  */
27222 _ACEOF
27223 cat confdefs.h >>conftest.$ac_ext
27224 cat >>conftest.$ac_ext <<_ACEOF
27225 /* end confdefs.h.  */
27226 #include <zlib.h>
27227 _ACEOF
27228 if { (ac_try="$ac_cpp conftest.$ac_ext"
27229 case "(($ac_try" in
27230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231   *) ac_try_echo=$ac_try;;
27232 esac
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27235   ac_status=$?
27236   grep -v '^ *+' conftest.er1 >conftest.err
27237   rm -f conftest.er1
27238   cat conftest.err >&5
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); } >/dev/null && {
27241          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27242          test ! -s conftest.err
27243        }; then
27244   ac_header_preproc=yes
27245 else
27246   echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27249   ac_header_preproc=no
27252 rm -f conftest.err conftest.$ac_ext
27253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27254 echo "${ECHO_T}$ac_header_preproc" >&6; }
27256 # So?  What about this header?
27257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27258   yes:no: )
27259     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
27260 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27261     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
27262 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
27263     ac_header_preproc=yes
27264     ;;
27265   no:yes:* )
27266     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
27267 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
27268     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
27269 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
27270     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
27271 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
27272     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
27273 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27274     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
27275 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
27276     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
27277 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
27279     ;;
27280 esac
27281 { echo "$as_me:$LINENO: checking for zlib.h" >&5
27282 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
27283 if test "${ac_cv_header_zlib_h+set}" = set; then
27284   echo $ECHO_N "(cached) $ECHO_C" >&6
27285 else
27286   ac_cv_header_zlib_h=$ac_header_preproc
27288 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
27289 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
27292 if test $ac_cv_header_zlib_h = yes; then
27293   EX_CHECK_STATE=YES
27300           else
27301              { echo "$as_me:$LINENO: WARNING:
27302 ----------------------------------------------------------------------------
27303 * I found a copy of pkgconfig, but there is no zlib.pc file around.
27304   You may want to set the PKG_CONFIG_PATH variable to point to its
27305   location.
27306 ----------------------------------------------------------------------------
27307                         " >&5
27308 echo "$as_me: WARNING:
27309 ----------------------------------------------------------------------------
27310 * I found a copy of pkgconfig, but there is no zlib.pc file around.
27311   You may want to set the PKG_CONFIG_PATH variable to point to its
27312   location.
27313 ----------------------------------------------------------------------------
27314                         " >&2;}
27315            fi
27316      fi
27317   fi
27319   if test ${EX_CHECK_STATE} = NO; then
27320      { echo "$as_me:$LINENO: WARNING:
27321 ----------------------------------------------------------------------------
27322 * I could not find a working copy of zlib. Check config.log for hints on why
27323   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27324   so that compiler and the linker can find libz and its header files. If
27325   you have not installed zlib, you can get it either from its original home on
27327      http://www.gzip.org/zlib/
27329   You can find also find an archive copy on
27331      http://oss.oetiker.ch/rrdtool/pub/libs
27333   The last tested version of zlib is 1.2.3.
27335        LIBS=$LIBS
27336    LDFLAGS=$LDFLAGS
27337   CPPFLAGS=$CPPFLAGS
27339 ----------------------------------------------------------------------------
27340                 " >&5
27341 echo "$as_me: WARNING:
27342 ----------------------------------------------------------------------------
27343 * I could not find a working copy of zlib. Check config.log for hints on why
27344   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27345   so that compiler and the linker can find libz and its header files. If
27346   you have not installed zlib, you can get it either from its original home on
27348      http://www.gzip.org/zlib/
27350   You can find also find an archive copy on
27352      http://oss.oetiker.ch/rrdtool/pub/libs
27354   The last tested version of zlib is 1.2.3.
27356        LIBS=$LIBS
27357    LDFLAGS=$LDFLAGS
27358   CPPFLAGS=$CPPFLAGS
27360 ----------------------------------------------------------------------------
27361                 " >&2;}
27362        EX_CHECK_ALL_ERR=YES
27363        LIBS="${ex_check_save_LIBS}"
27364        CPPFLAGS="${ex_check_save_CPPFLAGS}"
27365        LDFLAGS="${ex_check_save_LDFLAGS}"
27366     fi
27367     ac_ext=c
27368 ac_cpp='$CPP $CPPFLAGS'
27369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27376  ac_ext=c
27377 ac_cpp='$CPP $CPPFLAGS'
27378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27382  EX_CHECK_STATE=NO
27383  ex_check_save_LIBS=${LIBS}
27384  ex_check_save_CPPFLAGS=${CPPFLAGS}
27385  ex_check_save_LDFLAGS=${LDFLAGS}
27386  if test "x""" != "x"; then
27387    CPPFLAGS="$CPPFLAGS -I"""
27388  fi
27389   { echo "$as_me:$LINENO: checking for png_access_version_number in -lpng" >&5
27390 echo $ECHO_N "checking for png_access_version_number in -lpng... $ECHO_C" >&6; }
27391 if test "${ac_cv_lib_png_png_access_version_number+set}" = set; then
27392   echo $ECHO_N "(cached) $ECHO_C" >&6
27393 else
27394   ac_check_lib_save_LIBS=$LIBS
27395 LIBS="-lpng  $LIBS"
27396 cat >conftest.$ac_ext <<_ACEOF
27397 /* confdefs.h.  */
27398 _ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h.  */
27403 /* Override any GCC internal prototype to avoid an error.
27404    Use char because int might match the return type of a GCC
27405    builtin and then its argument prototype would still apply.  */
27406 #ifdef __cplusplus
27407 extern "C"
27408 #endif
27409 char png_access_version_number ();
27410 int
27411 main ()
27413 return png_access_version_number ();
27414   ;
27415   return 0;
27417 _ACEOF
27418 rm -f conftest.$ac_objext conftest$ac_exeext
27419 if { (ac_try="$ac_link"
27420 case "(($ac_try" in
27421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422   *) ac_try_echo=$ac_try;;
27423 esac
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425   (eval "$ac_link") 2>conftest.er1
27426   ac_status=$?
27427   grep -v '^ *+' conftest.er1 >conftest.err
27428   rm -f conftest.er1
27429   cat conftest.err >&5
27430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431   (exit $ac_status); } && {
27432          test -z "$ac_c_werror_flag" ||
27433          test ! -s conftest.err
27434        } && test -s conftest$ac_exeext &&
27435        $as_test_x conftest$ac_exeext; then
27436   ac_cv_lib_png_png_access_version_number=yes
27437 else
27438   echo "$as_me: failed program was:" >&5
27439 sed 's/^/| /' conftest.$ac_ext >&5
27441         ac_cv_lib_png_png_access_version_number=no
27444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27445       conftest$ac_exeext conftest.$ac_ext
27446 LIBS=$ac_check_lib_save_LIBS
27448 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_access_version_number" >&5
27449 echo "${ECHO_T}$ac_cv_lib_png_png_access_version_number" >&6; }
27450 if test $ac_cv_lib_png_png_access_version_number = yes; then
27452     if test "${ac_cv_header_png_h+set}" = set; then
27453   { echo "$as_me:$LINENO: checking for png.h" >&5
27454 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
27455 if test "${ac_cv_header_png_h+set}" = set; then
27456   echo $ECHO_N "(cached) $ECHO_C" >&6
27458 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27459 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27460 else
27461   # Is the header compilable?
27462 { echo "$as_me:$LINENO: checking png.h usability" >&5
27463 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
27464 cat >conftest.$ac_ext <<_ACEOF
27465 /* confdefs.h.  */
27466 _ACEOF
27467 cat confdefs.h >>conftest.$ac_ext
27468 cat >>conftest.$ac_ext <<_ACEOF
27469 /* end confdefs.h.  */
27470 $ac_includes_default
27471 #include <png.h>
27472 _ACEOF
27473 rm -f conftest.$ac_objext
27474 if { (ac_try="$ac_compile"
27475 case "(($ac_try" in
27476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27477   *) ac_try_echo=$ac_try;;
27478 esac
27479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27480   (eval "$ac_compile") 2>conftest.er1
27481   ac_status=$?
27482   grep -v '^ *+' conftest.er1 >conftest.err
27483   rm -f conftest.er1
27484   cat conftest.err >&5
27485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486   (exit $ac_status); } && {
27487          test -z "$ac_c_werror_flag" ||
27488          test ! -s conftest.err
27489        } && test -s conftest.$ac_objext; then
27490   ac_header_compiler=yes
27491 else
27492   echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27495         ac_header_compiler=no
27498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27500 echo "${ECHO_T}$ac_header_compiler" >&6; }
27502 # Is the header present?
27503 { echo "$as_me:$LINENO: checking png.h presence" >&5
27504 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
27505 cat >conftest.$ac_ext <<_ACEOF
27506 /* confdefs.h.  */
27507 _ACEOF
27508 cat confdefs.h >>conftest.$ac_ext
27509 cat >>conftest.$ac_ext <<_ACEOF
27510 /* end confdefs.h.  */
27511 #include <png.h>
27512 _ACEOF
27513 if { (ac_try="$ac_cpp conftest.$ac_ext"
27514 case "(($ac_try" in
27515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516   *) ac_try_echo=$ac_try;;
27517 esac
27518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27520   ac_status=$?
27521   grep -v '^ *+' conftest.er1 >conftest.err
27522   rm -f conftest.er1
27523   cat conftest.err >&5
27524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525   (exit $ac_status); } >/dev/null && {
27526          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27527          test ! -s conftest.err
27528        }; then
27529   ac_header_preproc=yes
27530 else
27531   echo "$as_me: failed program was:" >&5
27532 sed 's/^/| /' conftest.$ac_ext >&5
27534   ac_header_preproc=no
27537 rm -f conftest.err conftest.$ac_ext
27538 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27539 echo "${ECHO_T}$ac_header_preproc" >&6; }
27541 # So?  What about this header?
27542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27543   yes:no: )
27544     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
27545 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27546     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
27547 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
27548     ac_header_preproc=yes
27549     ;;
27550   no:yes:* )
27551     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
27552 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
27553     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
27554 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
27555     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
27556 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
27557     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
27558 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27559     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
27560 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
27561     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
27562 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
27564     ;;
27565 esac
27566 { echo "$as_me:$LINENO: checking for png.h" >&5
27567 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
27568 if test "${ac_cv_header_png_h+set}" = set; then
27569   echo $ECHO_N "(cached) $ECHO_C" >&6
27570 else
27571   ac_cv_header_png_h=$ac_header_preproc
27573 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27574 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27577 if test $ac_cv_header_png_h = yes; then
27578   LIBS="-lpng ${LIBS}";EX_CHECK_STATE=YES
27584  if test $EX_CHECK_STATE = NO; then
27585         for ac_prog in pkg-config
27587   # Extract the first word of "$ac_prog", so it can be a program name with args.
27588 set dummy $ac_prog; ac_word=$2
27589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27591 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
27592   echo $ECHO_N "(cached) $ECHO_C" >&6
27593 else
27594   if test -n "$PKGCONFIG"; then
27595   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
27596 else
27597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27598 for as_dir in $PATH
27600   IFS=$as_save_IFS
27601   test -z "$as_dir" && as_dir=.
27602   for ac_exec_ext in '' $ac_executable_extensions; do
27603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27604     ac_cv_prog_PKGCONFIG="$ac_prog"
27605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27606     break 2
27607   fi
27608 done
27609 done
27610 IFS=$as_save_IFS
27614 PKGCONFIG=$ac_cv_prog_PKGCONFIG
27615 if test -n "$PKGCONFIG"; then
27616   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
27617 echo "${ECHO_T}$PKGCONFIG" >&6; }
27618 else
27619   { echo "$as_me:$LINENO: result: no" >&5
27620 echo "${ECHO_T}no" >&6; }
27624   test -n "$PKGCONFIG" && break
27625 done
27626 test -n "$PKGCONFIG" || PKGCONFIG="no"
27628     if test "$PKGCONFIG" != "no"; then
27629           if $PKGCONFIG --exists libpng; then
27630              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libpng`
27631              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libpng`
27632              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libpng`
27633              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libpng`
27634                      unset ac_cv_lib_png_png_access_version_number
27635              { echo "$as_me:$LINENO: checking for png_access_version_number in -lpng" >&5
27636 echo $ECHO_N "checking for png_access_version_number in -lpng... $ECHO_C" >&6; }
27637 if test "${ac_cv_lib_png_png_access_version_number+set}" = set; then
27638   echo $ECHO_N "(cached) $ECHO_C" >&6
27639 else
27640   ac_check_lib_save_LIBS=$LIBS
27641 LIBS="-lpng  $LIBS"
27642 cat >conftest.$ac_ext <<_ACEOF
27643 /* confdefs.h.  */
27644 _ACEOF
27645 cat confdefs.h >>conftest.$ac_ext
27646 cat >>conftest.$ac_ext <<_ACEOF
27647 /* end confdefs.h.  */
27649 /* Override any GCC internal prototype to avoid an error.
27650    Use char because int might match the return type of a GCC
27651    builtin and then its argument prototype would still apply.  */
27652 #ifdef __cplusplus
27653 extern "C"
27654 #endif
27655 char png_access_version_number ();
27656 int
27657 main ()
27659 return png_access_version_number ();
27660   ;
27661   return 0;
27663 _ACEOF
27664 rm -f conftest.$ac_objext conftest$ac_exeext
27665 if { (ac_try="$ac_link"
27666 case "(($ac_try" in
27667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668   *) ac_try_echo=$ac_try;;
27669 esac
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671   (eval "$ac_link") 2>conftest.er1
27672   ac_status=$?
27673   grep -v '^ *+' conftest.er1 >conftest.err
27674   rm -f conftest.er1
27675   cat conftest.err >&5
27676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677   (exit $ac_status); } && {
27678          test -z "$ac_c_werror_flag" ||
27679          test ! -s conftest.err
27680        } && test -s conftest$ac_exeext &&
27681        $as_test_x conftest$ac_exeext; then
27682   ac_cv_lib_png_png_access_version_number=yes
27683 else
27684   echo "$as_me: failed program was:" >&5
27685 sed 's/^/| /' conftest.$ac_ext >&5
27687         ac_cv_lib_png_png_access_version_number=no
27690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27691       conftest$ac_exeext conftest.$ac_ext
27692 LIBS=$ac_check_lib_save_LIBS
27694 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_access_version_number" >&5
27695 echo "${ECHO_T}$ac_cv_lib_png_png_access_version_number" >&6; }
27696 if test $ac_cv_lib_png_png_access_version_number = yes; then
27698                  unset ac_cv_header_`echo png.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
27699                  if test "${ac_cv_header_png_h+set}" = set; then
27700   { echo "$as_me:$LINENO: checking for png.h" >&5
27701 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
27702 if test "${ac_cv_header_png_h+set}" = set; then
27703   echo $ECHO_N "(cached) $ECHO_C" >&6
27705 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27706 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27707 else
27708   # Is the header compilable?
27709 { echo "$as_me:$LINENO: checking png.h usability" >&5
27710 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6; }
27711 cat >conftest.$ac_ext <<_ACEOF
27712 /* confdefs.h.  */
27713 _ACEOF
27714 cat confdefs.h >>conftest.$ac_ext
27715 cat >>conftest.$ac_ext <<_ACEOF
27716 /* end confdefs.h.  */
27717 $ac_includes_default
27718 #include <png.h>
27719 _ACEOF
27720 rm -f conftest.$ac_objext
27721 if { (ac_try="$ac_compile"
27722 case "(($ac_try" in
27723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724   *) ac_try_echo=$ac_try;;
27725 esac
27726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727   (eval "$ac_compile") 2>conftest.er1
27728   ac_status=$?
27729   grep -v '^ *+' conftest.er1 >conftest.err
27730   rm -f conftest.er1
27731   cat conftest.err >&5
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); } && {
27734          test -z "$ac_c_werror_flag" ||
27735          test ! -s conftest.err
27736        } && test -s conftest.$ac_objext; then
27737   ac_header_compiler=yes
27738 else
27739   echo "$as_me: failed program was:" >&5
27740 sed 's/^/| /' conftest.$ac_ext >&5
27742         ac_header_compiler=no
27745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27747 echo "${ECHO_T}$ac_header_compiler" >&6; }
27749 # Is the header present?
27750 { echo "$as_me:$LINENO: checking png.h presence" >&5
27751 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6; }
27752 cat >conftest.$ac_ext <<_ACEOF
27753 /* confdefs.h.  */
27754 _ACEOF
27755 cat confdefs.h >>conftest.$ac_ext
27756 cat >>conftest.$ac_ext <<_ACEOF
27757 /* end confdefs.h.  */
27758 #include <png.h>
27759 _ACEOF
27760 if { (ac_try="$ac_cpp conftest.$ac_ext"
27761 case "(($ac_try" in
27762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763   *) ac_try_echo=$ac_try;;
27764 esac
27765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27767   ac_status=$?
27768   grep -v '^ *+' conftest.er1 >conftest.err
27769   rm -f conftest.er1
27770   cat conftest.err >&5
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); } >/dev/null && {
27773          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27774          test ! -s conftest.err
27775        }; then
27776   ac_header_preproc=yes
27777 else
27778   echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.$ac_ext >&5
27781   ac_header_preproc=no
27784 rm -f conftest.err conftest.$ac_ext
27785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27786 echo "${ECHO_T}$ac_header_preproc" >&6; }
27788 # So?  What about this header?
27789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27790   yes:no: )
27791     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
27792 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27793     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
27794 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
27795     ac_header_preproc=yes
27796     ;;
27797   no:yes:* )
27798     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
27799 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
27800     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
27801 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
27802     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
27803 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
27804     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
27805 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27806     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
27807 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
27808     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
27809 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
27811     ;;
27812 esac
27813 { echo "$as_me:$LINENO: checking for png.h" >&5
27814 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
27815 if test "${ac_cv_header_png_h+set}" = set; then
27816   echo $ECHO_N "(cached) $ECHO_C" >&6
27817 else
27818   ac_cv_header_png_h=$ac_header_preproc
27820 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
27821 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
27824 if test $ac_cv_header_png_h = yes; then
27825   EX_CHECK_STATE=YES
27832           else
27833              { echo "$as_me:$LINENO: WARNING:
27834 ----------------------------------------------------------------------------
27835 * I found a copy of pkgconfig, but there is no libpng.pc file around.
27836   You may want to set the PKG_CONFIG_PATH variable to point to its
27837   location.
27838 ----------------------------------------------------------------------------
27839                         " >&5
27840 echo "$as_me: WARNING:
27841 ----------------------------------------------------------------------------
27842 * I found a copy of pkgconfig, but there is no libpng.pc file around.
27843   You may want to set the PKG_CONFIG_PATH variable to point to its
27844   location.
27845 ----------------------------------------------------------------------------
27846                         " >&2;}
27847            fi
27848      fi
27849   fi
27851   if test ${EX_CHECK_STATE} = NO; then
27852      { echo "$as_me:$LINENO: WARNING:
27853 ----------------------------------------------------------------------------
27854 * I could not find a working copy of libpng. Check config.log for hints on why
27855   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27856   so that compiler and the linker can find libpng and its header files. If
27857   you have not installed libpng, you can get it either from its original home on
27859      http://prdownloads.sourceforge.net/libpng/
27861   You can find also find an archive copy on
27863      http://oss.oetiker.ch/rrdtool/pub/libs
27865   The last tested version of libpng is 1.2.10.
27867        LIBS=$LIBS
27868    LDFLAGS=$LDFLAGS
27869   CPPFLAGS=$CPPFLAGS
27871 ----------------------------------------------------------------------------
27872                 " >&5
27873 echo "$as_me: WARNING:
27874 ----------------------------------------------------------------------------
27875 * I could not find a working copy of libpng. Check config.log for hints on why
27876   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
27877   so that compiler and the linker can find libpng and its header files. If
27878   you have not installed libpng, you can get it either from its original home on
27880      http://prdownloads.sourceforge.net/libpng/
27882   You can find also find an archive copy on
27884      http://oss.oetiker.ch/rrdtool/pub/libs
27886   The last tested version of libpng is 1.2.10.
27888        LIBS=$LIBS
27889    LDFLAGS=$LDFLAGS
27890   CPPFLAGS=$CPPFLAGS
27892 ----------------------------------------------------------------------------
27893                 " >&2;}
27894        EX_CHECK_ALL_ERR=YES
27895        LIBS="${ex_check_save_LIBS}"
27896        CPPFLAGS="${ex_check_save_CPPFLAGS}"
27897        LDFLAGS="${ex_check_save_LDFLAGS}"
27898     fi
27899     ac_ext=c
27900 ac_cpp='$CPP $CPPFLAGS'
27901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27908  ac_ext=c
27909 ac_cpp='$CPP $CPPFLAGS'
27910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27914  EX_CHECK_STATE=NO
27915  ex_check_save_LIBS=${LIBS}
27916  ex_check_save_CPPFLAGS=${CPPFLAGS}
27917  ex_check_save_LDFLAGS=${LDFLAGS}
27918  if test "x/usr/include/freetype2" != "x"; then
27919    CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
27920  fi
27921   { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
27922 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
27923 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
27924   echo $ECHO_N "(cached) $ECHO_C" >&6
27925 else
27926   ac_check_lib_save_LIBS=$LIBS
27927 LIBS="-lfreetype  $LIBS"
27928 cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h.  */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h.  */
27935 /* Override any GCC internal prototype to avoid an error.
27936    Use char because int might match the return type of a GCC
27937    builtin and then its argument prototype would still apply.  */
27938 #ifdef __cplusplus
27939 extern "C"
27940 #endif
27941 char FT_Init_FreeType ();
27942 int
27943 main ()
27945 return FT_Init_FreeType ();
27946   ;
27947   return 0;
27949 _ACEOF
27950 rm -f conftest.$ac_objext conftest$ac_exeext
27951 if { (ac_try="$ac_link"
27952 case "(($ac_try" in
27953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27954   *) ac_try_echo=$ac_try;;
27955 esac
27956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27957   (eval "$ac_link") 2>conftest.er1
27958   ac_status=$?
27959   grep -v '^ *+' conftest.er1 >conftest.err
27960   rm -f conftest.er1
27961   cat conftest.err >&5
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); } && {
27964          test -z "$ac_c_werror_flag" ||
27965          test ! -s conftest.err
27966        } && test -s conftest$ac_exeext &&
27967        $as_test_x conftest$ac_exeext; then
27968   ac_cv_lib_freetype_FT_Init_FreeType=yes
27969 else
27970   echo "$as_me: failed program was:" >&5
27971 sed 's/^/| /' conftest.$ac_ext >&5
27973         ac_cv_lib_freetype_FT_Init_FreeType=no
27976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27977       conftest$ac_exeext conftest.$ac_ext
27978 LIBS=$ac_check_lib_save_LIBS
27980 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27981 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27982 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
27984     if test "${ac_cv_header_ft2build_h+set}" = set; then
27985   { echo "$as_me:$LINENO: checking for ft2build.h" >&5
27986 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
27987 if test "${ac_cv_header_ft2build_h+set}" = set; then
27988   echo $ECHO_N "(cached) $ECHO_C" >&6
27990 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
27991 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
27992 else
27993   # Is the header compilable?
27994 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
27995 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
27996 cat >conftest.$ac_ext <<_ACEOF
27997 /* confdefs.h.  */
27998 _ACEOF
27999 cat confdefs.h >>conftest.$ac_ext
28000 cat >>conftest.$ac_ext <<_ACEOF
28001 /* end confdefs.h.  */
28002 $ac_includes_default
28003 #include <ft2build.h>
28004 _ACEOF
28005 rm -f conftest.$ac_objext
28006 if { (ac_try="$ac_compile"
28007 case "(($ac_try" in
28008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009   *) ac_try_echo=$ac_try;;
28010 esac
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012   (eval "$ac_compile") 2>conftest.er1
28013   ac_status=$?
28014   grep -v '^ *+' conftest.er1 >conftest.err
28015   rm -f conftest.er1
28016   cat conftest.err >&5
28017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018   (exit $ac_status); } && {
28019          test -z "$ac_c_werror_flag" ||
28020          test ! -s conftest.err
28021        } && test -s conftest.$ac_objext; then
28022   ac_header_compiler=yes
28023 else
28024   echo "$as_me: failed program was:" >&5
28025 sed 's/^/| /' conftest.$ac_ext >&5
28027         ac_header_compiler=no
28030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28032 echo "${ECHO_T}$ac_header_compiler" >&6; }
28034 # Is the header present?
28035 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
28036 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
28037 cat >conftest.$ac_ext <<_ACEOF
28038 /* confdefs.h.  */
28039 _ACEOF
28040 cat confdefs.h >>conftest.$ac_ext
28041 cat >>conftest.$ac_ext <<_ACEOF
28042 /* end confdefs.h.  */
28043 #include <ft2build.h>
28044 _ACEOF
28045 if { (ac_try="$ac_cpp conftest.$ac_ext"
28046 case "(($ac_try" in
28047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28048   *) ac_try_echo=$ac_try;;
28049 esac
28050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28051   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28052   ac_status=$?
28053   grep -v '^ *+' conftest.er1 >conftest.err
28054   rm -f conftest.er1
28055   cat conftest.err >&5
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); } >/dev/null && {
28058          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28059          test ! -s conftest.err
28060        }; then
28061   ac_header_preproc=yes
28062 else
28063   echo "$as_me: failed program was:" >&5
28064 sed 's/^/| /' conftest.$ac_ext >&5
28066   ac_header_preproc=no
28069 rm -f conftest.err conftest.$ac_ext
28070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28071 echo "${ECHO_T}$ac_header_preproc" >&6; }
28073 # So?  What about this header?
28074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28075   yes:no: )
28076     { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
28077 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28078     { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
28079 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
28080     ac_header_preproc=yes
28081     ;;
28082   no:yes:* )
28083     { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
28084 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
28085     { echo "$as_me:$LINENO: WARNING: ft2build.h:     check for missing prerequisite headers?" >&5
28086 echo "$as_me: WARNING: ft2build.h:     check for missing prerequisite headers?" >&2;}
28087     { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
28088 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
28089     { echo "$as_me:$LINENO: WARNING: ft2build.h:     section \"Present But Cannot Be Compiled\"" >&5
28090 echo "$as_me: WARNING: ft2build.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28091     { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
28092 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
28093     { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
28094 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
28096     ;;
28097 esac
28098 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
28099 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
28100 if test "${ac_cv_header_ft2build_h+set}" = set; then
28101   echo $ECHO_N "(cached) $ECHO_C" >&6
28102 else
28103   ac_cv_header_ft2build_h=$ac_header_preproc
28105 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
28106 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
28109 if test $ac_cv_header_ft2build_h = yes; then
28110   LIBS="-lfreetype ${LIBS}";EX_CHECK_STATE=YES
28116  if test $EX_CHECK_STATE = NO; then
28117         for ac_prog in pkg-config
28119   # Extract the first word of "$ac_prog", so it can be a program name with args.
28120 set dummy $ac_prog; ac_word=$2
28121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28123 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126   if test -n "$PKGCONFIG"; then
28127   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
28128 else
28129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28130 for as_dir in $PATH
28132   IFS=$as_save_IFS
28133   test -z "$as_dir" && as_dir=.
28134   for ac_exec_ext in '' $ac_executable_extensions; do
28135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28136     ac_cv_prog_PKGCONFIG="$ac_prog"
28137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28138     break 2
28139   fi
28140 done
28141 done
28142 IFS=$as_save_IFS
28146 PKGCONFIG=$ac_cv_prog_PKGCONFIG
28147 if test -n "$PKGCONFIG"; then
28148   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
28149 echo "${ECHO_T}$PKGCONFIG" >&6; }
28150 else
28151   { echo "$as_me:$LINENO: result: no" >&5
28152 echo "${ECHO_T}no" >&6; }
28156   test -n "$PKGCONFIG" && break
28157 done
28158 test -n "$PKGCONFIG" || PKGCONFIG="no"
28160     if test "$PKGCONFIG" != "no"; then
28161           if $PKGCONFIG --exists freetype2; then
28162              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags freetype2`
28163              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L freetype2`
28164              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other freetype2`
28165              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l freetype2`
28166                      unset ac_cv_lib_freetype_FT_Init_FreeType
28167              { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
28168 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
28169 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
28170   echo $ECHO_N "(cached) $ECHO_C" >&6
28171 else
28172   ac_check_lib_save_LIBS=$LIBS
28173 LIBS="-lfreetype  $LIBS"
28174 cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h.  */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h.  */
28181 /* Override any GCC internal prototype to avoid an error.
28182    Use char because int might match the return type of a GCC
28183    builtin and then its argument prototype would still apply.  */
28184 #ifdef __cplusplus
28185 extern "C"
28186 #endif
28187 char FT_Init_FreeType ();
28188 int
28189 main ()
28191 return FT_Init_FreeType ();
28192   ;
28193   return 0;
28195 _ACEOF
28196 rm -f conftest.$ac_objext conftest$ac_exeext
28197 if { (ac_try="$ac_link"
28198 case "(($ac_try" in
28199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28200   *) ac_try_echo=$ac_try;;
28201 esac
28202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28203   (eval "$ac_link") 2>conftest.er1
28204   ac_status=$?
28205   grep -v '^ *+' conftest.er1 >conftest.err
28206   rm -f conftest.er1
28207   cat conftest.err >&5
28208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209   (exit $ac_status); } && {
28210          test -z "$ac_c_werror_flag" ||
28211          test ! -s conftest.err
28212        } && test -s conftest$ac_exeext &&
28213        $as_test_x conftest$ac_exeext; then
28214   ac_cv_lib_freetype_FT_Init_FreeType=yes
28215 else
28216   echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28219         ac_cv_lib_freetype_FT_Init_FreeType=no
28222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28223       conftest$ac_exeext conftest.$ac_ext
28224 LIBS=$ac_check_lib_save_LIBS
28226 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28227 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28228 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
28230                  unset ac_cv_header_`echo ft2build.h | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
28231                  if test "${ac_cv_header_ft2build_h+set}" = set; then
28232   { echo "$as_me:$LINENO: checking for ft2build.h" >&5
28233 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
28234 if test "${ac_cv_header_ft2build_h+set}" = set; then
28235   echo $ECHO_N "(cached) $ECHO_C" >&6
28237 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
28238 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
28239 else
28240   # Is the header compilable?
28241 { echo "$as_me:$LINENO: checking ft2build.h usability" >&5
28242 echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6; }
28243 cat >conftest.$ac_ext <<_ACEOF
28244 /* confdefs.h.  */
28245 _ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h.  */
28249 $ac_includes_default
28250 #include <ft2build.h>
28251 _ACEOF
28252 rm -f conftest.$ac_objext
28253 if { (ac_try="$ac_compile"
28254 case "(($ac_try" in
28255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256   *) ac_try_echo=$ac_try;;
28257 esac
28258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259   (eval "$ac_compile") 2>conftest.er1
28260   ac_status=$?
28261   grep -v '^ *+' conftest.er1 >conftest.err
28262   rm -f conftest.er1
28263   cat conftest.err >&5
28264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265   (exit $ac_status); } && {
28266          test -z "$ac_c_werror_flag" ||
28267          test ! -s conftest.err
28268        } && test -s conftest.$ac_objext; then
28269   ac_header_compiler=yes
28270 else
28271   echo "$as_me: failed program was:" >&5
28272 sed 's/^/| /' conftest.$ac_ext >&5
28274         ac_header_compiler=no
28277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28279 echo "${ECHO_T}$ac_header_compiler" >&6; }
28281 # Is the header present?
28282 { echo "$as_me:$LINENO: checking ft2build.h presence" >&5
28283 echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6; }
28284 cat >conftest.$ac_ext <<_ACEOF
28285 /* confdefs.h.  */
28286 _ACEOF
28287 cat confdefs.h >>conftest.$ac_ext
28288 cat >>conftest.$ac_ext <<_ACEOF
28289 /* end confdefs.h.  */
28290 #include <ft2build.h>
28291 _ACEOF
28292 if { (ac_try="$ac_cpp conftest.$ac_ext"
28293 case "(($ac_try" in
28294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28295   *) ac_try_echo=$ac_try;;
28296 esac
28297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28299   ac_status=$?
28300   grep -v '^ *+' conftest.er1 >conftest.err
28301   rm -f conftest.er1
28302   cat conftest.err >&5
28303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304   (exit $ac_status); } >/dev/null && {
28305          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28306          test ! -s conftest.err
28307        }; then
28308   ac_header_preproc=yes
28309 else
28310   echo "$as_me: failed program was:" >&5
28311 sed 's/^/| /' conftest.$ac_ext >&5
28313   ac_header_preproc=no
28316 rm -f conftest.err conftest.$ac_ext
28317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28318 echo "${ECHO_T}$ac_header_preproc" >&6; }
28320 # So?  What about this header?
28321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28322   yes:no: )
28323     { echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
28324 echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28325     { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
28326 echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
28327     ac_header_preproc=yes
28328     ;;
28329   no:yes:* )
28330     { echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
28331 echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
28332     { echo "$as_me:$LINENO: WARNING: ft2build.h:     check for missing prerequisite headers?" >&5
28333 echo "$as_me: WARNING: ft2build.h:     check for missing prerequisite headers?" >&2;}
28334     { echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
28335 echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
28336     { echo "$as_me:$LINENO: WARNING: ft2build.h:     section \"Present But Cannot Be Compiled\"" >&5
28337 echo "$as_me: WARNING: ft2build.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28338     { echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
28339 echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
28340     { echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
28341 echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
28343     ;;
28344 esac
28345 { echo "$as_me:$LINENO: checking for ft2build.h" >&5
28346 echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6; }
28347 if test "${ac_cv_header_ft2build_h+set}" = set; then
28348   echo $ECHO_N "(cached) $ECHO_C" >&6
28349 else
28350   ac_cv_header_ft2build_h=$ac_header_preproc
28352 { echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
28353 echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6; }
28356 if test $ac_cv_header_ft2build_h = yes; then
28357   EX_CHECK_STATE=YES
28364           else
28365              { echo "$as_me:$LINENO: WARNING:
28366 ----------------------------------------------------------------------------
28367 * I found a copy of pkgconfig, but there is no freetype2.pc file around.
28368   You may want to set the PKG_CONFIG_PATH variable to point to its
28369   location.
28370 ----------------------------------------------------------------------------
28371                         " >&5
28372 echo "$as_me: WARNING:
28373 ----------------------------------------------------------------------------
28374 * I found a copy of pkgconfig, but there is no freetype2.pc file around.
28375   You may want to set the PKG_CONFIG_PATH variable to point to its
28376   location.
28377 ----------------------------------------------------------------------------
28378                         " >&2;}
28379            fi
28380      fi
28381   fi
28383   if test ${EX_CHECK_STATE} = NO; then
28384      { echo "$as_me:$LINENO: WARNING:
28385 ----------------------------------------------------------------------------
28386 * I could not find a working copy of freetype2. Check config.log for hints on why
28387   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28388   so that compiler and the linker can find libfreetype and its header files. If
28389   you have not installed freetype2, you can get it either from its original home on
28391      http://prdownloads.sourceforge.net/freetype/
28393   You can find also find an archive copy on
28395      http://oss.oetiker.ch/rrdtool/pub/libs
28397   The last tested version of freetype2 is 2.1.10.
28399        LIBS=$LIBS
28400    LDFLAGS=$LDFLAGS
28401   CPPFLAGS=$CPPFLAGS
28403 ----------------------------------------------------------------------------
28404                 " >&5
28405 echo "$as_me: WARNING:
28406 ----------------------------------------------------------------------------
28407 * I could not find a working copy of freetype2. Check config.log for hints on why
28408   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28409   so that compiler and the linker can find libfreetype and its header files. If
28410   you have not installed freetype2, you can get it either from its original home on
28412      http://prdownloads.sourceforge.net/freetype/
28414   You can find also find an archive copy on
28416      http://oss.oetiker.ch/rrdtool/pub/libs
28418   The last tested version of freetype2 is 2.1.10.
28420        LIBS=$LIBS
28421    LDFLAGS=$LDFLAGS
28422   CPPFLAGS=$CPPFLAGS
28424 ----------------------------------------------------------------------------
28425                 " >&2;}
28426        EX_CHECK_ALL_ERR=YES
28427        LIBS="${ex_check_save_LIBS}"
28428        CPPFLAGS="${ex_check_save_CPPFLAGS}"
28429        LDFLAGS="${ex_check_save_LDFLAGS}"
28430     fi
28431     ac_ext=c
28432 ac_cpp='$CPP $CPPFLAGS'
28433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28440 if test "$EX_CHECK_ALL_ERR" = "YES"; then
28441   { { echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
28442 echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
28443    { (exit 1); exit 1; }; }
28446 ALL_LIBS="$LIBS"
28447 LIBS=
28453 case $TERM in
28454        #   for the most important terminal types we directly know the sequences
28455        xterm|xterm*|vt220|vt220*)
28456                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
28457                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
28458        ;;
28459        vt100|vt100*|cygwin)
28460                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
28461                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
28462        ;;
28463        *)
28464                T_MD=''
28465                T_ME=''
28466        ;;
28467 esac
28468   { echo "$as_me:$LINENO: result: " >&5
28469 echo "${ECHO_T}" >&6; }
28470   { echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
28471 echo "${ECHO_T}${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
28474 # Extract the first word of "perl", so it can be a program name with args.
28475 set dummy perl; ac_word=$2
28476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28478 if test "${ac_cv_path_PERL+set}" = set; then
28479   echo $ECHO_N "(cached) $ECHO_C" >&6
28480 else
28481   case $PERL in
28482   [\\/]* | ?:[\\/]*)
28483   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
28484   ;;
28485   *)
28486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28487 for as_dir in $PATH
28489   IFS=$as_save_IFS
28490   test -z "$as_dir" && as_dir=.
28491   for ac_exec_ext in '' $ac_executable_extensions; do
28492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28493     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
28494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28495     break 2
28496   fi
28497 done
28498 done
28499 IFS=$as_save_IFS
28501   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
28502   ;;
28503 esac
28505 PERL=$ac_cv_path_PERL
28506 if test -n "$PERL"; then
28507   { echo "$as_me:$LINENO: result: $PERL" >&5
28508 echo "${ECHO_T}$PERL" >&6; }
28509 else
28510   { echo "$as_me:$LINENO: result: no" >&5
28511 echo "${ECHO_T}no" >&6; }
28516 # Check whether --enable-perl was given.
28517 if test "${enable_perl+set}" = set; then
28518   enableval=$enable_perl;
28519 else
28520   enable_perl=yes
28530 if test "x$PERL" = "xno" -o  x$enable_perl = xno; then
28531         COMP_PERL=
28532 else
28533         COMP_PERL="perl_piped perl_shared"
28534         { echo "$as_me:$LINENO: checking for the perl version you are running" >&5
28535 echo $ECHO_N "checking for the perl version you are running... $ECHO_C" >&6; }
28536         PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
28537         { echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
28538 echo "${ECHO_T}$PERL_VERSION" >&6; }
28539         if test -z "$PERLCC"; then
28540             { echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
28541 echo $ECHO_N "checking for the C compiler perl wants to use to build its modules... $ECHO_C" >&6; }
28542             perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
28543             { echo "$as_me:$LINENO: result: $perlcc" >&5
28544 echo "${ECHO_T}$perlcc" >&6; }
28545             if test ! -x "$perlcc"; then
28546                 # Extract the first word of "${perlcc}", so it can be a program name with args.
28547 set dummy ${perlcc}; ac_word=$2
28548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28550 if test "${ac_cv_path_PERL_CC+set}" = set; then
28551   echo $ECHO_N "(cached) $ECHO_C" >&6
28552 else
28553   case $PERL_CC in
28554   [\\/]* | ?:[\\/]*)
28555   ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
28556   ;;
28557   *)
28558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28559 for as_dir in $PATH
28561   IFS=$as_save_IFS
28562   test -z "$as_dir" && as_dir=.
28563   for ac_exec_ext in '' $ac_executable_extensions; do
28564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28565     ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
28566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28567     break 2
28568   fi
28569 done
28570 done
28571 IFS=$as_save_IFS
28573   test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
28574   ;;
28575 esac
28577 PERL_CC=$ac_cv_path_PERL_CC
28578 if test -n "$PERL_CC"; then
28579   { echo "$as_me:$LINENO: result: $PERL_CC" >&5
28580 echo "${ECHO_T}$PERL_CC" >&6; }
28581 else
28582   { echo "$as_me:$LINENO: result: no" >&5
28583 echo "${ECHO_T}no" >&6; }
28587                 if test "$PERL_CC" = "no"; then
28588                     { echo "$as_me:$LINENO: WARNING:
28589 I would not find the Compiler ($perlcc) that was originally used to compile
28590 your perl binary. You should either make sure that this compiler is
28591 available on your system, pick an other compiler and set PERLCC
28592 appropriately, or use a different perl setup that was compiled locally.
28594 I will disable the compilation of the RRDs perl module for now.
28595 " >&5
28596 echo "$as_me: WARNING:
28597 I would not find the Compiler ($perlcc) that was originally used to compile
28598 your perl binary. You should either make sure that this compiler is
28599 available on your system, pick an other compiler and set PERLCC
28600 appropriately, or use a different perl setup that was compiled locally.
28602 I will disable the compilation of the RRDs perl module for now.
28603 " >&2;}
28604                     COMP_PERL="perl_piped"
28605                 fi
28606             fi
28607         fi
28610 { echo "$as_me:$LINENO: checking Perl Modules to build" >&5
28611 echo $ECHO_N "checking Perl Modules to build... $ECHO_C" >&6; }
28612 { echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
28613 echo "${ECHO_T}${COMP_PERL:-No Perl Modules will be built}" >&6; }
28615 # Options to pass when configuring perl module
28616 ppref=$prefix
28617 test "$ppref" = "NONE" && ppref=$ac_default_prefix
28619 PERL_MAKE_OPTIONS="PREFIX=$ppref LIB=$ppref/lib/perl/$PERL_VERSION"
28621 # Check whether --enable-perl-site-install was given.
28622 if test "${enable_perl_site_install+set}" = set; then
28623   enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
28627 if test ! -z "$PERLCC"; then
28628    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
28630    if test ! -z "$PERLCCFLAGS"; then
28631        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
28632    fi
28634    if test -z "$PERLLD"; then
28635        PERLLD=$PERLCC
28636    fi
28637    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
28639    if test ! -z "$PERLLDFLAGS"; then
28640        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
28641    fi
28645 # Check whether --with-perl-options was given.
28646 if test "${with_perl_options+set}" = set; then
28647   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
28656 # Extract the first word of "ruby", so it can be a program name with args.
28657 set dummy ruby; ac_word=$2
28658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28660 if test "${ac_cv_path_RUBY+set}" = set; then
28661   echo $ECHO_N "(cached) $ECHO_C" >&6
28662 else
28663   case $RUBY in
28664   [\\/]* | ?:[\\/]*)
28665   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
28666   ;;
28667   *)
28668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28669 for as_dir in $PATH
28671   IFS=$as_save_IFS
28672   test -z "$as_dir" && as_dir=.
28673   for ac_exec_ext in '' $ac_executable_extensions; do
28674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28675     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
28676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28677     break 2
28678   fi
28679 done
28680 done
28681 IFS=$as_save_IFS
28683   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
28684   ;;
28685 esac
28687 RUBY=$ac_cv_path_RUBY
28688 if test -n "$RUBY"; then
28689   { echo "$as_me:$LINENO: result: $RUBY" >&5
28690 echo "${ECHO_T}$RUBY" >&6; }
28691 else
28692   { echo "$as_me:$LINENO: result: no" >&5
28693 echo "${ECHO_T}no" >&6; }
28698 # Check whether --enable-ruby was given.
28699 if test "${enable_ruby+set}" = set; then
28700   enableval=$enable_ruby;
28701 else
28702   enable_ruby=yes
28706 { echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
28707 echo $ECHO_N "checking if ruby modules can be built... $ECHO_C" >&6; }
28709 if test "x$RUBY" = "xno" -o  x$enable_ruby = xno; then
28710         COMP_RUBY=
28711         { echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
28712 echo "${ECHO_T}No .. Ruby not found or disabled" >&6; }
28713 else
28714         if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
28715                 COMP_RUBY="ruby"
28716                 { echo "$as_me:$LINENO: result: YES" >&5
28717 echo "${ECHO_T}YES" >&6; }
28718         else
28719                 COMP_RUBY=
28720                 { echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
28721 echo "${ECHO_T}Ruby found but mkmf is missing! Install the -dev package" >&6; }
28722         fi
28726 # Check whether --enable-ruby-site-install was given.
28727 if test "${enable_ruby_site_install+set}" = set; then
28728   enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
28729 else
28730   RUBY_MAKE_OPTIONS="sitedir="'$(DESTDIR)'"$prefix/lib/ruby"
28736 # Check whether --with-ruby-options was given.
28737 if test "${with_ruby_options+set}" = set; then
28738   withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
28747 enable_tcl_site=no
28749 # Check whether --enable-tcl was given.
28750 if test "${enable_tcl+set}" = set; then
28751   enableval=$enable_tcl;
28752 else
28753   enable_tcl=yes
28757 if test  "$enable_tcl" = "yes"; then
28758     withval=""
28760 # Check whether --with-tcllib was given.
28761 if test "${with_tcllib+set}" = set; then
28762   withval=$with_tcllib;
28765   enable_tcl=no
28766   for dir in $withval /usr/lib /usr/local/lib; do
28767     { echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
28768 echo $ECHO_N "checking for tclConfig.sh in $dir... $ECHO_C" >&6; }
28769     if test -f "$dir/tclConfig.sh" ; then
28770         tcl_config=$dir/tclConfig.sh
28771         enable_tcl=yes
28772         { echo "$as_me:$LINENO: result: yes" >&5
28773 echo "${ECHO_T}yes" >&6; }
28774         break
28775     else
28776         { echo "$as_me:$LINENO: result: no" >&5
28777 echo "${ECHO_T}no" >&6; }
28778     fi
28779   done
28781   if test "$enable_tcl" = "no"; then
28782         { echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface won't be built" >&5
28783 echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface won't be built" >&2;}
28784   else
28785         . $tcl_config
28786         TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
28787   fi
28788   # Check whether --enable-tcl was given.
28789 if test "${enable_tcl+set}" = set; then
28790   enableval=$enable_tcl;
28791 else
28792   enable_tcl_site=yes
28800 if test "$enable_tcl" = "yes" ; then
28801   BUILD_TCL_TRUE=
28802   BUILD_TCL_FALSE='#'
28803 else
28804   BUILD_TCL_TRUE='#'
28805   BUILD_TCL_FALSE=
28810 if test "$enable_tcl_site" = "yes" ; then
28811   BUILD_TCL_SITE_TRUE=
28812   BUILD_TCL_SITE_FALSE='#'
28813 else
28814   BUILD_TCL_SITE_TRUE='#'
28815   BUILD_TCL_SITE_FALSE=
28829 # Check whether --enable-python was given.
28830 if test "${enable_python+set}" = set; then
28831   enableval=$enable_python;
28832 else
28833   enable_python=yes
28837 if test  "$enable_python" = "yes"; then
28842         if test -n "$PYTHON"; then
28843       # If the user set $PYTHON, use it and don't search something else.
28844       { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
28845 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
28846       prog="import sys, string
28847 # split strings by '.' and convert to numeric.  Append some zeros
28848 # because we need at least 4 digits for the hex conversion.
28849 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
28850 minverhex = 0
28851 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
28852 sys.exit(sys.hexversion < minverhex)"
28853   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
28854    ($PYTHON -c "$prog") >&5 2>&5
28855    ac_status=$?
28856    echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857    (exit $ac_status); }; then
28858   { echo "$as_me:$LINENO: result: yes" >&5
28859 echo "${ECHO_T}yes" >&6; }
28860 else
28861   { { echo "$as_me:$LINENO: error: too old" >&5
28862 echo "$as_me: error: too old" >&2;}
28863    { (exit 1); exit 1; }; }
28866       am_display_PYTHON=$PYTHON
28867     else
28868       # Otherwise, try each interpreter until we find one that satisfies
28869       # VERSION.
28870       { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
28871 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
28872 if test "${am_cv_pathless_PYTHON+set}" = set; then
28873   echo $ECHO_N "(cached) $ECHO_C" >&6
28874 else
28876         for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
28877           test "$am_cv_pathless_PYTHON" = none && break
28878           prog="import sys, string
28879 # split strings by '.' and convert to numeric.  Append some zeros
28880 # because we need at least 4 digits for the hex conversion.
28881 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
28882 minverhex = 0
28883 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
28884 sys.exit(sys.hexversion < minverhex)"
28885   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
28886    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
28887    ac_status=$?
28888    echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889    (exit $ac_status); }; then
28890   break
28893         done
28895 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
28896 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
28897       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
28898       if test "$am_cv_pathless_PYTHON" = none; then
28899         PYTHON=:
28900       else
28901         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
28902 set dummy $am_cv_pathless_PYTHON; ac_word=$2
28903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28905 if test "${ac_cv_path_PYTHON+set}" = set; then
28906   echo $ECHO_N "(cached) $ECHO_C" >&6
28907 else
28908   case $PYTHON in
28909   [\\/]* | ?:[\\/]*)
28910   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
28911   ;;
28912   *)
28913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28914 for as_dir in $PATH
28916   IFS=$as_save_IFS
28917   test -z "$as_dir" && as_dir=.
28918   for ac_exec_ext in '' $ac_executable_extensions; do
28919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28920     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
28921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28922     break 2
28923   fi
28924 done
28925 done
28926 IFS=$as_save_IFS
28928   ;;
28929 esac
28931 PYTHON=$ac_cv_path_PYTHON
28932 if test -n "$PYTHON"; then
28933   { echo "$as_me:$LINENO: result: $PYTHON" >&5
28934 echo "${ECHO_T}$PYTHON" >&6; }
28935 else
28936   { echo "$as_me:$LINENO: result: no" >&5
28937 echo "${ECHO_T}no" >&6; }
28941       fi
28942       am_display_PYTHON=$am_cv_pathless_PYTHON
28943     fi
28946   if test "$PYTHON" = :; then
28947       enable_python=no
28948   else
28951   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
28952 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
28953 if test "${am_cv_python_version+set}" = set; then
28954   echo $ECHO_N "(cached) $ECHO_C" >&6
28955 else
28956   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
28958 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
28959 echo "${ECHO_T}$am_cv_python_version" >&6; }
28960   PYTHON_VERSION=$am_cv_python_version
28964   PYTHON_PREFIX='${prefix}'
28966   PYTHON_EXEC_PREFIX='${exec_prefix}'
28970   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
28971 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
28972 if test "${am_cv_python_platform+set}" = set; then
28973   echo $ECHO_N "(cached) $ECHO_C" >&6
28974 else
28975   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
28977 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
28978 echo "${ECHO_T}$am_cv_python_platform" >&6; }
28979   PYTHON_PLATFORM=$am_cv_python_platform
28984                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
28985 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
28986 if test "${am_cv_python_pythondir+set}" = set; then
28987   echo $ECHO_N "(cached) $ECHO_C" >&6
28988 else
28989   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
28990      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
28992 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
28993 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
28994   pythondir=$am_cv_python_pythondir
28998   pkgpythondir=\${pythondir}/$PACKAGE
29001             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
29002 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
29003 if test "${am_cv_python_pyexecdir+set}" = set; then
29004   echo $ECHO_N "(cached) $ECHO_C" >&6
29005 else
29006   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
29007      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
29009 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
29010 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
29011   pyexecdir=$am_cv_python_pyexecdir
29015   pkgpyexecdir=\${pyexecdir}/$PACKAGE
29019   fi
29023 { echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
29024 echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; }
29025 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
29026 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
29027 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
29028 if test "$py_prefix" != "$py_exec_prefix"; then
29029   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
29032 save_CPPFLAGS="$CPPFLAGS"
29033 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
29034 cat >conftest.$ac_ext <<_ACEOF
29035 /* confdefs.h.  */
29036 _ACEOF
29037 cat confdefs.h >>conftest.$ac_ext
29038 cat >>conftest.$ac_ext <<_ACEOF
29039 /* end confdefs.h.  */
29040 #include <Python.h>
29041 _ACEOF
29042 if { (ac_try="$ac_cpp conftest.$ac_ext"
29043 case "(($ac_try" in
29044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29045   *) ac_try_echo=$ac_try;;
29046 esac
29047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29049   ac_status=$?
29050   grep -v '^ *+' conftest.er1 >conftest.err
29051   rm -f conftest.er1
29052   cat conftest.err >&5
29053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054   (exit $ac_status); } >/dev/null && {
29055          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29056          test ! -s conftest.err
29057        }; then
29058   { echo "$as_me:$LINENO: result: found" >&5
29059 echo "${ECHO_T}found" >&6; }
29061 else
29062   echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.$ac_ext >&5
29065   { echo "$as_me:$LINENO: result: not found" >&5
29066 echo "${ECHO_T}not found" >&6; }
29067 enable_python=no;{ echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
29068 echo "$as_me: WARNING: could not find Python headers" >&2;}
29071 rm -f conftest.err conftest.$ac_ext
29072 CPPFLAGS="$save_CPPFLAGS"
29076 if test  x$enable_python = xno; then
29077         COMP_PYTHON=
29078 else
29079         COMP_PYTHON="python"
29084 for ac_prog in gnroff nroff
29086   # Extract the first word of "$ac_prog", so it can be a program name with args.
29087 set dummy $ac_prog; ac_word=$2
29088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29090 if test "${ac_cv_path_NROFF+set}" = set; then
29091   echo $ECHO_N "(cached) $ECHO_C" >&6
29092 else
29093   case $NROFF in
29094   [\\/]* | ?:[\\/]*)
29095   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
29096   ;;
29097   *)
29098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29099 for as_dir in $PATH
29101   IFS=$as_save_IFS
29102   test -z "$as_dir" && as_dir=.
29103   for ac_exec_ext in '' $ac_executable_extensions; do
29104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29105     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
29106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29107     break 2
29108   fi
29109 done
29110 done
29111 IFS=$as_save_IFS
29113   ;;
29114 esac
29116 NROFF=$ac_cv_path_NROFF
29117 if test -n "$NROFF"; then
29118   { echo "$as_me:$LINENO: result: $NROFF" >&5
29119 echo "${ECHO_T}$NROFF" >&6; }
29120 else
29121   { echo "$as_me:$LINENO: result: no" >&5
29122 echo "${ECHO_T}no" >&6; }
29126   test -n "$NROFF" && break
29127 done
29129 for ac_prog in groff troff
29131   # Extract the first word of "$ac_prog", so it can be a program name with args.
29132 set dummy $ac_prog; ac_word=$2
29133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29135 if test "${ac_cv_path_TROFF+set}" = set; then
29136   echo $ECHO_N "(cached) $ECHO_C" >&6
29137 else
29138   case $TROFF in
29139   [\\/]* | ?:[\\/]*)
29140   ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
29141   ;;
29142   *)
29143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29144 for as_dir in $PATH
29146   IFS=$as_save_IFS
29147   test -z "$as_dir" && as_dir=.
29148   for ac_exec_ext in '' $ac_executable_extensions; do
29149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29150     ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
29151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29152     break 2
29153   fi
29154 done
29155 done
29156 IFS=$as_save_IFS
29158   ;;
29159 esac
29161 TROFF=$ac_cv_path_TROFF
29162 if test -n "$TROFF"; then
29163   { echo "$as_me:$LINENO: result: $TROFF" >&5
29164 echo "${ECHO_T}$TROFF" >&6; }
29165 else
29166   { echo "$as_me:$LINENO: result: no" >&5
29167 echo "${ECHO_T}no" >&6; }
29171   test -n "$TROFF" && break
29172 done
29176 if test -z "$RRDDOCDIR"; then
29177    RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
29181 case $TERM in
29182        #   for the most important terminal types we directly know the sequences
29183        xterm|xterm*|vt220|vt220*)
29184                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
29185                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
29186        ;;
29187        vt100|vt100*|cygwin)
29188                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
29189                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
29190        ;;
29191        *)
29192                T_MD=''
29193                T_ME=''
29194        ;;
29195 esac
29196   { echo "$as_me:$LINENO: result: " >&5
29197 echo "${ECHO_T}" >&6; }
29198   { echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
29199 echo "${ECHO_T}${T_MD}Apply Configuration Information${T_ME}" >&6; }
29202 ac_config_files="$ac_config_files examples/shared-demo.pl"
29204 ac_config_files="$ac_config_files examples/piped-demo.pl"
29206 ac_config_files="$ac_config_files examples/stripes.pl"
29208 ac_config_files="$ac_config_files examples/bigtops.pl"
29210 ac_config_files="$ac_config_files examples/minmax.pl"
29212 ac_config_files="$ac_config_files examples/4charts.pl"
29214 ac_config_files="$ac_config_files examples/perftest.pl"
29216 ac_config_files="$ac_config_files examples/Makefile"
29218 ac_config_files="$ac_config_files doc/Makefile"
29220 ac_config_files="$ac_config_files src/Makefile"
29222 ac_config_files="$ac_config_files bindings/Makefile"
29224 ac_config_files="$ac_config_files bindings/tcl/Makefile"
29226 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
29228 ac_config_files="$ac_config_files Makefile"
29231 ac_config_commands="$ac_config_commands default"
29233 cat >confcache <<\_ACEOF
29234 # This file is a shell script that caches the results of configure
29235 # tests run on this system so they can be shared between configure
29236 # scripts and configure runs, see configure's option --config-cache.
29237 # It is not useful on other systems.  If it contains results you don't
29238 # want to keep, you may remove or edit it.
29240 # config.status only pays attention to the cache file if you give it
29241 # the --recheck option to rerun configure.
29243 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29244 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29245 # following values.
29247 _ACEOF
29249 # The following way of writing the cache mishandles newlines in values,
29250 # but we know of no workaround that is simple, portable, and efficient.
29251 # So, we kill variables containing newlines.
29252 # Ultrix sh set writes to stderr and can't be redirected directly,
29253 # and sets the high bit in the cache file unless we assign to the vars.
29255   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29256     eval ac_val=\$$ac_var
29257     case $ac_val in #(
29258     *${as_nl}*)
29259       case $ac_var in #(
29260       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29261 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29262       esac
29263       case $ac_var in #(
29264       _ | IFS | as_nl) ;; #(
29265       *) $as_unset $ac_var ;;
29266       esac ;;
29267     esac
29268   done
29270   (set) 2>&1 |
29271     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29272     *${as_nl}ac_space=\ *)
29273       # `set' does not quote correctly, so add quotes (double-quote
29274       # substitution turns \\\\ into \\, and sed turns \\ into \).
29275       sed -n \
29276         "s/'/'\\\\''/g;
29277           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29278       ;; #(
29279     *)
29280       # `set' quotes correctly as required by POSIX, so do not add quotes.
29281       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29282       ;;
29283     esac |
29284     sort
29285 ) |
29286   sed '
29287      /^ac_cv_env_/b end
29288      t clear
29289      :clear
29290      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29291      t end
29292      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29293      :end' >>confcache
29294 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29295   if test -w "$cache_file"; then
29296     test "x$cache_file" != "x/dev/null" &&
29297       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29298 echo "$as_me: updating cache $cache_file" >&6;}
29299     cat confcache >$cache_file
29300   else
29301     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29302 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29303   fi
29305 rm -f confcache
29307 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29308 # Let make expand exec_prefix.
29309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29311 DEFS=-DHAVE_CONFIG_H
29313 ac_libobjs=
29314 ac_ltlibobjs=
29315 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29316   # 1. Remove the extension, and $U if already installed.
29317   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29318   ac_i=`echo "$ac_i" | sed "$ac_script"`
29319   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29320   #    will be set to the directory where LIBOBJS objects are built.
29321   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29322   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29323 done
29324 LIBOBJS=$ac_libobjs
29326 LTLIBOBJS=$ac_ltlibobjs
29329 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29330   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29331 Usually this means the macro was only invoked conditionally." >&5
29332 echo "$as_me: error: conditional \"AMDEP\" was never defined.
29333 Usually this means the macro was only invoked conditionally." >&2;}
29334    { (exit 1); exit 1; }; }
29336 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29337   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29338 Usually this means the macro was only invoked conditionally." >&5
29339 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29340 Usually this means the macro was only invoked conditionally." >&2;}
29341    { (exit 1); exit 1; }; }
29343 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29344   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29345 Usually this means the macro was only invoked conditionally." >&5
29346 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29347 Usually this means the macro was only invoked conditionally." >&2;}
29348    { (exit 1); exit 1; }; }
29350 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
29351   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
29352 Usually this means the macro was only invoked conditionally." >&5
29353 echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
29354 Usually this means the macro was only invoked conditionally." >&2;}
29355    { (exit 1); exit 1; }; }
29357 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
29358   { { echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
29359 Usually this means the macro was only invoked conditionally." >&5
29360 echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
29361 Usually this means the macro was only invoked conditionally." >&2;}
29362    { (exit 1); exit 1; }; }
29364 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
29365   { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
29366 Usually this means the macro was only invoked conditionally." >&5
29367 echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
29368 Usually this means the macro was only invoked conditionally." >&2;}
29369    { (exit 1); exit 1; }; }
29371 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
29372   { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
29373 Usually this means the macro was only invoked conditionally." >&5
29374 echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
29375 Usually this means the macro was only invoked conditionally." >&2;}
29376    { (exit 1); exit 1; }; }
29379 : ${CONFIG_STATUS=./config.status}
29380 ac_clean_files_save=$ac_clean_files
29381 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29382 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29383 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29384 cat >$CONFIG_STATUS <<_ACEOF
29385 #! $SHELL
29386 # Generated by $as_me.
29387 # Run this file to recreate the current configuration.
29388 # Compiler output produced by configure, useful for debugging
29389 # configure, is in config.log if it exists.
29391 debug=false
29392 ac_cs_recheck=false
29393 ac_cs_silent=false
29394 SHELL=\${CONFIG_SHELL-$SHELL}
29395 _ACEOF
29397 cat >>$CONFIG_STATUS <<\_ACEOF
29398 ## --------------------- ##
29399 ## M4sh Initialization.  ##
29400 ## --------------------- ##
29402 # Be more Bourne compatible
29403 DUALCASE=1; export DUALCASE # for MKS sh
29404 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29405   emulate sh
29406   NULLCMD=:
29407   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29408   # is contrary to our usage.  Disable this feature.
29409   alias -g '${1+"$@"}'='"$@"'
29410   setopt NO_GLOB_SUBST
29411 else
29412   case `(set -o) 2>/dev/null` in
29413   *posix*) set -o posix ;;
29414 esac
29421 # PATH needs CR
29422 # Avoid depending upon Character Ranges.
29423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29426 as_cr_digits='0123456789'
29427 as_cr_alnum=$as_cr_Letters$as_cr_digits
29429 # The user is always right.
29430 if test "${PATH_SEPARATOR+set}" != set; then
29431   echo "#! /bin/sh" >conf$$.sh
29432   echo  "exit 0"   >>conf$$.sh
29433   chmod +x conf$$.sh
29434   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29435     PATH_SEPARATOR=';'
29436   else
29437     PATH_SEPARATOR=:
29438   fi
29439   rm -f conf$$.sh
29442 # Support unset when possible.
29443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29444   as_unset=unset
29445 else
29446   as_unset=false
29450 # IFS
29451 # We need space, tab and new line, in precisely that order.  Quoting is
29452 # there to prevent editors from complaining about space-tab.
29453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29454 # splitting by setting IFS to empty value.)
29455 as_nl='
29457 IFS=" ""        $as_nl"
29459 # Find who we are.  Look in the path if we contain no directory separator.
29460 case $0 in
29461   *[\\/]* ) as_myself=$0 ;;
29462   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29463 for as_dir in $PATH
29465   IFS=$as_save_IFS
29466   test -z "$as_dir" && as_dir=.
29467   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29468 done
29469 IFS=$as_save_IFS
29471      ;;
29472 esac
29473 # We did not find ourselves, most probably we were run as `sh COMMAND'
29474 # in which case we are not to be found in the path.
29475 if test "x$as_myself" = x; then
29476   as_myself=$0
29478 if test ! -f "$as_myself"; then
29479   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29480   { (exit 1); exit 1; }
29483 # Work around bugs in pre-3.0 UWIN ksh.
29484 for as_var in ENV MAIL MAILPATH
29485 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29486 done
29487 PS1='$ '
29488 PS2='> '
29489 PS4='+ '
29491 # NLS nuisances.
29492 for as_var in \
29493   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29494   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29495   LC_TELEPHONE LC_TIME
29497   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29498     eval $as_var=C; export $as_var
29499   else
29500     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29501   fi
29502 done
29504 # Required to use basename.
29505 if expr a : '\(a\)' >/dev/null 2>&1 &&
29506    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29507   as_expr=expr
29508 else
29509   as_expr=false
29512 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29513   as_basename=basename
29514 else
29515   as_basename=false
29519 # Name of the executable.
29520 as_me=`$as_basename -- "$0" ||
29521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29522          X"$0" : 'X\(//\)$' \| \
29523          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29524 echo X/"$0" |
29525     sed '/^.*\/\([^/][^/]*\)\/*$/{
29526             s//\1/
29527             q
29528           }
29529           /^X\/\(\/\/\)$/{
29530             s//\1/
29531             q
29532           }
29533           /^X\/\(\/\).*/{
29534             s//\1/
29535             q
29536           }
29537           s/.*/./; q'`
29539 # CDPATH.
29540 $as_unset CDPATH
29544   as_lineno_1=$LINENO
29545   as_lineno_2=$LINENO
29546   test "x$as_lineno_1" != "x$as_lineno_2" &&
29547   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29549   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29550   # uniformly replaced by the line number.  The first 'sed' inserts a
29551   # line-number line after each line using $LINENO; the second 'sed'
29552   # does the real work.  The second script uses 'N' to pair each
29553   # line-number line with the line containing $LINENO, and appends
29554   # trailing '-' during substitution so that $LINENO is not a special
29555   # case at line end.
29556   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29557   # scripts with optimization help from Paolo Bonzini.  Blame Lee
29558   # E. McMahon (1931-1989) for sed's syntax.  :-)
29559   sed -n '
29560     p
29561     /[$]LINENO/=
29562   ' <$as_myself |
29563     sed '
29564       s/[$]LINENO.*/&-/
29565       t lineno
29566       b
29567       :lineno
29568       N
29569       :loop
29570       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29571       t loop
29572       s/-\n.*//
29573     ' >$as_me.lineno &&
29574   chmod +x "$as_me.lineno" ||
29575     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29576    { (exit 1); exit 1; }; }
29578   # Don't try to exec as it changes $[0], causing all sort of problems
29579   # (the dirname of $[0] is not the place where we might find the
29580   # original and so on.  Autoconf is especially sensitive to this).
29581   . "./$as_me.lineno"
29582   # Exit status is that of the last command.
29583   exit
29587 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29588   as_dirname=dirname
29589 else
29590   as_dirname=false
29593 ECHO_C= ECHO_N= ECHO_T=
29594 case `echo -n x` in
29595 -n*)
29596   case `echo 'x\c'` in
29597   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29598   *)   ECHO_C='\c';;
29599   esac;;
29601   ECHO_N='-n';;
29602 esac
29604 if expr a : '\(a\)' >/dev/null 2>&1 &&
29605    test "X`expr 00001 : '.*\(...\)'`" = X001; then
29606   as_expr=expr
29607 else
29608   as_expr=false
29611 rm -f conf$$ conf$$.exe conf$$.file
29612 if test -d conf$$.dir; then
29613   rm -f conf$$.dir/conf$$.file
29614 else
29615   rm -f conf$$.dir
29616   mkdir conf$$.dir
29618 echo >conf$$.file
29619 if ln -s conf$$.file conf$$ 2>/dev/null; then
29620   as_ln_s='ln -s'
29621   # ... but there are two gotchas:
29622   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29623   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29624   # In both cases, we have to default to `cp -p'.
29625   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29626     as_ln_s='cp -p'
29627 elif ln conf$$.file conf$$ 2>/dev/null; then
29628   as_ln_s=ln
29629 else
29630   as_ln_s='cp -p'
29632 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29633 rmdir conf$$.dir 2>/dev/null
29635 if mkdir -p . 2>/dev/null; then
29636   as_mkdir_p=:
29637 else
29638   test -d ./-p && rmdir ./-p
29639   as_mkdir_p=false
29642 if test -x / >/dev/null 2>&1; then
29643   as_test_x='test -x'
29644 else
29645   if ls -dL / >/dev/null 2>&1; then
29646     as_ls_L_option=L
29647   else
29648     as_ls_L_option=
29649   fi
29650   as_test_x='
29651     eval sh -c '\''
29652       if test -d "$1"; then
29653         test -d "$1/.";
29654       else
29655         case $1 in
29656         -*)set "./$1";;
29657         esac;
29658         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29659         ???[sx]*):;;*)false;;esac;fi
29660     '\'' sh
29661   '
29663 as_executable_p=$as_test_x
29665 # Sed expression to map a string onto a valid CPP name.
29666 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29668 # Sed expression to map a string onto a valid variable name.
29669 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29672 exec 6>&1
29674 # Save the log message, to keep $[0] and so on meaningful, and to
29675 # report actual input values of CONFIG_FILES etc. instead of their
29676 # values after options handling.
29677 ac_log="
29678 This file was extended by rrdtool $as_me 1.2.28, which was
29679 generated by GNU Autoconf 2.61.  Invocation command line was
29681   CONFIG_FILES    = $CONFIG_FILES
29682   CONFIG_HEADERS  = $CONFIG_HEADERS
29683   CONFIG_LINKS    = $CONFIG_LINKS
29684   CONFIG_COMMANDS = $CONFIG_COMMANDS
29685   $ $0 $@
29687 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29690 _ACEOF
29692 cat >>$CONFIG_STATUS <<_ACEOF
29693 # Files that config.status was made for.
29694 config_files="$ac_config_files"
29695 config_headers="$ac_config_headers"
29696 config_commands="$ac_config_commands"
29698 _ACEOF
29700 cat >>$CONFIG_STATUS <<\_ACEOF
29701 ac_cs_usage="\
29702 \`$as_me' instantiates files from templates according to the
29703 current configuration.
29705 Usage: $0 [OPTIONS] [FILE]...
29707   -h, --help       print this help, then exit
29708   -V, --version    print version number and configuration settings, then exit
29709   -q, --quiet      do not print progress messages
29710   -d, --debug      don't remove temporary files
29711       --recheck    update $as_me by reconfiguring in the same conditions
29712   --file=FILE[:TEMPLATE]
29713                    instantiate the configuration file FILE
29714   --header=FILE[:TEMPLATE]
29715                    instantiate the configuration header FILE
29717 Configuration files:
29718 $config_files
29720 Configuration headers:
29721 $config_headers
29723 Configuration commands:
29724 $config_commands
29726 Report bugs to <bug-autoconf@gnu.org>."
29728 _ACEOF
29729 cat >>$CONFIG_STATUS <<_ACEOF
29730 ac_cs_version="\\
29731 rrdtool config.status 1.2.28
29732 configured by $0, generated by GNU Autoconf 2.61,
29733   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29735 Copyright (C) 2006 Free Software Foundation, Inc.
29736 This config.status script is free software; the Free Software Foundation
29737 gives unlimited permission to copy, distribute and modify it."
29739 ac_pwd='$ac_pwd'
29740 srcdir='$srcdir'
29741 INSTALL='$INSTALL'
29742 _ACEOF
29744 cat >>$CONFIG_STATUS <<\_ACEOF
29745 # If no file are specified by the user, then we need to provide default
29746 # value.  By we need to know if files were specified by the user.
29747 ac_need_defaults=:
29748 while test $# != 0
29750   case $1 in
29751   --*=*)
29752     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29753     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29754     ac_shift=:
29755     ;;
29756   *)
29757     ac_option=$1
29758     ac_optarg=$2
29759     ac_shift=shift
29760     ;;
29761   esac
29763   case $ac_option in
29764   # Handling of the options.
29765   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29766     ac_cs_recheck=: ;;
29767   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29768     echo "$ac_cs_version"; exit ;;
29769   --debug | --debu | --deb | --de | --d | -d )
29770     debug=: ;;
29771   --file | --fil | --fi | --f )
29772     $ac_shift
29773     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29774     ac_need_defaults=false;;
29775   --header | --heade | --head | --hea )
29776     $ac_shift
29777     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29778     ac_need_defaults=false;;
29779   --he | --h)
29780     # Conflict between --help and --header
29781     { echo "$as_me: error: ambiguous option: $1
29782 Try \`$0 --help' for more information." >&2
29783    { (exit 1); exit 1; }; };;
29784   --help | --hel | -h )
29785     echo "$ac_cs_usage"; exit ;;
29786   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29787   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29788     ac_cs_silent=: ;;
29790   # This is an error.
29791   -*) { echo "$as_me: error: unrecognized option: $1
29792 Try \`$0 --help' for more information." >&2
29793    { (exit 1); exit 1; }; } ;;
29795   *) ac_config_targets="$ac_config_targets $1"
29796      ac_need_defaults=false ;;
29798   esac
29799   shift
29800 done
29802 ac_configure_extra_args=
29804 if $ac_cs_silent; then
29805   exec 6>/dev/null
29806   ac_configure_extra_args="$ac_configure_extra_args --silent"
29809 _ACEOF
29810 cat >>$CONFIG_STATUS <<_ACEOF
29811 if \$ac_cs_recheck; then
29812   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29813   CONFIG_SHELL=$SHELL
29814   export CONFIG_SHELL
29815   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29818 _ACEOF
29819 cat >>$CONFIG_STATUS <<\_ACEOF
29820 exec 5>>config.log
29822   echo
29823   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29824 ## Running $as_me. ##
29825 _ASBOX
29826   echo "$ac_log"
29827 } >&5
29829 _ACEOF
29830 cat >>$CONFIG_STATUS <<_ACEOF
29832 # INIT-COMMANDS
29834 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29837 _ACEOF
29839 cat >>$CONFIG_STATUS <<\_ACEOF
29841 # Handling of arguments.
29842 for ac_config_target in $ac_config_targets
29844   case $ac_config_target in
29845     "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
29846     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29847     "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
29848     "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
29849     "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
29850     "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
29851     "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
29852     "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
29853     "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
29854     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
29855     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29856     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
29857     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
29858     "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
29859     "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
29860     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29861     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29863   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29864 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29865    { (exit 1); exit 1; }; };;
29866   esac
29867 done
29870 # If the user did not use the arguments to specify the items to instantiate,
29871 # then the envvar interface is used.  Set only those that are not.
29872 # We use the long form for the default assignment because of an extremely
29873 # bizarre bug on SunOS 4.1.3.
29874 if $ac_need_defaults; then
29875   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29876   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29877   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29880 # Have a temporary directory for convenience.  Make it in the build tree
29881 # simply because there is no reason against having it here, and in addition,
29882 # creating and moving files from /tmp can sometimes cause problems.
29883 # Hook for its removal unless debugging.
29884 # Note that there is a small window in which the directory will not be cleaned:
29885 # after its creation but before its name has been assigned to `$tmp'.
29886 $debug ||
29888   tmp=
29889   trap 'exit_status=$?
29890   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29891 ' 0
29892   trap '{ (exit 1); exit 1; }' 1 2 13 15
29894 # Create a (secure) tmp directory for tmp files.
29897   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29898   test -n "$tmp" && test -d "$tmp"
29899 }  ||
29901   tmp=./conf$$-$RANDOM
29902   (umask 077 && mkdir "$tmp")
29903 } ||
29905    echo "$me: cannot create a temporary directory in ." >&2
29906    { (exit 1); exit 1; }
29910 # Set up the sed scripts for CONFIG_FILES section.
29913 # No need to generate the scripts if there are no CONFIG_FILES.
29914 # This happens for instance when ./config.status config.h
29915 if test -n "$CONFIG_FILES"; then
29917 _ACEOF
29921 ac_delim='%!_!# '
29922 for ac_last_try in false false false false false :; do
29923   cat >conf$$subs.sed <<_ACEOF
29924 PERLFLAGS!$PERLFLAGS$ac_delim
29925 SHELL!$SHELL$ac_delim
29926 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29927 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29928 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29929 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29930 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29931 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29932 exec_prefix!$exec_prefix$ac_delim
29933 prefix!$prefix$ac_delim
29934 program_transform_name!$program_transform_name$ac_delim
29935 bindir!$bindir$ac_delim
29936 sbindir!$sbindir$ac_delim
29937 libexecdir!$libexecdir$ac_delim
29938 datarootdir!$datarootdir$ac_delim
29939 datadir!$datadir$ac_delim
29940 sysconfdir!$sysconfdir$ac_delim
29941 sharedstatedir!$sharedstatedir$ac_delim
29942 localstatedir!$localstatedir$ac_delim
29943 includedir!$includedir$ac_delim
29944 oldincludedir!$oldincludedir$ac_delim
29945 docdir!$docdir$ac_delim
29946 infodir!$infodir$ac_delim
29947 htmldir!$htmldir$ac_delim
29948 dvidir!$dvidir$ac_delim
29949 pdfdir!$pdfdir$ac_delim
29950 psdir!$psdir$ac_delim
29951 libdir!$libdir$ac_delim
29952 localedir!$localedir$ac_delim
29953 mandir!$mandir$ac_delim
29954 DEFS!$DEFS$ac_delim
29955 ECHO_C!$ECHO_C$ac_delim
29956 ECHO_N!$ECHO_N$ac_delim
29957 ECHO_T!$ECHO_T$ac_delim
29958 LIBS!$LIBS$ac_delim
29959 build_alias!$build_alias$ac_delim
29960 host_alias!$host_alias$ac_delim
29961 target_alias!$target_alias$ac_delim
29962 NUMVERS!$NUMVERS$ac_delim
29963 build!$build$ac_delim
29964 build_cpu!$build_cpu$ac_delim
29965 build_vendor!$build_vendor$ac_delim
29966 build_os!$build_os$ac_delim
29967 host!$host$ac_delim
29968 host_cpu!$host_cpu$ac_delim
29969 host_vendor!$host_vendor$ac_delim
29970 host_os!$host_os$ac_delim
29971 target!$target$ac_delim
29972 target_cpu!$target_cpu$ac_delim
29973 target_vendor!$target_vendor$ac_delim
29974 target_os!$target_os$ac_delim
29975 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29976 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29977 INSTALL_DATA!$INSTALL_DATA$ac_delim
29978 CYGPATH_W!$CYGPATH_W$ac_delim
29979 PACKAGE!$PACKAGE$ac_delim
29980 VERSION!$VERSION$ac_delim
29981 ACLOCAL!$ACLOCAL$ac_delim
29982 AUTOCONF!$AUTOCONF$ac_delim
29983 AUTOMAKE!$AUTOMAKE$ac_delim
29984 AUTOHEADER!$AUTOHEADER$ac_delim
29985 MAKEINFO!$MAKEINFO$ac_delim
29986 install_sh!$install_sh$ac_delim
29987 STRIP!$STRIP$ac_delim
29988 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29989 mkdir_p!$mkdir_p$ac_delim
29990 AWK!$AWK$ac_delim
29991 SET_MAKE!$SET_MAKE$ac_delim
29992 am__leading_dot!$am__leading_dot$ac_delim
29993 AMTAR!$AMTAR$ac_delim
29994 am__tar!$am__tar$ac_delim
29995 am__untar!$am__untar$ac_delim
29996 RRDGRAPH_YLEGEND_ANGLE!$RRDGRAPH_YLEGEND_ANGLE$ac_delim
29997 CC!$CC$ac_delim
29998 CFLAGS!$CFLAGS$ac_delim
29999 LDFLAGS!$LDFLAGS$ac_delim
30000 CPPFLAGS!$CPPFLAGS$ac_delim
30001 ac_ct_CC!$ac_ct_CC$ac_delim
30002 EXEEXT!$EXEEXT$ac_delim
30003 OBJEXT!$OBJEXT$ac_delim
30004 DEPDIR!$DEPDIR$ac_delim
30005 am__include!$am__include$ac_delim
30006 am__quote!$am__quote$ac_delim
30007 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
30008 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
30009 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
30010 CCDEPMODE!$CCDEPMODE$ac_delim
30011 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
30012 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
30013 CPP!$CPP$ac_delim
30014 SED!$SED$ac_delim
30015 GREP!$GREP$ac_delim
30016 EGREP!$EGREP$ac_delim
30017 LN_S!$LN_S$ac_delim
30018 ECHO!$ECHO$ac_delim
30019 AR!$AR$ac_delim
30020 RANLIB!$RANLIB$ac_delim
30021 _ACEOF
30023   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30024     break
30025   elif $ac_last_try; then
30026     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30027 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30028    { (exit 1); exit 1; }; }
30029   else
30030     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30031   fi
30032 done
30034 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30035 if test -n "$ac_eof"; then
30036   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30037   ac_eof=`expr $ac_eof + 1`
30040 cat >>$CONFIG_STATUS <<_ACEOF
30041 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30043 _ACEOF
30044 sed '
30045 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30046 s/^/s,@/; s/!/@,|#_!!_#|/
30048 t n
30049 s/'"$ac_delim"'$/,g/; t
30050 s/$/\\/; p
30051 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30052 ' >>$CONFIG_STATUS <conf$$subs.sed
30053 rm -f conf$$subs.sed
30054 cat >>$CONFIG_STATUS <<_ACEOF
30055 CEOF$ac_eof
30056 _ACEOF
30059 ac_delim='%!_!# '
30060 for ac_last_try in false false false false false :; do
30061   cat >conf$$subs.sed <<_ACEOF
30062 DSYMUTIL!$DSYMUTIL$ac_delim
30063 NMEDIT!$NMEDIT$ac_delim
30064 CXX!$CXX$ac_delim
30065 CXXFLAGS!$CXXFLAGS$ac_delim
30066 ac_ct_CXX!$ac_ct_CXX$ac_delim
30067 CXXDEPMODE!$CXXDEPMODE$ac_delim
30068 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
30069 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
30070 CXXCPP!$CXXCPP$ac_delim
30071 F77!$F77$ac_delim
30072 FFLAGS!$FFLAGS$ac_delim
30073 ac_ct_F77!$ac_ct_F77$ac_delim
30074 LIBTOOL!$LIBTOOL$ac_delim
30075 RRD_DEFAULT_FONT!$RRD_DEFAULT_FONT$ac_delim
30076 MULTITHREAD_CFLAGS!$MULTITHREAD_CFLAGS$ac_delim
30077 MULTITHREAD_LDFLAGS!$MULTITHREAD_LDFLAGS$ac_delim
30078 acx_pthread_config!$acx_pthread_config$ac_delim
30079 PTHREAD_CC!$PTHREAD_CC$ac_delim
30080 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
30081 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
30082 BUILD_MULTITHREAD_TRUE!$BUILD_MULTITHREAD_TRUE$ac_delim
30083 BUILD_MULTITHREAD_FALSE!$BUILD_MULTITHREAD_FALSE$ac_delim
30084 BUILD_RRDCGI_TRUE!$BUILD_RRDCGI_TRUE$ac_delim
30085 BUILD_RRDCGI_FALSE!$BUILD_RRDCGI_FALSE$ac_delim
30086 PKGCONFIG!$PKGCONFIG$ac_delim
30087 CORE_LIBS!$CORE_LIBS$ac_delim
30088 ALL_LIBS!$ALL_LIBS$ac_delim
30089 PERL!$PERL$ac_delim
30090 PERLCC!$PERLCC$ac_delim
30091 PERLCCFLAGS!$PERLCCFLAGS$ac_delim
30092 PERLLD!$PERLLD$ac_delim
30093 PERLLDFLAGS!$PERLLDFLAGS$ac_delim
30094 PERL_CC!$PERL_CC$ac_delim
30095 PERL_MAKE_OPTIONS!$PERL_MAKE_OPTIONS$ac_delim
30096 COMP_PERL!$COMP_PERL$ac_delim
30097 PERL_VERSION!$PERL_VERSION$ac_delim
30098 RUBY!$RUBY$ac_delim
30099 RUBY_MAKE_OPTIONS!$RUBY_MAKE_OPTIONS$ac_delim
30100 COMP_RUBY!$COMP_RUBY$ac_delim
30101 BUILD_TCL_TRUE!$BUILD_TCL_TRUE$ac_delim
30102 BUILD_TCL_FALSE!$BUILD_TCL_FALSE$ac_delim
30103 BUILD_TCL_SITE_TRUE!$BUILD_TCL_SITE_TRUE$ac_delim
30104 BUILD_TCL_SITE_FALSE!$BUILD_TCL_SITE_FALSE$ac_delim
30105 TCL_PREFIX!$TCL_PREFIX$ac_delim
30106 TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
30107 TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
30108 TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
30109 TCL_PACKAGE_PATH!$TCL_PACKAGE_PATH$ac_delim
30110 TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
30111 TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
30112 TCL_VERSION!$TCL_VERSION$ac_delim
30113 TCL_PACKAGE_DIR!$TCL_PACKAGE_DIR$ac_delim
30114 PYTHON!$PYTHON$ac_delim
30115 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
30116 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
30117 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
30118 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
30119 pythondir!$pythondir$ac_delim
30120 pkgpythondir!$pkgpythondir$ac_delim
30121 pyexecdir!$pyexecdir$ac_delim
30122 pkgpyexecdir!$pkgpyexecdir$ac_delim
30123 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
30124 COMP_PYTHON!$COMP_PYTHON$ac_delim
30125 NROFF!$NROFF$ac_delim
30126 TROFF!$TROFF$ac_delim
30127 RRDDOCDIR!$RRDDOCDIR$ac_delim
30128 LIBOBJS!$LIBOBJS$ac_delim
30129 LTLIBOBJS!$LTLIBOBJS$ac_delim
30130 _ACEOF
30132   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
30133     break
30134   elif $ac_last_try; then
30135     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30136 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30137    { (exit 1); exit 1; }; }
30138   else
30139     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30140   fi
30141 done
30143 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30144 if test -n "$ac_eof"; then
30145   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30146   ac_eof=`expr $ac_eof + 1`
30149 cat >>$CONFIG_STATUS <<_ACEOF
30150 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30152 _ACEOF
30153 sed '
30154 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30155 s/^/s,@/; s/!/@,|#_!!_#|/
30157 t n
30158 s/'"$ac_delim"'$/,g/; t
30159 s/$/\\/; p
30160 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30161 ' >>$CONFIG_STATUS <conf$$subs.sed
30162 rm -f conf$$subs.sed
30163 cat >>$CONFIG_STATUS <<_ACEOF
30164 :end
30165 s/|#_!!_#|//g
30166 CEOF$ac_eof
30167 _ACEOF
30170 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30171 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30172 # trailing colons and then remove the whole line if VPATH becomes empty
30173 # (actually we leave an empty line to preserve line numbers).
30174 if test "x$srcdir" = x.; then
30175   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30176 s/:*\$(srcdir):*/:/
30177 s/:*\${srcdir}:*/:/
30178 s/:*@srcdir@:*/:/
30179 s/^\([^=]*=[     ]*\):*/\1/
30180 s/:*$//
30181 s/^[^=]*=[       ]*$//
30185 cat >>$CONFIG_STATUS <<\_ACEOF
30186 fi # test -n "$CONFIG_FILES"
30189 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
30191   case $ac_tag in
30192   :[FHLC]) ac_mode=$ac_tag; continue;;
30193   esac
30194   case $ac_mode$ac_tag in
30195   :[FHL]*:*);;
30196   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30197 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30198    { (exit 1); exit 1; }; };;
30199   :[FH]-) ac_tag=-:-;;
30200   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30201   esac
30202   ac_save_IFS=$IFS
30203   IFS=:
30204   set x $ac_tag
30205   IFS=$ac_save_IFS
30206   shift
30207   ac_file=$1
30208   shift
30210   case $ac_mode in
30211   :L) ac_source=$1;;
30212   :[FH])
30213     ac_file_inputs=
30214     for ac_f
30215     do
30216       case $ac_f in
30217       -) ac_f="$tmp/stdin";;
30218       *) # Look for the file first in the build tree, then in the source tree
30219          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30220          # because $ac_f cannot contain `:'.
30221          test -f "$ac_f" ||
30222            case $ac_f in
30223            [\\/$]*) false;;
30224            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30225            esac ||
30226            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30227 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30228    { (exit 1); exit 1; }; };;
30229       esac
30230       ac_file_inputs="$ac_file_inputs $ac_f"
30231     done
30233     # Let's still pretend it is `configure' which instantiates (i.e., don't
30234     # use $as_me), people would be surprised to read:
30235     #    /* config.h.  Generated by config.status.  */
30236     configure_input="Generated from "`IFS=:
30237           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30238     if test x"$ac_file" != x-; then
30239       configure_input="$ac_file.  $configure_input"
30240       { echo "$as_me:$LINENO: creating $ac_file" >&5
30241 echo "$as_me: creating $ac_file" >&6;}
30242     fi
30244     case $ac_tag in
30245     *:-:* | *:-) cat >"$tmp/stdin";;
30246     esac
30247     ;;
30248   esac
30250   ac_dir=`$as_dirname -- "$ac_file" ||
30251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30252          X"$ac_file" : 'X\(//\)[^/]' \| \
30253          X"$ac_file" : 'X\(//\)$' \| \
30254          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30255 echo X"$ac_file" |
30256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30257             s//\1/
30258             q
30259           }
30260           /^X\(\/\/\)[^/].*/{
30261             s//\1/
30262             q
30263           }
30264           /^X\(\/\/\)$/{
30265             s//\1/
30266             q
30267           }
30268           /^X\(\/\).*/{
30269             s//\1/
30270             q
30271           }
30272           s/.*/./; q'`
30273   { as_dir="$ac_dir"
30274   case $as_dir in #(
30275   -*) as_dir=./$as_dir;;
30276   esac
30277   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30278     as_dirs=
30279     while :; do
30280       case $as_dir in #(
30281       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30282       *) as_qdir=$as_dir;;
30283       esac
30284       as_dirs="'$as_qdir' $as_dirs"
30285       as_dir=`$as_dirname -- "$as_dir" ||
30286 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30287          X"$as_dir" : 'X\(//\)[^/]' \| \
30288          X"$as_dir" : 'X\(//\)$' \| \
30289          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30290 echo X"$as_dir" |
30291     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30292             s//\1/
30293             q
30294           }
30295           /^X\(\/\/\)[^/].*/{
30296             s//\1/
30297             q
30298           }
30299           /^X\(\/\/\)$/{
30300             s//\1/
30301             q
30302           }
30303           /^X\(\/\).*/{
30304             s//\1/
30305             q
30306           }
30307           s/.*/./; q'`
30308       test -d "$as_dir" && break
30309     done
30310     test -z "$as_dirs" || eval "mkdir $as_dirs"
30311   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30312 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30313    { (exit 1); exit 1; }; }; }
30314   ac_builddir=.
30316 case "$ac_dir" in
30317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30319   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30320   # A ".." for each directory in $ac_dir_suffix.
30321   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30322   case $ac_top_builddir_sub in
30323   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30324   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30325   esac ;;
30326 esac
30327 ac_abs_top_builddir=$ac_pwd
30328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30329 # for backward compatibility:
30330 ac_top_builddir=$ac_top_build_prefix
30332 case $srcdir in
30333   .)  # We are building in place.
30334     ac_srcdir=.
30335     ac_top_srcdir=$ac_top_builddir_sub
30336     ac_abs_top_srcdir=$ac_pwd ;;
30337   [\\/]* | ?:[\\/]* )  # Absolute name.
30338     ac_srcdir=$srcdir$ac_dir_suffix;
30339     ac_top_srcdir=$srcdir
30340     ac_abs_top_srcdir=$srcdir ;;
30341   *) # Relative name.
30342     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30343     ac_top_srcdir=$ac_top_build_prefix$srcdir
30344     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30345 esac
30346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30349   case $ac_mode in
30350   :F)
30351   #
30352   # CONFIG_FILE
30353   #
30355   case $INSTALL in
30356   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30357   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30358   esac
30359 _ACEOF
30361 cat >>$CONFIG_STATUS <<\_ACEOF
30362 # If the template does not know about datarootdir, expand it.
30363 # FIXME: This hack should be removed a few years after 2.60.
30364 ac_datarootdir_hack=; ac_datarootdir_seen=
30366 case `sed -n '/datarootdir/ {
30367   p
30368   q
30370 /@datadir@/p
30371 /@docdir@/p
30372 /@infodir@/p
30373 /@localedir@/p
30374 /@mandir@/p
30375 ' $ac_file_inputs` in
30376 *datarootdir*) ac_datarootdir_seen=yes;;
30377 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30378   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30379 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30380 _ACEOF
30381 cat >>$CONFIG_STATUS <<_ACEOF
30382   ac_datarootdir_hack='
30383   s&@datadir@&$datadir&g
30384   s&@docdir@&$docdir&g
30385   s&@infodir@&$infodir&g
30386   s&@localedir@&$localedir&g
30387   s&@mandir@&$mandir&g
30388     s&\\\${datarootdir}&$datarootdir&g' ;;
30389 esac
30390 _ACEOF
30392 # Neutralize VPATH when `$srcdir' = `.'.
30393 # Shell code in configure.ac might set extrasub.
30394 # FIXME: do we really want to maintain this feature?
30395 cat >>$CONFIG_STATUS <<_ACEOF
30396   sed "$ac_vpsub
30397 $extrasub
30398 _ACEOF
30399 cat >>$CONFIG_STATUS <<\_ACEOF
30401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30402 s&@configure_input@&$configure_input&;t t
30403 s&@top_builddir@&$ac_top_builddir_sub&;t t
30404 s&@srcdir@&$ac_srcdir&;t t
30405 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30406 s&@top_srcdir@&$ac_top_srcdir&;t t
30407 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30408 s&@builddir@&$ac_builddir&;t t
30409 s&@abs_builddir@&$ac_abs_builddir&;t t
30410 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30411 s&@INSTALL@&$ac_INSTALL&;t t
30412 $ac_datarootdir_hack
30413 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
30415 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30416   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30417   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30418   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30419 which seems to be undefined.  Please make sure it is defined." >&5
30420 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30421 which seems to be undefined.  Please make sure it is defined." >&2;}
30423   rm -f "$tmp/stdin"
30424   case $ac_file in
30425   -) cat "$tmp/out"; rm -f "$tmp/out";;
30426   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30427   esac
30428  ;;
30429   :H)
30430   #
30431   # CONFIG_HEADER
30432   #
30433 _ACEOF
30435 # Transform confdefs.h into a sed script `conftest.defines', that
30436 # substitutes the proper values into config.h.in to produce config.h.
30437 rm -f conftest.defines conftest.tail
30438 # First, append a space to every undef/define line, to ease matching.
30439 echo 's/$/ /' >conftest.defines
30440 # Then, protect against being on the right side of a sed subst, or in
30441 # an unquoted here document, in config.status.  If some macros were
30442 # called several times there might be several #defines for the same
30443 # symbol, which is useless.  But do not sort them, since the last
30444 # AC_DEFINE must be honored.
30445 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30446 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30447 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30448 # PARAMS is the parameter list in the macro definition--in most cases, it's
30449 # just an empty string.
30450 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
30451 ac_dB='\\)[      (].*,\\1define\\2'
30452 ac_dC=' '
30453 ac_dD=' ,'
30455 uniq confdefs.h |
30456   sed -n '
30457         t rset
30458         :rset
30459         s/^[     ]*#[    ]*define[       ][      ]*//
30460         t ok
30461         d
30462         :ok
30463         s/[\\&,]/\\&/g
30464         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
30465         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
30466   ' >>conftest.defines
30468 # Remove the space that was appended to ease matching.
30469 # Then replace #undef with comments.  This is necessary, for
30470 # example, in the case of _POSIX_SOURCE, which is predefined and required
30471 # on some systems where configure will not decide to define it.
30472 # (The regexp can be short, since the line contains either #define or #undef.)
30473 echo 's/ $//
30474 s,^[     #]*u.*,/* & */,' >>conftest.defines
30476 # Break up conftest.defines:
30477 ac_max_sed_lines=50
30479 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
30480 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
30481 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
30482 # et cetera.
30483 ac_in='$ac_file_inputs'
30484 ac_out='"$tmp/out1"'
30485 ac_nxt='"$tmp/out2"'
30487 while :
30489   # Write a here document:
30490     cat >>$CONFIG_STATUS <<_ACEOF
30491     # First, check the format of the line:
30492     cat >"\$tmp/defines.sed" <<\\CEOF
30493 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
30494 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
30496 :def
30497 _ACEOF
30498   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
30499   echo 'CEOF
30500     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
30501   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
30502   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
30503   grep . conftest.tail >/dev/null || break
30504   rm -f conftest.defines
30505   mv conftest.tail conftest.defines
30506 done
30507 rm -f conftest.defines conftest.tail
30509 echo "ac_result=$ac_in" >>$CONFIG_STATUS
30510 cat >>$CONFIG_STATUS <<\_ACEOF
30511   if test x"$ac_file" != x-; then
30512     echo "/* $configure_input  */" >"$tmp/config.h"
30513     cat "$ac_result" >>"$tmp/config.h"
30514     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
30515       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30516 echo "$as_me: $ac_file is unchanged" >&6;}
30517     else
30518       rm -f $ac_file
30519       mv "$tmp/config.h" $ac_file
30520     fi
30521   else
30522     echo "/* $configure_input  */"
30523     cat "$ac_result"
30524   fi
30525   rm -f "$tmp/out12"
30526 # Compute $ac_file's index in $config_headers.
30527 _am_stamp_count=1
30528 for _am_header in $config_headers :; do
30529   case $_am_header in
30530     $ac_file | $ac_file:* )
30531       break ;;
30532     * )
30533       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30534   esac
30535 done
30536 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
30537 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30538          X$ac_file : 'X\(//\)[^/]' \| \
30539          X$ac_file : 'X\(//\)$' \| \
30540          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
30541 echo X$ac_file |
30542     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30543             s//\1/
30544             q
30545           }
30546           /^X\(\/\/\)[^/].*/{
30547             s//\1/
30548             q
30549           }
30550           /^X\(\/\/\)$/{
30551             s//\1/
30552             q
30553           }
30554           /^X\(\/\).*/{
30555             s//\1/
30556             q
30557           }
30558           s/.*/./; q'`/stamp-h$_am_stamp_count
30559  ;;
30561   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
30562 echo "$as_me: executing $ac_file commands" >&6;}
30563  ;;
30564   esac
30567   case $ac_file$ac_mode in
30568     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30569   # Strip MF so we end up with the name of the file.
30570   mf=`echo "$mf" | sed -e 's/:.*$//'`
30571   # Check whether this is an Automake generated Makefile or not.
30572   # We used to match only the files named `Makefile.in', but
30573   # some people rename them; so instead we look at the file content.
30574   # Grep'ing the first line is not enough: some people post-process
30575   # each Makefile.in and add a new line on top of each file to say so.
30576   # So let's grep whole file.
30577   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30578     dirpart=`$as_dirname -- "$mf" ||
30579 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30580          X"$mf" : 'X\(//\)[^/]' \| \
30581          X"$mf" : 'X\(//\)$' \| \
30582          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30583 echo X"$mf" |
30584     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30585             s//\1/
30586             q
30587           }
30588           /^X\(\/\/\)[^/].*/{
30589             s//\1/
30590             q
30591           }
30592           /^X\(\/\/\)$/{
30593             s//\1/
30594             q
30595           }
30596           /^X\(\/\).*/{
30597             s//\1/
30598             q
30599           }
30600           s/.*/./; q'`
30601   else
30602     continue
30603   fi
30604   # Extract the definition of DEPDIR, am__include, and am__quote
30605   # from the Makefile without running `make'.
30606   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30607   test -z "$DEPDIR" && continue
30608   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30609   test -z "am__include" && continue
30610   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30611   # When using ansi2knr, U may be empty or an underscore; expand it
30612   U=`sed -n 's/^U = //p' < "$mf"`
30613   # Find all dependency output files, they are included files with
30614   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30615   # simplest approach to changing $(DEPDIR) to its actual value in the
30616   # expansion.
30617   for file in `sed -n "
30618     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30619        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30620     # Make sure the directory exists.
30621     test -f "$dirpart/$file" && continue
30622     fdir=`$as_dirname -- "$file" ||
30623 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30624          X"$file" : 'X\(//\)[^/]' \| \
30625          X"$file" : 'X\(//\)$' \| \
30626          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30627 echo X"$file" |
30628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30629             s//\1/
30630             q
30631           }
30632           /^X\(\/\/\)[^/].*/{
30633             s//\1/
30634             q
30635           }
30636           /^X\(\/\/\)$/{
30637             s//\1/
30638             q
30639           }
30640           /^X\(\/\).*/{
30641             s//\1/
30642             q
30643           }
30644           s/.*/./; q'`
30645     { as_dir=$dirpart/$fdir
30646   case $as_dir in #(
30647   -*) as_dir=./$as_dir;;
30648   esac
30649   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30650     as_dirs=
30651     while :; do
30652       case $as_dir in #(
30653       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30654       *) as_qdir=$as_dir;;
30655       esac
30656       as_dirs="'$as_qdir' $as_dirs"
30657       as_dir=`$as_dirname -- "$as_dir" ||
30658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30659          X"$as_dir" : 'X\(//\)[^/]' \| \
30660          X"$as_dir" : 'X\(//\)$' \| \
30661          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30662 echo X"$as_dir" |
30663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30664             s//\1/
30665             q
30666           }
30667           /^X\(\/\/\)[^/].*/{
30668             s//\1/
30669             q
30670           }
30671           /^X\(\/\/\)$/{
30672             s//\1/
30673             q
30674           }
30675           /^X\(\/\).*/{
30676             s//\1/
30677             q
30678           }
30679           s/.*/./; q'`
30680       test -d "$as_dir" && break
30681     done
30682     test -z "$as_dirs" || eval "mkdir $as_dirs"
30683   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30684 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30685    { (exit 1); exit 1; }; }; }
30686     # echo "creating $dirpart/$file"
30687     echo '# dummy' > "$dirpart/$file"
30688   done
30689 done
30690  ;;
30691     "default":C)  chmod +x examples/*.pl ;;
30693   esac
30694 done # for ac_tag
30697 { (exit 0); exit 0; }
30698 _ACEOF
30699 chmod +x $CONFIG_STATUS
30700 ac_clean_files=$ac_clean_files_save
30703 # configure is writing to config.log, and then calls config.status.
30704 # config.status does its own redirection, appending to config.log.
30705 # Unfortunately, on DOS this fails, as config.log is still kept open
30706 # by configure, so config.status won't be able to write to it; its
30707 # output is simply discarded.  So we exec the FD to /dev/null,
30708 # effectively closing config.log, so it can be properly (re)opened and
30709 # appended to by config.status.  When coming back to configure, we
30710 # need to make the FD available again.
30711 if test "$no_create" != yes; then
30712   ac_cs_success=:
30713   ac_config_status_args=
30714   test "$silent" = yes &&
30715     ac_config_status_args="$ac_config_status_args --quiet"
30716   exec 5>/dev/null
30717   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30718   exec 5>>config.log
30719   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30720   # would make configure fail if this is the last instruction.
30721   $ac_cs_success || { (exit 1); exit 1; }
30725 { echo "$as_me:$LINENO: checking in" >&5
30726 echo $ECHO_N "checking in... $ECHO_C" >&6; }
30727 { echo "$as_me:$LINENO: result: and out again" >&5
30728 echo "${ECHO_T}and out again" >&6; }
30730 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
30731 sleep 1
30732 echo $ECHO_N ".$ECHO_C" 1>&6
30733 sleep 1
30734 echo $ECHO_N ".$ECHO_C" 1>&6
30735 sleep 1
30736 echo $ECHO_N ".$ECHO_C" 1>&6
30737 sleep 1
30738 echo $ECHO_N ".$ECHO_C" 1>&6
30739 sleep 1
30740 { echo "$as_me:$LINENO: result:  just kidding ;-)" >&5
30741 echo "${ECHO_T} just kidding ;-)" >&6; }
30742 echo
30743 echo "----------------------------------------------------------------"
30744 echo "Config is DONE!"
30745 echo
30746 echo "          With MMAP IO: $ac_cv_func_mmap_fixed_mapped"
30747 echo "          Perl Modules: $COMP_PERL"
30748 echo "           Perl Binary: $PERL"
30749 echo "          Perl Version: $PERL_VERSION"
30750 echo "          Perl Options: $PERL_MAKE_OPTIONS"
30751 echo "          Ruby Modules: $COMP_RUBY"
30752 echo "           Ruby Binary: $RUBY"
30753 echo "          Ruby Options: $RUBY_MAKE_OPTIONS"
30754 echo "    Build Tcl Bindings: $enable_tcl"
30755 echo " Build Python Bindings: $enable_python"
30756 echo "          Build rrdcgi: $enable_rrdcgi"
30757 echo "       Build librrd MT: $enable_pthread"
30758 echo
30759 echo
30760 echo "Type 'make' to compile the software and use 'make install' to "
30761 echo "install everything to: $prefix."
30762 echo
30763 echo "       ... that wishlist is NO JOKE. If you find RRDtool useful"
30764 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
30765 echo "place an order."
30766 echo
30767 echo "                               -- Tobi Oetiker <tobi@oetiker.ch>"
30768 echo "----------------------------------------------------------------"