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.3.7.
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.3.7'
730 PACKAGE_STRING='rrdtool 1.3.7'
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 LIBVERS
810 build
811 build_cpu
812 build_vendor
813 build_os
814 host
815 host_cpu
816 host_vendor
817 host_os
818 target
819 target_cpu
820 target_vendor
821 target_os
822 INSTALL_PROGRAM
823 INSTALL_SCRIPT
824 INSTALL_DATA
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 MAINTAINER_MODE_TRUE
844 MAINTAINER_MODE_FALSE
845 MAINT
846 RRDGRAPH_YLEGEND_ANGLE
847 STATIC_PROGRAMS_TRUE
848 STATIC_PROGRAMS_FALSE
849 CC
850 CFLAGS
851 LDFLAGS
852 CPPFLAGS
853 ac_ct_CC
854 EXEEXT
855 OBJEXT
856 DEPDIR
857 am__include
858 am__quote
859 AMDEP_TRUE
860 AMDEP_FALSE
861 AMDEPBACKSLASH
862 CCDEPMODE
863 am__fastdepCC_TRUE
864 am__fastdepCC_FALSE
865 CPP
866 SED
867 GREP
868 EGREP
869 LN_S
870 ECHO
871 AR
872 RANLIB
873 DSYMUTIL
874 NMEDIT
875 CXX
876 CXXFLAGS
877 ac_ct_CXX
878 CXXDEPMODE
879 am__fastdepCXX_TRUE
880 am__fastdepCXX_FALSE
881 CXXCPP
882 F77
883 FFLAGS
884 ac_ct_F77
885 LIBTOOL
886 RRD_DEFAULT_FONT
887 GETTEXT_PACKAGE
888 USE_NLS
889 MSGFMT
890 MSGFMT_OPTS
891 GMSGFMT
892 XGETTEXT
893 CATALOGS
894 CATOBJEXT
895 DATADIRNAME
896 GMOFILES
897 INSTOBJEXT
898 INTLLIBS
899 PO_IN_DATADIR_TRUE
900 PO_IN_DATADIR_FALSE
901 POFILES
902 POSUB
903 MKINSTALLDIRS
904 INTLTOOL_DESKTOP_RULE
905 INTLTOOL_DIRECTORY_RULE
906 INTLTOOL_KEYS_RULE
907 INTLTOOL_PROP_RULE
908 INTLTOOL_OAF_RULE
909 INTLTOOL_PONG_RULE
910 INTLTOOL_SERVER_RULE
911 INTLTOOL_SHEET_RULE
912 INTLTOOL_SOUNDLIST_RULE
913 INTLTOOL_UI_RULE
914 INTLTOOL_XAM_RULE
915 INTLTOOL_KBD_RULE
916 INTLTOOL_XML_RULE
917 INTLTOOL_XML_NOMERGE_RULE
918 INTLTOOL_CAVES_RULE
919 INTLTOOL_SCHEMAS_RULE
920 INTLTOOL_THEME_RULE
921 INTLTOOL_SERVICE_RULE
922 INTLTOOL_POLICY_RULE
923 MSGMERGE
924 INTLTOOL_EXTRACT
925 INTLTOOL_MERGE
926 INTLTOOL_UPDATE
927 INTLTOOL_PERL
928 ALL_LINGUAS
929 LIB_LIBINTL
930 BUILD_LIBINTL_TRUE
931 BUILD_LIBINTL_FALSE
932 RRD_GETOPT_LONG
933 BUILD_GETOPT_TRUE
934 BUILD_GETOPT_FALSE
935 MULTITHREAD_CFLAGS
936 MULTITHREAD_LDFLAGS
937 acx_pthread_config
938 PTHREAD_CC
939 PTHREAD_LIBS
940 PTHREAD_CFLAGS
941 BUILD_MULTITHREAD_TRUE
942 BUILD_MULTITHREAD_FALSE
943 BUILD_RRDCGI_TRUE
944 BUILD_RRDCGI_FALSE
945 PKGCONFIG
946 CORE_LIBS
947 ALL_LIBS
948 PERL
949 POD2MAN
950 POD2HTML
951 PERLCC
952 PERLCCFLAGS
953 PERLLD
954 PERLLDFLAGS
955 PERL_CC
956 PERL_MAKE_OPTIONS
957 COMP_PERL
958 PERL_VERSION
959 RUBY
960 RUBY_MAKE_OPTIONS
961 COMP_RUBY
962 BUILD_TCL_TRUE
963 BUILD_TCL_FALSE
964 BUILD_TCL_SITE_TRUE
965 BUILD_TCL_SITE_FALSE
966 TCL_PREFIX
967 TCL_SHLIB_CFLAGS
968 TCL_SHLIB_LD
969 TCL_SHLIB_SUFFIX
970 TCL_PACKAGE_PATH
971 TCL_LD_SEARCH_FLAGS
972 TCL_STUB_LIB_SPEC
973 TCL_VERSION
974 TCL_PACKAGE_DIR
975 TCL_INCLUDE_SPEC
976 PYTHON
977 PYTHON_VERSION
978 PYTHON_PREFIX
979 PYTHON_EXEC_PREFIX
980 PYTHON_PLATFORM
981 pythondir
982 pkgpythondir
983 pyexecdir
984 pkgpyexecdir
985 PYTHON_INCLUDES
986 COMP_PYTHON
987 NROFF
988 TROFF
989 RRDDOCDIR
990 LIBOBJS
991 LTLIBOBJS'
992 ac_subst_files=''
993       ac_precious_vars='build_alias
994 host_alias
995 target_alias
996 RRDGRAPH_YLEGEND_ANGLE
997 CC
998 CFLAGS
999 LDFLAGS
1000 LIBS
1001 CPPFLAGS
1002 CPP
1003 CXX
1004 CXXFLAGS
1005 CCC
1006 CXXCPP
1007 F77
1008 FFLAGS
1009 PERLCC
1010 PERLCCFLAGS
1011 PERLLD
1012 PERLLDFLAGS
1013 RRDDOCDIR'
1016 # Initialize some variables set by options.
1017 ac_init_help=
1018 ac_init_version=false
1019 # The variables have the same names as the options, with
1020 # dashes changed to underlines.
1021 cache_file=/dev/null
1022 exec_prefix=NONE
1023 no_create=
1024 no_recursion=
1025 prefix=NONE
1026 program_prefix=NONE
1027 program_suffix=NONE
1028 program_transform_name=s,x,x,
1029 silent=
1030 site=
1031 srcdir=
1032 verbose=
1033 x_includes=NONE
1034 x_libraries=NONE
1036 # Installation directory options.
1037 # These are left unexpanded so users can "make install exec_prefix=/foo"
1038 # and all the variables that are supposed to be based on exec_prefix
1039 # by default will actually change.
1040 # Use braces instead of parens because sh, perl, etc. also accept them.
1041 # (The list follows the same order as the GNU Coding Standards.)
1042 bindir='${exec_prefix}/bin'
1043 sbindir='${exec_prefix}/sbin'
1044 libexecdir='${exec_prefix}/libexec'
1045 datarootdir='${prefix}/share'
1046 datadir='${datarootdir}'
1047 sysconfdir='${prefix}/etc'
1048 sharedstatedir='${prefix}/com'
1049 localstatedir='${prefix}/var'
1050 includedir='${prefix}/include'
1051 oldincludedir='/usr/include'
1052 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1053 infodir='${datarootdir}/info'
1054 htmldir='${docdir}'
1055 dvidir='${docdir}'
1056 pdfdir='${docdir}'
1057 psdir='${docdir}'
1058 libdir='${exec_prefix}/lib'
1059 localedir='${datarootdir}/locale'
1060 mandir='${datarootdir}/man'
1062 ac_prev=
1063 ac_dashdash=
1064 for ac_option
1065 do
1066   # If the previous option needs an argument, assign it.
1067   if test -n "$ac_prev"; then
1068     eval $ac_prev=\$ac_option
1069     ac_prev=
1070     continue
1071   fi
1073   case $ac_option in
1074   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1075   *)    ac_optarg=yes ;;
1076   esac
1078   # Accept the important Cygnus configure options, so we can diagnose typos.
1080   case $ac_dashdash$ac_option in
1081   --)
1082     ac_dashdash=yes ;;
1084   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1085     ac_prev=bindir ;;
1086   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1087     bindir=$ac_optarg ;;
1089   -build | --build | --buil | --bui | --bu)
1090     ac_prev=build_alias ;;
1091   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1092     build_alias=$ac_optarg ;;
1094   -cache-file | --cache-file | --cache-fil | --cache-fi \
1095   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1096     ac_prev=cache_file ;;
1097   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1098   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1099     cache_file=$ac_optarg ;;
1101   --config-cache | -C)
1102     cache_file=config.cache ;;
1104   -datadir | --datadir | --datadi | --datad)
1105     ac_prev=datadir ;;
1106   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1107     datadir=$ac_optarg ;;
1109   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1110   | --dataroo | --dataro | --datar)
1111     ac_prev=datarootdir ;;
1112   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1113   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1114     datarootdir=$ac_optarg ;;
1116   -disable-* | --disable-*)
1117     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1118     # Reject names that are not valid shell variable names.
1119     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1121    { (exit 1); exit 1; }; }
1122     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1123     eval enable_$ac_feature=no ;;
1125   -docdir | --docdir | --docdi | --doc | --do)
1126     ac_prev=docdir ;;
1127   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1128     docdir=$ac_optarg ;;
1130   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1131     ac_prev=dvidir ;;
1132   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1133     dvidir=$ac_optarg ;;
1135   -enable-* | --enable-*)
1136     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1137     # Reject names that are not valid shell variable names.
1138     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1139       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1140    { (exit 1); exit 1; }; }
1141     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1142     eval enable_$ac_feature=\$ac_optarg ;;
1144   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1145   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1146   | --exec | --exe | --ex)
1147     ac_prev=exec_prefix ;;
1148   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1149   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1150   | --exec=* | --exe=* | --ex=*)
1151     exec_prefix=$ac_optarg ;;
1153   -gas | --gas | --ga | --g)
1154     # Obsolete; use --with-gas.
1155     with_gas=yes ;;
1157   -help | --help | --hel | --he | -h)
1158     ac_init_help=long ;;
1159   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1160     ac_init_help=recursive ;;
1161   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1162     ac_init_help=short ;;
1164   -host | --host | --hos | --ho)
1165     ac_prev=host_alias ;;
1166   -host=* | --host=* | --hos=* | --ho=*)
1167     host_alias=$ac_optarg ;;
1169   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1170     ac_prev=htmldir ;;
1171   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1172   | --ht=*)
1173     htmldir=$ac_optarg ;;
1175   -includedir | --includedir | --includedi | --included | --include \
1176   | --includ | --inclu | --incl | --inc)
1177     ac_prev=includedir ;;
1178   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1179   | --includ=* | --inclu=* | --incl=* | --inc=*)
1180     includedir=$ac_optarg ;;
1182   -infodir | --infodir | --infodi | --infod | --info | --inf)
1183     ac_prev=infodir ;;
1184   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1185     infodir=$ac_optarg ;;
1187   -libdir | --libdir | --libdi | --libd)
1188     ac_prev=libdir ;;
1189   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1190     libdir=$ac_optarg ;;
1192   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1193   | --libexe | --libex | --libe)
1194     ac_prev=libexecdir ;;
1195   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1196   | --libexe=* | --libex=* | --libe=*)
1197     libexecdir=$ac_optarg ;;
1199   -localedir | --localedir | --localedi | --localed | --locale)
1200     ac_prev=localedir ;;
1201   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1202     localedir=$ac_optarg ;;
1204   -localstatedir | --localstatedir | --localstatedi | --localstated \
1205   | --localstate | --localstat | --localsta | --localst | --locals)
1206     ac_prev=localstatedir ;;
1207   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1208   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1209     localstatedir=$ac_optarg ;;
1211   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1212     ac_prev=mandir ;;
1213   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1214     mandir=$ac_optarg ;;
1216   -nfp | --nfp | --nf)
1217     # Obsolete; use --without-fp.
1218     with_fp=no ;;
1220   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1221   | --no-cr | --no-c | -n)
1222     no_create=yes ;;
1224   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1225   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1226     no_recursion=yes ;;
1228   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1229   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1230   | --oldin | --oldi | --old | --ol | --o)
1231     ac_prev=oldincludedir ;;
1232   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1233   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1234   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1235     oldincludedir=$ac_optarg ;;
1237   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1238     ac_prev=prefix ;;
1239   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1240     prefix=$ac_optarg ;;
1242   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1243   | --program-pre | --program-pr | --program-p)
1244     ac_prev=program_prefix ;;
1245   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1246   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1247     program_prefix=$ac_optarg ;;
1249   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1250   | --program-suf | --program-su | --program-s)
1251     ac_prev=program_suffix ;;
1252   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1253   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1254     program_suffix=$ac_optarg ;;
1256   -program-transform-name | --program-transform-name \
1257   | --program-transform-nam | --program-transform-na \
1258   | --program-transform-n | --program-transform- \
1259   | --program-transform | --program-transfor \
1260   | --program-transfo | --program-transf \
1261   | --program-trans | --program-tran \
1262   | --progr-tra | --program-tr | --program-t)
1263     ac_prev=program_transform_name ;;
1264   -program-transform-name=* | --program-transform-name=* \
1265   | --program-transform-nam=* | --program-transform-na=* \
1266   | --program-transform-n=* | --program-transform-=* \
1267   | --program-transform=* | --program-transfor=* \
1268   | --program-transfo=* | --program-transf=* \
1269   | --program-trans=* | --program-tran=* \
1270   | --progr-tra=* | --program-tr=* | --program-t=*)
1271     program_transform_name=$ac_optarg ;;
1273   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1274     ac_prev=pdfdir ;;
1275   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1276     pdfdir=$ac_optarg ;;
1278   -psdir | --psdir | --psdi | --psd | --ps)
1279     ac_prev=psdir ;;
1280   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1281     psdir=$ac_optarg ;;
1283   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284   | -silent | --silent | --silen | --sile | --sil)
1285     silent=yes ;;
1287   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1288     ac_prev=sbindir ;;
1289   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1290   | --sbi=* | --sb=*)
1291     sbindir=$ac_optarg ;;
1293   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1294   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1295   | --sharedst | --shareds | --shared | --share | --shar \
1296   | --sha | --sh)
1297     ac_prev=sharedstatedir ;;
1298   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1299   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1300   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1301   | --sha=* | --sh=*)
1302     sharedstatedir=$ac_optarg ;;
1304   -site | --site | --sit)
1305     ac_prev=site ;;
1306   -site=* | --site=* | --sit=*)
1307     site=$ac_optarg ;;
1309   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1310     ac_prev=srcdir ;;
1311   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1312     srcdir=$ac_optarg ;;
1314   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1315   | --syscon | --sysco | --sysc | --sys | --sy)
1316     ac_prev=sysconfdir ;;
1317   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1318   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1319     sysconfdir=$ac_optarg ;;
1321   -target | --target | --targe | --targ | --tar | --ta | --t)
1322     ac_prev=target_alias ;;
1323   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1324     target_alias=$ac_optarg ;;
1326   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1327     verbose=yes ;;
1329   -version | --version | --versio | --versi | --vers | -V)
1330     ac_init_version=: ;;
1332   -with-* | --with-*)
1333     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1334     # Reject names that are not valid shell variable names.
1335     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336       { echo "$as_me: error: invalid package name: $ac_package" >&2
1337    { (exit 1); exit 1; }; }
1338     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1339     eval with_$ac_package=\$ac_optarg ;;
1341   -without-* | --without-*)
1342     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1343     # Reject names that are not valid shell variable names.
1344     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345       { echo "$as_me: error: invalid package name: $ac_package" >&2
1346    { (exit 1); exit 1; }; }
1347     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1348     eval with_$ac_package=no ;;
1350   --x)
1351     # Obsolete; use --with-x.
1352     with_x=yes ;;
1354   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1355   | --x-incl | --x-inc | --x-in | --x-i)
1356     ac_prev=x_includes ;;
1357   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1358   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1359     x_includes=$ac_optarg ;;
1361   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1362   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1363     ac_prev=x_libraries ;;
1364   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1365   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1366     x_libraries=$ac_optarg ;;
1368   -*) { echo "$as_me: error: unrecognized option: $ac_option
1369 Try \`$0 --help' for more information." >&2
1370    { (exit 1); exit 1; }; }
1371     ;;
1373   *=*)
1374     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375     # Reject names that are not valid shell variable names.
1376     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1377       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1378    { (exit 1); exit 1; }; }
1379     eval $ac_envvar=\$ac_optarg
1380     export $ac_envvar ;;
1382   *)
1383     # FIXME: should be removed in autoconf 3.0.
1384     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1385     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1386       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1387     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1388     ;;
1390   esac
1391 done
1393 if test -n "$ac_prev"; then
1394   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1395   { echo "$as_me: error: missing argument to $ac_option" >&2
1396    { (exit 1); exit 1; }; }
1397 fi
1399 # Be sure to have absolute directory names.
1400 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1401                 datadir sysconfdir sharedstatedir localstatedir includedir \
1402                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1403                 libdir localedir mandir
1404 do
1405   eval ac_val=\$$ac_var
1406   case $ac_val in
1407     [\\/$]* | ?:[\\/]* )  continue;;
1408     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1409   esac
1410   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1411    { (exit 1); exit 1; }; }
1412 done
1414 # There might be people who depend on the old broken behavior: `$host'
1415 # used to hold the argument of --host etc.
1416 # FIXME: To remove some day.
1417 build=$build_alias
1418 host=$host_alias
1419 target=$target_alias
1421 # FIXME: To remove some day.
1422 if test "x$host_alias" != x; then
1423   if test "x$build_alias" = x; then
1424     cross_compiling=maybe
1425     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1426     If a cross compiler is detected then cross compile mode will be used." >&2
1427   elif test "x$build_alias" != "x$host_alias"; then
1428     cross_compiling=yes
1429   fi
1430 fi
1432 ac_tool_prefix=
1433 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435 test "$silent" = yes && exec 6>/dev/null
1438 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1439 ac_ls_di=`ls -di .` &&
1440 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1441   { echo "$as_me: error: Working directory cannot be determined" >&2
1442    { (exit 1); exit 1; }; }
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444   { echo "$as_me: error: pwd does not report name of working directory" >&2
1445    { (exit 1); exit 1; }; }
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450   ac_srcdir_defaulted=yes
1451   # Try the directory containing this script, then the parent directory.
1452   ac_confdir=`$as_dirname -- "$0" ||
1453 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454          X"$0" : 'X\(//\)[^/]' \| \
1455          X"$0" : 'X\(//\)$' \| \
1456          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1457 echo X"$0" |
1458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459             s//\1/
1460             q
1461           }
1462           /^X\(\/\/\)[^/].*/{
1463             s//\1/
1464             q
1465           }
1466           /^X\(\/\/\)$/{
1467             s//\1/
1468             q
1469           }
1470           /^X\(\/\).*/{
1471             s//\1/
1472             q
1473           }
1474           s/.*/./; q'`
1475   srcdir=$ac_confdir
1476   if test ! -r "$srcdir/$ac_unique_file"; then
1477     srcdir=..
1478   fi
1479 else
1480   ac_srcdir_defaulted=no
1481 fi
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1485    { (exit 1); exit 1; }; }
1486 fi
1487 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 ac_abs_confdir=`(
1489         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1490    { (exit 1); exit 1; }; }
1491         pwd)`
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494   srcdir=.
1495 fi
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1499 case $srcdir in
1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501 esac
1502 for ac_var in $ac_precious_vars; do
1503   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504   eval ac_env_${ac_var}_value=\$${ac_var}
1505   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507 done
1510 # Report the --help message.
1512 if test "$ac_init_help" = "long"; then
1513   # Omit some internal or obsolete options to make the list less imposing.
1514   # This message is too long to be a string in the A/UX 3.1 sh.
1515   cat <<_ACEOF
1516 \`configure' configures rrdtool 1.3.7 to adapt to many kinds of systems.
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE.  See below for descriptions of some of the useful variables.
1523 Defaults for the options are specified in brackets.
1525 Configuration:
1526   -h, --help              display this help and exit
1527       --help=short        display options specific to this package
1528       --help=recursive    display the short help of all the included packages
1529   -V, --version           display version information and exit
1530   -q, --quiet, --silent   do not print \`checking...' messages
1531       --cache-file=FILE   cache test results in FILE [disabled]
1532   -C, --config-cache      alias for \`--cache-file=config.cache'
1533   -n, --no-create         do not create output files
1534       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1536 Installation directories:
1537   --prefix=PREFIX         install architecture-independent files in PREFIX
1538                           [$ac_default_prefix]
1539   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1540                           [PREFIX]
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1547 For better control, use the options below.
1549 Fine tuning of the installation directories:
1550   --bindir=DIR           user executables [EPREFIX/bin]
1551   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1552   --libexecdir=DIR       program executables [EPREFIX/libexec]
1553   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1554   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1555   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1556   --libdir=DIR           object code libraries [EPREFIX/lib]
1557   --includedir=DIR       C header files [PREFIX/include]
1558   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1559   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1560   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1561   --infodir=DIR          info documentation [DATAROOTDIR/info]
1562   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1563   --mandir=DIR           man documentation [DATAROOTDIR/man]
1564   --docdir=DIR           documentation root [DATAROOTDIR/doc/rrdtool]
1565   --htmldir=DIR          html documentation [DOCDIR]
1566   --dvidir=DIR           dvi documentation [DOCDIR]
1567   --pdfdir=DIR           pdf documentation [DOCDIR]
1568   --psdir=DIR            ps documentation [DOCDIR]
1569 _ACEOF
1571   cat <<\_ACEOF
1573 Program names:
1574   --program-prefix=PREFIX            prepend PREFIX to installed program names
1575   --program-suffix=SUFFIX            append SUFFIX to installed program names
1576   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1578 System types:
1579   --build=BUILD     configure for building on BUILD [guessed]
1580   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1581   --target=TARGET   configure for building compilers for TARGET [HOST]
1582 _ACEOF
1583 fi
1585 if test -n "$ac_init_help"; then
1586   case $ac_init_help in
1587      short | recursive ) echo "Configuration of rrdtool 1.3.7:";;
1588    esac
1589   cat <<\_ACEOF
1591 Optional Features:
1592   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1593   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1594   --enable-maintainer-mode  enable make rules and dependencies not useful
1595                           (and sometimes confusing) to the casual installer
1596   --disable-rrdcgi        disable building of rrdcgi
1597   --disable-mmap          disable mmap in rrd_update, use seek+write instead
1598   --disable-pthread       disable multithread support
1599   --enable-static-programs  Build static programs
1600   --disable-dependency-tracking  speeds up one-time build
1601   --enable-dependency-tracking   do not reject slow dependency extractors
1602   --enable-shared[=PKGS]  build shared libraries [default=yes]
1603   --enable-static[=PKGS]  build static libraries [default=yes]
1604   --enable-fast-install[=PKGS]
1605                           optimize for fast installation [default=yes]
1606   --disable-libtool-lock  avoid locking (might break parallel builds)
1607   --disable-libintl        i18n support (libintl)
1608   --disable-perl          do not build the perl modules
1609   --enable-perl-site-install   by default the rrdtool perl modules are installed
1610                           together with rrdtool in $prefix/lib/perl. You have to
1611                           put a 'use lib qw($prefix/lib/perl)' into your scripts
1612                           when you want to use them. When you set this option
1613                           the perl modules will get installed wherever
1614                           your perl setup thinks it is best.
1615   --disable-ruby          do not build the ruby modules
1616   --enable-ruby-site-install   by default the rrdtool ruby modules are installed
1617                           together with rrdtool in $prefix/lib/ruby. You have to
1618                           add $prefix/lib/ruby/$ruby_version/$sitearch to you $: variable
1619                           for ruby to find the RRD.so file.
1620   --disable-tcl           do not build the tcl modules
1621   --enable-tcl-site        install the tcl extension in the tcl tree
1622   --disable-python        do not build the python modules
1624 Optional Packages:
1625   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1626   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1627   --with-rrd-default-font=OPTIONS  set the full path to your default font.
1628   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1629   --with-pic              try to use only PIC/non-PIC objects [default=use
1630                           both]
1631   --with-tags[=TAGS]      include additional configurations [automatic]
1632   --with-perl-options=OPTIONS  options to pass on command-line when
1633                           generating Makefile from Makefile.PL. If you set this
1634                           option, interesting things may happen unless you know
1635                           what you are doing!
1636   --with-ruby-options=OPTIONS  options to pass on command-line when
1637                           generating Makefile from extconf.rb. If you set this
1638                           option, interesting things may happen unless you know
1639                           what you are doing!
1640   --with-tcllib=DIR       location of the tclConfig.sh
1642 Some influential environment variables:
1643   RRDGRAPH_YLEGEND_ANGLE
1644               Vertical label angle: -90.0 (default) or 90.0
1645   CC          C compiler command
1646   CFLAGS      C compiler flags
1647   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1648               nonstandard directory <lib dir>
1649   LIBS        libraries to pass to the linker, e.g. -l<library>
1650   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1651               you have headers in a nonstandard directory <include dir>
1652   CPP         C preprocessor
1653   CXX         C++ compiler command
1654   CXXFLAGS    C++ compiler flags
1655   CXXCPP      C++ preprocessor
1656   F77         Fortran 77 compiler command
1657   FFLAGS      Fortran 77 compiler flags
1658   PERLCC      [] C compiler for Perl modules
1659   PERLCCFLAGS [] CC flags for Perl modules
1660   PERLLD      [same], [as], [PERLCC] Linker for Perl modules
1661   PERLLDFLAGS [] LD flags for Perl modules
1662   RRDDOCDIR   [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1664 Use these variables to override the choices made by `configure' or to help
1665 it to find libraries and programs with nonstandard names/locations.
1667 _ACEOF
1668 ac_status=$?
1669 fi
1671 if test "$ac_init_help" = "recursive"; then
1672   # If there are subdirs, report their specific --help.
1673   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1674     test -d "$ac_dir" || continue
1675     ac_builddir=.
1677 case "$ac_dir" in
1678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1679 *)
1680   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1681   # A ".." for each directory in $ac_dir_suffix.
1682   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1683   case $ac_top_builddir_sub in
1684   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1686   esac ;;
1687 esac
1688 ac_abs_top_builddir=$ac_pwd
1689 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1690 # for backward compatibility:
1691 ac_top_builddir=$ac_top_build_prefix
1693 case $srcdir in
1694   .)  # We are building in place.
1695     ac_srcdir=.
1696     ac_top_srcdir=$ac_top_builddir_sub
1697     ac_abs_top_srcdir=$ac_pwd ;;
1698   [\\/]* | ?:[\\/]* )  # Absolute name.
1699     ac_srcdir=$srcdir$ac_dir_suffix;
1700     ac_top_srcdir=$srcdir
1701     ac_abs_top_srcdir=$srcdir ;;
1702   *) # Relative name.
1703     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1704     ac_top_srcdir=$ac_top_build_prefix$srcdir
1705     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1706 esac
1707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1709     cd "$ac_dir" || { ac_status=$?; continue; }
1710     # Check for guested configure.
1711     if test -f "$ac_srcdir/configure.gnu"; then
1712       echo &&
1713       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1714     elif test -f "$ac_srcdir/configure"; then
1715       echo &&
1716       $SHELL "$ac_srcdir/configure" --help=recursive
1717     else
1718       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1719     fi || ac_status=$?
1720     cd "$ac_pwd" || { ac_status=$?; break; }
1721   done
1722 fi
1724 test -n "$ac_init_help" && exit $ac_status
1725 if $ac_init_version; then
1726   cat <<\_ACEOF
1727 rrdtool configure 1.3.7
1728 generated by GNU Autoconf 2.61
1730 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1731 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1732 This configure script is free software; the Free Software Foundation
1733 gives unlimited permission to copy, distribute and modify it.
1734 _ACEOF
1735   exit
1736 fi
1737 cat >config.log <<_ACEOF
1738 This file contains any messages produced by compilers while
1739 running configure, to aid debugging if configure makes a mistake.
1741 It was created by rrdtool $as_me 1.3.7, which was
1742 generated by GNU Autoconf 2.61.  Invocation command line was
1744   $ $0 $@
1746 _ACEOF
1747 exec 5>>config.log
1749 cat <<_ASUNAME
1750 ## --------- ##
1751 ## Platform. ##
1752 ## --------- ##
1754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1761 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1763 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1764 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1766 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1767 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1768 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1769 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1771 _ASUNAME
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   echo "PATH: $as_dir"
1779 done
1780 IFS=$as_save_IFS
1782 } >&5
1784 cat >&5 <<_ACEOF
1787 ## ----------- ##
1788 ## Core tests. ##
1789 ## ----------- ##
1791 _ACEOF
1794 # Keep a trace of the command line.
1795 # Strip out --no-create and --no-recursion so they do not pile up.
1796 # Strip out --silent because we don't want to record it for future runs.
1797 # Also quote any args containing shell meta-characters.
1798 # Make two passes to allow for proper duplicate-argument suppression.
1799 ac_configure_args=
1800 ac_configure_args0=
1801 ac_configure_args1=
1802 ac_must_keep_next=false
1803 for ac_pass in 1 2
1804 do
1805   for ac_arg
1806   do
1807     case $ac_arg in
1808     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1809     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1810     | -silent | --silent | --silen | --sile | --sil)
1811       continue ;;
1812     *\'*)
1813       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1814     esac
1815     case $ac_pass in
1816     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1817     2)
1818       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1819       if test $ac_must_keep_next = true; then
1820         ac_must_keep_next=false # Got value, back to normal.
1821       else
1822         case $ac_arg in
1823           *=* | --config-cache | -C | -disable-* | --disable-* \
1824           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1825           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1826           | -with-* | --with-* | -without-* | --without-* | --x)
1827             case "$ac_configure_args0 " in
1828               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1829             esac
1830             ;;
1831           -* ) ac_must_keep_next=true ;;
1832         esac
1833       fi
1834       ac_configure_args="$ac_configure_args '$ac_arg'"
1835       ;;
1836     esac
1837   done
1838 done
1839 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1840 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1842 # When interrupted or exit'd, cleanup temporary files, and complete
1843 # config.log.  We remove comments because anyway the quotes in there
1844 # would cause problems or look ugly.
1845 # WARNING: Use '\'' to represent an apostrophe within the trap.
1846 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1847 trap 'exit_status=$?
1848   # Save into config.log some information that might help in debugging.
1849   {
1850     echo
1852     cat <<\_ASBOX
1853 ## ---------------- ##
1854 ## Cache variables. ##
1855 ## ---------------- ##
1856 _ASBOX
1857     echo
1858     # The following way of writing the cache mishandles newlines in values,
1860   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1861     eval ac_val=\$$ac_var
1862     case $ac_val in #(
1863     *${as_nl}*)
1864       case $ac_var in #(
1865       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1866 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1867       esac
1868       case $ac_var in #(
1869       _ | IFS | as_nl) ;; #(
1870       *) $as_unset $ac_var ;;
1871       esac ;;
1872     esac
1873   done
1874   (set) 2>&1 |
1875     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1876     *${as_nl}ac_space=\ *)
1877       sed -n \
1878         "s/'\''/'\''\\\\'\'''\''/g;
1879           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1880       ;; #(
1881     *)
1882       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1883       ;;
1884     esac |
1885     sort
1887     echo
1889     cat <<\_ASBOX
1890 ## ----------------- ##
1891 ## Output variables. ##
1892 ## ----------------- ##
1893 _ASBOX
1894     echo
1895     for ac_var in $ac_subst_vars
1896     do
1897       eval ac_val=\$$ac_var
1898       case $ac_val in
1899       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1900       esac
1901       echo "$ac_var='\''$ac_val'\''"
1902     done | sort
1903     echo
1905     if test -n "$ac_subst_files"; then
1906       cat <<\_ASBOX
1907 ## ------------------- ##
1908 ## File substitutions. ##
1909 ## ------------------- ##
1910 _ASBOX
1911       echo
1912       for ac_var in $ac_subst_files
1913       do
1914         eval ac_val=\$$ac_var
1915         case $ac_val in
1916         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1917         esac
1918         echo "$ac_var='\''$ac_val'\''"
1919       done | sort
1920       echo
1921     fi
1923     if test -s confdefs.h; then
1924       cat <<\_ASBOX
1925 ## ----------- ##
1926 ## confdefs.h. ##
1927 ## ----------- ##
1928 _ASBOX
1929       echo
1930       cat confdefs.h
1931       echo
1932     fi
1933     test "$ac_signal" != 0 &&
1934       echo "$as_me: caught signal $ac_signal"
1935     echo "$as_me: exit $exit_status"
1936   } >&5
1937   rm -f core *.core core.conftest.* &&
1938     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1939     exit $exit_status
1940 ' 0
1941 for ac_signal in 1 2 13 15; do
1942   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1943 done
1944 ac_signal=0
1946 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1947 rm -f -r conftest* confdefs.h
1949 # Predefined preprocessor variables.
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE_NAME "$PACKAGE_NAME"
1953 _ACEOF
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1958 _ACEOF
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1963 _ACEOF
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_STRING "$PACKAGE_STRING"
1968 _ACEOF
1971 cat >>confdefs.h <<_ACEOF
1972 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1973 _ACEOF
1976 # Let the site file select an alternate cache file if it wants to.
1977 # Prefer explicitly selected file to automatically selected ones.
1978 if test -n "$CONFIG_SITE"; then
1979   set x "$CONFIG_SITE"
1980 elif test "x$prefix" != xNONE; then
1981   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1982 else
1983   set x "$ac_default_prefix/share/config.site" \
1984         "$ac_default_prefix/etc/config.site"
1985 fi
1986 shift
1987 for ac_site_file
1988 do
1989   if test -r "$ac_site_file"; then
1990     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991 echo "$as_me: loading site script $ac_site_file" >&6;}
1992     sed 's/^/| /' "$ac_site_file" >&5
1993     . "$ac_site_file"
1994   fi
1995 done
1997 if test -r "$cache_file"; then
1998   # Some versions of bash will fail to source /dev/null (special
1999   # files actually), so we avoid doing that.
2000   if test -f "$cache_file"; then
2001     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002 echo "$as_me: loading cache $cache_file" >&6;}
2003     case $cache_file in
2004       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005       *)                      . "./$cache_file";;
2006     esac
2007   fi
2008 else
2009   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010 echo "$as_me: creating cache $cache_file" >&6;}
2011   >$cache_file
2012 fi
2014 # Check that the precious variables saved in the cache have kept the same
2015 # value.
2016 ac_cache_corrupted=false
2017 for ac_var in $ac_precious_vars; do
2018   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019   eval ac_new_set=\$ac_env_${ac_var}_set
2020   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021   eval ac_new_val=\$ac_env_${ac_var}_value
2022   case $ac_old_set,$ac_new_set in
2023     set,)
2024       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2026       ac_cache_corrupted=: ;;
2027     ,set)
2028       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2030       ac_cache_corrupted=: ;;
2031     ,);;
2032     *)
2033       if test "x$ac_old_val" != "x$ac_new_val"; then
2034         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2035 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2036         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2037 echo "$as_me:   former value:  $ac_old_val" >&2;}
2038         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2039 echo "$as_me:   current value: $ac_new_val" >&2;}
2040         ac_cache_corrupted=:
2041       fi;;
2042   esac
2043   # Pass precious variables to config.status.
2044   if test "$ac_new_set" = set; then
2045     case $ac_new_val in
2046     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2047     *) ac_arg=$ac_var=$ac_new_val ;;
2048     esac
2049     case " $ac_configure_args " in
2050       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2051       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2052     esac
2053   fi
2054 done
2055 if $ac_cache_corrupted; then
2056   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2057 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2058   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2059 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2087 ac_ext=c
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 NUMVERS=1.3007
2098 LIBVERS=4:6:0
2101 ac_aux_dir=
2102 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2103   if test -f "$ac_dir/install-sh"; then
2104     ac_aux_dir=$ac_dir
2105     ac_install_sh="$ac_aux_dir/install-sh -c"
2106     break
2107   elif test -f "$ac_dir/install.sh"; then
2108     ac_aux_dir=$ac_dir
2109     ac_install_sh="$ac_aux_dir/install.sh -c"
2110     break
2111   elif test -f "$ac_dir/shtool"; then
2112     ac_aux_dir=$ac_dir
2113     ac_install_sh="$ac_aux_dir/shtool install -c"
2114     break
2115   fi
2116 done
2117 if test -z "$ac_aux_dir"; then
2118   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2119 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2123 # These three variables are undocumented and unsupported,
2124 # and are intended to be withdrawn in a future Autoconf release.
2125 # They can cause serious problems if a builder's source tree is in a directory
2126 # whose full name contains unusual characters.
2127 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2128 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2129 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2132 # Make sure we can run config.sub.
2133 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2134   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2135 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2136    { (exit 1); exit 1; }; }
2138 { echo "$as_me:$LINENO: checking build system type" >&5
2139 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2140 if test "${ac_cv_build+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   ac_build_alias=$build_alias
2144 test "x$ac_build_alias" = x &&
2145   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2146 test "x$ac_build_alias" = x &&
2147   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2148 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2149    { (exit 1); exit 1; }; }
2150 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2151   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2152 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2153    { (exit 1); exit 1; }; }
2155 fi
2156 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2157 echo "${ECHO_T}$ac_cv_build" >&6; }
2158 case $ac_cv_build in
2159 *-*-*) ;;
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2161 echo "$as_me: error: invalid value of canonical build" >&2;}
2162    { (exit 1); exit 1; }; };;
2163 esac
2164 build=$ac_cv_build
2165 ac_save_IFS=$IFS; IFS='-'
2166 set x $ac_cv_build
2167 shift
2168 build_cpu=$1
2169 build_vendor=$2
2170 shift; shift
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2173 build_os=$*
2174 IFS=$ac_save_IFS
2175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2178 { echo "$as_me:$LINENO: checking host system type" >&5
2179 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2180 if test "${ac_cv_host+set}" = set; then
2181   echo $ECHO_N "(cached) $ECHO_C" >&6
2182 else
2183   if test "x$host_alias" = x; then
2184   ac_cv_host=$ac_cv_build
2185 else
2186   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2187     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2188 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2189    { (exit 1); exit 1; }; }
2190 fi
2192 fi
2193 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2194 echo "${ECHO_T}$ac_cv_host" >&6; }
2195 case $ac_cv_host in
2196 *-*-*) ;;
2197 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2198 echo "$as_me: error: invalid value of canonical host" >&2;}
2199    { (exit 1); exit 1; }; };;
2200 esac
2201 host=$ac_cv_host
2202 ac_save_IFS=$IFS; IFS='-'
2203 set x $ac_cv_host
2204 shift
2205 host_cpu=$1
2206 host_vendor=$2
2207 shift; shift
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2210 host_os=$*
2211 IFS=$ac_save_IFS
2212 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2215 { echo "$as_me:$LINENO: checking target system type" >&5
2216 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2217 if test "${ac_cv_target+set}" = set; then
2218   echo $ECHO_N "(cached) $ECHO_C" >&6
2219 else
2220   if test "x$target_alias" = x; then
2221   ac_cv_target=$ac_cv_host
2222 else
2223   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2224     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2225 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2226    { (exit 1); exit 1; }; }
2227 fi
2229 fi
2230 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2231 echo "${ECHO_T}$ac_cv_target" >&6; }
2232 case $ac_cv_target in
2233 *-*-*) ;;
2234 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2235 echo "$as_me: error: invalid value of canonical target" >&2;}
2236    { (exit 1); exit 1; }; };;
2237 esac
2238 target=$ac_cv_target
2239 ac_save_IFS=$IFS; IFS='-'
2240 set x $ac_cv_target
2241 shift
2242 target_cpu=$1
2243 target_vendor=$2
2244 shift; shift
2245 # Remember, the first character of IFS is used to create $*,
2246 # except with old shells:
2247 target_os=$*
2248 IFS=$ac_save_IFS
2249 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2252 # The aliases save the names the user supplied, while $host etc.
2253 # will get canonicalized.
2254 test -n "$target_alias" &&
2255   test "$program_prefix$program_suffix$program_transform_name" = \
2256     NONENONEs,x,x, &&
2257   program_prefix=${target_alias}-
2258 am__api_version="1.9"
2259 # Find a good install program.  We prefer a C program (faster),
2260 # so one script is as good as another.  But avoid the broken or
2261 # incompatible versions:
2262 # SysV /etc/install, /usr/sbin/install
2263 # SunOS /usr/etc/install
2264 # IRIX /sbin/install
2265 # AIX /bin/install
2266 # AmigaOS /C/install, which installs bootblocks on floppy discs
2267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2270 # OS/2's system install, which has a completely different semantic
2271 # ./install, which can be erroneously created by make from ./install.sh.
2272 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2274 if test -z "$INSTALL"; then
2275 if test "${ac_cv_path_install+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   # Account for people who put trailing slashes in PATH elements.
2284 case $as_dir/ in
2285   ./ | .// | /cC/* | \
2286   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2287   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2288   /usr/ucb/* ) ;;
2289   *)
2290     # OSF1 and SCO ODT 3.0 have their own names for install.
2291     # Don't use installbsd from OSF since it installs stuff as root
2292     # by default.
2293     for ac_prog in ginstall scoinst install; do
2294       for ac_exec_ext in '' $ac_executable_extensions; do
2295         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2296           if test $ac_prog = install &&
2297             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2298             # AIX install.  It has an incompatible calling convention.
2299             :
2300           elif test $ac_prog = install &&
2301             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2302             # program-specific install script used by HP pwplus--don't use.
2303             :
2304           else
2305             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2306             break 3
2307           fi
2308         fi
2309       done
2310     done
2311     ;;
2312 esac
2313 done
2314 IFS=$as_save_IFS
2317 fi
2318   if test "${ac_cv_path_install+set}" = set; then
2319     INSTALL=$ac_cv_path_install
2320   else
2321     # As a last resort, use the slow shell script.  Don't cache a
2322     # value for INSTALL within a source directory, because that will
2323     # break other packages using the cache if that directory is
2324     # removed, or if the value is a relative name.
2325     INSTALL=$ac_install_sh
2326   fi
2327 fi
2328 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2329 echo "${ECHO_T}$INSTALL" >&6; }
2331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2332 # It thinks the first close brace ends the variable substitution.
2333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2339 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2340 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2341 # Just in case
2342 sleep 1
2343 echo timestamp > conftest.file
2344 # Do `set' in a subshell so we don't clobber the current shell's
2345 # arguments.  Must try -L first in case configure is actually a
2346 # symlink; some systems play weird games with the mod time of symlinks
2347 # (eg FreeBSD returns the mod time of the symlink's containing
2348 # directory).
2349 if (
2350    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2351    if test "$*" = "X"; then
2352       # -L didn't work.
2353       set X `ls -t $srcdir/configure conftest.file`
2354    fi
2355    rm -f conftest.file
2356    if test "$*" != "X $srcdir/configure conftest.file" \
2357       && test "$*" != "X conftest.file $srcdir/configure"; then
2359       # If neither matched, then we have a broken ls.  This can happen
2360       # if, for instance, CONFIG_SHELL is bash and it inherits a
2361       # broken ls alias from the environment.  This has actually
2362       # happened.  Such a system could not be considered "sane".
2363       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2364 alias in your environment" >&5
2365 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2366 alias in your environment" >&2;}
2367    { (exit 1); exit 1; }; }
2368    fi
2370    test "$2" = conftest.file
2371    )
2372 then
2373    # Ok.
2374    :
2375 else
2376    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2377 Check your system clock" >&5
2378 echo "$as_me: error: newly created file is older than distributed files!
2379 Check your system clock" >&2;}
2380    { (exit 1); exit 1; }; }
2381 fi
2382 { echo "$as_me:$LINENO: result: yes" >&5
2383 echo "${ECHO_T}yes" >&6; }
2384 test "$program_prefix" != NONE &&
2385   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2386 # Use a double $ so make ignores it.
2387 test "$program_suffix" != NONE &&
2388   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2389 # Double any \ or $.  echo might interpret backslashes.
2390 # By default was `s,x,x', remove it if useless.
2391 cat <<\_ACEOF >conftest.sed
2392 s/[\\$]/&&/g;s/;s,x,x,$//
2393 _ACEOF
2394 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2395 rm -f conftest.sed
2397 # expand $ac_aux_dir to an absolute path
2398 am_aux_dir=`cd $ac_aux_dir && pwd`
2400 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2401 # Use eval to expand $SHELL
2402 if eval "$MISSING --run true"; then
2403   am_missing_run="$MISSING --run "
2404 else
2405   am_missing_run=
2406   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2407 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2408 fi
2410 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2411   # We used to keeping the `.' as first argument, in order to
2412   # allow $(mkdir_p) to be used without argument.  As in
2413   #   $(mkdir_p) $(somedir)
2414   # where $(somedir) is conditionally defined.  However this is wrong
2415   # for two reasons:
2416   #  1. if the package is installed by a user who cannot write `.'
2417   #     make install will fail,
2418   #  2. the above comment should most certainly read
2419   #     $(mkdir_p) $(DESTDIR)$(somedir)
2420   #     so it does not work when $(somedir) is undefined and
2421   #     $(DESTDIR) is not.
2422   #  To support the latter case, we have to write
2423   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2424   #  so the `.' trick is pointless.
2425   mkdir_p='mkdir -p --'
2426 else
2427   # On NextStep and OpenStep, the `mkdir' command does not
2428   # recognize any option.  It will interpret all options as
2429   # directories to create, and then abort because `.' already
2430   # exists.
2431   for d in ./-p ./--version;
2432   do
2433     test -d $d && rmdir $d
2434   done
2435   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2436   if test -f "$ac_aux_dir/mkinstalldirs"; then
2437     mkdir_p='$(mkinstalldirs)'
2438   else
2439     mkdir_p='$(install_sh) -d'
2440   fi
2441 fi
2443 for ac_prog in gawk mawk nawk awk
2444 do
2445   # Extract the first word of "$ac_prog", so it can be a program name with args.
2446 set dummy $ac_prog; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_AWK+set}" = set; then
2450   echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452   if test -n "$AWK"; then
2453   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458   IFS=$as_save_IFS
2459   test -z "$as_dir" && as_dir=.
2460   for ac_exec_ext in '' $ac_executable_extensions; do
2461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462     ac_cv_prog_AWK="$ac_prog"
2463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464     break 2
2465   fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2470 fi
2471 fi
2472 AWK=$ac_cv_prog_AWK
2473 if test -n "$AWK"; then
2474   { echo "$as_me:$LINENO: result: $AWK" >&5
2475 echo "${ECHO_T}$AWK" >&6; }
2476 else
2477   { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2479 fi
2482   test -n "$AWK" && break
2483 done
2485 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2486 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2487 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2488 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2489   echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491   cat >conftest.make <<\_ACEOF
2492 SHELL = /bin/sh
2493 all:
2494         @echo '@@@%%%=$(MAKE)=@@@%%%'
2495 _ACEOF
2496 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2497 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2498   *@@@%%%=?*=@@@%%%*)
2499     eval ac_cv_prog_make_${ac_make}_set=yes;;
2500   *)
2501     eval ac_cv_prog_make_${ac_make}_set=no;;
2502 esac
2503 rm -f conftest.make
2504 fi
2505 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2506   { echo "$as_me:$LINENO: result: yes" >&5
2507 echo "${ECHO_T}yes" >&6; }
2508   SET_MAKE=
2509 else
2510   { echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6; }
2512   SET_MAKE="MAKE=${MAKE-make}"
2513 fi
2515 rm -rf .tst 2>/dev/null
2516 mkdir .tst 2>/dev/null
2517 if test -d .tst; then
2518   am__leading_dot=.
2519 else
2520   am__leading_dot=_
2521 fi
2522 rmdir .tst 2>/dev/null
2524 # test to see if srcdir already configured
2525 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2526    test -f $srcdir/config.status; then
2527   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2528 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2529    { (exit 1); exit 1; }; }
2530 fi
2532 # test whether we have cygpath
2533 if test -z "$CYGPATH_W"; then
2534   if (cygpath --version) >/dev/null 2>/dev/null; then
2535     CYGPATH_W='cygpath -w'
2536   else
2537     CYGPATH_W=echo
2538   fi
2539 fi
2542 # Define the identity of the package.
2543  PACKAGE='rrdtool'
2544  VERSION='1.3.7'
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE "$PACKAGE"
2549 _ACEOF
2552 cat >>confdefs.h <<_ACEOF
2553 #define VERSION "$VERSION"
2554 _ACEOF
2556 # Some tools Automake needs.
2558 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2561 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2564 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2567 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2570 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2572 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2574 # Installed binaries are usually stripped using `strip' when the user
2575 # run `make install-strip'.  However `strip' might not be the right
2576 # tool to use in cross-compilation environments, therefore Automake
2577 # will honor the `STRIP' environment variable to overrule this program.
2578 if test "$cross_compiling" != no; then
2579   if test -n "$ac_tool_prefix"; then
2580   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2581 set dummy ${ac_tool_prefix}strip; ac_word=$2
2582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2584 if test "${ac_cv_prog_STRIP+set}" = set; then
2585   echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587   if test -n "$STRIP"; then
2588   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2592 do
2593   IFS=$as_save_IFS
2594   test -z "$as_dir" && as_dir=.
2595   for ac_exec_ext in '' $ac_executable_extensions; do
2596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2597     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2599     break 2
2600   fi
2601 done
2602 done
2603 IFS=$as_save_IFS
2605 fi
2606 fi
2607 STRIP=$ac_cv_prog_STRIP
2608 if test -n "$STRIP"; then
2609   { echo "$as_me:$LINENO: result: $STRIP" >&5
2610 echo "${ECHO_T}$STRIP" >&6; }
2611 else
2612   { echo "$as_me:$LINENO: result: no" >&5
2613 echo "${ECHO_T}no" >&6; }
2614 fi
2617 fi
2618 if test -z "$ac_cv_prog_STRIP"; then
2619   ac_ct_STRIP=$STRIP
2620   # Extract the first word of "strip", so it can be a program name with args.
2621 set dummy strip; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2625   echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627   if test -n "$ac_ct_STRIP"; then
2628   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635   for ac_exec_ext in '' $ac_executable_extensions; do
2636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637     ac_cv_prog_ac_ct_STRIP="strip"
2638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639     break 2
2640   fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2645 fi
2646 fi
2647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2648 if test -n "$ac_ct_STRIP"; then
2649   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2650 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2651 else
2652   { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2654 fi
2656   if test "x$ac_ct_STRIP" = x; then
2657     STRIP=":"
2658   else
2659     case $cross_compiling:$ac_tool_warned in
2660 yes:)
2661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2662 whose name does not start with the host triplet.  If you think this
2663 configuration is useful to you, please write to autoconf@gnu.org." >&5
2664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet.  If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2667 ac_tool_warned=yes ;;
2668 esac
2669     STRIP=$ac_ct_STRIP
2670   fi
2671 else
2672   STRIP="$ac_cv_prog_STRIP"
2673 fi
2675 fi
2676 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2678 # We need awk for the "check" target.  The system "awk" is bad on
2679 # some platforms.
2680 # Always define AMTAR for backward compatibility.
2682 AMTAR=${AMTAR-"${am_missing_run}tar"}
2684 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2690 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2691 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2692     # Check whether --enable-maintainer-mode was given.
2693 if test "${enable_maintainer_mode+set}" = set; then
2694   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2695 else
2696   USE_MAINTAINER_MODE=no
2697 fi
2699   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2700 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2703 if test $USE_MAINTAINER_MODE = yes; then
2704   MAINTAINER_MODE_TRUE=
2705   MAINTAINER_MODE_FALSE='#'
2706 else
2707   MAINTAINER_MODE_TRUE='#'
2708   MAINTAINER_MODE_FALSE=
2709 fi
2711   MAINT=$MAINTAINER_MODE_TRUE
2716 ac_config_headers="$ac_config_headers rrd_config.h"
2738 cat >>confdefs.h <<_ACEOF
2739 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
2740 _ACEOF
2743 # Check whether --enable-rrdcgi was given.
2744 if test "${enable_rrdcgi+set}" = set; then
2745   enableval=$enable_rrdcgi;
2746 else
2747   enable_rrdcgi=yes
2748 fi
2752 # Check whether --with-rrd-default-font was given.
2753 if test "${with_rrd_default_font+set}" = set; then
2754   withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
2755 else
2757   if test -d ${WINDIR:-nodir}/cour.ttf ; then
2758         RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
2759   else
2760         RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
2761   fi
2763 fi
2766 # Check whether --enable-mmap was given.
2767 if test "${enable_mmap+set}" = set; then
2768   enableval=$enable_mmap;
2769 else
2770   enable_mmap=yes
2771 fi
2774 # Check whether --enable-pthread was given.
2775 if test "${enable_pthread+set}" = set; then
2776   enableval=$enable_pthread;
2777 else
2778   enable_pthread=yes
2779 fi
2782 # Check whether --enable-static-programs was given.
2783 if test "${enable_static_programs+set}" = set; then
2784   enableval=$enable_static_programs; case "${enableval}" in
2785        yes) staticprogs=yes ;;
2786        no)  staticprogs=no ;;
2787        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
2788 echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
2789    { (exit 1); exit 1; }; } ;;
2790      esac
2791 else
2792   staticprogs=no
2793 fi
2797 if test "x$staticprogs" = "xyes"; then
2798   STATIC_PROGRAMS_TRUE=
2799   STATIC_PROGRAMS_FALSE='#'
2800 else
2801   STATIC_PROGRAMS_TRUE='#'
2802   STATIC_PROGRAMS_FALSE=
2803 fi
2808 case $TERM in
2809        #   for the most important terminal types we directly know the sequences
2810        xterm|xterm*|vt220|vt220*)
2811                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2812                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2813        ;;
2814        vt100|vt100*|cygwin)
2815                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
2816                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
2817        ;;
2818        *)
2819                T_MD=''
2820                T_ME=''
2821        ;;
2822 esac
2823   { echo "$as_me:$LINENO: result: " >&5
2824 echo "${ECHO_T}" >&6; }
2825   { echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
2826 echo "${ECHO_T}${T_MD}Audit Compilation Environment${T_ME}" >&6; }
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 if test -n "$ac_tool_prefix"; then
2836   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841   echo $ECHO_N "(cached) $ECHO_C" >&6
2842 else
2843   if test -n "$CC"; then
2844   ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851   for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2861 fi
2862 fi
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865   { echo "$as_me:$LINENO: result: $CC" >&5
2866 echo "${ECHO_T}$CC" >&6; }
2867 else
2868   { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2870 fi
2873 fi
2874 if test -z "$ac_cv_prog_CC"; then
2875   ac_ct_CC=$CC
2876   # Extract the first word of "gcc", so it can be a program name with args.
2877 set dummy gcc; ac_word=$2
2878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2881   echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883   if test -n "$ac_ct_CC"; then
2884   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889   IFS=$as_save_IFS
2890   test -z "$as_dir" && as_dir=.
2891   for ac_exec_ext in '' $ac_executable_extensions; do
2892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893     ac_cv_prog_ac_ct_CC="gcc"
2894     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895     break 2
2896   fi
2897 done
2898 done
2899 IFS=$as_save_IFS
2901 fi
2902 fi
2903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904 if test -n "$ac_ct_CC"; then
2905   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2906 echo "${ECHO_T}$ac_ct_CC" >&6; }
2907 else
2908   { echo "$as_me:$LINENO: result: no" >&5
2909 echo "${ECHO_T}no" >&6; }
2910 fi
2912   if test "x$ac_ct_CC" = x; then
2913     CC=""
2914   else
2915     case $cross_compiling:$ac_tool_warned in
2916 yes:)
2917 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2918 whose name does not start with the host triplet.  If you think this
2919 configuration is useful to you, please write to autoconf@gnu.org." >&5
2920 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2921 whose name does not start with the host triplet.  If you think this
2922 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2923 ac_tool_warned=yes ;;
2924 esac
2925     CC=$ac_ct_CC
2926   fi
2927 else
2928   CC="$ac_cv_prog_CC"
2929 fi
2931 if test -z "$CC"; then
2932           if test -n "$ac_tool_prefix"; then
2933     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}cc; ac_word=$2
2935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2937 if test "${ac_cv_prog_CC+set}" = set; then
2938   echo $ECHO_N "(cached) $ECHO_C" >&6
2939 else
2940   if test -n "$CC"; then
2941   ac_cv_prog_CC="$CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2945 do
2946   IFS=$as_save_IFS
2947   test -z "$as_dir" && as_dir=.
2948   for ac_exec_ext in '' $ac_executable_extensions; do
2949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950     ac_cv_prog_CC="${ac_tool_prefix}cc"
2951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2952     break 2
2953   fi
2954 done
2955 done
2956 IFS=$as_save_IFS
2958 fi
2959 fi
2960 CC=$ac_cv_prog_CC
2961 if test -n "$CC"; then
2962   { echo "$as_me:$LINENO: result: $CC" >&5
2963 echo "${ECHO_T}$CC" >&6; }
2964 else
2965   { echo "$as_me:$LINENO: result: no" >&5
2966 echo "${ECHO_T}no" >&6; }
2967 fi
2970   fi
2971 fi
2972 if test -z "$CC"; then
2973   # Extract the first word of "cc", so it can be a program name with args.
2974 set dummy cc; ac_word=$2
2975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2977 if test "${ac_cv_prog_CC+set}" = set; then
2978   echo $ECHO_N "(cached) $ECHO_C" >&6
2979 else
2980   if test -n "$CC"; then
2981   ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983   ac_prog_rejected=no
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989   for ac_exec_ext in '' $ac_executable_extensions; do
2990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2992        ac_prog_rejected=yes
2993        continue
2994      fi
2995     ac_cv_prog_CC="cc"
2996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997     break 2
2998   fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3003 if test $ac_prog_rejected = yes; then
3004   # We found a bogon in the path, so make sure we never use it.
3005   set dummy $ac_cv_prog_CC
3006   shift
3007   if test $# != 0; then
3008     # We chose a different compiler from the bogus one.
3009     # However, it has the same basename, so the bogon will be chosen
3010     # first if we set CC to just the basename; use the full file name.
3011     shift
3012     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3013   fi
3014 fi
3015 fi
3016 fi
3017 CC=$ac_cv_prog_CC
3018 if test -n "$CC"; then
3019   { echo "$as_me:$LINENO: result: $CC" >&5
3020 echo "${ECHO_T}$CC" >&6; }
3021 else
3022   { echo "$as_me:$LINENO: result: no" >&5
3023 echo "${ECHO_T}no" >&6; }
3024 fi
3027 fi
3028 if test -z "$CC"; then
3029   if test -n "$ac_tool_prefix"; then
3030   for ac_prog in cl.exe
3031   do
3032     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3036 if test "${ac_cv_prog_CC+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   if test -n "$CC"; then
3040   ac_cv_prog_CC="$CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047   for ac_exec_ext in '' $ac_executable_extensions; do
3048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051     break 2
3052   fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061   { echo "$as_me:$LINENO: result: $CC" >&5
3062 echo "${ECHO_T}$CC" >&6; }
3063 else
3064   { echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6; }
3066 fi
3069     test -n "$CC" && break
3070   done
3071 fi
3072 if test -z "$CC"; then
3073   ac_ct_CC=$CC
3074   for ac_prog in cl.exe
3075 do
3076   # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3081   echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083   if test -n "$ac_ct_CC"; then
3084   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3088 do
3089   IFS=$as_save_IFS
3090   test -z "$as_dir" && as_dir=.
3091   for ac_exec_ext in '' $ac_executable_extensions; do
3092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093     ac_cv_prog_ac_ct_CC="$ac_prog"
3094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3101 fi
3102 fi
3103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104 if test -n "$ac_ct_CC"; then
3105   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3106 echo "${ECHO_T}$ac_ct_CC" >&6; }
3107 else
3108   { echo "$as_me:$LINENO: result: no" >&5
3109 echo "${ECHO_T}no" >&6; }
3110 fi
3113   test -n "$ac_ct_CC" && break
3114 done
3116   if test "x$ac_ct_CC" = x; then
3117     CC=""
3118   else
3119     case $cross_compiling:$ac_tool_warned in
3120 yes:)
3121 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3122 whose name does not start with the host triplet.  If you think this
3123 configuration is useful to you, please write to autoconf@gnu.org." >&5
3124 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3125 whose name does not start with the host triplet.  If you think this
3126 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3127 ac_tool_warned=yes ;;
3128 esac
3129     CC=$ac_ct_CC
3130   fi
3131 fi
3133 fi
3136 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: no acceptable C compiler found in \$PATH
3139 See \`config.log' for more details." >&2;}
3140    { (exit 1); exit 1; }; }
3142 # Provide some information about the compiler.
3143 echo "$as_me:$LINENO: checking for C compiler version" >&5
3144 ac_compiler=`set X $ac_compile; echo $2`
3145 { (ac_try="$ac_compiler --version >&5"
3146 case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_compiler --version >&5") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }
3155 { (ac_try="$ac_compiler -v >&5"
3156 case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_compiler -v >&5") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }
3165 { (ac_try="$ac_compiler -V >&5"
3166 case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_compiler -V >&5") 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }
3176 cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3183 int
3184 main ()
3187   ;
3188   return 0;
3190 _ACEOF
3191 ac_clean_files_save=$ac_clean_files
3192 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3193 # Try to create an executable without -o first, disregard a.out.
3194 # It will help us diagnose broken compilers, and finding out an intuition
3195 # of exeext.
3196 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3197 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3198 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3200 # List of possible output files, starting from the most likely.
3201 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3202 # only as a last resort.  b.out is created by i960 compilers.
3203 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3205 # The IRIX 6 linker writes into existing files which may not be
3206 # executable, retaining their permissions.  Remove them first so a
3207 # subsequent execution test works.
3208 ac_rmfiles=
3209 for ac_file in $ac_files
3210 do
3211   case $ac_file in
3212     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3213     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3214   esac
3215 done
3216 rm -f $ac_rmfiles
3218 if { (ac_try="$ac_link_default"
3219 case "(($ac_try" in
3220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221   *) ac_try_echo=$ac_try;;
3222 esac
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224   (eval "$ac_link_default") 2>&5
3225   ac_status=$?
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); }; then
3228   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3229 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3230 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3231 # so that the user can short-circuit this test for compilers unknown to
3232 # Autoconf.
3233 for ac_file in $ac_files ''
3234 do
3235   test -f "$ac_file" || continue
3236   case $ac_file in
3237     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3238         ;;
3239     [ab].out )
3240         # We found the default executable, but exeext='' is most
3241         # certainly right.
3242         break;;
3243     *.* )
3244         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3245         then :; else
3246            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247         fi
3248         # We set ac_cv_exeext here because the later test for it is not
3249         # safe: cross compilers may not add the suffix if given an `-o'
3250         # argument, so we may need to know it at that point already.
3251         # Even if this section looks crufty: it has the advantage of
3252         # actually working.
3253         break;;
3254     * )
3255         break;;
3256   esac
3257 done
3258 test "$ac_cv_exeext" = no && ac_cv_exeext=
3260 else
3261   ac_file=''
3262 fi
3264 { echo "$as_me:$LINENO: result: $ac_file" >&5
3265 echo "${ECHO_T}$ac_file" >&6; }
3266 if test -z "$ac_file"; then
3267   echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3270 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3271 See \`config.log' for more details." >&5
3272 echo "$as_me: error: C compiler cannot create executables
3273 See \`config.log' for more details." >&2;}
3274    { (exit 77); exit 77; }; }
3275 fi
3277 ac_exeext=$ac_cv_exeext
3279 # Check that the compiler produces executables we can run.  If not, either
3280 # the compiler is broken, or we cross compile.
3281 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3282 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3283 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3284 # If not cross compiling, check that we can run a simple program.
3285 if test "$cross_compiling" != yes; then
3286   if { ac_try='./$ac_file'
3287   { (case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292   (eval "$ac_try") 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); }; }; then
3296     cross_compiling=no
3297   else
3298     if test "$cross_compiling" = maybe; then
3299         cross_compiling=yes
3300     else
3301         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3302 If you meant to cross compile, use \`--host'.
3303 See \`config.log' for more details." >&5
3304 echo "$as_me: error: cannot run C compiled programs.
3305 If you meant to cross compile, use \`--host'.
3306 See \`config.log' for more details." >&2;}
3307    { (exit 1); exit 1; }; }
3308     fi
3309   fi
3310 fi
3311 { echo "$as_me:$LINENO: result: yes" >&5
3312 echo "${ECHO_T}yes" >&6; }
3314 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3315 ac_clean_files=$ac_clean_files_save
3316 # Check that the compiler produces executables we can run.  If not, either
3317 # the compiler is broken, or we cross compile.
3318 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3319 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3320 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3321 echo "${ECHO_T}$cross_compiling" >&6; }
3323 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3324 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3325 if { (ac_try="$ac_link"
3326 case "(($ac_try" in
3327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328   *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331   (eval "$ac_link") 2>&5
3332   ac_status=$?
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); }; then
3335   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3336 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3337 # work properly (i.e., refer to `conftest.exe'), while it won't with
3338 # `rm'.
3339 for ac_file in conftest.exe conftest conftest.*; do
3340   test -f "$ac_file" || continue
3341   case $ac_file in
3342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3343     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3344           break;;
3345     * ) break;;
3346   esac
3347 done
3348 else
3349   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3350 See \`config.log' for more details." >&5
3351 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3352 See \`config.log' for more details." >&2;}
3353    { (exit 1); exit 1; }; }
3354 fi
3356 rm -f conftest$ac_cv_exeext
3357 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3358 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3360 rm -f conftest.$ac_ext
3361 EXEEXT=$ac_cv_exeext
3362 ac_exeext=$EXEEXT
3363 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3364 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3365 if test "${ac_cv_objext+set}" = set; then
3366   echo $ECHO_N "(cached) $ECHO_C" >&6
3367 else
3368   cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h.  */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h.  */
3375 int
3376 main ()
3379   ;
3380   return 0;
3382 _ACEOF
3383 rm -f conftest.o conftest.obj
3384 if { (ac_try="$ac_compile"
3385 case "(($ac_try" in
3386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387   *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390   (eval "$ac_compile") 2>&5
3391   ac_status=$?
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); }; then
3394   for ac_file in conftest.o conftest.obj conftest.*; do
3395   test -f "$ac_file" || continue;
3396   case $ac_file in
3397     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3398     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3399        break;;
3400   esac
3401 done
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3407 See \`config.log' for more details." >&5
3408 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3409 See \`config.log' for more details." >&2;}
3410    { (exit 1); exit 1; }; }
3411 fi
3413 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3414 fi
3415 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3416 echo "${ECHO_T}$ac_cv_objext" >&6; }
3417 OBJEXT=$ac_cv_objext
3418 ac_objext=$OBJEXT
3419 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3420 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3421 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3431 int
3432 main ()
3434 #ifndef __GNUC__
3435        choke me
3436 #endif
3438   ;
3439   return 0;
3441 _ACEOF
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3444 case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449   (eval "$ac_compile") 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } && {
3456          test -z "$ac_c_werror_flag" ||
3457          test ! -s conftest.err
3458        } && test -s conftest.$ac_objext; then
3459   ac_compiler_gnu=yes
3460 else
3461   echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464         ac_compiler_gnu=no
3465 fi
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3470 fi
3471 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3472 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3473 GCC=`test $ac_compiler_gnu = yes && echo yes`
3474 ac_test_CFLAGS=${CFLAGS+set}
3475 ac_save_CFLAGS=$CFLAGS
3476 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3477 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3478 if test "${ac_cv_prog_cc_g+set}" = set; then
3479   echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481   ac_save_c_werror_flag=$ac_c_werror_flag
3482    ac_c_werror_flag=yes
3483    ac_cv_prog_cc_g=no
3484    CFLAGS="-g"
3485    cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3492 int
3493 main ()
3496   ;
3497   return 0;
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3502 case "(($ac_try" in
3503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504   *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507   (eval "$ac_compile") 2>conftest.er1
3508   ac_status=$?
3509   grep -v '^ *+' conftest.er1 >conftest.err
3510   rm -f conftest.er1
3511   cat conftest.err >&5
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } && {
3514          test -z "$ac_c_werror_flag" ||
3515          test ! -s conftest.err
3516        } && test -s conftest.$ac_objext; then
3517   ac_cv_prog_cc_g=yes
3518 else
3519   echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522         CFLAGS=""
3523       cat >conftest.$ac_ext <<_ACEOF
3524 /* confdefs.h.  */
3525 _ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h.  */
3530 int
3531 main ()
3534   ;
3535   return 0;
3537 _ACEOF
3538 rm -f conftest.$ac_objext
3539 if { (ac_try="$ac_compile"
3540 case "(($ac_try" in
3541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542   *) ac_try_echo=$ac_try;;
3543 esac
3544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3545   (eval "$ac_compile") 2>conftest.er1
3546   ac_status=$?
3547   grep -v '^ *+' conftest.er1 >conftest.err
3548   rm -f conftest.er1
3549   cat conftest.err >&5
3550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); } && {
3552          test -z "$ac_c_werror_flag" ||
3553          test ! -s conftest.err
3554        } && test -s conftest.$ac_objext; then
3555   :
3556 else
3557   echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560         ac_c_werror_flag=$ac_save_c_werror_flag
3561          CFLAGS="-g"
3562          cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h.  */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h.  */
3569 int
3570 main ()
3573   ;
3574   return 0;
3576 _ACEOF
3577 rm -f conftest.$ac_objext
3578 if { (ac_try="$ac_compile"
3579 case "(($ac_try" in
3580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581   *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584   (eval "$ac_compile") 2>conftest.er1
3585   ac_status=$?
3586   grep -v '^ *+' conftest.er1 >conftest.err
3587   rm -f conftest.er1
3588   cat conftest.err >&5
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); } && {
3591          test -z "$ac_c_werror_flag" ||
3592          test ! -s conftest.err
3593        } && test -s conftest.$ac_objext; then
3594   ac_cv_prog_cc_g=yes
3595 else
3596   echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3600 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 fi
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3606 fi
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3609    ac_c_werror_flag=$ac_save_c_werror_flag
3610 fi
3611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3612 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3613 if test "$ac_test_CFLAGS" = set; then
3614   CFLAGS=$ac_save_CFLAGS
3615 elif test $ac_cv_prog_cc_g = yes; then
3616   if test "$GCC" = yes; then
3617     CFLAGS="-g -O2"
3618   else
3619     CFLAGS="-g"
3620   fi
3621 else
3622   if test "$GCC" = yes; then
3623     CFLAGS="-O2"
3624   else
3625     CFLAGS=
3626   fi
3627 fi
3628 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3629 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3630 if test "${ac_cv_prog_cc_c89+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   ac_cv_prog_cc_c89=no
3634 ac_save_CC=$CC
3635 cat >conftest.$ac_ext <<_ACEOF
3636 /* confdefs.h.  */
3637 _ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h.  */
3641 #include <stdarg.h>
3642 #include <stdio.h>
3643 #include <sys/types.h>
3644 #include <sys/stat.h>
3645 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3646 struct buf { int x; };
3647 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3648 static char *e (p, i)
3649      char **p;
3650      int i;
3652   return p[i];
3654 static char *f (char * (*g) (char **, int), char **p, ...)
3656   char *s;
3657   va_list v;
3658   va_start (v,p);
3659   s = g (p, va_arg (v,int));
3660   va_end (v);
3661   return s;
3664 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3665    function prototypes and stuff, but not '\xHH' hex character constants.
3666    These don't provoke an error unfortunately, instead are silently treated
3667    as 'x'.  The following induces an error, until -std is added to get
3668    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3669    array size at least.  It's necessary to write '\x00'==0 to get something
3670    that's true only with -std.  */
3671 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3673 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3674    inside strings and character constants.  */
3675 #define FOO(x) 'x'
3676 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3678 int test (int i, double x);
3679 struct s1 {int (*f) (int a);};
3680 struct s2 {int (*f) (double a);};
3681 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3682 int argc;
3683 char **argv;
3684 int
3685 main ()
3687 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3688   ;
3689   return 0;
3691 _ACEOF
3692 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3693         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3694 do
3695   CC="$ac_save_CC $ac_arg"
3696   rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3698 case "(($ac_try" in
3699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700   *) ac_try_echo=$ac_try;;
3701 esac
3702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3703   (eval "$ac_compile") 2>conftest.er1
3704   ac_status=$?
3705   grep -v '^ *+' conftest.er1 >conftest.err
3706   rm -f conftest.er1
3707   cat conftest.err >&5
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } && {
3710          test -z "$ac_c_werror_flag" ||
3711          test ! -s conftest.err
3712        } && test -s conftest.$ac_objext; then
3713   ac_cv_prog_cc_c89=$ac_arg
3714 else
3715   echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3719 fi
3721 rm -f core conftest.err conftest.$ac_objext
3722   test "x$ac_cv_prog_cc_c89" != "xno" && break
3723 done
3724 rm -f conftest.$ac_ext
3725 CC=$ac_save_CC
3727 fi
3728 # AC_CACHE_VAL
3729 case "x$ac_cv_prog_cc_c89" in
3730   x)
3731     { echo "$as_me:$LINENO: result: none needed" >&5
3732 echo "${ECHO_T}none needed" >&6; } ;;
3733   xno)
3734     { echo "$as_me:$LINENO: result: unsupported" >&5
3735 echo "${ECHO_T}unsupported" >&6; } ;;
3736   *)
3737     CC="$CC $ac_cv_prog_cc_c89"
3738     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3739 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3740 esac
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 DEPDIR="${am__leading_dot}deps"
3750 ac_config_commands="$ac_config_commands depfiles"
3753 am_make=${MAKE-make}
3754 cat > confinc << 'END'
3755 am__doit:
3756         @echo done
3757 .PHONY: am__doit
3758 END
3759 # If we don't find an include directive, just comment out the code.
3760 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3761 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3762 am__include="#"
3763 am__quote=
3764 _am_result=none
3765 # First try GNU make style include.
3766 echo "include confinc" > confmf
3767 # We grep out `Entering directory' and `Leaving directory'
3768 # messages which can occur if `w' ends up in MAKEFLAGS.
3769 # In particular we don't look at `^make:' because GNU make might
3770 # be invoked under some other name (usually "gmake"), in which
3771 # case it prints its new name instead of `make'.
3772 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3773    am__include=include
3774    am__quote=
3775    _am_result=GNU
3776 fi
3777 # Now try BSD make style include.
3778 if test "$am__include" = "#"; then
3779    echo '.include "confinc"' > confmf
3780    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3781       am__include=.include
3782       am__quote="\""
3783       _am_result=BSD
3784    fi
3785 fi
3788 { echo "$as_me:$LINENO: result: $_am_result" >&5
3789 echo "${ECHO_T}$_am_result" >&6; }
3790 rm -f confinc confmf
3792 # Check whether --enable-dependency-tracking was given.
3793 if test "${enable_dependency_tracking+set}" = set; then
3794   enableval=$enable_dependency_tracking;
3795 fi
3797 if test "x$enable_dependency_tracking" != xno; then
3798   am_depcomp="$ac_aux_dir/depcomp"
3799   AMDEPBACKSLASH='\'
3800 fi
3803 if test "x$enable_dependency_tracking" != xno; then
3804   AMDEP_TRUE=
3805   AMDEP_FALSE='#'
3806 else
3807   AMDEP_TRUE='#'
3808   AMDEP_FALSE=
3809 fi
3814 depcc="$CC"   am_compiler_list=
3816 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3817 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3818 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3819   echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3822   # We make a subdir and do the tests there.  Otherwise we can end up
3823   # making bogus files that we don't know about and never remove.  For
3824   # instance it was reported that on HP-UX the gcc test will end up
3825   # making a dummy file named `D' -- because `-MD' means `put the output
3826   # in D'.
3827   mkdir conftest.dir
3828   # Copy depcomp to subdir because otherwise we won't find it if we're
3829   # using a relative directory.
3830   cp "$am_depcomp" conftest.dir
3831   cd conftest.dir
3832   # We will build objects and dependencies in a subdirectory because
3833   # it helps to detect inapplicable dependency modes.  For instance
3834   # both Tru64's cc and ICC support -MD to output dependencies as a
3835   # side effect of compilation, but ICC will put the dependencies in
3836   # the current directory while Tru64 will put them in the object
3837   # directory.
3838   mkdir sub
3840   am_cv_CC_dependencies_compiler_type=none
3841   if test "$am_compiler_list" = ""; then
3842      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3843   fi
3844   for depmode in $am_compiler_list; do
3845     # Setup a source with many dependencies, because some compilers
3846     # like to wrap large dependency lists on column 80 (with \), and
3847     # we should not choose a depcomp mode which is confused by this.
3848     #
3849     # We need to recreate these files for each test, as the compiler may
3850     # overwrite some of them when testing with obscure command lines.
3851     # This happens at least with the AIX C compiler.
3852     : > sub/conftest.c
3853     for i in 1 2 3 4 5 6; do
3854       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3855       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3856       # Solaris 8's {/usr,}/bin/sh.
3857       touch sub/conftst$i.h
3858     done
3859     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3861     case $depmode in
3862     nosideeffect)
3863       # after this tag, mechanisms are not by side-effect, so they'll
3864       # only be used when explicitly requested
3865       if test "x$enable_dependency_tracking" = xyes; then
3866         continue
3867       else
3868         break
3869       fi
3870       ;;
3871     none) break ;;
3872     esac
3873     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3874     # mode.  It turns out that the SunPro C++ compiler does not properly
3875     # handle `-M -o', and we need to detect this.
3876     if depmode=$depmode \
3877        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3878        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3879        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3880          >/dev/null 2>conftest.err &&
3881        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3882        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3883        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3884       # icc doesn't choke on unknown options, it will just issue warnings
3885       # or remarks (even with -Werror).  So we grep stderr for any message
3886       # that says an option was ignored or not supported.
3887       # When given -MP, icc 7.0 and 7.1 complain thusly:
3888       #   icc: Command line warning: ignoring option '-M'; no argument required
3889       # The diagnosis changed in icc 8.0:
3890       #   icc: Command line remark: option '-MP' not supported
3891       if (grep 'ignoring option' conftest.err ||
3892           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3893         am_cv_CC_dependencies_compiler_type=$depmode
3894         break
3895       fi
3896     fi
3897   done
3899   cd ..
3900   rm -rf conftest.dir
3901 else
3902   am_cv_CC_dependencies_compiler_type=none
3903 fi
3905 fi
3906 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3907 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3908 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3912 if
3913   test "x$enable_dependency_tracking" != xno \
3914   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3915   am__fastdepCC_TRUE=
3916   am__fastdepCC_FALSE='#'
3917 else
3918   am__fastdepCC_TRUE='#'
3919   am__fastdepCC_FALSE=
3920 fi
3923 ac_ext=c
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3929 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3930 # On Suns, sometimes $CPP names a directory.
3931 if test -n "$CPP" && test -d "$CPP"; then
3932   CPP=
3933 fi
3934 if test -z "$CPP"; then
3935   if test "${ac_cv_prog_CPP+set}" = set; then
3936   echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938       # Double quotes because CPP needs to be expanded
3939     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3940     do
3941       ac_preproc_ok=false
3942 for ac_c_preproc_warn_flag in '' yes
3943 do
3944   # Use a header file that comes with gcc, so configuring glibc
3945   # with a fresh cross-compiler works.
3946   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3947   # <limits.h> exists even on freestanding compilers.
3948   # On the NeXT, cc -E runs the code through the compiler's parser,
3949   # not just through cpp. "Syntax error" is here to catch this case.
3950   cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h.  */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h.  */
3956 #ifdef __STDC__
3957 # include <limits.h>
3958 #else
3959 # include <assert.h>
3960 #endif
3961                      Syntax error
3962 _ACEOF
3963 if { (ac_try="$ac_cpp conftest.$ac_ext"
3964 case "(($ac_try" in
3965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966   *) ac_try_echo=$ac_try;;
3967 esac
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3970   ac_status=$?
3971   grep -v '^ *+' conftest.er1 >conftest.err
3972   rm -f conftest.er1
3973   cat conftest.err >&5
3974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); } >/dev/null && {
3976          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3977          test ! -s conftest.err
3978        }; then
3979   :
3980 else
3981   echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984   # Broken: fails on valid input.
3985 continue
3986 fi
3988 rm -f conftest.err conftest.$ac_ext
3990   # OK, works on sane cases.  Now check whether nonexistent headers
3991   # can be detected and how.
3992   cat >conftest.$ac_ext <<_ACEOF
3993 /* confdefs.h.  */
3994 _ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h.  */
3998 #include <ac_nonexistent.h>
3999 _ACEOF
4000 if { (ac_try="$ac_cpp conftest.$ac_ext"
4001 case "(($ac_try" in
4002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003   *) ac_try_echo=$ac_try;;
4004 esac
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4007   ac_status=$?
4008   grep -v '^ *+' conftest.er1 >conftest.err
4009   rm -f conftest.er1
4010   cat conftest.err >&5
4011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012   (exit $ac_status); } >/dev/null && {
4013          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4014          test ! -s conftest.err
4015        }; then
4016   # Broken: success on invalid input.
4017 continue
4018 else
4019   echo "$as_me: failed program was:" >&5
4020 sed 's/^/| /' conftest.$ac_ext >&5
4022   # Passes both tests.
4023 ac_preproc_ok=:
4024 break
4025 fi
4027 rm -f conftest.err conftest.$ac_ext
4029 done
4030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4031 rm -f conftest.err conftest.$ac_ext
4032 if $ac_preproc_ok; then
4033   break
4034 fi
4036     done
4037     ac_cv_prog_CPP=$CPP
4039 fi
4040   CPP=$ac_cv_prog_CPP
4041 else
4042   ac_cv_prog_CPP=$CPP
4043 fi
4044 { echo "$as_me:$LINENO: result: $CPP" >&5
4045 echo "${ECHO_T}$CPP" >&6; }
4046 ac_preproc_ok=false
4047 for ac_c_preproc_warn_flag in '' yes
4048 do
4049   # Use a header file that comes with gcc, so configuring glibc
4050   # with a fresh cross-compiler works.
4051   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4052   # <limits.h> exists even on freestanding compilers.
4053   # On the NeXT, cc -E runs the code through the compiler's parser,
4054   # not just through cpp. "Syntax error" is here to catch this case.
4055   cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h.  */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h.  */
4061 #ifdef __STDC__
4062 # include <limits.h>
4063 #else
4064 # include <assert.h>
4065 #endif
4066                      Syntax error
4067 _ACEOF
4068 if { (ac_try="$ac_cpp conftest.$ac_ext"
4069 case "(($ac_try" in
4070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071   *) ac_try_echo=$ac_try;;
4072 esac
4073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4075   ac_status=$?
4076   grep -v '^ *+' conftest.er1 >conftest.err
4077   rm -f conftest.er1
4078   cat conftest.err >&5
4079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080   (exit $ac_status); } >/dev/null && {
4081          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4082          test ! -s conftest.err
4083        }; then
4084   :
4085 else
4086   echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089   # Broken: fails on valid input.
4090 continue
4091 fi
4093 rm -f conftest.err conftest.$ac_ext
4095   # OK, works on sane cases.  Now check whether nonexistent headers
4096   # can be detected and how.
4097   cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h.  */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h.  */
4103 #include <ac_nonexistent.h>
4104 _ACEOF
4105 if { (ac_try="$ac_cpp conftest.$ac_ext"
4106 case "(($ac_try" in
4107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108   *) ac_try_echo=$ac_try;;
4109 esac
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4112   ac_status=$?
4113   grep -v '^ *+' conftest.er1 >conftest.err
4114   rm -f conftest.er1
4115   cat conftest.err >&5
4116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); } >/dev/null && {
4118          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4119          test ! -s conftest.err
4120        }; then
4121   # Broken: success on invalid input.
4122 continue
4123 else
4124   echo "$as_me: failed program was:" >&5
4125 sed 's/^/| /' conftest.$ac_ext >&5
4127   # Passes both tests.
4128 ac_preproc_ok=:
4129 break
4130 fi
4132 rm -f conftest.err conftest.$ac_ext
4134 done
4135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4136 rm -f conftest.err conftest.$ac_ext
4137 if $ac_preproc_ok; then
4138   :
4139 else
4140   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4141 See \`config.log' for more details." >&5
4142 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4143 See \`config.log' for more details." >&2;}
4144    { (exit 1); exit 1; }; }
4145 fi
4147 ac_ext=c
4148 ac_cpp='$CPP $CPPFLAGS'
4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153 # Check whether --enable-shared was given.
4154 if test "${enable_shared+set}" = set; then
4155   enableval=$enable_shared; p=${PACKAGE-default}
4156     case $enableval in
4157     yes) enable_shared=yes ;;
4158     no) enable_shared=no ;;
4159     *)
4160       enable_shared=no
4161       # Look at the argument we got.  We use all the common list separators.
4162       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4163       for pkg in $enableval; do
4164         IFS="$lt_save_ifs"
4165         if test "X$pkg" = "X$p"; then
4166           enable_shared=yes
4167         fi
4168       done
4169       IFS="$lt_save_ifs"
4170       ;;
4171     esac
4172 else
4173   enable_shared=yes
4174 fi
4177 # Check whether --enable-static was given.
4178 if test "${enable_static+set}" = set; then
4179   enableval=$enable_static; p=${PACKAGE-default}
4180     case $enableval in
4181     yes) enable_static=yes ;;
4182     no) enable_static=no ;;
4183     *)
4184      enable_static=no
4185       # Look at the argument we got.  We use all the common list separators.
4186       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4187       for pkg in $enableval; do
4188         IFS="$lt_save_ifs"
4189         if test "X$pkg" = "X$p"; then
4190           enable_static=yes
4191         fi
4192       done
4193       IFS="$lt_save_ifs"
4194       ;;
4195     esac
4196 else
4197   enable_static=yes
4198 fi
4201 # Check whether --enable-fast-install was given.
4202 if test "${enable_fast_install+set}" = set; then
4203   enableval=$enable_fast_install; p=${PACKAGE-default}
4204     case $enableval in
4205     yes) enable_fast_install=yes ;;
4206     no) enable_fast_install=no ;;
4207     *)
4208       enable_fast_install=no
4209       # Look at the argument we got.  We use all the common list separators.
4210       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4211       for pkg in $enableval; do
4212         IFS="$lt_save_ifs"
4213         if test "X$pkg" = "X$p"; then
4214           enable_fast_install=yes
4215         fi
4216       done
4217       IFS="$lt_save_ifs"
4218       ;;
4219     esac
4220 else
4221   enable_fast_install=yes
4222 fi
4225 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4226 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4227 if test "${lt_cv_path_SED+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   # Loop through the user's path and test for sed and gsed.
4231 # Then use that list of sed's as ones to test for truncation.
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235   IFS=$as_save_IFS
4236   test -z "$as_dir" && as_dir=.
4237   for lt_ac_prog in sed gsed; do
4238     for ac_exec_ext in '' $ac_executable_extensions; do
4239       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4240         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4241       fi
4242     done
4243   done
4244 done
4245 IFS=$as_save_IFS
4246 lt_ac_max=0
4247 lt_ac_count=0
4248 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4249 # along with /bin/sed that truncates output.
4250 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4251   test ! -f $lt_ac_sed && continue
4252   cat /dev/null > conftest.in
4253   lt_ac_count=0
4254   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4255   # Check for GNU sed and select it if it is found.
4256   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4257     lt_cv_path_SED=$lt_ac_sed
4258     break
4259   fi
4260   while true; do
4261     cat conftest.in conftest.in >conftest.tmp
4262     mv conftest.tmp conftest.in
4263     cp conftest.in conftest.nl
4264     echo >>conftest.nl
4265     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4266     cmp -s conftest.out conftest.nl || break
4267     # 10000 chars as input seems more than enough
4268     test $lt_ac_count -gt 10 && break
4269     lt_ac_count=`expr $lt_ac_count + 1`
4270     if test $lt_ac_count -gt $lt_ac_max; then
4271       lt_ac_max=$lt_ac_count
4272       lt_cv_path_SED=$lt_ac_sed
4273     fi
4274   done
4275 done
4277 fi
4279 SED=$lt_cv_path_SED
4281 { echo "$as_me:$LINENO: result: $SED" >&5
4282 echo "${ECHO_T}$SED" >&6; }
4284 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4285 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4286 if test "${ac_cv_path_GREP+set}" = set; then
4287   echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289   # Extract the first word of "grep ggrep" to use in msg output
4290 if test -z "$GREP"; then
4291 set dummy grep ggrep; ac_prog_name=$2
4292 if test "${ac_cv_path_GREP+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   ac_path_GREP_found=false
4296 # Loop through the user's path and test for each of PROGNAME-LIST
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4299 do
4300   IFS=$as_save_IFS
4301   test -z "$as_dir" && as_dir=.
4302   for ac_prog in grep ggrep; do
4303   for ac_exec_ext in '' $ac_executable_extensions; do
4304     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4305     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4306     # Check for GNU ac_path_GREP and select it if it is found.
4307   # Check for GNU $ac_path_GREP
4308 case `"$ac_path_GREP" --version 2>&1` in
4309 *GNU*)
4310   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4311 *)
4312   ac_count=0
4313   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4314   while :
4315   do
4316     cat "conftest.in" "conftest.in" >"conftest.tmp"
4317     mv "conftest.tmp" "conftest.in"
4318     cp "conftest.in" "conftest.nl"
4319     echo 'GREP' >> "conftest.nl"
4320     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4321     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4322     ac_count=`expr $ac_count + 1`
4323     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4324       # Best one so far, save it but keep looking for a better one
4325       ac_cv_path_GREP="$ac_path_GREP"
4326       ac_path_GREP_max=$ac_count
4327     fi
4328     # 10*(2^10) chars as input seems more than enough
4329     test $ac_count -gt 10 && break
4330   done
4331   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4332 esac
4335     $ac_path_GREP_found && break 3
4336   done
4337 done
4339 done
4340 IFS=$as_save_IFS
4343 fi
4345 GREP="$ac_cv_path_GREP"
4346 if test -z "$GREP"; then
4347   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4348 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4349    { (exit 1); exit 1; }; }
4350 fi
4352 else
4353   ac_cv_path_GREP=$GREP
4354 fi
4357 fi
4358 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4359 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4360  GREP="$ac_cv_path_GREP"
4363 { echo "$as_me:$LINENO: checking for egrep" >&5
4364 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4365 if test "${ac_cv_path_EGREP+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4369    then ac_cv_path_EGREP="$GREP -E"
4370    else
4371      # Extract the first word of "egrep" to use in msg output
4372 if test -z "$EGREP"; then
4373 set dummy egrep; ac_prog_name=$2
4374 if test "${ac_cv_path_EGREP+set}" = set; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 else
4377   ac_path_EGREP_found=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384   for ac_prog in egrep; do
4385   for ac_exec_ext in '' $ac_executable_extensions; do
4386     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4387     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4388     # Check for GNU ac_path_EGREP and select it if it is found.
4389   # Check for GNU $ac_path_EGREP
4390 case `"$ac_path_EGREP" --version 2>&1` in
4391 *GNU*)
4392   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4393 *)
4394   ac_count=0
4395   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4396   while :
4397   do
4398     cat "conftest.in" "conftest.in" >"conftest.tmp"
4399     mv "conftest.tmp" "conftest.in"
4400     cp "conftest.in" "conftest.nl"
4401     echo 'EGREP' >> "conftest.nl"
4402     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404     ac_count=`expr $ac_count + 1`
4405     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4406       # Best one so far, save it but keep looking for a better one
4407       ac_cv_path_EGREP="$ac_path_EGREP"
4408       ac_path_EGREP_max=$ac_count
4409     fi
4410     # 10*(2^10) chars as input seems more than enough
4411     test $ac_count -gt 10 && break
4412   done
4413   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414 esac
4417     $ac_path_EGREP_found && break 3
4418   done
4419 done
4421 done
4422 IFS=$as_save_IFS
4425 fi
4427 EGREP="$ac_cv_path_EGREP"
4428 if test -z "$EGREP"; then
4429   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4430 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4431    { (exit 1); exit 1; }; }
4432 fi
4434 else
4435   ac_cv_path_EGREP=$EGREP
4436 fi
4439    fi
4440 fi
4441 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4442 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4443  EGREP="$ac_cv_path_EGREP"
4447 # Check whether --with-gnu-ld was given.
4448 if test "${with_gnu_ld+set}" = set; then
4449   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4450 else
4451   with_gnu_ld=no
4452 fi
4454 ac_prog=ld
4455 if test "$GCC" = yes; then
4456   # Check if gcc -print-prog-name=ld gives a path.
4457   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4458 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4459   case $host in
4460   *-*-mingw*)
4461     # gcc leaves a trailing carriage return which upsets mingw
4462     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4463   *)
4464     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4465   esac
4466   case $ac_prog in
4467     # Accept absolute paths.
4468     [\\/]* | ?:[\\/]*)
4469       re_direlt='/[^/][^/]*/\.\./'
4470       # Canonicalize the pathname of ld
4471       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4472       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4473         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4474       done
4475       test -z "$LD" && LD="$ac_prog"
4476       ;;
4477   "")
4478     # If it fails, then pretend we aren't using GCC.
4479     ac_prog=ld
4480     ;;
4481   *)
4482     # If it is relative, then search for the first ld in PATH.
4483     with_gnu_ld=unknown
4484     ;;
4485   esac
4486 elif test "$with_gnu_ld" = yes; then
4487   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4488 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4489 else
4490   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4491 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4492 fi
4493 if test "${lt_cv_path_LD+set}" = set; then
4494   echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496   if test -z "$LD"; then
4497   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4498   for ac_dir in $PATH; do
4499     IFS="$lt_save_ifs"
4500     test -z "$ac_dir" && ac_dir=.
4501     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4502       lt_cv_path_LD="$ac_dir/$ac_prog"
4503       # Check to see if the program is GNU ld.  I'd rather use --version,
4504       # but apparently some variants of GNU ld only accept -v.
4505       # Break only if it was the GNU/non-GNU ld that we prefer.
4506       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4507       *GNU* | *'with BFD'*)
4508         test "$with_gnu_ld" != no && break
4509         ;;
4510       *)
4511         test "$with_gnu_ld" != yes && break
4512         ;;
4513       esac
4514     fi
4515   done
4516   IFS="$lt_save_ifs"
4517 else
4518   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4519 fi
4520 fi
4522 LD="$lt_cv_path_LD"
4523 if test -n "$LD"; then
4524   { echo "$as_me:$LINENO: result: $LD" >&5
4525 echo "${ECHO_T}$LD" >&6; }
4526 else
4527   { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4529 fi
4530 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4531 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4532    { (exit 1); exit 1; }; }
4533 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4534 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4535 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4539 case `$LD -v 2>&1 </dev/null` in
4540 *GNU* | *'with BFD'*)
4541   lt_cv_prog_gnu_ld=yes
4542   ;;
4543 *)
4544   lt_cv_prog_gnu_ld=no
4545   ;;
4546 esac
4547 fi
4548 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4549 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4550 with_gnu_ld=$lt_cv_prog_gnu_ld
4553 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4554 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4555 if test "${lt_cv_ld_reload_flag+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   lt_cv_ld_reload_flag='-r'
4559 fi
4560 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4561 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4562 reload_flag=$lt_cv_ld_reload_flag
4563 case $reload_flag in
4564 "" | " "*) ;;
4565 *) reload_flag=" $reload_flag" ;;
4566 esac
4567 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4568 case $host_os in
4569   darwin*)
4570     if test "$GCC" = yes; then
4571       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4572     else
4573       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4574     fi
4575     ;;
4576 esac
4578 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4579 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4580 if test "${lt_cv_path_NM+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   if test -n "$NM"; then
4584   # Let the user override the test.
4585   lt_cv_path_NM="$NM"
4586 else
4587   lt_nm_to_check="${ac_tool_prefix}nm"
4588   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4589     lt_nm_to_check="$lt_nm_to_check nm"
4590   fi
4591   for lt_tmp_nm in $lt_nm_to_check; do
4592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4593     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4594       IFS="$lt_save_ifs"
4595       test -z "$ac_dir" && ac_dir=.
4596       tmp_nm="$ac_dir/$lt_tmp_nm"
4597       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4598         # Check to see if the nm accepts a BSD-compat flag.
4599         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4600         #   nm: unknown option "B" ignored
4601         # Tru64's nm complains that /dev/null is an invalid object file
4602         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4603         */dev/null* | *'Invalid file or object type'*)
4604           lt_cv_path_NM="$tmp_nm -B"
4605           break
4606           ;;
4607         *)
4608           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4609           */dev/null*)
4610             lt_cv_path_NM="$tmp_nm -p"
4611             break
4612             ;;
4613           *)
4614             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4615             continue # so that we can try to find one that supports BSD flags
4616             ;;
4617           esac
4618           ;;
4619         esac
4620       fi
4621     done
4622     IFS="$lt_save_ifs"
4623   done
4624   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4625 fi
4626 fi
4627 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4628 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4629 NM="$lt_cv_path_NM"
4631 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4632 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4633 LN_S=$as_ln_s
4634 if test "$LN_S" = "ln -s"; then
4635   { echo "$as_me:$LINENO: result: yes" >&5
4636 echo "${ECHO_T}yes" >&6; }
4637 else
4638   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4639 echo "${ECHO_T}no, using $LN_S" >&6; }
4640 fi
4642 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4643 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4644 if test "${lt_cv_deplibs_check_method+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   lt_cv_file_magic_cmd='$MAGIC_CMD'
4648 lt_cv_file_magic_test_file=
4649 lt_cv_deplibs_check_method='unknown'
4650 # Need to set the preceding variable on all platforms that support
4651 # interlibrary dependencies.
4652 # 'none' -- dependencies not supported.
4653 # `unknown' -- same as none, but documents that we really don't know.
4654 # 'pass_all' -- all dependencies passed with no checks.
4655 # 'test_compile' -- check by making test program.
4656 # 'file_magic [[regex]]' -- check by looking for files in library path
4657 # which responds to the $file_magic_cmd with a given extended regex.
4658 # If you have `file' or equivalent on your system and you're not sure
4659 # whether `pass_all' will *always* work, you probably want this one.
4661 case $host_os in
4662 aix[4-9]*)
4663   lt_cv_deplibs_check_method=pass_all
4664   ;;
4666 beos*)
4667   lt_cv_deplibs_check_method=pass_all
4668   ;;
4670 bsdi[45]*)
4671   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4672   lt_cv_file_magic_cmd='/usr/bin/file -L'
4673   lt_cv_file_magic_test_file=/shlib/libc.so
4674   ;;
4676 cygwin*)
4677   # func_win32_libid is a shell function defined in ltmain.sh
4678   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4679   lt_cv_file_magic_cmd='func_win32_libid'
4680   ;;
4682 mingw* | pw32*)
4683   # Base MSYS/MinGW do not provide the 'file' command needed by
4684   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4685   # unless we find 'file', for example because we are cross-compiling.
4686   if ( file / ) >/dev/null 2>&1; then
4687     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4688     lt_cv_file_magic_cmd='func_win32_libid'
4689   else
4690     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4691     lt_cv_file_magic_cmd='$OBJDUMP -f'
4692   fi
4693   ;;
4695 darwin* | rhapsody*)
4696   lt_cv_deplibs_check_method=pass_all
4697   ;;
4699 freebsd* | dragonfly*)
4700   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4701     case $host_cpu in
4702     i*86 )
4703       # Not sure whether the presence of OpenBSD here was a mistake.
4704       # Let's accept both of them until this is cleared up.
4705       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4706       lt_cv_file_magic_cmd=/usr/bin/file
4707       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4708       ;;
4709     esac
4710   else
4711     lt_cv_deplibs_check_method=pass_all
4712   fi
4713   ;;
4715 gnu*)
4716   lt_cv_deplibs_check_method=pass_all
4717   ;;
4719 hpux10.20* | hpux11*)
4720   lt_cv_file_magic_cmd=/usr/bin/file
4721   case $host_cpu in
4722   ia64*)
4723     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4724     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4725     ;;
4726   hppa*64*)
4727     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]'
4728     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4729     ;;
4730   *)
4731     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4732     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4733     ;;
4734   esac
4735   ;;
4737 interix[3-9]*)
4738   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4739   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4740   ;;
4742 irix5* | irix6* | nonstopux*)
4743   case $LD in
4744   *-32|*"-32 ") libmagic=32-bit;;
4745   *-n32|*"-n32 ") libmagic=N32;;
4746   *-64|*"-64 ") libmagic=64-bit;;
4747   *) libmagic=never-match;;
4748   esac
4749   lt_cv_deplibs_check_method=pass_all
4750   ;;
4752 # This must be Linux ELF.
4753 linux* | k*bsd*-gnu)
4754   lt_cv_deplibs_check_method=pass_all
4755   ;;
4757 netbsd* | netbsdelf*-gnu)
4758   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4759     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4760   else
4761     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4762   fi
4763   ;;
4765 newos6*)
4766   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4767   lt_cv_file_magic_cmd=/usr/bin/file
4768   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4769   ;;
4771 nto-qnx*)
4772   lt_cv_deplibs_check_method=unknown
4773   ;;
4775 openbsd*)
4776   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4777     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4778   else
4779     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4780   fi
4781   ;;
4783 osf3* | osf4* | osf5*)
4784   lt_cv_deplibs_check_method=pass_all
4785   ;;
4787 rdos*)
4788   lt_cv_deplibs_check_method=pass_all
4789   ;;
4791 solaris*)
4792   lt_cv_deplibs_check_method=pass_all
4793   ;;
4795 sysv4 | sysv4.3*)
4796   case $host_vendor in
4797   motorola)
4798     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]'
4799     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4800     ;;
4801   ncr)
4802     lt_cv_deplibs_check_method=pass_all
4803     ;;
4804   sequent)
4805     lt_cv_file_magic_cmd='/bin/file'
4806     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4807     ;;
4808   sni)
4809     lt_cv_file_magic_cmd='/bin/file'
4810     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4811     lt_cv_file_magic_test_file=/lib/libc.so
4812     ;;
4813   siemens)
4814     lt_cv_deplibs_check_method=pass_all
4815     ;;
4816   pc)
4817     lt_cv_deplibs_check_method=pass_all
4818     ;;
4819   esac
4820   ;;
4822 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4823   lt_cv_deplibs_check_method=pass_all
4824   ;;
4825 esac
4827 fi
4828 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4829 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4830 file_magic_cmd=$lt_cv_file_magic_cmd
4831 deplibs_check_method=$lt_cv_deplibs_check_method
4832 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4837 # If no C compiler was specified, use CC.
4838 LTCC=${LTCC-"$CC"}
4840 # If no C compiler flags were specified, use CFLAGS.
4841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4843 # Allow CC to be a program name with arguments.
4844 compiler=$CC
4847 # Check whether --enable-libtool-lock was given.
4848 if test "${enable_libtool_lock+set}" = set; then
4849   enableval=$enable_libtool_lock;
4850 fi
4852 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4854 # Some flags need to be propagated to the compiler or linker for good
4855 # libtool support.
4856 case $host in
4857 ia64-*-hpux*)
4858   # Find out which ABI we are using.
4859   echo 'int i;' > conftest.$ac_ext
4860   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861   (eval $ac_compile) 2>&5
4862   ac_status=$?
4863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); }; then
4865     case `/usr/bin/file conftest.$ac_objext` in
4866     *ELF-32*)
4867       HPUX_IA64_MODE="32"
4868       ;;
4869     *ELF-64*)
4870       HPUX_IA64_MODE="64"
4871       ;;
4872     esac
4873   fi
4874   rm -rf conftest*
4875   ;;
4876 *-*-irix6*)
4877   # Find out which ABI we are using.
4878   echo '#line 4878 "configure"' > conftest.$ac_ext
4879   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4880   (eval $ac_compile) 2>&5
4881   ac_status=$?
4882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883   (exit $ac_status); }; then
4884    if test "$lt_cv_prog_gnu_ld" = yes; then
4885     case `/usr/bin/file conftest.$ac_objext` in
4886     *32-bit*)
4887       LD="${LD-ld} -melf32bsmip"
4888       ;;
4889     *N32*)
4890       LD="${LD-ld} -melf32bmipn32"
4891       ;;
4892     *64-bit*)
4893       LD="${LD-ld} -melf64bmip"
4894       ;;
4895     esac
4896    else
4897     case `/usr/bin/file conftest.$ac_objext` in
4898     *32-bit*)
4899       LD="${LD-ld} -32"
4900       ;;
4901     *N32*)
4902       LD="${LD-ld} -n32"
4903       ;;
4904     *64-bit*)
4905       LD="${LD-ld} -64"
4906       ;;
4907     esac
4908    fi
4909   fi
4910   rm -rf conftest*
4911   ;;
4913 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4914 s390*-*linux*|sparc*-*linux*)
4915   # Find out which ABI we are using.
4916   echo 'int i;' > conftest.$ac_ext
4917   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4918   (eval $ac_compile) 2>&5
4919   ac_status=$?
4920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921   (exit $ac_status); }; then
4922     case `/usr/bin/file conftest.o` in
4923     *32-bit*)
4924       case $host in
4925         x86_64-*kfreebsd*-gnu)
4926           LD="${LD-ld} -m elf_i386_fbsd"
4927           ;;
4928         x86_64-*linux*)
4929           LD="${LD-ld} -m elf_i386"
4930           ;;
4931         ppc64-*linux*|powerpc64-*linux*)
4932           LD="${LD-ld} -m elf32ppclinux"
4933           ;;
4934         s390x-*linux*)
4935           LD="${LD-ld} -m elf_s390"
4936           ;;
4937         sparc64-*linux*)
4938           LD="${LD-ld} -m elf32_sparc"
4939           ;;
4940       esac
4941       ;;
4942     *64-bit*)
4943       case $host in
4944         x86_64-*kfreebsd*-gnu)
4945           LD="${LD-ld} -m elf_x86_64_fbsd"
4946           ;;
4947         x86_64-*linux*)
4948           LD="${LD-ld} -m elf_x86_64"
4949           ;;
4950         ppc*-*linux*|powerpc*-*linux*)
4951           LD="${LD-ld} -m elf64ppc"
4952           ;;
4953         s390*-*linux*)
4954           LD="${LD-ld} -m elf64_s390"
4955           ;;
4956         sparc*-*linux*)
4957           LD="${LD-ld} -m elf64_sparc"
4958           ;;
4959       esac
4960       ;;
4961     esac
4962   fi
4963   rm -rf conftest*
4964   ;;
4966 *-*-sco3.2v5*)
4967   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4968   SAVE_CFLAGS="$CFLAGS"
4969   CFLAGS="$CFLAGS -belf"
4970   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4971 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4972 if test "${lt_cv_cc_needs_belf+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981      cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h.  */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h.  */
4988 int
4989 main ()
4992   ;
4993   return 0;
4995 _ACEOF
4996 rm -f conftest.$ac_objext conftest$ac_exeext
4997 if { (ac_try="$ac_link"
4998 case "(($ac_try" in
4999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000   *) ac_try_echo=$ac_try;;
5001 esac
5002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5003   (eval "$ac_link") 2>conftest.er1
5004   ac_status=$?
5005   grep -v '^ *+' conftest.er1 >conftest.err
5006   rm -f conftest.er1
5007   cat conftest.err >&5
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); } && {
5010          test -z "$ac_c_werror_flag" ||
5011          test ! -s conftest.err
5012        } && test -s conftest$ac_exeext &&
5013        $as_test_x conftest$ac_exeext; then
5014   lt_cv_cc_needs_belf=yes
5015 else
5016   echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5019         lt_cv_cc_needs_belf=no
5020 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5023       conftest$ac_exeext conftest.$ac_ext
5024      ac_ext=c
5025 ac_cpp='$CPP $CPPFLAGS'
5026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5030 fi
5031 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5032 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5033   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5034     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5035     CFLAGS="$SAVE_CFLAGS"
5036   fi
5037   ;;
5038 sparc*-*solaris*)
5039   # Find out which ABI we are using.
5040   echo 'int i;' > conftest.$ac_ext
5041   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042   (eval $ac_compile) 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; then
5046     case `/usr/bin/file conftest.o` in
5047     *64-bit*)
5048       case $lt_cv_prog_gnu_ld in
5049       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5050       *)
5051         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5052           LD="${LD-ld} -64"
5053         fi
5054         ;;
5055       esac
5056       ;;
5057     esac
5058   fi
5059   rm -rf conftest*
5060   ;;
5063 esac
5065 need_locks="$enable_libtool_lock"
5069 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5070 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5071 if test "${ac_cv_header_stdc+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h.  */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h.  */
5080 #include <stdlib.h>
5081 #include <stdarg.h>
5082 #include <string.h>
5083 #include <float.h>
5085 int
5086 main ()
5089   ;
5090   return 0;
5092 _ACEOF
5093 rm -f conftest.$ac_objext
5094 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5101   ac_status=$?
5102   grep -v '^ *+' conftest.er1 >conftest.err
5103   rm -f conftest.er1
5104   cat conftest.err >&5
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); } && {
5107          test -z "$ac_c_werror_flag" ||
5108          test ! -s conftest.err
5109        } && test -s conftest.$ac_objext; then
5110   ac_cv_header_stdc=yes
5111 else
5112   echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5115         ac_cv_header_stdc=no
5116 fi
5118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 if test $ac_cv_header_stdc = yes; then
5121   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 #include <string.h>
5130 _ACEOF
5131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132   $EGREP "memchr" >/dev/null 2>&1; then
5133   :
5134 else
5135   ac_cv_header_stdc=no
5136 fi
5137 rm -f conftest*
5139 fi
5141 if test $ac_cv_header_stdc = yes; then
5142   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5143   cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h.  */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h.  */
5149 #include <stdlib.h>
5151 _ACEOF
5152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5153   $EGREP "free" >/dev/null 2>&1; then
5154   :
5155 else
5156   ac_cv_header_stdc=no
5157 fi
5158 rm -f conftest*
5160 fi
5162 if test $ac_cv_header_stdc = yes; then
5163   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5164   if test "$cross_compiling" = yes; then
5165   :
5166 else
5167   cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h.  */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h.  */
5173 #include <ctype.h>
5174 #include <stdlib.h>
5175 #if ((' ' & 0x0FF) == 0x020)
5176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5178 #else
5179 # define ISLOWER(c) \
5180                    (('a' <= (c) && (c) <= 'i') \
5181                      || ('j' <= (c) && (c) <= 'r') \
5182                      || ('s' <= (c) && (c) <= 'z'))
5183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5184 #endif
5186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5187 int
5188 main ()
5190   int i;
5191   for (i = 0; i < 256; i++)
5192     if (XOR (islower (i), ISLOWER (i))
5193         || toupper (i) != TOUPPER (i))
5194       return 2;
5195   return 0;
5197 _ACEOF
5198 rm -f conftest$ac_exeext
5199 if { (ac_try="$ac_link"
5200 case "(($ac_try" in
5201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202   *) ac_try_echo=$ac_try;;
5203 esac
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205   (eval "$ac_link") 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5209   { (case "(($ac_try" in
5210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211   *) ac_try_echo=$ac_try;;
5212 esac
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214   (eval "$ac_try") 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; }; then
5218   :
5219 else
5220   echo "$as_me: program exited with status $ac_status" >&5
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 ( exit $ac_status )
5225 ac_cv_header_stdc=no
5226 fi
5227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5228 fi
5231 fi
5232 fi
5233 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5234 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5235 if test $ac_cv_header_stdc = yes; then
5237 cat >>confdefs.h <<\_ACEOF
5238 #define STDC_HEADERS 1
5239 _ACEOF
5241 fi
5243 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5253 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5254                   inttypes.h stdint.h unistd.h
5255 do
5256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   cat >conftest.$ac_ext <<_ACEOF
5263 /* confdefs.h.  */
5264 _ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h.  */
5268 $ac_includes_default
5270 #include <$ac_header>
5271 _ACEOF
5272 rm -f conftest.$ac_objext
5273 if { (ac_try="$ac_compile"
5274 case "(($ac_try" in
5275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276   *) ac_try_echo=$ac_try;;
5277 esac
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279   (eval "$ac_compile") 2>conftest.er1
5280   ac_status=$?
5281   grep -v '^ *+' conftest.er1 >conftest.err
5282   rm -f conftest.er1
5283   cat conftest.err >&5
5284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285   (exit $ac_status); } && {
5286          test -z "$ac_c_werror_flag" ||
5287          test ! -s conftest.err
5288        } && test -s conftest.$ac_objext; then
5289   eval "$as_ac_Header=yes"
5290 else
5291   echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.$ac_ext >&5
5294         eval "$as_ac_Header=no"
5295 fi
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 fi
5299 ac_res=`eval echo '${'$as_ac_Header'}'`
5300                { echo "$as_me:$LINENO: result: $ac_res" >&5
5301 echo "${ECHO_T}$ac_res" >&6; }
5302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5303   cat >>confdefs.h <<_ACEOF
5304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5305 _ACEOF
5307 fi
5309 done
5313 for ac_header in dlfcn.h
5314 do
5315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
5322 ac_res=`eval echo '${'$as_ac_Header'}'`
5323                { echo "$as_me:$LINENO: result: $ac_res" >&5
5324 echo "${ECHO_T}$ac_res" >&6; }
5325 else
5326   # Is the header compilable?
5327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h.  */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h.  */
5335 $ac_includes_default
5336 #include <$ac_header>
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5340 case "(($ac_try" in
5341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342   *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345   (eval "$ac_compile") 2>conftest.er1
5346   ac_status=$?
5347   grep -v '^ *+' conftest.er1 >conftest.err
5348   rm -f conftest.er1
5349   cat conftest.err >&5
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); } && {
5352          test -z "$ac_c_werror_flag" ||
5353          test ! -s conftest.err
5354        } && test -s conftest.$ac_objext; then
5355   ac_header_compiler=yes
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360         ac_header_compiler=no
5361 fi
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5365 echo "${ECHO_T}$ac_header_compiler" >&6; }
5367 # Is the header present?
5368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376 #include <$ac_header>
5377 _ACEOF
5378 if { (ac_try="$ac_cpp conftest.$ac_ext"
5379 case "(($ac_try" in
5380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381   *) ac_try_echo=$ac_try;;
5382 esac
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5385   ac_status=$?
5386   grep -v '^ *+' conftest.er1 >conftest.err
5387   rm -f conftest.er1
5388   cat conftest.err >&5
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); } >/dev/null && {
5391          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5392          test ! -s conftest.err
5393        }; then
5394   ac_header_preproc=yes
5395 else
5396   echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5399   ac_header_preproc=no
5400 fi
5402 rm -f conftest.err conftest.$ac_ext
5403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5404 echo "${ECHO_T}$ac_header_preproc" >&6; }
5406 # So?  What about this header?
5407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5408   yes:no: )
5409     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5413     ac_header_preproc=yes
5414     ;;
5415   no:yes:* )
5416     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5418     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5419 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5420     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5422     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5423 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5426     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5429     ;;
5430 esac
5431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5434   echo $ECHO_N "(cached) $ECHO_C" >&6
5435 else
5436   eval "$as_ac_Header=\$ac_header_preproc"
5437 fi
5438 ac_res=`eval echo '${'$as_ac_Header'}'`
5439                { echo "$as_me:$LINENO: result: $ac_res" >&5
5440 echo "${ECHO_T}$ac_res" >&6; }
5442 fi
5443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5444   cat >>confdefs.h <<_ACEOF
5445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5446 _ACEOF
5448 fi
5450 done
5452 ac_ext=cpp
5453 ac_cpp='$CXXCPP $CPPFLAGS'
5454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5457 if test -z "$CXX"; then
5458   if test -n "$CCC"; then
5459     CXX=$CCC
5460   else
5461     if test -n "$ac_tool_prefix"; then
5462   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5463   do
5464     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5468 if test "${ac_cv_prog_CXX+set}" = set; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 else
5471   if test -n "$CXX"; then
5472   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477   IFS=$as_save_IFS
5478   test -z "$as_dir" && as_dir=.
5479   for ac_exec_ext in '' $ac_executable_extensions; do
5480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5483     break 2
5484   fi
5485 done
5486 done
5487 IFS=$as_save_IFS
5489 fi
5490 fi
5491 CXX=$ac_cv_prog_CXX
5492 if test -n "$CXX"; then
5493   { echo "$as_me:$LINENO: result: $CXX" >&5
5494 echo "${ECHO_T}$CXX" >&6; }
5495 else
5496   { echo "$as_me:$LINENO: result: no" >&5
5497 echo "${ECHO_T}no" >&6; }
5498 fi
5501     test -n "$CXX" && break
5502   done
5503 fi
5504 if test -z "$CXX"; then
5505   ac_ct_CXX=$CXX
5506   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5507 do
5508   # Extract the first word of "$ac_prog", so it can be a program name with args.
5509 set dummy $ac_prog; ac_word=$2
5510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5512 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5513   echo $ECHO_N "(cached) $ECHO_C" >&6
5514 else
5515   if test -n "$ac_ct_CXX"; then
5516   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5520 do
5521   IFS=$as_save_IFS
5522   test -z "$as_dir" && as_dir=.
5523   for ac_exec_ext in '' $ac_executable_extensions; do
5524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525     ac_cv_prog_ac_ct_CXX="$ac_prog"
5526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5527     break 2
5528   fi
5529 done
5530 done
5531 IFS=$as_save_IFS
5533 fi
5534 fi
5535 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5536 if test -n "$ac_ct_CXX"; then
5537   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5538 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5539 else
5540   { echo "$as_me:$LINENO: result: no" >&5
5541 echo "${ECHO_T}no" >&6; }
5542 fi
5545   test -n "$ac_ct_CXX" && break
5546 done
5548   if test "x$ac_ct_CXX" = x; then
5549     CXX="g++"
5550   else
5551     case $cross_compiling:$ac_tool_warned in
5552 yes:)
5553 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5554 whose name does not start with the host triplet.  If you think this
5555 configuration is useful to you, please write to autoconf@gnu.org." >&5
5556 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5557 whose name does not start with the host triplet.  If you think this
5558 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5559 ac_tool_warned=yes ;;
5560 esac
5561     CXX=$ac_ct_CXX
5562   fi
5563 fi
5565   fi
5566 fi
5567 # Provide some information about the compiler.
5568 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5569 ac_compiler=`set X $ac_compile; echo $2`
5570 { (ac_try="$ac_compiler --version >&5"
5571 case "(($ac_try" in
5572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573   *) ac_try_echo=$ac_try;;
5574 esac
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576   (eval "$ac_compiler --version >&5") 2>&5
5577   ac_status=$?
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); }
5580 { (ac_try="$ac_compiler -v >&5"
5581 case "(($ac_try" in
5582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583   *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586   (eval "$ac_compiler -v >&5") 2>&5
5587   ac_status=$?
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); }
5590 { (ac_try="$ac_compiler -V >&5"
5591 case "(($ac_try" in
5592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593   *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596   (eval "$ac_compiler -V >&5") 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }
5601 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5602 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5603 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606   cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h.  */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h.  */
5613 int
5614 main ()
5616 #ifndef __GNUC__
5617        choke me
5618 #endif
5620   ;
5621   return 0;
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (ac_try="$ac_compile"
5626 case "(($ac_try" in
5627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628   *) ac_try_echo=$ac_try;;
5629 esac
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631   (eval "$ac_compile") 2>conftest.er1
5632   ac_status=$?
5633   grep -v '^ *+' conftest.er1 >conftest.err
5634   rm -f conftest.er1
5635   cat conftest.err >&5
5636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); } && {
5638          test -z "$ac_cxx_werror_flag" ||
5639          test ! -s conftest.err
5640        } && test -s conftest.$ac_objext; then
5641   ac_compiler_gnu=yes
5642 else
5643   echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646         ac_compiler_gnu=no
5647 fi
5649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5652 fi
5653 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5654 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5655 GXX=`test $ac_compiler_gnu = yes && echo yes`
5656 ac_test_CXXFLAGS=${CXXFLAGS+set}
5657 ac_save_CXXFLAGS=$CXXFLAGS
5658 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5659 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5660 if test "${ac_cv_prog_cxx_g+set}" = set; then
5661   echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5664    ac_cxx_werror_flag=yes
5665    ac_cv_prog_cxx_g=no
5666    CXXFLAGS="-g"
5667    cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h.  */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h.  */
5674 int
5675 main ()
5678   ;
5679   return 0;
5681 _ACEOF
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5684 case "(($ac_try" in
5685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686   *) ac_try_echo=$ac_try;;
5687 esac
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689   (eval "$ac_compile") 2>conftest.er1
5690   ac_status=$?
5691   grep -v '^ *+' conftest.er1 >conftest.err
5692   rm -f conftest.er1
5693   cat conftest.err >&5
5694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695   (exit $ac_status); } && {
5696          test -z "$ac_cxx_werror_flag" ||
5697          test ! -s conftest.err
5698        } && test -s conftest.$ac_objext; then
5699   ac_cv_prog_cxx_g=yes
5700 else
5701   echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5704         CXXFLAGS=""
5705       cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5712 int
5713 main ()
5716   ;
5717   return 0;
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5722 case "(($ac_try" in
5723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724   *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727   (eval "$ac_compile") 2>conftest.er1
5728   ac_status=$?
5729   grep -v '^ *+' conftest.er1 >conftest.err
5730   rm -f conftest.er1
5731   cat conftest.err >&5
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); } && {
5734          test -z "$ac_cxx_werror_flag" ||
5735          test ! -s conftest.err
5736        } && test -s conftest.$ac_objext; then
5737   :
5738 else
5739   echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5743          CXXFLAGS="-g"
5744          cat >conftest.$ac_ext <<_ACEOF
5745 /* confdefs.h.  */
5746 _ACEOF
5747 cat confdefs.h >>conftest.$ac_ext
5748 cat >>conftest.$ac_ext <<_ACEOF
5749 /* end confdefs.h.  */
5751 int
5752 main ()
5755   ;
5756   return 0;
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (ac_try="$ac_compile"
5761 case "(($ac_try" in
5762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763   *) ac_try_echo=$ac_try;;
5764 esac
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766   (eval "$ac_compile") 2>conftest.er1
5767   ac_status=$?
5768   grep -v '^ *+' conftest.er1 >conftest.err
5769   rm -f conftest.er1
5770   cat conftest.err >&5
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } && {
5773          test -z "$ac_cxx_werror_flag" ||
5774          test ! -s conftest.err
5775        } && test -s conftest.$ac_objext; then
5776   ac_cv_prog_cxx_g=yes
5777 else
5778   echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.$ac_ext >&5
5782 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785 fi
5787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5788 fi
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5792 fi
5793 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5794 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5795 if test "$ac_test_CXXFLAGS" = set; then
5796   CXXFLAGS=$ac_save_CXXFLAGS
5797 elif test $ac_cv_prog_cxx_g = yes; then
5798   if test "$GXX" = yes; then
5799     CXXFLAGS="-g -O2"
5800   else
5801     CXXFLAGS="-g"
5802   fi
5803 else
5804   if test "$GXX" = yes; then
5805     CXXFLAGS="-O2"
5806   else
5807     CXXFLAGS=
5808   fi
5809 fi
5810 ac_ext=cpp
5811 ac_cpp='$CXXCPP $CPPFLAGS'
5812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5816 depcc="$CXX"  am_compiler_list=
5818 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5819 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5820 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5824   # We make a subdir and do the tests there.  Otherwise we can end up
5825   # making bogus files that we don't know about and never remove.  For
5826   # instance it was reported that on HP-UX the gcc test will end up
5827   # making a dummy file named `D' -- because `-MD' means `put the output
5828   # in D'.
5829   mkdir conftest.dir
5830   # Copy depcomp to subdir because otherwise we won't find it if we're
5831   # using a relative directory.
5832   cp "$am_depcomp" conftest.dir
5833   cd conftest.dir
5834   # We will build objects and dependencies in a subdirectory because
5835   # it helps to detect inapplicable dependency modes.  For instance
5836   # both Tru64's cc and ICC support -MD to output dependencies as a
5837   # side effect of compilation, but ICC will put the dependencies in
5838   # the current directory while Tru64 will put them in the object
5839   # directory.
5840   mkdir sub
5842   am_cv_CXX_dependencies_compiler_type=none
5843   if test "$am_compiler_list" = ""; then
5844      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5845   fi
5846   for depmode in $am_compiler_list; do
5847     # Setup a source with many dependencies, because some compilers
5848     # like to wrap large dependency lists on column 80 (with \), and
5849     # we should not choose a depcomp mode which is confused by this.
5850     #
5851     # We need to recreate these files for each test, as the compiler may
5852     # overwrite some of them when testing with obscure command lines.
5853     # This happens at least with the AIX C compiler.
5854     : > sub/conftest.c
5855     for i in 1 2 3 4 5 6; do
5856       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5857       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5858       # Solaris 8's {/usr,}/bin/sh.
5859       touch sub/conftst$i.h
5860     done
5861     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5863     case $depmode in
5864     nosideeffect)
5865       # after this tag, mechanisms are not by side-effect, so they'll
5866       # only be used when explicitly requested
5867       if test "x$enable_dependency_tracking" = xyes; then
5868         continue
5869       else
5870         break
5871       fi
5872       ;;
5873     none) break ;;
5874     esac
5875     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5876     # mode.  It turns out that the SunPro C++ compiler does not properly
5877     # handle `-M -o', and we need to detect this.
5878     if depmode=$depmode \
5879        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5880        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5881        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5882          >/dev/null 2>conftest.err &&
5883        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5884        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5885        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5886       # icc doesn't choke on unknown options, it will just issue warnings
5887       # or remarks (even with -Werror).  So we grep stderr for any message
5888       # that says an option was ignored or not supported.
5889       # When given -MP, icc 7.0 and 7.1 complain thusly:
5890       #   icc: Command line warning: ignoring option '-M'; no argument required
5891       # The diagnosis changed in icc 8.0:
5892       #   icc: Command line remark: option '-MP' not supported
5893       if (grep 'ignoring option' conftest.err ||
5894           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5895         am_cv_CXX_dependencies_compiler_type=$depmode
5896         break
5897       fi
5898     fi
5899   done
5901   cd ..
5902   rm -rf conftest.dir
5903 else
5904   am_cv_CXX_dependencies_compiler_type=none
5905 fi
5907 fi
5908 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5909 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5910 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5914 if
5915   test "x$enable_dependency_tracking" != xno \
5916   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5917   am__fastdepCXX_TRUE=
5918   am__fastdepCXX_FALSE='#'
5919 else
5920   am__fastdepCXX_TRUE='#'
5921   am__fastdepCXX_FALSE=
5922 fi
5927 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5928     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5929     (test "X$CXX" != "Xg++"))) ; then
5930   ac_ext=cpp
5931 ac_cpp='$CXXCPP $CPPFLAGS'
5932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5935 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5936 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5937 if test -z "$CXXCPP"; then
5938   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941       # Double quotes because CXXCPP needs to be expanded
5942     for CXXCPP in "$CXX -E" "/lib/cpp"
5943     do
5944       ac_preproc_ok=false
5945 for ac_cxx_preproc_warn_flag in '' yes
5946 do
5947   # Use a header file that comes with gcc, so configuring glibc
5948   # with a fresh cross-compiler works.
5949   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5950   # <limits.h> exists even on freestanding compilers.
5951   # On the NeXT, cc -E runs the code through the compiler's parser,
5952   # not just through cpp. "Syntax error" is here to catch this case.
5953   cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h.  */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h.  */
5959 #ifdef __STDC__
5960 # include <limits.h>
5961 #else
5962 # include <assert.h>
5963 #endif
5964                      Syntax error
5965 _ACEOF
5966 if { (ac_try="$ac_cpp conftest.$ac_ext"
5967 case "(($ac_try" in
5968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969   *) ac_try_echo=$ac_try;;
5970 esac
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5973   ac_status=$?
5974   grep -v '^ *+' conftest.er1 >conftest.err
5975   rm -f conftest.er1
5976   cat conftest.err >&5
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); } >/dev/null && {
5979          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5980          test ! -s conftest.err
5981        }; then
5982   :
5983 else
5984   echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.$ac_ext >&5
5987   # Broken: fails on valid input.
5988 continue
5989 fi
5991 rm -f conftest.err conftest.$ac_ext
5993   # OK, works on sane cases.  Now check whether nonexistent headers
5994   # can be detected and how.
5995   cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h.  */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h.  */
6001 #include <ac_nonexistent.h>
6002 _ACEOF
6003 if { (ac_try="$ac_cpp conftest.$ac_ext"
6004 case "(($ac_try" in
6005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006   *) ac_try_echo=$ac_try;;
6007 esac
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6010   ac_status=$?
6011   grep -v '^ *+' conftest.er1 >conftest.err
6012   rm -f conftest.er1
6013   cat conftest.err >&5
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } >/dev/null && {
6016          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6017          test ! -s conftest.err
6018        }; then
6019   # Broken: success on invalid input.
6020 continue
6021 else
6022   echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025   # Passes both tests.
6026 ac_preproc_ok=:
6027 break
6028 fi
6030 rm -f conftest.err conftest.$ac_ext
6032 done
6033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6034 rm -f conftest.err conftest.$ac_ext
6035 if $ac_preproc_ok; then
6036   break
6037 fi
6039     done
6040     ac_cv_prog_CXXCPP=$CXXCPP
6042 fi
6043   CXXCPP=$ac_cv_prog_CXXCPP
6044 else
6045   ac_cv_prog_CXXCPP=$CXXCPP
6046 fi
6047 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6048 echo "${ECHO_T}$CXXCPP" >&6; }
6049 ac_preproc_ok=false
6050 for ac_cxx_preproc_warn_flag in '' yes
6051 do
6052   # Use a header file that comes with gcc, so configuring glibc
6053   # with a fresh cross-compiler works.
6054   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6055   # <limits.h> exists even on freestanding compilers.
6056   # On the NeXT, cc -E runs the code through the compiler's parser,
6057   # not just through cpp. "Syntax error" is here to catch this case.
6058   cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h.  */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h.  */
6064 #ifdef __STDC__
6065 # include <limits.h>
6066 #else
6067 # include <assert.h>
6068 #endif
6069                      Syntax error
6070 _ACEOF
6071 if { (ac_try="$ac_cpp conftest.$ac_ext"
6072 case "(($ac_try" in
6073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074   *) ac_try_echo=$ac_try;;
6075 esac
6076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6077   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6078   ac_status=$?
6079   grep -v '^ *+' conftest.er1 >conftest.err
6080   rm -f conftest.er1
6081   cat conftest.err >&5
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } >/dev/null && {
6084          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6085          test ! -s conftest.err
6086        }; then
6087   :
6088 else
6089   echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092   # Broken: fails on valid input.
6093 continue
6094 fi
6096 rm -f conftest.err conftest.$ac_ext
6098   # OK, works on sane cases.  Now check whether nonexistent headers
6099   # can be detected and how.
6100   cat >conftest.$ac_ext <<_ACEOF
6101 /* confdefs.h.  */
6102 _ACEOF
6103 cat confdefs.h >>conftest.$ac_ext
6104 cat >>conftest.$ac_ext <<_ACEOF
6105 /* end confdefs.h.  */
6106 #include <ac_nonexistent.h>
6107 _ACEOF
6108 if { (ac_try="$ac_cpp conftest.$ac_ext"
6109 case "(($ac_try" in
6110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111   *) ac_try_echo=$ac_try;;
6112 esac
6113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6115   ac_status=$?
6116   grep -v '^ *+' conftest.er1 >conftest.err
6117   rm -f conftest.er1
6118   cat conftest.err >&5
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); } >/dev/null && {
6121          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6122          test ! -s conftest.err
6123        }; then
6124   # Broken: success on invalid input.
6125 continue
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130   # Passes both tests.
6131 ac_preproc_ok=:
6132 break
6133 fi
6135 rm -f conftest.err conftest.$ac_ext
6137 done
6138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6139 rm -f conftest.err conftest.$ac_ext
6140 if $ac_preproc_ok; then
6141   :
6142 else
6143   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6144 See \`config.log' for more details." >&5
6145 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6146 See \`config.log' for more details." >&2;}
6147    { (exit 1); exit 1; }; }
6148 fi
6150 ac_ext=cpp
6151 ac_cpp='$CXXCPP $CPPFLAGS'
6152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6156 fi
6159 ac_ext=f
6160 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6161 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6163 if test -n "$ac_tool_prefix"; then
6164   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
6165   do
6166     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170 if test "${ac_cv_prog_F77+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   if test -n "$F77"; then
6174   ac_cv_prog_F77="$F77" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181   for ac_exec_ext in '' $ac_executable_extensions; do
6182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188 done
6189 IFS=$as_save_IFS
6191 fi
6192 fi
6193 F77=$ac_cv_prog_F77
6194 if test -n "$F77"; then
6195   { echo "$as_me:$LINENO: result: $F77" >&5
6196 echo "${ECHO_T}$F77" >&6; }
6197 else
6198   { echo "$as_me:$LINENO: result: no" >&5
6199 echo "${ECHO_T}no" >&6; }
6200 fi
6203     test -n "$F77" && break
6204   done
6205 fi
6206 if test -z "$F77"; then
6207   ac_ct_F77=$F77
6208   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
6209 do
6210   # Extract the first word of "$ac_prog", so it can be a program name with args.
6211 set dummy $ac_prog; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   if test -n "$ac_ct_F77"; then
6218   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6219 else
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221 for as_dir in $PATH
6222 do
6223   IFS=$as_save_IFS
6224   test -z "$as_dir" && as_dir=.
6225   for ac_exec_ext in '' $ac_executable_extensions; do
6226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227     ac_cv_prog_ac_ct_F77="$ac_prog"
6228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229     break 2
6230   fi
6231 done
6232 done
6233 IFS=$as_save_IFS
6235 fi
6236 fi
6237 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6238 if test -n "$ac_ct_F77"; then
6239   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6240 echo "${ECHO_T}$ac_ct_F77" >&6; }
6241 else
6242   { echo "$as_me:$LINENO: result: no" >&5
6243 echo "${ECHO_T}no" >&6; }
6244 fi
6247   test -n "$ac_ct_F77" && break
6248 done
6250   if test "x$ac_ct_F77" = x; then
6251     F77=""
6252   else
6253     case $cross_compiling:$ac_tool_warned in
6254 yes:)
6255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6256 whose name does not start with the host triplet.  If you think this
6257 configuration is useful to you, please write to autoconf@gnu.org." >&5
6258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6259 whose name does not start with the host triplet.  If you think this
6260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6261 ac_tool_warned=yes ;;
6262 esac
6263     F77=$ac_ct_F77
6264   fi
6265 fi
6268 # Provide some information about the compiler.
6269 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6270 ac_compiler=`set X $ac_compile; echo $2`
6271 { (ac_try="$ac_compiler --version >&5"
6272 case "(($ac_try" in
6273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274   *) ac_try_echo=$ac_try;;
6275 esac
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277   (eval "$ac_compiler --version >&5") 2>&5
6278   ac_status=$?
6279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280   (exit $ac_status); }
6281 { (ac_try="$ac_compiler -v >&5"
6282 case "(($ac_try" in
6283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284   *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287   (eval "$ac_compiler -v >&5") 2>&5
6288   ac_status=$?
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); }
6291 { (ac_try="$ac_compiler -V >&5"
6292 case "(($ac_try" in
6293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294   *) ac_try_echo=$ac_try;;
6295 esac
6296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297   (eval "$ac_compiler -V >&5") 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }
6301 rm -f a.out
6303 # If we don't use `.F' as extension, the preprocessor is not run on the
6304 # input file.  (Note that this only needs to work for GNU compilers.)
6305 ac_save_ext=$ac_ext
6306 ac_ext=F
6307 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6308 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6309 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6310   echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312   cat >conftest.$ac_ext <<_ACEOF
6313       program main
6314 #ifndef __GNUC__
6315        choke me
6316 #endif
6318       end
6319 _ACEOF
6320 rm -f conftest.$ac_objext
6321 if { (ac_try="$ac_compile"
6322 case "(($ac_try" in
6323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324   *) ac_try_echo=$ac_try;;
6325 esac
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327   (eval "$ac_compile") 2>conftest.er1
6328   ac_status=$?
6329   grep -v '^ *+' conftest.er1 >conftest.err
6330   rm -f conftest.er1
6331   cat conftest.err >&5
6332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333   (exit $ac_status); } && {
6334          test -z "$ac_f77_werror_flag" ||
6335          test ! -s conftest.err
6336        } && test -s conftest.$ac_objext; then
6337   ac_compiler_gnu=yes
6338 else
6339   echo "$as_me: failed program was:" >&5
6340 sed 's/^/| /' conftest.$ac_ext >&5
6342         ac_compiler_gnu=no
6343 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6348 fi
6349 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6350 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6351 ac_ext=$ac_save_ext
6352 ac_test_FFLAGS=${FFLAGS+set}
6353 ac_save_FFLAGS=$FFLAGS
6354 FFLAGS=
6355 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6356 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_f77_g+set}" = set; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   FFLAGS=-g
6361 cat >conftest.$ac_ext <<_ACEOF
6362       program main
6364       end
6365 _ACEOF
6366 rm -f conftest.$ac_objext
6367 if { (ac_try="$ac_compile"
6368 case "(($ac_try" in
6369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370   *) ac_try_echo=$ac_try;;
6371 esac
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373   (eval "$ac_compile") 2>conftest.er1
6374   ac_status=$?
6375   grep -v '^ *+' conftest.er1 >conftest.err
6376   rm -f conftest.er1
6377   cat conftest.err >&5
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } && {
6380          test -z "$ac_f77_werror_flag" ||
6381          test ! -s conftest.err
6382        } && test -s conftest.$ac_objext; then
6383   ac_cv_prog_f77_g=yes
6384 else
6385   echo "$as_me: failed program was:" >&5
6386 sed 's/^/| /' conftest.$ac_ext >&5
6388         ac_cv_prog_f77_g=no
6389 fi
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393 fi
6394 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6395 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6396 if test "$ac_test_FFLAGS" = set; then
6397   FFLAGS=$ac_save_FFLAGS
6398 elif test $ac_cv_prog_f77_g = yes; then
6399   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6400     FFLAGS="-g -O2"
6401   else
6402     FFLAGS="-g"
6403   fi
6404 else
6405   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6406     FFLAGS="-O2"
6407   else
6408     FFLAGS=
6409   fi
6410 fi
6412 G77=`test $ac_compiler_gnu = yes && echo yes`
6413 ac_ext=c
6414 ac_cpp='$CPP $CPPFLAGS'
6415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6421 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6422 # find the maximum length of command line arguments
6423 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6424 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6425 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6426   echo $ECHO_N "(cached) $ECHO_C" >&6
6427 else
6428     i=0
6429   teststring="ABCD"
6431   case $build_os in
6432   msdosdjgpp*)
6433     # On DJGPP, this test can blow up pretty badly due to problems in libc
6434     # (any single argument exceeding 2000 bytes causes a buffer overrun
6435     # during glob expansion).  Even if it were fixed, the result of this
6436     # check would be larger than it should be.
6437     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6438     ;;
6440   gnu*)
6441     # Under GNU Hurd, this test is not required because there is
6442     # no limit to the length of command line arguments.
6443     # Libtool will interpret -1 as no limit whatsoever
6444     lt_cv_sys_max_cmd_len=-1;
6445     ;;
6447   cygwin* | mingw*)
6448     # On Win9x/ME, this test blows up -- it succeeds, but takes
6449     # about 5 minutes as the teststring grows exponentially.
6450     # Worse, since 9x/ME are not pre-emptively multitasking,
6451     # you end up with a "frozen" computer, even though with patience
6452     # the test eventually succeeds (with a max line length of 256k).
6453     # Instead, let's just punt: use the minimum linelength reported by
6454     # all of the supported platforms: 8192 (on NT/2K/XP).
6455     lt_cv_sys_max_cmd_len=8192;
6456     ;;
6458   amigaos*)
6459     # On AmigaOS with pdksh, this test takes hours, literally.
6460     # So we just punt and use a minimum line length of 8192.
6461     lt_cv_sys_max_cmd_len=8192;
6462     ;;
6464   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6465     # This has been around since 386BSD, at least.  Likely further.
6466     if test -x /sbin/sysctl; then
6467       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6468     elif test -x /usr/sbin/sysctl; then
6469       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6470     else
6471       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6472     fi
6473     # And add a safety zone
6474     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6475     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6476     ;;
6478   interix*)
6479     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6480     lt_cv_sys_max_cmd_len=196608
6481     ;;
6483   osf*)
6484     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6485     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6486     # nice to cause kernel panics so lets avoid the loop below.
6487     # First set a reasonable default.
6488     lt_cv_sys_max_cmd_len=16384
6489     #
6490     if test -x /sbin/sysconfig; then
6491       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6492         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6493       esac
6494     fi
6495     ;;
6496   sco3.2v5*)
6497     lt_cv_sys_max_cmd_len=102400
6498     ;;
6499   sysv5* | sco5v6* | sysv4.2uw2*)
6500     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6501     if test -n "$kargmax"; then
6502       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6503     else
6504       lt_cv_sys_max_cmd_len=32768
6505     fi
6506     ;;
6507   *)
6508     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6509     if test -n "$lt_cv_sys_max_cmd_len"; then
6510       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6511       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6512     else
6513       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6514       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6515                = "XX$teststring") >/dev/null 2>&1 &&
6516               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6517               lt_cv_sys_max_cmd_len=$new_result &&
6518               test $i != 17 # 1/2 MB should be enough
6519       do
6520         i=`expr $i + 1`
6521         teststring=$teststring$teststring
6522       done
6523       teststring=
6524       # Add a significant safety factor because C++ compilers can tack on massive
6525       # amounts of additional arguments before passing them to the linker.
6526       # It appears as though 1/2 is a usable value.
6527       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6528     fi
6529     ;;
6530   esac
6532 fi
6534 if test -n $lt_cv_sys_max_cmd_len ; then
6535   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6536 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6537 else
6538   { echo "$as_me:$LINENO: result: none" >&5
6539 echo "${ECHO_T}none" >&6; }
6540 fi
6546 # Check for command to grab the raw symbol name followed by C symbol from nm.
6547 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6548 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6549 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6553 # These are sane defaults that work on at least a few old systems.
6554 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6556 # Character class describing NM global symbol codes.
6557 symcode='[BCDEGRST]'
6559 # Regexp to match symbols that can be accessed directly from C.
6560 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6562 # Transform an extracted symbol line into a proper C declaration
6563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6565 # Transform an extracted symbol line into symbol name and symbol address
6566 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'"
6568 # Define system-specific variables.
6569 case $host_os in
6570 aix*)
6571   symcode='[BCDT]'
6572   ;;
6573 cygwin* | mingw* | pw32*)
6574   symcode='[ABCDGISTW]'
6575   ;;
6576 hpux*) # Its linker distinguishes data from code symbols
6577   if test "$host_cpu" = ia64; then
6578     symcode='[ABCDEGRST]'
6579   fi
6580   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6581   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'"
6582   ;;
6583 linux* | k*bsd*-gnu)
6584   if test "$host_cpu" = ia64; then
6585     symcode='[ABCDGIRSTW]'
6586     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6587     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'"
6588   fi
6589   ;;
6590 irix* | nonstopux*)
6591   symcode='[BCDEGRST]'
6592   ;;
6593 osf*)
6594   symcode='[BCDEGQRST]'
6595   ;;
6596 solaris*)
6597   symcode='[BDRT]'
6598   ;;
6599 sco3.2v5*)
6600   symcode='[DT]'
6601   ;;
6602 sysv4.2uw2*)
6603   symcode='[DT]'
6604   ;;
6605 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6606   symcode='[ABDT]'
6607   ;;
6608 sysv4)
6609   symcode='[DFNSTU]'
6610   ;;
6611 esac
6613 # Handle CRLF in mingw tool chain
6614 opt_cr=
6615 case $build_os in
6616 mingw*)
6617   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6618   ;;
6619 esac
6621 # If we're using GNU nm, then use its standard symbol codes.
6622 case `$NM -V 2>&1` in
6623 *GNU* | *'with BFD'*)
6624   symcode='[ABCDGIRSTW]' ;;
6625 esac
6627 # Try without a prefix undercore, then with it.
6628 for ac_symprfx in "" "_"; do
6630   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6631   symxfrm="\\1 $ac_symprfx\\2 \\2"
6633   # Write the raw and C identifiers.
6634   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6636   # Check to see that the pipe works correctly.
6637   pipe_works=no
6639   rm -f conftest*
6640   cat > conftest.$ac_ext <<EOF
6641 #ifdef __cplusplus
6642 extern "C" {
6643 #endif
6644 char nm_test_var;
6645 void nm_test_func(){}
6646 #ifdef __cplusplus
6648 #endif
6649 int main(){nm_test_var='a';nm_test_func();return(0);}
6650 EOF
6652   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6653   (eval $ac_compile) 2>&5
6654   ac_status=$?
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); }; then
6657     # Now try to grab the symbols.
6658     nlist=conftest.nm
6659     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6660   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6661   ac_status=$?
6662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663   (exit $ac_status); } && test -s "$nlist"; then
6664       # Try sorting and uniquifying the output.
6665       if sort "$nlist" | uniq > "$nlist"T; then
6666         mv -f "$nlist"T "$nlist"
6667       else
6668         rm -f "$nlist"T
6669       fi
6671       # Make sure that we snagged all the symbols we need.
6672       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6673         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6674           cat <<EOF > conftest.$ac_ext
6675 #ifdef __cplusplus
6676 extern "C" {
6677 #endif
6679 EOF
6680           # Now generate the symbol file.
6681           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6683           cat <<EOF >> conftest.$ac_ext
6684 #if defined (__STDC__) && __STDC__
6685 # define lt_ptr_t void *
6686 #else
6687 # define lt_ptr_t char *
6688 # define const
6689 #endif
6691 /* The mapping between symbol names and symbols. */
6692 const struct {
6693   const char *name;
6694   lt_ptr_t address;
6696 lt_preloaded_symbols[] =
6698 EOF
6699           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6700           cat <<\EOF >> conftest.$ac_ext
6701   {0, (lt_ptr_t) 0}
6702 };
6704 #ifdef __cplusplus
6706 #endif
6707 EOF
6708           # Now try linking the two files.
6709           mv conftest.$ac_objext conftstm.$ac_objext
6710           lt_save_LIBS="$LIBS"
6711           lt_save_CFLAGS="$CFLAGS"
6712           LIBS="conftstm.$ac_objext"
6713           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6714           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6715   (eval $ac_link) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6719             pipe_works=yes
6720           fi
6721           LIBS="$lt_save_LIBS"
6722           CFLAGS="$lt_save_CFLAGS"
6723         else
6724           echo "cannot find nm_test_func in $nlist" >&5
6725         fi
6726       else
6727         echo "cannot find nm_test_var in $nlist" >&5
6728       fi
6729     else
6730       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6731     fi
6732   else
6733     echo "$progname: failed program was:" >&5
6734     cat conftest.$ac_ext >&5
6735   fi
6736   rm -rf conftest* conftst*
6738   # Do not use the global_symbol_pipe unless it works.
6739   if test "$pipe_works" = yes; then
6740     break
6741   else
6742     lt_cv_sys_global_symbol_pipe=
6743   fi
6744 done
6746 fi
6748 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6749   lt_cv_sys_global_symbol_to_cdecl=
6750 fi
6751 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6752   { echo "$as_me:$LINENO: result: failed" >&5
6753 echo "${ECHO_T}failed" >&6; }
6754 else
6755   { echo "$as_me:$LINENO: result: ok" >&5
6756 echo "${ECHO_T}ok" >&6; }
6757 fi
6759 { echo "$as_me:$LINENO: checking for objdir" >&5
6760 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6761 if test "${lt_cv_objdir+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   rm -f .libs 2>/dev/null
6765 mkdir .libs 2>/dev/null
6766 if test -d .libs; then
6767   lt_cv_objdir=.libs
6768 else
6769   # MS-DOS does not allow filenames that begin with a dot.
6770   lt_cv_objdir=_libs
6771 fi
6772 rmdir .libs 2>/dev/null
6773 fi
6774 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6775 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6776 objdir=$lt_cv_objdir
6782 case $host_os in
6783 aix3*)
6784   # AIX sometimes has problems with the GCC collect2 program.  For some
6785   # reason, if we set the COLLECT_NAMES environment variable, the problems
6786   # vanish in a puff of smoke.
6787   if test "X${COLLECT_NAMES+set}" != Xset; then
6788     COLLECT_NAMES=
6789     export COLLECT_NAMES
6790   fi
6791   ;;
6792 esac
6794 # Sed substitution that helps us do robust quoting.  It backslashifies
6795 # metacharacters that are still active within double-quoted strings.
6796 Xsed='sed -e 1s/^X//'
6797 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6799 # Same as above, but do not quote variable references.
6800 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6802 # Sed substitution to delay expansion of an escaped shell variable in a
6803 # double_quote_subst'ed string.
6804 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6806 # Sed substitution to avoid accidental globbing in evaled expressions
6807 no_glob_subst='s/\*/\\\*/g'
6809 # Constants:
6810 rm="rm -f"
6812 # Global variables:
6813 default_ofile=libtool
6814 can_build_shared=yes
6816 # All known linkers require a `.a' archive for static linking (except MSVC,
6817 # which needs '.lib').
6818 libext=a
6819 ltmain="$ac_aux_dir/ltmain.sh"
6820 ofile="$default_ofile"
6821 with_gnu_ld="$lt_cv_prog_gnu_ld"
6823 if test -n "$ac_tool_prefix"; then
6824   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}ar; ac_word=$2
6826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6828 if test "${ac_cv_prog_AR+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831   if test -n "$AR"; then
6832   ac_cv_prog_AR="$AR" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839   for ac_exec_ext in '' $ac_executable_extensions; do
6840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841     ac_cv_prog_AR="${ac_tool_prefix}ar"
6842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6849 fi
6850 fi
6851 AR=$ac_cv_prog_AR
6852 if test -n "$AR"; then
6853   { echo "$as_me:$LINENO: result: $AR" >&5
6854 echo "${ECHO_T}$AR" >&6; }
6855 else
6856   { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6858 fi
6861 fi
6862 if test -z "$ac_cv_prog_AR"; then
6863   ac_ct_AR=$AR
6864   # Extract the first word of "ar", so it can be a program name with args.
6865 set dummy ar; ac_word=$2
6866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   if test -n "$ac_ct_AR"; then
6872   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879   for ac_exec_ext in '' $ac_executable_extensions; do
6880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881     ac_cv_prog_ac_ct_AR="ar"
6882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6889 fi
6890 fi
6891 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6892 if test -n "$ac_ct_AR"; then
6893   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6894 echo "${ECHO_T}$ac_ct_AR" >&6; }
6895 else
6896   { echo "$as_me:$LINENO: result: no" >&5
6897 echo "${ECHO_T}no" >&6; }
6898 fi
6900   if test "x$ac_ct_AR" = x; then
6901     AR="false"
6902   else
6903     case $cross_compiling:$ac_tool_warned in
6904 yes:)
6905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6906 whose name does not start with the host triplet.  If you think this
6907 configuration is useful to you, please write to autoconf@gnu.org." >&5
6908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6909 whose name does not start with the host triplet.  If you think this
6910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6911 ac_tool_warned=yes ;;
6912 esac
6913     AR=$ac_ct_AR
6914   fi
6915 else
6916   AR="$ac_cv_prog_AR"
6917 fi
6919 if test -n "$ac_tool_prefix"; then
6920   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924 if test "${ac_cv_prog_RANLIB+set}" = set; then
6925   echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927   if test -n "$RANLIB"; then
6928   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933   IFS=$as_save_IFS
6934   test -z "$as_dir" && as_dir=.
6935   for ac_exec_ext in '' $ac_executable_extensions; do
6936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6939     break 2
6940   fi
6941 done
6942 done
6943 IFS=$as_save_IFS
6945 fi
6946 fi
6947 RANLIB=$ac_cv_prog_RANLIB
6948 if test -n "$RANLIB"; then
6949   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6950 echo "${ECHO_T}$RANLIB" >&6; }
6951 else
6952   { echo "$as_me:$LINENO: result: no" >&5
6953 echo "${ECHO_T}no" >&6; }
6954 fi
6957 fi
6958 if test -z "$ac_cv_prog_RANLIB"; then
6959   ac_ct_RANLIB=$RANLIB
6960   # Extract the first word of "ranlib", so it can be a program name with args.
6961 set dummy ranlib; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   if test -n "$ac_ct_RANLIB"; then
6968   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975   for ac_exec_ext in '' $ac_executable_extensions; do
6976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977     ac_cv_prog_ac_ct_RANLIB="ranlib"
6978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982 done
6983 IFS=$as_save_IFS
6985 fi
6986 fi
6987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6988 if test -n "$ac_ct_RANLIB"; then
6989   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6990 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6991 else
6992   { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6994 fi
6996   if test "x$ac_ct_RANLIB" = x; then
6997     RANLIB=":"
6998   else
6999     case $cross_compiling:$ac_tool_warned in
7000 yes:)
7001 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7002 whose name does not start with the host triplet.  If you think this
7003 configuration is useful to you, please write to autoconf@gnu.org." >&5
7004 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7005 whose name does not start with the host triplet.  If you think this
7006 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7007 ac_tool_warned=yes ;;
7008 esac
7009     RANLIB=$ac_ct_RANLIB
7010   fi
7011 else
7012   RANLIB="$ac_cv_prog_RANLIB"
7013 fi
7015 if test -n "$ac_tool_prefix"; then
7016   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7017 set dummy ${ac_tool_prefix}strip; ac_word=$2
7018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7020 if test "${ac_cv_prog_STRIP+set}" = set; then
7021   echo $ECHO_N "(cached) $ECHO_C" >&6
7022 else
7023   if test -n "$STRIP"; then
7024   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7025 else
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027 for as_dir in $PATH
7028 do
7029   IFS=$as_save_IFS
7030   test -z "$as_dir" && as_dir=.
7031   for ac_exec_ext in '' $ac_executable_extensions; do
7032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7033     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7035     break 2
7036   fi
7037 done
7038 done
7039 IFS=$as_save_IFS
7041 fi
7042 fi
7043 STRIP=$ac_cv_prog_STRIP
7044 if test -n "$STRIP"; then
7045   { echo "$as_me:$LINENO: result: $STRIP" >&5
7046 echo "${ECHO_T}$STRIP" >&6; }
7047 else
7048   { echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6; }
7050 fi
7053 fi
7054 if test -z "$ac_cv_prog_STRIP"; then
7055   ac_ct_STRIP=$STRIP
7056   # Extract the first word of "strip", so it can be a program name with args.
7057 set dummy strip; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   if test -n "$ac_ct_STRIP"; then
7064   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071   for ac_exec_ext in '' $ac_executable_extensions; do
7072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073     ac_cv_prog_ac_ct_STRIP="strip"
7074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078 done
7079 IFS=$as_save_IFS
7081 fi
7082 fi
7083 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7084 if test -n "$ac_ct_STRIP"; then
7085   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7086 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7087 else
7088   { echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6; }
7090 fi
7092   if test "x$ac_ct_STRIP" = x; then
7093     STRIP=":"
7094   else
7095     case $cross_compiling:$ac_tool_warned in
7096 yes:)
7097 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7098 whose name does not start with the host triplet.  If you think this
7099 configuration is useful to you, please write to autoconf@gnu.org." >&5
7100 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7101 whose name does not start with the host triplet.  If you think this
7102 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105     STRIP=$ac_ct_STRIP
7106   fi
7107 else
7108   STRIP="$ac_cv_prog_STRIP"
7109 fi
7112 old_CC="$CC"
7113 old_CFLAGS="$CFLAGS"
7115 # Set sane defaults for various variables
7116 test -z "$AR" && AR=ar
7117 test -z "$AR_FLAGS" && AR_FLAGS=cru
7118 test -z "$AS" && AS=as
7119 test -z "$CC" && CC=cc
7120 test -z "$LTCC" && LTCC=$CC
7121 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7122 test -z "$DLLTOOL" && DLLTOOL=dlltool
7123 test -z "$LD" && LD=ld
7124 test -z "$LN_S" && LN_S="ln -s"
7125 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7126 test -z "$NM" && NM=nm
7127 test -z "$SED" && SED=sed
7128 test -z "$OBJDUMP" && OBJDUMP=objdump
7129 test -z "$RANLIB" && RANLIB=:
7130 test -z "$STRIP" && STRIP=:
7131 test -z "$ac_objext" && ac_objext=o
7133 # Determine commands to create old-style static archives.
7134 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7135 old_postinstall_cmds='chmod 644 $oldlib'
7136 old_postuninstall_cmds=
7138 if test -n "$RANLIB"; then
7139   case $host_os in
7140   openbsd*)
7141     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7142     ;;
7143   *)
7144     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7145     ;;
7146   esac
7147   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7148 fi
7150 for cc_temp in $compiler""; do
7151   case $cc_temp in
7152     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7153     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7154     \-*) ;;
7155     *) break;;
7156   esac
7157 done
7158 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7161 # Only perform the check for file, if the check method requires it
7162 case $deplibs_check_method in
7163 file_magic*)
7164   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7165     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7166 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7167 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   case $MAGIC_CMD in
7171 [\\/*] |  ?:[\\/]*)
7172   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7173   ;;
7174 *)
7175   lt_save_MAGIC_CMD="$MAGIC_CMD"
7176   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7177   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7178   for ac_dir in $ac_dummy; do
7179     IFS="$lt_save_ifs"
7180     test -z "$ac_dir" && ac_dir=.
7181     if test -f $ac_dir/${ac_tool_prefix}file; then
7182       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7183       if test -n "$file_magic_test_file"; then
7184         case $deplibs_check_method in
7185         "file_magic "*)
7186           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7187           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7188           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7189             $EGREP "$file_magic_regex" > /dev/null; then
7190             :
7191           else
7192             cat <<EOF 1>&2
7194 *** Warning: the command libtool uses to detect shared libraries,
7195 *** $file_magic_cmd, produces output that libtool cannot recognize.
7196 *** The result is that libtool may fail to recognize shared libraries
7197 *** as such.  This will affect the creation of libtool libraries that
7198 *** depend on shared libraries, but programs linked with such libtool
7199 *** libraries will work regardless of this problem.  Nevertheless, you
7200 *** may want to report the problem to your system manager and/or to
7201 *** bug-libtool@gnu.org
7203 EOF
7204           fi ;;
7205         esac
7206       fi
7207       break
7208     fi
7209   done
7210   IFS="$lt_save_ifs"
7211   MAGIC_CMD="$lt_save_MAGIC_CMD"
7212   ;;
7213 esac
7214 fi
7216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7217 if test -n "$MAGIC_CMD"; then
7218   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7219 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7220 else
7221   { echo "$as_me:$LINENO: result: no" >&5
7222 echo "${ECHO_T}no" >&6; }
7223 fi
7225 if test -z "$lt_cv_path_MAGIC_CMD"; then
7226   if test -n "$ac_tool_prefix"; then
7227     { echo "$as_me:$LINENO: checking for file" >&5
7228 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7229 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   case $MAGIC_CMD in
7233 [\\/*] |  ?:[\\/]*)
7234   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7235   ;;
7236 *)
7237   lt_save_MAGIC_CMD="$MAGIC_CMD"
7238   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7239   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7240   for ac_dir in $ac_dummy; do
7241     IFS="$lt_save_ifs"
7242     test -z "$ac_dir" && ac_dir=.
7243     if test -f $ac_dir/file; then
7244       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7245       if test -n "$file_magic_test_file"; then
7246         case $deplibs_check_method in
7247         "file_magic "*)
7248           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7249           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7250           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7251             $EGREP "$file_magic_regex" > /dev/null; then
7252             :
7253           else
7254             cat <<EOF 1>&2
7256 *** Warning: the command libtool uses to detect shared libraries,
7257 *** $file_magic_cmd, produces output that libtool cannot recognize.
7258 *** The result is that libtool may fail to recognize shared libraries
7259 *** as such.  This will affect the creation of libtool libraries that
7260 *** depend on shared libraries, but programs linked with such libtool
7261 *** libraries will work regardless of this problem.  Nevertheless, you
7262 *** may want to report the problem to your system manager and/or to
7263 *** bug-libtool@gnu.org
7265 EOF
7266           fi ;;
7267         esac
7268       fi
7269       break
7270     fi
7271   done
7272   IFS="$lt_save_ifs"
7273   MAGIC_CMD="$lt_save_MAGIC_CMD"
7274   ;;
7275 esac
7276 fi
7278 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7279 if test -n "$MAGIC_CMD"; then
7280   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7281 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7282 else
7283   { echo "$as_me:$LINENO: result: no" >&5
7284 echo "${ECHO_T}no" >&6; }
7285 fi
7287   else
7288     MAGIC_CMD=:
7289   fi
7290 fi
7292   fi
7293   ;;
7294 esac
7297   case $host_os in
7298     rhapsody* | darwin*)
7299     if test -n "$ac_tool_prefix"; then
7300   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7305   echo $ECHO_N "(cached) $ECHO_C" >&6
7306 else
7307   if test -n "$DSYMUTIL"; then
7308   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315   for ac_exec_ext in '' $ac_executable_extensions; do
7316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7317     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7325 fi
7326 fi
7327 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7328 if test -n "$DSYMUTIL"; then
7329   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7330 echo "${ECHO_T}$DSYMUTIL" >&6; }
7331 else
7332   { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7334 fi
7337 fi
7338 if test -z "$ac_cv_prog_DSYMUTIL"; then
7339   ac_ct_DSYMUTIL=$DSYMUTIL
7340   # Extract the first word of "dsymutil", so it can be a program name with args.
7341 set dummy dsymutil; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347   if test -n "$ac_ct_DSYMUTIL"; then
7348   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355   for ac_exec_ext in '' $ac_executable_extensions; do
7356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7365 fi
7366 fi
7367 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7368 if test -n "$ac_ct_DSYMUTIL"; then
7369   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7370 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7371 else
7372   { echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6; }
7374 fi
7376   if test "x$ac_ct_DSYMUTIL" = x; then
7377     DSYMUTIL=":"
7378   else
7379     case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7382 whose name does not start with the host triplet.  If you think this
7383 configuration is useful to you, please write to autoconf@gnu.org." >&5
7384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7385 whose name does not start with the host triplet.  If you think this
7386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7387 ac_tool_warned=yes ;;
7388 esac
7389     DSYMUTIL=$ac_ct_DSYMUTIL
7390   fi
7391 else
7392   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7393 fi
7395     if test -n "$ac_tool_prefix"; then
7396   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7397 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7401   echo $ECHO_N "(cached) $ECHO_C" >&6
7402 else
7403   if test -n "$NMEDIT"; then
7404   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7405 else
7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7407 for as_dir in $PATH
7408 do
7409   IFS=$as_save_IFS
7410   test -z "$as_dir" && as_dir=.
7411   for ac_exec_ext in '' $ac_executable_extensions; do
7412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7413     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7415     break 2
7416   fi
7417 done
7418 done
7419 IFS=$as_save_IFS
7421 fi
7422 fi
7423 NMEDIT=$ac_cv_prog_NMEDIT
7424 if test -n "$NMEDIT"; then
7425   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7426 echo "${ECHO_T}$NMEDIT" >&6; }
7427 else
7428   { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7430 fi
7433 fi
7434 if test -z "$ac_cv_prog_NMEDIT"; then
7435   ac_ct_NMEDIT=$NMEDIT
7436   # Extract the first word of "nmedit", so it can be a program name with args.
7437 set dummy nmedit; ac_word=$2
7438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7441   echo $ECHO_N "(cached) $ECHO_C" >&6
7442 else
7443   if test -n "$ac_ct_NMEDIT"; then
7444   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449   IFS=$as_save_IFS
7450   test -z "$as_dir" && as_dir=.
7451   for ac_exec_ext in '' $ac_executable_extensions; do
7452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7453     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455     break 2
7456   fi
7457 done
7458 done
7459 IFS=$as_save_IFS
7461 fi
7462 fi
7463 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7464 if test -n "$ac_ct_NMEDIT"; then
7465   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7466 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7467 else
7468   { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7470 fi
7472   if test "x$ac_ct_NMEDIT" = x; then
7473     NMEDIT=":"
7474   else
7475     case $cross_compiling:$ac_tool_warned in
7476 yes:)
7477 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7478 whose name does not start with the host triplet.  If you think this
7479 configuration is useful to you, please write to autoconf@gnu.org." >&5
7480 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7481 whose name does not start with the host triplet.  If you think this
7482 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7483 ac_tool_warned=yes ;;
7484 esac
7485     NMEDIT=$ac_ct_NMEDIT
7486   fi
7487 else
7488   NMEDIT="$ac_cv_prog_NMEDIT"
7489 fi
7492     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7493 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7494 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   lt_cv_apple_cc_single_mod=no
7498       if test -z "${LT_MULTI_MODULE}"; then
7499    # By default we will add the -single_module flag. You can override
7500    # by either setting the environment variable LT_MULTI_MODULE
7501    # non-empty at configure time, or by adding -multi_module to the
7502    # link flags.
7503    echo "int foo(void){return 1;}" > conftest.c
7504    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7505      -dynamiclib ${wl}-single_module conftest.c
7506    if test -f libconftest.dylib; then
7507      lt_cv_apple_cc_single_mod=yes
7508      rm -rf libconftest.dylib*
7509    fi
7510    rm conftest.c
7511       fi
7512 fi
7513 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7514 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7515     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7516 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7517 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   lt_cv_ld_exported_symbols_list=no
7521       save_LDFLAGS=$LDFLAGS
7522       echo "_main" > conftest.sym
7523       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7524       cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h.  */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h.  */
7531 int
7532 main ()
7535   ;
7536   return 0;
7538 _ACEOF
7539 rm -f conftest.$ac_objext conftest$ac_exeext
7540 if { (ac_try="$ac_link"
7541 case "(($ac_try" in
7542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543   *) ac_try_echo=$ac_try;;
7544 esac
7545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546   (eval "$ac_link") 2>conftest.er1
7547   ac_status=$?
7548   grep -v '^ *+' conftest.er1 >conftest.err
7549   rm -f conftest.er1
7550   cat conftest.err >&5
7551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552   (exit $ac_status); } && {
7553          test -z "$ac_c_werror_flag" ||
7554          test ! -s conftest.err
7555        } && test -s conftest$ac_exeext &&
7556        $as_test_x conftest$ac_exeext; then
7557   lt_cv_ld_exported_symbols_list=yes
7558 else
7559   echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7562         lt_cv_ld_exported_symbols_list=no
7563 fi
7565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7566       conftest$ac_exeext conftest.$ac_ext
7567    LDFLAGS="$save_LDFLAGS"
7569 fi
7570 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7571 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7572     case $host_os in
7573     rhapsody* | darwin1.[0123])
7574       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7575     darwin1.*)
7576      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7577     darwin*)
7578       # if running on 10.5 or later, the deployment target defaults
7579       # to the OS version, if on x86, and 10.4, the deployment
7580       # target defaults to 10.4. Don't you love it?
7581       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7582    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7583      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7584    10.[012]*)
7585      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7586    10.*)
7587      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7588       esac
7589     ;;
7590   esac
7591     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7592       _lt_dar_single_mod='$single_module'
7593     fi
7594     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7595       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7596     else
7597       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7598     fi
7599     if test "$DSYMUTIL" != ":"; then
7600       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7601     else
7602       _lt_dsymutil=
7603     fi
7604     ;;
7605   esac
7608 enable_dlopen=no
7609 enable_win32_dll=no
7611 # Check whether --enable-libtool-lock was given.
7612 if test "${enable_libtool_lock+set}" = set; then
7613   enableval=$enable_libtool_lock;
7614 fi
7616 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7619 # Check whether --with-pic was given.
7620 if test "${with_pic+set}" = set; then
7621   withval=$with_pic; pic_mode="$withval"
7622 else
7623   pic_mode=default
7624 fi
7626 test -z "$pic_mode" && pic_mode=default
7628 # Use C for the default configuration in the libtool script
7629 tagname=
7630 lt_save_CC="$CC"
7631 ac_ext=c
7632 ac_cpp='$CPP $CPPFLAGS'
7633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7638 # Source file extension for C test sources.
7639 ac_ext=c
7641 # Object file extension for compiled C test sources.
7642 objext=o
7643 objext=$objext
7645 # Code to be used in simple compile tests
7646 lt_simple_compile_test_code="int some_variable = 0;"
7648 # Code to be used in simple link tests
7649 lt_simple_link_test_code='int main(){return(0);}'
7652 # If no C compiler was specified, use CC.
7653 LTCC=${LTCC-"$CC"}
7655 # If no C compiler flags were specified, use CFLAGS.
7656 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7658 # Allow CC to be a program name with arguments.
7659 compiler=$CC
7662 # save warnings/boilerplate of simple test code
7663 ac_outfile=conftest.$ac_objext
7664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7666 _lt_compiler_boilerplate=`cat conftest.err`
7667 $rm conftest*
7669 ac_outfile=conftest.$ac_objext
7670 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7672 _lt_linker_boilerplate=`cat conftest.err`
7673 $rm -r conftest*
7677 lt_prog_compiler_no_builtin_flag=
7679 if test "$GCC" = yes; then
7680   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7683 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7684 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7685 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7686   echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688   lt_cv_prog_compiler_rtti_exceptions=no
7689   ac_outfile=conftest.$ac_objext
7690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7691    lt_compiler_flag="-fno-rtti -fno-exceptions"
7692    # Insert the option either (1) after the last *FLAGS variable, or
7693    # (2) before a word containing "conftest.", or (3) at the end.
7694    # Note that $ac_compile itself does not contain backslashes and begins
7695    # with a dollar sign (not a hyphen), so the echo should work correctly.
7696    # The option is referenced via a variable to avoid confusing sed.
7697    lt_compile=`echo "$ac_compile" | $SED \
7698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7699    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7700    -e 's:$: $lt_compiler_flag:'`
7701    (eval echo "\"\$as_me:7701: $lt_compile\"" >&5)
7702    (eval "$lt_compile" 2>conftest.err)
7703    ac_status=$?
7704    cat conftest.err >&5
7705    echo "$as_me:7705: \$? = $ac_status" >&5
7706    if (exit $ac_status) && test -s "$ac_outfile"; then
7707      # The compiler can only warn and ignore the option if not recognized
7708      # So say no if there are warnings other than the usual output.
7709      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7710      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7711      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7712        lt_cv_prog_compiler_rtti_exceptions=yes
7713      fi
7714    fi
7715    $rm conftest*
7717 fi
7718 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7719 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7722     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7723 else
7724     :
7725 fi
7727 fi
7729 lt_prog_compiler_wl=
7730 lt_prog_compiler_pic=
7731 lt_prog_compiler_static=
7733 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7734 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7736   if test "$GCC" = yes; then
7737     lt_prog_compiler_wl='-Wl,'
7738     lt_prog_compiler_static='-static'
7740     case $host_os in
7741       aix*)
7742       # All AIX code is PIC.
7743       if test "$host_cpu" = ia64; then
7744         # AIX 5 now supports IA64 processor
7745         lt_prog_compiler_static='-Bstatic'
7746       fi
7747       ;;
7749     amigaos*)
7750       # FIXME: we need at least 68020 code to build shared libraries, but
7751       # adding the `-m68020' flag to GCC prevents building anything better,
7752       # like `-m68040'.
7753       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7754       ;;
7756     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7757       # PIC is the default for these OSes.
7758       ;;
7760     mingw* | cygwin* | pw32* | os2*)
7761       # This hack is so that the source file can tell whether it is being
7762       # built for inclusion in a dll (and should export symbols for example).
7763       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7764       # (--disable-auto-import) libraries
7765       lt_prog_compiler_pic='-DDLL_EXPORT'
7766       ;;
7768     darwin* | rhapsody*)
7769       # PIC is the default on this platform
7770       # Common symbols not allowed in MH_DYLIB files
7771       lt_prog_compiler_pic='-fno-common'
7772       ;;
7774     interix[3-9]*)
7775       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7776       # Instead, we relocate shared libraries at runtime.
7777       ;;
7779     msdosdjgpp*)
7780       # Just because we use GCC doesn't mean we suddenly get shared libraries
7781       # on systems that don't support them.
7782       lt_prog_compiler_can_build_shared=no
7783       enable_shared=no
7784       ;;
7786     sysv4*MP*)
7787       if test -d /usr/nec; then
7788         lt_prog_compiler_pic=-Kconform_pic
7789       fi
7790       ;;
7792     hpux*)
7793       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7794       # not for PA HP-UX.
7795       case $host_cpu in
7796       hppa*64*|ia64*)
7797         # +Z the default
7798         ;;
7799       *)
7800         lt_prog_compiler_pic='-fPIC'
7801         ;;
7802       esac
7803       ;;
7805     *)
7806       lt_prog_compiler_pic='-fPIC'
7807       ;;
7808     esac
7809   else
7810     # PORTME Check for flag to pass linker flags through the system compiler.
7811     case $host_os in
7812     aix*)
7813       lt_prog_compiler_wl='-Wl,'
7814       if test "$host_cpu" = ia64; then
7815         # AIX 5 now supports IA64 processor
7816         lt_prog_compiler_static='-Bstatic'
7817       else
7818         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7819       fi
7820       ;;
7821       darwin*)
7822         # PIC is the default on this platform
7823         # Common symbols not allowed in MH_DYLIB files
7824        case $cc_basename in
7825          xlc*)
7826          lt_prog_compiler_pic='-qnocommon'
7827          lt_prog_compiler_wl='-Wl,'
7828          ;;
7829        esac
7830        ;;
7832     mingw* | cygwin* | pw32* | os2*)
7833       # This hack is so that the source file can tell whether it is being
7834       # built for inclusion in a dll (and should export symbols for example).
7835       lt_prog_compiler_pic='-DDLL_EXPORT'
7836       ;;
7838     hpux9* | hpux10* | hpux11*)
7839       lt_prog_compiler_wl='-Wl,'
7840       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7841       # not for PA HP-UX.
7842       case $host_cpu in
7843       hppa*64*|ia64*)
7844         # +Z the default
7845         ;;
7846       *)
7847         lt_prog_compiler_pic='+Z'
7848         ;;
7849       esac
7850       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7851       lt_prog_compiler_static='${wl}-a ${wl}archive'
7852       ;;
7854     irix5* | irix6* | nonstopux*)
7855       lt_prog_compiler_wl='-Wl,'
7856       # PIC (with -KPIC) is the default.
7857       lt_prog_compiler_static='-non_shared'
7858       ;;
7860     newsos6)
7861       lt_prog_compiler_pic='-KPIC'
7862       lt_prog_compiler_static='-Bstatic'
7863       ;;
7865     linux* | k*bsd*-gnu)
7866       case $cc_basename in
7867       icc* | ecc*)
7868         lt_prog_compiler_wl='-Wl,'
7869         lt_prog_compiler_pic='-KPIC'
7870         lt_prog_compiler_static='-static'
7871         ;;
7872       pgcc* | pgf77* | pgf90* | pgf95*)
7873         # Portland Group compilers (*not* the Pentium gcc compiler,
7874         # which looks to be a dead project)
7875         lt_prog_compiler_wl='-Wl,'
7876         lt_prog_compiler_pic='-fpic'
7877         lt_prog_compiler_static='-Bstatic'
7878         ;;
7879       ccc*)
7880         lt_prog_compiler_wl='-Wl,'
7881         # All Alpha code is PIC.
7882         lt_prog_compiler_static='-non_shared'
7883         ;;
7884       *)
7885         case `$CC -V 2>&1 | sed 5q` in
7886         *Sun\ C*)
7887           # Sun C 5.9
7888           lt_prog_compiler_pic='-KPIC'
7889           lt_prog_compiler_static='-Bstatic'
7890           lt_prog_compiler_wl='-Wl,'
7891           ;;
7892         *Sun\ F*)
7893           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7894           lt_prog_compiler_pic='-KPIC'
7895           lt_prog_compiler_static='-Bstatic'
7896           lt_prog_compiler_wl=''
7897           ;;
7898         esac
7899         ;;
7900       esac
7901       ;;
7903     osf3* | osf4* | osf5*)
7904       lt_prog_compiler_wl='-Wl,'
7905       # All OSF/1 code is PIC.
7906       lt_prog_compiler_static='-non_shared'
7907       ;;
7909     rdos*)
7910       lt_prog_compiler_static='-non_shared'
7911       ;;
7913     solaris*)
7914       lt_prog_compiler_pic='-KPIC'
7915       lt_prog_compiler_static='-Bstatic'
7916       case $cc_basename in
7917       f77* | f90* | f95*)
7918         lt_prog_compiler_wl='-Qoption ld ';;
7919       *)
7920         lt_prog_compiler_wl='-Wl,';;
7921       esac
7922       ;;
7924     sunos4*)
7925       lt_prog_compiler_wl='-Qoption ld '
7926       lt_prog_compiler_pic='-PIC'
7927       lt_prog_compiler_static='-Bstatic'
7928       ;;
7930     sysv4 | sysv4.2uw2* | sysv4.3*)
7931       lt_prog_compiler_wl='-Wl,'
7932       lt_prog_compiler_pic='-KPIC'
7933       lt_prog_compiler_static='-Bstatic'
7934       ;;
7936     sysv4*MP*)
7937       if test -d /usr/nec ;then
7938         lt_prog_compiler_pic='-Kconform_pic'
7939         lt_prog_compiler_static='-Bstatic'
7940       fi
7941       ;;
7943     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7944       lt_prog_compiler_wl='-Wl,'
7945       lt_prog_compiler_pic='-KPIC'
7946       lt_prog_compiler_static='-Bstatic'
7947       ;;
7949     unicos*)
7950       lt_prog_compiler_wl='-Wl,'
7951       lt_prog_compiler_can_build_shared=no
7952       ;;
7954     uts4*)
7955       lt_prog_compiler_pic='-pic'
7956       lt_prog_compiler_static='-Bstatic'
7957       ;;
7959     *)
7960       lt_prog_compiler_can_build_shared=no
7961       ;;
7962     esac
7963   fi
7965 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7966 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7969 # Check to make sure the PIC flag actually works.
7971 if test -n "$lt_prog_compiler_pic"; then
7973 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7974 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7975 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7976   echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978   lt_cv_prog_compiler_pic_works=no
7979   ac_outfile=conftest.$ac_objext
7980    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7981    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7982    # Insert the option either (1) after the last *FLAGS variable, or
7983    # (2) before a word containing "conftest.", or (3) at the end.
7984    # Note that $ac_compile itself does not contain backslashes and begins
7985    # with a dollar sign (not a hyphen), so the echo should work correctly.
7986    # The option is referenced via a variable to avoid confusing sed.
7987    lt_compile=`echo "$ac_compile" | $SED \
7988    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7989    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7990    -e 's:$: $lt_compiler_flag:'`
7991    (eval echo "\"\$as_me:7991: $lt_compile\"" >&5)
7992    (eval "$lt_compile" 2>conftest.err)
7993    ac_status=$?
7994    cat conftest.err >&5
7995    echo "$as_me:7995: \$? = $ac_status" >&5
7996    if (exit $ac_status) && test -s "$ac_outfile"; then
7997      # The compiler can only warn and ignore the option if not recognized
7998      # So say no if there are warnings other than the usual output.
7999      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8000      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8001      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8002        lt_cv_prog_compiler_pic_works=yes
8003      fi
8004    fi
8005    $rm conftest*
8007 fi
8008 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8009 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8011 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8012     case $lt_prog_compiler_pic in
8013      "" | " "*) ;;
8014      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8015      esac
8016 else
8017     lt_prog_compiler_pic=
8018      lt_prog_compiler_can_build_shared=no
8019 fi
8021 fi
8022 case $host_os in
8023   # For platforms which do not support PIC, -DPIC is meaningless:
8024   *djgpp*)
8025     lt_prog_compiler_pic=
8026     ;;
8027   *)
8028     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8029     ;;
8030 esac
8033 # Check to make sure the static flag actually works.
8035 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8036 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8037 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8038 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8039   echo $ECHO_N "(cached) $ECHO_C" >&6
8040 else
8041   lt_cv_prog_compiler_static_works=no
8042    save_LDFLAGS="$LDFLAGS"
8043    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8044    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8045    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8046      # The linker can only warn and ignore the option if not recognized
8047      # So say no if there are warnings
8048      if test -s conftest.err; then
8049        # Append any errors to the config.log.
8050        cat conftest.err 1>&5
8051        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8052        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8053        if diff conftest.exp conftest.er2 >/dev/null; then
8054          lt_cv_prog_compiler_static_works=yes
8055        fi
8056      else
8057        lt_cv_prog_compiler_static_works=yes
8058      fi
8059    fi
8060    $rm -r conftest*
8061    LDFLAGS="$save_LDFLAGS"
8063 fi
8064 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8065 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8067 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8068     :
8069 else
8070     lt_prog_compiler_static=
8071 fi
8074 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8075 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8076 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8077   echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079   lt_cv_prog_compiler_c_o=no
8080    $rm -r conftest 2>/dev/null
8081    mkdir conftest
8082    cd conftest
8083    mkdir out
8084    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8086    lt_compiler_flag="-o out/conftest2.$ac_objext"
8087    # Insert the option either (1) after the last *FLAGS variable, or
8088    # (2) before a word containing "conftest.", or (3) at the end.
8089    # Note that $ac_compile itself does not contain backslashes and begins
8090    # with a dollar sign (not a hyphen), so the echo should work correctly.
8091    lt_compile=`echo "$ac_compile" | $SED \
8092    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8093    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8094    -e 's:$: $lt_compiler_flag:'`
8095    (eval echo "\"\$as_me:8095: $lt_compile\"" >&5)
8096    (eval "$lt_compile" 2>out/conftest.err)
8097    ac_status=$?
8098    cat out/conftest.err >&5
8099    echo "$as_me:8099: \$? = $ac_status" >&5
8100    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8101    then
8102      # The compiler can only warn and ignore the option if not recognized
8103      # So say no if there are warnings
8104      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8105      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8106      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8107        lt_cv_prog_compiler_c_o=yes
8108      fi
8109    fi
8110    chmod u+w . 2>&5
8111    $rm conftest*
8112    # SGI C++ compiler will create directory out/ii_files/ for
8113    # template instantiation
8114    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8115    $rm out/* && rmdir out
8116    cd ..
8117    rmdir conftest
8118    $rm conftest*
8120 fi
8121 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8122 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8125 hard_links="nottested"
8126 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8127   # do not overwrite the value of need_locks provided by the user
8128   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8129 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8130   hard_links=yes
8131   $rm conftest*
8132   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8133   touch conftest.a
8134   ln conftest.a conftest.b 2>&5 || hard_links=no
8135   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8136   { echo "$as_me:$LINENO: result: $hard_links" >&5
8137 echo "${ECHO_T}$hard_links" >&6; }
8138   if test "$hard_links" = no; then
8139     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8140 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8141     need_locks=warn
8142   fi
8143 else
8144   need_locks=no
8145 fi
8147 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8148 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8150   runpath_var=
8151   allow_undefined_flag=
8152   enable_shared_with_static_runtimes=no
8153   archive_cmds=
8154   archive_expsym_cmds=
8155   old_archive_From_new_cmds=
8156   old_archive_from_expsyms_cmds=
8157   export_dynamic_flag_spec=
8158   whole_archive_flag_spec=
8159   thread_safe_flag_spec=
8160   hardcode_libdir_flag_spec=
8161   hardcode_libdir_flag_spec_ld=
8162   hardcode_libdir_separator=
8163   hardcode_direct=no
8164   hardcode_minus_L=no
8165   hardcode_shlibpath_var=unsupported
8166   link_all_deplibs=unknown
8167   hardcode_automatic=no
8168   module_cmds=
8169   module_expsym_cmds=
8170   always_export_symbols=no
8171   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8172   # include_expsyms should be a list of space-separated symbols to be *always*
8173   # included in the symbol list
8174   include_expsyms=
8175   # exclude_expsyms can be an extended regexp of symbols to exclude
8176   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8177   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8178   # as well as any symbol that contains `d'.
8179   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8180   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8181   # platforms (ab)use it in PIC code, but their linkers get confused if
8182   # the symbol is explicitly referenced.  Since portable code cannot
8183   # rely on this symbol name, it's probably fine to never include it in
8184   # preloaded symbol tables.
8185   # Exclude shared library initialization/finalization symbols.
8186   extract_expsyms_cmds=
8187   # Just being paranoid about ensuring that cc_basename is set.
8188   for cc_temp in $compiler""; do
8189   case $cc_temp in
8190     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8191     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8192     \-*) ;;
8193     *) break;;
8194   esac
8195 done
8196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8198   case $host_os in
8199   cygwin* | mingw* | pw32*)
8200     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8201     # When not using gcc, we currently assume that we are using
8202     # Microsoft Visual C++.
8203     if test "$GCC" != yes; then
8204       with_gnu_ld=no
8205     fi
8206     ;;
8207   interix*)
8208     # we just hope/assume this is gcc and not c89 (= MSVC++)
8209     with_gnu_ld=yes
8210     ;;
8211   openbsd*)
8212     with_gnu_ld=no
8213     ;;
8214   esac
8216   ld_shlibs=yes
8217   if test "$with_gnu_ld" = yes; then
8218     # If archive_cmds runs LD, not CC, wlarc should be empty
8219     wlarc='${wl}'
8221     # Set some defaults for GNU ld with shared library support. These
8222     # are reset later if shared libraries are not supported. Putting them
8223     # here allows them to be overridden if necessary.
8224     runpath_var=LD_RUN_PATH
8225     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8226     export_dynamic_flag_spec='${wl}--export-dynamic'
8227     # ancient GNU ld didn't support --whole-archive et. al.
8228     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8229         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8230       else
8231         whole_archive_flag_spec=
8232     fi
8233     supports_anon_versioning=no
8234     case `$LD -v 2>/dev/null` in
8235       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8236       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8237       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8238       *\ 2.11.*) ;; # other 2.11 versions
8239       *) supports_anon_versioning=yes ;;
8240     esac
8242     # See if GNU ld supports shared libraries.
8243     case $host_os in
8244     aix[3-9]*)
8245       # On AIX/PPC, the GNU linker is very broken
8246       if test "$host_cpu" != ia64; then
8247         ld_shlibs=no
8248         cat <<EOF 1>&2
8250 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8251 *** to be unable to reliably create shared libraries on AIX.
8252 *** Therefore, libtool is disabling shared libraries support.  If you
8253 *** really care for shared libraries, you may want to modify your PATH
8254 *** so that a non-GNU linker is found, and then restart.
8256 EOF
8257       fi
8258       ;;
8260     amigaos*)
8261       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)'
8262       hardcode_libdir_flag_spec='-L$libdir'
8263       hardcode_minus_L=yes
8265       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8266       # that the semantics of dynamic libraries on AmigaOS, at least up
8267       # to version 4, is to share data among multiple programs linked
8268       # with the same dynamic library.  Since this doesn't match the
8269       # behavior of shared libraries on other platforms, we can't use
8270       # them.
8271       ld_shlibs=no
8272       ;;
8274     beos*)
8275       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8276         allow_undefined_flag=unsupported
8277         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8278         # support --undefined.  This deserves some investigation.  FIXME
8279         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8280       else
8281         ld_shlibs=no
8282       fi
8283       ;;
8285     cygwin* | mingw* | pw32*)
8286       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8287       # as there is no search path for DLLs.
8288       hardcode_libdir_flag_spec='-L$libdir'
8289       allow_undefined_flag=unsupported
8290       always_export_symbols=no
8291       enable_shared_with_static_runtimes=yes
8292       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8294       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8295         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8296         # If the export-symbols file already is a .def file (1st line
8297         # is EXPORTS), use it as is; otherwise, prepend...
8298         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8299           cp $export_symbols $output_objdir/$soname.def;
8300         else
8301           echo EXPORTS > $output_objdir/$soname.def;
8302           cat $export_symbols >> $output_objdir/$soname.def;
8303         fi~
8304         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8305       else
8306         ld_shlibs=no
8307       fi
8308       ;;
8310     interix[3-9]*)
8311       hardcode_direct=no
8312       hardcode_shlibpath_var=no
8313       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8314       export_dynamic_flag_spec='${wl}-E'
8315       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8316       # Instead, shared libraries are loaded at an image base (0x10000000 by
8317       # default) and relocated if they conflict, which is a slow very memory
8318       # consuming and fragmenting process.  To avoid this, we pick a random,
8319       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8320       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8321       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8322       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'
8323       ;;
8325     gnu* | linux* | k*bsd*-gnu)
8326       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8327         tmp_addflag=
8328         case $cc_basename,$host_cpu in
8329         pgcc*)                          # Portland Group C compiler
8330           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'
8331           tmp_addflag=' $pic_flag'
8332           ;;
8333         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8334           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'
8335           tmp_addflag=' $pic_flag -Mnomain' ;;
8336         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8337           tmp_addflag=' -i_dynamic' ;;
8338         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8339           tmp_addflag=' -i_dynamic -nofor_main' ;;
8340         ifc* | ifort*)                  # Intel Fortran compiler
8341           tmp_addflag=' -nofor_main' ;;
8342         esac
8343         case `$CC -V 2>&1 | sed 5q` in
8344         *Sun\ C*)                       # Sun C 5.9
8345           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'
8346           tmp_sharedflag='-G' ;;
8347         *Sun\ F*)                       # Sun Fortran 8.3
8348           tmp_sharedflag='-G' ;;
8349         *)
8350           tmp_sharedflag='-shared' ;;
8351         esac
8352         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8354         if test $supports_anon_versioning = yes; then
8355           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8356   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8357   $echo "local: *; };" >> $output_objdir/$libname.ver~
8358           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8359         fi
8360         link_all_deplibs=no
8361       else
8362         ld_shlibs=no
8363       fi
8364       ;;
8366     netbsd* | netbsdelf*-gnu)
8367       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8368         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8369         wlarc=
8370       else
8371         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8373       fi
8374       ;;
8376     solaris*)
8377       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8378         ld_shlibs=no
8379         cat <<EOF 1>&2
8381 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8382 *** create shared libraries on Solaris systems.  Therefore, libtool
8383 *** is disabling shared libraries support.  We urge you to upgrade GNU
8384 *** binutils to release 2.9.1 or newer.  Another option is to modify
8385 *** your PATH or compiler configuration so that the native linker is
8386 *** used, and then restart.
8388 EOF
8389       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8390         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8391         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8392       else
8393         ld_shlibs=no
8394       fi
8395       ;;
8397     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8398       case `$LD -v 2>&1` in
8399         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8400         ld_shlibs=no
8401         cat <<_LT_EOF 1>&2
8403 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8404 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8405 *** is disabling shared libraries support.  We urge you to upgrade GNU
8406 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8407 *** your PATH or compiler configuration so that the native linker is
8408 *** used, and then restart.
8410 _LT_EOF
8411         ;;
8412         *)
8413           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8414             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8415             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8416             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8417           else
8418             ld_shlibs=no
8419           fi
8420         ;;
8421       esac
8422       ;;
8424     sunos4*)
8425       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8426       wlarc=
8427       hardcode_direct=yes
8428       hardcode_shlibpath_var=no
8429       ;;
8431     *)
8432       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8433         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8434         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8435       else
8436         ld_shlibs=no
8437       fi
8438       ;;
8439     esac
8441     if test "$ld_shlibs" = no; then
8442       runpath_var=
8443       hardcode_libdir_flag_spec=
8444       export_dynamic_flag_spec=
8445       whole_archive_flag_spec=
8446     fi
8447   else
8448     # PORTME fill in a description of your system's linker (not GNU ld)
8449     case $host_os in
8450     aix3*)
8451       allow_undefined_flag=unsupported
8452       always_export_symbols=yes
8453       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'
8454       # Note: this linker hardcodes the directories in LIBPATH if there
8455       # are no directories specified by -L.
8456       hardcode_minus_L=yes
8457       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8458         # Neither direct hardcoding nor static linking is supported with a
8459         # broken collect2.
8460         hardcode_direct=unsupported
8461       fi
8462       ;;
8464     aix[4-9]*)
8465       if test "$host_cpu" = ia64; then
8466         # On IA64, the linker does run time linking by default, so we don't
8467         # have to do anything special.
8468         aix_use_runtimelinking=no
8469         exp_sym_flag='-Bexport'
8470         no_entry_flag=""
8471       else
8472         # If we're using GNU nm, then we don't want the "-C" option.
8473         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8474         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8475           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'
8476         else
8477           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'
8478         fi
8479         aix_use_runtimelinking=no
8481         # Test if we are trying to use run time linking or normal
8482         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8483         # need to do runtime linking.
8484         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8485           for ld_flag in $LDFLAGS; do
8486           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8487             aix_use_runtimelinking=yes
8488             break
8489           fi
8490           done
8491           ;;
8492         esac
8494         exp_sym_flag='-bexport'
8495         no_entry_flag='-bnoentry'
8496       fi
8498       # When large executables or shared objects are built, AIX ld can
8499       # have problems creating the table of contents.  If linking a library
8500       # or program results in "error TOC overflow" add -mminimal-toc to
8501       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8502       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8504       archive_cmds=''
8505       hardcode_direct=yes
8506       hardcode_libdir_separator=':'
8507       link_all_deplibs=yes
8509       if test "$GCC" = yes; then
8510         case $host_os in aix4.[012]|aix4.[012].*)
8511         # We only want to do this on AIX 4.2 and lower, the check
8512         # below for broken collect2 doesn't work under 4.3+
8513           collect2name=`${CC} -print-prog-name=collect2`
8514           if test -f "$collect2name" && \
8515            strings "$collect2name" | grep resolve_lib_name >/dev/null
8516           then
8517           # We have reworked collect2
8518           :
8519           else
8520           # We have old collect2
8521           hardcode_direct=unsupported
8522           # It fails to find uninstalled libraries when the uninstalled
8523           # path is not listed in the libpath.  Setting hardcode_minus_L
8524           # to unsupported forces relinking
8525           hardcode_minus_L=yes
8526           hardcode_libdir_flag_spec='-L$libdir'
8527           hardcode_libdir_separator=
8528           fi
8529           ;;
8530         esac
8531         shared_flag='-shared'
8532         if test "$aix_use_runtimelinking" = yes; then
8533           shared_flag="$shared_flag "'${wl}-G'
8534         fi
8535       else
8536         # not using gcc
8537         if test "$host_cpu" = ia64; then
8538         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8539         # chokes on -Wl,-G. The following line is correct:
8540           shared_flag='-G'
8541         else
8542           if test "$aix_use_runtimelinking" = yes; then
8543             shared_flag='${wl}-G'
8544           else
8545             shared_flag='${wl}-bM:SRE'
8546           fi
8547         fi
8548       fi
8550       # It seems that -bexpall does not export symbols beginning with
8551       # underscore (_), so it is better to generate a list of symbols to export.
8552       always_export_symbols=yes
8553       if test "$aix_use_runtimelinking" = yes; then
8554         # Warning - without using the other runtime loading flags (-brtl),
8555         # -berok will link without error, but may produce a broken library.
8556         allow_undefined_flag='-berok'
8557        # Determine the default libpath from the value encoded in an empty executable.
8558        cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h.  */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h.  */
8565 int
8566 main ()
8569   ;
8570   return 0;
8572 _ACEOF
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (ac_try="$ac_link"
8575 case "(($ac_try" in
8576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577   *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580   (eval "$ac_link") 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } && {
8587          test -z "$ac_c_werror_flag" ||
8588          test ! -s conftest.err
8589        } && test -s conftest$ac_exeext &&
8590        $as_test_x conftest$ac_exeext; then
8592 lt_aix_libpath_sed='
8593     /Import File Strings/,/^$/ {
8594         /^0/ {
8595             s/^0  *\(.*\)$/\1/
8596             p
8597         }
8598     }'
8599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8600 # Check for a 64-bit object if we didn't find anything.
8601 if test -z "$aix_libpath"; then
8602   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8603 fi
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8609 fi
8611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8612       conftest$ac_exeext conftest.$ac_ext
8613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8615        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8616         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"
8617        else
8618         if test "$host_cpu" = ia64; then
8619           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8620           allow_undefined_flag="-z nodefs"
8621           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"
8622         else
8623          # Determine the default libpath from the value encoded in an empty executable.
8624          cat >conftest.$ac_ext <<_ACEOF
8625 /* confdefs.h.  */
8626 _ACEOF
8627 cat confdefs.h >>conftest.$ac_ext
8628 cat >>conftest.$ac_ext <<_ACEOF
8629 /* end confdefs.h.  */
8631 int
8632 main ()
8635   ;
8636   return 0;
8638 _ACEOF
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (ac_try="$ac_link"
8641 case "(($ac_try" in
8642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643   *) ac_try_echo=$ac_try;;
8644 esac
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646   (eval "$ac_link") 2>conftest.er1
8647   ac_status=$?
8648   grep -v '^ *+' conftest.er1 >conftest.err
8649   rm -f conftest.er1
8650   cat conftest.err >&5
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } && {
8653          test -z "$ac_c_werror_flag" ||
8654          test ! -s conftest.err
8655        } && test -s conftest$ac_exeext &&
8656        $as_test_x conftest$ac_exeext; then
8658 lt_aix_libpath_sed='
8659     /Import File Strings/,/^$/ {
8660         /^0/ {
8661             s/^0  *\(.*\)$/\1/
8662             p
8663         }
8664     }'
8665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8666 # Check for a 64-bit object if we didn't find anything.
8667 if test -z "$aix_libpath"; then
8668   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8669 fi
8670 else
8671   echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8675 fi
8677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8678       conftest$ac_exeext conftest.$ac_ext
8679 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8681          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8682           # Warning - without using the other run time loading flags,
8683           # -berok will link without error, but may produce a broken library.
8684           no_undefined_flag=' ${wl}-bernotok'
8685           allow_undefined_flag=' ${wl}-berok'
8686           # Exported symbols can be pulled into shared objects from archives
8687           whole_archive_flag_spec='$convenience'
8688           archive_cmds_need_lc=yes
8689           # This is similar to how AIX traditionally builds its shared libraries.
8690           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'
8691         fi
8692       fi
8693       ;;
8695     amigaos*)
8696       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)'
8697       hardcode_libdir_flag_spec='-L$libdir'
8698       hardcode_minus_L=yes
8699       # see comment about different semantics on the GNU ld section
8700       ld_shlibs=no
8701       ;;
8703     bsdi[45]*)
8704       export_dynamic_flag_spec=-rdynamic
8705       ;;
8707     cygwin* | mingw* | pw32*)
8708       # When not using gcc, we currently assume that we are using
8709       # Microsoft Visual C++.
8710       # hardcode_libdir_flag_spec is actually meaningless, as there is
8711       # no search path for DLLs.
8712       hardcode_libdir_flag_spec=' '
8713       allow_undefined_flag=unsupported
8714       # Tell ltmain to make .lib files, not .a files.
8715       libext=lib
8716       # Tell ltmain to make .dll files, not .so files.
8717       shrext_cmds=".dll"
8718       # FIXME: Setting linknames here is a bad hack.
8719       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8720       # The linker will automatically build a .lib file if we build a DLL.
8721       old_archive_From_new_cmds='true'
8722       # FIXME: Should let the user specify the lib program.
8723       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8724       fix_srcfile_path='`cygpath -w "$srcfile"`'
8725       enable_shared_with_static_runtimes=yes
8726       ;;
8728     darwin* | rhapsody*)
8729       case $host_os in
8730         rhapsody* | darwin1.[012])
8731          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8732          ;;
8733        *) # Darwin 1.3 on
8734          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8735            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8736          else
8737            case ${MACOSX_DEPLOYMENT_TARGET} in
8738              10.[012])
8739                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8740                ;;
8741              10.*)
8742                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8743                ;;
8744            esac
8745          fi
8746          ;;
8747       esac
8748       archive_cmds_need_lc=no
8749       hardcode_direct=no
8750       hardcode_automatic=yes
8751       hardcode_shlibpath_var=unsupported
8752       whole_archive_flag_spec=''
8753       link_all_deplibs=yes
8754     if test "$GCC" = yes ; then
8755         output_verbose_link_cmd='echo'
8756         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8757         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8758         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}"
8759         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}"
8760     else
8761       case $cc_basename in
8762         xlc*)
8763          output_verbose_link_cmd='echo'
8764          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8765          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8766           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8767          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}'
8768           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}'
8769           ;;
8770        *)
8771          ld_shlibs=no
8772           ;;
8773       esac
8774     fi
8775       ;;
8777     dgux*)
8778       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8779       hardcode_libdir_flag_spec='-L$libdir'
8780       hardcode_shlibpath_var=no
8781       ;;
8783     freebsd1*)
8784       ld_shlibs=no
8785       ;;
8787     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8788     # support.  Future versions do this automatically, but an explicit c++rt0.o
8789     # does not break anything, and helps significantly (at the cost of a little
8790     # extra space).
8791     freebsd2.2*)
8792       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8793       hardcode_libdir_flag_spec='-R$libdir'
8794       hardcode_direct=yes
8795       hardcode_shlibpath_var=no
8796       ;;
8798     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8799     freebsd2*)
8800       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8801       hardcode_direct=yes
8802       hardcode_minus_L=yes
8803       hardcode_shlibpath_var=no
8804       ;;
8806     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8807     freebsd* | dragonfly*)
8808       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8809       hardcode_libdir_flag_spec='-R$libdir'
8810       hardcode_direct=yes
8811       hardcode_shlibpath_var=no
8812       ;;
8814     hpux9*)
8815       if test "$GCC" = yes; then
8816         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'
8817       else
8818         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'
8819       fi
8820       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821       hardcode_libdir_separator=:
8822       hardcode_direct=yes
8824       # hardcode_minus_L: Not really in the search PATH,
8825       # but as the default location of the library.
8826       hardcode_minus_L=yes
8827       export_dynamic_flag_spec='${wl}-E'
8828       ;;
8830     hpux10*)
8831       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8832         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8833       else
8834         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8835       fi
8836       if test "$with_gnu_ld" = no; then
8837         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838         hardcode_libdir_separator=:
8840         hardcode_direct=yes
8841         export_dynamic_flag_spec='${wl}-E'
8843         # hardcode_minus_L: Not really in the search PATH,
8844         # but as the default location of the library.
8845         hardcode_minus_L=yes
8846       fi
8847       ;;
8849     hpux11*)
8850       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8851         case $host_cpu in
8852         hppa*64*)
8853           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8854           ;;
8855         ia64*)
8856           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8857           ;;
8858         *)
8859           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8860           ;;
8861         esac
8862       else
8863         case $host_cpu in
8864         hppa*64*)
8865           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8866           ;;
8867         ia64*)
8868           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8869           ;;
8870         *)
8871           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8872           ;;
8873         esac
8874       fi
8875       if test "$with_gnu_ld" = no; then
8876         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8877         hardcode_libdir_separator=:
8879         case $host_cpu in
8880         hppa*64*|ia64*)
8881           hardcode_libdir_flag_spec_ld='+b $libdir'
8882           hardcode_direct=no
8883           hardcode_shlibpath_var=no
8884           ;;
8885         *)
8886           hardcode_direct=yes
8887           export_dynamic_flag_spec='${wl}-E'
8889           # hardcode_minus_L: Not really in the search PATH,
8890           # but as the default location of the library.
8891           hardcode_minus_L=yes
8892           ;;
8893         esac
8894       fi
8895       ;;
8897     irix5* | irix6* | nonstopux*)
8898       if test "$GCC" = yes; then
8899         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'
8900       else
8901         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'
8902         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8903       fi
8904       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905       hardcode_libdir_separator=:
8906       link_all_deplibs=yes
8907       ;;
8909     netbsd* | netbsdelf*-gnu)
8910       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8911         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8912       else
8913         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8914       fi
8915       hardcode_libdir_flag_spec='-R$libdir'
8916       hardcode_direct=yes
8917       hardcode_shlibpath_var=no
8918       ;;
8920     newsos6)
8921       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922       hardcode_direct=yes
8923       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8924       hardcode_libdir_separator=:
8925       hardcode_shlibpath_var=no
8926       ;;
8928     openbsd*)
8929       if test -f /usr/libexec/ld.so; then
8930         hardcode_direct=yes
8931         hardcode_shlibpath_var=no
8932         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8933           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8934           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8935           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8936           export_dynamic_flag_spec='${wl}-E'
8937         else
8938           case $host_os in
8939            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8940              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8941              hardcode_libdir_flag_spec='-R$libdir'
8942              ;;
8943            *)
8944              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8945              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8946              ;;
8947           esac
8948         fi
8949       else
8950         ld_shlibs=no
8951       fi
8952       ;;
8954     os2*)
8955       hardcode_libdir_flag_spec='-L$libdir'
8956       hardcode_minus_L=yes
8957       allow_undefined_flag=unsupported
8958       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'
8959       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8960       ;;
8962     osf3*)
8963       if test "$GCC" = yes; then
8964         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8965         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'
8966       else
8967         allow_undefined_flag=' -expect_unresolved \*'
8968         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'
8969       fi
8970       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8971       hardcode_libdir_separator=:
8972       ;;
8974     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8975       if test "$GCC" = yes; then
8976         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8977         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'
8978         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979       else
8980         allow_undefined_flag=' -expect_unresolved \*'
8981         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'
8982         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8983         $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'
8985         # Both c and cxx compiler support -rpath directly
8986         hardcode_libdir_flag_spec='-rpath $libdir'
8987       fi
8988       hardcode_libdir_separator=:
8989       ;;
8991     solaris*)
8992       no_undefined_flag=' -z text'
8993       if test "$GCC" = yes; then
8994         wlarc='${wl}'
8995         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8996         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8997           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8998       else
8999         wlarc=''
9000         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9001         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9002         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9003       fi
9004       hardcode_libdir_flag_spec='-R$libdir'
9005       hardcode_shlibpath_var=no
9006       case $host_os in
9007       solaris2.[0-5] | solaris2.[0-5].*) ;;
9008       *)
9009         # The compiler driver will combine and reorder linker options,
9010         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9011         # but is careful enough not to reorder.
9012         # Supported since Solaris 2.6 (maybe 2.5.1?)
9013         if test "$GCC" = yes; then
9014           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9015         else
9016           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9017         fi
9018         ;;
9019       esac
9020       link_all_deplibs=yes
9021       ;;
9023     sunos4*)
9024       if test "x$host_vendor" = xsequent; then
9025         # Use $CC to link under sequent, because it throws in some extra .o
9026         # files that make .init and .fini sections work.
9027         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9028       else
9029         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9030       fi
9031       hardcode_libdir_flag_spec='-L$libdir'
9032       hardcode_direct=yes
9033       hardcode_minus_L=yes
9034       hardcode_shlibpath_var=no
9035       ;;
9037     sysv4)
9038       case $host_vendor in
9039         sni)
9040           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9041           hardcode_direct=yes # is this really true???
9042         ;;
9043         siemens)
9044           ## LD is ld it makes a PLAMLIB
9045           ## CC just makes a GrossModule.
9046           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9047           reload_cmds='$CC -r -o $output$reload_objs'
9048           hardcode_direct=no
9049         ;;
9050         motorola)
9051           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9052           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9053         ;;
9054       esac
9055       runpath_var='LD_RUN_PATH'
9056       hardcode_shlibpath_var=no
9057       ;;
9059     sysv4.3*)
9060       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9061       hardcode_shlibpath_var=no
9062       export_dynamic_flag_spec='-Bexport'
9063       ;;
9065     sysv4*MP*)
9066       if test -d /usr/nec; then
9067         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9068         hardcode_shlibpath_var=no
9069         runpath_var=LD_RUN_PATH
9070         hardcode_runpath_var=yes
9071         ld_shlibs=yes
9072       fi
9073       ;;
9075     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9076       no_undefined_flag='${wl}-z,text'
9077       archive_cmds_need_lc=no
9078       hardcode_shlibpath_var=no
9079       runpath_var='LD_RUN_PATH'
9081       if test "$GCC" = yes; then
9082         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084       else
9085         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9086         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9087       fi
9088       ;;
9090     sysv5* | sco3.2v5* | sco5v6*)
9091       # Note: We can NOT use -z defs as we might desire, because we do not
9092       # link with -lc, and that would cause any symbols used from libc to
9093       # always be unresolved, which means just about no library would
9094       # ever link correctly.  If we're not using GNU ld we use -z text
9095       # though, which does catch some bad symbols but isn't as heavy-handed
9096       # as -z defs.
9097       no_undefined_flag='${wl}-z,text'
9098       allow_undefined_flag='${wl}-z,nodefs'
9099       archive_cmds_need_lc=no
9100       hardcode_shlibpath_var=no
9101       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9102       hardcode_libdir_separator=':'
9103       link_all_deplibs=yes
9104       export_dynamic_flag_spec='${wl}-Bexport'
9105       runpath_var='LD_RUN_PATH'
9107       if test "$GCC" = yes; then
9108         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9110       else
9111         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9112         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9113       fi
9114       ;;
9116     uts4*)
9117       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9118       hardcode_libdir_flag_spec='-L$libdir'
9119       hardcode_shlibpath_var=no
9120       ;;
9122     *)
9123       ld_shlibs=no
9124       ;;
9125     esac
9126   fi
9128 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9129 echo "${ECHO_T}$ld_shlibs" >&6; }
9130 test "$ld_shlibs" = no && can_build_shared=no
9133 # Do we need to explicitly link libc?
9135 case "x$archive_cmds_need_lc" in
9136 x|xyes)
9137   # Assume -lc should be added
9138   archive_cmds_need_lc=yes
9140   if test "$enable_shared" = yes && test "$GCC" = yes; then
9141     case $archive_cmds in
9142     *'~'*)
9143       # FIXME: we may have to deal with multi-command sequences.
9144       ;;
9145     '$CC '*)
9146       # Test whether the compiler implicitly links with -lc since on some
9147       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9148       # to ld, don't add -lc before -lgcc.
9149       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9150 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9151       $rm conftest*
9152       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155   (eval $ac_compile) 2>&5
9156   ac_status=$?
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } 2>conftest.err; then
9159         soname=conftest
9160         lib=conftest
9161         libobjs=conftest.$ac_objext
9162         deplibs=
9163         wl=$lt_prog_compiler_wl
9164         pic_flag=$lt_prog_compiler_pic
9165         compiler_flags=-v
9166         linker_flags=-v
9167         verstring=
9168         output_objdir=.
9169         libname=conftest
9170         lt_save_allow_undefined_flag=$allow_undefined_flag
9171         allow_undefined_flag=
9172         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9173   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9174   ac_status=$?
9175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176   (exit $ac_status); }
9177         then
9178           archive_cmds_need_lc=no
9179         else
9180           archive_cmds_need_lc=yes
9181         fi
9182         allow_undefined_flag=$lt_save_allow_undefined_flag
9183       else
9184         cat conftest.err 1>&5
9185       fi
9186       $rm conftest*
9187       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9188 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9189       ;;
9190     esac
9191   fi
9192   ;;
9193 esac
9195 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9196 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9197 library_names_spec=
9198 libname_spec='lib$name'
9199 soname_spec=
9200 shrext_cmds=".so"
9201 postinstall_cmds=
9202 postuninstall_cmds=
9203 finish_cmds=
9204 finish_eval=
9205 shlibpath_var=
9206 shlibpath_overrides_runpath=unknown
9207 version_type=none
9208 dynamic_linker="$host_os ld.so"
9209 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9211 if test "$GCC" = yes; then
9212   case $host_os in
9213     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9214     *) lt_awk_arg="/^libraries:/" ;;
9215   esac
9216   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9217   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9218     # if the path contains ";" then we assume it to be the separator
9219     # otherwise default to the standard path separator (i.e. ":") - it is
9220     # assumed that no part of a normal pathname contains ";" but that should
9221     # okay in the real world where ";" in dirpaths is itself problematic.
9222     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9223   else
9224     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9225   fi
9226   # Ok, now we have the path, separated by spaces, we can step through it
9227   # and add multilib dir if necessary.
9228   lt_tmp_lt_search_path_spec=
9229   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9230   for lt_sys_path in $lt_search_path_spec; do
9231     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9232       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9233     else
9234       test -d "$lt_sys_path" && \
9235         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9236     fi
9237   done
9238   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9239 BEGIN {RS=" "; FS="/|\n";} {
9240   lt_foo="";
9241   lt_count=0;
9242   for (lt_i = NF; lt_i > 0; lt_i--) {
9243     if ($lt_i != "" && $lt_i != ".") {
9244       if ($lt_i == "..") {
9245         lt_count++;
9246       } else {
9247         if (lt_count == 0) {
9248           lt_foo="/" $lt_i lt_foo;
9249         } else {
9250           lt_count--;
9251         }
9252       }
9253     }
9254   }
9255   if (lt_foo != "") { lt_freq[lt_foo]++; }
9256   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9257 }'`
9258   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9259 else
9260   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9261 fi
9262 need_lib_prefix=unknown
9263 hardcode_into_libs=no
9265 # when you set need_version to no, make sure it does not cause -set_version
9266 # flags to be left without arguments
9267 need_version=unknown
9269 case $host_os in
9270 aix3*)
9271   version_type=linux
9272   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9273   shlibpath_var=LIBPATH
9275   # AIX 3 has no versioning support, so we append a major version to the name.
9276   soname_spec='${libname}${release}${shared_ext}$major'
9277   ;;
9279 aix[4-9]*)
9280   version_type=linux
9281   need_lib_prefix=no
9282   need_version=no
9283   hardcode_into_libs=yes
9284   if test "$host_cpu" = ia64; then
9285     # AIX 5 supports IA64
9286     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9287     shlibpath_var=LD_LIBRARY_PATH
9288   else
9289     # With GCC up to 2.95.x, collect2 would create an import file
9290     # for dependence libraries.  The import file would start with
9291     # the line `#! .'.  This would cause the generated library to
9292     # depend on `.', always an invalid library.  This was fixed in
9293     # development snapshots of GCC prior to 3.0.
9294     case $host_os in
9295       aix4 | aix4.[01] | aix4.[01].*)
9296       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9297            echo ' yes '
9298            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9299         :
9300       else
9301         can_build_shared=no
9302       fi
9303       ;;
9304     esac
9305     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9306     # soname into executable. Probably we can add versioning support to
9307     # collect2, so additional links can be useful in future.
9308     if test "$aix_use_runtimelinking" = yes; then
9309       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9310       # instead of lib<name>.a to let people know that these are not
9311       # typical AIX shared libraries.
9312       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313     else
9314       # We preserve .a as extension for shared libraries through AIX4.2
9315       # and later when we are not doing run time linking.
9316       library_names_spec='${libname}${release}.a $libname.a'
9317       soname_spec='${libname}${release}${shared_ext}$major'
9318     fi
9319     shlibpath_var=LIBPATH
9320   fi
9321   ;;
9323 amigaos*)
9324   library_names_spec='$libname.ixlibrary $libname.a'
9325   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9326   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'
9327   ;;
9329 beos*)
9330   library_names_spec='${libname}${shared_ext}'
9331   dynamic_linker="$host_os ld.so"
9332   shlibpath_var=LIBRARY_PATH
9333   ;;
9335 bsdi[45]*)
9336   version_type=linux
9337   need_version=no
9338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9339   soname_spec='${libname}${release}${shared_ext}$major'
9340   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9341   shlibpath_var=LD_LIBRARY_PATH
9342   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9343   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9344   # the default ld.so.conf also contains /usr/contrib/lib and
9345   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9346   # libtool to hard-code these into programs
9347   ;;
9349 cygwin* | mingw* | pw32*)
9350   version_type=windows
9351   shrext_cmds=".dll"
9352   need_version=no
9353   need_lib_prefix=no
9355   case $GCC,$host_os in
9356   yes,cygwin* | yes,mingw* | yes,pw32*)
9357     library_names_spec='$libname.dll.a'
9358     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9359     postinstall_cmds='base_file=`basename \${file}`~
9360       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9361       dldir=$destdir/`dirname \$dlpath`~
9362       test -d \$dldir || mkdir -p \$dldir~
9363       $install_prog $dir/$dlname \$dldir/$dlname~
9364       chmod a+x \$dldir/$dlname'
9365     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9366       dlpath=$dir/\$dldll~
9367        $rm \$dlpath'
9368     shlibpath_overrides_runpath=yes
9370     case $host_os in
9371     cygwin*)
9372       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9373       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9374       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9375       ;;
9376     mingw*)
9377       # MinGW DLLs use traditional 'lib' prefix
9378       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9379       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9380       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9381         # It is most probably a Windows format PATH printed by
9382         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9383         # path with ; separators, and with drive letters. We can handle the
9384         # drive letters (cygwin fileutils understands them), so leave them,
9385         # especially as we might pass files found there to a mingw objdump,
9386         # which wouldn't understand a cygwinified path. Ahh.
9387         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9388       else
9389         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9390       fi
9391       ;;
9392     pw32*)
9393       # pw32 DLLs use 'pw' prefix rather than 'lib'
9394       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9395       ;;
9396     esac
9397     ;;
9399   *)
9400     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9401     ;;
9402   esac
9403   dynamic_linker='Win32 ld.exe'
9404   # FIXME: first we should search . and the directory the executable is in
9405   shlibpath_var=PATH
9406   ;;
9408 darwin* | rhapsody*)
9409   dynamic_linker="$host_os dyld"
9410   version_type=darwin
9411   need_lib_prefix=no
9412   need_version=no
9413   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9414   soname_spec='${libname}${release}${major}$shared_ext'
9415   shlibpath_overrides_runpath=yes
9416   shlibpath_var=DYLD_LIBRARY_PATH
9417   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9419   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9420   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9421   ;;
9423 dgux*)
9424   version_type=linux
9425   need_lib_prefix=no
9426   need_version=no
9427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9428   soname_spec='${libname}${release}${shared_ext}$major'
9429   shlibpath_var=LD_LIBRARY_PATH
9430   ;;
9432 freebsd1*)
9433   dynamic_linker=no
9434   ;;
9436 freebsd* | dragonfly*)
9437   # DragonFly does not have aout.  When/if they implement a new
9438   # versioning mechanism, adjust this.
9439   if test -x /usr/bin/objformat; then
9440     objformat=`/usr/bin/objformat`
9441   else
9442     case $host_os in
9443     freebsd[123]*) objformat=aout ;;
9444     *) objformat=elf ;;
9445     esac
9446   fi
9447   version_type=freebsd-$objformat
9448   case $version_type in
9449     freebsd-elf*)
9450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9451       need_version=no
9452       need_lib_prefix=no
9453       ;;
9454     freebsd-*)
9455       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9456       need_version=yes
9457       ;;
9458   esac
9459   shlibpath_var=LD_LIBRARY_PATH
9460   case $host_os in
9461   freebsd2*)
9462     shlibpath_overrides_runpath=yes
9463     ;;
9464   freebsd3.[01]* | freebsdelf3.[01]*)
9465     shlibpath_overrides_runpath=yes
9466     hardcode_into_libs=yes
9467     ;;
9468   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9469   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9470     shlibpath_overrides_runpath=no
9471     hardcode_into_libs=yes
9472     ;;
9473   *) # from 4.6 on, and DragonFly
9474     shlibpath_overrides_runpath=yes
9475     hardcode_into_libs=yes
9476     ;;
9477   esac
9478   ;;
9480 gnu*)
9481   version_type=linux
9482   need_lib_prefix=no
9483   need_version=no
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9485   soname_spec='${libname}${release}${shared_ext}$major'
9486   shlibpath_var=LD_LIBRARY_PATH
9487   hardcode_into_libs=yes
9488   ;;
9490 hpux9* | hpux10* | hpux11*)
9491   # Give a soname corresponding to the major version so that dld.sl refuses to
9492   # link against other versions.
9493   version_type=sunos
9494   need_lib_prefix=no
9495   need_version=no
9496   case $host_cpu in
9497   ia64*)
9498     shrext_cmds='.so'
9499     hardcode_into_libs=yes
9500     dynamic_linker="$host_os dld.so"
9501     shlibpath_var=LD_LIBRARY_PATH
9502     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504     soname_spec='${libname}${release}${shared_ext}$major'
9505     if test "X$HPUX_IA64_MODE" = X32; then
9506       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9507     else
9508       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9509     fi
9510     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9511     ;;
9512    hppa*64*)
9513      shrext_cmds='.sl'
9514      hardcode_into_libs=yes
9515      dynamic_linker="$host_os dld.sl"
9516      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9517      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9518      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519      soname_spec='${libname}${release}${shared_ext}$major'
9520      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9521      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9522      ;;
9523    *)
9524     shrext_cmds='.sl'
9525     dynamic_linker="$host_os dld.sl"
9526     shlibpath_var=SHLIB_PATH
9527     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529     soname_spec='${libname}${release}${shared_ext}$major'
9530     ;;
9531   esac
9532   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9533   postinstall_cmds='chmod 555 $lib'
9534   ;;
9536 interix[3-9]*)
9537   version_type=linux
9538   need_lib_prefix=no
9539   need_version=no
9540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9541   soname_spec='${libname}${release}${shared_ext}$major'
9542   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9543   shlibpath_var=LD_LIBRARY_PATH
9544   shlibpath_overrides_runpath=no
9545   hardcode_into_libs=yes
9546   ;;
9548 irix5* | irix6* | nonstopux*)
9549   case $host_os in
9550     nonstopux*) version_type=nonstopux ;;
9551     *)
9552         if test "$lt_cv_prog_gnu_ld" = yes; then
9553                 version_type=linux
9554         else
9555                 version_type=irix
9556         fi ;;
9557   esac
9558   need_lib_prefix=no
9559   need_version=no
9560   soname_spec='${libname}${release}${shared_ext}$major'
9561   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9562   case $host_os in
9563   irix5* | nonstopux*)
9564     libsuff= shlibsuff=
9565     ;;
9566   *)
9567     case $LD in # libtool.m4 will add one of these switches to LD
9568     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9569       libsuff= shlibsuff= libmagic=32-bit;;
9570     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9571       libsuff=32 shlibsuff=N32 libmagic=N32;;
9572     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9573       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9574     *) libsuff= shlibsuff= libmagic=never-match;;
9575     esac
9576     ;;
9577   esac
9578   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9579   shlibpath_overrides_runpath=no
9580   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9581   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9582   hardcode_into_libs=yes
9583   ;;
9585 # No shared lib support for Linux oldld, aout, or coff.
9586 linux*oldld* | linux*aout* | linux*coff*)
9587   dynamic_linker=no
9588   ;;
9590 # This must be Linux ELF.
9591 linux* | k*bsd*-gnu)
9592   version_type=linux
9593   need_lib_prefix=no
9594   need_version=no
9595   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9596   soname_spec='${libname}${release}${shared_ext}$major'
9597   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9598   shlibpath_var=LD_LIBRARY_PATH
9599   shlibpath_overrides_runpath=no
9600   # This implies no fast_install, which is unacceptable.
9601   # Some rework will be needed to allow for fast_install
9602   # before this can be enabled.
9603   hardcode_into_libs=yes
9605   # Append ld.so.conf contents to the search path
9606   if test -f /etc/ld.so.conf; then
9607     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' ' '`
9608     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9609   fi
9611   # We used to test for /lib/ld.so.1 and disable shared libraries on
9612   # powerpc, because MkLinux only supported shared libraries with the
9613   # GNU dynamic linker.  Since this was broken with cross compilers,
9614   # most powerpc-linux boxes support dynamic linking these days and
9615   # people can always --disable-shared, the test was removed, and we
9616   # assume the GNU/Linux dynamic linker is in use.
9617   dynamic_linker='GNU/Linux ld.so'
9618   ;;
9620 netbsdelf*-gnu)
9621   version_type=linux
9622   need_lib_prefix=no
9623   need_version=no
9624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9625   soname_spec='${libname}${release}${shared_ext}$major'
9626   shlibpath_var=LD_LIBRARY_PATH
9627   shlibpath_overrides_runpath=no
9628   hardcode_into_libs=yes
9629   dynamic_linker='NetBSD ld.elf_so'
9630   ;;
9632 netbsd*)
9633   version_type=sunos
9634   need_lib_prefix=no
9635   need_version=no
9636   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9638     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9639     dynamic_linker='NetBSD (a.out) ld.so'
9640   else
9641     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9642     soname_spec='${libname}${release}${shared_ext}$major'
9643     dynamic_linker='NetBSD ld.elf_so'
9644   fi
9645   shlibpath_var=LD_LIBRARY_PATH
9646   shlibpath_overrides_runpath=yes
9647   hardcode_into_libs=yes
9648   ;;
9650 newsos6)
9651   version_type=linux
9652   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653   shlibpath_var=LD_LIBRARY_PATH
9654   shlibpath_overrides_runpath=yes
9655   ;;
9657 nto-qnx*)
9658   version_type=linux
9659   need_lib_prefix=no
9660   need_version=no
9661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662   soname_spec='${libname}${release}${shared_ext}$major'
9663   shlibpath_var=LD_LIBRARY_PATH
9664   shlibpath_overrides_runpath=yes
9665   ;;
9667 openbsd*)
9668   version_type=sunos
9669   sys_lib_dlsearch_path_spec="/usr/lib"
9670   need_lib_prefix=no
9671   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9672   case $host_os in
9673     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9674     *)                         need_version=no  ;;
9675   esac
9676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9677   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9678   shlibpath_var=LD_LIBRARY_PATH
9679   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9680     case $host_os in
9681       openbsd2.[89] | openbsd2.[89].*)
9682         shlibpath_overrides_runpath=no
9683         ;;
9684       *)
9685         shlibpath_overrides_runpath=yes
9686         ;;
9687       esac
9688   else
9689     shlibpath_overrides_runpath=yes
9690   fi
9691   ;;
9693 os2*)
9694   libname_spec='$name'
9695   shrext_cmds=".dll"
9696   need_lib_prefix=no
9697   library_names_spec='$libname${shared_ext} $libname.a'
9698   dynamic_linker='OS/2 ld.exe'
9699   shlibpath_var=LIBPATH
9700   ;;
9702 osf3* | osf4* | osf5*)
9703   version_type=osf
9704   need_lib_prefix=no
9705   need_version=no
9706   soname_spec='${libname}${release}${shared_ext}$major'
9707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708   shlibpath_var=LD_LIBRARY_PATH
9709   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9710   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9711   ;;
9713 rdos*)
9714   dynamic_linker=no
9715   ;;
9717 solaris*)
9718   version_type=linux
9719   need_lib_prefix=no
9720   need_version=no
9721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722   soname_spec='${libname}${release}${shared_ext}$major'
9723   shlibpath_var=LD_LIBRARY_PATH
9724   shlibpath_overrides_runpath=yes
9725   hardcode_into_libs=yes
9726   # ldd complains unless libraries are executable
9727   postinstall_cmds='chmod +x $lib'
9728   ;;
9730 sunos4*)
9731   version_type=sunos
9732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9733   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9734   shlibpath_var=LD_LIBRARY_PATH
9735   shlibpath_overrides_runpath=yes
9736   if test "$with_gnu_ld" = yes; then
9737     need_lib_prefix=no
9738   fi
9739   need_version=yes
9740   ;;
9742 sysv4 | sysv4.3*)
9743   version_type=linux
9744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745   soname_spec='${libname}${release}${shared_ext}$major'
9746   shlibpath_var=LD_LIBRARY_PATH
9747   case $host_vendor in
9748     sni)
9749       shlibpath_overrides_runpath=no
9750       need_lib_prefix=no
9751       export_dynamic_flag_spec='${wl}-Blargedynsym'
9752       runpath_var=LD_RUN_PATH
9753       ;;
9754     siemens)
9755       need_lib_prefix=no
9756       ;;
9757     motorola)
9758       need_lib_prefix=no
9759       need_version=no
9760       shlibpath_overrides_runpath=no
9761       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9762       ;;
9763   esac
9764   ;;
9766 sysv4*MP*)
9767   if test -d /usr/nec ;then
9768     version_type=linux
9769     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9770     soname_spec='$libname${shared_ext}.$major'
9771     shlibpath_var=LD_LIBRARY_PATH
9772   fi
9773   ;;
9775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9776   version_type=freebsd-elf
9777   need_lib_prefix=no
9778   need_version=no
9779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9780   soname_spec='${libname}${release}${shared_ext}$major'
9781   shlibpath_var=LD_LIBRARY_PATH
9782   hardcode_into_libs=yes
9783   if test "$with_gnu_ld" = yes; then
9784     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9785     shlibpath_overrides_runpath=no
9786   else
9787     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9788     shlibpath_overrides_runpath=yes
9789     case $host_os in
9790       sco3.2v5*)
9791         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9792         ;;
9793     esac
9794   fi
9795   sys_lib_dlsearch_path_spec='/usr/lib'
9796   ;;
9798 uts4*)
9799   version_type=linux
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   shlibpath_var=LD_LIBRARY_PATH
9803   ;;
9805 *)
9806   dynamic_linker=no
9807   ;;
9808 esac
9809 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9810 echo "${ECHO_T}$dynamic_linker" >&6; }
9811 test "$dynamic_linker" = no && can_build_shared=no
9813 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9814   echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9817 fi
9819 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9820 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9821   echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9824 fi
9826 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9828 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9829 if test "$GCC" = yes; then
9830   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9831 fi
9833 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9834 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9835 hardcode_action=
9836 if test -n "$hardcode_libdir_flag_spec" || \
9837    test -n "$runpath_var" || \
9838    test "X$hardcode_automatic" = "Xyes" ; then
9840   # We can hardcode non-existant directories.
9841   if test "$hardcode_direct" != no &&
9842      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9843      # have to relink, otherwise we might link with an installed library
9844      # when we should be linking with a yet-to-be-installed one
9845      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9846      test "$hardcode_minus_L" != no; then
9847     # Linking always hardcodes the temporary library directory.
9848     hardcode_action=relink
9849   else
9850     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9851     hardcode_action=immediate
9852   fi
9853 else
9854   # We cannot hardcode anything, or else we can only hardcode existing
9855   # directories.
9856   hardcode_action=unsupported
9857 fi
9858 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9859 echo "${ECHO_T}$hardcode_action" >&6; }
9861 if test "$hardcode_action" = relink; then
9862   # Fast installation is not supported
9863   enable_fast_install=no
9864 elif test "$shlibpath_overrides_runpath" = yes ||
9865      test "$enable_shared" = no; then
9866   # Fast installation is not necessary
9867   enable_fast_install=needless
9868 fi
9870 striplib=
9871 old_striplib=
9872 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9873 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9874 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9875   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9876   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9877   { echo "$as_me:$LINENO: result: yes" >&5
9878 echo "${ECHO_T}yes" >&6; }
9879 else
9880 # FIXME - insert some real tests, host_os isn't really good enough
9881   case $host_os in
9882    darwin*)
9883        if test -n "$STRIP" ; then
9884          striplib="$STRIP -x"
9885          old_striplib="$STRIP -S"
9886          { echo "$as_me:$LINENO: result: yes" >&5
9887 echo "${ECHO_T}yes" >&6; }
9888        else
9889   { echo "$as_me:$LINENO: result: no" >&5
9890 echo "${ECHO_T}no" >&6; }
9891 fi
9892        ;;
9893    *)
9894   { echo "$as_me:$LINENO: result: no" >&5
9895 echo "${ECHO_T}no" >&6; }
9896     ;;
9897   esac
9898 fi
9900 if test "x$enable_dlopen" != xyes; then
9901   enable_dlopen=unknown
9902   enable_dlopen_self=unknown
9903   enable_dlopen_self_static=unknown
9904 else
9905   lt_cv_dlopen=no
9906   lt_cv_dlopen_libs=
9908   case $host_os in
9909   beos*)
9910     lt_cv_dlopen="load_add_on"
9911     lt_cv_dlopen_libs=
9912     lt_cv_dlopen_self=yes
9913     ;;
9915   mingw* | pw32*)
9916     lt_cv_dlopen="LoadLibrary"
9917     lt_cv_dlopen_libs=
9918    ;;
9920   cygwin*)
9921     lt_cv_dlopen="dlopen"
9922     lt_cv_dlopen_libs=
9923    ;;
9925   darwin*)
9926   # if libdl is installed we need to link against it
9927     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9928 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9929 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9930   echo $ECHO_N "(cached) $ECHO_C" >&6
9931 else
9932   ac_check_lib_save_LIBS=$LIBS
9933 LIBS="-ldl  $LIBS"
9934 cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h.  */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h.  */
9941 /* Override any GCC internal prototype to avoid an error.
9942    Use char because int might match the return type of a GCC
9943    builtin and then its argument prototype would still apply.  */
9944 #ifdef __cplusplus
9945 extern "C"
9946 #endif
9947 char dlopen ();
9948 int
9949 main ()
9951 return dlopen ();
9952   ;
9953   return 0;
9955 _ACEOF
9956 rm -f conftest.$ac_objext conftest$ac_exeext
9957 if { (ac_try="$ac_link"
9958 case "(($ac_try" in
9959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960   *) ac_try_echo=$ac_try;;
9961 esac
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963   (eval "$ac_link") 2>conftest.er1
9964   ac_status=$?
9965   grep -v '^ *+' conftest.er1 >conftest.err
9966   rm -f conftest.er1
9967   cat conftest.err >&5
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); } && {
9970          test -z "$ac_c_werror_flag" ||
9971          test ! -s conftest.err
9972        } && test -s conftest$ac_exeext &&
9973        $as_test_x conftest$ac_exeext; then
9974   ac_cv_lib_dl_dlopen=yes
9975 else
9976   echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979         ac_cv_lib_dl_dlopen=no
9980 fi
9982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9983       conftest$ac_exeext conftest.$ac_ext
9984 LIBS=$ac_check_lib_save_LIBS
9985 fi
9986 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9987 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9988 if test $ac_cv_lib_dl_dlopen = yes; then
9989   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9990 else
9992     lt_cv_dlopen="dyld"
9993     lt_cv_dlopen_libs=
9994     lt_cv_dlopen_self=yes
9996 fi
9998    ;;
10000   *)
10001     { echo "$as_me:$LINENO: checking for shl_load" >&5
10002 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10003 if test "${ac_cv_func_shl_load+set}" = set; then
10004   echo $ECHO_N "(cached) $ECHO_C" >&6
10005 else
10006   cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h.  */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h.  */
10012 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10013    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10014 #define shl_load innocuous_shl_load
10016 /* System header to define __stub macros and hopefully few prototypes,
10017     which can conflict with char shl_load (); below.
10018     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10019     <limits.h> exists even on freestanding compilers.  */
10021 #ifdef __STDC__
10022 # include <limits.h>
10023 #else
10024 # include <assert.h>
10025 #endif
10027 #undef shl_load
10029 /* Override any GCC internal prototype to avoid an error.
10030    Use char because int might match the return type of a GCC
10031    builtin and then its argument prototype would still apply.  */
10032 #ifdef __cplusplus
10033 extern "C"
10034 #endif
10035 char shl_load ();
10036 /* The GNU C library defines this for functions which it implements
10037     to always fail with ENOSYS.  Some functions are actually named
10038     something starting with __ and the normal name is an alias.  */
10039 #if defined __stub_shl_load || defined __stub___shl_load
10040 choke me
10041 #endif
10043 int
10044 main ()
10046 return shl_load ();
10047   ;
10048   return 0;
10050 _ACEOF
10051 rm -f conftest.$ac_objext conftest$ac_exeext
10052 if { (ac_try="$ac_link"
10053 case "(($ac_try" in
10054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055   *) ac_try_echo=$ac_try;;
10056 esac
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058   (eval "$ac_link") 2>conftest.er1
10059   ac_status=$?
10060   grep -v '^ *+' conftest.er1 >conftest.err
10061   rm -f conftest.er1
10062   cat conftest.err >&5
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } && {
10065          test -z "$ac_c_werror_flag" ||
10066          test ! -s conftest.err
10067        } && test -s conftest$ac_exeext &&
10068        $as_test_x conftest$ac_exeext; then
10069   ac_cv_func_shl_load=yes
10070 else
10071   echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.$ac_ext >&5
10074         ac_cv_func_shl_load=no
10077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10078       conftest$ac_exeext conftest.$ac_ext
10080 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10081 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10082 if test $ac_cv_func_shl_load = yes; then
10083   lt_cv_dlopen="shl_load"
10084 else
10085   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10086 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10087 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   ac_check_lib_save_LIBS=$LIBS
10091 LIBS="-ldld  $LIBS"
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h.  */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h.  */
10099 /* Override any GCC internal prototype to avoid an error.
10100    Use char because int might match the return type of a GCC
10101    builtin and then its argument prototype would still apply.  */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 char shl_load ();
10106 int
10107 main ()
10109 return shl_load ();
10110   ;
10111   return 0;
10113 _ACEOF
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (ac_try="$ac_link"
10116 case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_link") 2>conftest.er1
10122   ac_status=$?
10123   grep -v '^ *+' conftest.er1 >conftest.err
10124   rm -f conftest.er1
10125   cat conftest.err >&5
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } && {
10128          test -z "$ac_c_werror_flag" ||
10129          test ! -s conftest.err
10130        } && test -s conftest$ac_exeext &&
10131        $as_test_x conftest$ac_exeext; then
10132   ac_cv_lib_dld_shl_load=yes
10133 else
10134   echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137         ac_cv_lib_dld_shl_load=no
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141       conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10145 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10146 if test $ac_cv_lib_dld_shl_load = yes; then
10147   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10148 else
10149   { echo "$as_me:$LINENO: checking for dlopen" >&5
10150 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10151 if test "${ac_cv_func_dlopen+set}" = set; then
10152   echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154   cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h.  */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h.  */
10160 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10162 #define dlopen innocuous_dlopen
10164 /* System header to define __stub macros and hopefully few prototypes,
10165     which can conflict with char dlopen (); below.
10166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10167     <limits.h> exists even on freestanding compilers.  */
10169 #ifdef __STDC__
10170 # include <limits.h>
10171 #else
10172 # include <assert.h>
10173 #endif
10175 #undef dlopen
10177 /* Override any GCC internal prototype to avoid an error.
10178    Use char because int might match the return type of a GCC
10179    builtin and then its argument prototype would still apply.  */
10180 #ifdef __cplusplus
10181 extern "C"
10182 #endif
10183 char dlopen ();
10184 /* The GNU C library defines this for functions which it implements
10185     to always fail with ENOSYS.  Some functions are actually named
10186     something starting with __ and the normal name is an alias.  */
10187 #if defined __stub_dlopen || defined __stub___dlopen
10188 choke me
10189 #endif
10191 int
10192 main ()
10194 return dlopen ();
10195   ;
10196   return 0;
10198 _ACEOF
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (ac_try="$ac_link"
10201 case "(($ac_try" in
10202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203   *) ac_try_echo=$ac_try;;
10204 esac
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206   (eval "$ac_link") 2>conftest.er1
10207   ac_status=$?
10208   grep -v '^ *+' conftest.er1 >conftest.err
10209   rm -f conftest.er1
10210   cat conftest.err >&5
10211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212   (exit $ac_status); } && {
10213          test -z "$ac_c_werror_flag" ||
10214          test ! -s conftest.err
10215        } && test -s conftest$ac_exeext &&
10216        $as_test_x conftest$ac_exeext; then
10217   ac_cv_func_dlopen=yes
10218 else
10219   echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10222         ac_cv_func_dlopen=no
10225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10226       conftest$ac_exeext conftest.$ac_ext
10228 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10229 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10230 if test $ac_cv_func_dlopen = yes; then
10231   lt_cv_dlopen="dlopen"
10232 else
10233   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10234 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10235 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238   ac_check_lib_save_LIBS=$LIBS
10239 LIBS="-ldl  $LIBS"
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10247 /* Override any GCC internal prototype to avoid an error.
10248    Use char because int might match the return type of a GCC
10249    builtin and then its argument prototype would still apply.  */
10250 #ifdef __cplusplus
10251 extern "C"
10252 #endif
10253 char dlopen ();
10254 int
10255 main ()
10257 return dlopen ();
10258   ;
10259   return 0;
10261 _ACEOF
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266   *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269   (eval "$ac_link") 2>conftest.er1
10270   ac_status=$?
10271   grep -v '^ *+' conftest.er1 >conftest.err
10272   rm -f conftest.er1
10273   cat conftest.err >&5
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); } && {
10276          test -z "$ac_c_werror_flag" ||
10277          test ! -s conftest.err
10278        } && test -s conftest$ac_exeext &&
10279        $as_test_x conftest$ac_exeext; then
10280   ac_cv_lib_dl_dlopen=yes
10281 else
10282   echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285         ac_cv_lib_dl_dlopen=no
10288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10289       conftest$ac_exeext conftest.$ac_ext
10290 LIBS=$ac_check_lib_save_LIBS
10292 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10293 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10294 if test $ac_cv_lib_dl_dlopen = yes; then
10295   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10296 else
10297   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10298 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10300   echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302   ac_check_lib_save_LIBS=$LIBS
10303 LIBS="-lsvld  $LIBS"
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10311 /* Override any GCC internal prototype to avoid an error.
10312    Use char because int might match the return type of a GCC
10313    builtin and then its argument prototype would still apply.  */
10314 #ifdef __cplusplus
10315 extern "C"
10316 #endif
10317 char dlopen ();
10318 int
10319 main ()
10321 return dlopen ();
10322   ;
10323   return 0;
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330   *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333   (eval "$ac_link") 2>conftest.er1
10334   ac_status=$?
10335   grep -v '^ *+' conftest.er1 >conftest.err
10336   rm -f conftest.er1
10337   cat conftest.err >&5
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); } && {
10340          test -z "$ac_c_werror_flag" ||
10341          test ! -s conftest.err
10342        } && test -s conftest$ac_exeext &&
10343        $as_test_x conftest$ac_exeext; then
10344   ac_cv_lib_svld_dlopen=yes
10345 else
10346   echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349         ac_cv_lib_svld_dlopen=no
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353       conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10356 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10357 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10358 if test $ac_cv_lib_svld_dlopen = yes; then
10359   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10360 else
10361   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10362 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10363 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   ac_check_lib_save_LIBS=$LIBS
10367 LIBS="-ldld  $LIBS"
10368 cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h.  */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h.  */
10375 /* Override any GCC internal prototype to avoid an error.
10376    Use char because int might match the return type of a GCC
10377    builtin and then its argument prototype would still apply.  */
10378 #ifdef __cplusplus
10379 extern "C"
10380 #endif
10381 char dld_link ();
10382 int
10383 main ()
10385 return dld_link ();
10386   ;
10387   return 0;
10389 _ACEOF
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (ac_try="$ac_link"
10392 case "(($ac_try" in
10393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394   *) ac_try_echo=$ac_try;;
10395 esac
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397   (eval "$ac_link") 2>conftest.er1
10398   ac_status=$?
10399   grep -v '^ *+' conftest.er1 >conftest.err
10400   rm -f conftest.er1
10401   cat conftest.err >&5
10402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403   (exit $ac_status); } && {
10404          test -z "$ac_c_werror_flag" ||
10405          test ! -s conftest.err
10406        } && test -s conftest$ac_exeext &&
10407        $as_test_x conftest$ac_exeext; then
10408   ac_cv_lib_dld_dld_link=yes
10409 else
10410   echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413         ac_cv_lib_dld_dld_link=no
10416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10417       conftest$ac_exeext conftest.$ac_ext
10418 LIBS=$ac_check_lib_save_LIBS
10420 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10421 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10422 if test $ac_cv_lib_dld_dld_link = yes; then
10423   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10441     ;;
10442   esac
10444   if test "x$lt_cv_dlopen" != xno; then
10445     enable_dlopen=yes
10446   else
10447     enable_dlopen=no
10448   fi
10450   case $lt_cv_dlopen in
10451   dlopen)
10452     save_CPPFLAGS="$CPPFLAGS"
10453     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10455     save_LDFLAGS="$LDFLAGS"
10456     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10458     save_LIBS="$LIBS"
10459     LIBS="$lt_cv_dlopen_libs $LIBS"
10461     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10462 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10463 if test "${lt_cv_dlopen_self+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466           if test "$cross_compiling" = yes; then :
10467   lt_cv_dlopen_self=cross
10468 else
10469   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10470   lt_status=$lt_dlunknown
10471   cat > conftest.$ac_ext <<EOF
10472 #line 10472 "configure"
10473 #include "confdefs.h"
10475 #if HAVE_DLFCN_H
10476 #include <dlfcn.h>
10477 #endif
10479 #include <stdio.h>
10481 #ifdef RTLD_GLOBAL
10482 #  define LT_DLGLOBAL           RTLD_GLOBAL
10483 #else
10484 #  ifdef DL_GLOBAL
10485 #    define LT_DLGLOBAL         DL_GLOBAL
10486 #  else
10487 #    define LT_DLGLOBAL         0
10488 #  endif
10489 #endif
10491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10492    find out it does not work in some platform. */
10493 #ifndef LT_DLLAZY_OR_NOW
10494 #  ifdef RTLD_LAZY
10495 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10496 #  else
10497 #    ifdef DL_LAZY
10498 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10499 #    else
10500 #      ifdef RTLD_NOW
10501 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10502 #      else
10503 #        ifdef DL_NOW
10504 #          define LT_DLLAZY_OR_NOW      DL_NOW
10505 #        else
10506 #          define LT_DLLAZY_OR_NOW      0
10507 #        endif
10508 #      endif
10509 #    endif
10510 #  endif
10511 #endif
10513 #ifdef __cplusplus
10514 extern "C" void exit (int);
10515 #endif
10517 void fnord() { int i=42;}
10518 int main ()
10520   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10521   int status = $lt_dlunknown;
10523   if (self)
10524     {
10525       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10526       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10527       /* dlclose (self); */
10528     }
10529   else
10530     puts (dlerror ());
10532     exit (status);
10534 EOF
10535   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10536   (eval $ac_link) 2>&5
10537   ac_status=$?
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10540     (./conftest; exit; ) >&5 2>/dev/null
10541     lt_status=$?
10542     case x$lt_status in
10543       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10544       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10545       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10546     esac
10547   else :
10548     # compilation failed
10549     lt_cv_dlopen_self=no
10550   fi
10552 rm -fr conftest*
10556 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10557 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10559     if test "x$lt_cv_dlopen_self" = xyes; then
10560       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10561       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10562 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10563 if test "${lt_cv_dlopen_self_static+set}" = set; then
10564   echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566           if test "$cross_compiling" = yes; then :
10567   lt_cv_dlopen_self_static=cross
10568 else
10569   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10570   lt_status=$lt_dlunknown
10571   cat > conftest.$ac_ext <<EOF
10572 #line 10572 "configure"
10573 #include "confdefs.h"
10575 #if HAVE_DLFCN_H
10576 #include <dlfcn.h>
10577 #endif
10579 #include <stdio.h>
10581 #ifdef RTLD_GLOBAL
10582 #  define LT_DLGLOBAL           RTLD_GLOBAL
10583 #else
10584 #  ifdef DL_GLOBAL
10585 #    define LT_DLGLOBAL         DL_GLOBAL
10586 #  else
10587 #    define LT_DLGLOBAL         0
10588 #  endif
10589 #endif
10591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10592    find out it does not work in some platform. */
10593 #ifndef LT_DLLAZY_OR_NOW
10594 #  ifdef RTLD_LAZY
10595 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10596 #  else
10597 #    ifdef DL_LAZY
10598 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10599 #    else
10600 #      ifdef RTLD_NOW
10601 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10602 #      else
10603 #        ifdef DL_NOW
10604 #          define LT_DLLAZY_OR_NOW      DL_NOW
10605 #        else
10606 #          define LT_DLLAZY_OR_NOW      0
10607 #        endif
10608 #      endif
10609 #    endif
10610 #  endif
10611 #endif
10613 #ifdef __cplusplus
10614 extern "C" void exit (int);
10615 #endif
10617 void fnord() { int i=42;}
10618 int main ()
10620   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10621   int status = $lt_dlunknown;
10623   if (self)
10624     {
10625       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10626       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10627       /* dlclose (self); */
10628     }
10629   else
10630     puts (dlerror ());
10632     exit (status);
10634 EOF
10635   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10636   (eval $ac_link) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10640     (./conftest; exit; ) >&5 2>/dev/null
10641     lt_status=$?
10642     case x$lt_status in
10643       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10644       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10645       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10646     esac
10647   else :
10648     # compilation failed
10649     lt_cv_dlopen_self_static=no
10650   fi
10652 rm -fr conftest*
10656 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10657 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10658     fi
10660     CPPFLAGS="$save_CPPFLAGS"
10661     LDFLAGS="$save_LDFLAGS"
10662     LIBS="$save_LIBS"
10663     ;;
10664   esac
10666   case $lt_cv_dlopen_self in
10667   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10668   *) enable_dlopen_self=unknown ;;
10669   esac
10671   case $lt_cv_dlopen_self_static in
10672   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10673   *) enable_dlopen_self_static=unknown ;;
10674   esac
10678 # Report which library types will actually be built
10679 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10680 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10681 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10682 echo "${ECHO_T}$can_build_shared" >&6; }
10684 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10685 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10686 test "$can_build_shared" = "no" && enable_shared=no
10688 # On AIX, shared libraries and static libraries use the same namespace, and
10689 # are all built from PIC.
10690 case $host_os in
10691 aix3*)
10692   test "$enable_shared" = yes && enable_static=no
10693   if test -n "$RANLIB"; then
10694     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10695     postinstall_cmds='$RANLIB $lib'
10696   fi
10697   ;;
10699 aix[4-9]*)
10700   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10701     test "$enable_shared" = yes && enable_static=no
10702   fi
10703     ;;
10704 esac
10705 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10706 echo "${ECHO_T}$enable_shared" >&6; }
10708 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10709 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10710 # Make sure either enable_shared or enable_static is yes.
10711 test "$enable_shared" = yes || enable_static=yes
10712 { echo "$as_me:$LINENO: result: $enable_static" >&5
10713 echo "${ECHO_T}$enable_static" >&6; }
10715 # The else clause should only fire when bootstrapping the
10716 # libtool distribution, otherwise you forgot to ship ltmain.sh
10717 # with your package, and you will get complaints that there are
10718 # no rules to generate ltmain.sh.
10719 if test -f "$ltmain"; then
10720   # See if we are running on zsh, and set the options which allow our commands through
10721   # without removal of \ escapes.
10722   if test -n "${ZSH_VERSION+set}" ; then
10723     setopt NO_GLOB_SUBST
10724   fi
10725   # Now quote all the things that may contain metacharacters while being
10726   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10727   # variables and quote the copies for generation of the libtool script.
10728   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10729     SED SHELL STRIP \
10730     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10731     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10732     deplibs_check_method reload_flag reload_cmds need_locks \
10733     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10734     lt_cv_sys_global_symbol_to_c_name_address \
10735     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10736     old_postinstall_cmds old_postuninstall_cmds \
10737     compiler \
10738     CC \
10739     LD \
10740     lt_prog_compiler_wl \
10741     lt_prog_compiler_pic \
10742     lt_prog_compiler_static \
10743     lt_prog_compiler_no_builtin_flag \
10744     export_dynamic_flag_spec \
10745     thread_safe_flag_spec \
10746     whole_archive_flag_spec \
10747     enable_shared_with_static_runtimes \
10748     old_archive_cmds \
10749     old_archive_from_new_cmds \
10750     predep_objects \
10751     postdep_objects \
10752     predeps \
10753     postdeps \
10754     compiler_lib_search_path \
10755     compiler_lib_search_dirs \
10756     archive_cmds \
10757     archive_expsym_cmds \
10758     postinstall_cmds \
10759     postuninstall_cmds \
10760     old_archive_from_expsyms_cmds \
10761     allow_undefined_flag \
10762     no_undefined_flag \
10763     export_symbols_cmds \
10764     hardcode_libdir_flag_spec \
10765     hardcode_libdir_flag_spec_ld \
10766     hardcode_libdir_separator \
10767     hardcode_automatic \
10768     module_cmds \
10769     module_expsym_cmds \
10770     lt_cv_prog_compiler_c_o \
10771     fix_srcfile_path \
10772     exclude_expsyms \
10773     include_expsyms; do
10775     case $var in
10776     old_archive_cmds | \
10777     old_archive_from_new_cmds | \
10778     archive_cmds | \
10779     archive_expsym_cmds | \
10780     module_cmds | \
10781     module_expsym_cmds | \
10782     old_archive_from_expsyms_cmds | \
10783     export_symbols_cmds | \
10784     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10785     postinstall_cmds | postuninstall_cmds | \
10786     old_postinstall_cmds | old_postuninstall_cmds | \
10787     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10788       # Double-quote double-evaled strings.
10789       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10790       ;;
10791     *)
10792       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10793       ;;
10794     esac
10795   done
10797   case $lt_echo in
10798   *'\$0 --fallback-echo"')
10799     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10800     ;;
10801   esac
10803 cfgfile="${ofile}T"
10804   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10805   $rm -f "$cfgfile"
10806   { echo "$as_me:$LINENO: creating $ofile" >&5
10807 echo "$as_me: creating $ofile" >&6;}
10809   cat <<__EOF__ >> "$cfgfile"
10810 #! $SHELL
10812 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10813 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10814 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10816 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10817 # Free Software Foundation, Inc.
10819 # This file is part of GNU Libtool:
10820 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10822 # This program is free software; you can redistribute it and/or modify
10823 # it under the terms of the GNU General Public License as published by
10824 # the Free Software Foundation; either version 2 of the License, or
10825 # (at your option) any later version.
10827 # This program is distributed in the hope that it will be useful, but
10828 # WITHOUT ANY WARRANTY; without even the implied warranty of
10829 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10830 # General Public License for more details.
10832 # You should have received a copy of the GNU General Public License
10833 # along with this program; if not, write to the Free Software
10834 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10836 # As a special exception to the GNU General Public License, if you
10837 # distribute this file as part of a program that contains a
10838 # configuration script generated by Autoconf, you may include it under
10839 # the same distribution terms that you use for the rest of that program.
10841 # A sed program that does not truncate output.
10842 SED=$lt_SED
10844 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10845 Xsed="$SED -e 1s/^X//"
10847 # The HP-UX ksh and POSIX shell print the target directory to stdout
10848 # if CDPATH is set.
10849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10851 # The names of the tagged configurations supported by this script.
10852 available_tags=
10854 # ### BEGIN LIBTOOL CONFIG
10856 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10858 # Shell to use when invoking shell scripts.
10859 SHELL=$lt_SHELL
10861 # Whether or not to build shared libraries.
10862 build_libtool_libs=$enable_shared
10864 # Whether or not to build static libraries.
10865 build_old_libs=$enable_static
10867 # Whether or not to add -lc for building shared libraries.
10868 build_libtool_need_lc=$archive_cmds_need_lc
10870 # Whether or not to disallow shared libs when runtime libs are static
10871 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10873 # Whether or not to optimize for fast installation.
10874 fast_install=$enable_fast_install
10876 # The host system.
10877 host_alias=$host_alias
10878 host=$host
10879 host_os=$host_os
10881 # The build system.
10882 build_alias=$build_alias
10883 build=$build
10884 build_os=$build_os
10886 # An echo program that does not interpret backslashes.
10887 echo=$lt_echo
10889 # The archiver.
10890 AR=$lt_AR
10891 AR_FLAGS=$lt_AR_FLAGS
10893 # A C compiler.
10894 LTCC=$lt_LTCC
10896 # LTCC compiler flags.
10897 LTCFLAGS=$lt_LTCFLAGS
10899 # A language-specific compiler.
10900 CC=$lt_compiler
10902 # Is the compiler the GNU C compiler?
10903 with_gcc=$GCC
10905 # An ERE matcher.
10906 EGREP=$lt_EGREP
10908 # The linker used to build libraries.
10909 LD=$lt_LD
10911 # Whether we need hard or soft links.
10912 LN_S=$lt_LN_S
10914 # A BSD-compatible nm program.
10915 NM=$lt_NM
10917 # A symbol stripping program
10918 STRIP=$lt_STRIP
10920 # Used to examine libraries when file_magic_cmd begins "file"
10921 MAGIC_CMD=$MAGIC_CMD
10923 # Used on cygwin: DLL creation program.
10924 DLLTOOL="$DLLTOOL"
10926 # Used on cygwin: object dumper.
10927 OBJDUMP="$OBJDUMP"
10929 # Used on cygwin: assembler.
10930 AS="$AS"
10932 # The name of the directory that contains temporary libtool files.
10933 objdir=$objdir
10935 # How to create reloadable object files.
10936 reload_flag=$lt_reload_flag
10937 reload_cmds=$lt_reload_cmds
10939 # How to pass a linker flag through the compiler.
10940 wl=$lt_lt_prog_compiler_wl
10942 # Object file suffix (normally "o").
10943 objext="$ac_objext"
10945 # Old archive suffix (normally "a").
10946 libext="$libext"
10948 # Shared library suffix (normally ".so").
10949 shrext_cmds='$shrext_cmds'
10951 # Executable file suffix (normally "").
10952 exeext="$exeext"
10954 # Additional compiler flags for building library objects.
10955 pic_flag=$lt_lt_prog_compiler_pic
10956 pic_mode=$pic_mode
10958 # What is the maximum length of a command?
10959 max_cmd_len=$lt_cv_sys_max_cmd_len
10961 # Does compiler simultaneously support -c and -o options?
10962 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10964 # Must we lock files when doing compilation?
10965 need_locks=$lt_need_locks
10967 # Do we need the lib prefix for modules?
10968 need_lib_prefix=$need_lib_prefix
10970 # Do we need a version for libraries?
10971 need_version=$need_version
10973 # Whether dlopen is supported.
10974 dlopen_support=$enable_dlopen
10976 # Whether dlopen of programs is supported.
10977 dlopen_self=$enable_dlopen_self
10979 # Whether dlopen of statically linked programs is supported.
10980 dlopen_self_static=$enable_dlopen_self_static
10982 # Compiler flag to prevent dynamic linking.
10983 link_static_flag=$lt_lt_prog_compiler_static
10985 # Compiler flag to turn off builtin functions.
10986 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10988 # Compiler flag to allow reflexive dlopens.
10989 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10991 # Compiler flag to generate shared objects directly from archives.
10992 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10994 # Compiler flag to generate thread-safe objects.
10995 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10997 # Library versioning type.
10998 version_type=$version_type
11000 # Format of library name prefix.
11001 libname_spec=$lt_libname_spec
11003 # List of archive names.  First name is the real one, the rest are links.
11004 # The last name is the one that the linker finds with -lNAME.
11005 library_names_spec=$lt_library_names_spec
11007 # The coded name of the library, if different from the real name.
11008 soname_spec=$lt_soname_spec
11010 # Commands used to build and install an old-style archive.
11011 RANLIB=$lt_RANLIB
11012 old_archive_cmds=$lt_old_archive_cmds
11013 old_postinstall_cmds=$lt_old_postinstall_cmds
11014 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11016 # Create an old-style archive from a shared archive.
11017 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11019 # Create a temporary old-style archive to link instead of a shared archive.
11020 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11022 # Commands used to build and install a shared archive.
11023 archive_cmds=$lt_archive_cmds
11024 archive_expsym_cmds=$lt_archive_expsym_cmds
11025 postinstall_cmds=$lt_postinstall_cmds
11026 postuninstall_cmds=$lt_postuninstall_cmds
11028 # Commands used to build a loadable module (assumed same as above if empty)
11029 module_cmds=$lt_module_cmds
11030 module_expsym_cmds=$lt_module_expsym_cmds
11032 # Commands to strip libraries.
11033 old_striplib=$lt_old_striplib
11034 striplib=$lt_striplib
11036 # Dependencies to place before the objects being linked to create a
11037 # shared library.
11038 predep_objects=$lt_predep_objects
11040 # Dependencies to place after the objects being linked to create a
11041 # shared library.
11042 postdep_objects=$lt_postdep_objects
11044 # Dependencies to place before the objects being linked to create a
11045 # shared library.
11046 predeps=$lt_predeps
11048 # Dependencies to place after the objects being linked to create a
11049 # shared library.
11050 postdeps=$lt_postdeps
11052 # The directories searched by this compiler when creating a shared
11053 # library
11054 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11056 # The library search path used internally by the compiler when linking
11057 # a shared library.
11058 compiler_lib_search_path=$lt_compiler_lib_search_path
11060 # Method to check whether dependent libraries are shared objects.
11061 deplibs_check_method=$lt_deplibs_check_method
11063 # Command to use when deplibs_check_method == file_magic.
11064 file_magic_cmd=$lt_file_magic_cmd
11066 # Flag that allows shared libraries with undefined symbols to be built.
11067 allow_undefined_flag=$lt_allow_undefined_flag
11069 # Flag that forces no undefined symbols.
11070 no_undefined_flag=$lt_no_undefined_flag
11072 # Commands used to finish a libtool library installation in a directory.
11073 finish_cmds=$lt_finish_cmds
11075 # Same as above, but a single script fragment to be evaled but not shown.
11076 finish_eval=$lt_finish_eval
11078 # Take the output of nm and produce a listing of raw symbols and C names.
11079 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11081 # Transform the output of nm in a proper C declaration
11082 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11084 # Transform the output of nm in a C name address pair
11085 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11087 # This is the shared library runtime path variable.
11088 runpath_var=$runpath_var
11090 # This is the shared library path variable.
11091 shlibpath_var=$shlibpath_var
11093 # Is shlibpath searched before the hard-coded library search path?
11094 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11096 # How to hardcode a shared library path into an executable.
11097 hardcode_action=$hardcode_action
11099 # Whether we should hardcode library paths into libraries.
11100 hardcode_into_libs=$hardcode_into_libs
11102 # Flag to hardcode \$libdir into a binary during linking.
11103 # This must work even if \$libdir does not exist.
11104 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11106 # If ld is used when linking, flag to hardcode \$libdir into
11107 # a binary during linking. This must work even if \$libdir does
11108 # not exist.
11109 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11111 # Whether we need a single -rpath flag with a separated argument.
11112 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11114 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11115 # resulting binary.
11116 hardcode_direct=$hardcode_direct
11118 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11119 # resulting binary.
11120 hardcode_minus_L=$hardcode_minus_L
11122 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11123 # the resulting binary.
11124 hardcode_shlibpath_var=$hardcode_shlibpath_var
11126 # Set to yes if building a shared library automatically hardcodes DIR into the library
11127 # and all subsequent libraries and executables linked against it.
11128 hardcode_automatic=$hardcode_automatic
11130 # Variables whose values should be saved in libtool wrapper scripts and
11131 # restored at relink time.
11132 variables_saved_for_relink="$variables_saved_for_relink"
11134 # Whether libtool must link a program against all its dependency libraries.
11135 link_all_deplibs=$link_all_deplibs
11137 # Compile-time system search path for libraries
11138 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11140 # Run-time system search path for libraries
11141 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11143 # Fix the shell variable \$srcfile for the compiler.
11144 fix_srcfile_path=$lt_fix_srcfile_path
11146 # Set to yes if exported symbols are required.
11147 always_export_symbols=$always_export_symbols
11149 # The commands to list exported symbols.
11150 export_symbols_cmds=$lt_export_symbols_cmds
11152 # The commands to extract the exported symbol list from a shared archive.
11153 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11155 # Symbols that should not be listed in the preloaded symbols.
11156 exclude_expsyms=$lt_exclude_expsyms
11158 # Symbols that must always be exported.
11159 include_expsyms=$lt_include_expsyms
11161 # ### END LIBTOOL CONFIG
11163 __EOF__
11166   case $host_os in
11167   aix3*)
11168     cat <<\EOF >> "$cfgfile"
11170 # AIX sometimes has problems with the GCC collect2 program.  For some
11171 # reason, if we set the COLLECT_NAMES environment variable, the problems
11172 # vanish in a puff of smoke.
11173 if test "X${COLLECT_NAMES+set}" != Xset; then
11174   COLLECT_NAMES=
11175   export COLLECT_NAMES
11177 EOF
11178     ;;
11179   esac
11181   # We use sed instead of cat because bash on DJGPP gets confused if
11182   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11183   # text mode, it properly converts lines to CR/LF.  This bash problem
11184   # is reportedly fixed, but why not run on old versions too?
11185   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11187   mv -f "$cfgfile" "$ofile" || \
11188     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11189   chmod +x "$ofile"
11191 else
11192   # If there is no Makefile yet, we rely on a make rule to execute
11193   # `config.status --recheck' to rerun these tests and create the
11194   # libtool script then.
11195   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11196   if test -f "$ltmain_in"; then
11197     test -f Makefile && make "$ltmain"
11198   fi
11202 ac_ext=c
11203 ac_cpp='$CPP $CPPFLAGS'
11204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11208 CC="$lt_save_CC"
11211 # Check whether --with-tags was given.
11212 if test "${with_tags+set}" = set; then
11213   withval=$with_tags; tagnames="$withval"
11217 if test -f "$ltmain" && test -n "$tagnames"; then
11218   if test ! -f "${ofile}"; then
11219     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11220 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11221   fi
11223   if test -z "$LTCC"; then
11224     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11225     if test -z "$LTCC"; then
11226       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11227 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11228     else
11229       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11230 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11231     fi
11232   fi
11233   if test -z "$LTCFLAGS"; then
11234     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11235   fi
11237   # Extract list of available tagged configurations in $ofile.
11238   # Note that this assumes the entire list is on one line.
11239   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11241   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11242   for tagname in $tagnames; do
11243     IFS="$lt_save_ifs"
11244     # Check whether tagname contains only valid characters
11245     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11246     "") ;;
11247     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11248 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11249    { (exit 1); exit 1; }; }
11250         ;;
11251     esac
11253     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11254     then
11255       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11256 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11257    { (exit 1); exit 1; }; }
11258     fi
11260     # Update the list of available tags.
11261     if test -n "$tagname"; then
11262       echo appending configuration tag \"$tagname\" to $ofile
11264       case $tagname in
11265       CXX)
11266         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11267             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11268             (test "X$CXX" != "Xg++"))) ; then
11269           ac_ext=cpp
11270 ac_cpp='$CXXCPP $CPPFLAGS'
11271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11278 archive_cmds_need_lc_CXX=no
11279 allow_undefined_flag_CXX=
11280 always_export_symbols_CXX=no
11281 archive_expsym_cmds_CXX=
11282 export_dynamic_flag_spec_CXX=
11283 hardcode_direct_CXX=no
11284 hardcode_libdir_flag_spec_CXX=
11285 hardcode_libdir_flag_spec_ld_CXX=
11286 hardcode_libdir_separator_CXX=
11287 hardcode_minus_L_CXX=no
11288 hardcode_shlibpath_var_CXX=unsupported
11289 hardcode_automatic_CXX=no
11290 module_cmds_CXX=
11291 module_expsym_cmds_CXX=
11292 link_all_deplibs_CXX=unknown
11293 old_archive_cmds_CXX=$old_archive_cmds
11294 no_undefined_flag_CXX=
11295 whole_archive_flag_spec_CXX=
11296 enable_shared_with_static_runtimes_CXX=no
11298 # Dependencies to place before and after the object being linked:
11299 predep_objects_CXX=
11300 postdep_objects_CXX=
11301 predeps_CXX=
11302 postdeps_CXX=
11303 compiler_lib_search_path_CXX=
11304 compiler_lib_search_dirs_CXX=
11306 # Source file extension for C++ test sources.
11307 ac_ext=cpp
11309 # Object file extension for compiled C++ test sources.
11310 objext=o
11311 objext_CXX=$objext
11313 # Code to be used in simple compile tests
11314 lt_simple_compile_test_code="int some_variable = 0;"
11316 # Code to be used in simple link tests
11317 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11319 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11321 # If no C compiler was specified, use CC.
11322 LTCC=${LTCC-"$CC"}
11324 # If no C compiler flags were specified, use CFLAGS.
11325 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11327 # Allow CC to be a program name with arguments.
11328 compiler=$CC
11331 # save warnings/boilerplate of simple test code
11332 ac_outfile=conftest.$ac_objext
11333 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11334 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11335 _lt_compiler_boilerplate=`cat conftest.err`
11336 $rm conftest*
11338 ac_outfile=conftest.$ac_objext
11339 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11340 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11341 _lt_linker_boilerplate=`cat conftest.err`
11342 $rm -r conftest*
11345 # Allow CC to be a program name with arguments.
11346 lt_save_CC=$CC
11347 lt_save_LD=$LD
11348 lt_save_GCC=$GCC
11349 GCC=$GXX
11350 lt_save_with_gnu_ld=$with_gnu_ld
11351 lt_save_path_LD=$lt_cv_path_LD
11352 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11353   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11354 else
11355   $as_unset lt_cv_prog_gnu_ld
11357 if test -n "${lt_cv_path_LDCXX+set}"; then
11358   lt_cv_path_LD=$lt_cv_path_LDCXX
11359 else
11360   $as_unset lt_cv_path_LD
11362 test -z "${LDCXX+set}" || LD=$LDCXX
11363 CC=${CXX-"c++"}
11364 compiler=$CC
11365 compiler_CXX=$CC
11366 for cc_temp in $compiler""; do
11367   case $cc_temp in
11368     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11369     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11370     \-*) ;;
11371     *) break;;
11372   esac
11373 done
11374 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11377 # We don't want -fno-exception wen compiling C++ code, so set the
11378 # no_builtin_flag separately
11379 if test "$GXX" = yes; then
11380   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11381 else
11382   lt_prog_compiler_no_builtin_flag_CXX=
11385 if test "$GXX" = yes; then
11386   # Set up default GNU C++ configuration
11389 # Check whether --with-gnu-ld was given.
11390 if test "${with_gnu_ld+set}" = set; then
11391   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11392 else
11393   with_gnu_ld=no
11396 ac_prog=ld
11397 if test "$GCC" = yes; then
11398   # Check if gcc -print-prog-name=ld gives a path.
11399   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11400 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11401   case $host in
11402   *-*-mingw*)
11403     # gcc leaves a trailing carriage return which upsets mingw
11404     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11405   *)
11406     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11407   esac
11408   case $ac_prog in
11409     # Accept absolute paths.
11410     [\\/]* | ?:[\\/]*)
11411       re_direlt='/[^/][^/]*/\.\./'
11412       # Canonicalize the pathname of ld
11413       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11414       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11415         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11416       done
11417       test -z "$LD" && LD="$ac_prog"
11418       ;;
11419   "")
11420     # If it fails, then pretend we aren't using GCC.
11421     ac_prog=ld
11422     ;;
11423   *)
11424     # If it is relative, then search for the first ld in PATH.
11425     with_gnu_ld=unknown
11426     ;;
11427   esac
11428 elif test "$with_gnu_ld" = yes; then
11429   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11430 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11431 else
11432   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11433 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11435 if test "${lt_cv_path_LD+set}" = set; then
11436   echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438   if test -z "$LD"; then
11439   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11440   for ac_dir in $PATH; do
11441     IFS="$lt_save_ifs"
11442     test -z "$ac_dir" && ac_dir=.
11443     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11444       lt_cv_path_LD="$ac_dir/$ac_prog"
11445       # Check to see if the program is GNU ld.  I'd rather use --version,
11446       # but apparently some variants of GNU ld only accept -v.
11447       # Break only if it was the GNU/non-GNU ld that we prefer.
11448       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11449       *GNU* | *'with BFD'*)
11450         test "$with_gnu_ld" != no && break
11451         ;;
11452       *)
11453         test "$with_gnu_ld" != yes && break
11454         ;;
11455       esac
11456     fi
11457   done
11458   IFS="$lt_save_ifs"
11459 else
11460   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11464 LD="$lt_cv_path_LD"
11465 if test -n "$LD"; then
11466   { echo "$as_me:$LINENO: result: $LD" >&5
11467 echo "${ECHO_T}$LD" >&6; }
11468 else
11469   { echo "$as_me:$LINENO: result: no" >&5
11470 echo "${ECHO_T}no" >&6; }
11472 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11473 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11474    { (exit 1); exit 1; }; }
11475 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11476 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11477 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11478   echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11481 case `$LD -v 2>&1 </dev/null` in
11482 *GNU* | *'with BFD'*)
11483   lt_cv_prog_gnu_ld=yes
11484   ;;
11486   lt_cv_prog_gnu_ld=no
11487   ;;
11488 esac
11490 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11491 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11492 with_gnu_ld=$lt_cv_prog_gnu_ld
11496   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11497   # archiving commands below assume that GNU ld is being used.
11498   if test "$with_gnu_ld" = yes; then
11499     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11500     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'
11502     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11503     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11505     # If archive_cmds runs LD, not CC, wlarc should be empty
11506     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11507     #     investigate it a little bit more. (MM)
11508     wlarc='${wl}'
11510     # ancient GNU ld didn't support --whole-archive et. al.
11511     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11512         grep 'no-whole-archive' > /dev/null; then
11513       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11514     else
11515       whole_archive_flag_spec_CXX=
11516     fi
11517   else
11518     with_gnu_ld=no
11519     wlarc=
11521     # A generic and very simple default shared library creation
11522     # command for GNU C++ for the case where it uses the native
11523     # linker, instead of GNU ld.  If possible, this setting should
11524     # overridden to take advantage of the native linker features on
11525     # the platform it is being used on.
11526     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11527   fi
11529   # Commands to make compiler produce verbose output that lists
11530   # what "hidden" libraries, object files and flags are used when
11531   # linking a shared library.
11532   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11534 else
11535   GXX=no
11536   with_gnu_ld=no
11537   wlarc=
11540 # PORTME: fill in a description of your system's C++ link characteristics
11541 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11542 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11543 ld_shlibs_CXX=yes
11544 case $host_os in
11545   aix3*)
11546     # FIXME: insert proper C++ library support
11547     ld_shlibs_CXX=no
11548     ;;
11549   aix[4-9]*)
11550     if test "$host_cpu" = ia64; then
11551       # On IA64, the linker does run time linking by default, so we don't
11552       # have to do anything special.
11553       aix_use_runtimelinking=no
11554       exp_sym_flag='-Bexport'
11555       no_entry_flag=""
11556     else
11557       aix_use_runtimelinking=no
11559       # Test if we are trying to use run time linking or normal
11560       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11561       # need to do runtime linking.
11562       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11563         for ld_flag in $LDFLAGS; do
11564           case $ld_flag in
11565           *-brtl*)
11566             aix_use_runtimelinking=yes
11567             break
11568             ;;
11569           esac
11570         done
11571         ;;
11572       esac
11574       exp_sym_flag='-bexport'
11575       no_entry_flag='-bnoentry'
11576     fi
11578     # When large executables or shared objects are built, AIX ld can
11579     # have problems creating the table of contents.  If linking a library
11580     # or program results in "error TOC overflow" add -mminimal-toc to
11581     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11582     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11584     archive_cmds_CXX=''
11585     hardcode_direct_CXX=yes
11586     hardcode_libdir_separator_CXX=':'
11587     link_all_deplibs_CXX=yes
11589     if test "$GXX" = yes; then
11590       case $host_os in aix4.[012]|aix4.[012].*)
11591       # We only want to do this on AIX 4.2 and lower, the check
11592       # below for broken collect2 doesn't work under 4.3+
11593         collect2name=`${CC} -print-prog-name=collect2`
11594         if test -f "$collect2name" && \
11595            strings "$collect2name" | grep resolve_lib_name >/dev/null
11596         then
11597           # We have reworked collect2
11598           :
11599         else
11600           # We have old collect2
11601           hardcode_direct_CXX=unsupported
11602           # It fails to find uninstalled libraries when the uninstalled
11603           # path is not listed in the libpath.  Setting hardcode_minus_L
11604           # to unsupported forces relinking
11605           hardcode_minus_L_CXX=yes
11606           hardcode_libdir_flag_spec_CXX='-L$libdir'
11607           hardcode_libdir_separator_CXX=
11608         fi
11609         ;;
11610       esac
11611       shared_flag='-shared'
11612       if test "$aix_use_runtimelinking" = yes; then
11613         shared_flag="$shared_flag "'${wl}-G'
11614       fi
11615     else
11616       # not using gcc
11617       if test "$host_cpu" = ia64; then
11618         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11619         # chokes on -Wl,-G. The following line is correct:
11620         shared_flag='-G'
11621       else
11622         if test "$aix_use_runtimelinking" = yes; then
11623           shared_flag='${wl}-G'
11624         else
11625           shared_flag='${wl}-bM:SRE'
11626         fi
11627       fi
11628     fi
11630     # It seems that -bexpall does not export symbols beginning with
11631     # underscore (_), so it is better to generate a list of symbols to export.
11632     always_export_symbols_CXX=yes
11633     if test "$aix_use_runtimelinking" = yes; then
11634       # Warning - without using the other runtime loading flags (-brtl),
11635       # -berok will link without error, but may produce a broken library.
11636       allow_undefined_flag_CXX='-berok'
11637       # Determine the default libpath from the value encoded in an empty executable.
11638       cat >conftest.$ac_ext <<_ACEOF
11639 /* confdefs.h.  */
11640 _ACEOF
11641 cat confdefs.h >>conftest.$ac_ext
11642 cat >>conftest.$ac_ext <<_ACEOF
11643 /* end confdefs.h.  */
11645 int
11646 main ()
11649   ;
11650   return 0;
11652 _ACEOF
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_link") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } && {
11667          test -z "$ac_cxx_werror_flag" ||
11668          test ! -s conftest.err
11669        } && test -s conftest$ac_exeext &&
11670        $as_test_x conftest$ac_exeext; then
11672 lt_aix_libpath_sed='
11673     /Import File Strings/,/^$/ {
11674         /^0/ {
11675             s/^0  *\(.*\)$/\1/
11676             p
11677         }
11678     }'
11679 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11680 # Check for a 64-bit object if we didn't find anything.
11681 if test -z "$aix_libpath"; then
11682   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11684 else
11685   echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11692       conftest$ac_exeext conftest.$ac_ext
11693 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11695       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11697       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"
11698      else
11699       if test "$host_cpu" = ia64; then
11700         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11701         allow_undefined_flag_CXX="-z nodefs"
11702         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"
11703       else
11704         # Determine the default libpath from the value encoded in an empty executable.
11705         cat >conftest.$ac_ext <<_ACEOF
11706 /* confdefs.h.  */
11707 _ACEOF
11708 cat confdefs.h >>conftest.$ac_ext
11709 cat >>conftest.$ac_ext <<_ACEOF
11710 /* end confdefs.h.  */
11712 int
11713 main ()
11716   ;
11717   return 0;
11719 _ACEOF
11720 rm -f conftest.$ac_objext conftest$ac_exeext
11721 if { (ac_try="$ac_link"
11722 case "(($ac_try" in
11723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724   *) ac_try_echo=$ac_try;;
11725 esac
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727   (eval "$ac_link") 2>conftest.er1
11728   ac_status=$?
11729   grep -v '^ *+' conftest.er1 >conftest.err
11730   rm -f conftest.er1
11731   cat conftest.err >&5
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } && {
11734          test -z "$ac_cxx_werror_flag" ||
11735          test ! -s conftest.err
11736        } && test -s conftest$ac_exeext &&
11737        $as_test_x conftest$ac_exeext; then
11739 lt_aix_libpath_sed='
11740     /Import File Strings/,/^$/ {
11741         /^0/ {
11742             s/^0  *\(.*\)$/\1/
11743             p
11744         }
11745     }'
11746 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747 # Check for a 64-bit object if we didn't find anything.
11748 if test -z "$aix_libpath"; then
11749   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11751 else
11752   echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759       conftest$ac_exeext conftest.$ac_ext
11760 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11762         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11763         # Warning - without using the other run time loading flags,
11764         # -berok will link without error, but may produce a broken library.
11765         no_undefined_flag_CXX=' ${wl}-bernotok'
11766         allow_undefined_flag_CXX=' ${wl}-berok'
11767         # Exported symbols can be pulled into shared objects from archives
11768         whole_archive_flag_spec_CXX='$convenience'
11769         archive_cmds_need_lc_CXX=yes
11770         # This is similar to how AIX traditionally builds its shared libraries.
11771         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'
11772       fi
11773     fi
11774     ;;
11776   beos*)
11777     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11778       allow_undefined_flag_CXX=unsupported
11779       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11780       # support --undefined.  This deserves some investigation.  FIXME
11781       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11782     else
11783       ld_shlibs_CXX=no
11784     fi
11785     ;;
11787   chorus*)
11788     case $cc_basename in
11789       *)
11790         # FIXME: insert proper C++ library support
11791         ld_shlibs_CXX=no
11792         ;;
11793     esac
11794     ;;
11796   cygwin* | mingw* | pw32*)
11797     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11798     # as there is no search path for DLLs.
11799     hardcode_libdir_flag_spec_CXX='-L$libdir'
11800     allow_undefined_flag_CXX=unsupported
11801     always_export_symbols_CXX=no
11802     enable_shared_with_static_runtimes_CXX=yes
11804     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11805       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'
11806       # If the export-symbols file already is a .def file (1st line
11807       # is EXPORTS), use it as is; otherwise, prepend...
11808       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11809         cp $export_symbols $output_objdir/$soname.def;
11810       else
11811         echo EXPORTS > $output_objdir/$soname.def;
11812         cat $export_symbols >> $output_objdir/$soname.def;
11813       fi~
11814       $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'
11815     else
11816       ld_shlibs_CXX=no
11817     fi
11818   ;;
11819       darwin* | rhapsody*)
11820       archive_cmds_need_lc_CXX=no
11821       hardcode_direct_CXX=no
11822       hardcode_automatic_CXX=yes
11823       hardcode_shlibpath_var_CXX=unsupported
11824       whole_archive_flag_spec_CXX=''
11825       link_all_deplibs_CXX=yes
11826       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11827       if test "$GXX" = yes ; then
11828       output_verbose_link_cmd='echo'
11829       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}"
11830       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11831       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}"
11832       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}"
11833       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11834         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}"
11835         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}"
11836       fi
11837       else
11838       case $cc_basename in
11839         xlc*)
11840          output_verbose_link_cmd='echo'
11841           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'
11842           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11843           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11844           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}'
11845           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}'
11846           ;;
11847        *)
11848          ld_shlibs_CXX=no
11849           ;;
11850       esac
11851       fi
11852         ;;
11854   dgux*)
11855     case $cc_basename in
11856       ec++*)
11857         # FIXME: insert proper C++ library support
11858         ld_shlibs_CXX=no
11859         ;;
11860       ghcx*)
11861         # Green Hills C++ Compiler
11862         # FIXME: insert proper C++ library support
11863         ld_shlibs_CXX=no
11864         ;;
11865       *)
11866         # FIXME: insert proper C++ library support
11867         ld_shlibs_CXX=no
11868         ;;
11869     esac
11870     ;;
11871   freebsd[12]*)
11872     # C++ shared libraries reported to be fairly broken before switch to ELF
11873     ld_shlibs_CXX=no
11874     ;;
11875   freebsd-elf*)
11876     archive_cmds_need_lc_CXX=no
11877     ;;
11878   freebsd* | dragonfly*)
11879     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11880     # conventions
11881     ld_shlibs_CXX=yes
11882     ;;
11883   gnu*)
11884     ;;
11885   hpux9*)
11886     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11887     hardcode_libdir_separator_CXX=:
11888     export_dynamic_flag_spec_CXX='${wl}-E'
11889     hardcode_direct_CXX=yes
11890     hardcode_minus_L_CXX=yes # Not in the search PATH,
11891                                 # but as the default
11892                                 # location of the library.
11894     case $cc_basename in
11895     CC*)
11896       # FIXME: insert proper C++ library support
11897       ld_shlibs_CXX=no
11898       ;;
11899     aCC*)
11900       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'
11901       # Commands to make compiler produce verbose output that lists
11902       # what "hidden" libraries, object files and flags are used when
11903       # linking a shared library.
11904       #
11905       # There doesn't appear to be a way to prevent this compiler from
11906       # explicitly linking system object files so we need to strip them
11907       # from the output so that they don't get included in the library
11908       # dependencies.
11909       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'
11910       ;;
11911     *)
11912       if test "$GXX" = yes; then
11913         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'
11914       else
11915         # FIXME: insert proper C++ library support
11916         ld_shlibs_CXX=no
11917       fi
11918       ;;
11919     esac
11920     ;;
11921   hpux10*|hpux11*)
11922     if test $with_gnu_ld = no; then
11923       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11924       hardcode_libdir_separator_CXX=:
11926       case $host_cpu in
11927       hppa*64*|ia64*) ;;
11928       *)
11929         export_dynamic_flag_spec_CXX='${wl}-E'
11930         ;;
11931       esac
11932     fi
11933     case $host_cpu in
11934     hppa*64*|ia64*)
11935       hardcode_direct_CXX=no
11936       hardcode_shlibpath_var_CXX=no
11937       ;;
11938     *)
11939       hardcode_direct_CXX=yes
11940       hardcode_minus_L_CXX=yes # Not in the search PATH,
11941                                               # but as the default
11942                                               # location of the library.
11943       ;;
11944     esac
11946     case $cc_basename in
11947       CC*)
11948         # FIXME: insert proper C++ library support
11949         ld_shlibs_CXX=no
11950         ;;
11951       aCC*)
11952         case $host_cpu in
11953         hppa*64*)
11954           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11955           ;;
11956         ia64*)
11957           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11958           ;;
11959         *)
11960           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11961           ;;
11962         esac
11963         # Commands to make compiler produce verbose output that lists
11964         # what "hidden" libraries, object files and flags are used when
11965         # linking a shared library.
11966         #
11967         # There doesn't appear to be a way to prevent this compiler from
11968         # explicitly linking system object files so we need to strip them
11969         # from the output so that they don't get included in the library
11970         # dependencies.
11971         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'
11972         ;;
11973       *)
11974         if test "$GXX" = yes; then
11975           if test $with_gnu_ld = no; then
11976             case $host_cpu in
11977             hppa*64*)
11978               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11979               ;;
11980             ia64*)
11981               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11982               ;;
11983             *)
11984               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'
11985               ;;
11986             esac
11987           fi
11988         else
11989           # FIXME: insert proper C++ library support
11990           ld_shlibs_CXX=no
11991         fi
11992         ;;
11993     esac
11994     ;;
11995   interix[3-9]*)
11996     hardcode_direct_CXX=no
11997     hardcode_shlibpath_var_CXX=no
11998     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11999     export_dynamic_flag_spec_CXX='${wl}-E'
12000     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12001     # Instead, shared libraries are loaded at an image base (0x10000000 by
12002     # default) and relocated if they conflict, which is a slow very memory
12003     # consuming and fragmenting process.  To avoid this, we pick a random,
12004     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12005     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12006     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'
12007     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'
12008     ;;
12009   irix5* | irix6*)
12010     case $cc_basename in
12011       CC*)
12012         # SGI C++
12013         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'
12015         # Archives containing C++ object files must be created using
12016         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12017         # necessary to make sure instantiated templates are included
12018         # in the archive.
12019         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12020         ;;
12021       *)
12022         if test "$GXX" = yes; then
12023           if test "$with_gnu_ld" = no; then
12024             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'
12025           else
12026             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'
12027           fi
12028         fi
12029         link_all_deplibs_CXX=yes
12030         ;;
12031     esac
12032     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12033     hardcode_libdir_separator_CXX=:
12034     ;;
12035   linux* | k*bsd*-gnu)
12036     case $cc_basename in
12037       KCC*)
12038         # Kuck and Associates, Inc. (KAI) C++ Compiler
12040         # KCC will only create a shared library if the output file
12041         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12042         # to its proper name (with version) after linking.
12043         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'
12044         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'
12045         # Commands to make compiler produce verbose output that lists
12046         # what "hidden" libraries, object files and flags are used when
12047         # linking a shared library.
12048         #
12049         # There doesn't appear to be a way to prevent this compiler from
12050         # explicitly linking system object files so we need to strip them
12051         # from the output so that they don't get included in the library
12052         # dependencies.
12053         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'
12055         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12056         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12058         # Archives containing C++ object files must be created using
12059         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12060         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12061         ;;
12062       icpc*)
12063         # Intel C++
12064         with_gnu_ld=yes
12065         # version 8.0 and above of icpc choke on multiply defined symbols
12066         # if we add $predep_objects and $postdep_objects, however 7.1 and
12067         # earlier do not add the objects themselves.
12068         case `$CC -V 2>&1` in
12069         *"Version 7."*)
12070           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12071           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'
12072           ;;
12073         *)  # Version 8.0 or newer
12074           tmp_idyn=
12075           case $host_cpu in
12076             ia64*) tmp_idyn=' -i_dynamic';;
12077           esac
12078           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12079           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'
12080           ;;
12081         esac
12082         archive_cmds_need_lc_CXX=no
12083         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12084         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12085         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12086         ;;
12087       pgCC* | pgcpp*)
12088         # Portland Group C++ compiler
12089         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12090         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'
12092         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12093         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12094         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'
12095         ;;
12096       cxx*)
12097         # Compaq C++
12098         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12099         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'
12101         runpath_var=LD_RUN_PATH
12102         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12103         hardcode_libdir_separator_CXX=:
12105         # Commands to make compiler produce verbose output that lists
12106         # what "hidden" libraries, object files and flags are used when
12107         # linking a shared library.
12108         #
12109         # There doesn't appear to be a way to prevent this compiler from
12110         # explicitly linking system object files so we need to strip them
12111         # from the output so that they don't get included in the library
12112         # dependencies.
12113         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'
12114         ;;
12115       *)
12116         case `$CC -V 2>&1 | sed 5q` in
12117         *Sun\ C*)
12118           # Sun C++ 5.9
12119           no_undefined_flag_CXX=' -zdefs'
12120           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12121           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'
12122           hardcode_libdir_flag_spec_CXX='-R$libdir'
12123           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'
12125           # Not sure whether something based on
12126           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12127           # would be better.
12128           output_verbose_link_cmd='echo'
12130           # Archives containing C++ object files must be created using
12131           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12132           # necessary to make sure instantiated templates are included
12133           # in the archive.
12134           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12135           ;;
12136         esac
12137         ;;
12138     esac
12139     ;;
12140   lynxos*)
12141     # FIXME: insert proper C++ library support
12142     ld_shlibs_CXX=no
12143     ;;
12144   m88k*)
12145     # FIXME: insert proper C++ library support
12146     ld_shlibs_CXX=no
12147     ;;
12148   mvs*)
12149     case $cc_basename in
12150       cxx*)
12151         # FIXME: insert proper C++ library support
12152         ld_shlibs_CXX=no
12153         ;;
12154       *)
12155         # FIXME: insert proper C++ library support
12156         ld_shlibs_CXX=no
12157         ;;
12158     esac
12159     ;;
12160   netbsd* | netbsdelf*-gnu)
12161     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12162       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12163       wlarc=
12164       hardcode_libdir_flag_spec_CXX='-R$libdir'
12165       hardcode_direct_CXX=yes
12166       hardcode_shlibpath_var_CXX=no
12167     fi
12168     # Workaround some broken pre-1.5 toolchains
12169     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12170     ;;
12171   openbsd2*)
12172     # C++ shared libraries are fairly broken
12173     ld_shlibs_CXX=no
12174     ;;
12175   openbsd*)
12176     if test -f /usr/libexec/ld.so; then
12177       hardcode_direct_CXX=yes
12178       hardcode_shlibpath_var_CXX=no
12179       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12180       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12181       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12182         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12183         export_dynamic_flag_spec_CXX='${wl}-E'
12184         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12185       fi
12186       output_verbose_link_cmd='echo'
12187     else
12188       ld_shlibs_CXX=no
12189     fi
12190     ;;
12191   osf3*)
12192     case $cc_basename in
12193       KCC*)
12194         # Kuck and Associates, Inc. (KAI) C++ Compiler
12196         # KCC will only create a shared library if the output file
12197         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12198         # to its proper name (with version) after linking.
12199         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'
12201         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12202         hardcode_libdir_separator_CXX=:
12204         # Archives containing C++ object files must be created using
12205         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12206         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12208         ;;
12209       RCC*)
12210         # Rational C++ 2.4.1
12211         # FIXME: insert proper C++ library support
12212         ld_shlibs_CXX=no
12213         ;;
12214       cxx*)
12215         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12216         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'
12218         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12219         hardcode_libdir_separator_CXX=:
12221         # Commands to make compiler produce verbose output that lists
12222         # what "hidden" libraries, object files and flags are used when
12223         # linking a shared library.
12224         #
12225         # There doesn't appear to be a way to prevent this compiler from
12226         # explicitly linking system object files so we need to strip them
12227         # from the output so that they don't get included in the library
12228         # dependencies.
12229         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'
12230         ;;
12231       *)
12232         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12233           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12234           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'
12236           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12237           hardcode_libdir_separator_CXX=:
12239           # Commands to make compiler produce verbose output that lists
12240           # what "hidden" libraries, object files and flags are used when
12241           # linking a shared library.
12242           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12244         else
12245           # FIXME: insert proper C++ library support
12246           ld_shlibs_CXX=no
12247         fi
12248         ;;
12249     esac
12250     ;;
12251   osf4* | osf5*)
12252     case $cc_basename in
12253       KCC*)
12254         # Kuck and Associates, Inc. (KAI) C++ Compiler
12256         # KCC will only create a shared library if the output file
12257         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12258         # to its proper name (with version) after linking.
12259         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'
12261         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12262         hardcode_libdir_separator_CXX=:
12264         # Archives containing C++ object files must be created using
12265         # the KAI C++ compiler.
12266         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12267         ;;
12268       RCC*)
12269         # Rational C++ 2.4.1
12270         # FIXME: insert proper C++ library support
12271         ld_shlibs_CXX=no
12272         ;;
12273       cxx*)
12274         allow_undefined_flag_CXX=' -expect_unresolved \*'
12275         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'
12276         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12277           echo "-hidden">> $lib.exp~
12278           $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~
12279           $rm $lib.exp'
12281         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12282         hardcode_libdir_separator_CXX=:
12284         # Commands to make compiler produce verbose output that lists
12285         # what "hidden" libraries, object files and flags are used when
12286         # linking a shared library.
12287         #
12288         # There doesn't appear to be a way to prevent this compiler from
12289         # explicitly linking system object files so we need to strip them
12290         # from the output so that they don't get included in the library
12291         # dependencies.
12292         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'
12293         ;;
12294       *)
12295         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12296           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12297          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'
12299           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12300           hardcode_libdir_separator_CXX=:
12302           # Commands to make compiler produce verbose output that lists
12303           # what "hidden" libraries, object files and flags are used when
12304           # linking a shared library.
12305           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12307         else
12308           # FIXME: insert proper C++ library support
12309           ld_shlibs_CXX=no
12310         fi
12311         ;;
12312     esac
12313     ;;
12314   psos*)
12315     # FIXME: insert proper C++ library support
12316     ld_shlibs_CXX=no
12317     ;;
12318   sunos4*)
12319     case $cc_basename in
12320       CC*)
12321         # Sun C++ 4.x
12322         # FIXME: insert proper C++ library support
12323         ld_shlibs_CXX=no
12324         ;;
12325       lcc*)
12326         # Lucid
12327         # FIXME: insert proper C++ library support
12328         ld_shlibs_CXX=no
12329         ;;
12330       *)
12331         # FIXME: insert proper C++ library support
12332         ld_shlibs_CXX=no
12333         ;;
12334     esac
12335     ;;
12336   solaris*)
12337     case $cc_basename in
12338       CC*)
12339         # Sun C++ 4.2, 5.x and Centerline C++
12340         archive_cmds_need_lc_CXX=yes
12341         no_undefined_flag_CXX=' -zdefs'
12342         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12343         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12344         $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'
12346         hardcode_libdir_flag_spec_CXX='-R$libdir'
12347         hardcode_shlibpath_var_CXX=no
12348         case $host_os in
12349           solaris2.[0-5] | solaris2.[0-5].*) ;;
12350           *)
12351             # The compiler driver will combine and reorder linker options,
12352             # but understands `-z linker_flag'.
12353             # Supported since Solaris 2.6 (maybe 2.5.1?)
12354             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12355             ;;
12356         esac
12357         link_all_deplibs_CXX=yes
12359         output_verbose_link_cmd='echo'
12361         # Archives containing C++ object files must be created using
12362         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12363         # necessary to make sure instantiated templates are included
12364         # in the archive.
12365         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12366         ;;
12367       gcx*)
12368         # Green Hills C++ Compiler
12369         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12371         # The C++ compiler must be used to create the archive.
12372         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12373         ;;
12374       *)
12375         # GNU C++ compiler with Solaris linker
12376         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12377           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12378           if $CC --version | grep -v '^2\.7' > /dev/null; then
12379             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12380             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12381                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12383             # Commands to make compiler produce verbose output that lists
12384             # what "hidden" libraries, object files and flags are used when
12385             # linking a shared library.
12386             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12387           else
12388             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12389             # platform.
12390             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12391             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12392                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12394             # Commands to make compiler produce verbose output that lists
12395             # what "hidden" libraries, object files and flags are used when
12396             # linking a shared library.
12397             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12398           fi
12400           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12401           case $host_os in
12402           solaris2.[0-5] | solaris2.[0-5].*) ;;
12403           *)
12404             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12405             ;;
12406           esac
12407         fi
12408         ;;
12409     esac
12410     ;;
12411   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12412     no_undefined_flag_CXX='${wl}-z,text'
12413     archive_cmds_need_lc_CXX=no
12414     hardcode_shlibpath_var_CXX=no
12415     runpath_var='LD_RUN_PATH'
12417     case $cc_basename in
12418       CC*)
12419         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12420         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12421         ;;
12422       *)
12423         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12425         ;;
12426     esac
12427     ;;
12428   sysv5* | sco3.2v5* | sco5v6*)
12429     # Note: We can NOT use -z defs as we might desire, because we do not
12430     # link with -lc, and that would cause any symbols used from libc to
12431     # always be unresolved, which means just about no library would
12432     # ever link correctly.  If we're not using GNU ld we use -z text
12433     # though, which does catch some bad symbols but isn't as heavy-handed
12434     # as -z defs.
12435     # For security reasons, it is highly recommended that you always
12436     # use absolute paths for naming shared libraries, and exclude the
12437     # DT_RUNPATH tag from executables and libraries.  But doing so
12438     # requires that you compile everything twice, which is a pain.
12439     # So that behaviour is only enabled if SCOABSPATH is set to a
12440     # non-empty value in the environment.  Most likely only useful for
12441     # creating official distributions of packages.
12442     # This is a hack until libtool officially supports absolute path
12443     # names for shared libraries.
12444     no_undefined_flag_CXX='${wl}-z,text'
12445     allow_undefined_flag_CXX='${wl}-z,nodefs'
12446     archive_cmds_need_lc_CXX=no
12447     hardcode_shlibpath_var_CXX=no
12448     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12449     hardcode_libdir_separator_CXX=':'
12450     link_all_deplibs_CXX=yes
12451     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12452     runpath_var='LD_RUN_PATH'
12454     case $cc_basename in
12455       CC*)
12456         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12457         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12458         ;;
12459       *)
12460         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12461         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12462         ;;
12463     esac
12464     ;;
12465   tandem*)
12466     case $cc_basename in
12467       NCC*)
12468         # NonStop-UX NCC 3.20
12469         # FIXME: insert proper C++ library support
12470         ld_shlibs_CXX=no
12471         ;;
12472       *)
12473         # FIXME: insert proper C++ library support
12474         ld_shlibs_CXX=no
12475         ;;
12476     esac
12477     ;;
12478   vxworks*)
12479     # FIXME: insert proper C++ library support
12480     ld_shlibs_CXX=no
12481     ;;
12482   *)
12483     # FIXME: insert proper C++ library support
12484     ld_shlibs_CXX=no
12485     ;;
12486 esac
12487 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12488 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12489 test "$ld_shlibs_CXX" = no && can_build_shared=no
12491 GCC_CXX="$GXX"
12492 LD_CXX="$LD"
12494 cat > conftest.$ac_ext <<EOF
12495 class Foo
12497 public:
12498   Foo (void) { a = 0; }
12499 private:
12500   int a;
12502 EOF
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505   (eval $ac_compile) 2>&5
12506   ac_status=$?
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); }; then
12509   # Parse the compiler output and extract the necessary
12510   # objects, libraries and library flags.
12512   # Sentinel used to keep track of whether or not we are before
12513   # the conftest object file.
12514   pre_test_object_deps_done=no
12516   # The `*' in the case matches for architectures that use `case' in
12517   # $output_verbose_cmd can trigger glob expansion during the loop
12518   # eval without this substitution.
12519   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12521   for p in `eval $output_verbose_link_cmd`; do
12522     case $p in
12524     -L* | -R* | -l*)
12525        # Some compilers place space between "-{L,R}" and the path.
12526        # Remove the space.
12527        if test $p = "-L" \
12528           || test $p = "-R"; then
12529          prev=$p
12530          continue
12531        else
12532          prev=
12533        fi
12535        if test "$pre_test_object_deps_done" = no; then
12536          case $p in
12537          -L* | -R*)
12538            # Internal compiler library paths should come after those
12539            # provided the user.  The postdeps already come after the
12540            # user supplied libs so there is no need to process them.
12541            if test -z "$compiler_lib_search_path_CXX"; then
12542              compiler_lib_search_path_CXX="${prev}${p}"
12543            else
12544              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12545            fi
12546            ;;
12547          # The "-l" case would never come before the object being
12548          # linked, so don't bother handling this case.
12549          esac
12550        else
12551          if test -z "$postdeps_CXX"; then
12552            postdeps_CXX="${prev}${p}"
12553          else
12554            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12555          fi
12556        fi
12557        ;;
12559     *.$objext)
12560        # This assumes that the test object file only shows up
12561        # once in the compiler output.
12562        if test "$p" = "conftest.$objext"; then
12563          pre_test_object_deps_done=yes
12564          continue
12565        fi
12567        if test "$pre_test_object_deps_done" = no; then
12568          if test -z "$predep_objects_CXX"; then
12569            predep_objects_CXX="$p"
12570          else
12571            predep_objects_CXX="$predep_objects_CXX $p"
12572          fi
12573        else
12574          if test -z "$postdep_objects_CXX"; then
12575            postdep_objects_CXX="$p"
12576          else
12577            postdep_objects_CXX="$postdep_objects_CXX $p"
12578          fi
12579        fi
12580        ;;
12582     *) ;; # Ignore the rest.
12584     esac
12585   done
12587   # Clean up.
12588   rm -f a.out a.exe
12589 else
12590   echo "libtool.m4: error: problem compiling CXX test program"
12593 $rm -f confest.$objext
12595 compiler_lib_search_dirs_CXX=
12596 if test -n "$compiler_lib_search_path_CXX"; then
12597   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12600 # PORTME: override above test on systems where it is broken
12601 case $host_os in
12602 interix[3-9]*)
12603   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12604   # hack all around it, let's just trust "g++" to DTRT.
12605   predep_objects_CXX=
12606   postdep_objects_CXX=
12607   postdeps_CXX=
12608   ;;
12610 linux*)
12611   case `$CC -V 2>&1 | sed 5q` in
12612   *Sun\ C*)
12613     # Sun C++ 5.9
12614     #
12615     # The more standards-conforming stlport4 library is
12616     # incompatible with the Cstd library. Avoid specifying
12617     # it if it's in CXXFLAGS. Ignore libCrun as
12618     # -library=stlport4 depends on it.
12619     case " $CXX $CXXFLAGS " in
12620     *" -library=stlport4 "*)
12621       solaris_use_stlport4=yes
12622       ;;
12623     esac
12624     if test "$solaris_use_stlport4" != yes; then
12625       postdeps_CXX='-library=Cstd -library=Crun'
12626     fi
12627     ;;
12628   esac
12629   ;;
12631 solaris*)
12632   case $cc_basename in
12633   CC*)
12634     # The more standards-conforming stlport4 library is
12635     # incompatible with the Cstd library. Avoid specifying
12636     # it if it's in CXXFLAGS. Ignore libCrun as
12637     # -library=stlport4 depends on it.
12638     case " $CXX $CXXFLAGS " in
12639     *" -library=stlport4 "*)
12640       solaris_use_stlport4=yes
12641       ;;
12642     esac
12644     # Adding this requires a known-good setup of shared libraries for
12645     # Sun compiler versions before 5.6, else PIC objects from an old
12646     # archive will be linked into the output, leading to subtle bugs.
12647     if test "$solaris_use_stlport4" != yes; then
12648       postdeps_CXX='-library=Cstd -library=Crun'
12649     fi
12650     ;;
12651   esac
12652   ;;
12653 esac
12655 case " $postdeps_CXX " in
12656 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12657 esac
12659 lt_prog_compiler_wl_CXX=
12660 lt_prog_compiler_pic_CXX=
12661 lt_prog_compiler_static_CXX=
12663 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12664 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12666   # C++ specific cases for pic, static, wl, etc.
12667   if test "$GXX" = yes; then
12668     lt_prog_compiler_wl_CXX='-Wl,'
12669     lt_prog_compiler_static_CXX='-static'
12671     case $host_os in
12672     aix*)
12673       # All AIX code is PIC.
12674       if test "$host_cpu" = ia64; then
12675         # AIX 5 now supports IA64 processor
12676         lt_prog_compiler_static_CXX='-Bstatic'
12677       fi
12678       ;;
12679     amigaos*)
12680       # FIXME: we need at least 68020 code to build shared libraries, but
12681       # adding the `-m68020' flag to GCC prevents building anything better,
12682       # like `-m68040'.
12683       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12684       ;;
12685     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12686       # PIC is the default for these OSes.
12687       ;;
12688     mingw* | cygwin* | os2* | pw32*)
12689       # This hack is so that the source file can tell whether it is being
12690       # built for inclusion in a dll (and should export symbols for example).
12691       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12692       # (--disable-auto-import) libraries
12693       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12694       ;;
12695     darwin* | rhapsody*)
12696       # PIC is the default on this platform
12697       # Common symbols not allowed in MH_DYLIB files
12698       lt_prog_compiler_pic_CXX='-fno-common'
12699       ;;
12700     *djgpp*)
12701       # DJGPP does not support shared libraries at all
12702       lt_prog_compiler_pic_CXX=
12703       ;;
12704     interix[3-9]*)
12705       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12706       # Instead, we relocate shared libraries at runtime.
12707       ;;
12708     sysv4*MP*)
12709       if test -d /usr/nec; then
12710         lt_prog_compiler_pic_CXX=-Kconform_pic
12711       fi
12712       ;;
12713     hpux*)
12714       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12715       # not for PA HP-UX.
12716       case $host_cpu in
12717       hppa*64*|ia64*)
12718         ;;
12719       *)
12720         lt_prog_compiler_pic_CXX='-fPIC'
12721         ;;
12722       esac
12723       ;;
12724     *)
12725       lt_prog_compiler_pic_CXX='-fPIC'
12726       ;;
12727     esac
12728   else
12729     case $host_os in
12730       aix[4-9]*)
12731         # All AIX code is PIC.
12732         if test "$host_cpu" = ia64; then
12733           # AIX 5 now supports IA64 processor
12734           lt_prog_compiler_static_CXX='-Bstatic'
12735         else
12736           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12737         fi
12738         ;;
12739       chorus*)
12740         case $cc_basename in
12741         cxch68*)
12742           # Green Hills C++ Compiler
12743           # _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"
12744           ;;
12745         esac
12746         ;;
12747        darwin*)
12748          # PIC is the default on this platform
12749          # Common symbols not allowed in MH_DYLIB files
12750          case $cc_basename in
12751            xlc*)
12752            lt_prog_compiler_pic_CXX='-qnocommon'
12753            lt_prog_compiler_wl_CXX='-Wl,'
12754            ;;
12755          esac
12756        ;;
12757       dgux*)
12758         case $cc_basename in
12759           ec++*)
12760             lt_prog_compiler_pic_CXX='-KPIC'
12761             ;;
12762           ghcx*)
12763             # Green Hills C++ Compiler
12764             lt_prog_compiler_pic_CXX='-pic'
12765             ;;
12766           *)
12767             ;;
12768         esac
12769         ;;
12770       freebsd* | dragonfly*)
12771         # FreeBSD uses GNU C++
12772         ;;
12773       hpux9* | hpux10* | hpux11*)
12774         case $cc_basename in
12775           CC*)
12776             lt_prog_compiler_wl_CXX='-Wl,'
12777             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12778             if test "$host_cpu" != ia64; then
12779               lt_prog_compiler_pic_CXX='+Z'
12780             fi
12781             ;;
12782           aCC*)
12783             lt_prog_compiler_wl_CXX='-Wl,'
12784             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12785             case $host_cpu in
12786             hppa*64*|ia64*)
12787               # +Z the default
12788               ;;
12789             *)
12790               lt_prog_compiler_pic_CXX='+Z'
12791               ;;
12792             esac
12793             ;;
12794           *)
12795             ;;
12796         esac
12797         ;;
12798       interix*)
12799         # This is c89, which is MS Visual C++ (no shared libs)
12800         # Anyone wants to do a port?
12801         ;;
12802       irix5* | irix6* | nonstopux*)
12803         case $cc_basename in
12804           CC*)
12805             lt_prog_compiler_wl_CXX='-Wl,'
12806             lt_prog_compiler_static_CXX='-non_shared'
12807             # CC pic flag -KPIC is the default.
12808             ;;
12809           *)
12810             ;;
12811         esac
12812         ;;
12813       linux* | k*bsd*-gnu)
12814         case $cc_basename in
12815           KCC*)
12816             # KAI C++ Compiler
12817             lt_prog_compiler_wl_CXX='--backend -Wl,'
12818             lt_prog_compiler_pic_CXX='-fPIC'
12819             ;;
12820           icpc* | ecpc*)
12821             # Intel C++
12822             lt_prog_compiler_wl_CXX='-Wl,'
12823             lt_prog_compiler_pic_CXX='-KPIC'
12824             lt_prog_compiler_static_CXX='-static'
12825             ;;
12826           pgCC* | pgcpp*)
12827             # Portland Group C++ compiler.
12828             lt_prog_compiler_wl_CXX='-Wl,'
12829             lt_prog_compiler_pic_CXX='-fpic'
12830             lt_prog_compiler_static_CXX='-Bstatic'
12831             ;;
12832           cxx*)
12833             # Compaq C++
12834             # Make sure the PIC flag is empty.  It appears that all Alpha
12835             # Linux and Compaq Tru64 Unix objects are PIC.
12836             lt_prog_compiler_pic_CXX=
12837             lt_prog_compiler_static_CXX='-non_shared'
12838             ;;
12839           *)
12840             case `$CC -V 2>&1 | sed 5q` in
12841             *Sun\ C*)
12842               # Sun C++ 5.9
12843               lt_prog_compiler_pic_CXX='-KPIC'
12844               lt_prog_compiler_static_CXX='-Bstatic'
12845               lt_prog_compiler_wl_CXX='-Qoption ld '
12846               ;;
12847             esac
12848             ;;
12849         esac
12850         ;;
12851       lynxos*)
12852         ;;
12853       m88k*)
12854         ;;
12855       mvs*)
12856         case $cc_basename in
12857           cxx*)
12858             lt_prog_compiler_pic_CXX='-W c,exportall'
12859             ;;
12860           *)
12861             ;;
12862         esac
12863         ;;
12864       netbsd* | netbsdelf*-gnu)
12865         ;;
12866       osf3* | osf4* | osf5*)
12867         case $cc_basename in
12868           KCC*)
12869             lt_prog_compiler_wl_CXX='--backend -Wl,'
12870             ;;
12871           RCC*)
12872             # Rational C++ 2.4.1
12873             lt_prog_compiler_pic_CXX='-pic'
12874             ;;
12875           cxx*)
12876             # Digital/Compaq C++
12877             lt_prog_compiler_wl_CXX='-Wl,'
12878             # Make sure the PIC flag is empty.  It appears that all Alpha
12879             # Linux and Compaq Tru64 Unix objects are PIC.
12880             lt_prog_compiler_pic_CXX=
12881             lt_prog_compiler_static_CXX='-non_shared'
12882             ;;
12883           *)
12884             ;;
12885         esac
12886         ;;
12887       psos*)
12888         ;;
12889       solaris*)
12890         case $cc_basename in
12891           CC*)
12892             # Sun C++ 4.2, 5.x and Centerline C++
12893             lt_prog_compiler_pic_CXX='-KPIC'
12894             lt_prog_compiler_static_CXX='-Bstatic'
12895             lt_prog_compiler_wl_CXX='-Qoption ld '
12896             ;;
12897           gcx*)
12898             # Green Hills C++ Compiler
12899             lt_prog_compiler_pic_CXX='-PIC'
12900             ;;
12901           *)
12902             ;;
12903         esac
12904         ;;
12905       sunos4*)
12906         case $cc_basename in
12907           CC*)
12908             # Sun C++ 4.x
12909             lt_prog_compiler_pic_CXX='-pic'
12910             lt_prog_compiler_static_CXX='-Bstatic'
12911             ;;
12912           lcc*)
12913             # Lucid
12914             lt_prog_compiler_pic_CXX='-pic'
12915             ;;
12916           *)
12917             ;;
12918         esac
12919         ;;
12920       tandem*)
12921         case $cc_basename in
12922           NCC*)
12923             # NonStop-UX NCC 3.20
12924             lt_prog_compiler_pic_CXX='-KPIC'
12925             ;;
12926           *)
12927             ;;
12928         esac
12929         ;;
12930       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12931         case $cc_basename in
12932           CC*)
12933             lt_prog_compiler_wl_CXX='-Wl,'
12934             lt_prog_compiler_pic_CXX='-KPIC'
12935             lt_prog_compiler_static_CXX='-Bstatic'
12936             ;;
12937         esac
12938         ;;
12939       vxworks*)
12940         ;;
12941       *)
12942         lt_prog_compiler_can_build_shared_CXX=no
12943         ;;
12944     esac
12945   fi
12947 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12948 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12951 # Check to make sure the PIC flag actually works.
12953 if test -n "$lt_prog_compiler_pic_CXX"; then
12955 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12956 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12957 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12958   echo $ECHO_N "(cached) $ECHO_C" >&6
12959 else
12960   lt_cv_prog_compiler_pic_works_CXX=no
12961   ac_outfile=conftest.$ac_objext
12962    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12963    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12964    # Insert the option either (1) after the last *FLAGS variable, or
12965    # (2) before a word containing "conftest.", or (3) at the end.
12966    # Note that $ac_compile itself does not contain backslashes and begins
12967    # with a dollar sign (not a hyphen), so the echo should work correctly.
12968    # The option is referenced via a variable to avoid confusing sed.
12969    lt_compile=`echo "$ac_compile" | $SED \
12970    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12971    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12972    -e 's:$: $lt_compiler_flag:'`
12973    (eval echo "\"\$as_me:12973: $lt_compile\"" >&5)
12974    (eval "$lt_compile" 2>conftest.err)
12975    ac_status=$?
12976    cat conftest.err >&5
12977    echo "$as_me:12977: \$? = $ac_status" >&5
12978    if (exit $ac_status) && test -s "$ac_outfile"; then
12979      # The compiler can only warn and ignore the option if not recognized
12980      # So say no if there are warnings other than the usual output.
12981      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12982      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12983      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12984        lt_cv_prog_compiler_pic_works_CXX=yes
12985      fi
12986    fi
12987    $rm conftest*
12990 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12991 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12993 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12994     case $lt_prog_compiler_pic_CXX in
12995      "" | " "*) ;;
12996      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12997      esac
12998 else
12999     lt_prog_compiler_pic_CXX=
13000      lt_prog_compiler_can_build_shared_CXX=no
13004 case $host_os in
13005   # For platforms which do not support PIC, -DPIC is meaningless:
13006   *djgpp*)
13007     lt_prog_compiler_pic_CXX=
13008     ;;
13009   *)
13010     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13011     ;;
13012 esac
13015 # Check to make sure the static flag actually works.
13017 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13018 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13019 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13020 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13021   echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023   lt_cv_prog_compiler_static_works_CXX=no
13024    save_LDFLAGS="$LDFLAGS"
13025    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13026    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13027    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13028      # The linker can only warn and ignore the option if not recognized
13029      # So say no if there are warnings
13030      if test -s conftest.err; then
13031        # Append any errors to the config.log.
13032        cat conftest.err 1>&5
13033        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13034        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13035        if diff conftest.exp conftest.er2 >/dev/null; then
13036          lt_cv_prog_compiler_static_works_CXX=yes
13037        fi
13038      else
13039        lt_cv_prog_compiler_static_works_CXX=yes
13040      fi
13041    fi
13042    $rm -r conftest*
13043    LDFLAGS="$save_LDFLAGS"
13046 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13047 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13049 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13050     :
13051 else
13052     lt_prog_compiler_static_CXX=
13056 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13057 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13058 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13059   echo $ECHO_N "(cached) $ECHO_C" >&6
13060 else
13061   lt_cv_prog_compiler_c_o_CXX=no
13062    $rm -r conftest 2>/dev/null
13063    mkdir conftest
13064    cd conftest
13065    mkdir out
13066    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13068    lt_compiler_flag="-o out/conftest2.$ac_objext"
13069    # Insert the option either (1) after the last *FLAGS variable, or
13070    # (2) before a word containing "conftest.", or (3) at the end.
13071    # Note that $ac_compile itself does not contain backslashes and begins
13072    # with a dollar sign (not a hyphen), so the echo should work correctly.
13073    lt_compile=`echo "$ac_compile" | $SED \
13074    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13075    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13076    -e 's:$: $lt_compiler_flag:'`
13077    (eval echo "\"\$as_me:13077: $lt_compile\"" >&5)
13078    (eval "$lt_compile" 2>out/conftest.err)
13079    ac_status=$?
13080    cat out/conftest.err >&5
13081    echo "$as_me:13081: \$? = $ac_status" >&5
13082    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13083    then
13084      # The compiler can only warn and ignore the option if not recognized
13085      # So say no if there are warnings
13086      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13087      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13088      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13089        lt_cv_prog_compiler_c_o_CXX=yes
13090      fi
13091    fi
13092    chmod u+w . 2>&5
13093    $rm conftest*
13094    # SGI C++ compiler will create directory out/ii_files/ for
13095    # template instantiation
13096    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13097    $rm out/* && rmdir out
13098    cd ..
13099    rmdir conftest
13100    $rm conftest*
13103 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13104 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13107 hard_links="nottested"
13108 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13109   # do not overwrite the value of need_locks provided by the user
13110   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13111 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13112   hard_links=yes
13113   $rm conftest*
13114   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13115   touch conftest.a
13116   ln conftest.a conftest.b 2>&5 || hard_links=no
13117   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13118   { echo "$as_me:$LINENO: result: $hard_links" >&5
13119 echo "${ECHO_T}$hard_links" >&6; }
13120   if test "$hard_links" = no; then
13121     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13122 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13123     need_locks=warn
13124   fi
13125 else
13126   need_locks=no
13129 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13130 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13132   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13133   case $host_os in
13134   aix[4-9]*)
13135     # If we're using GNU nm, then we don't want the "-C" option.
13136     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13137     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13138       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'
13139     else
13140       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'
13141     fi
13142     ;;
13143   pw32*)
13144     export_symbols_cmds_CXX="$ltdll_cmds"
13145   ;;
13146   cygwin* | mingw*)
13147     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'
13148   ;;
13149   linux* | k*bsd*-gnu)
13150     link_all_deplibs_CXX=no
13151   ;;
13152   *)
13153     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13154   ;;
13155   esac
13156   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13158 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13159 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13160 test "$ld_shlibs_CXX" = no && can_build_shared=no
13163 # Do we need to explicitly link libc?
13165 case "x$archive_cmds_need_lc_CXX" in
13166 x|xyes)
13167   # Assume -lc should be added
13168   archive_cmds_need_lc_CXX=yes
13170   if test "$enable_shared" = yes && test "$GCC" = yes; then
13171     case $archive_cmds_CXX in
13172     *'~'*)
13173       # FIXME: we may have to deal with multi-command sequences.
13174       ;;
13175     '$CC '*)
13176       # Test whether the compiler implicitly links with -lc since on some
13177       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13178       # to ld, don't add -lc before -lgcc.
13179       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13180 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13181       $rm conftest*
13182       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13184       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13185   (eval $ac_compile) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); } 2>conftest.err; then
13189         soname=conftest
13190         lib=conftest
13191         libobjs=conftest.$ac_objext
13192         deplibs=
13193         wl=$lt_prog_compiler_wl_CXX
13194         pic_flag=$lt_prog_compiler_pic_CXX
13195         compiler_flags=-v
13196         linker_flags=-v
13197         verstring=
13198         output_objdir=.
13199         libname=conftest
13200         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13201         allow_undefined_flag_CXX=
13202         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13203   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); }
13207         then
13208           archive_cmds_need_lc_CXX=no
13209         else
13210           archive_cmds_need_lc_CXX=yes
13211         fi
13212         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13213       else
13214         cat conftest.err 1>&5
13215       fi
13216       $rm conftest*
13217       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13218 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13219       ;;
13220     esac
13221   fi
13222   ;;
13223 esac
13225 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13226 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13227 library_names_spec=
13228 libname_spec='lib$name'
13229 soname_spec=
13230 shrext_cmds=".so"
13231 postinstall_cmds=
13232 postuninstall_cmds=
13233 finish_cmds=
13234 finish_eval=
13235 shlibpath_var=
13236 shlibpath_overrides_runpath=unknown
13237 version_type=none
13238 dynamic_linker="$host_os ld.so"
13239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13241 need_lib_prefix=unknown
13242 hardcode_into_libs=no
13244 # when you set need_version to no, make sure it does not cause -set_version
13245 # flags to be left without arguments
13246 need_version=unknown
13248 case $host_os in
13249 aix3*)
13250   version_type=linux
13251   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13252   shlibpath_var=LIBPATH
13254   # AIX 3 has no versioning support, so we append a major version to the name.
13255   soname_spec='${libname}${release}${shared_ext}$major'
13256   ;;
13258 aix[4-9]*)
13259   version_type=linux
13260   need_lib_prefix=no
13261   need_version=no
13262   hardcode_into_libs=yes
13263   if test "$host_cpu" = ia64; then
13264     # AIX 5 supports IA64
13265     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13266     shlibpath_var=LD_LIBRARY_PATH
13267   else
13268     # With GCC up to 2.95.x, collect2 would create an import file
13269     # for dependence libraries.  The import file would start with
13270     # the line `#! .'.  This would cause the generated library to
13271     # depend on `.', always an invalid library.  This was fixed in
13272     # development snapshots of GCC prior to 3.0.
13273     case $host_os in
13274       aix4 | aix4.[01] | aix4.[01].*)
13275       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13276            echo ' yes '
13277            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13278         :
13279       else
13280         can_build_shared=no
13281       fi
13282       ;;
13283     esac
13284     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13285     # soname into executable. Probably we can add versioning support to
13286     # collect2, so additional links can be useful in future.
13287     if test "$aix_use_runtimelinking" = yes; then
13288       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13289       # instead of lib<name>.a to let people know that these are not
13290       # typical AIX shared libraries.
13291       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292     else
13293       # We preserve .a as extension for shared libraries through AIX4.2
13294       # and later when we are not doing run time linking.
13295       library_names_spec='${libname}${release}.a $libname.a'
13296       soname_spec='${libname}${release}${shared_ext}$major'
13297     fi
13298     shlibpath_var=LIBPATH
13299   fi
13300   ;;
13302 amigaos*)
13303   library_names_spec='$libname.ixlibrary $libname.a'
13304   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13305   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'
13306   ;;
13308 beos*)
13309   library_names_spec='${libname}${shared_ext}'
13310   dynamic_linker="$host_os ld.so"
13311   shlibpath_var=LIBRARY_PATH
13312   ;;
13314 bsdi[45]*)
13315   version_type=linux
13316   need_version=no
13317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318   soname_spec='${libname}${release}${shared_ext}$major'
13319   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13320   shlibpath_var=LD_LIBRARY_PATH
13321   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13322   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13323   # the default ld.so.conf also contains /usr/contrib/lib and
13324   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13325   # libtool to hard-code these into programs
13326   ;;
13328 cygwin* | mingw* | pw32*)
13329   version_type=windows
13330   shrext_cmds=".dll"
13331   need_version=no
13332   need_lib_prefix=no
13334   case $GCC,$host_os in
13335   yes,cygwin* | yes,mingw* | yes,pw32*)
13336     library_names_spec='$libname.dll.a'
13337     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13338     postinstall_cmds='base_file=`basename \${file}`~
13339       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13340       dldir=$destdir/`dirname \$dlpath`~
13341       test -d \$dldir || mkdir -p \$dldir~
13342       $install_prog $dir/$dlname \$dldir/$dlname~
13343       chmod a+x \$dldir/$dlname'
13344     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13345       dlpath=$dir/\$dldll~
13346        $rm \$dlpath'
13347     shlibpath_overrides_runpath=yes
13349     case $host_os in
13350     cygwin*)
13351       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13352       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13353       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13354       ;;
13355     mingw*)
13356       # MinGW DLLs use traditional 'lib' prefix
13357       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13358       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13359       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13360         # It is most probably a Windows format PATH printed by
13361         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13362         # path with ; separators, and with drive letters. We can handle the
13363         # drive letters (cygwin fileutils understands them), so leave them,
13364         # especially as we might pass files found there to a mingw objdump,
13365         # which wouldn't understand a cygwinified path. Ahh.
13366         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13367       else
13368         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13369       fi
13370       ;;
13371     pw32*)
13372       # pw32 DLLs use 'pw' prefix rather than 'lib'
13373       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13374       ;;
13375     esac
13376     ;;
13378   *)
13379     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13380     ;;
13381   esac
13382   dynamic_linker='Win32 ld.exe'
13383   # FIXME: first we should search . and the directory the executable is in
13384   shlibpath_var=PATH
13385   ;;
13387 darwin* | rhapsody*)
13388   dynamic_linker="$host_os dyld"
13389   version_type=darwin
13390   need_lib_prefix=no
13391   need_version=no
13392   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13393   soname_spec='${libname}${release}${major}$shared_ext'
13394   shlibpath_overrides_runpath=yes
13395   shlibpath_var=DYLD_LIBRARY_PATH
13396   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13398   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13399   ;;
13401 dgux*)
13402   version_type=linux
13403   need_lib_prefix=no
13404   need_version=no
13405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13406   soname_spec='${libname}${release}${shared_ext}$major'
13407   shlibpath_var=LD_LIBRARY_PATH
13408   ;;
13410 freebsd1*)
13411   dynamic_linker=no
13412   ;;
13414 freebsd* | dragonfly*)
13415   # DragonFly does not have aout.  When/if they implement a new
13416   # versioning mechanism, adjust this.
13417   if test -x /usr/bin/objformat; then
13418     objformat=`/usr/bin/objformat`
13419   else
13420     case $host_os in
13421     freebsd[123]*) objformat=aout ;;
13422     *) objformat=elf ;;
13423     esac
13424   fi
13425   version_type=freebsd-$objformat
13426   case $version_type in
13427     freebsd-elf*)
13428       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13429       need_version=no
13430       need_lib_prefix=no
13431       ;;
13432     freebsd-*)
13433       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13434       need_version=yes
13435       ;;
13436   esac
13437   shlibpath_var=LD_LIBRARY_PATH
13438   case $host_os in
13439   freebsd2*)
13440     shlibpath_overrides_runpath=yes
13441     ;;
13442   freebsd3.[01]* | freebsdelf3.[01]*)
13443     shlibpath_overrides_runpath=yes
13444     hardcode_into_libs=yes
13445     ;;
13446   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13447   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13448     shlibpath_overrides_runpath=no
13449     hardcode_into_libs=yes
13450     ;;
13451   *) # from 4.6 on, and DragonFly
13452     shlibpath_overrides_runpath=yes
13453     hardcode_into_libs=yes
13454     ;;
13455   esac
13456   ;;
13458 gnu*)
13459   version_type=linux
13460   need_lib_prefix=no
13461   need_version=no
13462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13463   soname_spec='${libname}${release}${shared_ext}$major'
13464   shlibpath_var=LD_LIBRARY_PATH
13465   hardcode_into_libs=yes
13466   ;;
13468 hpux9* | hpux10* | hpux11*)
13469   # Give a soname corresponding to the major version so that dld.sl refuses to
13470   # link against other versions.
13471   version_type=sunos
13472   need_lib_prefix=no
13473   need_version=no
13474   case $host_cpu in
13475   ia64*)
13476     shrext_cmds='.so'
13477     hardcode_into_libs=yes
13478     dynamic_linker="$host_os dld.so"
13479     shlibpath_var=LD_LIBRARY_PATH
13480     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482     soname_spec='${libname}${release}${shared_ext}$major'
13483     if test "X$HPUX_IA64_MODE" = X32; then
13484       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13485     else
13486       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13487     fi
13488     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13489     ;;
13490    hppa*64*)
13491      shrext_cmds='.sl'
13492      hardcode_into_libs=yes
13493      dynamic_linker="$host_os dld.sl"
13494      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13495      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13496      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497      soname_spec='${libname}${release}${shared_ext}$major'
13498      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13499      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13500      ;;
13501    *)
13502     shrext_cmds='.sl'
13503     dynamic_linker="$host_os dld.sl"
13504     shlibpath_var=SHLIB_PATH
13505     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13506     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13507     soname_spec='${libname}${release}${shared_ext}$major'
13508     ;;
13509   esac
13510   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13511   postinstall_cmds='chmod 555 $lib'
13512   ;;
13514 interix[3-9]*)
13515   version_type=linux
13516   need_lib_prefix=no
13517   need_version=no
13518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13519   soname_spec='${libname}${release}${shared_ext}$major'
13520   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13521   shlibpath_var=LD_LIBRARY_PATH
13522   shlibpath_overrides_runpath=no
13523   hardcode_into_libs=yes
13524   ;;
13526 irix5* | irix6* | nonstopux*)
13527   case $host_os in
13528     nonstopux*) version_type=nonstopux ;;
13529     *)
13530         if test "$lt_cv_prog_gnu_ld" = yes; then
13531                 version_type=linux
13532         else
13533                 version_type=irix
13534         fi ;;
13535   esac
13536   need_lib_prefix=no
13537   need_version=no
13538   soname_spec='${libname}${release}${shared_ext}$major'
13539   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13540   case $host_os in
13541   irix5* | nonstopux*)
13542     libsuff= shlibsuff=
13543     ;;
13544   *)
13545     case $LD in # libtool.m4 will add one of these switches to LD
13546     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13547       libsuff= shlibsuff= libmagic=32-bit;;
13548     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13549       libsuff=32 shlibsuff=N32 libmagic=N32;;
13550     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13551       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13552     *) libsuff= shlibsuff= libmagic=never-match;;
13553     esac
13554     ;;
13555   esac
13556   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13557   shlibpath_overrides_runpath=no
13558   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13559   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13560   hardcode_into_libs=yes
13561   ;;
13563 # No shared lib support for Linux oldld, aout, or coff.
13564 linux*oldld* | linux*aout* | linux*coff*)
13565   dynamic_linker=no
13566   ;;
13568 # This must be Linux ELF.
13569 linux* | k*bsd*-gnu)
13570   version_type=linux
13571   need_lib_prefix=no
13572   need_version=no
13573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13574   soname_spec='${libname}${release}${shared_ext}$major'
13575   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13576   shlibpath_var=LD_LIBRARY_PATH
13577   shlibpath_overrides_runpath=no
13578   # This implies no fast_install, which is unacceptable.
13579   # Some rework will be needed to allow for fast_install
13580   # before this can be enabled.
13581   hardcode_into_libs=yes
13583   # Append ld.so.conf contents to the search path
13584   if test -f /etc/ld.so.conf; then
13585     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' ' '`
13586     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13587   fi
13589   # We used to test for /lib/ld.so.1 and disable shared libraries on
13590   # powerpc, because MkLinux only supported shared libraries with the
13591   # GNU dynamic linker.  Since this was broken with cross compilers,
13592   # most powerpc-linux boxes support dynamic linking these days and
13593   # people can always --disable-shared, the test was removed, and we
13594   # assume the GNU/Linux dynamic linker is in use.
13595   dynamic_linker='GNU/Linux ld.so'
13596   ;;
13598 netbsdelf*-gnu)
13599   version_type=linux
13600   need_lib_prefix=no
13601   need_version=no
13602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13603   soname_spec='${libname}${release}${shared_ext}$major'
13604   shlibpath_var=LD_LIBRARY_PATH
13605   shlibpath_overrides_runpath=no
13606   hardcode_into_libs=yes
13607   dynamic_linker='NetBSD ld.elf_so'
13608   ;;
13610 netbsd*)
13611   version_type=sunos
13612   need_lib_prefix=no
13613   need_version=no
13614   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13616     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13617     dynamic_linker='NetBSD (a.out) ld.so'
13618   else
13619     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13620     soname_spec='${libname}${release}${shared_ext}$major'
13621     dynamic_linker='NetBSD ld.elf_so'
13622   fi
13623   shlibpath_var=LD_LIBRARY_PATH
13624   shlibpath_overrides_runpath=yes
13625   hardcode_into_libs=yes
13626   ;;
13628 newsos6)
13629   version_type=linux
13630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13631   shlibpath_var=LD_LIBRARY_PATH
13632   shlibpath_overrides_runpath=yes
13633   ;;
13635 nto-qnx*)
13636   version_type=linux
13637   need_lib_prefix=no
13638   need_version=no
13639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13640   soname_spec='${libname}${release}${shared_ext}$major'
13641   shlibpath_var=LD_LIBRARY_PATH
13642   shlibpath_overrides_runpath=yes
13643   ;;
13645 openbsd*)
13646   version_type=sunos
13647   sys_lib_dlsearch_path_spec="/usr/lib"
13648   need_lib_prefix=no
13649   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13650   case $host_os in
13651     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13652     *)                         need_version=no  ;;
13653   esac
13654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13655   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13656   shlibpath_var=LD_LIBRARY_PATH
13657   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13658     case $host_os in
13659       openbsd2.[89] | openbsd2.[89].*)
13660         shlibpath_overrides_runpath=no
13661         ;;
13662       *)
13663         shlibpath_overrides_runpath=yes
13664         ;;
13665       esac
13666   else
13667     shlibpath_overrides_runpath=yes
13668   fi
13669   ;;
13671 os2*)
13672   libname_spec='$name'
13673   shrext_cmds=".dll"
13674   need_lib_prefix=no
13675   library_names_spec='$libname${shared_ext} $libname.a'
13676   dynamic_linker='OS/2 ld.exe'
13677   shlibpath_var=LIBPATH
13678   ;;
13680 osf3* | osf4* | osf5*)
13681   version_type=osf
13682   need_lib_prefix=no
13683   need_version=no
13684   soname_spec='${libname}${release}${shared_ext}$major'
13685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686   shlibpath_var=LD_LIBRARY_PATH
13687   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13688   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13689   ;;
13691 rdos*)
13692   dynamic_linker=no
13693   ;;
13695 solaris*)
13696   version_type=linux
13697   need_lib_prefix=no
13698   need_version=no
13699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13700   soname_spec='${libname}${release}${shared_ext}$major'
13701   shlibpath_var=LD_LIBRARY_PATH
13702   shlibpath_overrides_runpath=yes
13703   hardcode_into_libs=yes
13704   # ldd complains unless libraries are executable
13705   postinstall_cmds='chmod +x $lib'
13706   ;;
13708 sunos4*)
13709   version_type=sunos
13710   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13711   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13712   shlibpath_var=LD_LIBRARY_PATH
13713   shlibpath_overrides_runpath=yes
13714   if test "$with_gnu_ld" = yes; then
13715     need_lib_prefix=no
13716   fi
13717   need_version=yes
13718   ;;
13720 sysv4 | sysv4.3*)
13721   version_type=linux
13722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13723   soname_spec='${libname}${release}${shared_ext}$major'
13724   shlibpath_var=LD_LIBRARY_PATH
13725   case $host_vendor in
13726     sni)
13727       shlibpath_overrides_runpath=no
13728       need_lib_prefix=no
13729       export_dynamic_flag_spec='${wl}-Blargedynsym'
13730       runpath_var=LD_RUN_PATH
13731       ;;
13732     siemens)
13733       need_lib_prefix=no
13734       ;;
13735     motorola)
13736       need_lib_prefix=no
13737       need_version=no
13738       shlibpath_overrides_runpath=no
13739       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13740       ;;
13741   esac
13742   ;;
13744 sysv4*MP*)
13745   if test -d /usr/nec ;then
13746     version_type=linux
13747     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13748     soname_spec='$libname${shared_ext}.$major'
13749     shlibpath_var=LD_LIBRARY_PATH
13750   fi
13751   ;;
13753 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13754   version_type=freebsd-elf
13755   need_lib_prefix=no
13756   need_version=no
13757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13758   soname_spec='${libname}${release}${shared_ext}$major'
13759   shlibpath_var=LD_LIBRARY_PATH
13760   hardcode_into_libs=yes
13761   if test "$with_gnu_ld" = yes; then
13762     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13763     shlibpath_overrides_runpath=no
13764   else
13765     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13766     shlibpath_overrides_runpath=yes
13767     case $host_os in
13768       sco3.2v5*)
13769         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13770         ;;
13771     esac
13772   fi
13773   sys_lib_dlsearch_path_spec='/usr/lib'
13774   ;;
13776 uts4*)
13777   version_type=linux
13778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779   soname_spec='${libname}${release}${shared_ext}$major'
13780   shlibpath_var=LD_LIBRARY_PATH
13781   ;;
13784   dynamic_linker=no
13785   ;;
13786 esac
13787 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13788 echo "${ECHO_T}$dynamic_linker" >&6; }
13789 test "$dynamic_linker" = no && can_build_shared=no
13791 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13792   echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13797 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13798 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13799   echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13804 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13806 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13807 if test "$GCC" = yes; then
13808   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13811 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13812 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13813 hardcode_action_CXX=
13814 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13815    test -n "$runpath_var_CXX" || \
13816    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13818   # We can hardcode non-existant directories.
13819   if test "$hardcode_direct_CXX" != no &&
13820      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13821      # have to relink, otherwise we might link with an installed library
13822      # when we should be linking with a yet-to-be-installed one
13823      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13824      test "$hardcode_minus_L_CXX" != no; then
13825     # Linking always hardcodes the temporary library directory.
13826     hardcode_action_CXX=relink
13827   else
13828     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13829     hardcode_action_CXX=immediate
13830   fi
13831 else
13832   # We cannot hardcode anything, or else we can only hardcode existing
13833   # directories.
13834   hardcode_action_CXX=unsupported
13836 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13837 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13839 if test "$hardcode_action_CXX" = relink; then
13840   # Fast installation is not supported
13841   enable_fast_install=no
13842 elif test "$shlibpath_overrides_runpath" = yes ||
13843      test "$enable_shared" = no; then
13844   # Fast installation is not necessary
13845   enable_fast_install=needless
13849 # The else clause should only fire when bootstrapping the
13850 # libtool distribution, otherwise you forgot to ship ltmain.sh
13851 # with your package, and you will get complaints that there are
13852 # no rules to generate ltmain.sh.
13853 if test -f "$ltmain"; then
13854   # See if we are running on zsh, and set the options which allow our commands through
13855   # without removal of \ escapes.
13856   if test -n "${ZSH_VERSION+set}" ; then
13857     setopt NO_GLOB_SUBST
13858   fi
13859   # Now quote all the things that may contain metacharacters while being
13860   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13861   # variables and quote the copies for generation of the libtool script.
13862   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13863     SED SHELL STRIP \
13864     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13865     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13866     deplibs_check_method reload_flag reload_cmds need_locks \
13867     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13868     lt_cv_sys_global_symbol_to_c_name_address \
13869     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13870     old_postinstall_cmds old_postuninstall_cmds \
13871     compiler_CXX \
13872     CC_CXX \
13873     LD_CXX \
13874     lt_prog_compiler_wl_CXX \
13875     lt_prog_compiler_pic_CXX \
13876     lt_prog_compiler_static_CXX \
13877     lt_prog_compiler_no_builtin_flag_CXX \
13878     export_dynamic_flag_spec_CXX \
13879     thread_safe_flag_spec_CXX \
13880     whole_archive_flag_spec_CXX \
13881     enable_shared_with_static_runtimes_CXX \
13882     old_archive_cmds_CXX \
13883     old_archive_from_new_cmds_CXX \
13884     predep_objects_CXX \
13885     postdep_objects_CXX \
13886     predeps_CXX \
13887     postdeps_CXX \
13888     compiler_lib_search_path_CXX \
13889     compiler_lib_search_dirs_CXX \
13890     archive_cmds_CXX \
13891     archive_expsym_cmds_CXX \
13892     postinstall_cmds_CXX \
13893     postuninstall_cmds_CXX \
13894     old_archive_from_expsyms_cmds_CXX \
13895     allow_undefined_flag_CXX \
13896     no_undefined_flag_CXX \
13897     export_symbols_cmds_CXX \
13898     hardcode_libdir_flag_spec_CXX \
13899     hardcode_libdir_flag_spec_ld_CXX \
13900     hardcode_libdir_separator_CXX \
13901     hardcode_automatic_CXX \
13902     module_cmds_CXX \
13903     module_expsym_cmds_CXX \
13904     lt_cv_prog_compiler_c_o_CXX \
13905     fix_srcfile_path_CXX \
13906     exclude_expsyms_CXX \
13907     include_expsyms_CXX; do
13909     case $var in
13910     old_archive_cmds_CXX | \
13911     old_archive_from_new_cmds_CXX | \
13912     archive_cmds_CXX | \
13913     archive_expsym_cmds_CXX | \
13914     module_cmds_CXX | \
13915     module_expsym_cmds_CXX | \
13916     old_archive_from_expsyms_cmds_CXX | \
13917     export_symbols_cmds_CXX | \
13918     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13919     postinstall_cmds | postuninstall_cmds | \
13920     old_postinstall_cmds | old_postuninstall_cmds | \
13921     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13922       # Double-quote double-evaled strings.
13923       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13924       ;;
13925     *)
13926       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13927       ;;
13928     esac
13929   done
13931   case $lt_echo in
13932   *'\$0 --fallback-echo"')
13933     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13934     ;;
13935   esac
13937 cfgfile="$ofile"
13939   cat <<__EOF__ >> "$cfgfile"
13940 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13942 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13944 # Shell to use when invoking shell scripts.
13945 SHELL=$lt_SHELL
13947 # Whether or not to build shared libraries.
13948 build_libtool_libs=$enable_shared
13950 # Whether or not to build static libraries.
13951 build_old_libs=$enable_static
13953 # Whether or not to add -lc for building shared libraries.
13954 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13956 # Whether or not to disallow shared libs when runtime libs are static
13957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13959 # Whether or not to optimize for fast installation.
13960 fast_install=$enable_fast_install
13962 # The host system.
13963 host_alias=$host_alias
13964 host=$host
13965 host_os=$host_os
13967 # The build system.
13968 build_alias=$build_alias
13969 build=$build
13970 build_os=$build_os
13972 # An echo program that does not interpret backslashes.
13973 echo=$lt_echo
13975 # The archiver.
13976 AR=$lt_AR
13977 AR_FLAGS=$lt_AR_FLAGS
13979 # A C compiler.
13980 LTCC=$lt_LTCC
13982 # LTCC compiler flags.
13983 LTCFLAGS=$lt_LTCFLAGS
13985 # A language-specific compiler.
13986 CC=$lt_compiler_CXX
13988 # Is the compiler the GNU C compiler?
13989 with_gcc=$GCC_CXX
13991 # An ERE matcher.
13992 EGREP=$lt_EGREP
13994 # The linker used to build libraries.
13995 LD=$lt_LD_CXX
13997 # Whether we need hard or soft links.
13998 LN_S=$lt_LN_S
14000 # A BSD-compatible nm program.
14001 NM=$lt_NM
14003 # A symbol stripping program
14004 STRIP=$lt_STRIP
14006 # Used to examine libraries when file_magic_cmd begins "file"
14007 MAGIC_CMD=$MAGIC_CMD
14009 # Used on cygwin: DLL creation program.
14010 DLLTOOL="$DLLTOOL"
14012 # Used on cygwin: object dumper.
14013 OBJDUMP="$OBJDUMP"
14015 # Used on cygwin: assembler.
14016 AS="$AS"
14018 # The name of the directory that contains temporary libtool files.
14019 objdir=$objdir
14021 # How to create reloadable object files.
14022 reload_flag=$lt_reload_flag
14023 reload_cmds=$lt_reload_cmds
14025 # How to pass a linker flag through the compiler.
14026 wl=$lt_lt_prog_compiler_wl_CXX
14028 # Object file suffix (normally "o").
14029 objext="$ac_objext"
14031 # Old archive suffix (normally "a").
14032 libext="$libext"
14034 # Shared library suffix (normally ".so").
14035 shrext_cmds='$shrext_cmds'
14037 # Executable file suffix (normally "").
14038 exeext="$exeext"
14040 # Additional compiler flags for building library objects.
14041 pic_flag=$lt_lt_prog_compiler_pic_CXX
14042 pic_mode=$pic_mode
14044 # What is the maximum length of a command?
14045 max_cmd_len=$lt_cv_sys_max_cmd_len
14047 # Does compiler simultaneously support -c and -o options?
14048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14050 # Must we lock files when doing compilation?
14051 need_locks=$lt_need_locks
14053 # Do we need the lib prefix for modules?
14054 need_lib_prefix=$need_lib_prefix
14056 # Do we need a version for libraries?
14057 need_version=$need_version
14059 # Whether dlopen is supported.
14060 dlopen_support=$enable_dlopen
14062 # Whether dlopen of programs is supported.
14063 dlopen_self=$enable_dlopen_self
14065 # Whether dlopen of statically linked programs is supported.
14066 dlopen_self_static=$enable_dlopen_self_static
14068 # Compiler flag to prevent dynamic linking.
14069 link_static_flag=$lt_lt_prog_compiler_static_CXX
14071 # Compiler flag to turn off builtin functions.
14072 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14074 # Compiler flag to allow reflexive dlopens.
14075 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14077 # Compiler flag to generate shared objects directly from archives.
14078 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14080 # Compiler flag to generate thread-safe objects.
14081 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14083 # Library versioning type.
14084 version_type=$version_type
14086 # Format of library name prefix.
14087 libname_spec=$lt_libname_spec
14089 # List of archive names.  First name is the real one, the rest are links.
14090 # The last name is the one that the linker finds with -lNAME.
14091 library_names_spec=$lt_library_names_spec
14093 # The coded name of the library, if different from the real name.
14094 soname_spec=$lt_soname_spec
14096 # Commands used to build and install an old-style archive.
14097 RANLIB=$lt_RANLIB
14098 old_archive_cmds=$lt_old_archive_cmds_CXX
14099 old_postinstall_cmds=$lt_old_postinstall_cmds
14100 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14102 # Create an old-style archive from a shared archive.
14103 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14105 # Create a temporary old-style archive to link instead of a shared archive.
14106 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14108 # Commands used to build and install a shared archive.
14109 archive_cmds=$lt_archive_cmds_CXX
14110 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14111 postinstall_cmds=$lt_postinstall_cmds
14112 postuninstall_cmds=$lt_postuninstall_cmds
14114 # Commands used to build a loadable module (assumed same as above if empty)
14115 module_cmds=$lt_module_cmds_CXX
14116 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14118 # Commands to strip libraries.
14119 old_striplib=$lt_old_striplib
14120 striplib=$lt_striplib
14122 # Dependencies to place before the objects being linked to create a
14123 # shared library.
14124 predep_objects=$lt_predep_objects_CXX
14126 # Dependencies to place after the objects being linked to create a
14127 # shared library.
14128 postdep_objects=$lt_postdep_objects_CXX
14130 # Dependencies to place before the objects being linked to create a
14131 # shared library.
14132 predeps=$lt_predeps_CXX
14134 # Dependencies to place after the objects being linked to create a
14135 # shared library.
14136 postdeps=$lt_postdeps_CXX
14138 # The directories searched by this compiler when creating a shared
14139 # library
14140 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14142 # The library search path used internally by the compiler when linking
14143 # a shared library.
14144 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14146 # Method to check whether dependent libraries are shared objects.
14147 deplibs_check_method=$lt_deplibs_check_method
14149 # Command to use when deplibs_check_method == file_magic.
14150 file_magic_cmd=$lt_file_magic_cmd
14152 # Flag that allows shared libraries with undefined symbols to be built.
14153 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14155 # Flag that forces no undefined symbols.
14156 no_undefined_flag=$lt_no_undefined_flag_CXX
14158 # Commands used to finish a libtool library installation in a directory.
14159 finish_cmds=$lt_finish_cmds
14161 # Same as above, but a single script fragment to be evaled but not shown.
14162 finish_eval=$lt_finish_eval
14164 # Take the output of nm and produce a listing of raw symbols and C names.
14165 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14167 # Transform the output of nm in a proper C declaration
14168 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14170 # Transform the output of nm in a C name address pair
14171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14173 # This is the shared library runtime path variable.
14174 runpath_var=$runpath_var
14176 # This is the shared library path variable.
14177 shlibpath_var=$shlibpath_var
14179 # Is shlibpath searched before the hard-coded library search path?
14180 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14182 # How to hardcode a shared library path into an executable.
14183 hardcode_action=$hardcode_action_CXX
14185 # Whether we should hardcode library paths into libraries.
14186 hardcode_into_libs=$hardcode_into_libs
14188 # Flag to hardcode \$libdir into a binary during linking.
14189 # This must work even if \$libdir does not exist.
14190 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14192 # If ld is used when linking, flag to hardcode \$libdir into
14193 # a binary during linking. This must work even if \$libdir does
14194 # not exist.
14195 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14197 # Whether we need a single -rpath flag with a separated argument.
14198 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14200 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14201 # resulting binary.
14202 hardcode_direct=$hardcode_direct_CXX
14204 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14205 # resulting binary.
14206 hardcode_minus_L=$hardcode_minus_L_CXX
14208 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14209 # the resulting binary.
14210 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14212 # Set to yes if building a shared library automatically hardcodes DIR into the library
14213 # and all subsequent libraries and executables linked against it.
14214 hardcode_automatic=$hardcode_automatic_CXX
14216 # Variables whose values should be saved in libtool wrapper scripts and
14217 # restored at relink time.
14218 variables_saved_for_relink="$variables_saved_for_relink"
14220 # Whether libtool must link a program against all its dependency libraries.
14221 link_all_deplibs=$link_all_deplibs_CXX
14223 # Compile-time system search path for libraries
14224 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14226 # Run-time system search path for libraries
14227 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14229 # Fix the shell variable \$srcfile for the compiler.
14230 fix_srcfile_path=$lt_fix_srcfile_path
14232 # Set to yes if exported symbols are required.
14233 always_export_symbols=$always_export_symbols_CXX
14235 # The commands to list exported symbols.
14236 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14238 # The commands to extract the exported symbol list from a shared archive.
14239 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14241 # Symbols that should not be listed in the preloaded symbols.
14242 exclude_expsyms=$lt_exclude_expsyms_CXX
14244 # Symbols that must always be exported.
14245 include_expsyms=$lt_include_expsyms_CXX
14247 # ### END LIBTOOL TAG CONFIG: $tagname
14249 __EOF__
14252 else
14253   # If there is no Makefile yet, we rely on a make rule to execute
14254   # `config.status --recheck' to rerun these tests and create the
14255   # libtool script then.
14256   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14257   if test -f "$ltmain_in"; then
14258     test -f Makefile && make "$ltmain"
14259   fi
14263 ac_ext=c
14264 ac_cpp='$CPP $CPPFLAGS'
14265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14269 CC=$lt_save_CC
14270 LDCXX=$LD
14271 LD=$lt_save_LD
14272 GCC=$lt_save_GCC
14273 with_gnu_ldcxx=$with_gnu_ld
14274 with_gnu_ld=$lt_save_with_gnu_ld
14275 lt_cv_path_LDCXX=$lt_cv_path_LD
14276 lt_cv_path_LD=$lt_save_path_LD
14277 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14278 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14280         else
14281           tagname=""
14282         fi
14283         ;;
14285       F77)
14286         if test -n "$F77" && test "X$F77" != "Xno"; then
14288 ac_ext=f
14289 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14290 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14291 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14294 archive_cmds_need_lc_F77=no
14295 allow_undefined_flag_F77=
14296 always_export_symbols_F77=no
14297 archive_expsym_cmds_F77=
14298 export_dynamic_flag_spec_F77=
14299 hardcode_direct_F77=no
14300 hardcode_libdir_flag_spec_F77=
14301 hardcode_libdir_flag_spec_ld_F77=
14302 hardcode_libdir_separator_F77=
14303 hardcode_minus_L_F77=no
14304 hardcode_automatic_F77=no
14305 module_cmds_F77=
14306 module_expsym_cmds_F77=
14307 link_all_deplibs_F77=unknown
14308 old_archive_cmds_F77=$old_archive_cmds
14309 no_undefined_flag_F77=
14310 whole_archive_flag_spec_F77=
14311 enable_shared_with_static_runtimes_F77=no
14313 # Source file extension for f77 test sources.
14314 ac_ext=f
14316 # Object file extension for compiled f77 test sources.
14317 objext=o
14318 objext_F77=$objext
14320 # Code to be used in simple compile tests
14321 lt_simple_compile_test_code="\
14322       subroutine t
14323       return
14324       end
14327 # Code to be used in simple link tests
14328 lt_simple_link_test_code="\
14329       program t
14330       end
14333 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14335 # If no C compiler was specified, use CC.
14336 LTCC=${LTCC-"$CC"}
14338 # If no C compiler flags were specified, use CFLAGS.
14339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14341 # Allow CC to be a program name with arguments.
14342 compiler=$CC
14345 # save warnings/boilerplate of simple test code
14346 ac_outfile=conftest.$ac_objext
14347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14349 _lt_compiler_boilerplate=`cat conftest.err`
14350 $rm conftest*
14352 ac_outfile=conftest.$ac_objext
14353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14355 _lt_linker_boilerplate=`cat conftest.err`
14356 $rm -r conftest*
14359 # Allow CC to be a program name with arguments.
14360 lt_save_CC="$CC"
14361 CC=${F77-"f77"}
14362 compiler=$CC
14363 compiler_F77=$CC
14364 for cc_temp in $compiler""; do
14365   case $cc_temp in
14366     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14367     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14368     \-*) ;;
14369     *) break;;
14370   esac
14371 done
14372 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14375 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14376 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14377 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14378 echo "${ECHO_T}$can_build_shared" >&6; }
14380 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14381 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14382 test "$can_build_shared" = "no" && enable_shared=no
14384 # On AIX, shared libraries and static libraries use the same namespace, and
14385 # are all built from PIC.
14386 case $host_os in
14387 aix3*)
14388   test "$enable_shared" = yes && enable_static=no
14389   if test -n "$RANLIB"; then
14390     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14391     postinstall_cmds='$RANLIB $lib'
14392   fi
14393   ;;
14394 aix[4-9]*)
14395   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14396     test "$enable_shared" = yes && enable_static=no
14397   fi
14398   ;;
14399 esac
14400 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14401 echo "${ECHO_T}$enable_shared" >&6; }
14403 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14404 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14405 # Make sure either enable_shared or enable_static is yes.
14406 test "$enable_shared" = yes || enable_static=yes
14407 { echo "$as_me:$LINENO: result: $enable_static" >&5
14408 echo "${ECHO_T}$enable_static" >&6; }
14410 GCC_F77="$G77"
14411 LD_F77="$LD"
14413 lt_prog_compiler_wl_F77=
14414 lt_prog_compiler_pic_F77=
14415 lt_prog_compiler_static_F77=
14417 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14418 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14420   if test "$GCC" = yes; then
14421     lt_prog_compiler_wl_F77='-Wl,'
14422     lt_prog_compiler_static_F77='-static'
14424     case $host_os in
14425       aix*)
14426       # All AIX code is PIC.
14427       if test "$host_cpu" = ia64; then
14428         # AIX 5 now supports IA64 processor
14429         lt_prog_compiler_static_F77='-Bstatic'
14430       fi
14431       ;;
14433     amigaos*)
14434       # FIXME: we need at least 68020 code to build shared libraries, but
14435       # adding the `-m68020' flag to GCC prevents building anything better,
14436       # like `-m68040'.
14437       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14438       ;;
14440     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14441       # PIC is the default for these OSes.
14442       ;;
14444     mingw* | cygwin* | pw32* | os2*)
14445       # This hack is so that the source file can tell whether it is being
14446       # built for inclusion in a dll (and should export symbols for example).
14447       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14448       # (--disable-auto-import) libraries
14449       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14450       ;;
14452     darwin* | rhapsody*)
14453       # PIC is the default on this platform
14454       # Common symbols not allowed in MH_DYLIB files
14455       lt_prog_compiler_pic_F77='-fno-common'
14456       ;;
14458     interix[3-9]*)
14459       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14460       # Instead, we relocate shared libraries at runtime.
14461       ;;
14463     msdosdjgpp*)
14464       # Just because we use GCC doesn't mean we suddenly get shared libraries
14465       # on systems that don't support them.
14466       lt_prog_compiler_can_build_shared_F77=no
14467       enable_shared=no
14468       ;;
14470     sysv4*MP*)
14471       if test -d /usr/nec; then
14472         lt_prog_compiler_pic_F77=-Kconform_pic
14473       fi
14474       ;;
14476     hpux*)
14477       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14478       # not for PA HP-UX.
14479       case $host_cpu in
14480       hppa*64*|ia64*)
14481         # +Z the default
14482         ;;
14483       *)
14484         lt_prog_compiler_pic_F77='-fPIC'
14485         ;;
14486       esac
14487       ;;
14489     *)
14490       lt_prog_compiler_pic_F77='-fPIC'
14491       ;;
14492     esac
14493   else
14494     # PORTME Check for flag to pass linker flags through the system compiler.
14495     case $host_os in
14496     aix*)
14497       lt_prog_compiler_wl_F77='-Wl,'
14498       if test "$host_cpu" = ia64; then
14499         # AIX 5 now supports IA64 processor
14500         lt_prog_compiler_static_F77='-Bstatic'
14501       else
14502         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14503       fi
14504       ;;
14505       darwin*)
14506         # PIC is the default on this platform
14507         # Common symbols not allowed in MH_DYLIB files
14508        case $cc_basename in
14509          xlc*)
14510          lt_prog_compiler_pic_F77='-qnocommon'
14511          lt_prog_compiler_wl_F77='-Wl,'
14512          ;;
14513        esac
14514        ;;
14516     mingw* | cygwin* | pw32* | os2*)
14517       # This hack is so that the source file can tell whether it is being
14518       # built for inclusion in a dll (and should export symbols for example).
14519       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14520       ;;
14522     hpux9* | hpux10* | hpux11*)
14523       lt_prog_compiler_wl_F77='-Wl,'
14524       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14525       # not for PA HP-UX.
14526       case $host_cpu in
14527       hppa*64*|ia64*)
14528         # +Z the default
14529         ;;
14530       *)
14531         lt_prog_compiler_pic_F77='+Z'
14532         ;;
14533       esac
14534       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14535       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14536       ;;
14538     irix5* | irix6* | nonstopux*)
14539       lt_prog_compiler_wl_F77='-Wl,'
14540       # PIC (with -KPIC) is the default.
14541       lt_prog_compiler_static_F77='-non_shared'
14542       ;;
14544     newsos6)
14545       lt_prog_compiler_pic_F77='-KPIC'
14546       lt_prog_compiler_static_F77='-Bstatic'
14547       ;;
14549     linux* | k*bsd*-gnu)
14550       case $cc_basename in
14551       icc* | ecc*)
14552         lt_prog_compiler_wl_F77='-Wl,'
14553         lt_prog_compiler_pic_F77='-KPIC'
14554         lt_prog_compiler_static_F77='-static'
14555         ;;
14556       pgcc* | pgf77* | pgf90* | pgf95*)
14557         # Portland Group compilers (*not* the Pentium gcc compiler,
14558         # which looks to be a dead project)
14559         lt_prog_compiler_wl_F77='-Wl,'
14560         lt_prog_compiler_pic_F77='-fpic'
14561         lt_prog_compiler_static_F77='-Bstatic'
14562         ;;
14563       ccc*)
14564         lt_prog_compiler_wl_F77='-Wl,'
14565         # All Alpha code is PIC.
14566         lt_prog_compiler_static_F77='-non_shared'
14567         ;;
14568       *)
14569         case `$CC -V 2>&1 | sed 5q` in
14570         *Sun\ C*)
14571           # Sun C 5.9
14572           lt_prog_compiler_pic_F77='-KPIC'
14573           lt_prog_compiler_static_F77='-Bstatic'
14574           lt_prog_compiler_wl_F77='-Wl,'
14575           ;;
14576         *Sun\ F*)
14577           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14578           lt_prog_compiler_pic_F77='-KPIC'
14579           lt_prog_compiler_static_F77='-Bstatic'
14580           lt_prog_compiler_wl_F77=''
14581           ;;
14582         esac
14583         ;;
14584       esac
14585       ;;
14587     osf3* | osf4* | osf5*)
14588       lt_prog_compiler_wl_F77='-Wl,'
14589       # All OSF/1 code is PIC.
14590       lt_prog_compiler_static_F77='-non_shared'
14591       ;;
14593     rdos*)
14594       lt_prog_compiler_static_F77='-non_shared'
14595       ;;
14597     solaris*)
14598       lt_prog_compiler_pic_F77='-KPIC'
14599       lt_prog_compiler_static_F77='-Bstatic'
14600       case $cc_basename in
14601       f77* | f90* | f95*)
14602         lt_prog_compiler_wl_F77='-Qoption ld ';;
14603       *)
14604         lt_prog_compiler_wl_F77='-Wl,';;
14605       esac
14606       ;;
14608     sunos4*)
14609       lt_prog_compiler_wl_F77='-Qoption ld '
14610       lt_prog_compiler_pic_F77='-PIC'
14611       lt_prog_compiler_static_F77='-Bstatic'
14612       ;;
14614     sysv4 | sysv4.2uw2* | sysv4.3*)
14615       lt_prog_compiler_wl_F77='-Wl,'
14616       lt_prog_compiler_pic_F77='-KPIC'
14617       lt_prog_compiler_static_F77='-Bstatic'
14618       ;;
14620     sysv4*MP*)
14621       if test -d /usr/nec ;then
14622         lt_prog_compiler_pic_F77='-Kconform_pic'
14623         lt_prog_compiler_static_F77='-Bstatic'
14624       fi
14625       ;;
14627     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14628       lt_prog_compiler_wl_F77='-Wl,'
14629       lt_prog_compiler_pic_F77='-KPIC'
14630       lt_prog_compiler_static_F77='-Bstatic'
14631       ;;
14633     unicos*)
14634       lt_prog_compiler_wl_F77='-Wl,'
14635       lt_prog_compiler_can_build_shared_F77=no
14636       ;;
14638     uts4*)
14639       lt_prog_compiler_pic_F77='-pic'
14640       lt_prog_compiler_static_F77='-Bstatic'
14641       ;;
14643     *)
14644       lt_prog_compiler_can_build_shared_F77=no
14645       ;;
14646     esac
14647   fi
14649 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14650 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14653 # Check to make sure the PIC flag actually works.
14655 if test -n "$lt_prog_compiler_pic_F77"; then
14657 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14658 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14659 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14660   echo $ECHO_N "(cached) $ECHO_C" >&6
14661 else
14662   lt_cv_prog_compiler_pic_works_F77=no
14663   ac_outfile=conftest.$ac_objext
14664    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14665    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14666    # Insert the option either (1) after the last *FLAGS variable, or
14667    # (2) before a word containing "conftest.", or (3) at the end.
14668    # Note that $ac_compile itself does not contain backslashes and begins
14669    # with a dollar sign (not a hyphen), so the echo should work correctly.
14670    # The option is referenced via a variable to avoid confusing sed.
14671    lt_compile=`echo "$ac_compile" | $SED \
14672    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14673    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14674    -e 's:$: $lt_compiler_flag:'`
14675    (eval echo "\"\$as_me:14675: $lt_compile\"" >&5)
14676    (eval "$lt_compile" 2>conftest.err)
14677    ac_status=$?
14678    cat conftest.err >&5
14679    echo "$as_me:14679: \$? = $ac_status" >&5
14680    if (exit $ac_status) && test -s "$ac_outfile"; then
14681      # The compiler can only warn and ignore the option if not recognized
14682      # So say no if there are warnings other than the usual output.
14683      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14684      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14685      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14686        lt_cv_prog_compiler_pic_works_F77=yes
14687      fi
14688    fi
14689    $rm conftest*
14692 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14693 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14695 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14696     case $lt_prog_compiler_pic_F77 in
14697      "" | " "*) ;;
14698      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14699      esac
14700 else
14701     lt_prog_compiler_pic_F77=
14702      lt_prog_compiler_can_build_shared_F77=no
14706 case $host_os in
14707   # For platforms which do not support PIC, -DPIC is meaningless:
14708   *djgpp*)
14709     lt_prog_compiler_pic_F77=
14710     ;;
14711   *)
14712     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14713     ;;
14714 esac
14717 # Check to make sure the static flag actually works.
14719 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14720 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14721 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14722 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14723   echo $ECHO_N "(cached) $ECHO_C" >&6
14724 else
14725   lt_cv_prog_compiler_static_works_F77=no
14726    save_LDFLAGS="$LDFLAGS"
14727    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14728    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14729    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14730      # The linker can only warn and ignore the option if not recognized
14731      # So say no if there are warnings
14732      if test -s conftest.err; then
14733        # Append any errors to the config.log.
14734        cat conftest.err 1>&5
14735        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14736        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737        if diff conftest.exp conftest.er2 >/dev/null; then
14738          lt_cv_prog_compiler_static_works_F77=yes
14739        fi
14740      else
14741        lt_cv_prog_compiler_static_works_F77=yes
14742      fi
14743    fi
14744    $rm -r conftest*
14745    LDFLAGS="$save_LDFLAGS"
14748 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14749 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14751 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14752     :
14753 else
14754     lt_prog_compiler_static_F77=
14758 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14759 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14760 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14761   echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763   lt_cv_prog_compiler_c_o_F77=no
14764    $rm -r conftest 2>/dev/null
14765    mkdir conftest
14766    cd conftest
14767    mkdir out
14768    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14770    lt_compiler_flag="-o out/conftest2.$ac_objext"
14771    # Insert the option either (1) after the last *FLAGS variable, or
14772    # (2) before a word containing "conftest.", or (3) at the end.
14773    # Note that $ac_compile itself does not contain backslashes and begins
14774    # with a dollar sign (not a hyphen), so the echo should work correctly.
14775    lt_compile=`echo "$ac_compile" | $SED \
14776    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14777    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14778    -e 's:$: $lt_compiler_flag:'`
14779    (eval echo "\"\$as_me:14779: $lt_compile\"" >&5)
14780    (eval "$lt_compile" 2>out/conftest.err)
14781    ac_status=$?
14782    cat out/conftest.err >&5
14783    echo "$as_me:14783: \$? = $ac_status" >&5
14784    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14785    then
14786      # The compiler can only warn and ignore the option if not recognized
14787      # So say no if there are warnings
14788      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14789      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14790      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14791        lt_cv_prog_compiler_c_o_F77=yes
14792      fi
14793    fi
14794    chmod u+w . 2>&5
14795    $rm conftest*
14796    # SGI C++ compiler will create directory out/ii_files/ for
14797    # template instantiation
14798    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14799    $rm out/* && rmdir out
14800    cd ..
14801    rmdir conftest
14802    $rm conftest*
14805 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14806 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14809 hard_links="nottested"
14810 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14811   # do not overwrite the value of need_locks provided by the user
14812   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14813 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14814   hard_links=yes
14815   $rm conftest*
14816   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14817   touch conftest.a
14818   ln conftest.a conftest.b 2>&5 || hard_links=no
14819   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14820   { echo "$as_me:$LINENO: result: $hard_links" >&5
14821 echo "${ECHO_T}$hard_links" >&6; }
14822   if test "$hard_links" = no; then
14823     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14824 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14825     need_locks=warn
14826   fi
14827 else
14828   need_locks=no
14831 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14832 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14834   runpath_var=
14835   allow_undefined_flag_F77=
14836   enable_shared_with_static_runtimes_F77=no
14837   archive_cmds_F77=
14838   archive_expsym_cmds_F77=
14839   old_archive_From_new_cmds_F77=
14840   old_archive_from_expsyms_cmds_F77=
14841   export_dynamic_flag_spec_F77=
14842   whole_archive_flag_spec_F77=
14843   thread_safe_flag_spec_F77=
14844   hardcode_libdir_flag_spec_F77=
14845   hardcode_libdir_flag_spec_ld_F77=
14846   hardcode_libdir_separator_F77=
14847   hardcode_direct_F77=no
14848   hardcode_minus_L_F77=no
14849   hardcode_shlibpath_var_F77=unsupported
14850   link_all_deplibs_F77=unknown
14851   hardcode_automatic_F77=no
14852   module_cmds_F77=
14853   module_expsym_cmds_F77=
14854   always_export_symbols_F77=no
14855   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14856   # include_expsyms should be a list of space-separated symbols to be *always*
14857   # included in the symbol list
14858   include_expsyms_F77=
14859   # exclude_expsyms can be an extended regexp of symbols to exclude
14860   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14861   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14862   # as well as any symbol that contains `d'.
14863   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14864   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14865   # platforms (ab)use it in PIC code, but their linkers get confused if
14866   # the symbol is explicitly referenced.  Since portable code cannot
14867   # rely on this symbol name, it's probably fine to never include it in
14868   # preloaded symbol tables.
14869   # Exclude shared library initialization/finalization symbols.
14870   extract_expsyms_cmds=
14871   # Just being paranoid about ensuring that cc_basename is set.
14872   for cc_temp in $compiler""; do
14873   case $cc_temp in
14874     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14875     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14876     \-*) ;;
14877     *) break;;
14878   esac
14879 done
14880 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14882   case $host_os in
14883   cygwin* | mingw* | pw32*)
14884     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14885     # When not using gcc, we currently assume that we are using
14886     # Microsoft Visual C++.
14887     if test "$GCC" != yes; then
14888       with_gnu_ld=no
14889     fi
14890     ;;
14891   interix*)
14892     # we just hope/assume this is gcc and not c89 (= MSVC++)
14893     with_gnu_ld=yes
14894     ;;
14895   openbsd*)
14896     with_gnu_ld=no
14897     ;;
14898   esac
14900   ld_shlibs_F77=yes
14901   if test "$with_gnu_ld" = yes; then
14902     # If archive_cmds runs LD, not CC, wlarc should be empty
14903     wlarc='${wl}'
14905     # Set some defaults for GNU ld with shared library support. These
14906     # are reset later if shared libraries are not supported. Putting them
14907     # here allows them to be overridden if necessary.
14908     runpath_var=LD_RUN_PATH
14909     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14910     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14911     # ancient GNU ld didn't support --whole-archive et. al.
14912     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14913         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14914       else
14915         whole_archive_flag_spec_F77=
14916     fi
14917     supports_anon_versioning=no
14918     case `$LD -v 2>/dev/null` in
14919       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14920       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14921       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14922       *\ 2.11.*) ;; # other 2.11 versions
14923       *) supports_anon_versioning=yes ;;
14924     esac
14926     # See if GNU ld supports shared libraries.
14927     case $host_os in
14928     aix[3-9]*)
14929       # On AIX/PPC, the GNU linker is very broken
14930       if test "$host_cpu" != ia64; then
14931         ld_shlibs_F77=no
14932         cat <<EOF 1>&2
14934 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14935 *** to be unable to reliably create shared libraries on AIX.
14936 *** Therefore, libtool is disabling shared libraries support.  If you
14937 *** really care for shared libraries, you may want to modify your PATH
14938 *** so that a non-GNU linker is found, and then restart.
14940 EOF
14941       fi
14942       ;;
14944     amigaos*)
14945       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)'
14946       hardcode_libdir_flag_spec_F77='-L$libdir'
14947       hardcode_minus_L_F77=yes
14949       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14950       # that the semantics of dynamic libraries on AmigaOS, at least up
14951       # to version 4, is to share data among multiple programs linked
14952       # with the same dynamic library.  Since this doesn't match the
14953       # behavior of shared libraries on other platforms, we can't use
14954       # them.
14955       ld_shlibs_F77=no
14956       ;;
14958     beos*)
14959       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14960         allow_undefined_flag_F77=unsupported
14961         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14962         # support --undefined.  This deserves some investigation.  FIXME
14963         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14964       else
14965         ld_shlibs_F77=no
14966       fi
14967       ;;
14969     cygwin* | mingw* | pw32*)
14970       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14971       # as there is no search path for DLLs.
14972       hardcode_libdir_flag_spec_F77='-L$libdir'
14973       allow_undefined_flag_F77=unsupported
14974       always_export_symbols_F77=no
14975       enable_shared_with_static_runtimes_F77=yes
14976       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14978       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14979         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14980         # If the export-symbols file already is a .def file (1st line
14981         # is EXPORTS), use it as is; otherwise, prepend...
14982         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14983           cp $export_symbols $output_objdir/$soname.def;
14984         else
14985           echo EXPORTS > $output_objdir/$soname.def;
14986           cat $export_symbols >> $output_objdir/$soname.def;
14987         fi~
14988         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14989       else
14990         ld_shlibs_F77=no
14991       fi
14992       ;;
14994     interix[3-9]*)
14995       hardcode_direct_F77=no
14996       hardcode_shlibpath_var_F77=no
14997       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14998       export_dynamic_flag_spec_F77='${wl}-E'
14999       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15000       # Instead, shared libraries are loaded at an image base (0x10000000 by
15001       # default) and relocated if they conflict, which is a slow very memory
15002       # consuming and fragmenting process.  To avoid this, we pick a random,
15003       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15004       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15005       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'
15006       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'
15007       ;;
15009     gnu* | linux* | k*bsd*-gnu)
15010       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15011         tmp_addflag=
15012         case $cc_basename,$host_cpu in
15013         pgcc*)                          # Portland Group C compiler
15014           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'
15015           tmp_addflag=' $pic_flag'
15016           ;;
15017         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15018           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'
15019           tmp_addflag=' $pic_flag -Mnomain' ;;
15020         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15021           tmp_addflag=' -i_dynamic' ;;
15022         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15023           tmp_addflag=' -i_dynamic -nofor_main' ;;
15024         ifc* | ifort*)                  # Intel Fortran compiler
15025           tmp_addflag=' -nofor_main' ;;
15026         esac
15027         case `$CC -V 2>&1 | sed 5q` in
15028         *Sun\ C*)                       # Sun C 5.9
15029           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'
15030           tmp_sharedflag='-G' ;;
15031         *Sun\ F*)                       # Sun Fortran 8.3
15032           tmp_sharedflag='-G' ;;
15033         *)
15034           tmp_sharedflag='-shared' ;;
15035         esac
15036         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15038         if test $supports_anon_versioning = yes; then
15039           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15040   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15041   $echo "local: *; };" >> $output_objdir/$libname.ver~
15042           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15043         fi
15044         link_all_deplibs_F77=no
15045       else
15046         ld_shlibs_F77=no
15047       fi
15048       ;;
15050     netbsd* | netbsdelf*-gnu)
15051       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15052         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15053         wlarc=
15054       else
15055         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15056         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15057       fi
15058       ;;
15060     solaris*)
15061       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15062         ld_shlibs_F77=no
15063         cat <<EOF 1>&2
15065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15066 *** create shared libraries on Solaris systems.  Therefore, libtool
15067 *** is disabling shared libraries support.  We urge you to upgrade GNU
15068 *** binutils to release 2.9.1 or newer.  Another option is to modify
15069 *** your PATH or compiler configuration so that the native linker is
15070 *** used, and then restart.
15072 EOF
15073       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15074         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15075         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15076       else
15077         ld_shlibs_F77=no
15078       fi
15079       ;;
15081     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15082       case `$LD -v 2>&1` in
15083         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15084         ld_shlibs_F77=no
15085         cat <<_LT_EOF 1>&2
15087 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15088 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15089 *** is disabling shared libraries support.  We urge you to upgrade GNU
15090 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15091 *** your PATH or compiler configuration so that the native linker is
15092 *** used, and then restart.
15094 _LT_EOF
15095         ;;
15096         *)
15097           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15099             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15100             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15101           else
15102             ld_shlibs_F77=no
15103           fi
15104         ;;
15105       esac
15106       ;;
15108     sunos4*)
15109       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15110       wlarc=
15111       hardcode_direct_F77=yes
15112       hardcode_shlibpath_var_F77=no
15113       ;;
15115     *)
15116       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15117         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15119       else
15120         ld_shlibs_F77=no
15121       fi
15122       ;;
15123     esac
15125     if test "$ld_shlibs_F77" = no; then
15126       runpath_var=
15127       hardcode_libdir_flag_spec_F77=
15128       export_dynamic_flag_spec_F77=
15129       whole_archive_flag_spec_F77=
15130     fi
15131   else
15132     # PORTME fill in a description of your system's linker (not GNU ld)
15133     case $host_os in
15134     aix3*)
15135       allow_undefined_flag_F77=unsupported
15136       always_export_symbols_F77=yes
15137       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'
15138       # Note: this linker hardcodes the directories in LIBPATH if there
15139       # are no directories specified by -L.
15140       hardcode_minus_L_F77=yes
15141       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15142         # Neither direct hardcoding nor static linking is supported with a
15143         # broken collect2.
15144         hardcode_direct_F77=unsupported
15145       fi
15146       ;;
15148     aix[4-9]*)
15149       if test "$host_cpu" = ia64; then
15150         # On IA64, the linker does run time linking by default, so we don't
15151         # have to do anything special.
15152         aix_use_runtimelinking=no
15153         exp_sym_flag='-Bexport'
15154         no_entry_flag=""
15155       else
15156         # If we're using GNU nm, then we don't want the "-C" option.
15157         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15158         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15159           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'
15160         else
15161           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'
15162         fi
15163         aix_use_runtimelinking=no
15165         # Test if we are trying to use run time linking or normal
15166         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15167         # need to do runtime linking.
15168         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15169           for ld_flag in $LDFLAGS; do
15170           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15171             aix_use_runtimelinking=yes
15172             break
15173           fi
15174           done
15175           ;;
15176         esac
15178         exp_sym_flag='-bexport'
15179         no_entry_flag='-bnoentry'
15180       fi
15182       # When large executables or shared objects are built, AIX ld can
15183       # have problems creating the table of contents.  If linking a library
15184       # or program results in "error TOC overflow" add -mminimal-toc to
15185       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15186       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15188       archive_cmds_F77=''
15189       hardcode_direct_F77=yes
15190       hardcode_libdir_separator_F77=':'
15191       link_all_deplibs_F77=yes
15193       if test "$GCC" = yes; then
15194         case $host_os in aix4.[012]|aix4.[012].*)
15195         # We only want to do this on AIX 4.2 and lower, the check
15196         # below for broken collect2 doesn't work under 4.3+
15197           collect2name=`${CC} -print-prog-name=collect2`
15198           if test -f "$collect2name" && \
15199            strings "$collect2name" | grep resolve_lib_name >/dev/null
15200           then
15201           # We have reworked collect2
15202           :
15203           else
15204           # We have old collect2
15205           hardcode_direct_F77=unsupported
15206           # It fails to find uninstalled libraries when the uninstalled
15207           # path is not listed in the libpath.  Setting hardcode_minus_L
15208           # to unsupported forces relinking
15209           hardcode_minus_L_F77=yes
15210           hardcode_libdir_flag_spec_F77='-L$libdir'
15211           hardcode_libdir_separator_F77=
15212           fi
15213           ;;
15214         esac
15215         shared_flag='-shared'
15216         if test "$aix_use_runtimelinking" = yes; then
15217           shared_flag="$shared_flag "'${wl}-G'
15218         fi
15219       else
15220         # not using gcc
15221         if test "$host_cpu" = ia64; then
15222         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15223         # chokes on -Wl,-G. The following line is correct:
15224           shared_flag='-G'
15225         else
15226           if test "$aix_use_runtimelinking" = yes; then
15227             shared_flag='${wl}-G'
15228           else
15229             shared_flag='${wl}-bM:SRE'
15230           fi
15231         fi
15232       fi
15234       # It seems that -bexpall does not export symbols beginning with
15235       # underscore (_), so it is better to generate a list of symbols to export.
15236       always_export_symbols_F77=yes
15237       if test "$aix_use_runtimelinking" = yes; then
15238         # Warning - without using the other runtime loading flags (-brtl),
15239         # -berok will link without error, but may produce a broken library.
15240         allow_undefined_flag_F77='-berok'
15241        # Determine the default libpath from the value encoded in an empty executable.
15242        cat >conftest.$ac_ext <<_ACEOF
15243       program main
15245       end
15246 _ACEOF
15247 rm -f conftest.$ac_objext conftest$ac_exeext
15248 if { (ac_try="$ac_link"
15249 case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_link") 2>conftest.er1
15255   ac_status=$?
15256   grep -v '^ *+' conftest.er1 >conftest.err
15257   rm -f conftest.er1
15258   cat conftest.err >&5
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } && {
15261          test -z "$ac_f77_werror_flag" ||
15262          test ! -s conftest.err
15263        } && test -s conftest$ac_exeext &&
15264        $as_test_x conftest$ac_exeext; then
15266 lt_aix_libpath_sed='
15267     /Import File Strings/,/^$/ {
15268         /^0/ {
15269             s/^0  *\(.*\)$/\1/
15270             p
15271         }
15272     }'
15273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15274 # Check for a 64-bit object if we didn't find anything.
15275 if test -z "$aix_libpath"; then
15276   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15278 else
15279   echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15286       conftest$ac_exeext conftest.$ac_ext
15287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15289        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15290         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"
15291        else
15292         if test "$host_cpu" = ia64; then
15293           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15294           allow_undefined_flag_F77="-z nodefs"
15295           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"
15296         else
15297          # Determine the default libpath from the value encoded in an empty executable.
15298          cat >conftest.$ac_ext <<_ACEOF
15299       program main
15301       end
15302 _ACEOF
15303 rm -f conftest.$ac_objext conftest$ac_exeext
15304 if { (ac_try="$ac_link"
15305 case "(($ac_try" in
15306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307   *) ac_try_echo=$ac_try;;
15308 esac
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310   (eval "$ac_link") 2>conftest.er1
15311   ac_status=$?
15312   grep -v '^ *+' conftest.er1 >conftest.err
15313   rm -f conftest.er1
15314   cat conftest.err >&5
15315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316   (exit $ac_status); } && {
15317          test -z "$ac_f77_werror_flag" ||
15318          test ! -s conftest.err
15319        } && test -s conftest$ac_exeext &&
15320        $as_test_x conftest$ac_exeext; then
15322 lt_aix_libpath_sed='
15323     /Import File Strings/,/^$/ {
15324         /^0/ {
15325             s/^0  *\(.*\)$/\1/
15326             p
15327         }
15328     }'
15329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15330 # Check for a 64-bit object if we didn't find anything.
15331 if test -z "$aix_libpath"; then
15332   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15334 else
15335   echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15342       conftest$ac_exeext conftest.$ac_ext
15343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15345          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15346           # Warning - without using the other run time loading flags,
15347           # -berok will link without error, but may produce a broken library.
15348           no_undefined_flag_F77=' ${wl}-bernotok'
15349           allow_undefined_flag_F77=' ${wl}-berok'
15350           # Exported symbols can be pulled into shared objects from archives
15351           whole_archive_flag_spec_F77='$convenience'
15352           archive_cmds_need_lc_F77=yes
15353           # This is similar to how AIX traditionally builds its shared libraries.
15354           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'
15355         fi
15356       fi
15357       ;;
15359     amigaos*)
15360       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)'
15361       hardcode_libdir_flag_spec_F77='-L$libdir'
15362       hardcode_minus_L_F77=yes
15363       # see comment about different semantics on the GNU ld section
15364       ld_shlibs_F77=no
15365       ;;
15367     bsdi[45]*)
15368       export_dynamic_flag_spec_F77=-rdynamic
15369       ;;
15371     cygwin* | mingw* | pw32*)
15372       # When not using gcc, we currently assume that we are using
15373       # Microsoft Visual C++.
15374       # hardcode_libdir_flag_spec is actually meaningless, as there is
15375       # no search path for DLLs.
15376       hardcode_libdir_flag_spec_F77=' '
15377       allow_undefined_flag_F77=unsupported
15378       # Tell ltmain to make .lib files, not .a files.
15379       libext=lib
15380       # Tell ltmain to make .dll files, not .so files.
15381       shrext_cmds=".dll"
15382       # FIXME: Setting linknames here is a bad hack.
15383       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15384       # The linker will automatically build a .lib file if we build a DLL.
15385       old_archive_From_new_cmds_F77='true'
15386       # FIXME: Should let the user specify the lib program.
15387       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15388       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15389       enable_shared_with_static_runtimes_F77=yes
15390       ;;
15392     darwin* | rhapsody*)
15393       case $host_os in
15394         rhapsody* | darwin1.[012])
15395          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15396          ;;
15397        *) # Darwin 1.3 on
15398          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15399            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15400          else
15401            case ${MACOSX_DEPLOYMENT_TARGET} in
15402              10.[012])
15403                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15404                ;;
15405              10.*)
15406                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15407                ;;
15408            esac
15409          fi
15410          ;;
15411       esac
15412       archive_cmds_need_lc_F77=no
15413       hardcode_direct_F77=no
15414       hardcode_automatic_F77=yes
15415       hardcode_shlibpath_var_F77=unsupported
15416       whole_archive_flag_spec_F77=''
15417       link_all_deplibs_F77=yes
15418     if test "$GCC" = yes ; then
15419         output_verbose_link_cmd='echo'
15420         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}"
15421         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15422         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}"
15423         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}"
15424     else
15425       case $cc_basename in
15426         xlc*)
15427          output_verbose_link_cmd='echo'
15428          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15429          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15430           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15431          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}'
15432           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}'
15433           ;;
15434        *)
15435          ld_shlibs_F77=no
15436           ;;
15437       esac
15438     fi
15439       ;;
15441     dgux*)
15442       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15443       hardcode_libdir_flag_spec_F77='-L$libdir'
15444       hardcode_shlibpath_var_F77=no
15445       ;;
15447     freebsd1*)
15448       ld_shlibs_F77=no
15449       ;;
15451     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15452     # support.  Future versions do this automatically, but an explicit c++rt0.o
15453     # does not break anything, and helps significantly (at the cost of a little
15454     # extra space).
15455     freebsd2.2*)
15456       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15457       hardcode_libdir_flag_spec_F77='-R$libdir'
15458       hardcode_direct_F77=yes
15459       hardcode_shlibpath_var_F77=no
15460       ;;
15462     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15463     freebsd2*)
15464       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15465       hardcode_direct_F77=yes
15466       hardcode_minus_L_F77=yes
15467       hardcode_shlibpath_var_F77=no
15468       ;;
15470     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15471     freebsd* | dragonfly*)
15472       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15473       hardcode_libdir_flag_spec_F77='-R$libdir'
15474       hardcode_direct_F77=yes
15475       hardcode_shlibpath_var_F77=no
15476       ;;
15478     hpux9*)
15479       if test "$GCC" = yes; then
15480         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'
15481       else
15482         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'
15483       fi
15484       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15485       hardcode_libdir_separator_F77=:
15486       hardcode_direct_F77=yes
15488       # hardcode_minus_L: Not really in the search PATH,
15489       # but as the default location of the library.
15490       hardcode_minus_L_F77=yes
15491       export_dynamic_flag_spec_F77='${wl}-E'
15492       ;;
15494     hpux10*)
15495       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15496         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15497       else
15498         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15499       fi
15500       if test "$with_gnu_ld" = no; then
15501         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15502         hardcode_libdir_separator_F77=:
15504         hardcode_direct_F77=yes
15505         export_dynamic_flag_spec_F77='${wl}-E'
15507         # hardcode_minus_L: Not really in the search PATH,
15508         # but as the default location of the library.
15509         hardcode_minus_L_F77=yes
15510       fi
15511       ;;
15513     hpux11*)
15514       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15515         case $host_cpu in
15516         hppa*64*)
15517           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15518           ;;
15519         ia64*)
15520           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15521           ;;
15522         *)
15523           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15524           ;;
15525         esac
15526       else
15527         case $host_cpu in
15528         hppa*64*)
15529           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15530           ;;
15531         ia64*)
15532           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15533           ;;
15534         *)
15535           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15536           ;;
15537         esac
15538       fi
15539       if test "$with_gnu_ld" = no; then
15540         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15541         hardcode_libdir_separator_F77=:
15543         case $host_cpu in
15544         hppa*64*|ia64*)
15545           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15546           hardcode_direct_F77=no
15547           hardcode_shlibpath_var_F77=no
15548           ;;
15549         *)
15550           hardcode_direct_F77=yes
15551           export_dynamic_flag_spec_F77='${wl}-E'
15553           # hardcode_minus_L: Not really in the search PATH,
15554           # but as the default location of the library.
15555           hardcode_minus_L_F77=yes
15556           ;;
15557         esac
15558       fi
15559       ;;
15561     irix5* | irix6* | nonstopux*)
15562       if test "$GCC" = yes; then
15563         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'
15564       else
15565         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'
15566         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15567       fi
15568       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15569       hardcode_libdir_separator_F77=:
15570       link_all_deplibs_F77=yes
15571       ;;
15573     netbsd* | netbsdelf*-gnu)
15574       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15575         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15576       else
15577         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15578       fi
15579       hardcode_libdir_flag_spec_F77='-R$libdir'
15580       hardcode_direct_F77=yes
15581       hardcode_shlibpath_var_F77=no
15582       ;;
15584     newsos6)
15585       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15586       hardcode_direct_F77=yes
15587       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15588       hardcode_libdir_separator_F77=:
15589       hardcode_shlibpath_var_F77=no
15590       ;;
15592     openbsd*)
15593       if test -f /usr/libexec/ld.so; then
15594         hardcode_direct_F77=yes
15595         hardcode_shlibpath_var_F77=no
15596         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15597           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15598           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15599           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15600           export_dynamic_flag_spec_F77='${wl}-E'
15601         else
15602           case $host_os in
15603            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15604              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15605              hardcode_libdir_flag_spec_F77='-R$libdir'
15606              ;;
15607            *)
15608              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15609              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15610              ;;
15611           esac
15612         fi
15613       else
15614         ld_shlibs_F77=no
15615       fi
15616       ;;
15618     os2*)
15619       hardcode_libdir_flag_spec_F77='-L$libdir'
15620       hardcode_minus_L_F77=yes
15621       allow_undefined_flag_F77=unsupported
15622       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'
15623       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15624       ;;
15626     osf3*)
15627       if test "$GCC" = yes; then
15628         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15629         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'
15630       else
15631         allow_undefined_flag_F77=' -expect_unresolved \*'
15632         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'
15633       fi
15634       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15635       hardcode_libdir_separator_F77=:
15636       ;;
15638     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15639       if test "$GCC" = yes; then
15640         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15641         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'
15642         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15643       else
15644         allow_undefined_flag_F77=' -expect_unresolved \*'
15645         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'
15646         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~
15647         $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'
15649         # Both c and cxx compiler support -rpath directly
15650         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15651       fi
15652       hardcode_libdir_separator_F77=:
15653       ;;
15655     solaris*)
15656       no_undefined_flag_F77=' -z text'
15657       if test "$GCC" = yes; then
15658         wlarc='${wl}'
15659         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15660         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15661           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15662       else
15663         wlarc=''
15664         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15666         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15667       fi
15668       hardcode_libdir_flag_spec_F77='-R$libdir'
15669       hardcode_shlibpath_var_F77=no
15670       case $host_os in
15671       solaris2.[0-5] | solaris2.[0-5].*) ;;
15672       *)
15673         # The compiler driver will combine and reorder linker options,
15674         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15675         # but is careful enough not to reorder.
15676         # Supported since Solaris 2.6 (maybe 2.5.1?)
15677         if test "$GCC" = yes; then
15678           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15679         else
15680           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15681         fi
15682         ;;
15683       esac
15684       link_all_deplibs_F77=yes
15685       ;;
15687     sunos4*)
15688       if test "x$host_vendor" = xsequent; then
15689         # Use $CC to link under sequent, because it throws in some extra .o
15690         # files that make .init and .fini sections work.
15691         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15692       else
15693         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15694       fi
15695       hardcode_libdir_flag_spec_F77='-L$libdir'
15696       hardcode_direct_F77=yes
15697       hardcode_minus_L_F77=yes
15698       hardcode_shlibpath_var_F77=no
15699       ;;
15701     sysv4)
15702       case $host_vendor in
15703         sni)
15704           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705           hardcode_direct_F77=yes # is this really true???
15706         ;;
15707         siemens)
15708           ## LD is ld it makes a PLAMLIB
15709           ## CC just makes a GrossModule.
15710           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15711           reload_cmds_F77='$CC -r -o $output$reload_objs'
15712           hardcode_direct_F77=no
15713         ;;
15714         motorola)
15715           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15716           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15717         ;;
15718       esac
15719       runpath_var='LD_RUN_PATH'
15720       hardcode_shlibpath_var_F77=no
15721       ;;
15723     sysv4.3*)
15724       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15725       hardcode_shlibpath_var_F77=no
15726       export_dynamic_flag_spec_F77='-Bexport'
15727       ;;
15729     sysv4*MP*)
15730       if test -d /usr/nec; then
15731         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15732         hardcode_shlibpath_var_F77=no
15733         runpath_var=LD_RUN_PATH
15734         hardcode_runpath_var=yes
15735         ld_shlibs_F77=yes
15736       fi
15737       ;;
15739     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15740       no_undefined_flag_F77='${wl}-z,text'
15741       archive_cmds_need_lc_F77=no
15742       hardcode_shlibpath_var_F77=no
15743       runpath_var='LD_RUN_PATH'
15745       if test "$GCC" = yes; then
15746         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15748       else
15749         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15750         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15751       fi
15752       ;;
15754     sysv5* | sco3.2v5* | sco5v6*)
15755       # Note: We can NOT use -z defs as we might desire, because we do not
15756       # link with -lc, and that would cause any symbols used from libc to
15757       # always be unresolved, which means just about no library would
15758       # ever link correctly.  If we're not using GNU ld we use -z text
15759       # though, which does catch some bad symbols but isn't as heavy-handed
15760       # as -z defs.
15761       no_undefined_flag_F77='${wl}-z,text'
15762       allow_undefined_flag_F77='${wl}-z,nodefs'
15763       archive_cmds_need_lc_F77=no
15764       hardcode_shlibpath_var_F77=no
15765       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15766       hardcode_libdir_separator_F77=':'
15767       link_all_deplibs_F77=yes
15768       export_dynamic_flag_spec_F77='${wl}-Bexport'
15769       runpath_var='LD_RUN_PATH'
15771       if test "$GCC" = yes; then
15772         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15773         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15774       else
15775         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15776         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15777       fi
15778       ;;
15780     uts4*)
15781       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15782       hardcode_libdir_flag_spec_F77='-L$libdir'
15783       hardcode_shlibpath_var_F77=no
15784       ;;
15786     *)
15787       ld_shlibs_F77=no
15788       ;;
15789     esac
15790   fi
15792 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15793 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15794 test "$ld_shlibs_F77" = no && can_build_shared=no
15797 # Do we need to explicitly link libc?
15799 case "x$archive_cmds_need_lc_F77" in
15800 x|xyes)
15801   # Assume -lc should be added
15802   archive_cmds_need_lc_F77=yes
15804   if test "$enable_shared" = yes && test "$GCC" = yes; then
15805     case $archive_cmds_F77 in
15806     *'~'*)
15807       # FIXME: we may have to deal with multi-command sequences.
15808       ;;
15809     '$CC '*)
15810       # Test whether the compiler implicitly links with -lc since on some
15811       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15812       # to ld, don't add -lc before -lgcc.
15813       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15814 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15815       $rm conftest*
15816       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15818       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15819   (eval $ac_compile) 2>&5
15820   ac_status=$?
15821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822   (exit $ac_status); } 2>conftest.err; then
15823         soname=conftest
15824         lib=conftest
15825         libobjs=conftest.$ac_objext
15826         deplibs=
15827         wl=$lt_prog_compiler_wl_F77
15828         pic_flag=$lt_prog_compiler_pic_F77
15829         compiler_flags=-v
15830         linker_flags=-v
15831         verstring=
15832         output_objdir=.
15833         libname=conftest
15834         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15835         allow_undefined_flag_F77=
15836         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15837   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); }
15841         then
15842           archive_cmds_need_lc_F77=no
15843         else
15844           archive_cmds_need_lc_F77=yes
15845         fi
15846         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15847       else
15848         cat conftest.err 1>&5
15849       fi
15850       $rm conftest*
15851       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15852 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15853       ;;
15854     esac
15855   fi
15856   ;;
15857 esac
15859 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15861 library_names_spec=
15862 libname_spec='lib$name'
15863 soname_spec=
15864 shrext_cmds=".so"
15865 postinstall_cmds=
15866 postuninstall_cmds=
15867 finish_cmds=
15868 finish_eval=
15869 shlibpath_var=
15870 shlibpath_overrides_runpath=unknown
15871 version_type=none
15872 dynamic_linker="$host_os ld.so"
15873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15875 need_lib_prefix=unknown
15876 hardcode_into_libs=no
15878 # when you set need_version to no, make sure it does not cause -set_version
15879 # flags to be left without arguments
15880 need_version=unknown
15882 case $host_os in
15883 aix3*)
15884   version_type=linux
15885   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15886   shlibpath_var=LIBPATH
15888   # AIX 3 has no versioning support, so we append a major version to the name.
15889   soname_spec='${libname}${release}${shared_ext}$major'
15890   ;;
15892 aix[4-9]*)
15893   version_type=linux
15894   need_lib_prefix=no
15895   need_version=no
15896   hardcode_into_libs=yes
15897   if test "$host_cpu" = ia64; then
15898     # AIX 5 supports IA64
15899     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15900     shlibpath_var=LD_LIBRARY_PATH
15901   else
15902     # With GCC up to 2.95.x, collect2 would create an import file
15903     # for dependence libraries.  The import file would start with
15904     # the line `#! .'.  This would cause the generated library to
15905     # depend on `.', always an invalid library.  This was fixed in
15906     # development snapshots of GCC prior to 3.0.
15907     case $host_os in
15908       aix4 | aix4.[01] | aix4.[01].*)
15909       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15910            echo ' yes '
15911            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15912         :
15913       else
15914         can_build_shared=no
15915       fi
15916       ;;
15917     esac
15918     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15919     # soname into executable. Probably we can add versioning support to
15920     # collect2, so additional links can be useful in future.
15921     if test "$aix_use_runtimelinking" = yes; then
15922       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15923       # instead of lib<name>.a to let people know that these are not
15924       # typical AIX shared libraries.
15925       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15926     else
15927       # We preserve .a as extension for shared libraries through AIX4.2
15928       # and later when we are not doing run time linking.
15929       library_names_spec='${libname}${release}.a $libname.a'
15930       soname_spec='${libname}${release}${shared_ext}$major'
15931     fi
15932     shlibpath_var=LIBPATH
15933   fi
15934   ;;
15936 amigaos*)
15937   library_names_spec='$libname.ixlibrary $libname.a'
15938   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15939   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'
15940   ;;
15942 beos*)
15943   library_names_spec='${libname}${shared_ext}'
15944   dynamic_linker="$host_os ld.so"
15945   shlibpath_var=LIBRARY_PATH
15946   ;;
15948 bsdi[45]*)
15949   version_type=linux
15950   need_version=no
15951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952   soname_spec='${libname}${release}${shared_ext}$major'
15953   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15954   shlibpath_var=LD_LIBRARY_PATH
15955   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15956   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15957   # the default ld.so.conf also contains /usr/contrib/lib and
15958   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15959   # libtool to hard-code these into programs
15960   ;;
15962 cygwin* | mingw* | pw32*)
15963   version_type=windows
15964   shrext_cmds=".dll"
15965   need_version=no
15966   need_lib_prefix=no
15968   case $GCC,$host_os in
15969   yes,cygwin* | yes,mingw* | yes,pw32*)
15970     library_names_spec='$libname.dll.a'
15971     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15972     postinstall_cmds='base_file=`basename \${file}`~
15973       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15974       dldir=$destdir/`dirname \$dlpath`~
15975       test -d \$dldir || mkdir -p \$dldir~
15976       $install_prog $dir/$dlname \$dldir/$dlname~
15977       chmod a+x \$dldir/$dlname'
15978     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15979       dlpath=$dir/\$dldll~
15980        $rm \$dlpath'
15981     shlibpath_overrides_runpath=yes
15983     case $host_os in
15984     cygwin*)
15985       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15986       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15987       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15988       ;;
15989     mingw*)
15990       # MinGW DLLs use traditional 'lib' prefix
15991       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15992       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15993       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15994         # It is most probably a Windows format PATH printed by
15995         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15996         # path with ; separators, and with drive letters. We can handle the
15997         # drive letters (cygwin fileutils understands them), so leave them,
15998         # especially as we might pass files found there to a mingw objdump,
15999         # which wouldn't understand a cygwinified path. Ahh.
16000         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16001       else
16002         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16003       fi
16004       ;;
16005     pw32*)
16006       # pw32 DLLs use 'pw' prefix rather than 'lib'
16007       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16008       ;;
16009     esac
16010     ;;
16012   *)
16013     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16014     ;;
16015   esac
16016   dynamic_linker='Win32 ld.exe'
16017   # FIXME: first we should search . and the directory the executable is in
16018   shlibpath_var=PATH
16019   ;;
16021 darwin* | rhapsody*)
16022   dynamic_linker="$host_os dyld"
16023   version_type=darwin
16024   need_lib_prefix=no
16025   need_version=no
16026   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16027   soname_spec='${libname}${release}${major}$shared_ext'
16028   shlibpath_overrides_runpath=yes
16029   shlibpath_var=DYLD_LIBRARY_PATH
16030   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16032   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16033   ;;
16035 dgux*)
16036   version_type=linux
16037   need_lib_prefix=no
16038   need_version=no
16039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16040   soname_spec='${libname}${release}${shared_ext}$major'
16041   shlibpath_var=LD_LIBRARY_PATH
16042   ;;
16044 freebsd1*)
16045   dynamic_linker=no
16046   ;;
16048 freebsd* | dragonfly*)
16049   # DragonFly does not have aout.  When/if they implement a new
16050   # versioning mechanism, adjust this.
16051   if test -x /usr/bin/objformat; then
16052     objformat=`/usr/bin/objformat`
16053   else
16054     case $host_os in
16055     freebsd[123]*) objformat=aout ;;
16056     *) objformat=elf ;;
16057     esac
16058   fi
16059   version_type=freebsd-$objformat
16060   case $version_type in
16061     freebsd-elf*)
16062       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16063       need_version=no
16064       need_lib_prefix=no
16065       ;;
16066     freebsd-*)
16067       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16068       need_version=yes
16069       ;;
16070   esac
16071   shlibpath_var=LD_LIBRARY_PATH
16072   case $host_os in
16073   freebsd2*)
16074     shlibpath_overrides_runpath=yes
16075     ;;
16076   freebsd3.[01]* | freebsdelf3.[01]*)
16077     shlibpath_overrides_runpath=yes
16078     hardcode_into_libs=yes
16079     ;;
16080   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16081   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16082     shlibpath_overrides_runpath=no
16083     hardcode_into_libs=yes
16084     ;;
16085   *) # from 4.6 on, and DragonFly
16086     shlibpath_overrides_runpath=yes
16087     hardcode_into_libs=yes
16088     ;;
16089   esac
16090   ;;
16092 gnu*)
16093   version_type=linux
16094   need_lib_prefix=no
16095   need_version=no
16096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16097   soname_spec='${libname}${release}${shared_ext}$major'
16098   shlibpath_var=LD_LIBRARY_PATH
16099   hardcode_into_libs=yes
16100   ;;
16102 hpux9* | hpux10* | hpux11*)
16103   # Give a soname corresponding to the major version so that dld.sl refuses to
16104   # link against other versions.
16105   version_type=sunos
16106   need_lib_prefix=no
16107   need_version=no
16108   case $host_cpu in
16109   ia64*)
16110     shrext_cmds='.so'
16111     hardcode_into_libs=yes
16112     dynamic_linker="$host_os dld.so"
16113     shlibpath_var=LD_LIBRARY_PATH
16114     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116     soname_spec='${libname}${release}${shared_ext}$major'
16117     if test "X$HPUX_IA64_MODE" = X32; then
16118       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16119     else
16120       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16121     fi
16122     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16123     ;;
16124    hppa*64*)
16125      shrext_cmds='.sl'
16126      hardcode_into_libs=yes
16127      dynamic_linker="$host_os dld.sl"
16128      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16129      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16130      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131      soname_spec='${libname}${release}${shared_ext}$major'
16132      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16133      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16134      ;;
16135    *)
16136     shrext_cmds='.sl'
16137     dynamic_linker="$host_os dld.sl"
16138     shlibpath_var=SHLIB_PATH
16139     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141     soname_spec='${libname}${release}${shared_ext}$major'
16142     ;;
16143   esac
16144   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16145   postinstall_cmds='chmod 555 $lib'
16146   ;;
16148 interix[3-9]*)
16149   version_type=linux
16150   need_lib_prefix=no
16151   need_version=no
16152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16153   soname_spec='${libname}${release}${shared_ext}$major'
16154   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16155   shlibpath_var=LD_LIBRARY_PATH
16156   shlibpath_overrides_runpath=no
16157   hardcode_into_libs=yes
16158   ;;
16160 irix5* | irix6* | nonstopux*)
16161   case $host_os in
16162     nonstopux*) version_type=nonstopux ;;
16163     *)
16164         if test "$lt_cv_prog_gnu_ld" = yes; then
16165                 version_type=linux
16166         else
16167                 version_type=irix
16168         fi ;;
16169   esac
16170   need_lib_prefix=no
16171   need_version=no
16172   soname_spec='${libname}${release}${shared_ext}$major'
16173   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16174   case $host_os in
16175   irix5* | nonstopux*)
16176     libsuff= shlibsuff=
16177     ;;
16178   *)
16179     case $LD in # libtool.m4 will add one of these switches to LD
16180     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16181       libsuff= shlibsuff= libmagic=32-bit;;
16182     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16183       libsuff=32 shlibsuff=N32 libmagic=N32;;
16184     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16185       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16186     *) libsuff= shlibsuff= libmagic=never-match;;
16187     esac
16188     ;;
16189   esac
16190   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16191   shlibpath_overrides_runpath=no
16192   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16193   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16194   hardcode_into_libs=yes
16195   ;;
16197 # No shared lib support for Linux oldld, aout, or coff.
16198 linux*oldld* | linux*aout* | linux*coff*)
16199   dynamic_linker=no
16200   ;;
16202 # This must be Linux ELF.
16203 linux* | k*bsd*-gnu)
16204   version_type=linux
16205   need_lib_prefix=no
16206   need_version=no
16207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16208   soname_spec='${libname}${release}${shared_ext}$major'
16209   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16210   shlibpath_var=LD_LIBRARY_PATH
16211   shlibpath_overrides_runpath=no
16212   # This implies no fast_install, which is unacceptable.
16213   # Some rework will be needed to allow for fast_install
16214   # before this can be enabled.
16215   hardcode_into_libs=yes
16217   # Append ld.so.conf contents to the search path
16218   if test -f /etc/ld.so.conf; then
16219     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' ' '`
16220     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16221   fi
16223   # We used to test for /lib/ld.so.1 and disable shared libraries on
16224   # powerpc, because MkLinux only supported shared libraries with the
16225   # GNU dynamic linker.  Since this was broken with cross compilers,
16226   # most powerpc-linux boxes support dynamic linking these days and
16227   # people can always --disable-shared, the test was removed, and we
16228   # assume the GNU/Linux dynamic linker is in use.
16229   dynamic_linker='GNU/Linux ld.so'
16230   ;;
16232 netbsdelf*-gnu)
16233   version_type=linux
16234   need_lib_prefix=no
16235   need_version=no
16236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16237   soname_spec='${libname}${release}${shared_ext}$major'
16238   shlibpath_var=LD_LIBRARY_PATH
16239   shlibpath_overrides_runpath=no
16240   hardcode_into_libs=yes
16241   dynamic_linker='NetBSD ld.elf_so'
16242   ;;
16244 netbsd*)
16245   version_type=sunos
16246   need_lib_prefix=no
16247   need_version=no
16248   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16250     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16251     dynamic_linker='NetBSD (a.out) ld.so'
16252   else
16253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16254     soname_spec='${libname}${release}${shared_ext}$major'
16255     dynamic_linker='NetBSD ld.elf_so'
16256   fi
16257   shlibpath_var=LD_LIBRARY_PATH
16258   shlibpath_overrides_runpath=yes
16259   hardcode_into_libs=yes
16260   ;;
16262 newsos6)
16263   version_type=linux
16264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265   shlibpath_var=LD_LIBRARY_PATH
16266   shlibpath_overrides_runpath=yes
16267   ;;
16269 nto-qnx*)
16270   version_type=linux
16271   need_lib_prefix=no
16272   need_version=no
16273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274   soname_spec='${libname}${release}${shared_ext}$major'
16275   shlibpath_var=LD_LIBRARY_PATH
16276   shlibpath_overrides_runpath=yes
16277   ;;
16279 openbsd*)
16280   version_type=sunos
16281   sys_lib_dlsearch_path_spec="/usr/lib"
16282   need_lib_prefix=no
16283   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16284   case $host_os in
16285     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16286     *)                         need_version=no  ;;
16287   esac
16288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16290   shlibpath_var=LD_LIBRARY_PATH
16291   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16292     case $host_os in
16293       openbsd2.[89] | openbsd2.[89].*)
16294         shlibpath_overrides_runpath=no
16295         ;;
16296       *)
16297         shlibpath_overrides_runpath=yes
16298         ;;
16299       esac
16300   else
16301     shlibpath_overrides_runpath=yes
16302   fi
16303   ;;
16305 os2*)
16306   libname_spec='$name'
16307   shrext_cmds=".dll"
16308   need_lib_prefix=no
16309   library_names_spec='$libname${shared_ext} $libname.a'
16310   dynamic_linker='OS/2 ld.exe'
16311   shlibpath_var=LIBPATH
16312   ;;
16314 osf3* | osf4* | osf5*)
16315   version_type=osf
16316   need_lib_prefix=no
16317   need_version=no
16318   soname_spec='${libname}${release}${shared_ext}$major'
16319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16320   shlibpath_var=LD_LIBRARY_PATH
16321   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16322   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16323   ;;
16325 rdos*)
16326   dynamic_linker=no
16327   ;;
16329 solaris*)
16330   version_type=linux
16331   need_lib_prefix=no
16332   need_version=no
16333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16334   soname_spec='${libname}${release}${shared_ext}$major'
16335   shlibpath_var=LD_LIBRARY_PATH
16336   shlibpath_overrides_runpath=yes
16337   hardcode_into_libs=yes
16338   # ldd complains unless libraries are executable
16339   postinstall_cmds='chmod +x $lib'
16340   ;;
16342 sunos4*)
16343   version_type=sunos
16344   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16345   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16346   shlibpath_var=LD_LIBRARY_PATH
16347   shlibpath_overrides_runpath=yes
16348   if test "$with_gnu_ld" = yes; then
16349     need_lib_prefix=no
16350   fi
16351   need_version=yes
16352   ;;
16354 sysv4 | sysv4.3*)
16355   version_type=linux
16356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357   soname_spec='${libname}${release}${shared_ext}$major'
16358   shlibpath_var=LD_LIBRARY_PATH
16359   case $host_vendor in
16360     sni)
16361       shlibpath_overrides_runpath=no
16362       need_lib_prefix=no
16363       export_dynamic_flag_spec='${wl}-Blargedynsym'
16364       runpath_var=LD_RUN_PATH
16365       ;;
16366     siemens)
16367       need_lib_prefix=no
16368       ;;
16369     motorola)
16370       need_lib_prefix=no
16371       need_version=no
16372       shlibpath_overrides_runpath=no
16373       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16374       ;;
16375   esac
16376   ;;
16378 sysv4*MP*)
16379   if test -d /usr/nec ;then
16380     version_type=linux
16381     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16382     soname_spec='$libname${shared_ext}.$major'
16383     shlibpath_var=LD_LIBRARY_PATH
16384   fi
16385   ;;
16387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16388   version_type=freebsd-elf
16389   need_lib_prefix=no
16390   need_version=no
16391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16392   soname_spec='${libname}${release}${shared_ext}$major'
16393   shlibpath_var=LD_LIBRARY_PATH
16394   hardcode_into_libs=yes
16395   if test "$with_gnu_ld" = yes; then
16396     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16397     shlibpath_overrides_runpath=no
16398   else
16399     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16400     shlibpath_overrides_runpath=yes
16401     case $host_os in
16402       sco3.2v5*)
16403         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16404         ;;
16405     esac
16406   fi
16407   sys_lib_dlsearch_path_spec='/usr/lib'
16408   ;;
16410 uts4*)
16411   version_type=linux
16412   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16413   soname_spec='${libname}${release}${shared_ext}$major'
16414   shlibpath_var=LD_LIBRARY_PATH
16415   ;;
16418   dynamic_linker=no
16419   ;;
16420 esac
16421 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16422 echo "${ECHO_T}$dynamic_linker" >&6; }
16423 test "$dynamic_linker" = no && can_build_shared=no
16425 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16426   echo $ECHO_N "(cached) $ECHO_C" >&6
16427 else
16428   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16431 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16432 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16433   echo $ECHO_N "(cached) $ECHO_C" >&6
16434 else
16435   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16438 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16441 if test "$GCC" = yes; then
16442   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16445 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16446 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16447 hardcode_action_F77=
16448 if test -n "$hardcode_libdir_flag_spec_F77" || \
16449    test -n "$runpath_var_F77" || \
16450    test "X$hardcode_automatic_F77" = "Xyes" ; then
16452   # We can hardcode non-existant directories.
16453   if test "$hardcode_direct_F77" != no &&
16454      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16455      # have to relink, otherwise we might link with an installed library
16456      # when we should be linking with a yet-to-be-installed one
16457      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16458      test "$hardcode_minus_L_F77" != no; then
16459     # Linking always hardcodes the temporary library directory.
16460     hardcode_action_F77=relink
16461   else
16462     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16463     hardcode_action_F77=immediate
16464   fi
16465 else
16466   # We cannot hardcode anything, or else we can only hardcode existing
16467   # directories.
16468   hardcode_action_F77=unsupported
16470 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16471 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16473 if test "$hardcode_action_F77" = relink; then
16474   # Fast installation is not supported
16475   enable_fast_install=no
16476 elif test "$shlibpath_overrides_runpath" = yes ||
16477      test "$enable_shared" = no; then
16478   # Fast installation is not necessary
16479   enable_fast_install=needless
16483 # The else clause should only fire when bootstrapping the
16484 # libtool distribution, otherwise you forgot to ship ltmain.sh
16485 # with your package, and you will get complaints that there are
16486 # no rules to generate ltmain.sh.
16487 if test -f "$ltmain"; then
16488   # See if we are running on zsh, and set the options which allow our commands through
16489   # without removal of \ escapes.
16490   if test -n "${ZSH_VERSION+set}" ; then
16491     setopt NO_GLOB_SUBST
16492   fi
16493   # Now quote all the things that may contain metacharacters while being
16494   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16495   # variables and quote the copies for generation of the libtool script.
16496   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16497     SED SHELL STRIP \
16498     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16499     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16500     deplibs_check_method reload_flag reload_cmds need_locks \
16501     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16502     lt_cv_sys_global_symbol_to_c_name_address \
16503     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16504     old_postinstall_cmds old_postuninstall_cmds \
16505     compiler_F77 \
16506     CC_F77 \
16507     LD_F77 \
16508     lt_prog_compiler_wl_F77 \
16509     lt_prog_compiler_pic_F77 \
16510     lt_prog_compiler_static_F77 \
16511     lt_prog_compiler_no_builtin_flag_F77 \
16512     export_dynamic_flag_spec_F77 \
16513     thread_safe_flag_spec_F77 \
16514     whole_archive_flag_spec_F77 \
16515     enable_shared_with_static_runtimes_F77 \
16516     old_archive_cmds_F77 \
16517     old_archive_from_new_cmds_F77 \
16518     predep_objects_F77 \
16519     postdep_objects_F77 \
16520     predeps_F77 \
16521     postdeps_F77 \
16522     compiler_lib_search_path_F77 \
16523     compiler_lib_search_dirs_F77 \
16524     archive_cmds_F77 \
16525     archive_expsym_cmds_F77 \
16526     postinstall_cmds_F77 \
16527     postuninstall_cmds_F77 \
16528     old_archive_from_expsyms_cmds_F77 \
16529     allow_undefined_flag_F77 \
16530     no_undefined_flag_F77 \
16531     export_symbols_cmds_F77 \
16532     hardcode_libdir_flag_spec_F77 \
16533     hardcode_libdir_flag_spec_ld_F77 \
16534     hardcode_libdir_separator_F77 \
16535     hardcode_automatic_F77 \
16536     module_cmds_F77 \
16537     module_expsym_cmds_F77 \
16538     lt_cv_prog_compiler_c_o_F77 \
16539     fix_srcfile_path_F77 \
16540     exclude_expsyms_F77 \
16541     include_expsyms_F77; do
16543     case $var in
16544     old_archive_cmds_F77 | \
16545     old_archive_from_new_cmds_F77 | \
16546     archive_cmds_F77 | \
16547     archive_expsym_cmds_F77 | \
16548     module_cmds_F77 | \
16549     module_expsym_cmds_F77 | \
16550     old_archive_from_expsyms_cmds_F77 | \
16551     export_symbols_cmds_F77 | \
16552     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16553     postinstall_cmds | postuninstall_cmds | \
16554     old_postinstall_cmds | old_postuninstall_cmds | \
16555     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16556       # Double-quote double-evaled strings.
16557       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16558       ;;
16559     *)
16560       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16561       ;;
16562     esac
16563   done
16565   case $lt_echo in
16566   *'\$0 --fallback-echo"')
16567     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16568     ;;
16569   esac
16571 cfgfile="$ofile"
16573   cat <<__EOF__ >> "$cfgfile"
16574 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16576 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16578 # Shell to use when invoking shell scripts.
16579 SHELL=$lt_SHELL
16581 # Whether or not to build shared libraries.
16582 build_libtool_libs=$enable_shared
16584 # Whether or not to build static libraries.
16585 build_old_libs=$enable_static
16587 # Whether or not to add -lc for building shared libraries.
16588 build_libtool_need_lc=$archive_cmds_need_lc_F77
16590 # Whether or not to disallow shared libs when runtime libs are static
16591 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16593 # Whether or not to optimize for fast installation.
16594 fast_install=$enable_fast_install
16596 # The host system.
16597 host_alias=$host_alias
16598 host=$host
16599 host_os=$host_os
16601 # The build system.
16602 build_alias=$build_alias
16603 build=$build
16604 build_os=$build_os
16606 # An echo program that does not interpret backslashes.
16607 echo=$lt_echo
16609 # The archiver.
16610 AR=$lt_AR
16611 AR_FLAGS=$lt_AR_FLAGS
16613 # A C compiler.
16614 LTCC=$lt_LTCC
16616 # LTCC compiler flags.
16617 LTCFLAGS=$lt_LTCFLAGS
16619 # A language-specific compiler.
16620 CC=$lt_compiler_F77
16622 # Is the compiler the GNU C compiler?
16623 with_gcc=$GCC_F77
16625 # An ERE matcher.
16626 EGREP=$lt_EGREP
16628 # The linker used to build libraries.
16629 LD=$lt_LD_F77
16631 # Whether we need hard or soft links.
16632 LN_S=$lt_LN_S
16634 # A BSD-compatible nm program.
16635 NM=$lt_NM
16637 # A symbol stripping program
16638 STRIP=$lt_STRIP
16640 # Used to examine libraries when file_magic_cmd begins "file"
16641 MAGIC_CMD=$MAGIC_CMD
16643 # Used on cygwin: DLL creation program.
16644 DLLTOOL="$DLLTOOL"
16646 # Used on cygwin: object dumper.
16647 OBJDUMP="$OBJDUMP"
16649 # Used on cygwin: assembler.
16650 AS="$AS"
16652 # The name of the directory that contains temporary libtool files.
16653 objdir=$objdir
16655 # How to create reloadable object files.
16656 reload_flag=$lt_reload_flag
16657 reload_cmds=$lt_reload_cmds
16659 # How to pass a linker flag through the compiler.
16660 wl=$lt_lt_prog_compiler_wl_F77
16662 # Object file suffix (normally "o").
16663 objext="$ac_objext"
16665 # Old archive suffix (normally "a").
16666 libext="$libext"
16668 # Shared library suffix (normally ".so").
16669 shrext_cmds='$shrext_cmds'
16671 # Executable file suffix (normally "").
16672 exeext="$exeext"
16674 # Additional compiler flags for building library objects.
16675 pic_flag=$lt_lt_prog_compiler_pic_F77
16676 pic_mode=$pic_mode
16678 # What is the maximum length of a command?
16679 max_cmd_len=$lt_cv_sys_max_cmd_len
16681 # Does compiler simultaneously support -c and -o options?
16682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16684 # Must we lock files when doing compilation?
16685 need_locks=$lt_need_locks
16687 # Do we need the lib prefix for modules?
16688 need_lib_prefix=$need_lib_prefix
16690 # Do we need a version for libraries?
16691 need_version=$need_version
16693 # Whether dlopen is supported.
16694 dlopen_support=$enable_dlopen
16696 # Whether dlopen of programs is supported.
16697 dlopen_self=$enable_dlopen_self
16699 # Whether dlopen of statically linked programs is supported.
16700 dlopen_self_static=$enable_dlopen_self_static
16702 # Compiler flag to prevent dynamic linking.
16703 link_static_flag=$lt_lt_prog_compiler_static_F77
16705 # Compiler flag to turn off builtin functions.
16706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16708 # Compiler flag to allow reflexive dlopens.
16709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16711 # Compiler flag to generate shared objects directly from archives.
16712 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16714 # Compiler flag to generate thread-safe objects.
16715 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16717 # Library versioning type.
16718 version_type=$version_type
16720 # Format of library name prefix.
16721 libname_spec=$lt_libname_spec
16723 # List of archive names.  First name is the real one, the rest are links.
16724 # The last name is the one that the linker finds with -lNAME.
16725 library_names_spec=$lt_library_names_spec
16727 # The coded name of the library, if different from the real name.
16728 soname_spec=$lt_soname_spec
16730 # Commands used to build and install an old-style archive.
16731 RANLIB=$lt_RANLIB
16732 old_archive_cmds=$lt_old_archive_cmds_F77
16733 old_postinstall_cmds=$lt_old_postinstall_cmds
16734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16736 # Create an old-style archive from a shared archive.
16737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16739 # Create a temporary old-style archive to link instead of a shared archive.
16740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16742 # Commands used to build and install a shared archive.
16743 archive_cmds=$lt_archive_cmds_F77
16744 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16745 postinstall_cmds=$lt_postinstall_cmds
16746 postuninstall_cmds=$lt_postuninstall_cmds
16748 # Commands used to build a loadable module (assumed same as above if empty)
16749 module_cmds=$lt_module_cmds_F77
16750 module_expsym_cmds=$lt_module_expsym_cmds_F77
16752 # Commands to strip libraries.
16753 old_striplib=$lt_old_striplib
16754 striplib=$lt_striplib
16756 # Dependencies to place before the objects being linked to create a
16757 # shared library.
16758 predep_objects=$lt_predep_objects_F77
16760 # Dependencies to place after the objects being linked to create a
16761 # shared library.
16762 postdep_objects=$lt_postdep_objects_F77
16764 # Dependencies to place before the objects being linked to create a
16765 # shared library.
16766 predeps=$lt_predeps_F77
16768 # Dependencies to place after the objects being linked to create a
16769 # shared library.
16770 postdeps=$lt_postdeps_F77
16772 # The directories searched by this compiler when creating a shared
16773 # library
16774 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16776 # The library search path used internally by the compiler when linking
16777 # a shared library.
16778 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16780 # Method to check whether dependent libraries are shared objects.
16781 deplibs_check_method=$lt_deplibs_check_method
16783 # Command to use when deplibs_check_method == file_magic.
16784 file_magic_cmd=$lt_file_magic_cmd
16786 # Flag that allows shared libraries with undefined symbols to be built.
16787 allow_undefined_flag=$lt_allow_undefined_flag_F77
16789 # Flag that forces no undefined symbols.
16790 no_undefined_flag=$lt_no_undefined_flag_F77
16792 # Commands used to finish a libtool library installation in a directory.
16793 finish_cmds=$lt_finish_cmds
16795 # Same as above, but a single script fragment to be evaled but not shown.
16796 finish_eval=$lt_finish_eval
16798 # Take the output of nm and produce a listing of raw symbols and C names.
16799 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16801 # Transform the output of nm in a proper C declaration
16802 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16804 # Transform the output of nm in a C name address pair
16805 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16807 # This is the shared library runtime path variable.
16808 runpath_var=$runpath_var
16810 # This is the shared library path variable.
16811 shlibpath_var=$shlibpath_var
16813 # Is shlibpath searched before the hard-coded library search path?
16814 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16816 # How to hardcode a shared library path into an executable.
16817 hardcode_action=$hardcode_action_F77
16819 # Whether we should hardcode library paths into libraries.
16820 hardcode_into_libs=$hardcode_into_libs
16822 # Flag to hardcode \$libdir into a binary during linking.
16823 # This must work even if \$libdir does not exist.
16824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16826 # If ld is used when linking, flag to hardcode \$libdir into
16827 # a binary during linking. This must work even if \$libdir does
16828 # not exist.
16829 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16831 # Whether we need a single -rpath flag with a separated argument.
16832 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16834 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16835 # resulting binary.
16836 hardcode_direct=$hardcode_direct_F77
16838 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16839 # resulting binary.
16840 hardcode_minus_L=$hardcode_minus_L_F77
16842 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16843 # the resulting binary.
16844 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16846 # Set to yes if building a shared library automatically hardcodes DIR into the library
16847 # and all subsequent libraries and executables linked against it.
16848 hardcode_automatic=$hardcode_automatic_F77
16850 # Variables whose values should be saved in libtool wrapper scripts and
16851 # restored at relink time.
16852 variables_saved_for_relink="$variables_saved_for_relink"
16854 # Whether libtool must link a program against all its dependency libraries.
16855 link_all_deplibs=$link_all_deplibs_F77
16857 # Compile-time system search path for libraries
16858 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16860 # Run-time system search path for libraries
16861 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16863 # Fix the shell variable \$srcfile for the compiler.
16864 fix_srcfile_path=$lt_fix_srcfile_path
16866 # Set to yes if exported symbols are required.
16867 always_export_symbols=$always_export_symbols_F77
16869 # The commands to list exported symbols.
16870 export_symbols_cmds=$lt_export_symbols_cmds_F77
16872 # The commands to extract the exported symbol list from a shared archive.
16873 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16875 # Symbols that should not be listed in the preloaded symbols.
16876 exclude_expsyms=$lt_exclude_expsyms_F77
16878 # Symbols that must always be exported.
16879 include_expsyms=$lt_include_expsyms_F77
16881 # ### END LIBTOOL TAG CONFIG: $tagname
16883 __EOF__
16886 else
16887   # If there is no Makefile yet, we rely on a make rule to execute
16888   # `config.status --recheck' to rerun these tests and create the
16889   # libtool script then.
16890   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16891   if test -f "$ltmain_in"; then
16892     test -f Makefile && make "$ltmain"
16893   fi
16897 ac_ext=c
16898 ac_cpp='$CPP $CPPFLAGS'
16899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16903 CC="$lt_save_CC"
16905         else
16906           tagname=""
16907         fi
16908         ;;
16910       GCJ)
16911         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16914 # Source file extension for Java test sources.
16915 ac_ext=java
16917 # Object file extension for compiled Java test sources.
16918 objext=o
16919 objext_GCJ=$objext
16921 # Code to be used in simple compile tests
16922 lt_simple_compile_test_code="class foo {}"
16924 # Code to be used in simple link tests
16925 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16927 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16929 # If no C compiler was specified, use CC.
16930 LTCC=${LTCC-"$CC"}
16932 # If no C compiler flags were specified, use CFLAGS.
16933 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16935 # Allow CC to be a program name with arguments.
16936 compiler=$CC
16939 # save warnings/boilerplate of simple test code
16940 ac_outfile=conftest.$ac_objext
16941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16943 _lt_compiler_boilerplate=`cat conftest.err`
16944 $rm conftest*
16946 ac_outfile=conftest.$ac_objext
16947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16949 _lt_linker_boilerplate=`cat conftest.err`
16950 $rm -r conftest*
16953 # Allow CC to be a program name with arguments.
16954 lt_save_CC="$CC"
16955 CC=${GCJ-"gcj"}
16956 compiler=$CC
16957 compiler_GCJ=$CC
16958 for cc_temp in $compiler""; do
16959   case $cc_temp in
16960     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16961     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16962     \-*) ;;
16963     *) break;;
16964   esac
16965 done
16966 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16969 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16970 archive_cmds_need_lc_GCJ=no
16972 old_archive_cmds_GCJ=$old_archive_cmds
16975 lt_prog_compiler_no_builtin_flag_GCJ=
16977 if test "$GCC" = yes; then
16978   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16981 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16982 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16983 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986   lt_cv_prog_compiler_rtti_exceptions=no
16987   ac_outfile=conftest.$ac_objext
16988    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16989    lt_compiler_flag="-fno-rtti -fno-exceptions"
16990    # Insert the option either (1) after the last *FLAGS variable, or
16991    # (2) before a word containing "conftest.", or (3) at the end.
16992    # Note that $ac_compile itself does not contain backslashes and begins
16993    # with a dollar sign (not a hyphen), so the echo should work correctly.
16994    # The option is referenced via a variable to avoid confusing sed.
16995    lt_compile=`echo "$ac_compile" | $SED \
16996    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16997    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16998    -e 's:$: $lt_compiler_flag:'`
16999    (eval echo "\"\$as_me:16999: $lt_compile\"" >&5)
17000    (eval "$lt_compile" 2>conftest.err)
17001    ac_status=$?
17002    cat conftest.err >&5
17003    echo "$as_me:17003: \$? = $ac_status" >&5
17004    if (exit $ac_status) && test -s "$ac_outfile"; then
17005      # The compiler can only warn and ignore the option if not recognized
17006      # So say no if there are warnings other than the usual output.
17007      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17008      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17009      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17010        lt_cv_prog_compiler_rtti_exceptions=yes
17011      fi
17012    fi
17013    $rm conftest*
17016 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17017 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17019 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17020     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17021 else
17022     :
17027 lt_prog_compiler_wl_GCJ=
17028 lt_prog_compiler_pic_GCJ=
17029 lt_prog_compiler_static_GCJ=
17031 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17032 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17034   if test "$GCC" = yes; then
17035     lt_prog_compiler_wl_GCJ='-Wl,'
17036     lt_prog_compiler_static_GCJ='-static'
17038     case $host_os in
17039       aix*)
17040       # All AIX code is PIC.
17041       if test "$host_cpu" = ia64; then
17042         # AIX 5 now supports IA64 processor
17043         lt_prog_compiler_static_GCJ='-Bstatic'
17044       fi
17045       ;;
17047     amigaos*)
17048       # FIXME: we need at least 68020 code to build shared libraries, but
17049       # adding the `-m68020' flag to GCC prevents building anything better,
17050       # like `-m68040'.
17051       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17052       ;;
17054     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17055       # PIC is the default for these OSes.
17056       ;;
17058     mingw* | cygwin* | pw32* | os2*)
17059       # This hack is so that the source file can tell whether it is being
17060       # built for inclusion in a dll (and should export symbols for example).
17061       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17062       # (--disable-auto-import) libraries
17064       ;;
17066     darwin* | rhapsody*)
17067       # PIC is the default on this platform
17068       # Common symbols not allowed in MH_DYLIB files
17069       lt_prog_compiler_pic_GCJ='-fno-common'
17070       ;;
17072     interix[3-9]*)
17073       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17074       # Instead, we relocate shared libraries at runtime.
17075       ;;
17077     msdosdjgpp*)
17078       # Just because we use GCC doesn't mean we suddenly get shared libraries
17079       # on systems that don't support them.
17080       lt_prog_compiler_can_build_shared_GCJ=no
17081       enable_shared=no
17082       ;;
17084     sysv4*MP*)
17085       if test -d /usr/nec; then
17086         lt_prog_compiler_pic_GCJ=-Kconform_pic
17087       fi
17088       ;;
17090     hpux*)
17091       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17092       # not for PA HP-UX.
17093       case $host_cpu in
17094       hppa*64*|ia64*)
17095         # +Z the default
17096         ;;
17097       *)
17098         lt_prog_compiler_pic_GCJ='-fPIC'
17099         ;;
17100       esac
17101       ;;
17103     *)
17104       lt_prog_compiler_pic_GCJ='-fPIC'
17105       ;;
17106     esac
17107   else
17108     # PORTME Check for flag to pass linker flags through the system compiler.
17109     case $host_os in
17110     aix*)
17111       lt_prog_compiler_wl_GCJ='-Wl,'
17112       if test "$host_cpu" = ia64; then
17113         # AIX 5 now supports IA64 processor
17114         lt_prog_compiler_static_GCJ='-Bstatic'
17115       else
17116         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17117       fi
17118       ;;
17119       darwin*)
17120         # PIC is the default on this platform
17121         # Common symbols not allowed in MH_DYLIB files
17122        case $cc_basename in
17123          xlc*)
17124          lt_prog_compiler_pic_GCJ='-qnocommon'
17125          lt_prog_compiler_wl_GCJ='-Wl,'
17126          ;;
17127        esac
17128        ;;
17130     mingw* | cygwin* | pw32* | os2*)
17131       # This hack is so that the source file can tell whether it is being
17132       # built for inclusion in a dll (and should export symbols for example).
17134       ;;
17136     hpux9* | hpux10* | hpux11*)
17137       lt_prog_compiler_wl_GCJ='-Wl,'
17138       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17139       # not for PA HP-UX.
17140       case $host_cpu in
17141       hppa*64*|ia64*)
17142         # +Z the default
17143         ;;
17144       *)
17145         lt_prog_compiler_pic_GCJ='+Z'
17146         ;;
17147       esac
17148       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17149       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17150       ;;
17152     irix5* | irix6* | nonstopux*)
17153       lt_prog_compiler_wl_GCJ='-Wl,'
17154       # PIC (with -KPIC) is the default.
17155       lt_prog_compiler_static_GCJ='-non_shared'
17156       ;;
17158     newsos6)
17159       lt_prog_compiler_pic_GCJ='-KPIC'
17160       lt_prog_compiler_static_GCJ='-Bstatic'
17161       ;;
17163     linux* | k*bsd*-gnu)
17164       case $cc_basename in
17165       icc* | ecc*)
17166         lt_prog_compiler_wl_GCJ='-Wl,'
17167         lt_prog_compiler_pic_GCJ='-KPIC'
17168         lt_prog_compiler_static_GCJ='-static'
17169         ;;
17170       pgcc* | pgf77* | pgf90* | pgf95*)
17171         # Portland Group compilers (*not* the Pentium gcc compiler,
17172         # which looks to be a dead project)
17173         lt_prog_compiler_wl_GCJ='-Wl,'
17174         lt_prog_compiler_pic_GCJ='-fpic'
17175         lt_prog_compiler_static_GCJ='-Bstatic'
17176         ;;
17177       ccc*)
17178         lt_prog_compiler_wl_GCJ='-Wl,'
17179         # All Alpha code is PIC.
17180         lt_prog_compiler_static_GCJ='-non_shared'
17181         ;;
17182       *)
17183         case `$CC -V 2>&1 | sed 5q` in
17184         *Sun\ C*)
17185           # Sun C 5.9
17186           lt_prog_compiler_pic_GCJ='-KPIC'
17187           lt_prog_compiler_static_GCJ='-Bstatic'
17188           lt_prog_compiler_wl_GCJ='-Wl,'
17189           ;;
17190         *Sun\ F*)
17191           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17192           lt_prog_compiler_pic_GCJ='-KPIC'
17193           lt_prog_compiler_static_GCJ='-Bstatic'
17194           lt_prog_compiler_wl_GCJ=''
17195           ;;
17196         esac
17197         ;;
17198       esac
17199       ;;
17201     osf3* | osf4* | osf5*)
17202       lt_prog_compiler_wl_GCJ='-Wl,'
17203       # All OSF/1 code is PIC.
17204       lt_prog_compiler_static_GCJ='-non_shared'
17205       ;;
17207     rdos*)
17208       lt_prog_compiler_static_GCJ='-non_shared'
17209       ;;
17211     solaris*)
17212       lt_prog_compiler_pic_GCJ='-KPIC'
17213       lt_prog_compiler_static_GCJ='-Bstatic'
17214       case $cc_basename in
17215       f77* | f90* | f95*)
17216         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17217       *)
17218         lt_prog_compiler_wl_GCJ='-Wl,';;
17219       esac
17220       ;;
17222     sunos4*)
17223       lt_prog_compiler_wl_GCJ='-Qoption ld '
17224       lt_prog_compiler_pic_GCJ='-PIC'
17225       lt_prog_compiler_static_GCJ='-Bstatic'
17226       ;;
17228     sysv4 | sysv4.2uw2* | sysv4.3*)
17229       lt_prog_compiler_wl_GCJ='-Wl,'
17230       lt_prog_compiler_pic_GCJ='-KPIC'
17231       lt_prog_compiler_static_GCJ='-Bstatic'
17232       ;;
17234     sysv4*MP*)
17235       if test -d /usr/nec ;then
17236         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17237         lt_prog_compiler_static_GCJ='-Bstatic'
17238       fi
17239       ;;
17241     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17242       lt_prog_compiler_wl_GCJ='-Wl,'
17243       lt_prog_compiler_pic_GCJ='-KPIC'
17244       lt_prog_compiler_static_GCJ='-Bstatic'
17245       ;;
17247     unicos*)
17248       lt_prog_compiler_wl_GCJ='-Wl,'
17249       lt_prog_compiler_can_build_shared_GCJ=no
17250       ;;
17252     uts4*)
17253       lt_prog_compiler_pic_GCJ='-pic'
17254       lt_prog_compiler_static_GCJ='-Bstatic'
17255       ;;
17257     *)
17258       lt_prog_compiler_can_build_shared_GCJ=no
17259       ;;
17260     esac
17261   fi
17263 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17264 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17267 # Check to make sure the PIC flag actually works.
17269 if test -n "$lt_prog_compiler_pic_GCJ"; then
17271 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17272 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17273 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276   lt_cv_prog_compiler_pic_works_GCJ=no
17277   ac_outfile=conftest.$ac_objext
17278    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17279    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17280    # Insert the option either (1) after the last *FLAGS variable, or
17281    # (2) before a word containing "conftest.", or (3) at the end.
17282    # Note that $ac_compile itself does not contain backslashes and begins
17283    # with a dollar sign (not a hyphen), so the echo should work correctly.
17284    # The option is referenced via a variable to avoid confusing sed.
17285    lt_compile=`echo "$ac_compile" | $SED \
17286    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17287    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17288    -e 's:$: $lt_compiler_flag:'`
17289    (eval echo "\"\$as_me:17289: $lt_compile\"" >&5)
17290    (eval "$lt_compile" 2>conftest.err)
17291    ac_status=$?
17292    cat conftest.err >&5
17293    echo "$as_me:17293: \$? = $ac_status" >&5
17294    if (exit $ac_status) && test -s "$ac_outfile"; then
17295      # The compiler can only warn and ignore the option if not recognized
17296      # So say no if there are warnings other than the usual output.
17297      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17298      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17299      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17300        lt_cv_prog_compiler_pic_works_GCJ=yes
17301      fi
17302    fi
17303    $rm conftest*
17306 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17307 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17309 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17310     case $lt_prog_compiler_pic_GCJ in
17311      "" | " "*) ;;
17312      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17313      esac
17314 else
17315     lt_prog_compiler_pic_GCJ=
17316      lt_prog_compiler_can_build_shared_GCJ=no
17320 case $host_os in
17321   # For platforms which do not support PIC, -DPIC is meaningless:
17322   *djgpp*)
17323     lt_prog_compiler_pic_GCJ=
17324     ;;
17325   *)
17326     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17327     ;;
17328 esac
17331 # Check to make sure the static flag actually works.
17333 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17334 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17335 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17336 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   lt_cv_prog_compiler_static_works_GCJ=no
17340    save_LDFLAGS="$LDFLAGS"
17341    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17342    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17343    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17344      # The linker can only warn and ignore the option if not recognized
17345      # So say no if there are warnings
17346      if test -s conftest.err; then
17347        # Append any errors to the config.log.
17348        cat conftest.err 1>&5
17349        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17350        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17351        if diff conftest.exp conftest.er2 >/dev/null; then
17352          lt_cv_prog_compiler_static_works_GCJ=yes
17353        fi
17354      else
17355        lt_cv_prog_compiler_static_works_GCJ=yes
17356      fi
17357    fi
17358    $rm -r conftest*
17359    LDFLAGS="$save_LDFLAGS"
17362 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17363 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17365 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17366     :
17367 else
17368     lt_prog_compiler_static_GCJ=
17372 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17373 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17374 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17375   echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377   lt_cv_prog_compiler_c_o_GCJ=no
17378    $rm -r conftest 2>/dev/null
17379    mkdir conftest
17380    cd conftest
17381    mkdir out
17382    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17384    lt_compiler_flag="-o out/conftest2.$ac_objext"
17385    # Insert the option either (1) after the last *FLAGS variable, or
17386    # (2) before a word containing "conftest.", or (3) at the end.
17387    # Note that $ac_compile itself does not contain backslashes and begins
17388    # with a dollar sign (not a hyphen), so the echo should work correctly.
17389    lt_compile=`echo "$ac_compile" | $SED \
17390    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17391    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17392    -e 's:$: $lt_compiler_flag:'`
17393    (eval echo "\"\$as_me:17393: $lt_compile\"" >&5)
17394    (eval "$lt_compile" 2>out/conftest.err)
17395    ac_status=$?
17396    cat out/conftest.err >&5
17397    echo "$as_me:17397: \$? = $ac_status" >&5
17398    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17399    then
17400      # The compiler can only warn and ignore the option if not recognized
17401      # So say no if there are warnings
17402      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17403      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17404      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17405        lt_cv_prog_compiler_c_o_GCJ=yes
17406      fi
17407    fi
17408    chmod u+w . 2>&5
17409    $rm conftest*
17410    # SGI C++ compiler will create directory out/ii_files/ for
17411    # template instantiation
17412    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17413    $rm out/* && rmdir out
17414    cd ..
17415    rmdir conftest
17416    $rm conftest*
17419 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17420 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17423 hard_links="nottested"
17424 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17425   # do not overwrite the value of need_locks provided by the user
17426   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17427 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17428   hard_links=yes
17429   $rm conftest*
17430   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17431   touch conftest.a
17432   ln conftest.a conftest.b 2>&5 || hard_links=no
17433   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17434   { echo "$as_me:$LINENO: result: $hard_links" >&5
17435 echo "${ECHO_T}$hard_links" >&6; }
17436   if test "$hard_links" = no; then
17437     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17438 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17439     need_locks=warn
17440   fi
17441 else
17442   need_locks=no
17445 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17446 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17448   runpath_var=
17449   allow_undefined_flag_GCJ=
17450   enable_shared_with_static_runtimes_GCJ=no
17451   archive_cmds_GCJ=
17452   archive_expsym_cmds_GCJ=
17453   old_archive_From_new_cmds_GCJ=
17454   old_archive_from_expsyms_cmds_GCJ=
17455   export_dynamic_flag_spec_GCJ=
17456   whole_archive_flag_spec_GCJ=
17457   thread_safe_flag_spec_GCJ=
17458   hardcode_libdir_flag_spec_GCJ=
17459   hardcode_libdir_flag_spec_ld_GCJ=
17460   hardcode_libdir_separator_GCJ=
17461   hardcode_direct_GCJ=no
17462   hardcode_minus_L_GCJ=no
17463   hardcode_shlibpath_var_GCJ=unsupported
17464   link_all_deplibs_GCJ=unknown
17465   hardcode_automatic_GCJ=no
17466   module_cmds_GCJ=
17467   module_expsym_cmds_GCJ=
17468   always_export_symbols_GCJ=no
17469   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17470   # include_expsyms should be a list of space-separated symbols to be *always*
17471   # included in the symbol list
17472   include_expsyms_GCJ=
17473   # exclude_expsyms can be an extended regexp of symbols to exclude
17474   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17475   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17476   # as well as any symbol that contains `d'.
17477   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17478   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17479   # platforms (ab)use it in PIC code, but their linkers get confused if
17480   # the symbol is explicitly referenced.  Since portable code cannot
17481   # rely on this symbol name, it's probably fine to never include it in
17482   # preloaded symbol tables.
17483   # Exclude shared library initialization/finalization symbols.
17484   extract_expsyms_cmds=
17485   # Just being paranoid about ensuring that cc_basename is set.
17486   for cc_temp in $compiler""; do
17487   case $cc_temp in
17488     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17489     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17490     \-*) ;;
17491     *) break;;
17492   esac
17493 done
17494 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17496   case $host_os in
17497   cygwin* | mingw* | pw32*)
17498     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17499     # When not using gcc, we currently assume that we are using
17500     # Microsoft Visual C++.
17501     if test "$GCC" != yes; then
17502       with_gnu_ld=no
17503     fi
17504     ;;
17505   interix*)
17506     # we just hope/assume this is gcc and not c89 (= MSVC++)
17507     with_gnu_ld=yes
17508     ;;
17509   openbsd*)
17510     with_gnu_ld=no
17511     ;;
17512   esac
17514   ld_shlibs_GCJ=yes
17515   if test "$with_gnu_ld" = yes; then
17516     # If archive_cmds runs LD, not CC, wlarc should be empty
17517     wlarc='${wl}'
17519     # Set some defaults for GNU ld with shared library support. These
17520     # are reset later if shared libraries are not supported. Putting them
17521     # here allows them to be overridden if necessary.
17522     runpath_var=LD_RUN_PATH
17523     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17524     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17525     # ancient GNU ld didn't support --whole-archive et. al.
17526     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17527         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17528       else
17529         whole_archive_flag_spec_GCJ=
17530     fi
17531     supports_anon_versioning=no
17532     case `$LD -v 2>/dev/null` in
17533       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17534       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17535       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17536       *\ 2.11.*) ;; # other 2.11 versions
17537       *) supports_anon_versioning=yes ;;
17538     esac
17540     # See if GNU ld supports shared libraries.
17541     case $host_os in
17542     aix[3-9]*)
17543       # On AIX/PPC, the GNU linker is very broken
17544       if test "$host_cpu" != ia64; then
17545         ld_shlibs_GCJ=no
17546         cat <<EOF 1>&2
17548 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17549 *** to be unable to reliably create shared libraries on AIX.
17550 *** Therefore, libtool is disabling shared libraries support.  If you
17551 *** really care for shared libraries, you may want to modify your PATH
17552 *** so that a non-GNU linker is found, and then restart.
17554 EOF
17555       fi
17556       ;;
17558     amigaos*)
17559       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)'
17560       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17561       hardcode_minus_L_GCJ=yes
17563       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17564       # that the semantics of dynamic libraries on AmigaOS, at least up
17565       # to version 4, is to share data among multiple programs linked
17566       # with the same dynamic library.  Since this doesn't match the
17567       # behavior of shared libraries on other platforms, we can't use
17568       # them.
17569       ld_shlibs_GCJ=no
17570       ;;
17572     beos*)
17573       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17574         allow_undefined_flag_GCJ=unsupported
17575         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17576         # support --undefined.  This deserves some investigation.  FIXME
17577         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17578       else
17579         ld_shlibs_GCJ=no
17580       fi
17581       ;;
17583     cygwin* | mingw* | pw32*)
17584       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17585       # as there is no search path for DLLs.
17586       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17587       allow_undefined_flag_GCJ=unsupported
17588       always_export_symbols_GCJ=no
17589       enable_shared_with_static_runtimes_GCJ=yes
17590       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17592       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17593         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17594         # If the export-symbols file already is a .def file (1st line
17595         # is EXPORTS), use it as is; otherwise, prepend...
17596         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17597           cp $export_symbols $output_objdir/$soname.def;
17598         else
17599           echo EXPORTS > $output_objdir/$soname.def;
17600           cat $export_symbols >> $output_objdir/$soname.def;
17601         fi~
17602         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17603       else
17604         ld_shlibs_GCJ=no
17605       fi
17606       ;;
17608     interix[3-9]*)
17609       hardcode_direct_GCJ=no
17610       hardcode_shlibpath_var_GCJ=no
17611       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17612       export_dynamic_flag_spec_GCJ='${wl}-E'
17613       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17614       # Instead, shared libraries are loaded at an image base (0x10000000 by
17615       # default) and relocated if they conflict, which is a slow very memory
17616       # consuming and fragmenting process.  To avoid this, we pick a random,
17617       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17618       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17619       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'
17620       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'
17621       ;;
17623     gnu* | linux* | k*bsd*-gnu)
17624       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17625         tmp_addflag=
17626         case $cc_basename,$host_cpu in
17627         pgcc*)                          # Portland Group C compiler
17628           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'
17629           tmp_addflag=' $pic_flag'
17630           ;;
17631         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17632           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'
17633           tmp_addflag=' $pic_flag -Mnomain' ;;
17634         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17635           tmp_addflag=' -i_dynamic' ;;
17636         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17637           tmp_addflag=' -i_dynamic -nofor_main' ;;
17638         ifc* | ifort*)                  # Intel Fortran compiler
17639           tmp_addflag=' -nofor_main' ;;
17640         esac
17641         case `$CC -V 2>&1 | sed 5q` in
17642         *Sun\ C*)                       # Sun C 5.9
17643           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'
17644           tmp_sharedflag='-G' ;;
17645         *Sun\ F*)                       # Sun Fortran 8.3
17646           tmp_sharedflag='-G' ;;
17647         *)
17648           tmp_sharedflag='-shared' ;;
17649         esac
17650         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17652         if test $supports_anon_versioning = yes; then
17653           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17654   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17655   $echo "local: *; };" >> $output_objdir/$libname.ver~
17656           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17657         fi
17658         link_all_deplibs_GCJ=no
17659       else
17660         ld_shlibs_GCJ=no
17661       fi
17662       ;;
17664     netbsd* | netbsdelf*-gnu)
17665       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17666         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17667         wlarc=
17668       else
17669         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17670         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17671       fi
17672       ;;
17674     solaris*)
17675       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17676         ld_shlibs_GCJ=no
17677         cat <<EOF 1>&2
17679 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17680 *** create shared libraries on Solaris systems.  Therefore, libtool
17681 *** is disabling shared libraries support.  We urge you to upgrade GNU
17682 *** binutils to release 2.9.1 or newer.  Another option is to modify
17683 *** your PATH or compiler configuration so that the native linker is
17684 *** used, and then restart.
17686 EOF
17687       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17688         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17689         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17690       else
17691         ld_shlibs_GCJ=no
17692       fi
17693       ;;
17695     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17696       case `$LD -v 2>&1` in
17697         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17698         ld_shlibs_GCJ=no
17699         cat <<_LT_EOF 1>&2
17701 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17702 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17703 *** is disabling shared libraries support.  We urge you to upgrade GNU
17704 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17705 *** your PATH or compiler configuration so that the native linker is
17706 *** used, and then restart.
17708 _LT_EOF
17709         ;;
17710         *)
17711           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17712             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17713             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17714             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17715           else
17716             ld_shlibs_GCJ=no
17717           fi
17718         ;;
17719       esac
17720       ;;
17722     sunos4*)
17723       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17724       wlarc=
17725       hardcode_direct_GCJ=yes
17726       hardcode_shlibpath_var_GCJ=no
17727       ;;
17729     *)
17730       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17731         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17732         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17733       else
17734         ld_shlibs_GCJ=no
17735       fi
17736       ;;
17737     esac
17739     if test "$ld_shlibs_GCJ" = no; then
17740       runpath_var=
17741       hardcode_libdir_flag_spec_GCJ=
17742       export_dynamic_flag_spec_GCJ=
17743       whole_archive_flag_spec_GCJ=
17744     fi
17745   else
17746     # PORTME fill in a description of your system's linker (not GNU ld)
17747     case $host_os in
17748     aix3*)
17749       allow_undefined_flag_GCJ=unsupported
17750       always_export_symbols_GCJ=yes
17751       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'
17752       # Note: this linker hardcodes the directories in LIBPATH if there
17753       # are no directories specified by -L.
17754       hardcode_minus_L_GCJ=yes
17755       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17756         # Neither direct hardcoding nor static linking is supported with a
17757         # broken collect2.
17758         hardcode_direct_GCJ=unsupported
17759       fi
17760       ;;
17762     aix[4-9]*)
17763       if test "$host_cpu" = ia64; then
17764         # On IA64, the linker does run time linking by default, so we don't
17765         # have to do anything special.
17766         aix_use_runtimelinking=no
17767         exp_sym_flag='-Bexport'
17768         no_entry_flag=""
17769       else
17770         # If we're using GNU nm, then we don't want the "-C" option.
17771         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17772         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17773           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'
17774         else
17775           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'
17776         fi
17777         aix_use_runtimelinking=no
17779         # Test if we are trying to use run time linking or normal
17780         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17781         # need to do runtime linking.
17782         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17783           for ld_flag in $LDFLAGS; do
17784           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17785             aix_use_runtimelinking=yes
17786             break
17787           fi
17788           done
17789           ;;
17790         esac
17792         exp_sym_flag='-bexport'
17793         no_entry_flag='-bnoentry'
17794       fi
17796       # When large executables or shared objects are built, AIX ld can
17797       # have problems creating the table of contents.  If linking a library
17798       # or program results in "error TOC overflow" add -mminimal-toc to
17799       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17800       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17802       archive_cmds_GCJ=''
17803       hardcode_direct_GCJ=yes
17804       hardcode_libdir_separator_GCJ=':'
17805       link_all_deplibs_GCJ=yes
17807       if test "$GCC" = yes; then
17808         case $host_os in aix4.[012]|aix4.[012].*)
17809         # We only want to do this on AIX 4.2 and lower, the check
17810         # below for broken collect2 doesn't work under 4.3+
17811           collect2name=`${CC} -print-prog-name=collect2`
17812           if test -f "$collect2name" && \
17813            strings "$collect2name" | grep resolve_lib_name >/dev/null
17814           then
17815           # We have reworked collect2
17816           :
17817           else
17818           # We have old collect2
17819           hardcode_direct_GCJ=unsupported
17820           # It fails to find uninstalled libraries when the uninstalled
17821           # path is not listed in the libpath.  Setting hardcode_minus_L
17822           # to unsupported forces relinking
17823           hardcode_minus_L_GCJ=yes
17824           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17825           hardcode_libdir_separator_GCJ=
17826           fi
17827           ;;
17828         esac
17829         shared_flag='-shared'
17830         if test "$aix_use_runtimelinking" = yes; then
17831           shared_flag="$shared_flag "'${wl}-G'
17832         fi
17833       else
17834         # not using gcc
17835         if test "$host_cpu" = ia64; then
17836         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17837         # chokes on -Wl,-G. The following line is correct:
17838           shared_flag='-G'
17839         else
17840           if test "$aix_use_runtimelinking" = yes; then
17841             shared_flag='${wl}-G'
17842           else
17843             shared_flag='${wl}-bM:SRE'
17844           fi
17845         fi
17846       fi
17848       # It seems that -bexpall does not export symbols beginning with
17849       # underscore (_), so it is better to generate a list of symbols to export.
17850       always_export_symbols_GCJ=yes
17851       if test "$aix_use_runtimelinking" = yes; then
17852         # Warning - without using the other runtime loading flags (-brtl),
17853         # -berok will link without error, but may produce a broken library.
17854         allow_undefined_flag_GCJ='-berok'
17855        # Determine the default libpath from the value encoded in an empty executable.
17856        cat >conftest.$ac_ext <<_ACEOF
17857 /* confdefs.h.  */
17858 _ACEOF
17859 cat confdefs.h >>conftest.$ac_ext
17860 cat >>conftest.$ac_ext <<_ACEOF
17861 /* end confdefs.h.  */
17863 int
17864 main ()
17867   ;
17868   return 0;
17870 _ACEOF
17871 rm -f conftest.$ac_objext conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875   *) ac_try_echo=$ac_try;;
17876 esac
17877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17878   (eval "$ac_link") 2>conftest.er1
17879   ac_status=$?
17880   grep -v '^ *+' conftest.er1 >conftest.err
17881   rm -f conftest.er1
17882   cat conftest.err >&5
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); } && {
17885          test -z "$ac_c_werror_flag" ||
17886          test ! -s conftest.err
17887        } && test -s conftest$ac_exeext &&
17888        $as_test_x conftest$ac_exeext; then
17890 lt_aix_libpath_sed='
17891     /Import File Strings/,/^$/ {
17892         /^0/ {
17893             s/^0  *\(.*\)$/\1/
17894             p
17895         }
17896     }'
17897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17898 # Check for a 64-bit object if we didn't find anything.
17899 if test -z "$aix_libpath"; then
17900   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17910       conftest$ac_exeext conftest.$ac_ext
17911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17913        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17914         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"
17915        else
17916         if test "$host_cpu" = ia64; then
17917           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17918           allow_undefined_flag_GCJ="-z nodefs"
17919           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"
17920         else
17921          # Determine the default libpath from the value encoded in an empty executable.
17922          cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17929 int
17930 main ()
17933   ;
17934   return 0;
17936 _ACEOF
17937 rm -f conftest.$ac_objext conftest$ac_exeext
17938 if { (ac_try="$ac_link"
17939 case "(($ac_try" in
17940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941   *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944   (eval "$ac_link") 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } && {
17951          test -z "$ac_c_werror_flag" ||
17952          test ! -s conftest.err
17953        } && test -s conftest$ac_exeext &&
17954        $as_test_x conftest$ac_exeext; then
17956 lt_aix_libpath_sed='
17957     /Import File Strings/,/^$/ {
17958         /^0/ {
17959             s/^0  *\(.*\)$/\1/
17960             p
17961         }
17962     }'
17963 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17964 # Check for a 64-bit object if we didn't find anything.
17965 if test -z "$aix_libpath"; then
17966   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17968 else
17969   echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17976       conftest$ac_exeext conftest.$ac_ext
17977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17979          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17980           # Warning - without using the other run time loading flags,
17981           # -berok will link without error, but may produce a broken library.
17982           no_undefined_flag_GCJ=' ${wl}-bernotok'
17983           allow_undefined_flag_GCJ=' ${wl}-berok'
17984           # Exported symbols can be pulled into shared objects from archives
17985           whole_archive_flag_spec_GCJ='$convenience'
17986           archive_cmds_need_lc_GCJ=yes
17987           # This is similar to how AIX traditionally builds its shared libraries.
17988           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'
17989         fi
17990       fi
17991       ;;
17993     amigaos*)
17994       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)'
17995       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17996       hardcode_minus_L_GCJ=yes
17997       # see comment about different semantics on the GNU ld section
17998       ld_shlibs_GCJ=no
17999       ;;
18001     bsdi[45]*)
18002       export_dynamic_flag_spec_GCJ=-rdynamic
18003       ;;
18005     cygwin* | mingw* | pw32*)
18006       # When not using gcc, we currently assume that we are using
18007       # Microsoft Visual C++.
18008       # hardcode_libdir_flag_spec is actually meaningless, as there is
18009       # no search path for DLLs.
18010       hardcode_libdir_flag_spec_GCJ=' '
18011       allow_undefined_flag_GCJ=unsupported
18012       # Tell ltmain to make .lib files, not .a files.
18013       libext=lib
18014       # Tell ltmain to make .dll files, not .so files.
18015       shrext_cmds=".dll"
18016       # FIXME: Setting linknames here is a bad hack.
18017       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18018       # The linker will automatically build a .lib file if we build a DLL.
18019       old_archive_From_new_cmds_GCJ='true'
18020       # FIXME: Should let the user specify the lib program.
18021       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18022       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18023       enable_shared_with_static_runtimes_GCJ=yes
18024       ;;
18026     darwin* | rhapsody*)
18027       case $host_os in
18028         rhapsody* | darwin1.[012])
18029          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18030          ;;
18031        *) # Darwin 1.3 on
18032          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18033            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18034          else
18035            case ${MACOSX_DEPLOYMENT_TARGET} in
18036              10.[012])
18037                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18038                ;;
18039              10.*)
18040                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18041                ;;
18042            esac
18043          fi
18044          ;;
18045       esac
18046       archive_cmds_need_lc_GCJ=no
18047       hardcode_direct_GCJ=no
18048       hardcode_automatic_GCJ=yes
18049       hardcode_shlibpath_var_GCJ=unsupported
18050       whole_archive_flag_spec_GCJ=''
18051       link_all_deplibs_GCJ=yes
18052     if test "$GCC" = yes ; then
18053         output_verbose_link_cmd='echo'
18054         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}"
18055         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18056         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}"
18057         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}"
18058     else
18059       case $cc_basename in
18060         xlc*)
18061          output_verbose_link_cmd='echo'
18062          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18063          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18064           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18065          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}'
18066           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}'
18067           ;;
18068        *)
18069          ld_shlibs_GCJ=no
18070           ;;
18071       esac
18072     fi
18073       ;;
18075     dgux*)
18076       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18077       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18078       hardcode_shlibpath_var_GCJ=no
18079       ;;
18081     freebsd1*)
18082       ld_shlibs_GCJ=no
18083       ;;
18085     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18086     # support.  Future versions do this automatically, but an explicit c++rt0.o
18087     # does not break anything, and helps significantly (at the cost of a little
18088     # extra space).
18089     freebsd2.2*)
18090       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18091       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18092       hardcode_direct_GCJ=yes
18093       hardcode_shlibpath_var_GCJ=no
18094       ;;
18096     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18097     freebsd2*)
18098       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18099       hardcode_direct_GCJ=yes
18100       hardcode_minus_L_GCJ=yes
18101       hardcode_shlibpath_var_GCJ=no
18102       ;;
18104     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18105     freebsd* | dragonfly*)
18106       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18107       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18108       hardcode_direct_GCJ=yes
18109       hardcode_shlibpath_var_GCJ=no
18110       ;;
18112     hpux9*)
18113       if test "$GCC" = yes; then
18114         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'
18115       else
18116         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'
18117       fi
18118       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18119       hardcode_libdir_separator_GCJ=:
18120       hardcode_direct_GCJ=yes
18122       # hardcode_minus_L: Not really in the search PATH,
18123       # but as the default location of the library.
18124       hardcode_minus_L_GCJ=yes
18125       export_dynamic_flag_spec_GCJ='${wl}-E'
18126       ;;
18128     hpux10*)
18129       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18130         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18131       else
18132         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18133       fi
18134       if test "$with_gnu_ld" = no; then
18135         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18136         hardcode_libdir_separator_GCJ=:
18138         hardcode_direct_GCJ=yes
18139         export_dynamic_flag_spec_GCJ='${wl}-E'
18141         # hardcode_minus_L: Not really in the search PATH,
18142         # but as the default location of the library.
18143         hardcode_minus_L_GCJ=yes
18144       fi
18145       ;;
18147     hpux11*)
18148       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18149         case $host_cpu in
18150         hppa*64*)
18151           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18152           ;;
18153         ia64*)
18154           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18155           ;;
18156         *)
18157           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18158           ;;
18159         esac
18160       else
18161         case $host_cpu in
18162         hppa*64*)
18163           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18164           ;;
18165         ia64*)
18166           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18167           ;;
18168         *)
18169           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18170           ;;
18171         esac
18172       fi
18173       if test "$with_gnu_ld" = no; then
18174         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18175         hardcode_libdir_separator_GCJ=:
18177         case $host_cpu in
18178         hppa*64*|ia64*)
18179           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18180           hardcode_direct_GCJ=no
18181           hardcode_shlibpath_var_GCJ=no
18182           ;;
18183         *)
18184           hardcode_direct_GCJ=yes
18185           export_dynamic_flag_spec_GCJ='${wl}-E'
18187           # hardcode_minus_L: Not really in the search PATH,
18188           # but as the default location of the library.
18189           hardcode_minus_L_GCJ=yes
18190           ;;
18191         esac
18192       fi
18193       ;;
18195     irix5* | irix6* | nonstopux*)
18196       if test "$GCC" = yes; then
18197         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'
18198       else
18199         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'
18200         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18201       fi
18202       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18203       hardcode_libdir_separator_GCJ=:
18204       link_all_deplibs_GCJ=yes
18205       ;;
18207     netbsd* | netbsdelf*-gnu)
18208       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18209         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18210       else
18211         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18212       fi
18213       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18214       hardcode_direct_GCJ=yes
18215       hardcode_shlibpath_var_GCJ=no
18216       ;;
18218     newsos6)
18219       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220       hardcode_direct_GCJ=yes
18221       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18222       hardcode_libdir_separator_GCJ=:
18223       hardcode_shlibpath_var_GCJ=no
18224       ;;
18226     openbsd*)
18227       if test -f /usr/libexec/ld.so; then
18228         hardcode_direct_GCJ=yes
18229         hardcode_shlibpath_var_GCJ=no
18230         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18231           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18232           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18233           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18234           export_dynamic_flag_spec_GCJ='${wl}-E'
18235         else
18236           case $host_os in
18237            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18238              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18239              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18240              ;;
18241            *)
18242              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18243              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18244              ;;
18245           esac
18246         fi
18247       else
18248         ld_shlibs_GCJ=no
18249       fi
18250       ;;
18252     os2*)
18253       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18254       hardcode_minus_L_GCJ=yes
18255       allow_undefined_flag_GCJ=unsupported
18256       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'
18257       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18258       ;;
18260     osf3*)
18261       if test "$GCC" = yes; then
18262         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18263         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'
18264       else
18265         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18266         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'
18267       fi
18268       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18269       hardcode_libdir_separator_GCJ=:
18270       ;;
18272     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18273       if test "$GCC" = yes; then
18274         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18275         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'
18276         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18277       else
18278         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18279         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'
18280         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~
18281         $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'
18283         # Both c and cxx compiler support -rpath directly
18284         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18285       fi
18286       hardcode_libdir_separator_GCJ=:
18287       ;;
18289     solaris*)
18290       no_undefined_flag_GCJ=' -z text'
18291       if test "$GCC" = yes; then
18292         wlarc='${wl}'
18293         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18294         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18295           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18296       else
18297         wlarc=''
18298         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18299         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18300         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18301       fi
18302       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18303       hardcode_shlibpath_var_GCJ=no
18304       case $host_os in
18305       solaris2.[0-5] | solaris2.[0-5].*) ;;
18306       *)
18307         # The compiler driver will combine and reorder linker options,
18308         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18309         # but is careful enough not to reorder.
18310         # Supported since Solaris 2.6 (maybe 2.5.1?)
18311         if test "$GCC" = yes; then
18312           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18313         else
18314           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18315         fi
18316         ;;
18317       esac
18318       link_all_deplibs_GCJ=yes
18319       ;;
18321     sunos4*)
18322       if test "x$host_vendor" = xsequent; then
18323         # Use $CC to link under sequent, because it throws in some extra .o
18324         # files that make .init and .fini sections work.
18325         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18326       else
18327         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18328       fi
18329       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18330       hardcode_direct_GCJ=yes
18331       hardcode_minus_L_GCJ=yes
18332       hardcode_shlibpath_var_GCJ=no
18333       ;;
18335     sysv4)
18336       case $host_vendor in
18337         sni)
18338           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18339           hardcode_direct_GCJ=yes # is this really true???
18340         ;;
18341         siemens)
18342           ## LD is ld it makes a PLAMLIB
18343           ## CC just makes a GrossModule.
18344           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18345           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18346           hardcode_direct_GCJ=no
18347         ;;
18348         motorola)
18349           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18350           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18351         ;;
18352       esac
18353       runpath_var='LD_RUN_PATH'
18354       hardcode_shlibpath_var_GCJ=no
18355       ;;
18357     sysv4.3*)
18358       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18359       hardcode_shlibpath_var_GCJ=no
18360       export_dynamic_flag_spec_GCJ='-Bexport'
18361       ;;
18363     sysv4*MP*)
18364       if test -d /usr/nec; then
18365         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18366         hardcode_shlibpath_var_GCJ=no
18367         runpath_var=LD_RUN_PATH
18368         hardcode_runpath_var=yes
18369         ld_shlibs_GCJ=yes
18370       fi
18371       ;;
18373     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18374       no_undefined_flag_GCJ='${wl}-z,text'
18375       archive_cmds_need_lc_GCJ=no
18376       hardcode_shlibpath_var_GCJ=no
18377       runpath_var='LD_RUN_PATH'
18379       if test "$GCC" = yes; then
18380         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18381         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18382       else
18383         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18384         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18385       fi
18386       ;;
18388     sysv5* | sco3.2v5* | sco5v6*)
18389       # Note: We can NOT use -z defs as we might desire, because we do not
18390       # link with -lc, and that would cause any symbols used from libc to
18391       # always be unresolved, which means just about no library would
18392       # ever link correctly.  If we're not using GNU ld we use -z text
18393       # though, which does catch some bad symbols but isn't as heavy-handed
18394       # as -z defs.
18395       no_undefined_flag_GCJ='${wl}-z,text'
18396       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18397       archive_cmds_need_lc_GCJ=no
18398       hardcode_shlibpath_var_GCJ=no
18399       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18400       hardcode_libdir_separator_GCJ=':'
18401       link_all_deplibs_GCJ=yes
18402       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18403       runpath_var='LD_RUN_PATH'
18405       if test "$GCC" = yes; then
18406         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18407         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18408       else
18409         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18410         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18411       fi
18412       ;;
18414     uts4*)
18415       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18416       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18417       hardcode_shlibpath_var_GCJ=no
18418       ;;
18420     *)
18421       ld_shlibs_GCJ=no
18422       ;;
18423     esac
18424   fi
18426 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18427 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18428 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18431 # Do we need to explicitly link libc?
18433 case "x$archive_cmds_need_lc_GCJ" in
18434 x|xyes)
18435   # Assume -lc should be added
18436   archive_cmds_need_lc_GCJ=yes
18438   if test "$enable_shared" = yes && test "$GCC" = yes; then
18439     case $archive_cmds_GCJ in
18440     *'~'*)
18441       # FIXME: we may have to deal with multi-command sequences.
18442       ;;
18443     '$CC '*)
18444       # Test whether the compiler implicitly links with -lc since on some
18445       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18446       # to ld, don't add -lc before -lgcc.
18447       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18448 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18449       $rm conftest*
18450       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18452       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18453   (eval $ac_compile) 2>&5
18454   ac_status=$?
18455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18456   (exit $ac_status); } 2>conftest.err; then
18457         soname=conftest
18458         lib=conftest
18459         libobjs=conftest.$ac_objext
18460         deplibs=
18461         wl=$lt_prog_compiler_wl_GCJ
18462         pic_flag=$lt_prog_compiler_pic_GCJ
18463         compiler_flags=-v
18464         linker_flags=-v
18465         verstring=
18466         output_objdir=.
18467         libname=conftest
18468         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18469         allow_undefined_flag_GCJ=
18470         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18471   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18472   ac_status=$?
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); }
18475         then
18476           archive_cmds_need_lc_GCJ=no
18477         else
18478           archive_cmds_need_lc_GCJ=yes
18479         fi
18480         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18481       else
18482         cat conftest.err 1>&5
18483       fi
18484       $rm conftest*
18485       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18486 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18487       ;;
18488     esac
18489   fi
18490   ;;
18491 esac
18493 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18494 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18495 library_names_spec=
18496 libname_spec='lib$name'
18497 soname_spec=
18498 shrext_cmds=".so"
18499 postinstall_cmds=
18500 postuninstall_cmds=
18501 finish_cmds=
18502 finish_eval=
18503 shlibpath_var=
18504 shlibpath_overrides_runpath=unknown
18505 version_type=none
18506 dynamic_linker="$host_os ld.so"
18507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18509 need_lib_prefix=unknown
18510 hardcode_into_libs=no
18512 # when you set need_version to no, make sure it does not cause -set_version
18513 # flags to be left without arguments
18514 need_version=unknown
18516 case $host_os in
18517 aix3*)
18518   version_type=linux
18519   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18520   shlibpath_var=LIBPATH
18522   # AIX 3 has no versioning support, so we append a major version to the name.
18523   soname_spec='${libname}${release}${shared_ext}$major'
18524   ;;
18526 aix[4-9]*)
18527   version_type=linux
18528   need_lib_prefix=no
18529   need_version=no
18530   hardcode_into_libs=yes
18531   if test "$host_cpu" = ia64; then
18532     # AIX 5 supports IA64
18533     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18534     shlibpath_var=LD_LIBRARY_PATH
18535   else
18536     # With GCC up to 2.95.x, collect2 would create an import file
18537     # for dependence libraries.  The import file would start with
18538     # the line `#! .'.  This would cause the generated library to
18539     # depend on `.', always an invalid library.  This was fixed in
18540     # development snapshots of GCC prior to 3.0.
18541     case $host_os in
18542       aix4 | aix4.[01] | aix4.[01].*)
18543       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18544            echo ' yes '
18545            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18546         :
18547       else
18548         can_build_shared=no
18549       fi
18550       ;;
18551     esac
18552     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18553     # soname into executable. Probably we can add versioning support to
18554     # collect2, so additional links can be useful in future.
18555     if test "$aix_use_runtimelinking" = yes; then
18556       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18557       # instead of lib<name>.a to let people know that these are not
18558       # typical AIX shared libraries.
18559       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18560     else
18561       # We preserve .a as extension for shared libraries through AIX4.2
18562       # and later when we are not doing run time linking.
18563       library_names_spec='${libname}${release}.a $libname.a'
18564       soname_spec='${libname}${release}${shared_ext}$major'
18565     fi
18566     shlibpath_var=LIBPATH
18567   fi
18568   ;;
18570 amigaos*)
18571   library_names_spec='$libname.ixlibrary $libname.a'
18572   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18573   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'
18574   ;;
18576 beos*)
18577   library_names_spec='${libname}${shared_ext}'
18578   dynamic_linker="$host_os ld.so"
18579   shlibpath_var=LIBRARY_PATH
18580   ;;
18582 bsdi[45]*)
18583   version_type=linux
18584   need_version=no
18585   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586   soname_spec='${libname}${release}${shared_ext}$major'
18587   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18588   shlibpath_var=LD_LIBRARY_PATH
18589   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18590   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18591   # the default ld.so.conf also contains /usr/contrib/lib and
18592   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18593   # libtool to hard-code these into programs
18594   ;;
18596 cygwin* | mingw* | pw32*)
18597   version_type=windows
18598   shrext_cmds=".dll"
18599   need_version=no
18600   need_lib_prefix=no
18602   case $GCC,$host_os in
18603   yes,cygwin* | yes,mingw* | yes,pw32*)
18604     library_names_spec='$libname.dll.a'
18605     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18606     postinstall_cmds='base_file=`basename \${file}`~
18607       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18608       dldir=$destdir/`dirname \$dlpath`~
18609       test -d \$dldir || mkdir -p \$dldir~
18610       $install_prog $dir/$dlname \$dldir/$dlname~
18611       chmod a+x \$dldir/$dlname'
18612     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18613       dlpath=$dir/\$dldll~
18614        $rm \$dlpath'
18615     shlibpath_overrides_runpath=yes
18617     case $host_os in
18618     cygwin*)
18619       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18620       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18621       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18622       ;;
18623     mingw*)
18624       # MinGW DLLs use traditional 'lib' prefix
18625       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18626       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18627       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18628         # It is most probably a Windows format PATH printed by
18629         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18630         # path with ; separators, and with drive letters. We can handle the
18631         # drive letters (cygwin fileutils understands them), so leave them,
18632         # especially as we might pass files found there to a mingw objdump,
18633         # which wouldn't understand a cygwinified path. Ahh.
18634         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18635       else
18636         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18637       fi
18638       ;;
18639     pw32*)
18640       # pw32 DLLs use 'pw' prefix rather than 'lib'
18641       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18642       ;;
18643     esac
18644     ;;
18646   *)
18647     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18648     ;;
18649   esac
18650   dynamic_linker='Win32 ld.exe'
18651   # FIXME: first we should search . and the directory the executable is in
18652   shlibpath_var=PATH
18653   ;;
18655 darwin* | rhapsody*)
18656   dynamic_linker="$host_os dyld"
18657   version_type=darwin
18658   need_lib_prefix=no
18659   need_version=no
18660   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18661   soname_spec='${libname}${release}${major}$shared_ext'
18662   shlibpath_overrides_runpath=yes
18663   shlibpath_var=DYLD_LIBRARY_PATH
18664   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18666   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18667   ;;
18669 dgux*)
18670   version_type=linux
18671   need_lib_prefix=no
18672   need_version=no
18673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18674   soname_spec='${libname}${release}${shared_ext}$major'
18675   shlibpath_var=LD_LIBRARY_PATH
18676   ;;
18678 freebsd1*)
18679   dynamic_linker=no
18680   ;;
18682 freebsd* | dragonfly*)
18683   # DragonFly does not have aout.  When/if they implement a new
18684   # versioning mechanism, adjust this.
18685   if test -x /usr/bin/objformat; then
18686     objformat=`/usr/bin/objformat`
18687   else
18688     case $host_os in
18689     freebsd[123]*) objformat=aout ;;
18690     *) objformat=elf ;;
18691     esac
18692   fi
18693   version_type=freebsd-$objformat
18694   case $version_type in
18695     freebsd-elf*)
18696       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18697       need_version=no
18698       need_lib_prefix=no
18699       ;;
18700     freebsd-*)
18701       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18702       need_version=yes
18703       ;;
18704   esac
18705   shlibpath_var=LD_LIBRARY_PATH
18706   case $host_os in
18707   freebsd2*)
18708     shlibpath_overrides_runpath=yes
18709     ;;
18710   freebsd3.[01]* | freebsdelf3.[01]*)
18711     shlibpath_overrides_runpath=yes
18712     hardcode_into_libs=yes
18713     ;;
18714   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18715   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18716     shlibpath_overrides_runpath=no
18717     hardcode_into_libs=yes
18718     ;;
18719   *) # from 4.6 on, and DragonFly
18720     shlibpath_overrides_runpath=yes
18721     hardcode_into_libs=yes
18722     ;;
18723   esac
18724   ;;
18726 gnu*)
18727   version_type=linux
18728   need_lib_prefix=no
18729   need_version=no
18730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18731   soname_spec='${libname}${release}${shared_ext}$major'
18732   shlibpath_var=LD_LIBRARY_PATH
18733   hardcode_into_libs=yes
18734   ;;
18736 hpux9* | hpux10* | hpux11*)
18737   # Give a soname corresponding to the major version so that dld.sl refuses to
18738   # link against other versions.
18739   version_type=sunos
18740   need_lib_prefix=no
18741   need_version=no
18742   case $host_cpu in
18743   ia64*)
18744     shrext_cmds='.so'
18745     hardcode_into_libs=yes
18746     dynamic_linker="$host_os dld.so"
18747     shlibpath_var=LD_LIBRARY_PATH
18748     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18750     soname_spec='${libname}${release}${shared_ext}$major'
18751     if test "X$HPUX_IA64_MODE" = X32; then
18752       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18753     else
18754       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18755     fi
18756     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18757     ;;
18758    hppa*64*)
18759      shrext_cmds='.sl'
18760      hardcode_into_libs=yes
18761      dynamic_linker="$host_os dld.sl"
18762      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18763      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18764      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18765      soname_spec='${libname}${release}${shared_ext}$major'
18766      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18767      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18768      ;;
18769    *)
18770     shrext_cmds='.sl'
18771     dynamic_linker="$host_os dld.sl"
18772     shlibpath_var=SHLIB_PATH
18773     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18774     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18775     soname_spec='${libname}${release}${shared_ext}$major'
18776     ;;
18777   esac
18778   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18779   postinstall_cmds='chmod 555 $lib'
18780   ;;
18782 interix[3-9]*)
18783   version_type=linux
18784   need_lib_prefix=no
18785   need_version=no
18786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18787   soname_spec='${libname}${release}${shared_ext}$major'
18788   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18789   shlibpath_var=LD_LIBRARY_PATH
18790   shlibpath_overrides_runpath=no
18791   hardcode_into_libs=yes
18792   ;;
18794 irix5* | irix6* | nonstopux*)
18795   case $host_os in
18796     nonstopux*) version_type=nonstopux ;;
18797     *)
18798         if test "$lt_cv_prog_gnu_ld" = yes; then
18799                 version_type=linux
18800         else
18801                 version_type=irix
18802         fi ;;
18803   esac
18804   need_lib_prefix=no
18805   need_version=no
18806   soname_spec='${libname}${release}${shared_ext}$major'
18807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18808   case $host_os in
18809   irix5* | nonstopux*)
18810     libsuff= shlibsuff=
18811     ;;
18812   *)
18813     case $LD in # libtool.m4 will add one of these switches to LD
18814     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18815       libsuff= shlibsuff= libmagic=32-bit;;
18816     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18817       libsuff=32 shlibsuff=N32 libmagic=N32;;
18818     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18819       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18820     *) libsuff= shlibsuff= libmagic=never-match;;
18821     esac
18822     ;;
18823   esac
18824   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18825   shlibpath_overrides_runpath=no
18826   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18827   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18828   hardcode_into_libs=yes
18829   ;;
18831 # No shared lib support for Linux oldld, aout, or coff.
18832 linux*oldld* | linux*aout* | linux*coff*)
18833   dynamic_linker=no
18834   ;;
18836 # This must be Linux ELF.
18837 linux* | k*bsd*-gnu)
18838   version_type=linux
18839   need_lib_prefix=no
18840   need_version=no
18841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18842   soname_spec='${libname}${release}${shared_ext}$major'
18843   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18844   shlibpath_var=LD_LIBRARY_PATH
18845   shlibpath_overrides_runpath=no
18846   # This implies no fast_install, which is unacceptable.
18847   # Some rework will be needed to allow for fast_install
18848   # before this can be enabled.
18849   hardcode_into_libs=yes
18851   # Append ld.so.conf contents to the search path
18852   if test -f /etc/ld.so.conf; then
18853     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' ' '`
18854     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18855   fi
18857   # We used to test for /lib/ld.so.1 and disable shared libraries on
18858   # powerpc, because MkLinux only supported shared libraries with the
18859   # GNU dynamic linker.  Since this was broken with cross compilers,
18860   # most powerpc-linux boxes support dynamic linking these days and
18861   # people can always --disable-shared, the test was removed, and we
18862   # assume the GNU/Linux dynamic linker is in use.
18863   dynamic_linker='GNU/Linux ld.so'
18864   ;;
18866 netbsdelf*-gnu)
18867   version_type=linux
18868   need_lib_prefix=no
18869   need_version=no
18870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18871   soname_spec='${libname}${release}${shared_ext}$major'
18872   shlibpath_var=LD_LIBRARY_PATH
18873   shlibpath_overrides_runpath=no
18874   hardcode_into_libs=yes
18875   dynamic_linker='NetBSD ld.elf_so'
18876   ;;
18878 netbsd*)
18879   version_type=sunos
18880   need_lib_prefix=no
18881   need_version=no
18882   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18884     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18885     dynamic_linker='NetBSD (a.out) ld.so'
18886   else
18887     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18888     soname_spec='${libname}${release}${shared_ext}$major'
18889     dynamic_linker='NetBSD ld.elf_so'
18890   fi
18891   shlibpath_var=LD_LIBRARY_PATH
18892   shlibpath_overrides_runpath=yes
18893   hardcode_into_libs=yes
18894   ;;
18896 newsos6)
18897   version_type=linux
18898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18899   shlibpath_var=LD_LIBRARY_PATH
18900   shlibpath_overrides_runpath=yes
18901   ;;
18903 nto-qnx*)
18904   version_type=linux
18905   need_lib_prefix=no
18906   need_version=no
18907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18908   soname_spec='${libname}${release}${shared_ext}$major'
18909   shlibpath_var=LD_LIBRARY_PATH
18910   shlibpath_overrides_runpath=yes
18911   ;;
18913 openbsd*)
18914   version_type=sunos
18915   sys_lib_dlsearch_path_spec="/usr/lib"
18916   need_lib_prefix=no
18917   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18918   case $host_os in
18919     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18920     *)                         need_version=no  ;;
18921   esac
18922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18923   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18924   shlibpath_var=LD_LIBRARY_PATH
18925   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18926     case $host_os in
18927       openbsd2.[89] | openbsd2.[89].*)
18928         shlibpath_overrides_runpath=no
18929         ;;
18930       *)
18931         shlibpath_overrides_runpath=yes
18932         ;;
18933       esac
18934   else
18935     shlibpath_overrides_runpath=yes
18936   fi
18937   ;;
18939 os2*)
18940   libname_spec='$name'
18941   shrext_cmds=".dll"
18942   need_lib_prefix=no
18943   library_names_spec='$libname${shared_ext} $libname.a'
18944   dynamic_linker='OS/2 ld.exe'
18945   shlibpath_var=LIBPATH
18946   ;;
18948 osf3* | osf4* | osf5*)
18949   version_type=osf
18950   need_lib_prefix=no
18951   need_version=no
18952   soname_spec='${libname}${release}${shared_ext}$major'
18953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18954   shlibpath_var=LD_LIBRARY_PATH
18955   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18956   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18957   ;;
18959 rdos*)
18960   dynamic_linker=no
18961   ;;
18963 solaris*)
18964   version_type=linux
18965   need_lib_prefix=no
18966   need_version=no
18967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18968   soname_spec='${libname}${release}${shared_ext}$major'
18969   shlibpath_var=LD_LIBRARY_PATH
18970   shlibpath_overrides_runpath=yes
18971   hardcode_into_libs=yes
18972   # ldd complains unless libraries are executable
18973   postinstall_cmds='chmod +x $lib'
18974   ;;
18976 sunos4*)
18977   version_type=sunos
18978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18979   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18980   shlibpath_var=LD_LIBRARY_PATH
18981   shlibpath_overrides_runpath=yes
18982   if test "$with_gnu_ld" = yes; then
18983     need_lib_prefix=no
18984   fi
18985   need_version=yes
18986   ;;
18988 sysv4 | sysv4.3*)
18989   version_type=linux
18990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18991   soname_spec='${libname}${release}${shared_ext}$major'
18992   shlibpath_var=LD_LIBRARY_PATH
18993   case $host_vendor in
18994     sni)
18995       shlibpath_overrides_runpath=no
18996       need_lib_prefix=no
18997       export_dynamic_flag_spec='${wl}-Blargedynsym'
18998       runpath_var=LD_RUN_PATH
18999       ;;
19000     siemens)
19001       need_lib_prefix=no
19002       ;;
19003     motorola)
19004       need_lib_prefix=no
19005       need_version=no
19006       shlibpath_overrides_runpath=no
19007       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19008       ;;
19009   esac
19010   ;;
19012 sysv4*MP*)
19013   if test -d /usr/nec ;then
19014     version_type=linux
19015     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19016     soname_spec='$libname${shared_ext}.$major'
19017     shlibpath_var=LD_LIBRARY_PATH
19018   fi
19019   ;;
19021 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19022   version_type=freebsd-elf
19023   need_lib_prefix=no
19024   need_version=no
19025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19026   soname_spec='${libname}${release}${shared_ext}$major'
19027   shlibpath_var=LD_LIBRARY_PATH
19028   hardcode_into_libs=yes
19029   if test "$with_gnu_ld" = yes; then
19030     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19031     shlibpath_overrides_runpath=no
19032   else
19033     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19034     shlibpath_overrides_runpath=yes
19035     case $host_os in
19036       sco3.2v5*)
19037         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19038         ;;
19039     esac
19040   fi
19041   sys_lib_dlsearch_path_spec='/usr/lib'
19042   ;;
19044 uts4*)
19045   version_type=linux
19046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19047   soname_spec='${libname}${release}${shared_ext}$major'
19048   shlibpath_var=LD_LIBRARY_PATH
19049   ;;
19052   dynamic_linker=no
19053   ;;
19054 esac
19055 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19056 echo "${ECHO_T}$dynamic_linker" >&6; }
19057 test "$dynamic_linker" = no && can_build_shared=no
19059 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19060   echo $ECHO_N "(cached) $ECHO_C" >&6
19061 else
19062   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19065 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19066 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19067   echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19072 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19075 if test "$GCC" = yes; then
19076   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19079 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19081 hardcode_action_GCJ=
19082 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19083    test -n "$runpath_var_GCJ" || \
19084    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19086   # We can hardcode non-existant directories.
19087   if test "$hardcode_direct_GCJ" != no &&
19088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19089      # have to relink, otherwise we might link with an installed library
19090      # when we should be linking with a yet-to-be-installed one
19091      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19092      test "$hardcode_minus_L_GCJ" != no; then
19093     # Linking always hardcodes the temporary library directory.
19094     hardcode_action_GCJ=relink
19095   else
19096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19097     hardcode_action_GCJ=immediate
19098   fi
19099 else
19100   # We cannot hardcode anything, or else we can only hardcode existing
19101   # directories.
19102   hardcode_action_GCJ=unsupported
19104 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19105 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19107 if test "$hardcode_action_GCJ" = relink; then
19108   # Fast installation is not supported
19109   enable_fast_install=no
19110 elif test "$shlibpath_overrides_runpath" = yes ||
19111      test "$enable_shared" = no; then
19112   # Fast installation is not necessary
19113   enable_fast_install=needless
19117 # The else clause should only fire when bootstrapping the
19118 # libtool distribution, otherwise you forgot to ship ltmain.sh
19119 # with your package, and you will get complaints that there are
19120 # no rules to generate ltmain.sh.
19121 if test -f "$ltmain"; then
19122   # See if we are running on zsh, and set the options which allow our commands through
19123   # without removal of \ escapes.
19124   if test -n "${ZSH_VERSION+set}" ; then
19125     setopt NO_GLOB_SUBST
19126   fi
19127   # Now quote all the things that may contain metacharacters while being
19128   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19129   # variables and quote the copies for generation of the libtool script.
19130   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19131     SED SHELL STRIP \
19132     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19133     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19134     deplibs_check_method reload_flag reload_cmds need_locks \
19135     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19136     lt_cv_sys_global_symbol_to_c_name_address \
19137     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19138     old_postinstall_cmds old_postuninstall_cmds \
19139     compiler_GCJ \
19140     CC_GCJ \
19141     LD_GCJ \
19142     lt_prog_compiler_wl_GCJ \
19143     lt_prog_compiler_pic_GCJ \
19144     lt_prog_compiler_static_GCJ \
19145     lt_prog_compiler_no_builtin_flag_GCJ \
19146     export_dynamic_flag_spec_GCJ \
19147     thread_safe_flag_spec_GCJ \
19148     whole_archive_flag_spec_GCJ \
19149     enable_shared_with_static_runtimes_GCJ \
19150     old_archive_cmds_GCJ \
19151     old_archive_from_new_cmds_GCJ \
19152     predep_objects_GCJ \
19153     postdep_objects_GCJ \
19154     predeps_GCJ \
19155     postdeps_GCJ \
19156     compiler_lib_search_path_GCJ \
19157     compiler_lib_search_dirs_GCJ \
19158     archive_cmds_GCJ \
19159     archive_expsym_cmds_GCJ \
19160     postinstall_cmds_GCJ \
19161     postuninstall_cmds_GCJ \
19162     old_archive_from_expsyms_cmds_GCJ \
19163     allow_undefined_flag_GCJ \
19164     no_undefined_flag_GCJ \
19165     export_symbols_cmds_GCJ \
19166     hardcode_libdir_flag_spec_GCJ \
19167     hardcode_libdir_flag_spec_ld_GCJ \
19168     hardcode_libdir_separator_GCJ \
19169     hardcode_automatic_GCJ \
19170     module_cmds_GCJ \
19171     module_expsym_cmds_GCJ \
19172     lt_cv_prog_compiler_c_o_GCJ \
19173     fix_srcfile_path_GCJ \
19174     exclude_expsyms_GCJ \
19175     include_expsyms_GCJ; do
19177     case $var in
19178     old_archive_cmds_GCJ | \
19179     old_archive_from_new_cmds_GCJ | \
19180     archive_cmds_GCJ | \
19181     archive_expsym_cmds_GCJ | \
19182     module_cmds_GCJ | \
19183     module_expsym_cmds_GCJ | \
19184     old_archive_from_expsyms_cmds_GCJ | \
19185     export_symbols_cmds_GCJ | \
19186     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19187     postinstall_cmds | postuninstall_cmds | \
19188     old_postinstall_cmds | old_postuninstall_cmds | \
19189     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19190       # Double-quote double-evaled strings.
19191       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19192       ;;
19193     *)
19194       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19195       ;;
19196     esac
19197   done
19199   case $lt_echo in
19200   *'\$0 --fallback-echo"')
19201     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19202     ;;
19203   esac
19205 cfgfile="$ofile"
19207   cat <<__EOF__ >> "$cfgfile"
19208 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19210 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19212 # Shell to use when invoking shell scripts.
19213 SHELL=$lt_SHELL
19215 # Whether or not to build shared libraries.
19216 build_libtool_libs=$enable_shared
19218 # Whether or not to build static libraries.
19219 build_old_libs=$enable_static
19221 # Whether or not to add -lc for building shared libraries.
19222 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19224 # Whether or not to disallow shared libs when runtime libs are static
19225 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19227 # Whether or not to optimize for fast installation.
19228 fast_install=$enable_fast_install
19230 # The host system.
19231 host_alias=$host_alias
19232 host=$host
19233 host_os=$host_os
19235 # The build system.
19236 build_alias=$build_alias
19237 build=$build
19238 build_os=$build_os
19240 # An echo program that does not interpret backslashes.
19241 echo=$lt_echo
19243 # The archiver.
19244 AR=$lt_AR
19245 AR_FLAGS=$lt_AR_FLAGS
19247 # A C compiler.
19248 LTCC=$lt_LTCC
19250 # LTCC compiler flags.
19251 LTCFLAGS=$lt_LTCFLAGS
19253 # A language-specific compiler.
19254 CC=$lt_compiler_GCJ
19256 # Is the compiler the GNU C compiler?
19257 with_gcc=$GCC_GCJ
19259 # An ERE matcher.
19260 EGREP=$lt_EGREP
19262 # The linker used to build libraries.
19263 LD=$lt_LD_GCJ
19265 # Whether we need hard or soft links.
19266 LN_S=$lt_LN_S
19268 # A BSD-compatible nm program.
19269 NM=$lt_NM
19271 # A symbol stripping program
19272 STRIP=$lt_STRIP
19274 # Used to examine libraries when file_magic_cmd begins "file"
19275 MAGIC_CMD=$MAGIC_CMD
19277 # Used on cygwin: DLL creation program.
19278 DLLTOOL="$DLLTOOL"
19280 # Used on cygwin: object dumper.
19281 OBJDUMP="$OBJDUMP"
19283 # Used on cygwin: assembler.
19284 AS="$AS"
19286 # The name of the directory that contains temporary libtool files.
19287 objdir=$objdir
19289 # How to create reloadable object files.
19290 reload_flag=$lt_reload_flag
19291 reload_cmds=$lt_reload_cmds
19293 # How to pass a linker flag through the compiler.
19294 wl=$lt_lt_prog_compiler_wl_GCJ
19296 # Object file suffix (normally "o").
19297 objext="$ac_objext"
19299 # Old archive suffix (normally "a").
19300 libext="$libext"
19302 # Shared library suffix (normally ".so").
19303 shrext_cmds='$shrext_cmds'
19305 # Executable file suffix (normally "").
19306 exeext="$exeext"
19308 # Additional compiler flags for building library objects.
19309 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19310 pic_mode=$pic_mode
19312 # What is the maximum length of a command?
19313 max_cmd_len=$lt_cv_sys_max_cmd_len
19315 # Does compiler simultaneously support -c and -o options?
19316 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19318 # Must we lock files when doing compilation?
19319 need_locks=$lt_need_locks
19321 # Do we need the lib prefix for modules?
19322 need_lib_prefix=$need_lib_prefix
19324 # Do we need a version for libraries?
19325 need_version=$need_version
19327 # Whether dlopen is supported.
19328 dlopen_support=$enable_dlopen
19330 # Whether dlopen of programs is supported.
19331 dlopen_self=$enable_dlopen_self
19333 # Whether dlopen of statically linked programs is supported.
19334 dlopen_self_static=$enable_dlopen_self_static
19336 # Compiler flag to prevent dynamic linking.
19337 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19339 # Compiler flag to turn off builtin functions.
19340 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19342 # Compiler flag to allow reflexive dlopens.
19343 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19345 # Compiler flag to generate shared objects directly from archives.
19346 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19348 # Compiler flag to generate thread-safe objects.
19349 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19351 # Library versioning type.
19352 version_type=$version_type
19354 # Format of library name prefix.
19355 libname_spec=$lt_libname_spec
19357 # List of archive names.  First name is the real one, the rest are links.
19358 # The last name is the one that the linker finds with -lNAME.
19359 library_names_spec=$lt_library_names_spec
19361 # The coded name of the library, if different from the real name.
19362 soname_spec=$lt_soname_spec
19364 # Commands used to build and install an old-style archive.
19365 RANLIB=$lt_RANLIB
19366 old_archive_cmds=$lt_old_archive_cmds_GCJ
19367 old_postinstall_cmds=$lt_old_postinstall_cmds
19368 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19370 # Create an old-style archive from a shared archive.
19371 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19373 # Create a temporary old-style archive to link instead of a shared archive.
19374 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19376 # Commands used to build and install a shared archive.
19377 archive_cmds=$lt_archive_cmds_GCJ
19378 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19379 postinstall_cmds=$lt_postinstall_cmds
19380 postuninstall_cmds=$lt_postuninstall_cmds
19382 # Commands used to build a loadable module (assumed same as above if empty)
19383 module_cmds=$lt_module_cmds_GCJ
19384 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19386 # Commands to strip libraries.
19387 old_striplib=$lt_old_striplib
19388 striplib=$lt_striplib
19390 # Dependencies to place before the objects being linked to create a
19391 # shared library.
19392 predep_objects=$lt_predep_objects_GCJ
19394 # Dependencies to place after the objects being linked to create a
19395 # shared library.
19396 postdep_objects=$lt_postdep_objects_GCJ
19398 # Dependencies to place before the objects being linked to create a
19399 # shared library.
19400 predeps=$lt_predeps_GCJ
19402 # Dependencies to place after the objects being linked to create a
19403 # shared library.
19404 postdeps=$lt_postdeps_GCJ
19406 # The directories searched by this compiler when creating a shared
19407 # library
19408 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19410 # The library search path used internally by the compiler when linking
19411 # a shared library.
19412 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19414 # Method to check whether dependent libraries are shared objects.
19415 deplibs_check_method=$lt_deplibs_check_method
19417 # Command to use when deplibs_check_method == file_magic.
19418 file_magic_cmd=$lt_file_magic_cmd
19420 # Flag that allows shared libraries with undefined symbols to be built.
19421 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19423 # Flag that forces no undefined symbols.
19424 no_undefined_flag=$lt_no_undefined_flag_GCJ
19426 # Commands used to finish a libtool library installation in a directory.
19427 finish_cmds=$lt_finish_cmds
19429 # Same as above, but a single script fragment to be evaled but not shown.
19430 finish_eval=$lt_finish_eval
19432 # Take the output of nm and produce a listing of raw symbols and C names.
19433 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19435 # Transform the output of nm in a proper C declaration
19436 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19438 # Transform the output of nm in a C name address pair
19439 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19441 # This is the shared library runtime path variable.
19442 runpath_var=$runpath_var
19444 # This is the shared library path variable.
19445 shlibpath_var=$shlibpath_var
19447 # Is shlibpath searched before the hard-coded library search path?
19448 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19450 # How to hardcode a shared library path into an executable.
19451 hardcode_action=$hardcode_action_GCJ
19453 # Whether we should hardcode library paths into libraries.
19454 hardcode_into_libs=$hardcode_into_libs
19456 # Flag to hardcode \$libdir into a binary during linking.
19457 # This must work even if \$libdir does not exist.
19458 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19460 # If ld is used when linking, flag to hardcode \$libdir into
19461 # a binary during linking. This must work even if \$libdir does
19462 # not exist.
19463 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19465 # Whether we need a single -rpath flag with a separated argument.
19466 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19468 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19469 # resulting binary.
19470 hardcode_direct=$hardcode_direct_GCJ
19472 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19473 # resulting binary.
19474 hardcode_minus_L=$hardcode_minus_L_GCJ
19476 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19477 # the resulting binary.
19478 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19480 # Set to yes if building a shared library automatically hardcodes DIR into the library
19481 # and all subsequent libraries and executables linked against it.
19482 hardcode_automatic=$hardcode_automatic_GCJ
19484 # Variables whose values should be saved in libtool wrapper scripts and
19485 # restored at relink time.
19486 variables_saved_for_relink="$variables_saved_for_relink"
19488 # Whether libtool must link a program against all its dependency libraries.
19489 link_all_deplibs=$link_all_deplibs_GCJ
19491 # Compile-time system search path for libraries
19492 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19494 # Run-time system search path for libraries
19495 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19497 # Fix the shell variable \$srcfile for the compiler.
19498 fix_srcfile_path=$lt_fix_srcfile_path
19500 # Set to yes if exported symbols are required.
19501 always_export_symbols=$always_export_symbols_GCJ
19503 # The commands to list exported symbols.
19504 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19506 # The commands to extract the exported symbol list from a shared archive.
19507 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19509 # Symbols that should not be listed in the preloaded symbols.
19510 exclude_expsyms=$lt_exclude_expsyms_GCJ
19512 # Symbols that must always be exported.
19513 include_expsyms=$lt_include_expsyms_GCJ
19515 # ### END LIBTOOL TAG CONFIG: $tagname
19517 __EOF__
19520 else
19521   # If there is no Makefile yet, we rely on a make rule to execute
19522   # `config.status --recheck' to rerun these tests and create the
19523   # libtool script then.
19524   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19525   if test -f "$ltmain_in"; then
19526     test -f Makefile && make "$ltmain"
19527   fi
19531 ac_ext=c
19532 ac_cpp='$CPP $CPPFLAGS'
19533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19537 CC="$lt_save_CC"
19539         else
19540           tagname=""
19541         fi
19542         ;;
19544       RC)
19547 # Source file extension for RC test sources.
19548 ac_ext=rc
19550 # Object file extension for compiled RC test sources.
19551 objext=o
19552 objext_RC=$objext
19554 # Code to be used in simple compile tests
19555 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19557 # Code to be used in simple link tests
19558 lt_simple_link_test_code="$lt_simple_compile_test_code"
19560 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19562 # If no C compiler was specified, use CC.
19563 LTCC=${LTCC-"$CC"}
19565 # If no C compiler flags were specified, use CFLAGS.
19566 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19568 # Allow CC to be a program name with arguments.
19569 compiler=$CC
19572 # save warnings/boilerplate of simple test code
19573 ac_outfile=conftest.$ac_objext
19574 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19575 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19576 _lt_compiler_boilerplate=`cat conftest.err`
19577 $rm conftest*
19579 ac_outfile=conftest.$ac_objext
19580 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19581 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19582 _lt_linker_boilerplate=`cat conftest.err`
19583 $rm -r conftest*
19586 # Allow CC to be a program name with arguments.
19587 lt_save_CC="$CC"
19588 CC=${RC-"windres"}
19589 compiler=$CC
19590 compiler_RC=$CC
19591 for cc_temp in $compiler""; do
19592   case $cc_temp in
19593     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19594     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19595     \-*) ;;
19596     *) break;;
19597   esac
19598 done
19599 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19601 lt_cv_prog_compiler_c_o_RC=yes
19603 # The else clause should only fire when bootstrapping the
19604 # libtool distribution, otherwise you forgot to ship ltmain.sh
19605 # with your package, and you will get complaints that there are
19606 # no rules to generate ltmain.sh.
19607 if test -f "$ltmain"; then
19608   # See if we are running on zsh, and set the options which allow our commands through
19609   # without removal of \ escapes.
19610   if test -n "${ZSH_VERSION+set}" ; then
19611     setopt NO_GLOB_SUBST
19612   fi
19613   # Now quote all the things that may contain metacharacters while being
19614   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19615   # variables and quote the copies for generation of the libtool script.
19616   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19617     SED SHELL STRIP \
19618     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19619     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19620     deplibs_check_method reload_flag reload_cmds need_locks \
19621     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19622     lt_cv_sys_global_symbol_to_c_name_address \
19623     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19624     old_postinstall_cmds old_postuninstall_cmds \
19625     compiler_RC \
19626     CC_RC \
19627     LD_RC \
19628     lt_prog_compiler_wl_RC \
19629     lt_prog_compiler_pic_RC \
19630     lt_prog_compiler_static_RC \
19631     lt_prog_compiler_no_builtin_flag_RC \
19632     export_dynamic_flag_spec_RC \
19633     thread_safe_flag_spec_RC \
19634     whole_archive_flag_spec_RC \
19635     enable_shared_with_static_runtimes_RC \
19636     old_archive_cmds_RC \
19637     old_archive_from_new_cmds_RC \
19638     predep_objects_RC \
19639     postdep_objects_RC \
19640     predeps_RC \
19641     postdeps_RC \
19642     compiler_lib_search_path_RC \
19643     compiler_lib_search_dirs_RC \
19644     archive_cmds_RC \
19645     archive_expsym_cmds_RC \
19646     postinstall_cmds_RC \
19647     postuninstall_cmds_RC \
19648     old_archive_from_expsyms_cmds_RC \
19649     allow_undefined_flag_RC \
19650     no_undefined_flag_RC \
19651     export_symbols_cmds_RC \
19652     hardcode_libdir_flag_spec_RC \
19653     hardcode_libdir_flag_spec_ld_RC \
19654     hardcode_libdir_separator_RC \
19655     hardcode_automatic_RC \
19656     module_cmds_RC \
19657     module_expsym_cmds_RC \
19658     lt_cv_prog_compiler_c_o_RC \
19659     fix_srcfile_path_RC \
19660     exclude_expsyms_RC \
19661     include_expsyms_RC; do
19663     case $var in
19664     old_archive_cmds_RC | \
19665     old_archive_from_new_cmds_RC | \
19666     archive_cmds_RC | \
19667     archive_expsym_cmds_RC | \
19668     module_cmds_RC | \
19669     module_expsym_cmds_RC | \
19670     old_archive_from_expsyms_cmds_RC | \
19671     export_symbols_cmds_RC | \
19672     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19673     postinstall_cmds | postuninstall_cmds | \
19674     old_postinstall_cmds | old_postuninstall_cmds | \
19675     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19676       # Double-quote double-evaled strings.
19677       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19678       ;;
19679     *)
19680       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19681       ;;
19682     esac
19683   done
19685   case $lt_echo in
19686   *'\$0 --fallback-echo"')
19687     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19688     ;;
19689   esac
19691 cfgfile="$ofile"
19693   cat <<__EOF__ >> "$cfgfile"
19694 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19698 # Shell to use when invoking shell scripts.
19699 SHELL=$lt_SHELL
19701 # Whether or not to build shared libraries.
19702 build_libtool_libs=$enable_shared
19704 # Whether or not to build static libraries.
19705 build_old_libs=$enable_static
19707 # Whether or not to add -lc for building shared libraries.
19708 build_libtool_need_lc=$archive_cmds_need_lc_RC
19710 # Whether or not to disallow shared libs when runtime libs are static
19711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19713 # Whether or not to optimize for fast installation.
19714 fast_install=$enable_fast_install
19716 # The host system.
19717 host_alias=$host_alias
19718 host=$host
19719 host_os=$host_os
19721 # The build system.
19722 build_alias=$build_alias
19723 build=$build
19724 build_os=$build_os
19726 # An echo program that does not interpret backslashes.
19727 echo=$lt_echo
19729 # The archiver.
19730 AR=$lt_AR
19731 AR_FLAGS=$lt_AR_FLAGS
19733 # A C compiler.
19734 LTCC=$lt_LTCC
19736 # LTCC compiler flags.
19737 LTCFLAGS=$lt_LTCFLAGS
19739 # A language-specific compiler.
19740 CC=$lt_compiler_RC
19742 # Is the compiler the GNU C compiler?
19743 with_gcc=$GCC_RC
19745 # An ERE matcher.
19746 EGREP=$lt_EGREP
19748 # The linker used to build libraries.
19749 LD=$lt_LD_RC
19751 # Whether we need hard or soft links.
19752 LN_S=$lt_LN_S
19754 # A BSD-compatible nm program.
19755 NM=$lt_NM
19757 # A symbol stripping program
19758 STRIP=$lt_STRIP
19760 # Used to examine libraries when file_magic_cmd begins "file"
19761 MAGIC_CMD=$MAGIC_CMD
19763 # Used on cygwin: DLL creation program.
19764 DLLTOOL="$DLLTOOL"
19766 # Used on cygwin: object dumper.
19767 OBJDUMP="$OBJDUMP"
19769 # Used on cygwin: assembler.
19770 AS="$AS"
19772 # The name of the directory that contains temporary libtool files.
19773 objdir=$objdir
19775 # How to create reloadable object files.
19776 reload_flag=$lt_reload_flag
19777 reload_cmds=$lt_reload_cmds
19779 # How to pass a linker flag through the compiler.
19780 wl=$lt_lt_prog_compiler_wl_RC
19782 # Object file suffix (normally "o").
19783 objext="$ac_objext"
19785 # Old archive suffix (normally "a").
19786 libext="$libext"
19788 # Shared library suffix (normally ".so").
19789 shrext_cmds='$shrext_cmds'
19791 # Executable file suffix (normally "").
19792 exeext="$exeext"
19794 # Additional compiler flags for building library objects.
19795 pic_flag=$lt_lt_prog_compiler_pic_RC
19796 pic_mode=$pic_mode
19798 # What is the maximum length of a command?
19799 max_cmd_len=$lt_cv_sys_max_cmd_len
19801 # Does compiler simultaneously support -c and -o options?
19802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19804 # Must we lock files when doing compilation?
19805 need_locks=$lt_need_locks
19807 # Do we need the lib prefix for modules?
19808 need_lib_prefix=$need_lib_prefix
19810 # Do we need a version for libraries?
19811 need_version=$need_version
19813 # Whether dlopen is supported.
19814 dlopen_support=$enable_dlopen
19816 # Whether dlopen of programs is supported.
19817 dlopen_self=$enable_dlopen_self
19819 # Whether dlopen of statically linked programs is supported.
19820 dlopen_self_static=$enable_dlopen_self_static
19822 # Compiler flag to prevent dynamic linking.
19823 link_static_flag=$lt_lt_prog_compiler_static_RC
19825 # Compiler flag to turn off builtin functions.
19826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19828 # Compiler flag to allow reflexive dlopens.
19829 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19831 # Compiler flag to generate shared objects directly from archives.
19832 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19834 # Compiler flag to generate thread-safe objects.
19835 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19837 # Library versioning type.
19838 version_type=$version_type
19840 # Format of library name prefix.
19841 libname_spec=$lt_libname_spec
19843 # List of archive names.  First name is the real one, the rest are links.
19844 # The last name is the one that the linker finds with -lNAME.
19845 library_names_spec=$lt_library_names_spec
19847 # The coded name of the library, if different from the real name.
19848 soname_spec=$lt_soname_spec
19850 # Commands used to build and install an old-style archive.
19851 RANLIB=$lt_RANLIB
19852 old_archive_cmds=$lt_old_archive_cmds_RC
19853 old_postinstall_cmds=$lt_old_postinstall_cmds
19854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19856 # Create an old-style archive from a shared archive.
19857 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19859 # Create a temporary old-style archive to link instead of a shared archive.
19860 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19862 # Commands used to build and install a shared archive.
19863 archive_cmds=$lt_archive_cmds_RC
19864 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19865 postinstall_cmds=$lt_postinstall_cmds
19866 postuninstall_cmds=$lt_postuninstall_cmds
19868 # Commands used to build a loadable module (assumed same as above if empty)
19869 module_cmds=$lt_module_cmds_RC
19870 module_expsym_cmds=$lt_module_expsym_cmds_RC
19872 # Commands to strip libraries.
19873 old_striplib=$lt_old_striplib
19874 striplib=$lt_striplib
19876 # Dependencies to place before the objects being linked to create a
19877 # shared library.
19878 predep_objects=$lt_predep_objects_RC
19880 # Dependencies to place after the objects being linked to create a
19881 # shared library.
19882 postdep_objects=$lt_postdep_objects_RC
19884 # Dependencies to place before the objects being linked to create a
19885 # shared library.
19886 predeps=$lt_predeps_RC
19888 # Dependencies to place after the objects being linked to create a
19889 # shared library.
19890 postdeps=$lt_postdeps_RC
19892 # The directories searched by this compiler when creating a shared
19893 # library
19894 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19896 # The library search path used internally by the compiler when linking
19897 # a shared library.
19898 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19900 # Method to check whether dependent libraries are shared objects.
19901 deplibs_check_method=$lt_deplibs_check_method
19903 # Command to use when deplibs_check_method == file_magic.
19904 file_magic_cmd=$lt_file_magic_cmd
19906 # Flag that allows shared libraries with undefined symbols to be built.
19907 allow_undefined_flag=$lt_allow_undefined_flag_RC
19909 # Flag that forces no undefined symbols.
19910 no_undefined_flag=$lt_no_undefined_flag_RC
19912 # Commands used to finish a libtool library installation in a directory.
19913 finish_cmds=$lt_finish_cmds
19915 # Same as above, but a single script fragment to be evaled but not shown.
19916 finish_eval=$lt_finish_eval
19918 # Take the output of nm and produce a listing of raw symbols and C names.
19919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19921 # Transform the output of nm in a proper C declaration
19922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19924 # Transform the output of nm in a C name address pair
19925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19927 # This is the shared library runtime path variable.
19928 runpath_var=$runpath_var
19930 # This is the shared library path variable.
19931 shlibpath_var=$shlibpath_var
19933 # Is shlibpath searched before the hard-coded library search path?
19934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19936 # How to hardcode a shared library path into an executable.
19937 hardcode_action=$hardcode_action_RC
19939 # Whether we should hardcode library paths into libraries.
19940 hardcode_into_libs=$hardcode_into_libs
19942 # Flag to hardcode \$libdir into a binary during linking.
19943 # This must work even if \$libdir does not exist.
19944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19946 # If ld is used when linking, flag to hardcode \$libdir into
19947 # a binary during linking. This must work even if \$libdir does
19948 # not exist.
19949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19951 # Whether we need a single -rpath flag with a separated argument.
19952 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19955 # resulting binary.
19956 hardcode_direct=$hardcode_direct_RC
19958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19959 # resulting binary.
19960 hardcode_minus_L=$hardcode_minus_L_RC
19962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19963 # the resulting binary.
19964 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19966 # Set to yes if building a shared library automatically hardcodes DIR into the library
19967 # and all subsequent libraries and executables linked against it.
19968 hardcode_automatic=$hardcode_automatic_RC
19970 # Variables whose values should be saved in libtool wrapper scripts and
19971 # restored at relink time.
19972 variables_saved_for_relink="$variables_saved_for_relink"
19974 # Whether libtool must link a program against all its dependency libraries.
19975 link_all_deplibs=$link_all_deplibs_RC
19977 # Compile-time system search path for libraries
19978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19980 # Run-time system search path for libraries
19981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19983 # Fix the shell variable \$srcfile for the compiler.
19984 fix_srcfile_path=$lt_fix_srcfile_path
19986 # Set to yes if exported symbols are required.
19987 always_export_symbols=$always_export_symbols_RC
19989 # The commands to list exported symbols.
19990 export_symbols_cmds=$lt_export_symbols_cmds_RC
19992 # The commands to extract the exported symbol list from a shared archive.
19993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19995 # Symbols that should not be listed in the preloaded symbols.
19996 exclude_expsyms=$lt_exclude_expsyms_RC
19998 # Symbols that must always be exported.
19999 include_expsyms=$lt_include_expsyms_RC
20001 # ### END LIBTOOL TAG CONFIG: $tagname
20003 __EOF__
20006 else
20007   # If there is no Makefile yet, we rely on a make rule to execute
20008   # `config.status --recheck' to rerun these tests and create the
20009   # libtool script then.
20010   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20011   if test -f "$ltmain_in"; then
20012     test -f Makefile && make "$ltmain"
20013   fi
20017 ac_ext=c
20018 ac_cpp='$CPP $CPPFLAGS'
20019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20023 CC="$lt_save_CC"
20025         ;;
20027       *)
20028         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20029 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20030    { (exit 1); exit 1; }; }
20031         ;;
20032       esac
20034       # Append the new tag name to the list of available tags.
20035       if test -n "$tagname" ; then
20036       available_tags="$available_tags $tagname"
20037     fi
20038     fi
20039   done
20040   IFS="$lt_save_ifs"
20042   # Now substitute the updated list of available tags.
20043   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20044     mv "${ofile}T" "$ofile"
20045     chmod +x "$ofile"
20046   else
20047     rm -f "${ofile}T"
20048     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20049 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20050    { (exit 1); exit 1; }; }
20051   fi
20056 # This can be used to rebuild libtool when needed
20057 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20059 # Always use our own libtool.
20060 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20062 # Prevent multiple expansion
20084 CFLAGS="$CFLAGS -D_GNU_SOURCE"
20086 if test "x$GCC" = "xyes"; then
20087   for flag in -fno-strict-aliasing -Wall -std=c99 -pedantic -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wold-style-definition -W; do
20088     oCFLAGS="$CFLAGS"
20089     CFLAGS="$CFLAGS $flag"
20090     cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
20091     { echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
20092 echo $ECHO_N "checking if gcc likes the $flag flag... $ECHO_C" >&6; }
20093 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
20094   echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096   cat >conftest.$ac_ext <<_ACEOF
20097 /* confdefs.h.  */
20098 _ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h.  */
20103 int
20104 main ()
20106 return 0
20107   ;
20108   return 0;
20110 _ACEOF
20111 rm -f conftest.$ac_objext
20112 if { (ac_try="$ac_compile"
20113 case "(($ac_try" in
20114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115   *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118   (eval "$ac_compile") 2>conftest.er1
20119   ac_status=$?
20120   grep -v '^ *+' conftest.er1 >conftest.err
20121   rm -f conftest.er1
20122   cat conftest.err >&5
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); } && {
20125          test -z "$ac_c_werror_flag" ||
20126          test ! -s conftest.err
20127        } && test -s conftest.$ac_objext; then
20128   eval $cachename=yes
20129 else
20130   echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133         eval $cachename=no
20136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20138 ac_res=`eval echo '${'$cachename'}'`
20139                { echo "$as_me:$LINENO: result: $ac_res" >&5
20140 echo "${ECHO_T}$ac_res" >&6; }
20141     if eval test \$$cachename = no; then
20142          CFLAGS="$oCFLAGS"
20143     fi
20144   done
20152 case $TERM in
20153        #   for the most important terminal types we directly know the sequences
20154        xterm|xterm*|vt220|vt220*)
20155                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20156                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20157        ;;
20158        vt100|vt100*|cygwin)
20159                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20160                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20161        ;;
20162        *)
20163                T_MD=''
20164                T_ME=''
20165        ;;
20166 esac
20167   { echo "$as_me:$LINENO: result: " >&5
20168 echo "${ECHO_T}" >&6; }
20169   { echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
20170 echo "${ECHO_T}${T_MD}Checking for Header Files${T_ME}" >&6; }
20173 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20174 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20175 if test "${ac_cv_header_stdc+set}" = set; then
20176   echo $ECHO_N "(cached) $ECHO_C" >&6
20177 else
20178   cat >conftest.$ac_ext <<_ACEOF
20179 /* confdefs.h.  */
20180 _ACEOF
20181 cat confdefs.h >>conftest.$ac_ext
20182 cat >>conftest.$ac_ext <<_ACEOF
20183 /* end confdefs.h.  */
20184 #include <stdlib.h>
20185 #include <stdarg.h>
20186 #include <string.h>
20187 #include <float.h>
20189 int
20190 main ()
20193   ;
20194   return 0;
20196 _ACEOF
20197 rm -f conftest.$ac_objext
20198 if { (ac_try="$ac_compile"
20199 case "(($ac_try" in
20200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201   *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204   (eval "$ac_compile") 2>conftest.er1
20205   ac_status=$?
20206   grep -v '^ *+' conftest.er1 >conftest.err
20207   rm -f conftest.er1
20208   cat conftest.err >&5
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); } && {
20211          test -z "$ac_c_werror_flag" ||
20212          test ! -s conftest.err
20213        } && test -s conftest.$ac_objext; then
20214   ac_cv_header_stdc=yes
20215 else
20216   echo "$as_me: failed program was:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219         ac_cv_header_stdc=no
20222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20224 if test $ac_cv_header_stdc = yes; then
20225   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20226   cat >conftest.$ac_ext <<_ACEOF
20227 /* confdefs.h.  */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h.  */
20232 #include <string.h>
20234 _ACEOF
20235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20236   $EGREP "memchr" >/dev/null 2>&1; then
20237   :
20238 else
20239   ac_cv_header_stdc=no
20241 rm -f conftest*
20245 if test $ac_cv_header_stdc = yes; then
20246   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20247   cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h.  */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h.  */
20253 #include <stdlib.h>
20255 _ACEOF
20256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20257   $EGREP "free" >/dev/null 2>&1; then
20258   :
20259 else
20260   ac_cv_header_stdc=no
20262 rm -f conftest*
20266 if test $ac_cv_header_stdc = yes; then
20267   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20268   if test "$cross_compiling" = yes; then
20269   :
20270 else
20271   cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h.  */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h.  */
20277 #include <ctype.h>
20278 #include <stdlib.h>
20279 #if ((' ' & 0x0FF) == 0x020)
20280 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20281 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20282 #else
20283 # define ISLOWER(c) \
20284                    (('a' <= (c) && (c) <= 'i') \
20285                      || ('j' <= (c) && (c) <= 'r') \
20286                      || ('s' <= (c) && (c) <= 'z'))
20287 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20288 #endif
20290 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20291 int
20292 main ()
20294   int i;
20295   for (i = 0; i < 256; i++)
20296     if (XOR (islower (i), ISLOWER (i))
20297         || toupper (i) != TOUPPER (i))
20298       return 2;
20299   return 0;
20301 _ACEOF
20302 rm -f conftest$ac_exeext
20303 if { (ac_try="$ac_link"
20304 case "(($ac_try" in
20305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306   *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309   (eval "$ac_link") 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20313   { (case "(($ac_try" in
20314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315   *) ac_try_echo=$ac_try;;
20316 esac
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318   (eval "$ac_try") 2>&5
20319   ac_status=$?
20320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20321   (exit $ac_status); }; }; then
20322   :
20323 else
20324   echo "$as_me: program exited with status $ac_status" >&5
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20328 ( exit $ac_status )
20329 ac_cv_header_stdc=no
20331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20337 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20338 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20339 if test $ac_cv_header_stdc = yes; then
20341 cat >>confdefs.h <<\_ACEOF
20342 #define STDC_HEADERS 1
20343 _ACEOF
20352 ac_header_dirent=no
20353 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20354   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20355 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20356 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20358   echo $ECHO_N "(cached) $ECHO_C" >&6
20359 else
20360   cat >conftest.$ac_ext <<_ACEOF
20361 /* confdefs.h.  */
20362 _ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h.  */
20366 #include <sys/types.h>
20367 #include <$ac_hdr>
20369 int
20370 main ()
20372 if ((DIR *) 0)
20373 return 0;
20374   ;
20375   return 0;
20377 _ACEOF
20378 rm -f conftest.$ac_objext
20379 if { (ac_try="$ac_compile"
20380 case "(($ac_try" in
20381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382   *) ac_try_echo=$ac_try;;
20383 esac
20384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20385   (eval "$ac_compile") 2>conftest.er1
20386   ac_status=$?
20387   grep -v '^ *+' conftest.er1 >conftest.err
20388   rm -f conftest.er1
20389   cat conftest.err >&5
20390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20391   (exit $ac_status); } && {
20392          test -z "$ac_c_werror_flag" ||
20393          test ! -s conftest.err
20394        } && test -s conftest.$ac_objext; then
20395   eval "$as_ac_Header=yes"
20396 else
20397   echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20400         eval "$as_ac_Header=no"
20403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20405 ac_res=`eval echo '${'$as_ac_Header'}'`
20406                { echo "$as_me:$LINENO: result: $ac_res" >&5
20407 echo "${ECHO_T}$ac_res" >&6; }
20408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20409   cat >>confdefs.h <<_ACEOF
20410 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20411 _ACEOF
20413 ac_header_dirent=$ac_hdr; break
20416 done
20417 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20418 if test $ac_header_dirent = dirent.h; then
20419   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20420 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20421 if test "${ac_cv_search_opendir+set}" = set; then
20422   echo $ECHO_N "(cached) $ECHO_C" >&6
20423 else
20424   ac_func_search_save_LIBS=$LIBS
20425 cat >conftest.$ac_ext <<_ACEOF
20426 /* confdefs.h.  */
20427 _ACEOF
20428 cat confdefs.h >>conftest.$ac_ext
20429 cat >>conftest.$ac_ext <<_ACEOF
20430 /* end confdefs.h.  */
20432 /* Override any GCC internal prototype to avoid an error.
20433    Use char because int might match the return type of a GCC
20434    builtin and then its argument prototype would still apply.  */
20435 #ifdef __cplusplus
20436 extern "C"
20437 #endif
20438 char opendir ();
20439 int
20440 main ()
20442 return opendir ();
20443   ;
20444   return 0;
20446 _ACEOF
20447 for ac_lib in '' dir; do
20448   if test -z "$ac_lib"; then
20449     ac_res="none required"
20450   else
20451     ac_res=-l$ac_lib
20452     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20453   fi
20454   rm -f conftest.$ac_objext conftest$ac_exeext
20455 if { (ac_try="$ac_link"
20456 case "(($ac_try" in
20457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20458   *) ac_try_echo=$ac_try;;
20459 esac
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461   (eval "$ac_link") 2>conftest.er1
20462   ac_status=$?
20463   grep -v '^ *+' conftest.er1 >conftest.err
20464   rm -f conftest.er1
20465   cat conftest.err >&5
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); } && {
20468          test -z "$ac_c_werror_flag" ||
20469          test ! -s conftest.err
20470        } && test -s conftest$ac_exeext &&
20471        $as_test_x conftest$ac_exeext; then
20472   ac_cv_search_opendir=$ac_res
20473 else
20474   echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20481       conftest$ac_exeext
20482   if test "${ac_cv_search_opendir+set}" = set; then
20483   break
20485 done
20486 if test "${ac_cv_search_opendir+set}" = set; then
20487   :
20488 else
20489   ac_cv_search_opendir=no
20491 rm conftest.$ac_ext
20492 LIBS=$ac_func_search_save_LIBS
20494 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20495 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20496 ac_res=$ac_cv_search_opendir
20497 if test "$ac_res" != no; then
20498   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20502 else
20503   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20504 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20505 if test "${ac_cv_search_opendir+set}" = set; then
20506   echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508   ac_func_search_save_LIBS=$LIBS
20509 cat >conftest.$ac_ext <<_ACEOF
20510 /* confdefs.h.  */
20511 _ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h.  */
20516 /* Override any GCC internal prototype to avoid an error.
20517    Use char because int might match the return type of a GCC
20518    builtin and then its argument prototype would still apply.  */
20519 #ifdef __cplusplus
20520 extern "C"
20521 #endif
20522 char opendir ();
20523 int
20524 main ()
20526 return opendir ();
20527   ;
20528   return 0;
20530 _ACEOF
20531 for ac_lib in '' x; do
20532   if test -z "$ac_lib"; then
20533     ac_res="none required"
20534   else
20535     ac_res=-l$ac_lib
20536     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20537   fi
20538   rm -f conftest.$ac_objext conftest$ac_exeext
20539 if { (ac_try="$ac_link"
20540 case "(($ac_try" in
20541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542   *) ac_try_echo=$ac_try;;
20543 esac
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545   (eval "$ac_link") 2>conftest.er1
20546   ac_status=$?
20547   grep -v '^ *+' conftest.er1 >conftest.err
20548   rm -f conftest.er1
20549   cat conftest.err >&5
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); } && {
20552          test -z "$ac_c_werror_flag" ||
20553          test ! -s conftest.err
20554        } && test -s conftest$ac_exeext &&
20555        $as_test_x conftest$ac_exeext; then
20556   ac_cv_search_opendir=$ac_res
20557 else
20558   echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20565       conftest$ac_exeext
20566   if test "${ac_cv_search_opendir+set}" = set; then
20567   break
20569 done
20570 if test "${ac_cv_search_opendir+set}" = set; then
20571   :
20572 else
20573   ac_cv_search_opendir=no
20575 rm conftest.$ac_ext
20576 LIBS=$ac_func_search_save_LIBS
20578 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20579 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20580 ac_res=$ac_cv_search_opendir
20581 if test "$ac_res" != no; then
20582   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20609 for ac_header in libgen.h 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 signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h
20611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20613   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20618 ac_res=`eval echo '${'$as_ac_Header'}'`
20619                { echo "$as_me:$LINENO: result: $ac_res" >&5
20620 echo "${ECHO_T}$ac_res" >&6; }
20621 else
20622   # Is the header compilable?
20623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h.  */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h.  */
20631 $ac_includes_default
20632 #include <$ac_header>
20633 _ACEOF
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638   *) ac_try_echo=$ac_try;;
20639 esac
20640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20641   (eval "$ac_compile") 2>conftest.er1
20642   ac_status=$?
20643   grep -v '^ *+' conftest.er1 >conftest.err
20644   rm -f conftest.er1
20645   cat conftest.err >&5
20646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); } && {
20648          test -z "$ac_c_werror_flag" ||
20649          test ! -s conftest.err
20650        } && test -s conftest.$ac_objext; then
20651   ac_header_compiler=yes
20652 else
20653   echo "$as_me: failed program was:" >&5
20654 sed 's/^/| /' conftest.$ac_ext >&5
20656         ac_header_compiler=no
20659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20661 echo "${ECHO_T}$ac_header_compiler" >&6; }
20663 # Is the header present?
20664 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20665 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20667 /* confdefs.h.  */
20668 _ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h.  */
20672 #include <$ac_header>
20673 _ACEOF
20674 if { (ac_try="$ac_cpp conftest.$ac_ext"
20675 case "(($ac_try" in
20676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677   *) ac_try_echo=$ac_try;;
20678 esac
20679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20681   ac_status=$?
20682   grep -v '^ *+' conftest.er1 >conftest.err
20683   rm -f conftest.er1
20684   cat conftest.err >&5
20685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686   (exit $ac_status); } >/dev/null && {
20687          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20688          test ! -s conftest.err
20689        }; then
20690   ac_header_preproc=yes
20691 else
20692   echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695   ac_header_preproc=no
20698 rm -f conftest.err conftest.$ac_ext
20699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20700 echo "${ECHO_T}$ac_header_preproc" >&6; }
20702 # So?  What about this header?
20703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20704   yes:no: )
20705     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20709     ac_header_preproc=yes
20710     ;;
20711   no:yes:* )
20712     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20714     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20715 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20716     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20718     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20719 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20722     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20725     ;;
20726 esac
20727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20730   echo $ECHO_N "(cached) $ECHO_C" >&6
20731 else
20732   eval "$as_ac_Header=\$ac_header_preproc"
20734 ac_res=`eval echo '${'$as_ac_Header'}'`
20735                { echo "$as_me:$LINENO: result: $ac_res" >&5
20736 echo "${ECHO_T}$ac_res" >&6; }
20739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20740   cat >>confdefs.h <<_ACEOF
20741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20742 _ACEOF
20746 done
20749 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20750 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20751 if test "${ac_cv_c_const+set}" = set; then
20752   echo $ECHO_N "(cached) $ECHO_C" >&6
20753 else
20754   cat >conftest.$ac_ext <<_ACEOF
20755 /* confdefs.h.  */
20756 _ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h.  */
20761 int
20762 main ()
20764 /* FIXME: Include the comments suggested by Paul. */
20765 #ifndef __cplusplus
20766   /* Ultrix mips cc rejects this.  */
20767   typedef int charset[2];
20768   const charset cs;
20769   /* SunOS 4.1.1 cc rejects this.  */
20770   char const *const *pcpcc;
20771   char **ppc;
20772   /* NEC SVR4.0.2 mips cc rejects this.  */
20773   struct point {int x, y;};
20774   static struct point const zero = {0,0};
20775   /* AIX XL C 1.02.0.0 rejects this.
20776      It does not let you subtract one const X* pointer from another in
20777      an arm of an if-expression whose if-part is not a constant
20778      expression */
20779   const char *g = "string";
20780   pcpcc = &g + (g ? g-g : 0);
20781   /* HPUX 7.0 cc rejects these. */
20782   ++pcpcc;
20783   ppc = (char**) pcpcc;
20784   pcpcc = (char const *const *) ppc;
20785   { /* SCO 3.2v4 cc rejects this.  */
20786     char *t;
20787     char const *s = 0 ? (char *) 0 : (char const *) 0;
20789     *t++ = 0;
20790     if (s) return 0;
20791   }
20792   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20793     int x[] = {25, 17};
20794     const int *foo = &x[0];
20795     ++foo;
20796   }
20797   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20798     typedef const int *iptr;
20799     iptr p = 0;
20800     ++p;
20801   }
20802   { /* AIX XL C 1.02.0.0 rejects this saying
20803        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20804     struct s { int j; const int *ap[3]; };
20805     struct s *b; b->j = 5;
20806   }
20807   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20808     const int foo = 10;
20809     if (!foo) return 0;
20810   }
20811   return !cs[0] && !zero.x;
20812 #endif
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_c_const=yes
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20840         ac_cv_c_const=no
20843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20845 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20846 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20847 if test $ac_cv_c_const = no; then
20849 cat >>confdefs.h <<\_ACEOF
20850 #define const
20851 _ACEOF
20855 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20856 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20857 if test "${ac_cv_header_time+set}" = set; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860   cat >conftest.$ac_ext <<_ACEOF
20861 /* confdefs.h.  */
20862 _ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h.  */
20866 #include <sys/types.h>
20867 #include <sys/time.h>
20868 #include <time.h>
20870 int
20871 main ()
20873 if ((struct tm *) 0)
20874 return 0;
20875   ;
20876   return 0;
20878 _ACEOF
20879 rm -f conftest.$ac_objext
20880 if { (ac_try="$ac_compile"
20881 case "(($ac_try" in
20882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883   *) ac_try_echo=$ac_try;;
20884 esac
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886   (eval "$ac_compile") 2>conftest.er1
20887   ac_status=$?
20888   grep -v '^ *+' conftest.er1 >conftest.err
20889   rm -f conftest.er1
20890   cat conftest.err >&5
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); } && {
20893          test -z "$ac_c_werror_flag" ||
20894          test ! -s conftest.err
20895        } && test -s conftest.$ac_objext; then
20896   ac_cv_header_time=yes
20897 else
20898   echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20901         ac_cv_header_time=no
20904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20906 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20907 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20908 if test $ac_cv_header_time = yes; then
20910 cat >>confdefs.h <<\_ACEOF
20911 #define TIME_WITH_SYS_TIME 1
20912 _ACEOF
20916 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20917 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20918 if test "${ac_cv_struct_tm+set}" = set; then
20919   echo $ECHO_N "(cached) $ECHO_C" >&6
20920 else
20921   cat >conftest.$ac_ext <<_ACEOF
20922 /* confdefs.h.  */
20923 _ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h.  */
20927 #include <sys/types.h>
20928 #include <time.h>
20930 int
20931 main ()
20933 struct tm tm;
20934                                      int *p = &tm.tm_sec;
20935                                      return !p;
20936   ;
20937   return 0;
20939 _ACEOF
20940 rm -f conftest.$ac_objext
20941 if { (ac_try="$ac_compile"
20942 case "(($ac_try" in
20943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944   *) ac_try_echo=$ac_try;;
20945 esac
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947   (eval "$ac_compile") 2>conftest.er1
20948   ac_status=$?
20949   grep -v '^ *+' conftest.er1 >conftest.err
20950   rm -f conftest.er1
20951   cat conftest.err >&5
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); } && {
20954          test -z "$ac_c_werror_flag" ||
20955          test ! -s conftest.err
20956        } && test -s conftest.$ac_objext; then
20957   ac_cv_struct_tm=time.h
20958 else
20959   echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20962         ac_cv_struct_tm=sys/time.h
20965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20967 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20968 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20969 if test $ac_cv_struct_tm = sys/time.h; then
20971 cat >>confdefs.h <<\_ACEOF
20972 #define TM_IN_SYS_TIME 1
20973 _ACEOF
20979 case $TERM in
20980        #   for the most important terminal types we directly know the sequences
20981        xterm|xterm*|vt220|vt220*)
20982                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20983                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20984        ;;
20985        vt100|vt100*|cygwin)
20986                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20987                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20988        ;;
20989        *)
20990                T_MD=''
20991                T_ME=''
20992        ;;
20993 esac
20994   { echo "$as_me:$LINENO: result: " >&5
20995 echo "${ECHO_T}" >&6; }
20996   { echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
20997 echo "${ECHO_T}${T_MD}Test Library Functions${T_ME}" >&6; }
21000 { echo "$as_me:$LINENO: checking for acos" >&5
21001 echo $ECHO_N "checking for acos... $ECHO_C" >&6; }
21002 if test "${ac_cv_func_acos+set}" = set; then
21003   echo $ECHO_N "(cached) $ECHO_C" >&6
21004 else
21005   cat >conftest.$ac_ext <<_ACEOF
21006 /* confdefs.h.  */
21007 _ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h.  */
21011 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
21012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21013 #define acos innocuous_acos
21015 /* System header to define __stub macros and hopefully few prototypes,
21016     which can conflict with char acos (); below.
21017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21018     <limits.h> exists even on freestanding compilers.  */
21020 #ifdef __STDC__
21021 # include <limits.h>
21022 #else
21023 # include <assert.h>
21024 #endif
21026 #undef acos
21028 /* Override any GCC internal prototype to avoid an error.
21029    Use char because int might match the return type of a GCC
21030    builtin and then its argument prototype would still apply.  */
21031 #ifdef __cplusplus
21032 extern "C"
21033 #endif
21034 char acos ();
21035 /* The GNU C library defines this for functions which it implements
21036     to always fail with ENOSYS.  Some functions are actually named
21037     something starting with __ and the normal name is an alias.  */
21038 #if defined __stub_acos || defined __stub___acos
21039 choke me
21040 #endif
21042 int
21043 main ()
21045 return acos ();
21046   ;
21047   return 0;
21049 _ACEOF
21050 rm -f conftest.$ac_objext conftest$ac_exeext
21051 if { (ac_try="$ac_link"
21052 case "(($ac_try" in
21053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054   *) ac_try_echo=$ac_try;;
21055 esac
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057   (eval "$ac_link") 2>conftest.er1
21058   ac_status=$?
21059   grep -v '^ *+' conftest.er1 >conftest.err
21060   rm -f conftest.er1
21061   cat conftest.err >&5
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); } && {
21064          test -z "$ac_c_werror_flag" ||
21065          test ! -s conftest.err
21066        } && test -s conftest$ac_exeext &&
21067        $as_test_x conftest$ac_exeext; then
21068   ac_cv_func_acos=yes
21069 else
21070   echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073         ac_cv_func_acos=no
21076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21077       conftest$ac_exeext conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
21080 echo "${ECHO_T}$ac_cv_func_acos" >&6; }
21081 if test $ac_cv_func_acos = yes; then
21082   :
21083 else
21085 { echo "$as_me:$LINENO: checking for acos in -lm" >&5
21086 echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6; }
21087 if test "${ac_cv_lib_m_acos+set}" = set; then
21088   echo $ECHO_N "(cached) $ECHO_C" >&6
21089 else
21090   ac_check_lib_save_LIBS=$LIBS
21091 LIBS="-lm  $LIBS"
21092 cat >conftest.$ac_ext <<_ACEOF
21093 /* confdefs.h.  */
21094 _ACEOF
21095 cat confdefs.h >>conftest.$ac_ext
21096 cat >>conftest.$ac_ext <<_ACEOF
21097 /* end confdefs.h.  */
21099 /* Override any GCC internal prototype to avoid an error.
21100    Use char because int might match the return type of a GCC
21101    builtin and then its argument prototype would still apply.  */
21102 #ifdef __cplusplus
21103 extern "C"
21104 #endif
21105 char acos ();
21106 int
21107 main ()
21109 return acos ();
21110   ;
21111   return 0;
21113 _ACEOF
21114 rm -f conftest.$ac_objext conftest$ac_exeext
21115 if { (ac_try="$ac_link"
21116 case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_link") 2>conftest.er1
21122   ac_status=$?
21123   grep -v '^ *+' conftest.er1 >conftest.err
21124   rm -f conftest.er1
21125   cat conftest.err >&5
21126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127   (exit $ac_status); } && {
21128          test -z "$ac_c_werror_flag" ||
21129          test ! -s conftest.err
21130        } && test -s conftest$ac_exeext &&
21131        $as_test_x conftest$ac_exeext; then
21132   ac_cv_lib_m_acos=yes
21133 else
21134   echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21137         ac_cv_lib_m_acos=no
21140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21141       conftest$ac_exeext conftest.$ac_ext
21142 LIBS=$ac_check_lib_save_LIBS
21144 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
21145 echo "${ECHO_T}$ac_cv_lib_m_acos" >&6; }
21146 if test $ac_cv_lib_m_acos = yes; then
21147   cat >>confdefs.h <<_ACEOF
21148 #define HAVE_LIBM 1
21149 _ACEOF
21151   LIBS="-lm $LIBS"
21159 eval `./libtool --config | grep pic_flag`
21160 CFLAGS="$CFLAGS $pic_flag"
21164 for ac_func in strftime
21166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21170   echo $ECHO_N "(cached) $ECHO_C" >&6
21171 else
21172   cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h.  */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h.  */
21178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21180 #define $ac_func innocuous_$ac_func
21182 /* System header to define __stub macros and hopefully few prototypes,
21183     which can conflict with char $ac_func (); below.
21184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21185     <limits.h> exists even on freestanding compilers.  */
21187 #ifdef __STDC__
21188 # include <limits.h>
21189 #else
21190 # include <assert.h>
21191 #endif
21193 #undef $ac_func
21195 /* Override any GCC internal prototype to avoid an error.
21196    Use char because int might match the return type of a GCC
21197    builtin and then its argument prototype would still apply.  */
21198 #ifdef __cplusplus
21199 extern "C"
21200 #endif
21201 char $ac_func ();
21202 /* The GNU C library defines this for functions which it implements
21203     to always fail with ENOSYS.  Some functions are actually named
21204     something starting with __ and the normal name is an alias.  */
21205 #if defined __stub_$ac_func || defined __stub___$ac_func
21206 choke me
21207 #endif
21209 int
21210 main ()
21212 return $ac_func ();
21213   ;
21214   return 0;
21216 _ACEOF
21217 rm -f conftest.$ac_objext conftest$ac_exeext
21218 if { (ac_try="$ac_link"
21219 case "(($ac_try" in
21220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221   *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224   (eval "$ac_link") 2>conftest.er1
21225   ac_status=$?
21226   grep -v '^ *+' conftest.er1 >conftest.err
21227   rm -f conftest.er1
21228   cat conftest.err >&5
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); } && {
21231          test -z "$ac_c_werror_flag" ||
21232          test ! -s conftest.err
21233        } && test -s conftest$ac_exeext &&
21234        $as_test_x conftest$ac_exeext; then
21235   eval "$as_ac_var=yes"
21236 else
21237   echo "$as_me: failed program was:" >&5
21238 sed 's/^/| /' conftest.$ac_ext >&5
21240         eval "$as_ac_var=no"
21243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21244       conftest$ac_exeext conftest.$ac_ext
21246 ac_res=`eval echo '${'$as_ac_var'}'`
21247                { echo "$as_me:$LINENO: result: $ac_res" >&5
21248 echo "${ECHO_T}$ac_res" >&6; }
21249 if test `eval echo '${'$as_ac_var'}'` = yes; then
21250   cat >>confdefs.h <<_ACEOF
21251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21252 _ACEOF
21254 else
21255   # strftime is in -lintl on SCO UNIX.
21256 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21257 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
21258 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21259   echo $ECHO_N "(cached) $ECHO_C" >&6
21260 else
21261   ac_check_lib_save_LIBS=$LIBS
21262 LIBS="-lintl  $LIBS"
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h.  */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h.  */
21270 /* Override any GCC internal prototype to avoid an error.
21271    Use char because int might match the return type of a GCC
21272    builtin and then its argument prototype would still apply.  */
21273 #ifdef __cplusplus
21274 extern "C"
21275 #endif
21276 char strftime ();
21277 int
21278 main ()
21280 return strftime ();
21281   ;
21282   return 0;
21284 _ACEOF
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (ac_try="$ac_link"
21287 case "(($ac_try" in
21288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289   *) ac_try_echo=$ac_try;;
21290 esac
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292   (eval "$ac_link") 2>conftest.er1
21293   ac_status=$?
21294   grep -v '^ *+' conftest.er1 >conftest.err
21295   rm -f conftest.er1
21296   cat conftest.err >&5
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); } && {
21299          test -z "$ac_c_werror_flag" ||
21300          test ! -s conftest.err
21301        } && test -s conftest$ac_exeext &&
21302        $as_test_x conftest$ac_exeext; then
21303   ac_cv_lib_intl_strftime=yes
21304 else
21305   echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308         ac_cv_lib_intl_strftime=no
21311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21312       conftest$ac_exeext conftest.$ac_ext
21313 LIBS=$ac_check_lib_save_LIBS
21315 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21316 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
21317 if test $ac_cv_lib_intl_strftime = yes; then
21318   cat >>confdefs.h <<\_ACEOF
21319 #define HAVE_STRFTIME 1
21320 _ACEOF
21322 LIBS="-lintl $LIBS"
21326 done
21329 for ac_func in vprintf
21331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21334 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21335   echo $ECHO_N "(cached) $ECHO_C" >&6
21336 else
21337   cat >conftest.$ac_ext <<_ACEOF
21338 /* confdefs.h.  */
21339 _ACEOF
21340 cat confdefs.h >>conftest.$ac_ext
21341 cat >>conftest.$ac_ext <<_ACEOF
21342 /* end confdefs.h.  */
21343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21344    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21345 #define $ac_func innocuous_$ac_func
21347 /* System header to define __stub macros and hopefully few prototypes,
21348     which can conflict with char $ac_func (); below.
21349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21350     <limits.h> exists even on freestanding compilers.  */
21352 #ifdef __STDC__
21353 # include <limits.h>
21354 #else
21355 # include <assert.h>
21356 #endif
21358 #undef $ac_func
21360 /* Override any GCC internal prototype to avoid an error.
21361    Use char because int might match the return type of a GCC
21362    builtin and then its argument prototype would still apply.  */
21363 #ifdef __cplusplus
21364 extern "C"
21365 #endif
21366 char $ac_func ();
21367 /* The GNU C library defines this for functions which it implements
21368     to always fail with ENOSYS.  Some functions are actually named
21369     something starting with __ and the normal name is an alias.  */
21370 #if defined __stub_$ac_func || defined __stub___$ac_func
21371 choke me
21372 #endif
21374 int
21375 main ()
21377 return $ac_func ();
21378   ;
21379   return 0;
21381 _ACEOF
21382 rm -f conftest.$ac_objext conftest$ac_exeext
21383 if { (ac_try="$ac_link"
21384 case "(($ac_try" in
21385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386   *) ac_try_echo=$ac_try;;
21387 esac
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389   (eval "$ac_link") 2>conftest.er1
21390   ac_status=$?
21391   grep -v '^ *+' conftest.er1 >conftest.err
21392   rm -f conftest.er1
21393   cat conftest.err >&5
21394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395   (exit $ac_status); } && {
21396          test -z "$ac_c_werror_flag" ||
21397          test ! -s conftest.err
21398        } && test -s conftest$ac_exeext &&
21399        $as_test_x conftest$ac_exeext; then
21400   eval "$as_ac_var=yes"
21401 else
21402   echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21405         eval "$as_ac_var=no"
21408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21409       conftest$ac_exeext conftest.$ac_ext
21411 ac_res=`eval echo '${'$as_ac_var'}'`
21412                { echo "$as_me:$LINENO: result: $ac_res" >&5
21413 echo "${ECHO_T}$ac_res" >&6; }
21414 if test `eval echo '${'$as_ac_var'}'` = yes; then
21415   cat >>confdefs.h <<_ACEOF
21416 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21417 _ACEOF
21419 { echo "$as_me:$LINENO: checking for _doprnt" >&5
21420 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
21421 if test "${ac_cv_func__doprnt+set}" = set; then
21422   echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424   cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h.  */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h.  */
21430 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21432 #define _doprnt innocuous__doprnt
21434 /* System header to define __stub macros and hopefully few prototypes,
21435     which can conflict with char _doprnt (); below.
21436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21437     <limits.h> exists even on freestanding compilers.  */
21439 #ifdef __STDC__
21440 # include <limits.h>
21441 #else
21442 # include <assert.h>
21443 #endif
21445 #undef _doprnt
21447 /* Override any GCC internal prototype to avoid an error.
21448    Use char because int might match the return type of a GCC
21449    builtin and then its argument prototype would still apply.  */
21450 #ifdef __cplusplus
21451 extern "C"
21452 #endif
21453 char _doprnt ();
21454 /* The GNU C library defines this for functions which it implements
21455     to always fail with ENOSYS.  Some functions are actually named
21456     something starting with __ and the normal name is an alias.  */
21457 #if defined __stub__doprnt || defined __stub____doprnt
21458 choke me
21459 #endif
21461 int
21462 main ()
21464 return _doprnt ();
21465   ;
21466   return 0;
21468 _ACEOF
21469 rm -f conftest.$ac_objext conftest$ac_exeext
21470 if { (ac_try="$ac_link"
21471 case "(($ac_try" in
21472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473   *) ac_try_echo=$ac_try;;
21474 esac
21475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21476   (eval "$ac_link") 2>conftest.er1
21477   ac_status=$?
21478   grep -v '^ *+' conftest.er1 >conftest.err
21479   rm -f conftest.er1
21480   cat conftest.err >&5
21481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482   (exit $ac_status); } && {
21483          test -z "$ac_c_werror_flag" ||
21484          test ! -s conftest.err
21485        } && test -s conftest$ac_exeext &&
21486        $as_test_x conftest$ac_exeext; then
21487   ac_cv_func__doprnt=yes
21488 else
21489   echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492         ac_cv_func__doprnt=no
21495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21496       conftest$ac_exeext conftest.$ac_ext
21498 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21499 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
21500 if test $ac_cv_func__doprnt = yes; then
21502 cat >>confdefs.h <<\_ACEOF
21503 #define HAVE_DOPRNT 1
21504 _ACEOF
21509 done
21513 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21514 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21515 if test "${ac_cv_c_bigendian+set}" = set; then
21516   echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518   # See if sys/param.h defines the BYTE_ORDER macro.
21519 cat >conftest.$ac_ext <<_ACEOF
21520 /* confdefs.h.  */
21521 _ACEOF
21522 cat confdefs.h >>conftest.$ac_ext
21523 cat >>conftest.$ac_ext <<_ACEOF
21524 /* end confdefs.h.  */
21525 #include <sys/types.h>
21526 #include <sys/param.h>
21528 int
21529 main ()
21531 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21532         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21533  bogus endian macros
21534 #endif
21536   ;
21537   return 0;
21539 _ACEOF
21540 rm -f conftest.$ac_objext
21541 if { (ac_try="$ac_compile"
21542 case "(($ac_try" in
21543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544   *) ac_try_echo=$ac_try;;
21545 esac
21546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21547   (eval "$ac_compile") 2>conftest.er1
21548   ac_status=$?
21549   grep -v '^ *+' conftest.er1 >conftest.err
21550   rm -f conftest.er1
21551   cat conftest.err >&5
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); } && {
21554          test -z "$ac_c_werror_flag" ||
21555          test ! -s conftest.err
21556        } && test -s conftest.$ac_objext; then
21557   # It does; now see whether it defined to BIG_ENDIAN or not.
21558 cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h.  */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h.  */
21564 #include <sys/types.h>
21565 #include <sys/param.h>
21567 int
21568 main ()
21570 #if BYTE_ORDER != BIG_ENDIAN
21571  not big endian
21572 #endif
21574   ;
21575   return 0;
21577 _ACEOF
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21586   ac_status=$?
21587   grep -v '^ *+' conftest.er1 >conftest.err
21588   rm -f conftest.er1
21589   cat conftest.err >&5
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); } && {
21592          test -z "$ac_c_werror_flag" ||
21593          test ! -s conftest.err
21594        } && test -s conftest.$ac_objext; then
21595   ac_cv_c_bigendian=yes
21596 else
21597   echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21600         ac_cv_c_bigendian=no
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 else
21605   echo "$as_me: failed program was:" >&5
21606 sed 's/^/| /' conftest.$ac_ext >&5
21608         # It does not; compile a test program.
21609 if test "$cross_compiling" = yes; then
21610   # try to guess the endianness by grepping values into an object file
21611   ac_cv_c_bigendian=unknown
21612   cat >conftest.$ac_ext <<_ACEOF
21613 /* confdefs.h.  */
21614 _ACEOF
21615 cat confdefs.h >>conftest.$ac_ext
21616 cat >>conftest.$ac_ext <<_ACEOF
21617 /* end confdefs.h.  */
21618 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21619 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21620 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21621 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21622 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21623 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21624 int
21625 main ()
21627  _ascii (); _ebcdic ();
21628   ;
21629   return 0;
21631 _ACEOF
21632 rm -f conftest.$ac_objext
21633 if { (ac_try="$ac_compile"
21634 case "(($ac_try" in
21635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636   *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639   (eval "$ac_compile") 2>conftest.er1
21640   ac_status=$?
21641   grep -v '^ *+' conftest.er1 >conftest.err
21642   rm -f conftest.er1
21643   cat conftest.err >&5
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); } && {
21646          test -z "$ac_c_werror_flag" ||
21647          test ! -s conftest.err
21648        } && test -s conftest.$ac_objext; then
21649   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21650   ac_cv_c_bigendian=yes
21652 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21653   if test "$ac_cv_c_bigendian" = unknown; then
21654     ac_cv_c_bigendian=no
21655   else
21656     # finding both strings is unlikely to happen, but who knows?
21657     ac_cv_c_bigendian=unknown
21658   fi
21660 else
21661   echo "$as_me: failed program was:" >&5
21662 sed 's/^/| /' conftest.$ac_ext >&5
21667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21668 else
21669   cat >conftest.$ac_ext <<_ACEOF
21670 /* confdefs.h.  */
21671 _ACEOF
21672 cat confdefs.h >>conftest.$ac_ext
21673 cat >>conftest.$ac_ext <<_ACEOF
21674 /* end confdefs.h.  */
21675 $ac_includes_default
21676 int
21677 main ()
21680   /* Are we little or big endian?  From Harbison&Steele.  */
21681   union
21682   {
21683     long int l;
21684     char c[sizeof (long int)];
21685   } u;
21686   u.l = 1;
21687   return u.c[sizeof (long int) - 1] == 1;
21689   ;
21690   return 0;
21692 _ACEOF
21693 rm -f conftest$ac_exeext
21694 if { (ac_try="$ac_link"
21695 case "(($ac_try" in
21696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697   *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700   (eval "$ac_link") 2>&5
21701   ac_status=$?
21702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21704   { (case "(($ac_try" in
21705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706   *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709   (eval "$ac_try") 2>&5
21710   ac_status=$?
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); }; }; then
21713   ac_cv_c_bigendian=no
21714 else
21715   echo "$as_me: program exited with status $ac_status" >&5
21716 echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ( exit $ac_status )
21720 ac_cv_c_bigendian=yes
21722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21730 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21731 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21732 case $ac_cv_c_bigendian in
21733   yes)
21735 cat >>confdefs.h <<\_ACEOF
21736 #define WORDS_BIGENDIAN 1
21737 _ACEOF
21738  ;;
21739   no)
21740      ;;
21741   *)
21742     { { echo "$as_me:$LINENO: error: unknown endianness
21743 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21744 echo "$as_me: error: unknown endianness
21745 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21746    { (exit 1); exit 1; }; } ;;
21747 esac
21772 for ac_func in tzset fsync mbstowcs opendir readdir chdir chroot getuid setlocale strerror snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
21774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21775 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21777 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21778   echo $ECHO_N "(cached) $ECHO_C" >&6
21779 else
21780   cat >conftest.$ac_ext <<_ACEOF
21781 /* confdefs.h.  */
21782 _ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h.  */
21786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21788 #define $ac_func innocuous_$ac_func
21790 /* System header to define __stub macros and hopefully few prototypes,
21791     which can conflict with char $ac_func (); below.
21792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21793     <limits.h> exists even on freestanding compilers.  */
21795 #ifdef __STDC__
21796 # include <limits.h>
21797 #else
21798 # include <assert.h>
21799 #endif
21801 #undef $ac_func
21803 /* Override any GCC internal prototype to avoid an error.
21804    Use char because int might match the return type of a GCC
21805    builtin and then its argument prototype would still apply.  */
21806 #ifdef __cplusplus
21807 extern "C"
21808 #endif
21809 char $ac_func ();
21810 /* The GNU C library defines this for functions which it implements
21811     to always fail with ENOSYS.  Some functions are actually named
21812     something starting with __ and the normal name is an alias.  */
21813 #if defined __stub_$ac_func || defined __stub___$ac_func
21814 choke me
21815 #endif
21817 int
21818 main ()
21820 return $ac_func ();
21821   ;
21822   return 0;
21824 _ACEOF
21825 rm -f conftest.$ac_objext conftest$ac_exeext
21826 if { (ac_try="$ac_link"
21827 case "(($ac_try" in
21828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829   *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832   (eval "$ac_link") 2>conftest.er1
21833   ac_status=$?
21834   grep -v '^ *+' conftest.er1 >conftest.err
21835   rm -f conftest.er1
21836   cat conftest.err >&5
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); } && {
21839          test -z "$ac_c_werror_flag" ||
21840          test ! -s conftest.err
21841        } && test -s conftest$ac_exeext &&
21842        $as_test_x conftest$ac_exeext; then
21843   eval "$as_ac_var=yes"
21844 else
21845   echo "$as_me: failed program was:" >&5
21846 sed 's/^/| /' conftest.$ac_ext >&5
21848         eval "$as_ac_var=no"
21851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21852       conftest$ac_exeext conftest.$ac_ext
21854 ac_res=`eval echo '${'$as_ac_var'}'`
21855                { echo "$as_me:$LINENO: result: $ac_res" >&5
21856 echo "${ECHO_T}$ac_res" >&6; }
21857 if test `eval echo '${'$as_ac_var'}'` = yes; then
21858   cat >>confdefs.h <<_ACEOF
21859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21860 _ACEOF
21863 done
21866 { echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
21867 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6; }
21868 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
21869   echo $ECHO_N "(cached) $ECHO_C" >&6
21870 else
21871   cat >conftest.$ac_ext <<_ACEOF
21872 /* confdefs.h.  */
21873 _ACEOF
21874 cat confdefs.h >>conftest.$ac_ext
21875 cat >>conftest.$ac_ext <<_ACEOF
21876 /* end confdefs.h.  */
21877 $ac_includes_default
21878 int
21879 main ()
21881 #ifndef strerror_r
21882   (void) strerror_r;
21883 #endif
21885   ;
21886   return 0;
21888 _ACEOF
21889 rm -f conftest.$ac_objext
21890 if { (ac_try="$ac_compile"
21891 case "(($ac_try" in
21892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893   *) ac_try_echo=$ac_try;;
21894 esac
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896   (eval "$ac_compile") 2>conftest.er1
21897   ac_status=$?
21898   grep -v '^ *+' conftest.er1 >conftest.err
21899   rm -f conftest.er1
21900   cat conftest.err >&5
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); } && {
21903          test -z "$ac_c_werror_flag" ||
21904          test ! -s conftest.err
21905        } && test -s conftest.$ac_objext; then
21906   ac_cv_have_decl_strerror_r=yes
21907 else
21908   echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21911         ac_cv_have_decl_strerror_r=no
21914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
21917 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6; }
21918 if test $ac_cv_have_decl_strerror_r = yes; then
21920 cat >>confdefs.h <<_ACEOF
21921 #define HAVE_DECL_STRERROR_R 1
21922 _ACEOF
21925 else
21926   cat >>confdefs.h <<_ACEOF
21927 #define HAVE_DECL_STRERROR_R 0
21928 _ACEOF
21935 for ac_func in strerror_r
21937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21941   echo $ECHO_N "(cached) $ECHO_C" >&6
21942 else
21943   cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h.  */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h.  */
21949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21950    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21951 #define $ac_func innocuous_$ac_func
21953 /* System header to define __stub macros and hopefully few prototypes,
21954     which can conflict with char $ac_func (); below.
21955     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21956     <limits.h> exists even on freestanding compilers.  */
21958 #ifdef __STDC__
21959 # include <limits.h>
21960 #else
21961 # include <assert.h>
21962 #endif
21964 #undef $ac_func
21966 /* Override any GCC internal prototype to avoid an error.
21967    Use char because int might match the return type of a GCC
21968    builtin and then its argument prototype would still apply.  */
21969 #ifdef __cplusplus
21970 extern "C"
21971 #endif
21972 char $ac_func ();
21973 /* The GNU C library defines this for functions which it implements
21974     to always fail with ENOSYS.  Some functions are actually named
21975     something starting with __ and the normal name is an alias.  */
21976 #if defined __stub_$ac_func || defined __stub___$ac_func
21977 choke me
21978 #endif
21980 int
21981 main ()
21983 return $ac_func ();
21984   ;
21985   return 0;
21987 _ACEOF
21988 rm -f conftest.$ac_objext conftest$ac_exeext
21989 if { (ac_try="$ac_link"
21990 case "(($ac_try" in
21991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992   *) ac_try_echo=$ac_try;;
21993 esac
21994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21995   (eval "$ac_link") 2>conftest.er1
21996   ac_status=$?
21997   grep -v '^ *+' conftest.er1 >conftest.err
21998   rm -f conftest.er1
21999   cat conftest.err >&5
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); } && {
22002          test -z "$ac_c_werror_flag" ||
22003          test ! -s conftest.err
22004        } && test -s conftest$ac_exeext &&
22005        $as_test_x conftest$ac_exeext; then
22006   eval "$as_ac_var=yes"
22007 else
22008   echo "$as_me: failed program was:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22011         eval "$as_ac_var=no"
22014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22015       conftest$ac_exeext conftest.$ac_ext
22017 ac_res=`eval echo '${'$as_ac_var'}'`
22018                { echo "$as_me:$LINENO: result: $ac_res" >&5
22019 echo "${ECHO_T}$ac_res" >&6; }
22020 if test `eval echo '${'$as_ac_var'}'` = yes; then
22021   cat >>confdefs.h <<_ACEOF
22022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22023 _ACEOF
22026 done
22028 { echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
22029 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6; }
22030 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
22031   echo $ECHO_N "(cached) $ECHO_C" >&6
22032 else
22034     ac_cv_func_strerror_r_char_p=no
22035     if test $ac_cv_have_decl_strerror_r = yes; then
22036       cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h.  */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h.  */
22042 $ac_includes_default
22043 int
22044 main ()
22047           char buf[100];
22048           char x = *strerror_r (0, buf, sizeof buf);
22049           char *p = strerror_r (0, buf, sizeof buf);
22050           return !p || x;
22052   ;
22053   return 0;
22055 _ACEOF
22056 rm -f conftest.$ac_objext
22057 if { (ac_try="$ac_compile"
22058 case "(($ac_try" in
22059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060   *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063   (eval "$ac_compile") 2>conftest.er1
22064   ac_status=$?
22065   grep -v '^ *+' conftest.er1 >conftest.err
22066   rm -f conftest.er1
22067   cat conftest.err >&5
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); } && {
22070          test -z "$ac_c_werror_flag" ||
22071          test ! -s conftest.err
22072        } && test -s conftest.$ac_objext; then
22073   ac_cv_func_strerror_r_char_p=yes
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082     else
22083       # strerror_r is not declared.  Choose between
22084       # systems that have relatively inaccessible declarations for the
22085       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
22086       # former has a strerror_r that returns char*, while the latter
22087       # has a strerror_r that returns `int'.
22088       # This test should segfault on the DEC system.
22089       if test "$cross_compiling" = yes; then
22090   :
22091 else
22092   cat >conftest.$ac_ext <<_ACEOF
22093 /* confdefs.h.  */
22094 _ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h.  */
22098 $ac_includes_default
22099         extern char *strerror_r ();
22100 int
22101 main ()
22103 char buf[100];
22104           char x = *strerror_r (0, buf, sizeof buf);
22105           return ! isalpha (x);
22106   ;
22107   return 0;
22109 _ACEOF
22110 rm -f conftest$ac_exeext
22111 if { (ac_try="$ac_link"
22112 case "(($ac_try" in
22113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114   *) ac_try_echo=$ac_try;;
22115 esac
22116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117   (eval "$ac_link") 2>&5
22118   ac_status=$?
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22121   { (case "(($ac_try" in
22122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123   *) ac_try_echo=$ac_try;;
22124 esac
22125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22126   (eval "$ac_try") 2>&5
22127   ac_status=$?
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); }; }; then
22130   ac_cv_func_strerror_r_char_p=yes
22131 else
22132   echo "$as_me: program exited with status $ac_status" >&5
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22141     fi
22144 { echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
22145 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6; }
22146 if test $ac_cv_func_strerror_r_char_p = yes; then
22148 cat >>confdefs.h <<\_ACEOF
22149 #define STRERROR_R_CHAR_P 1
22150 _ACEOF
22156 case $TERM in
22157        #   for the most important terminal types we directly know the sequences
22158        xterm|xterm*|vt220|vt220*)
22159                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
22160                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
22161        ;;
22162        vt100|vt100*|cygwin)
22163                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
22164                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
22165        ;;
22166        *)
22167                T_MD=''
22168                T_ME=''
22169        ;;
22170 esac
22171   { echo "$as_me:$LINENO: result: " >&5
22172 echo "${ECHO_T}" >&6; }
22173   { echo "$as_me:$LINENO: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
22174 echo "${ECHO_T}${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
22180 for ac_func in fdatasync
22182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22183 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22185 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22186   echo $ECHO_N "(cached) $ECHO_C" >&6
22187 else
22188   cat >conftest.$ac_ext <<_ACEOF
22189 /* confdefs.h.  */
22190 _ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h.  */
22194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22196 #define $ac_func innocuous_$ac_func
22198 /* System header to define __stub macros and hopefully few prototypes,
22199     which can conflict with char $ac_func (); below.
22200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22201     <limits.h> exists even on freestanding compilers.  */
22203 #ifdef __STDC__
22204 # include <limits.h>
22205 #else
22206 # include <assert.h>
22207 #endif
22209 #undef $ac_func
22211 /* Override any GCC internal prototype to avoid an error.
22212    Use char because int might match the return type of a GCC
22213    builtin and then its argument prototype would still apply.  */
22214 #ifdef __cplusplus
22215 extern "C"
22216 #endif
22217 char $ac_func ();
22218 /* The GNU C library defines this for functions which it implements
22219     to always fail with ENOSYS.  Some functions are actually named
22220     something starting with __ and the normal name is an alias.  */
22221 #if defined __stub_$ac_func || defined __stub___$ac_func
22222 choke me
22223 #endif
22225 int
22226 main ()
22228 return $ac_func ();
22229   ;
22230   return 0;
22232 _ACEOF
22233 rm -f conftest.$ac_objext conftest$ac_exeext
22234 if { (ac_try="$ac_link"
22235 case "(($ac_try" in
22236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237   *) ac_try_echo=$ac_try;;
22238 esac
22239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22240   (eval "$ac_link") 2>conftest.er1
22241   ac_status=$?
22242   grep -v '^ *+' conftest.er1 >conftest.err
22243   rm -f conftest.er1
22244   cat conftest.err >&5
22245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246   (exit $ac_status); } && {
22247          test -z "$ac_c_werror_flag" ||
22248          test ! -s conftest.err
22249        } && test -s conftest$ac_exeext &&
22250        $as_test_x conftest$ac_exeext; then
22251   eval "$as_ac_var=yes"
22252 else
22253   echo "$as_me: failed program was:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256         eval "$as_ac_var=no"
22259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22260       conftest$ac_exeext conftest.$ac_ext
22262 ac_res=`eval echo '${'$as_ac_var'}'`
22263                { echo "$as_me:$LINENO: result: $ac_res" >&5
22264 echo "${ECHO_T}$ac_res" >&6; }
22265 if test `eval echo '${'$as_ac_var'}'` = yes; then
22266   cat >>confdefs.h <<_ACEOF
22267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22268 _ACEOF
22270 else
22271   { echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
22272 echo $ECHO_N "checking for fdatasync in -lrt... $ECHO_C" >&6; }
22273 if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
22274   echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22276   ac_check_lib_save_LIBS=$LIBS
22277 LIBS="-lrt  $LIBS"
22278 cat >conftest.$ac_ext <<_ACEOF
22279 /* confdefs.h.  */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h.  */
22285 /* Override any GCC internal prototype to avoid an error.
22286    Use char because int might match the return type of a GCC
22287    builtin and then its argument prototype would still apply.  */
22288 #ifdef __cplusplus
22289 extern "C"
22290 #endif
22291 char fdatasync ();
22292 int
22293 main ()
22295 return fdatasync ();
22296   ;
22297   return 0;
22299 _ACEOF
22300 rm -f conftest.$ac_objext conftest$ac_exeext
22301 if { (ac_try="$ac_link"
22302 case "(($ac_try" in
22303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304   *) ac_try_echo=$ac_try;;
22305 esac
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307   (eval "$ac_link") 2>conftest.er1
22308   ac_status=$?
22309   grep -v '^ *+' conftest.er1 >conftest.err
22310   rm -f conftest.er1
22311   cat conftest.err >&5
22312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313   (exit $ac_status); } && {
22314          test -z "$ac_c_werror_flag" ||
22315          test ! -s conftest.err
22316        } && test -s conftest$ac_exeext &&
22317        $as_test_x conftest$ac_exeext; then
22318   ac_cv_lib_rt_fdatasync=yes
22319 else
22320   echo "$as_me: failed program was:" >&5
22321 sed 's/^/| /' conftest.$ac_ext >&5
22323         ac_cv_lib_rt_fdatasync=no
22326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22327       conftest$ac_exeext conftest.$ac_ext
22328 LIBS=$ac_check_lib_save_LIBS
22330 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
22331 echo "${ECHO_T}$ac_cv_lib_rt_fdatasync" >&6; }
22332 if test $ac_cv_lib_rt_fdatasync = yes; then
22333   LIBS="${LIBS} -lrt"; cat >>confdefs.h <<\_ACEOF
22334 #define HAVE_FDATASYNC 1
22335 _ACEOF
22340 done
22343 for ac_func in fsync
22345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22349   echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351   cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22358    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22359 #define $ac_func innocuous_$ac_func
22361 /* System header to define __stub macros and hopefully few prototypes,
22362     which can conflict with char $ac_func (); below.
22363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22364     <limits.h> exists even on freestanding compilers.  */
22366 #ifdef __STDC__
22367 # include <limits.h>
22368 #else
22369 # include <assert.h>
22370 #endif
22372 #undef $ac_func
22374 /* Override any GCC internal prototype to avoid an error.
22375    Use char because int might match the return type of a GCC
22376    builtin and then its argument prototype would still apply.  */
22377 #ifdef __cplusplus
22378 extern "C"
22379 #endif
22380 char $ac_func ();
22381 /* The GNU C library defines this for functions which it implements
22382     to always fail with ENOSYS.  Some functions are actually named
22383     something starting with __ and the normal name is an alias.  */
22384 #if defined __stub_$ac_func || defined __stub___$ac_func
22385 choke me
22386 #endif
22388 int
22389 main ()
22391 return $ac_func ();
22392   ;
22393   return 0;
22395 _ACEOF
22396 rm -f conftest.$ac_objext conftest$ac_exeext
22397 if { (ac_try="$ac_link"
22398 case "(($ac_try" in
22399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22400   *) ac_try_echo=$ac_try;;
22401 esac
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403   (eval "$ac_link") 2>conftest.er1
22404   ac_status=$?
22405   grep -v '^ *+' conftest.er1 >conftest.err
22406   rm -f conftest.er1
22407   cat conftest.err >&5
22408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409   (exit $ac_status); } && {
22410          test -z "$ac_c_werror_flag" ||
22411          test ! -s conftest.err
22412        } && test -s conftest$ac_exeext &&
22413        $as_test_x conftest$ac_exeext; then
22414   eval "$as_ac_var=yes"
22415 else
22416   echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22419         eval "$as_ac_var=no"
22422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22423       conftest$ac_exeext conftest.$ac_ext
22425 ac_res=`eval echo '${'$as_ac_var'}'`
22426                { echo "$as_me:$LINENO: result: $ac_res" >&5
22427 echo "${ECHO_T}$ac_res" >&6; }
22428 if test `eval echo '${'$as_ac_var'}'` = yes; then
22429   cat >>confdefs.h <<_ACEOF
22430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22431 _ACEOF
22434 done
22438 if test "x$enable_mmap" = "xyes"; then
22439   case "$host" in
22440   *cygwin*)
22441     # the normal mmap test does not work in cygwin
22443 for ac_func in mmap
22445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22446 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22449   echo $ECHO_N "(cached) $ECHO_C" >&6
22450 else
22451   cat >conftest.$ac_ext <<_ACEOF
22452 /* confdefs.h.  */
22453 _ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h.  */
22457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22459 #define $ac_func innocuous_$ac_func
22461 /* System header to define __stub macros and hopefully few prototypes,
22462     which can conflict with char $ac_func (); below.
22463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22464     <limits.h> exists even on freestanding compilers.  */
22466 #ifdef __STDC__
22467 # include <limits.h>
22468 #else
22469 # include <assert.h>
22470 #endif
22472 #undef $ac_func
22474 /* Override any GCC internal prototype to avoid an error.
22475    Use char because int might match the return type of a GCC
22476    builtin and then its argument prototype would still apply.  */
22477 #ifdef __cplusplus
22478 extern "C"
22479 #endif
22480 char $ac_func ();
22481 /* The GNU C library defines this for functions which it implements
22482     to always fail with ENOSYS.  Some functions are actually named
22483     something starting with __ and the normal name is an alias.  */
22484 #if defined __stub_$ac_func || defined __stub___$ac_func
22485 choke me
22486 #endif
22488 int
22489 main ()
22491 return $ac_func ();
22492   ;
22493   return 0;
22495 _ACEOF
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (ac_try="$ac_link"
22498 case "(($ac_try" in
22499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500   *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503   (eval "$ac_link") 2>conftest.er1
22504   ac_status=$?
22505   grep -v '^ *+' conftest.er1 >conftest.err
22506   rm -f conftest.er1
22507   cat conftest.err >&5
22508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509   (exit $ac_status); } && {
22510          test -z "$ac_c_werror_flag" ||
22511          test ! -s conftest.err
22512        } && test -s conftest$ac_exeext &&
22513        $as_test_x conftest$ac_exeext; then
22514   eval "$as_ac_var=yes"
22515 else
22516   echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22519         eval "$as_ac_var=no"
22522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22523       conftest$ac_exeext conftest.$ac_ext
22525 ac_res=`eval echo '${'$as_ac_var'}'`
22526                { echo "$as_me:$LINENO: result: $ac_res" >&5
22527 echo "${ECHO_T}$ac_res" >&6; }
22528 if test `eval echo '${'$as_ac_var'}'` = yes; then
22529   cat >>confdefs.h <<_ACEOF
22530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22531 _ACEOF
22534 done
22536     if test "x$ac_cv_func_mmap" = "xyes"; then
22537       ac_cv_func_mmap_fixed_mapped=yes
22538     fi
22539   ;;
22540   *)
22542 for ac_header in sys/mman.h
22544 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22546   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22549   echo $ECHO_N "(cached) $ECHO_C" >&6
22551 ac_res=`eval echo '${'$as_ac_Header'}'`
22552                { echo "$as_me:$LINENO: result: $ac_res" >&5
22553 echo "${ECHO_T}$ac_res" >&6; }
22554 else
22555   # Is the header compilable?
22556 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22558 cat >conftest.$ac_ext <<_ACEOF
22559 /* confdefs.h.  */
22560 _ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h.  */
22564 $ac_includes_default
22565 #include <$ac_header>
22566 _ACEOF
22567 rm -f conftest.$ac_objext
22568 if { (ac_try="$ac_compile"
22569 case "(($ac_try" in
22570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22571   *) ac_try_echo=$ac_try;;
22572 esac
22573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22574   (eval "$ac_compile") 2>conftest.er1
22575   ac_status=$?
22576   grep -v '^ *+' conftest.er1 >conftest.err
22577   rm -f conftest.er1
22578   cat conftest.err >&5
22579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580   (exit $ac_status); } && {
22581          test -z "$ac_c_werror_flag" ||
22582          test ! -s conftest.err
22583        } && test -s conftest.$ac_objext; then
22584   ac_header_compiler=yes
22585 else
22586   echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589         ac_header_compiler=no
22592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22594 echo "${ECHO_T}$ac_header_compiler" >&6; }
22596 # Is the header present?
22597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22599 cat >conftest.$ac_ext <<_ACEOF
22600 /* confdefs.h.  */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h.  */
22605 #include <$ac_header>
22606 _ACEOF
22607 if { (ac_try="$ac_cpp conftest.$ac_ext"
22608 case "(($ac_try" in
22609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610   *) ac_try_echo=$ac_try;;
22611 esac
22612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22613   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22614   ac_status=$?
22615   grep -v '^ *+' conftest.er1 >conftest.err
22616   rm -f conftest.er1
22617   cat conftest.err >&5
22618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619   (exit $ac_status); } >/dev/null && {
22620          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22621          test ! -s conftest.err
22622        }; then
22623   ac_header_preproc=yes
22624 else
22625   echo "$as_me: failed program was:" >&5
22626 sed 's/^/| /' conftest.$ac_ext >&5
22628   ac_header_preproc=no
22631 rm -f conftest.err conftest.$ac_ext
22632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22633 echo "${ECHO_T}$ac_header_preproc" >&6; }
22635 # So?  What about this header?
22636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22637   yes:no: )
22638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22642     ac_header_preproc=yes
22643     ;;
22644   no:yes:* )
22645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22658     ;;
22659 esac
22660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22663   echo $ECHO_N "(cached) $ECHO_C" >&6
22664 else
22665   eval "$as_ac_Header=\$ac_header_preproc"
22667 ac_res=`eval echo '${'$as_ac_Header'}'`
22668                { echo "$as_me:$LINENO: result: $ac_res" >&5
22669 echo "${ECHO_T}$ac_res" >&6; }
22672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22673   cat >>confdefs.h <<_ACEOF
22674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22675 _ACEOF
22679 done
22683 for ac_header in stdlib.h unistd.h
22685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22687   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22690   echo $ECHO_N "(cached) $ECHO_C" >&6
22692 ac_res=`eval echo '${'$as_ac_Header'}'`
22693                { echo "$as_me:$LINENO: result: $ac_res" >&5
22694 echo "${ECHO_T}$ac_res" >&6; }
22695 else
22696   # Is the header compilable?
22697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22699 cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h.  */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h.  */
22705 $ac_includes_default
22706 #include <$ac_header>
22707 _ACEOF
22708 rm -f conftest.$ac_objext
22709 if { (ac_try="$ac_compile"
22710 case "(($ac_try" in
22711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712   *) ac_try_echo=$ac_try;;
22713 esac
22714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22715   (eval "$ac_compile") 2>conftest.er1
22716   ac_status=$?
22717   grep -v '^ *+' conftest.er1 >conftest.err
22718   rm -f conftest.er1
22719   cat conftest.err >&5
22720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721   (exit $ac_status); } && {
22722          test -z "$ac_c_werror_flag" ||
22723          test ! -s conftest.err
22724        } && test -s conftest.$ac_objext; then
22725   ac_header_compiler=yes
22726 else
22727   echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22730         ac_header_compiler=no
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22735 echo "${ECHO_T}$ac_header_compiler" >&6; }
22737 # Is the header present?
22738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22740 cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h.  */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h.  */
22746 #include <$ac_header>
22747 _ACEOF
22748 if { (ac_try="$ac_cpp conftest.$ac_ext"
22749 case "(($ac_try" in
22750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22751   *) ac_try_echo=$ac_try;;
22752 esac
22753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22755   ac_status=$?
22756   grep -v '^ *+' conftest.er1 >conftest.err
22757   rm -f conftest.er1
22758   cat conftest.err >&5
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); } >/dev/null && {
22761          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22762          test ! -s conftest.err
22763        }; then
22764   ac_header_preproc=yes
22765 else
22766   echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.$ac_ext >&5
22769   ac_header_preproc=no
22772 rm -f conftest.err conftest.$ac_ext
22773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22774 echo "${ECHO_T}$ac_header_preproc" >&6; }
22776 # So?  What about this header?
22777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22778   yes:no: )
22779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22783     ac_header_preproc=yes
22784     ;;
22785   no:yes:* )
22786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22788     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22789 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22790     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22792     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22793 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22796     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22799     ;;
22800 esac
22801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22804   echo $ECHO_N "(cached) $ECHO_C" >&6
22805 else
22806   eval "$as_ac_Header=\$ac_header_preproc"
22808 ac_res=`eval echo '${'$as_ac_Header'}'`
22809                { echo "$as_me:$LINENO: result: $ac_res" >&5
22810 echo "${ECHO_T}$ac_res" >&6; }
22813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22814   cat >>confdefs.h <<_ACEOF
22815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22816 _ACEOF
22820 done
22823 for ac_func in getpagesize
22825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22829   echo $ECHO_N "(cached) $ECHO_C" >&6
22830 else
22831   cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h.  */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h.  */
22837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22839 #define $ac_func innocuous_$ac_func
22841 /* System header to define __stub macros and hopefully few prototypes,
22842     which can conflict with char $ac_func (); below.
22843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22844     <limits.h> exists even on freestanding compilers.  */
22846 #ifdef __STDC__
22847 # include <limits.h>
22848 #else
22849 # include <assert.h>
22850 #endif
22852 #undef $ac_func
22854 /* Override any GCC internal prototype to avoid an error.
22855    Use char because int might match the return type of a GCC
22856    builtin and then its argument prototype would still apply.  */
22857 #ifdef __cplusplus
22858 extern "C"
22859 #endif
22860 char $ac_func ();
22861 /* The GNU C library defines this for functions which it implements
22862     to always fail with ENOSYS.  Some functions are actually named
22863     something starting with __ and the normal name is an alias.  */
22864 #if defined __stub_$ac_func || defined __stub___$ac_func
22865 choke me
22866 #endif
22868 int
22869 main ()
22871 return $ac_func ();
22872   ;
22873   return 0;
22875 _ACEOF
22876 rm -f conftest.$ac_objext conftest$ac_exeext
22877 if { (ac_try="$ac_link"
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_link") 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_exeext &&
22893        $as_test_x conftest$ac_exeext; then
22894   eval "$as_ac_var=yes"
22895 else
22896   echo "$as_me: failed program was:" >&5
22897 sed 's/^/| /' conftest.$ac_ext >&5
22899         eval "$as_ac_var=no"
22902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22903       conftest$ac_exeext conftest.$ac_ext
22905 ac_res=`eval echo '${'$as_ac_var'}'`
22906                { echo "$as_me:$LINENO: result: $ac_res" >&5
22907 echo "${ECHO_T}$ac_res" >&6; }
22908 if test `eval echo '${'$as_ac_var'}'` = yes; then
22909   cat >>confdefs.h <<_ACEOF
22910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22911 _ACEOF
22914 done
22916 { echo "$as_me:$LINENO: checking for working mmap" >&5
22917 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22918 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22919   echo $ECHO_N "(cached) $ECHO_C" >&6
22920 else
22921   if test "$cross_compiling" = yes; then
22922   ac_cv_func_mmap_fixed_mapped=no
22923 else
22924   cat >conftest.$ac_ext <<_ACEOF
22925 /* confdefs.h.  */
22926 _ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h.  */
22930 $ac_includes_default
22931 /* malloc might have been renamed as rpl_malloc. */
22932 #undef malloc
22934 /* Thanks to Mike Haertel and Jim Avera for this test.
22935    Here is a matrix of mmap possibilities:
22936         mmap private not fixed
22937         mmap private fixed at somewhere currently unmapped
22938         mmap private fixed at somewhere already mapped
22939         mmap shared not fixed
22940         mmap shared fixed at somewhere currently unmapped
22941         mmap shared fixed at somewhere already mapped
22942    For private mappings, we should verify that changes cannot be read()
22943    back from the file, nor mmap's back from the file at a different
22944    address.  (There have been systems where private was not correctly
22945    implemented like the infamous i386 svr4.0, and systems where the
22946    VM page cache was not coherent with the file system buffer cache
22947    like early versions of FreeBSD and possibly contemporary NetBSD.)
22948    For shared mappings, we should conversely verify that changes get
22949    propagated back to all the places they're supposed to be.
22951    Grep wants private fixed already mapped.
22952    The main things grep needs to know about mmap are:
22953    * does it exist and is it safe to write into the mmap'd area
22954    * how to use it (BSD variants)  */
22956 #include <fcntl.h>
22957 #include <sys/mman.h>
22959 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22960 char *malloc ();
22961 #endif
22963 /* This mess was copied from the GNU getpagesize.h.  */
22964 #ifndef HAVE_GETPAGESIZE
22965 /* Assume that all systems that can run configure have sys/param.h.  */
22966 # ifndef HAVE_SYS_PARAM_H
22967 #  define HAVE_SYS_PARAM_H 1
22968 # endif
22970 # ifdef _SC_PAGESIZE
22971 #  define getpagesize() sysconf(_SC_PAGESIZE)
22972 # else /* no _SC_PAGESIZE */
22973 #  ifdef HAVE_SYS_PARAM_H
22974 #   include <sys/param.h>
22975 #   ifdef EXEC_PAGESIZE
22976 #    define getpagesize() EXEC_PAGESIZE
22977 #   else /* no EXEC_PAGESIZE */
22978 #    ifdef NBPG
22979 #     define getpagesize() NBPG * CLSIZE
22980 #     ifndef CLSIZE
22981 #      define CLSIZE 1
22982 #     endif /* no CLSIZE */
22983 #    else /* no NBPG */
22984 #     ifdef NBPC
22985 #      define getpagesize() NBPC
22986 #     else /* no NBPC */
22987 #      ifdef PAGESIZE
22988 #       define getpagesize() PAGESIZE
22989 #      endif /* PAGESIZE */
22990 #     endif /* no NBPC */
22991 #    endif /* no NBPG */
22992 #   endif /* no EXEC_PAGESIZE */
22993 #  else /* no HAVE_SYS_PARAM_H */
22994 #   define getpagesize() 8192   /* punt totally */
22995 #  endif /* no HAVE_SYS_PARAM_H */
22996 # endif /* no _SC_PAGESIZE */
22998 #endif /* no HAVE_GETPAGESIZE */
23000 int
23001 main ()
23003   char *data, *data2, *data3;
23004   int i, pagesize;
23005   int fd;
23007   pagesize = getpagesize ();
23009   /* First, make a file with some known garbage in it. */
23010   data = (char *) malloc (pagesize);
23011   if (!data)
23012     return 1;
23013   for (i = 0; i < pagesize; ++i)
23014     *(data + i) = rand ();
23015   umask (0);
23016   fd = creat ("conftest.mmap", 0600);
23017   if (fd < 0)
23018     return 1;
23019   if (write (fd, data, pagesize) != pagesize)
23020     return 1;
23021   close (fd);
23023   /* Next, try to mmap the file at a fixed address which already has
23024      something else allocated at it.  If we can, also make sure that
23025      we see the same garbage.  */
23026   fd = open ("conftest.mmap", O_RDWR);
23027   if (fd < 0)
23028     return 1;
23029   data2 = (char *) malloc (2 * pagesize);
23030   if (!data2)
23031     return 1;
23032   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
23033   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23034                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23035     return 1;
23036   for (i = 0; i < pagesize; ++i)
23037     if (*(data + i) != *(data2 + i))
23038       return 1;
23040   /* Finally, make sure that changes to the mapped area do not
23041      percolate back to the file as seen by read().  (This is a bug on
23042      some variants of i386 svr4.0.)  */
23043   for (i = 0; i < pagesize; ++i)
23044     *(data2 + i) = *(data2 + i) + 1;
23045   data3 = (char *) malloc (pagesize);
23046   if (!data3)
23047     return 1;
23048   if (read (fd, data3, pagesize) != pagesize)
23049     return 1;
23050   for (i = 0; i < pagesize; ++i)
23051     if (*(data + i) != *(data3 + i))
23052       return 1;
23053   close (fd);
23054   return 0;
23056 _ACEOF
23057 rm -f conftest$ac_exeext
23058 if { (ac_try="$ac_link"
23059 case "(($ac_try" in
23060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061   *) ac_try_echo=$ac_try;;
23062 esac
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064   (eval "$ac_link") 2>&5
23065   ac_status=$?
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23068   { (case "(($ac_try" in
23069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23070   *) ac_try_echo=$ac_try;;
23071 esac
23072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23073   (eval "$ac_try") 2>&5
23074   ac_status=$?
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); }; }; then
23077   ac_cv_func_mmap_fixed_mapped=yes
23078 else
23079   echo "$as_me: program exited with status $ac_status" >&5
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ( exit $ac_status )
23084 ac_cv_func_mmap_fixed_mapped=no
23086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23091 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23092 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
23093 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23095 cat >>confdefs.h <<\_ACEOF
23096 #define HAVE_MMAP 1
23097 _ACEOF
23100 rm -f conftest.mmap
23105 for ac_func in mmap munmap msync
23107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23108 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23110 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113   cat >conftest.$ac_ext <<_ACEOF
23114 /* confdefs.h.  */
23115 _ACEOF
23116 cat confdefs.h >>conftest.$ac_ext
23117 cat >>conftest.$ac_ext <<_ACEOF
23118 /* end confdefs.h.  */
23119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23121 #define $ac_func innocuous_$ac_func
23123 /* System header to define __stub macros and hopefully few prototypes,
23124     which can conflict with char $ac_func (); below.
23125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23126     <limits.h> exists even on freestanding compilers.  */
23128 #ifdef __STDC__
23129 # include <limits.h>
23130 #else
23131 # include <assert.h>
23132 #endif
23134 #undef $ac_func
23136 /* Override any GCC internal prototype to avoid an error.
23137    Use char because int might match the return type of a GCC
23138    builtin and then its argument prototype would still apply.  */
23139 #ifdef __cplusplus
23140 extern "C"
23141 #endif
23142 char $ac_func ();
23143 /* The GNU C library defines this for functions which it implements
23144     to always fail with ENOSYS.  Some functions are actually named
23145     something starting with __ and the normal name is an alias.  */
23146 #if defined __stub_$ac_func || defined __stub___$ac_func
23147 choke me
23148 #endif
23150 int
23151 main ()
23153 return $ac_func ();
23154   ;
23155   return 0;
23157 _ACEOF
23158 rm -f conftest.$ac_objext conftest$ac_exeext
23159 if { (ac_try="$ac_link"
23160 case "(($ac_try" in
23161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23162   *) ac_try_echo=$ac_try;;
23163 esac
23164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23165   (eval "$ac_link") 2>conftest.er1
23166   ac_status=$?
23167   grep -v '^ *+' conftest.er1 >conftest.err
23168   rm -f conftest.er1
23169   cat conftest.err >&5
23170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171   (exit $ac_status); } && {
23172          test -z "$ac_c_werror_flag" ||
23173          test ! -s conftest.err
23174        } && test -s conftest$ac_exeext &&
23175        $as_test_x conftest$ac_exeext; then
23176   eval "$as_ac_var=yes"
23177 else
23178   echo "$as_me: failed program was:" >&5
23179 sed 's/^/| /' conftest.$ac_ext >&5
23181         eval "$as_ac_var=no"
23184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23185       conftest$ac_exeext conftest.$ac_ext
23187 ac_res=`eval echo '${'$as_ac_var'}'`
23188                { echo "$as_me:$LINENO: result: $ac_res" >&5
23189 echo "${ECHO_T}$ac_res" >&6; }
23190 if test `eval echo '${'$as_ac_var'}'` = yes; then
23191   cat >>confdefs.h <<_ACEOF
23192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23193 _ACEOF
23196 done
23198     { echo "$as_me:$LINENO: checking whether madvise is declared" >&5
23199 echo $ECHO_N "checking whether madvise is declared... $ECHO_C" >&6; }
23200 if test "${ac_cv_have_decl_madvise+set}" = set; then
23201   echo $ECHO_N "(cached) $ECHO_C" >&6
23202 else
23203   cat >conftest.$ac_ext <<_ACEOF
23204 /* confdefs.h.  */
23205 _ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h.  */
23209 #ifdef HAVE_SYS_MMAN_H
23210                                      # include <sys/mman.h>
23211                                      #endif
23213 int
23214 main ()
23216 #ifndef madvise
23217   (void) madvise;
23218 #endif
23220   ;
23221   return 0;
23223 _ACEOF
23224 rm -f conftest.$ac_objext
23225 if { (ac_try="$ac_compile"
23226 case "(($ac_try" in
23227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23228   *) ac_try_echo=$ac_try;;
23229 esac
23230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23231   (eval "$ac_compile") 2>conftest.er1
23232   ac_status=$?
23233   grep -v '^ *+' conftest.er1 >conftest.err
23234   rm -f conftest.er1
23235   cat conftest.err >&5
23236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237   (exit $ac_status); } && {
23238          test -z "$ac_c_werror_flag" ||
23239          test ! -s conftest.err
23240        } && test -s conftest.$ac_objext; then
23241   ac_cv_have_decl_madvise=yes
23242 else
23243   echo "$as_me: failed program was:" >&5
23244 sed 's/^/| /' conftest.$ac_ext >&5
23246         ac_cv_have_decl_madvise=no
23249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
23252 echo "${ECHO_T}$ac_cv_have_decl_madvise" >&6; }
23253 if test $ac_cv_have_decl_madvise = yes; then
23255 cat >>confdefs.h <<_ACEOF
23256 #define HAVE_DECL_MADVISE 1
23257 _ACEOF
23260 else
23261   cat >>confdefs.h <<_ACEOF
23262 #define HAVE_DECL_MADVISE 0
23263 _ACEOF
23269     if test "x$ac_cv_have_decl_madvise" = "xyes";
23270     then
23272 for ac_func in madvise
23274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23278   echo $ECHO_N "(cached) $ECHO_C" >&6
23279 else
23280   cat >conftest.$ac_ext <<_ACEOF
23281 /* confdefs.h.  */
23282 _ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h.  */
23286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23288 #define $ac_func innocuous_$ac_func
23290 /* System header to define __stub macros and hopefully few prototypes,
23291     which can conflict with char $ac_func (); below.
23292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23293     <limits.h> exists even on freestanding compilers.  */
23295 #ifdef __STDC__
23296 # include <limits.h>
23297 #else
23298 # include <assert.h>
23299 #endif
23301 #undef $ac_func
23303 /* Override any GCC internal prototype to avoid an error.
23304    Use char because int might match the return type of a GCC
23305    builtin and then its argument prototype would still apply.  */
23306 #ifdef __cplusplus
23307 extern "C"
23308 #endif
23309 char $ac_func ();
23310 /* The GNU C library defines this for functions which it implements
23311     to always fail with ENOSYS.  Some functions are actually named
23312     something starting with __ and the normal name is an alias.  */
23313 #if defined __stub_$ac_func || defined __stub___$ac_func
23314 choke me
23315 #endif
23317 int
23318 main ()
23320 return $ac_func ();
23321   ;
23322   return 0;
23324 _ACEOF
23325 rm -f conftest.$ac_objext conftest$ac_exeext
23326 if { (ac_try="$ac_link"
23327 case "(($ac_try" in
23328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23329   *) ac_try_echo=$ac_try;;
23330 esac
23331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23332   (eval "$ac_link") 2>conftest.er1
23333   ac_status=$?
23334   grep -v '^ *+' conftest.er1 >conftest.err
23335   rm -f conftest.er1
23336   cat conftest.err >&5
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); } && {
23339          test -z "$ac_c_werror_flag" ||
23340          test ! -s conftest.err
23341        } && test -s conftest$ac_exeext &&
23342        $as_test_x conftest$ac_exeext; then
23343   eval "$as_ac_var=yes"
23344 else
23345   echo "$as_me: failed program was:" >&5
23346 sed 's/^/| /' conftest.$ac_ext >&5
23348         eval "$as_ac_var=no"
23351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23352       conftest$ac_exeext conftest.$ac_ext
23354 ac_res=`eval echo '${'$as_ac_var'}'`
23355                { echo "$as_me:$LINENO: result: $ac_res" >&5
23356 echo "${ECHO_T}$ac_res" >&6; }
23357 if test `eval echo '${'$as_ac_var'}'` = yes; then
23358   cat >>confdefs.h <<_ACEOF
23359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23360 _ACEOF
23363 done
23365     else
23367 for ac_func in posix_madvise
23369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23373   echo $ECHO_N "(cached) $ECHO_C" >&6
23374 else
23375   cat >conftest.$ac_ext <<_ACEOF
23376 /* confdefs.h.  */
23377 _ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h.  */
23381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23383 #define $ac_func innocuous_$ac_func
23385 /* System header to define __stub macros and hopefully few prototypes,
23386     which can conflict with char $ac_func (); below.
23387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23388     <limits.h> exists even on freestanding compilers.  */
23390 #ifdef __STDC__
23391 # include <limits.h>
23392 #else
23393 # include <assert.h>
23394 #endif
23396 #undef $ac_func
23398 /* Override any GCC internal prototype to avoid an error.
23399    Use char because int might match the return type of a GCC
23400    builtin and then its argument prototype would still apply.  */
23401 #ifdef __cplusplus
23402 extern "C"
23403 #endif
23404 char $ac_func ();
23405 /* The GNU C library defines this for functions which it implements
23406     to always fail with ENOSYS.  Some functions are actually named
23407     something starting with __ and the normal name is an alias.  */
23408 #if defined __stub_$ac_func || defined __stub___$ac_func
23409 choke me
23410 #endif
23412 int
23413 main ()
23415 return $ac_func ();
23416   ;
23417   return 0;
23419 _ACEOF
23420 rm -f conftest.$ac_objext conftest$ac_exeext
23421 if { (ac_try="$ac_link"
23422 case "(($ac_try" in
23423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23424   *) ac_try_echo=$ac_try;;
23425 esac
23426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23427   (eval "$ac_link") 2>conftest.er1
23428   ac_status=$?
23429   grep -v '^ *+' conftest.er1 >conftest.err
23430   rm -f conftest.er1
23431   cat conftest.err >&5
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); } && {
23434          test -z "$ac_c_werror_flag" ||
23435          test ! -s conftest.err
23436        } && test -s conftest$ac_exeext &&
23437        $as_test_x conftest$ac_exeext; then
23438   eval "$as_ac_var=yes"
23439 else
23440   echo "$as_me: failed program was:" >&5
23441 sed 's/^/| /' conftest.$ac_ext >&5
23443         eval "$as_ac_var=no"
23446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23447       conftest$ac_exeext conftest.$ac_ext
23449 ac_res=`eval echo '${'$as_ac_var'}'`
23450                { echo "$as_me:$LINENO: result: $ac_res" >&5
23451 echo "${ECHO_T}$ac_res" >&6; }
23452 if test `eval echo '${'$as_ac_var'}'` = yes; then
23453   cat >>confdefs.h <<_ACEOF
23454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23455 _ACEOF
23458 done
23460       if test "x$ac_cv_func_posix_madvise" != "xyes"; then
23461         { echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
23462 echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
23463       fi
23464     fi
23465   ;;
23466   esac
23467   if test "x$ac_cv_func_mmap" != "xyes";
23468   then
23469     { { echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
23470 echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
23471    { (exit 1); exit 1; }; }
23472   fi
23475 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
23476 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
23477 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
23478   echo $ECHO_N "(cached) $ECHO_C" >&6
23479 else
23480   cat >conftest.$ac_ext <<_ACEOF
23481 /* confdefs.h.  */
23482 _ACEOF
23483 cat confdefs.h >>conftest.$ac_ext
23484 cat >>conftest.$ac_ext <<_ACEOF
23485 /* end confdefs.h.  */
23486 #define _XOPEN_SOURCE 600
23487 #include <fcntl.h>
23489 int
23490 main ()
23492 #ifndef posix_fadvise
23493   (void) posix_fadvise;
23494 #endif
23496   ;
23497   return 0;
23499 _ACEOF
23500 rm -f conftest.$ac_objext
23501 if { (ac_try="$ac_compile"
23502 case "(($ac_try" in
23503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23504   *) ac_try_echo=$ac_try;;
23505 esac
23506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23507   (eval "$ac_compile") 2>conftest.er1
23508   ac_status=$?
23509   grep -v '^ *+' conftest.er1 >conftest.err
23510   rm -f conftest.er1
23511   cat conftest.err >&5
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); } && {
23514          test -z "$ac_c_werror_flag" ||
23515          test ! -s conftest.err
23516        } && test -s conftest.$ac_objext; then
23517   ac_cv_have_decl_posix_fadvise=yes
23518 else
23519   echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.$ac_ext >&5
23522         ac_cv_have_decl_posix_fadvise=no
23525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23527 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
23528 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
23529 if test $ac_cv_have_decl_posix_fadvise = yes; then
23531 cat >>confdefs.h <<_ACEOF
23532 #define HAVE_DECL_POSIX_FADVISE 1
23533 _ACEOF
23536 else
23537   cat >>confdefs.h <<_ACEOF
23538 #define HAVE_DECL_POSIX_FADVISE 0
23539 _ACEOF
23546 for ac_func in posix_fadvise
23548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23549 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23551 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23552   echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554   cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h.  */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h.  */
23560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23562 #define $ac_func innocuous_$ac_func
23564 /* System header to define __stub macros and hopefully few prototypes,
23565     which can conflict with char $ac_func (); below.
23566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23567     <limits.h> exists even on freestanding compilers.  */
23569 #ifdef __STDC__
23570 # include <limits.h>
23571 #else
23572 # include <assert.h>
23573 #endif
23575 #undef $ac_func
23577 /* Override any GCC internal prototype to avoid an error.
23578    Use char because int might match the return type of a GCC
23579    builtin and then its argument prototype would still apply.  */
23580 #ifdef __cplusplus
23581 extern "C"
23582 #endif
23583 char $ac_func ();
23584 /* The GNU C library defines this for functions which it implements
23585     to always fail with ENOSYS.  Some functions are actually named
23586     something starting with __ and the normal name is an alias.  */
23587 #if defined __stub_$ac_func || defined __stub___$ac_func
23588 choke me
23589 #endif
23591 int
23592 main ()
23594 return $ac_func ();
23595   ;
23596   return 0;
23598 _ACEOF
23599 rm -f conftest.$ac_objext conftest$ac_exeext
23600 if { (ac_try="$ac_link"
23601 case "(($ac_try" in
23602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23603   *) ac_try_echo=$ac_try;;
23604 esac
23605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23606   (eval "$ac_link") 2>conftest.er1
23607   ac_status=$?
23608   grep -v '^ *+' conftest.er1 >conftest.err
23609   rm -f conftest.er1
23610   cat conftest.err >&5
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); } && {
23613          test -z "$ac_c_werror_flag" ||
23614          test ! -s conftest.err
23615        } && test -s conftest$ac_exeext &&
23616        $as_test_x conftest$ac_exeext; then
23617   eval "$as_ac_var=yes"
23618 else
23619   echo "$as_me: failed program was:" >&5
23620 sed 's/^/| /' conftest.$ac_ext >&5
23622         eval "$as_ac_var=no"
23625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23626       conftest$ac_exeext conftest.$ac_ext
23628 ac_res=`eval echo '${'$as_ac_var'}'`
23629                { echo "$as_me:$LINENO: result: $ac_res" >&5
23630 echo "${ECHO_T}$ac_res" >&6; }
23631 if test `eval echo '${'$as_ac_var'}'` = yes; then
23632   cat >>confdefs.h <<_ACEOF
23633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23634 _ACEOF
23637 done
23641 case $TERM in
23642        #   for the most important terminal types we directly know the sequences
23643        xterm|xterm*|vt220|vt220*)
23644                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
23645                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
23646        ;;
23647        vt100|vt100*|cygwin)
23648                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
23649                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
23650        ;;
23651        *)
23652                T_MD=''
23653                T_ME=''
23654        ;;
23655 esac
23656   { echo "$as_me:$LINENO: result: " >&5
23657 echo "${ECHO_T}" >&6; }
23658   { echo "$as_me:$LINENO: result: ${T_MD}Libintl Processing${T_ME}" >&5
23659 echo "${ECHO_T}${T_MD}Libintl Processing${T_ME}" >&6; }
23663 GETTEXT_PACKAGE=rrdtool
23666 cat >>confdefs.h <<_ACEOF
23667 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
23668 _ACEOF
23673 for ac_header in locale.h
23675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23677   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23680   echo $ECHO_N "(cached) $ECHO_C" >&6
23682 ac_res=`eval echo '${'$as_ac_Header'}'`
23683                { echo "$as_me:$LINENO: result: $ac_res" >&5
23684 echo "${ECHO_T}$ac_res" >&6; }
23685 else
23686   # Is the header compilable?
23687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23689 cat >conftest.$ac_ext <<_ACEOF
23690 /* confdefs.h.  */
23691 _ACEOF
23692 cat confdefs.h >>conftest.$ac_ext
23693 cat >>conftest.$ac_ext <<_ACEOF
23694 /* end confdefs.h.  */
23695 $ac_includes_default
23696 #include <$ac_header>
23697 _ACEOF
23698 rm -f conftest.$ac_objext
23699 if { (ac_try="$ac_compile"
23700 case "(($ac_try" in
23701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702   *) ac_try_echo=$ac_try;;
23703 esac
23704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23705   (eval "$ac_compile") 2>conftest.er1
23706   ac_status=$?
23707   grep -v '^ *+' conftest.er1 >conftest.err
23708   rm -f conftest.er1
23709   cat conftest.err >&5
23710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711   (exit $ac_status); } && {
23712          test -z "$ac_c_werror_flag" ||
23713          test ! -s conftest.err
23714        } && test -s conftest.$ac_objext; then
23715   ac_header_compiler=yes
23716 else
23717   echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23720         ac_header_compiler=no
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23725 echo "${ECHO_T}$ac_header_compiler" >&6; }
23727 # Is the header present?
23728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23730 cat >conftest.$ac_ext <<_ACEOF
23731 /* confdefs.h.  */
23732 _ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h.  */
23736 #include <$ac_header>
23737 _ACEOF
23738 if { (ac_try="$ac_cpp conftest.$ac_ext"
23739 case "(($ac_try" in
23740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741   *) ac_try_echo=$ac_try;;
23742 esac
23743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23745   ac_status=$?
23746   grep -v '^ *+' conftest.er1 >conftest.err
23747   rm -f conftest.er1
23748   cat conftest.err >&5
23749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750   (exit $ac_status); } >/dev/null && {
23751          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23752          test ! -s conftest.err
23753        }; then
23754   ac_header_preproc=yes
23755 else
23756   echo "$as_me: failed program was:" >&5
23757 sed 's/^/| /' conftest.$ac_ext >&5
23759   ac_header_preproc=no
23762 rm -f conftest.err conftest.$ac_ext
23763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23764 echo "${ECHO_T}$ac_header_preproc" >&6; }
23766 # So?  What about this header?
23767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23768   yes:no: )
23769     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23773     ac_header_preproc=yes
23774     ;;
23775   no:yes:* )
23776     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23778     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23779 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23780     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23782     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23783 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23786     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23789     ;;
23790 esac
23791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23794   echo $ECHO_N "(cached) $ECHO_C" >&6
23795 else
23796   eval "$as_ac_Header=\$ac_header_preproc"
23798 ac_res=`eval echo '${'$as_ac_Header'}'`
23799                { echo "$as_me:$LINENO: result: $ac_res" >&5
23800 echo "${ECHO_T}$ac_res" >&6; }
23803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23804   cat >>confdefs.h <<_ACEOF
23805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23806 _ACEOF
23810 done
23812     if test $ac_cv_header_locale_h = yes; then
23813     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
23814 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
23815 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
23816   echo $ECHO_N "(cached) $ECHO_C" >&6
23817 else
23818   cat >conftest.$ac_ext <<_ACEOF
23819 /* confdefs.h.  */
23820 _ACEOF
23821 cat confdefs.h >>conftest.$ac_ext
23822 cat >>conftest.$ac_ext <<_ACEOF
23823 /* end confdefs.h.  */
23824 #include <locale.h>
23825 int
23826 main ()
23828 return LC_MESSAGES
23829   ;
23830   return 0;
23832 _ACEOF
23833 rm -f conftest.$ac_objext conftest$ac_exeext
23834 if { (ac_try="$ac_link"
23835 case "(($ac_try" in
23836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837   *) ac_try_echo=$ac_try;;
23838 esac
23839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23840   (eval "$ac_link") 2>conftest.er1
23841   ac_status=$?
23842   grep -v '^ *+' conftest.er1 >conftest.err
23843   rm -f conftest.er1
23844   cat conftest.err >&5
23845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23846   (exit $ac_status); } && {
23847          test -z "$ac_c_werror_flag" ||
23848          test ! -s conftest.err
23849        } && test -s conftest$ac_exeext &&
23850        $as_test_x conftest$ac_exeext; then
23851   am_cv_val_LC_MESSAGES=yes
23852 else
23853   echo "$as_me: failed program was:" >&5
23854 sed 's/^/| /' conftest.$ac_ext >&5
23856         am_cv_val_LC_MESSAGES=no
23859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23860       conftest$ac_exeext conftest.$ac_ext
23862 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
23863 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
23864     if test $am_cv_val_LC_MESSAGES = yes; then
23866 cat >>confdefs.h <<\_ACEOF
23867 #define HAVE_LC_MESSAGES 1
23868 _ACEOF
23870     fi
23871   fi
23872      USE_NLS=yes
23875     gt_cv_have_gettext=no
23877     CATOBJEXT=NONE
23878     XGETTEXT=:
23879     INTLLIBS=
23881     if test "${ac_cv_header_libintl_h+set}" = set; then
23882   { echo "$as_me:$LINENO: checking for libintl.h" >&5
23883 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
23884 if test "${ac_cv_header_libintl_h+set}" = set; then
23885   echo $ECHO_N "(cached) $ECHO_C" >&6
23887 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23888 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
23889 else
23890   # Is the header compilable?
23891 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
23892 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
23893 cat >conftest.$ac_ext <<_ACEOF
23894 /* confdefs.h.  */
23895 _ACEOF
23896 cat confdefs.h >>conftest.$ac_ext
23897 cat >>conftest.$ac_ext <<_ACEOF
23898 /* end confdefs.h.  */
23899 $ac_includes_default
23900 #include <libintl.h>
23901 _ACEOF
23902 rm -f conftest.$ac_objext
23903 if { (ac_try="$ac_compile"
23904 case "(($ac_try" in
23905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23906   *) ac_try_echo=$ac_try;;
23907 esac
23908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909   (eval "$ac_compile") 2>conftest.er1
23910   ac_status=$?
23911   grep -v '^ *+' conftest.er1 >conftest.err
23912   rm -f conftest.er1
23913   cat conftest.err >&5
23914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915   (exit $ac_status); } && {
23916          test -z "$ac_c_werror_flag" ||
23917          test ! -s conftest.err
23918        } && test -s conftest.$ac_objext; then
23919   ac_header_compiler=yes
23920 else
23921   echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23924         ac_header_compiler=no
23927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23929 echo "${ECHO_T}$ac_header_compiler" >&6; }
23931 # Is the header present?
23932 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
23933 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
23934 cat >conftest.$ac_ext <<_ACEOF
23935 /* confdefs.h.  */
23936 _ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h.  */
23940 #include <libintl.h>
23941 _ACEOF
23942 if { (ac_try="$ac_cpp conftest.$ac_ext"
23943 case "(($ac_try" in
23944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945   *) ac_try_echo=$ac_try;;
23946 esac
23947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23948   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23949   ac_status=$?
23950   grep -v '^ *+' conftest.er1 >conftest.err
23951   rm -f conftest.er1
23952   cat conftest.err >&5
23953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954   (exit $ac_status); } >/dev/null && {
23955          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23956          test ! -s conftest.err
23957        }; then
23958   ac_header_preproc=yes
23959 else
23960   echo "$as_me: failed program was:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23963   ac_header_preproc=no
23966 rm -f conftest.err conftest.$ac_ext
23967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23968 echo "${ECHO_T}$ac_header_preproc" >&6; }
23970 # So?  What about this header?
23971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23972   yes:no: )
23973     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23974 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23975     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23976 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23977     ac_header_preproc=yes
23978     ;;
23979   no:yes:* )
23980     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23981 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23982     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
23983 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
23984     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23985 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23986     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
23987 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23988     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23989 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23990     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23991 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23993     ;;
23994 esac
23995 { echo "$as_me:$LINENO: checking for libintl.h" >&5
23996 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
23997 if test "${ac_cv_header_libintl_h+set}" = set; then
23998   echo $ECHO_N "(cached) $ECHO_C" >&6
23999 else
24000   ac_cv_header_libintl_h=$ac_header_preproc
24002 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24003 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24006 if test $ac_cv_header_libintl_h = yes; then
24007   gt_cv_func_dgettext_libintl="no"
24008       libintl_extra_libs=""
24010       #
24011       # First check in libc
24012       #
24013       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
24014 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
24015 if test "${gt_cv_func_ngettext_libc+set}" = set; then
24016   echo $ECHO_N "(cached) $ECHO_C" >&6
24017 else
24018   cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h.  */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h.  */
24025 #include <libintl.h>
24027 int
24028 main ()
24030 return !ngettext ("","", 1)
24031   ;
24032   return 0;
24034 _ACEOF
24035 rm -f conftest.$ac_objext conftest$ac_exeext
24036 if { (ac_try="$ac_link"
24037 case "(($ac_try" in
24038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24039   *) ac_try_echo=$ac_try;;
24040 esac
24041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24042   (eval "$ac_link") 2>conftest.er1
24043   ac_status=$?
24044   grep -v '^ *+' conftest.er1 >conftest.err
24045   rm -f conftest.er1
24046   cat conftest.err >&5
24047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048   (exit $ac_status); } && {
24049          test -z "$ac_c_werror_flag" ||
24050          test ! -s conftest.err
24051        } && test -s conftest$ac_exeext &&
24052        $as_test_x conftest$ac_exeext; then
24053   gt_cv_func_ngettext_libc=yes
24054 else
24055   echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24058         gt_cv_func_ngettext_libc=no
24061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24062       conftest$ac_exeext conftest.$ac_ext
24065 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
24066 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
24068       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
24069               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
24070 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
24071 if test "${gt_cv_func_dgettext_libc+set}" = set; then
24072   echo $ECHO_N "(cached) $ECHO_C" >&6
24073 else
24074   cat >conftest.$ac_ext <<_ACEOF
24075 /* confdefs.h.  */
24076 _ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h.  */
24081 #include <libintl.h>
24083 int
24084 main ()
24086 return !dgettext ("","")
24087   ;
24088   return 0;
24090 _ACEOF
24091 rm -f conftest.$ac_objext conftest$ac_exeext
24092 if { (ac_try="$ac_link"
24093 case "(($ac_try" in
24094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24095   *) ac_try_echo=$ac_try;;
24096 esac
24097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24098   (eval "$ac_link") 2>conftest.er1
24099   ac_status=$?
24100   grep -v '^ *+' conftest.er1 >conftest.err
24101   rm -f conftest.er1
24102   cat conftest.err >&5
24103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104   (exit $ac_status); } && {
24105          test -z "$ac_c_werror_flag" ||
24106          test ! -s conftest.err
24107        } && test -s conftest$ac_exeext &&
24108        $as_test_x conftest$ac_exeext; then
24109   gt_cv_func_dgettext_libc=yes
24110 else
24111   echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24114         gt_cv_func_dgettext_libc=no
24117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24118       conftest$ac_exeext conftest.$ac_ext
24121 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
24122 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
24123       fi
24125       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
24127 for ac_func in bind_textdomain_codeset
24129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24133   echo $ECHO_N "(cached) $ECHO_C" >&6
24134 else
24135   cat >conftest.$ac_ext <<_ACEOF
24136 /* confdefs.h.  */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h.  */
24141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24143 #define $ac_func innocuous_$ac_func
24145 /* System header to define __stub macros and hopefully few prototypes,
24146     which can conflict with char $ac_func (); below.
24147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24148     <limits.h> exists even on freestanding compilers.  */
24150 #ifdef __STDC__
24151 # include <limits.h>
24152 #else
24153 # include <assert.h>
24154 #endif
24156 #undef $ac_func
24158 /* Override any GCC internal prototype to avoid an error.
24159    Use char because int might match the return type of a GCC
24160    builtin and then its argument prototype would still apply.  */
24161 #ifdef __cplusplus
24162 extern "C"
24163 #endif
24164 char $ac_func ();
24165 /* The GNU C library defines this for functions which it implements
24166     to always fail with ENOSYS.  Some functions are actually named
24167     something starting with __ and the normal name is an alias.  */
24168 #if defined __stub_$ac_func || defined __stub___$ac_func
24169 choke me
24170 #endif
24172 int
24173 main ()
24175 return $ac_func ();
24176   ;
24177   return 0;
24179 _ACEOF
24180 rm -f conftest.$ac_objext conftest$ac_exeext
24181 if { (ac_try="$ac_link"
24182 case "(($ac_try" in
24183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184   *) ac_try_echo=$ac_try;;
24185 esac
24186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187   (eval "$ac_link") 2>conftest.er1
24188   ac_status=$?
24189   grep -v '^ *+' conftest.er1 >conftest.err
24190   rm -f conftest.er1
24191   cat conftest.err >&5
24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); } && {
24194          test -z "$ac_c_werror_flag" ||
24195          test ! -s conftest.err
24196        } && test -s conftest$ac_exeext &&
24197        $as_test_x conftest$ac_exeext; then
24198   eval "$as_ac_var=yes"
24199 else
24200   echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24203         eval "$as_ac_var=no"
24206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24207       conftest$ac_exeext conftest.$ac_ext
24209 ac_res=`eval echo '${'$as_ac_var'}'`
24210                { echo "$as_me:$LINENO: result: $ac_res" >&5
24211 echo "${ECHO_T}$ac_res" >&6; }
24212 if test `eval echo '${'$as_ac_var'}'` = yes; then
24213   cat >>confdefs.h <<_ACEOF
24214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24215 _ACEOF
24218 done
24220       fi
24222       #
24223       # If we don't have everything we want, check in libintl
24224       #
24225       if test "$gt_cv_func_dgettext_libc" != "yes" \
24226          || test "$gt_cv_func_ngettext_libc" != "yes" \
24227          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
24229         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
24230 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
24231 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
24232   echo $ECHO_N "(cached) $ECHO_C" >&6
24233 else
24234   ac_check_lib_save_LIBS=$LIBS
24235 LIBS="-lintl  $LIBS"
24236 cat >conftest.$ac_ext <<_ACEOF
24237 /* confdefs.h.  */
24238 _ACEOF
24239 cat confdefs.h >>conftest.$ac_ext
24240 cat >>conftest.$ac_ext <<_ACEOF
24241 /* end confdefs.h.  */
24243 /* Override any GCC internal prototype to avoid an error.
24244    Use char because int might match the return type of a GCC
24245    builtin and then its argument prototype would still apply.  */
24246 #ifdef __cplusplus
24247 extern "C"
24248 #endif
24249 char bindtextdomain ();
24250 int
24251 main ()
24253 return bindtextdomain ();
24254   ;
24255   return 0;
24257 _ACEOF
24258 rm -f conftest.$ac_objext conftest$ac_exeext
24259 if { (ac_try="$ac_link"
24260 case "(($ac_try" in
24261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262   *) ac_try_echo=$ac_try;;
24263 esac
24264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24265   (eval "$ac_link") 2>conftest.er1
24266   ac_status=$?
24267   grep -v '^ *+' conftest.er1 >conftest.err
24268   rm -f conftest.er1
24269   cat conftest.err >&5
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); } && {
24272          test -z "$ac_c_werror_flag" ||
24273          test ! -s conftest.err
24274        } && test -s conftest$ac_exeext &&
24275        $as_test_x conftest$ac_exeext; then
24276   ac_cv_lib_intl_bindtextdomain=yes
24277 else
24278   echo "$as_me: failed program was:" >&5
24279 sed 's/^/| /' conftest.$ac_ext >&5
24281         ac_cv_lib_intl_bindtextdomain=no
24284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24285       conftest$ac_exeext conftest.$ac_ext
24286 LIBS=$ac_check_lib_save_LIBS
24288 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
24289 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
24290 if test $ac_cv_lib_intl_bindtextdomain = yes; then
24291   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
24292 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
24293 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
24294   echo $ECHO_N "(cached) $ECHO_C" >&6
24295 else
24296   ac_check_lib_save_LIBS=$LIBS
24297 LIBS="-lintl  $LIBS"
24298 cat >conftest.$ac_ext <<_ACEOF
24299 /* confdefs.h.  */
24300 _ACEOF
24301 cat confdefs.h >>conftest.$ac_ext
24302 cat >>conftest.$ac_ext <<_ACEOF
24303 /* end confdefs.h.  */
24305 /* Override any GCC internal prototype to avoid an error.
24306    Use char because int might match the return type of a GCC
24307    builtin and then its argument prototype would still apply.  */
24308 #ifdef __cplusplus
24309 extern "C"
24310 #endif
24311 char ngettext ();
24312 int
24313 main ()
24315 return ngettext ();
24316   ;
24317   return 0;
24319 _ACEOF
24320 rm -f conftest.$ac_objext conftest$ac_exeext
24321 if { (ac_try="$ac_link"
24322 case "(($ac_try" in
24323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324   *) ac_try_echo=$ac_try;;
24325 esac
24326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327   (eval "$ac_link") 2>conftest.er1
24328   ac_status=$?
24329   grep -v '^ *+' conftest.er1 >conftest.err
24330   rm -f conftest.er1
24331   cat conftest.err >&5
24332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333   (exit $ac_status); } && {
24334          test -z "$ac_c_werror_flag" ||
24335          test ! -s conftest.err
24336        } && test -s conftest$ac_exeext &&
24337        $as_test_x conftest$ac_exeext; then
24338   ac_cv_lib_intl_ngettext=yes
24339 else
24340   echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.$ac_ext >&5
24343         ac_cv_lib_intl_ngettext=no
24346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24347       conftest$ac_exeext conftest.$ac_ext
24348 LIBS=$ac_check_lib_save_LIBS
24350 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
24351 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
24352 if test $ac_cv_lib_intl_ngettext = yes; then
24353   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24354 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
24355 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24356   echo $ECHO_N "(cached) $ECHO_C" >&6
24357 else
24358   ac_check_lib_save_LIBS=$LIBS
24359 LIBS="-lintl  $LIBS"
24360 cat >conftest.$ac_ext <<_ACEOF
24361 /* confdefs.h.  */
24362 _ACEOF
24363 cat confdefs.h >>conftest.$ac_ext
24364 cat >>conftest.$ac_ext <<_ACEOF
24365 /* end confdefs.h.  */
24367 /* Override any GCC internal prototype to avoid an error.
24368    Use char because int might match the return type of a GCC
24369    builtin and then its argument prototype would still apply.  */
24370 #ifdef __cplusplus
24371 extern "C"
24372 #endif
24373 char dgettext ();
24374 int
24375 main ()
24377 return dgettext ();
24378   ;
24379   return 0;
24381 _ACEOF
24382 rm -f conftest.$ac_objext conftest$ac_exeext
24383 if { (ac_try="$ac_link"
24384 case "(($ac_try" in
24385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386   *) ac_try_echo=$ac_try;;
24387 esac
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389   (eval "$ac_link") 2>conftest.er1
24390   ac_status=$?
24391   grep -v '^ *+' conftest.er1 >conftest.err
24392   rm -f conftest.er1
24393   cat conftest.err >&5
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } && {
24396          test -z "$ac_c_werror_flag" ||
24397          test ! -s conftest.err
24398        } && test -s conftest$ac_exeext &&
24399        $as_test_x conftest$ac_exeext; then
24400   ac_cv_lib_intl_dgettext=yes
24401 else
24402   echo "$as_me: failed program was:" >&5
24403 sed 's/^/| /' conftest.$ac_ext >&5
24405         ac_cv_lib_intl_dgettext=no
24408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24409       conftest$ac_exeext conftest.$ac_ext
24410 LIBS=$ac_check_lib_save_LIBS
24412 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24413 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
24414 if test $ac_cv_lib_intl_dgettext = yes; then
24415   gt_cv_func_dgettext_libintl=yes
24423         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
24424           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
24425 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
24426           { echo "$as_me:$LINENO: result: " >&5
24427 echo "${ECHO_T}" >&6; }
24428           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
24429 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
24430 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
24431   echo $ECHO_N "(cached) $ECHO_C" >&6
24432 else
24433   ac_check_lib_save_LIBS=$LIBS
24434 LIBS="-lintl -liconv $LIBS"
24435 cat >conftest.$ac_ext <<_ACEOF
24436 /* confdefs.h.  */
24437 _ACEOF
24438 cat confdefs.h >>conftest.$ac_ext
24439 cat >>conftest.$ac_ext <<_ACEOF
24440 /* end confdefs.h.  */
24442 /* Override any GCC internal prototype to avoid an error.
24443    Use char because int might match the return type of a GCC
24444    builtin and then its argument prototype would still apply.  */
24445 #ifdef __cplusplus
24446 extern "C"
24447 #endif
24448 char ngettext ();
24449 int
24450 main ()
24452 return ngettext ();
24453   ;
24454   return 0;
24456 _ACEOF
24457 rm -f conftest.$ac_objext conftest$ac_exeext
24458 if { (ac_try="$ac_link"
24459 case "(($ac_try" in
24460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24461   *) ac_try_echo=$ac_try;;
24462 esac
24463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24464   (eval "$ac_link") 2>conftest.er1
24465   ac_status=$?
24466   grep -v '^ *+' conftest.er1 >conftest.err
24467   rm -f conftest.er1
24468   cat conftest.err >&5
24469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470   (exit $ac_status); } && {
24471          test -z "$ac_c_werror_flag" ||
24472          test ! -s conftest.err
24473        } && test -s conftest$ac_exeext &&
24474        $as_test_x conftest$ac_exeext; then
24475   ac_cv_lib_intl_ngettext=yes
24476 else
24477   echo "$as_me: failed program was:" >&5
24478 sed 's/^/| /' conftest.$ac_ext >&5
24480         ac_cv_lib_intl_ngettext=no
24483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24484       conftest$ac_exeext conftest.$ac_ext
24485 LIBS=$ac_check_lib_save_LIBS
24487 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
24488 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
24489 if test $ac_cv_lib_intl_ngettext = yes; then
24490   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
24491 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
24492 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
24493   echo $ECHO_N "(cached) $ECHO_C" >&6
24494 else
24495   ac_check_lib_save_LIBS=$LIBS
24496 LIBS="-lintl -liconv $LIBS"
24497 cat >conftest.$ac_ext <<_ACEOF
24498 /* confdefs.h.  */
24499 _ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h.  */
24504 /* Override any GCC internal prototype to avoid an error.
24505    Use char because int might match the return type of a GCC
24506    builtin and then its argument prototype would still apply.  */
24507 #ifdef __cplusplus
24508 extern "C"
24509 #endif
24510 char dcgettext ();
24511 int
24512 main ()
24514 return dcgettext ();
24515   ;
24516   return 0;
24518 _ACEOF
24519 rm -f conftest.$ac_objext conftest$ac_exeext
24520 if { (ac_try="$ac_link"
24521 case "(($ac_try" in
24522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24523   *) ac_try_echo=$ac_try;;
24524 esac
24525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24526   (eval "$ac_link") 2>conftest.er1
24527   ac_status=$?
24528   grep -v '^ *+' conftest.er1 >conftest.err
24529   rm -f conftest.er1
24530   cat conftest.err >&5
24531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532   (exit $ac_status); } && {
24533          test -z "$ac_c_werror_flag" ||
24534          test ! -s conftest.err
24535        } && test -s conftest$ac_exeext &&
24536        $as_test_x conftest$ac_exeext; then
24537   ac_cv_lib_intl_dcgettext=yes
24538 else
24539   echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24542         ac_cv_lib_intl_dcgettext=no
24545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24546       conftest$ac_exeext conftest.$ac_ext
24547 LIBS=$ac_check_lib_save_LIBS
24549 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
24550 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
24551 if test $ac_cv_lib_intl_dcgettext = yes; then
24552   gt_cv_func_dgettext_libintl=yes
24553                         libintl_extra_libs=-liconv
24554 else
24555   :
24558 else
24559   :
24562         fi
24564         #
24565         # If we found libintl, then check in it for bind_textdomain_codeset();
24566         # we'll prefer libc if neither have bind_textdomain_codeset(),
24567         # and both have dgettext and ngettext
24568         #
24569         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
24570           glib_save_LIBS="$LIBS"
24571           LIBS="$LIBS -lintl $libintl_extra_libs"
24572           unset ac_cv_func_bind_textdomain_codeset
24574 for ac_func in bind_textdomain_codeset
24576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24580   echo $ECHO_N "(cached) $ECHO_C" >&6
24581 else
24582   cat >conftest.$ac_ext <<_ACEOF
24583 /* confdefs.h.  */
24584 _ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h.  */
24588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24590 #define $ac_func innocuous_$ac_func
24592 /* System header to define __stub macros and hopefully few prototypes,
24593     which can conflict with char $ac_func (); below.
24594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24595     <limits.h> exists even on freestanding compilers.  */
24597 #ifdef __STDC__
24598 # include <limits.h>
24599 #else
24600 # include <assert.h>
24601 #endif
24603 #undef $ac_func
24605 /* Override any GCC internal prototype to avoid an error.
24606    Use char because int might match the return type of a GCC
24607    builtin and then its argument prototype would still apply.  */
24608 #ifdef __cplusplus
24609 extern "C"
24610 #endif
24611 char $ac_func ();
24612 /* The GNU C library defines this for functions which it implements
24613     to always fail with ENOSYS.  Some functions are actually named
24614     something starting with __ and the normal name is an alias.  */
24615 #if defined __stub_$ac_func || defined __stub___$ac_func
24616 choke me
24617 #endif
24619 int
24620 main ()
24622 return $ac_func ();
24623   ;
24624   return 0;
24626 _ACEOF
24627 rm -f conftest.$ac_objext conftest$ac_exeext
24628 if { (ac_try="$ac_link"
24629 case "(($ac_try" in
24630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24631   *) ac_try_echo=$ac_try;;
24632 esac
24633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24634   (eval "$ac_link") 2>conftest.er1
24635   ac_status=$?
24636   grep -v '^ *+' conftest.er1 >conftest.err
24637   rm -f conftest.er1
24638   cat conftest.err >&5
24639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640   (exit $ac_status); } && {
24641          test -z "$ac_c_werror_flag" ||
24642          test ! -s conftest.err
24643        } && test -s conftest$ac_exeext &&
24644        $as_test_x conftest$ac_exeext; then
24645   eval "$as_ac_var=yes"
24646 else
24647   echo "$as_me: failed program was:" >&5
24648 sed 's/^/| /' conftest.$ac_ext >&5
24650         eval "$as_ac_var=no"
24653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24654       conftest$ac_exeext conftest.$ac_ext
24656 ac_res=`eval echo '${'$as_ac_var'}'`
24657                { echo "$as_me:$LINENO: result: $ac_res" >&5
24658 echo "${ECHO_T}$ac_res" >&6; }
24659 if test `eval echo '${'$as_ac_var'}'` = yes; then
24660   cat >>confdefs.h <<_ACEOF
24661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24662 _ACEOF
24665 done
24667           LIBS="$glib_save_LIBS"
24669           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
24670             gt_cv_func_dgettext_libc=no
24671           else
24672             if test "$gt_cv_func_dgettext_libc" = "yes" \
24673                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
24674               gt_cv_func_dgettext_libintl=no
24675             fi
24676           fi
24677         fi
24678       fi
24680       if test "$gt_cv_func_dgettext_libc" = "yes" \
24681         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
24682         gt_cv_have_gettext=yes
24683       fi
24685       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
24686         INTLLIBS="-lintl $libintl_extra_libs"
24687       fi
24689       if test "$gt_cv_have_gettext" = "yes"; then
24691 cat >>confdefs.h <<\_ACEOF
24692 #define HAVE_GETTEXT 1
24693 _ACEOF
24695         # Extract the first word of "msgfmt", so it can be a program name with args.
24696 set dummy msgfmt; ac_word=$2
24697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24699 if test "${ac_cv_path_MSGFMT+set}" = set; then
24700   echo $ECHO_N "(cached) $ECHO_C" >&6
24701 else
24702   case "$MSGFMT" in
24703   /*)
24704   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
24705   ;;
24706   *)
24707   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24708   for ac_dir in $PATH; do
24709     test -z "$ac_dir" && ac_dir=.
24710     if test -f $ac_dir/$ac_word; then
24711       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
24712         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
24713         break
24714       fi
24715     fi
24716   done
24717   IFS="$ac_save_ifs"
24718   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
24719   ;;
24720 esac
24722 MSGFMT="$ac_cv_path_MSGFMT"
24723 if test "$MSGFMT" != "no"; then
24724   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24725 echo "${ECHO_T}$MSGFMT" >&6; }
24726 else
24727   { echo "$as_me:$LINENO: result: no" >&5
24728 echo "${ECHO_T}no" >&6; }
24730         if test "$MSGFMT" != "no"; then
24731           glib_save_LIBS="$LIBS"
24732           LIBS="$LIBS $INTLLIBS"
24734 for ac_func in dcgettext
24736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24740   echo $ECHO_N "(cached) $ECHO_C" >&6
24741 else
24742   cat >conftest.$ac_ext <<_ACEOF
24743 /* confdefs.h.  */
24744 _ACEOF
24745 cat confdefs.h >>conftest.$ac_ext
24746 cat >>conftest.$ac_ext <<_ACEOF
24747 /* end confdefs.h.  */
24748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24750 #define $ac_func innocuous_$ac_func
24752 /* System header to define __stub macros and hopefully few prototypes,
24753     which can conflict with char $ac_func (); below.
24754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24755     <limits.h> exists even on freestanding compilers.  */
24757 #ifdef __STDC__
24758 # include <limits.h>
24759 #else
24760 # include <assert.h>
24761 #endif
24763 #undef $ac_func
24765 /* Override any GCC internal prototype to avoid an error.
24766    Use char because int might match the return type of a GCC
24767    builtin and then its argument prototype would still apply.  */
24768 #ifdef __cplusplus
24769 extern "C"
24770 #endif
24771 char $ac_func ();
24772 /* The GNU C library defines this for functions which it implements
24773     to always fail with ENOSYS.  Some functions are actually named
24774     something starting with __ and the normal name is an alias.  */
24775 #if defined __stub_$ac_func || defined __stub___$ac_func
24776 choke me
24777 #endif
24779 int
24780 main ()
24782 return $ac_func ();
24783   ;
24784   return 0;
24786 _ACEOF
24787 rm -f conftest.$ac_objext conftest$ac_exeext
24788 if { (ac_try="$ac_link"
24789 case "(($ac_try" in
24790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24791   *) ac_try_echo=$ac_try;;
24792 esac
24793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24794   (eval "$ac_link") 2>conftest.er1
24795   ac_status=$?
24796   grep -v '^ *+' conftest.er1 >conftest.err
24797   rm -f conftest.er1
24798   cat conftest.err >&5
24799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24800   (exit $ac_status); } && {
24801          test -z "$ac_c_werror_flag" ||
24802          test ! -s conftest.err
24803        } && test -s conftest$ac_exeext &&
24804        $as_test_x conftest$ac_exeext; then
24805   eval "$as_ac_var=yes"
24806 else
24807   echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24810         eval "$as_ac_var=no"
24813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24814       conftest$ac_exeext conftest.$ac_ext
24816 ac_res=`eval echo '${'$as_ac_var'}'`
24817                { echo "$as_me:$LINENO: result: $ac_res" >&5
24818 echo "${ECHO_T}$ac_res" >&6; }
24819 if test `eval echo '${'$as_ac_var'}'` = yes; then
24820   cat >>confdefs.h <<_ACEOF
24821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24822 _ACEOF
24825 done
24827           MSGFMT_OPTS=
24828           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
24829 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
24830           cat >conftest.foo <<_ACEOF
24832 msgid ""
24833 msgstr ""
24834 "Content-Type: text/plain; charset=UTF-8\n"
24835 "Project-Id-Version: test 1.0\n"
24836 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
24837 "Last-Translator: test <foo@bar.xx>\n"
24838 "Language-Team: C <LL@li.org>\n"
24839 "MIME-Version: 1.0\n"
24840 "Content-Transfer-Encoding: 8bit\n"
24842 _ACEOF
24843 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
24844   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
24845   ac_status=$?
24846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847   (exit $ac_status); }; then
24848   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
24849 echo "${ECHO_T}yes" >&6; }
24850 else { echo "$as_me:$LINENO: result: no" >&5
24851 echo "${ECHO_T}no" >&6; }
24852 echo "$as_me: failed input was:" >&5
24853 sed 's/^/| /' conftest.foo >&5
24856           # Extract the first word of "gmsgfmt", so it can be a program name with args.
24857 set dummy gmsgfmt; ac_word=$2
24858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24860 if test "${ac_cv_path_GMSGFMT+set}" = set; then
24861   echo $ECHO_N "(cached) $ECHO_C" >&6
24862 else
24863   case $GMSGFMT in
24864   [\\/]* | ?:[\\/]*)
24865   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
24866   ;;
24867   *)
24868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24869 for as_dir in $PATH
24871   IFS=$as_save_IFS
24872   test -z "$as_dir" && as_dir=.
24873   for ac_exec_ext in '' $ac_executable_extensions; do
24874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24875     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
24876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24877     break 2
24878   fi
24879 done
24880 done
24881 IFS=$as_save_IFS
24883   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
24884   ;;
24885 esac
24887 GMSGFMT=$ac_cv_path_GMSGFMT
24888 if test -n "$GMSGFMT"; then
24889   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
24890 echo "${ECHO_T}$GMSGFMT" >&6; }
24891 else
24892   { echo "$as_me:$LINENO: result: no" >&5
24893 echo "${ECHO_T}no" >&6; }
24897           # Extract the first word of "xgettext", so it can be a program name with args.
24898 set dummy xgettext; ac_word=$2
24899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24901 if test "${ac_cv_path_XGETTEXT+set}" = set; then
24902   echo $ECHO_N "(cached) $ECHO_C" >&6
24903 else
24904   case "$XGETTEXT" in
24905   /*)
24906   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24907   ;;
24908   *)
24909   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24910   for ac_dir in $PATH; do
24911     test -z "$ac_dir" && ac_dir=.
24912     if test -f $ac_dir/$ac_word; then
24913       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
24914         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
24915         break
24916       fi
24917     fi
24918   done
24919   IFS="$ac_save_ifs"
24920   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24921   ;;
24922 esac
24924 XGETTEXT="$ac_cv_path_XGETTEXT"
24925 if test "$XGETTEXT" != ":"; then
24926   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24927 echo "${ECHO_T}$XGETTEXT" >&6; }
24928 else
24929   { echo "$as_me:$LINENO: result: no" >&5
24930 echo "${ECHO_T}no" >&6; }
24933           cat >conftest.$ac_ext <<_ACEOF
24934 /* confdefs.h.  */
24935 _ACEOF
24936 cat confdefs.h >>conftest.$ac_ext
24937 cat >>conftest.$ac_ext <<_ACEOF
24938 /* end confdefs.h.  */
24940 int
24941 main ()
24943 extern int _nl_msg_cat_cntr;
24944                          return _nl_msg_cat_cntr
24945   ;
24946   return 0;
24948 _ACEOF
24949 rm -f conftest.$ac_objext conftest$ac_exeext
24950 if { (ac_try="$ac_link"
24951 case "(($ac_try" in
24952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24953   *) ac_try_echo=$ac_try;;
24954 esac
24955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24956   (eval "$ac_link") 2>conftest.er1
24957   ac_status=$?
24958   grep -v '^ *+' conftest.er1 >conftest.err
24959   rm -f conftest.er1
24960   cat conftest.err >&5
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); } && {
24963          test -z "$ac_c_werror_flag" ||
24964          test ! -s conftest.err
24965        } && test -s conftest$ac_exeext &&
24966        $as_test_x conftest$ac_exeext; then
24967   CATOBJEXT=.gmo
24968              DATADIRNAME=share
24969 else
24970   echo "$as_me: failed program was:" >&5
24971 sed 's/^/| /' conftest.$ac_ext >&5
24973         case $host in
24974             *-*-solaris*)
24975                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
24976 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
24977 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
24978   echo $ECHO_N "(cached) $ECHO_C" >&6
24979 else
24980   cat >conftest.$ac_ext <<_ACEOF
24981 /* confdefs.h.  */
24982 _ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h.  */
24986 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
24987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24988 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
24990 /* System header to define __stub macros and hopefully few prototypes,
24991     which can conflict with char bind_textdomain_codeset (); below.
24992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24993     <limits.h> exists even on freestanding compilers.  */
24995 #ifdef __STDC__
24996 # include <limits.h>
24997 #else
24998 # include <assert.h>
24999 #endif
25001 #undef bind_textdomain_codeset
25003 /* Override any GCC internal prototype to avoid an error.
25004    Use char because int might match the return type of a GCC
25005    builtin and then its argument prototype would still apply.  */
25006 #ifdef __cplusplus
25007 extern "C"
25008 #endif
25009 char bind_textdomain_codeset ();
25010 /* The GNU C library defines this for functions which it implements
25011     to always fail with ENOSYS.  Some functions are actually named
25012     something starting with __ and the normal name is an alias.  */
25013 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
25014 choke me
25015 #endif
25017 int
25018 main ()
25020 return bind_textdomain_codeset ();
25021   ;
25022   return 0;
25024 _ACEOF
25025 rm -f conftest.$ac_objext conftest$ac_exeext
25026 if { (ac_try="$ac_link"
25027 case "(($ac_try" in
25028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25029   *) ac_try_echo=$ac_try;;
25030 esac
25031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25032   (eval "$ac_link") 2>conftest.er1
25033   ac_status=$?
25034   grep -v '^ *+' conftest.er1 >conftest.err
25035   rm -f conftest.er1
25036   cat conftest.err >&5
25037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038   (exit $ac_status); } && {
25039          test -z "$ac_c_werror_flag" ||
25040          test ! -s conftest.err
25041        } && test -s conftest$ac_exeext &&
25042        $as_test_x conftest$ac_exeext; then
25043   ac_cv_func_bind_textdomain_codeset=yes
25044 else
25045   echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25048         ac_cv_func_bind_textdomain_codeset=no
25051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25052       conftest$ac_exeext conftest.$ac_ext
25054 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
25055 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
25056 if test $ac_cv_func_bind_textdomain_codeset = yes; then
25057   CATOBJEXT=.gmo
25058                DATADIRNAME=share
25059 else
25060   CATOBJEXT=.mo
25061                DATADIRNAME=lib
25064             ;;
25065             *)
25066             CATOBJEXT=.mo
25067             DATADIRNAME=lib
25068             ;;
25069             esac
25072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25073       conftest$ac_exeext conftest.$ac_ext
25074           LIBS="$glib_save_LIBS"
25075           INSTOBJEXT=.mo
25076         else
25077           gt_cv_have_gettext=no
25078         fi
25079       fi
25085     if test "$gt_cv_have_gettext" = "yes" ; then
25087 cat >>confdefs.h <<\_ACEOF
25088 #define ENABLE_NLS 1
25089 _ACEOF
25091     fi
25093         if test "$XGETTEXT" != ":"; then
25094                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
25095         : ;
25096       else
25097         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
25098 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
25099         XGETTEXT=":"
25100       fi
25101     fi
25103     # We need to process the po/ directory.
25104     POSUB=po
25106     ac_config_commands="$ac_config_commands default-1"
25109                 for lang in $ALL_LINGUAS; do
25110       GMOFILES="$GMOFILES $lang.gmo"
25111       POFILES="$POFILES $lang.po"
25112     done
25126    if test "$gt_cv_have_gettext" = "yes"; then
25127      if test "x$ALL_LINGUAS" = "x"; then
25128        LINGUAS=
25129      else
25130        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
25131 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
25132        NEW_LINGUAS=
25133        for presentlang in $ALL_LINGUAS; do
25134          useit=no
25135          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
25136            desiredlanguages="$LINGUAS"
25137          else
25138            desiredlanguages="$ALL_LINGUAS"
25139          fi
25140          for desiredlang in $desiredlanguages; do
25141            # Use the presentlang catalog if desiredlang is
25142            #   a. equal to presentlang, or
25143            #   b. a variant of presentlang (because in this case,
25144            #      presentlang can be used as a fallback for messages
25145            #      which are not translated in the desiredlang catalog).
25146            case "$desiredlang" in
25147              "$presentlang"*) useit=yes;;
25148            esac
25149          done
25150          if test $useit = yes; then
25151            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
25152          fi
25153        done
25154        LINGUAS=$NEW_LINGUAS
25155        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
25156 echo "${ECHO_T}$LINGUAS" >&6; }
25157      fi
25159           if test -n "$LINGUAS"; then
25160        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
25161      fi
25162    fi
25164             MKINSTALLDIRS=
25165    if test -n "$ac_aux_dir"; then
25166      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
25167    fi
25168    if test -z "$MKINSTALLDIRS"; then
25169      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
25170    fi
25173          test -d po || mkdir po
25174    if test "x$srcdir" != "x."; then
25175      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
25176        posrcprefix="$srcdir/"
25177      else
25178        posrcprefix="../$srcdir/"
25179      fi
25180    else
25181      posrcprefix="../"
25182    fi
25183    rm -f po/POTFILES
25184    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
25185         < $srcdir/po/POTFILES.in > po/POTFILES
25188 # Check whether --enable-libintl was given.
25189 if test "${enable_libintl+set}" = set; then
25190   enableval=$enable_libintl;
25191 else
25192   enable_libintl=yes
25196 if test x$enable_libintl = xyes; then
25198 case "$am__api_version" in
25199     1.01234)
25200         { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
25201 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
25202    { (exit 1); exit 1; }; }
25203     ;;
25204     *)
25205     ;;
25206 esac
25208 if test -n "0.35.0"; then
25209     { echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
25210 echo $ECHO_N "checking for intltool >= 0.35.0... $ECHO_C" >&6; }
25212     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
25213     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
25214     INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
25216     { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
25217 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
25218     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
25219         { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
25220 echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
25221    { (exit 1); exit 1; }; }
25224   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25225 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25226      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25227      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25228       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
25229      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25230    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25231     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25232 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25233        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25234       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25235       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
25236       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25237       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25238     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25239   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25240     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25241     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25242    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
25264 # Check the gettext tools to make sure they are GNU
25265 # Extract the first word of "xgettext", so it can be a program name with args.
25266 set dummy xgettext; ac_word=$2
25267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25269 if test "${ac_cv_path_XGETTEXT+set}" = set; then
25270   echo $ECHO_N "(cached) $ECHO_C" >&6
25271 else
25272   case $XGETTEXT in
25273   [\\/]* | ?:[\\/]*)
25274   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
25275   ;;
25276   *)
25277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25278 for as_dir in $PATH
25280   IFS=$as_save_IFS
25281   test -z "$as_dir" && as_dir=.
25282   for ac_exec_ext in '' $ac_executable_extensions; do
25283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25284     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
25285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25286     break 2
25287   fi
25288 done
25289 done
25290 IFS=$as_save_IFS
25292   ;;
25293 esac
25295 XGETTEXT=$ac_cv_path_XGETTEXT
25296 if test -n "$XGETTEXT"; then
25297   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25298 echo "${ECHO_T}$XGETTEXT" >&6; }
25299 else
25300   { echo "$as_me:$LINENO: result: no" >&5
25301 echo "${ECHO_T}no" >&6; }
25305 # Extract the first word of "msgmerge", so it can be a program name with args.
25306 set dummy msgmerge; ac_word=$2
25307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25309 if test "${ac_cv_path_MSGMERGE+set}" = set; then
25310   echo $ECHO_N "(cached) $ECHO_C" >&6
25311 else
25312   case $MSGMERGE in
25313   [\\/]* | ?:[\\/]*)
25314   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
25315   ;;
25316   *)
25317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25318 for as_dir in $PATH
25320   IFS=$as_save_IFS
25321   test -z "$as_dir" && as_dir=.
25322   for ac_exec_ext in '' $ac_executable_extensions; do
25323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25324     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
25325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25326     break 2
25327   fi
25328 done
25329 done
25330 IFS=$as_save_IFS
25332   ;;
25333 esac
25335 MSGMERGE=$ac_cv_path_MSGMERGE
25336 if test -n "$MSGMERGE"; then
25337   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25338 echo "${ECHO_T}$MSGMERGE" >&6; }
25339 else
25340   { echo "$as_me:$LINENO: result: no" >&5
25341 echo "${ECHO_T}no" >&6; }
25345 # Extract the first word of "msgfmt", so it can be a program name with args.
25346 set dummy msgfmt; ac_word=$2
25347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25349 if test "${ac_cv_path_MSGFMT+set}" = set; then
25350   echo $ECHO_N "(cached) $ECHO_C" >&6
25351 else
25352   case $MSGFMT in
25353   [\\/]* | ?:[\\/]*)
25354   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
25355   ;;
25356   *)
25357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25358 for as_dir in $PATH
25360   IFS=$as_save_IFS
25361   test -z "$as_dir" && as_dir=.
25362   for ac_exec_ext in '' $ac_executable_extensions; do
25363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25364     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
25365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25366     break 2
25367   fi
25368 done
25369 done
25370 IFS=$as_save_IFS
25372   ;;
25373 esac
25375 MSGFMT=$ac_cv_path_MSGFMT
25376 if test -n "$MSGFMT"; then
25377   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25378 echo "${ECHO_T}$MSGFMT" >&6; }
25379 else
25380   { echo "$as_me:$LINENO: result: no" >&5
25381 echo "${ECHO_T}no" >&6; }
25385 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
25386     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
25387 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
25388    { (exit 1); exit 1; }; }
25390 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
25391 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
25392 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
25393 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
25394     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
25395 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
25396    { (exit 1); exit 1; }; }
25399 # Use the tools built into the package, not the ones that are installed.
25400 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
25402 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
25404 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
25407 # Extract the first word of "perl", so it can be a program name with args.
25408 set dummy perl; ac_word=$2
25409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25411 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
25412   echo $ECHO_N "(cached) $ECHO_C" >&6
25413 else
25414   case $INTLTOOL_PERL in
25415   [\\/]* | ?:[\\/]*)
25416   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
25417   ;;
25418   *)
25419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25420 for as_dir in $PATH
25422   IFS=$as_save_IFS
25423   test -z "$as_dir" && as_dir=.
25424   for ac_exec_ext in '' $ac_executable_extensions; do
25425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25426     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
25427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25428     break 2
25429   fi
25430 done
25431 done
25432 IFS=$as_save_IFS
25434   ;;
25435 esac
25437 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
25438 if test -n "$INTLTOOL_PERL"; then
25439   { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
25440 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
25441 else
25442   { echo "$as_me:$LINENO: result: no" >&5
25443 echo "${ECHO_T}no" >&6; }
25447 if test -z "$INTLTOOL_PERL"; then
25448    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
25449 echo "$as_me: error: perl not found; required for intltool" >&2;}
25450    { (exit 1); exit 1; }; }
25452 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
25453    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
25454 echo "$as_me: error: perl 5.x required for intltool" >&2;}
25455    { (exit 1); exit 1; }; }
25457 if test "xno-xml" != "xno-xml"; then
25458    { echo "$as_me:$LINENO: checking for XML::Parser" >&5
25459 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
25460    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
25461        { echo "$as_me:$LINENO: result: ok" >&5
25462 echo "${ECHO_T}ok" >&6; }
25463    else
25464        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
25465 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
25466    { (exit 1); exit 1; }; }
25467    fi
25470 # Substitute ALL_LINGUAS so we can use it in po/Makefile
25473 # Set DATADIRNAME correctly if it is not set yet
25474 # (copied from glib-gettext.m4)
25475 if test -z "$DATADIRNAME"; then
25476   cat >conftest.$ac_ext <<_ACEOF
25477 /* confdefs.h.  */
25478 _ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h.  */
25483 int
25484 main ()
25486 extern int _nl_msg_cat_cntr;
25487                        return _nl_msg_cat_cntr
25488   ;
25489   return 0;
25491 _ACEOF
25492 rm -f conftest.$ac_objext conftest$ac_exeext
25493 if { (ac_try="$ac_link"
25494 case "(($ac_try" in
25495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496   *) ac_try_echo=$ac_try;;
25497 esac
25498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25499   (eval "$ac_link") 2>conftest.er1
25500   ac_status=$?
25501   grep -v '^ *+' conftest.er1 >conftest.err
25502   rm -f conftest.er1
25503   cat conftest.err >&5
25504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25505   (exit $ac_status); } && {
25506          test -z "$ac_c_werror_flag" ||
25507          test ! -s conftest.err
25508        } && test -s conftest$ac_exeext &&
25509        $as_test_x conftest$ac_exeext; then
25510   DATADIRNAME=share
25511 else
25512   echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25515         case $host in
25516     *-*-solaris*)
25517                         { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
25518 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
25519 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
25520   echo $ECHO_N "(cached) $ECHO_C" >&6
25521 else
25522   cat >conftest.$ac_ext <<_ACEOF
25523 /* confdefs.h.  */
25524 _ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h.  */
25528 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
25529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25530 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
25532 /* System header to define __stub macros and hopefully few prototypes,
25533     which can conflict with char bind_textdomain_codeset (); below.
25534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25535     <limits.h> exists even on freestanding compilers.  */
25537 #ifdef __STDC__
25538 # include <limits.h>
25539 #else
25540 # include <assert.h>
25541 #endif
25543 #undef bind_textdomain_codeset
25545 /* Override any GCC internal prototype to avoid an error.
25546    Use char because int might match the return type of a GCC
25547    builtin and then its argument prototype would still apply.  */
25548 #ifdef __cplusplus
25549 extern "C"
25550 #endif
25551 char bind_textdomain_codeset ();
25552 /* The GNU C library defines this for functions which it implements
25553     to always fail with ENOSYS.  Some functions are actually named
25554     something starting with __ and the normal name is an alias.  */
25555 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
25556 choke me
25557 #endif
25559 int
25560 main ()
25562 return bind_textdomain_codeset ();
25563   ;
25564   return 0;
25566 _ACEOF
25567 rm -f conftest.$ac_objext conftest$ac_exeext
25568 if { (ac_try="$ac_link"
25569 case "(($ac_try" in
25570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25571   *) ac_try_echo=$ac_try;;
25572 esac
25573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25574   (eval "$ac_link") 2>conftest.er1
25575   ac_status=$?
25576   grep -v '^ *+' conftest.er1 >conftest.err
25577   rm -f conftest.er1
25578   cat conftest.err >&5
25579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580   (exit $ac_status); } && {
25581          test -z "$ac_c_werror_flag" ||
25582          test ! -s conftest.err
25583        } && test -s conftest$ac_exeext &&
25584        $as_test_x conftest$ac_exeext; then
25585   ac_cv_func_bind_textdomain_codeset=yes
25586 else
25587   echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25590         ac_cv_func_bind_textdomain_codeset=no
25593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25594       conftest$ac_exeext conftest.$ac_ext
25596 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
25597 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
25598 if test $ac_cv_func_bind_textdomain_codeset = yes; then
25599   DATADIRNAME=share
25600 else
25601   DATADIRNAME=lib
25604     ;;
25605     *)
25606     DATADIRNAME=lib
25607     ;;
25608     esac
25611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25612       conftest$ac_exeext conftest.$ac_ext
25619 ac_config_commands="$ac_config_commands intltool"
25625 if test x$enable_libintl = xyes -a x$MSGFMT = xno; then
25626   { echo "$as_me:$LINENO: WARNING: I could not find msgfmt. Diabeling libintl build." >&5
25627 echo "$as_me: WARNING: I could not find msgfmt. Diabeling libintl build." >&2;}
25628   enable_libintl=no
25631 if test x$enable_libintl = xyes; then
25633 for ac_header in libintl.h
25635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25637   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25640   echo $ECHO_N "(cached) $ECHO_C" >&6
25642 ac_res=`eval echo '${'$as_ac_Header'}'`
25643                { echo "$as_me:$LINENO: result: $ac_res" >&5
25644 echo "${ECHO_T}$ac_res" >&6; }
25645 else
25646   # Is the header compilable?
25647 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25649 cat >conftest.$ac_ext <<_ACEOF
25650 /* confdefs.h.  */
25651 _ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h.  */
25655 $ac_includes_default
25656 #include <$ac_header>
25657 _ACEOF
25658 rm -f conftest.$ac_objext
25659 if { (ac_try="$ac_compile"
25660 case "(($ac_try" in
25661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25662   *) ac_try_echo=$ac_try;;
25663 esac
25664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25665   (eval "$ac_compile") 2>conftest.er1
25666   ac_status=$?
25667   grep -v '^ *+' conftest.er1 >conftest.err
25668   rm -f conftest.er1
25669   cat conftest.err >&5
25670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671   (exit $ac_status); } && {
25672          test -z "$ac_c_werror_flag" ||
25673          test ! -s conftest.err
25674        } && test -s conftest.$ac_objext; then
25675   ac_header_compiler=yes
25676 else
25677   echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25680         ac_header_compiler=no
25683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25684 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25685 echo "${ECHO_T}$ac_header_compiler" >&6; }
25687 # Is the header present?
25688 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25689 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25690 cat >conftest.$ac_ext <<_ACEOF
25691 /* confdefs.h.  */
25692 _ACEOF
25693 cat confdefs.h >>conftest.$ac_ext
25694 cat >>conftest.$ac_ext <<_ACEOF
25695 /* end confdefs.h.  */
25696 #include <$ac_header>
25697 _ACEOF
25698 if { (ac_try="$ac_cpp conftest.$ac_ext"
25699 case "(($ac_try" in
25700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701   *) ac_try_echo=$ac_try;;
25702 esac
25703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25705   ac_status=$?
25706   grep -v '^ *+' conftest.er1 >conftest.err
25707   rm -f conftest.er1
25708   cat conftest.err >&5
25709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710   (exit $ac_status); } >/dev/null && {
25711          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25712          test ! -s conftest.err
25713        }; then
25714   ac_header_preproc=yes
25715 else
25716   echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25719   ac_header_preproc=no
25722 rm -f conftest.err conftest.$ac_ext
25723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25724 echo "${ECHO_T}$ac_header_preproc" >&6; }
25726 # So?  What about this header?
25727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25728   yes:no: )
25729     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25733     ac_header_preproc=yes
25734     ;;
25735   no:yes:* )
25736     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25738     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25739 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25740     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25742     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25743 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25746     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25749     ;;
25750 esac
25751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25754   echo $ECHO_N "(cached) $ECHO_C" >&6
25755 else
25756   eval "$as_ac_Header=\$ac_header_preproc"
25758 ac_res=`eval echo '${'$as_ac_Header'}'`
25759                { echo "$as_me:$LINENO: result: $ac_res" >&5
25760 echo "${ECHO_T}$ac_res" >&6; }
25763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25764   cat >>confdefs.h <<_ACEOF
25765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25766 _ACEOF
25768 else
25769   { echo "$as_me:$LINENO: result: disabeling libintl build" >&5
25770 echo "${ECHO_T}disabeling libintl build" >&6; }; enable_libintl=no
25773 done
25777 if test x$enable_libintl = xyes ; then
25778       { echo "$as_me:$LINENO: checking for libintl_gettext in -lintl" >&5
25779 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6; }
25780 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
25781   echo $ECHO_N "(cached) $ECHO_C" >&6
25782 else
25783   ac_check_lib_save_LIBS=$LIBS
25784 LIBS="-lintl  $LIBS"
25785 cat >conftest.$ac_ext <<_ACEOF
25786 /* confdefs.h.  */
25787 _ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h.  */
25792 /* Override any GCC internal prototype to avoid an error.
25793    Use char because int might match the return type of a GCC
25794    builtin and then its argument prototype would still apply.  */
25795 #ifdef __cplusplus
25796 extern "C"
25797 #endif
25798 char libintl_gettext ();
25799 int
25800 main ()
25802 return libintl_gettext ();
25803   ;
25804   return 0;
25806 _ACEOF
25807 rm -f conftest.$ac_objext conftest$ac_exeext
25808 if { (ac_try="$ac_link"
25809 case "(($ac_try" in
25810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25811   *) ac_try_echo=$ac_try;;
25812 esac
25813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25814   (eval "$ac_link") 2>conftest.er1
25815   ac_status=$?
25816   grep -v '^ *+' conftest.er1 >conftest.err
25817   rm -f conftest.er1
25818   cat conftest.err >&5
25819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820   (exit $ac_status); } && {
25821          test -z "$ac_c_werror_flag" ||
25822          test ! -s conftest.err
25823        } && test -s conftest$ac_exeext &&
25824        $as_test_x conftest$ac_exeext; then
25825   ac_cv_lib_intl_libintl_gettext=yes
25826 else
25827   echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25830         ac_cv_lib_intl_libintl_gettext=no
25833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25834       conftest$ac_exeext conftest.$ac_ext
25835 LIBS=$ac_check_lib_save_LIBS
25837 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_libintl_gettext" >&5
25838 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6; }
25839 if test $ac_cv_lib_intl_libintl_gettext = yes; then
25840   LIB_LIBINTL="-lintl"
25849 if test x$enable_libintl = xyes; then
25850   BUILD_LIBINTL_TRUE=
25851   BUILD_LIBINTL_FALSE='#'
25852 else
25853   BUILD_LIBINTL_TRUE='#'
25854   BUILD_LIBINTL_FALSE=
25858 if test x$enable_libintl = xyes; then
25860 cat >>confdefs.h <<\_ACEOF
25861 #define BUILD_LIBINTL
25862 _ACEOF
25867 case $TERM in
25868        #   for the most important terminal types we directly know the sequences
25869        xterm|xterm*|vt220|vt220*)
25870                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
25871                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
25872        ;;
25873        vt100|vt100*|cygwin)
25874                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
25875                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
25876        ;;
25877        *)
25878                T_MD=''
25879                T_ME=''
25880        ;;
25881 esac
25882   { echo "$as_me:$LINENO: result: " >&5
25883 echo "${ECHO_T}" >&6; }
25884   { echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
25885 echo "${ECHO_T}${T_MD}IEEE Math Checks${T_ME}" >&6; }
25890 for ac_func in fpclassify
25892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25896   echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25898   cat >conftest.$ac_ext <<_ACEOF
25899 /* confdefs.h.  */
25900 _ACEOF
25901 cat confdefs.h >>conftest.$ac_ext
25902 cat >>conftest.$ac_ext <<_ACEOF
25903 /* end confdefs.h.  */
25904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25906 #define $ac_func innocuous_$ac_func
25908 /* System header to define __stub macros and hopefully few prototypes,
25909     which can conflict with char $ac_func (); below.
25910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25911     <limits.h> exists even on freestanding compilers.  */
25913 #ifdef __STDC__
25914 # include <limits.h>
25915 #else
25916 # include <assert.h>
25917 #endif
25919 #undef $ac_func
25921 /* Override any GCC internal prototype to avoid an error.
25922    Use char because int might match the return type of a GCC
25923    builtin and then its argument prototype would still apply.  */
25924 #ifdef __cplusplus
25925 extern "C"
25926 #endif
25927 char $ac_func ();
25928 /* The GNU C library defines this for functions which it implements
25929     to always fail with ENOSYS.  Some functions are actually named
25930     something starting with __ and the normal name is an alias.  */
25931 #if defined __stub_$ac_func || defined __stub___$ac_func
25932 choke me
25933 #endif
25935 int
25936 main ()
25938 return $ac_func ();
25939   ;
25940   return 0;
25942 _ACEOF
25943 rm -f conftest.$ac_objext conftest$ac_exeext
25944 if { (ac_try="$ac_link"
25945 case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950   (eval "$ac_link") 2>conftest.er1
25951   ac_status=$?
25952   grep -v '^ *+' conftest.er1 >conftest.err
25953   rm -f conftest.er1
25954   cat conftest.err >&5
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); } && {
25957          test -z "$ac_c_werror_flag" ||
25958          test ! -s conftest.err
25959        } && test -s conftest$ac_exeext &&
25960        $as_test_x conftest$ac_exeext; then
25961   eval "$as_ac_var=yes"
25962 else
25963   echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25966         eval "$as_ac_var=no"
25969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25970       conftest$ac_exeext conftest.$ac_ext
25972 ac_res=`eval echo '${'$as_ac_var'}'`
25973                { echo "$as_me:$LINENO: result: $ac_res" >&5
25974 echo "${ECHO_T}$ac_res" >&6; }
25975 if test `eval echo '${'$as_ac_var'}'` = yes; then
25976   cat >>confdefs.h <<_ACEOF
25977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25978 _ACEOF
25980 else
25981   { echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
25982 echo $ECHO_N "checking for fpclassify with <math.h>... $ECHO_C" >&6; }
25983     cat >conftest.$ac_ext <<_ACEOF
25984 /* confdefs.h.  */
25985 _ACEOF
25986 cat confdefs.h >>conftest.$ac_ext
25987 cat >>conftest.$ac_ext <<_ACEOF
25988 /* end confdefs.h.  */
25989 #include <math.h>
25990 volatile int x;volatile float f;
25991 int
25992 main ()
25994 x = fpclassify(f)
25995   ;
25996   return 0;
25998 _ACEOF
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (ac_try="$ac_link"
26001 case "(($ac_try" in
26002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003   *) ac_try_echo=$ac_try;;
26004 esac
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006   (eval "$ac_link") 2>conftest.er1
26007   ac_status=$?
26008   grep -v '^ *+' conftest.er1 >conftest.err
26009   rm -f conftest.er1
26010   cat conftest.err >&5
26011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012   (exit $ac_status); } && {
26013          test -z "$ac_c_werror_flag" ||
26014          test ! -s conftest.err
26015        } && test -s conftest$ac_exeext &&
26016        $as_test_x conftest$ac_exeext; then
26017   { echo "$as_me:$LINENO: result: yes" >&5
26018 echo "${ECHO_T}yes" >&6; }
26019       cat >>confdefs.h <<\_ACEOF
26020 #define HAVE_FPCLASSIFY 1
26021 _ACEOF
26023 else
26024   echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26027         { echo "$as_me:$LINENO: result: no" >&5
26028 echo "${ECHO_T}no" >&6; }
26031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26032       conftest$ac_exeext conftest.$ac_ext
26034 done
26038 for ac_func in isinf
26040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26044   echo $ECHO_N "(cached) $ECHO_C" >&6
26045 else
26046   cat >conftest.$ac_ext <<_ACEOF
26047 /* confdefs.h.  */
26048 _ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h.  */
26052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26054 #define $ac_func innocuous_$ac_func
26056 /* System header to define __stub macros and hopefully few prototypes,
26057     which can conflict with char $ac_func (); below.
26058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26059     <limits.h> exists even on freestanding compilers.  */
26061 #ifdef __STDC__
26062 # include <limits.h>
26063 #else
26064 # include <assert.h>
26065 #endif
26067 #undef $ac_func
26069 /* Override any GCC internal prototype to avoid an error.
26070    Use char because int might match the return type of a GCC
26071    builtin and then its argument prototype would still apply.  */
26072 #ifdef __cplusplus
26073 extern "C"
26074 #endif
26075 char $ac_func ();
26076 /* The GNU C library defines this for functions which it implements
26077     to always fail with ENOSYS.  Some functions are actually named
26078     something starting with __ and the normal name is an alias.  */
26079 #if defined __stub_$ac_func || defined __stub___$ac_func
26080 choke me
26081 #endif
26083 int
26084 main ()
26086 return $ac_func ();
26087   ;
26088   return 0;
26090 _ACEOF
26091 rm -f conftest.$ac_objext conftest$ac_exeext
26092 if { (ac_try="$ac_link"
26093 case "(($ac_try" in
26094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26095   *) ac_try_echo=$ac_try;;
26096 esac
26097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26098   (eval "$ac_link") 2>conftest.er1
26099   ac_status=$?
26100   grep -v '^ *+' conftest.er1 >conftest.err
26101   rm -f conftest.er1
26102   cat conftest.err >&5
26103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104   (exit $ac_status); } && {
26105          test -z "$ac_c_werror_flag" ||
26106          test ! -s conftest.err
26107        } && test -s conftest$ac_exeext &&
26108        $as_test_x conftest$ac_exeext; then
26109   eval "$as_ac_var=yes"
26110 else
26111   echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.$ac_ext >&5
26114         eval "$as_ac_var=no"
26117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26118       conftest$ac_exeext conftest.$ac_ext
26120 ac_res=`eval echo '${'$as_ac_var'}'`
26121                { echo "$as_me:$LINENO: result: $ac_res" >&5
26122 echo "${ECHO_T}$ac_res" >&6; }
26123 if test `eval echo '${'$as_ac_var'}'` = yes; then
26124   cat >>confdefs.h <<_ACEOF
26125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26126 _ACEOF
26128 else
26129   { echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
26130 echo $ECHO_N "checking for isinf with <math.h>... $ECHO_C" >&6; }
26131     cat >conftest.$ac_ext <<_ACEOF
26132 /* confdefs.h.  */
26133 _ACEOF
26134 cat confdefs.h >>conftest.$ac_ext
26135 cat >>conftest.$ac_ext <<_ACEOF
26136 /* end confdefs.h.  */
26137 #include <math.h>
26138 volatile int x;volatile float f;
26139 int
26140 main ()
26142 x = isinf(f)
26143   ;
26144   return 0;
26146 _ACEOF
26147 rm -f conftest.$ac_objext conftest$ac_exeext
26148 if { (ac_try="$ac_link"
26149 case "(($ac_try" in
26150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26151   *) ac_try_echo=$ac_try;;
26152 esac
26153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26154   (eval "$ac_link") 2>conftest.er1
26155   ac_status=$?
26156   grep -v '^ *+' conftest.er1 >conftest.err
26157   rm -f conftest.er1
26158   cat conftest.err >&5
26159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160   (exit $ac_status); } && {
26161          test -z "$ac_c_werror_flag" ||
26162          test ! -s conftest.err
26163        } && test -s conftest$ac_exeext &&
26164        $as_test_x conftest$ac_exeext; then
26165   { echo "$as_me:$LINENO: result: yes" >&5
26166 echo "${ECHO_T}yes" >&6; }
26167       cat >>confdefs.h <<\_ACEOF
26168 #define HAVE_ISINF 1
26169 _ACEOF
26171 else
26172   echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26175         { echo "$as_me:$LINENO: result: no" >&5
26176 echo "${ECHO_T}no" >&6; }
26179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26180       conftest$ac_exeext conftest.$ac_ext
26182 done
26185 { echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
26186 echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6; }
26187 if test "${ac_cv_have_broken_isfinite+set}" = set; then
26188   echo $ECHO_N "(cached) $ECHO_C" >&6
26189 else
26191 if test "$cross_compiling" = yes; then
26193 case "${target}" in
26194   hppa*-*-hpux*) ac_cv_have_broken_isfinite=yes ;;
26195   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
26196   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
26197   *) ac_cv_have_broken_isfinite=no ;;
26198 esac
26199 else
26200   cat >conftest.$ac_ext <<_ACEOF
26201 /* confdefs.h.  */
26202 _ACEOF
26203 cat confdefs.h >>conftest.$ac_ext
26204 cat >>conftest.$ac_ext <<_ACEOF
26205 /* end confdefs.h.  */
26207 #ifdef HAVE_MATH_H
26208 #include <math.h>
26209 #endif
26210 #ifdef HAVE_FLOAT_H
26211 #include <float.h>
26212 #endif
26213 int main ()
26215 #ifdef isfinite
26216 #ifdef LDBL_MAX
26217   if (!isfinite(LDBL_MAX)) return 1;
26218 #endif
26219 #ifdef DBL_MAX
26220   if (!isfinite(DBL_MAX)) return 1;
26221 #endif
26222 #endif
26223 return 0;
26225 _ACEOF
26226 rm -f 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>&5
26234   ac_status=$?
26235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26237   { (case "(($ac_try" in
26238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239   *) ac_try_echo=$ac_try;;
26240 esac
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242   (eval "$ac_try") 2>&5
26243   ac_status=$?
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); }; }; then
26246   ac_cv_have_broken_isfinite=no
26247 else
26248   echo "$as_me: program exited with status $ac_status" >&5
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26252 ( exit $ac_status )
26253 ac_cv_have_broken_isfinite=yes
26255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26261 { echo "$as_me:$LINENO: result: $ac_cv_have_broken_isfinite" >&5
26262 echo "${ECHO_T}$ac_cv_have_broken_isfinite" >&6; }
26264 case "${target}" in
26265   *-solaris2.8) ac_cv_have_broken_isfinite=yes ;;
26266   *-solaris2.9) ac_cv_have_broken_isfinite=yes ;;
26267 esac
26269 if test "x$ac_cv_have_broken_isfinite" = "xno"; then
26270   cat >>confdefs.h <<\_ACEOF
26271 #define HAVE_ISFINITE 1
26272 _ACEOF
26274 else
26276 for ac_func in finite
26278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26282   echo $ECHO_N "(cached) $ECHO_C" >&6
26283 else
26284   cat >conftest.$ac_ext <<_ACEOF
26285 /* confdefs.h.  */
26286 _ACEOF
26287 cat confdefs.h >>conftest.$ac_ext
26288 cat >>conftest.$ac_ext <<_ACEOF
26289 /* end confdefs.h.  */
26290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26292 #define $ac_func innocuous_$ac_func
26294 /* System header to define __stub macros and hopefully few prototypes,
26295     which can conflict with char $ac_func (); below.
26296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26297     <limits.h> exists even on freestanding compilers.  */
26299 #ifdef __STDC__
26300 # include <limits.h>
26301 #else
26302 # include <assert.h>
26303 #endif
26305 #undef $ac_func
26307 /* Override any GCC internal prototype to avoid an error.
26308    Use char because int might match the return type of a GCC
26309    builtin and then its argument prototype would still apply.  */
26310 #ifdef __cplusplus
26311 extern "C"
26312 #endif
26313 char $ac_func ();
26314 /* The GNU C library defines this for functions which it implements
26315     to always fail with ENOSYS.  Some functions are actually named
26316     something starting with __ and the normal name is an alias.  */
26317 #if defined __stub_$ac_func || defined __stub___$ac_func
26318 choke me
26319 #endif
26321 int
26322 main ()
26324 return $ac_func ();
26325   ;
26326   return 0;
26328 _ACEOF
26329 rm -f conftest.$ac_objext conftest$ac_exeext
26330 if { (ac_try="$ac_link"
26331 case "(($ac_try" in
26332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26333   *) ac_try_echo=$ac_try;;
26334 esac
26335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26336   (eval "$ac_link") 2>conftest.er1
26337   ac_status=$?
26338   grep -v '^ *+' conftest.er1 >conftest.err
26339   rm -f conftest.er1
26340   cat conftest.err >&5
26341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342   (exit $ac_status); } && {
26343          test -z "$ac_c_werror_flag" ||
26344          test ! -s conftest.err
26345        } && test -s conftest$ac_exeext &&
26346        $as_test_x conftest$ac_exeext; then
26347   eval "$as_ac_var=yes"
26348 else
26349   echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26352         eval "$as_ac_var=no"
26355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26356       conftest$ac_exeext conftest.$ac_ext
26358 ac_res=`eval echo '${'$as_ac_var'}'`
26359                { echo "$as_me:$LINENO: result: $ac_res" >&5
26360 echo "${ECHO_T}$ac_res" >&6; }
26361 if test `eval echo '${'$as_ac_var'}'` = yes; then
26362   cat >>confdefs.h <<_ACEOF
26363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26364 _ACEOF
26366 else
26368 for ac_func in isfinite
26370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26374   echo $ECHO_N "(cached) $ECHO_C" >&6
26375 else
26376   cat >conftest.$ac_ext <<_ACEOF
26377 /* confdefs.h.  */
26378 _ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h.  */
26382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26384 #define $ac_func innocuous_$ac_func
26386 /* System header to define __stub macros and hopefully few prototypes,
26387     which can conflict with char $ac_func (); below.
26388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26389     <limits.h> exists even on freestanding compilers.  */
26391 #ifdef __STDC__
26392 # include <limits.h>
26393 #else
26394 # include <assert.h>
26395 #endif
26397 #undef $ac_func
26399 /* Override any GCC internal prototype to avoid an error.
26400    Use char because int might match the return type of a GCC
26401    builtin and then its argument prototype would still apply.  */
26402 #ifdef __cplusplus
26403 extern "C"
26404 #endif
26405 char $ac_func ();
26406 /* The GNU C library defines this for functions which it implements
26407     to always fail with ENOSYS.  Some functions are actually named
26408     something starting with __ and the normal name is an alias.  */
26409 #if defined __stub_$ac_func || defined __stub___$ac_func
26410 choke me
26411 #endif
26413 int
26414 main ()
26416 return $ac_func ();
26417   ;
26418   return 0;
26420 _ACEOF
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425   *) ac_try_echo=$ac_try;;
26426 esac
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428   (eval "$ac_link") 2>conftest.er1
26429   ac_status=$?
26430   grep -v '^ *+' conftest.er1 >conftest.err
26431   rm -f conftest.er1
26432   cat conftest.err >&5
26433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); } && {
26435          test -z "$ac_c_werror_flag" ||
26436          test ! -s conftest.err
26437        } && test -s conftest$ac_exeext &&
26438        $as_test_x conftest$ac_exeext; then
26439   eval "$as_ac_var=yes"
26440 else
26441   echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26444         eval "$as_ac_var=no"
26447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26448       conftest$ac_exeext conftest.$ac_ext
26450 ac_res=`eval echo '${'$as_ac_var'}'`
26451                { echo "$as_me:$LINENO: result: $ac_res" >&5
26452 echo "${ECHO_T}$ac_res" >&6; }
26453 if test `eval echo '${'$as_ac_var'}'` = yes; then
26454   cat >>confdefs.h <<_ACEOF
26455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26456 _ACEOF
26458 else
26459   { echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
26460 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6; }
26461           cat >conftest.$ac_ext <<_ACEOF
26462 /* confdefs.h.  */
26463 _ACEOF
26464 cat confdefs.h >>conftest.$ac_ext
26465 cat >>conftest.$ac_ext <<_ACEOF
26466 /* end confdefs.h.  */
26467 #include <math.h>
26468 volatile int x;volatile float f;
26469 int
26470 main ()
26472 x = isfinite(f)
26473   ;
26474   return 0;
26476 _ACEOF
26477 rm -f conftest.$ac_objext conftest$ac_exeext
26478 if { (ac_try="$ac_link"
26479 case "(($ac_try" in
26480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26481   *) ac_try_echo=$ac_try;;
26482 esac
26483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26484   (eval "$ac_link") 2>conftest.er1
26485   ac_status=$?
26486   grep -v '^ *+' conftest.er1 >conftest.err
26487   rm -f conftest.er1
26488   cat conftest.err >&5
26489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490   (exit $ac_status); } && {
26491          test -z "$ac_c_werror_flag" ||
26492          test ! -s conftest.err
26493        } && test -s conftest$ac_exeext &&
26494        $as_test_x conftest$ac_exeext; then
26495   { echo "$as_me:$LINENO: result: yes" >&5
26496 echo "${ECHO_T}yes" >&6; }
26497                 cat >>confdefs.h <<\_ACEOF
26498 #define HAVE_ISFINITE 1
26499 _ACEOF
26501 else
26502   echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.$ac_ext >&5
26505         { echo "$as_me:$LINENO: result: no" >&5
26506 echo "${ECHO_T}no" >&6; }
26509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26510       conftest$ac_exeext conftest.$ac_ext
26512 done
26515 done
26520 ac_ext=c
26521 ac_cpp='$CPP $CPPFLAGS'
26522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26526 _cflags=${CFLAGS}
26528 { echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
26529 echo $ECHO_N "checking if IEEE math works out of the box... $ECHO_C" >&6; }
26530 if test "${rd_cv_ieee_works+set}" = set; then
26531   echo $ECHO_N "(cached) $ECHO_C" >&6
26532 else
26533   if test "$cross_compiling" = yes; then
26534   :
26535 else
26536   cat >conftest.$ac_ext <<_ACEOF
26537 /* confdefs.h.  */
26538 _ACEOF
26539 cat confdefs.h >>conftest.$ac_ext
26540 cat >>conftest.$ac_ext <<_ACEOF
26541 /* end confdefs.h.  */
26544 #if HAVE_MATH_H
26545 #  include <math.h>
26546 #endif
26548 #if HAVE_FLOAT_H
26549 #  include <float.h>
26550 #endif
26552 #if HAVE_IEEEFP_H
26553 #  include <ieeefp.h>
26554 #endif
26556 #if HAVE_FP_CLASS_H
26557 #  include <fp_class.h>
26558 #endif
26560 /* Solaris */
26561 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26562 #  define HAVE_ISINF 1
26563 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26564 #endif
26566 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26567 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26568 #  undef isnan
26569 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26570 #endif
26572 /* Digital UNIX */
26573 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26574 #  define HAVE_ISINF 1
26575 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26576 #endif
26578 /* AIX */
26579 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26580 #  define HAVE_ISINF 1
26581 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26582 #endif
26584 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26585 #  define HAVE_ISINF 1
26586 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26587 #endif
26589 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26590 #  define HAVE_ISINF 1
26591 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26592 #endif
26594 #include <stdio.h>
26595 int main(void){
26596     double rrdnan,rrdinf,rrdc,rrdzero;
26597     ;
26598     /* some math to see if we get a floating point exception */
26599     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26600     rrdnan=0.0/rrdzero; /* especially here */
26601     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26602                   /* at run time without sig fpe */
26603     rrdc = rrdinf + rrdnan;
26604     rrdc = rrdinf / rrdnan;
26605     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26606     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26607     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26608     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26609     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26610     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26611     return 0;
26612  }
26613 _ACEOF
26614 rm -f conftest$ac_exeext
26615 if { (ac_try="$ac_link"
26616 case "(($ac_try" in
26617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618   *) ac_try_echo=$ac_try;;
26619 esac
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621   (eval "$ac_link") 2>&5
26622   ac_status=$?
26623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26625   { (case "(($ac_try" in
26626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26627   *) ac_try_echo=$ac_try;;
26628 esac
26629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26630   (eval "$ac_try") 2>&5
26631   ac_status=$?
26632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633   (exit $ac_status); }; }; then
26634   rd_cv_ieee_works=yes
26635 else
26636   echo "$as_me: program exited with status $ac_status" >&5
26637 echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26640 ( exit $ac_status )
26641 rd_cv_ieee_works=no
26643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26649 if test x${rd_cv_ieee_works} = "xyes"; then
26650  { echo "$as_me:$LINENO: result: yes" >&5
26651 echo "${ECHO_T}yes" >&6; }
26653 else
26654  { echo "$as_me:$LINENO: result: no" >&5
26655 echo "${ECHO_T}no" >&6; }
26656  CFLAGS="$_cflags -ieee"
26658 { echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
26659 echo $ECHO_N "checking if IEEE math works with the -ieee switch... $ECHO_C" >&6; }
26660 if test "${rd_cv_ieee_switch+set}" = set; then
26661   echo $ECHO_N "(cached) $ECHO_C" >&6
26662 else
26663   if test "$cross_compiling" = yes; then
26664   :
26665 else
26666   cat >conftest.$ac_ext <<_ACEOF
26667 /* confdefs.h.  */
26668 _ACEOF
26669 cat confdefs.h >>conftest.$ac_ext
26670 cat >>conftest.$ac_ext <<_ACEOF
26671 /* end confdefs.h.  */
26674 #if HAVE_MATH_H
26675 #  include <math.h>
26676 #endif
26678 #if HAVE_FLOAT_H
26679 #  include <float.h>
26680 #endif
26682 #if HAVE_IEEEFP_H
26683 #  include <ieeefp.h>
26684 #endif
26686 #if HAVE_FP_CLASS_H
26687 #  include <fp_class.h>
26688 #endif
26690 /* Solaris */
26691 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26692 #  define HAVE_ISINF 1
26693 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26694 #endif
26696 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26697 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26698 #  undef isnan
26699 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26700 #endif
26702 /* Digital UNIX */
26703 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26704 #  define HAVE_ISINF 1
26705 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26706 #endif
26708 /* AIX */
26709 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26710 #  define HAVE_ISINF 1
26711 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26712 #endif
26714 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26715 #  define HAVE_ISINF 1
26716 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26717 #endif
26719 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26720 #  define HAVE_ISINF 1
26721 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26722 #endif
26724 #include <stdio.h>
26725 int main(void){
26726     double rrdnan,rrdinf,rrdc,rrdzero;
26727     ;
26728     /* some math to see if we get a floating point exception */
26729     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26730     rrdnan=0.0/rrdzero; /* especially here */
26731     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26732                   /* at run time without sig fpe */
26733     rrdc = rrdinf + rrdnan;
26734     rrdc = rrdinf / rrdnan;
26735     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26736     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26737     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26738     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26739     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26740     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26741     return 0;
26742  }
26743 _ACEOF
26744 rm -f conftest$ac_exeext
26745 if { (ac_try="$ac_link"
26746 case "(($ac_try" in
26747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748   *) ac_try_echo=$ac_try;;
26749 esac
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751   (eval "$ac_link") 2>&5
26752   ac_status=$?
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26755   { (case "(($ac_try" in
26756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757   *) ac_try_echo=$ac_try;;
26758 esac
26759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760   (eval "$ac_try") 2>&5
26761   ac_status=$?
26762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763   (exit $ac_status); }; }; then
26764   rd_cv_ieee_switch=yes
26765 else
26766   echo "$as_me: program exited with status $ac_status" >&5
26767 echo "$as_me: failed program was:" >&5
26768 sed 's/^/| /' conftest.$ac_ext >&5
26770 ( exit $ac_status )
26771 rd_cv_ieee_switch=no
26773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26779 if test x${rd_cv_ieee_switch} = "xyes"; then
26780  { echo "$as_me:$LINENO: result: yes" >&5
26781 echo "${ECHO_T}yes" >&6; }
26783 else
26784  { echo "$as_me:$LINENO: result: no" >&5
26785 echo "${ECHO_T}no" >&6; }
26786  CFLAGS="$_cflags -qfloat=nofold"
26788 { echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
26789 echo $ECHO_N "checking if IEEE math works with the -qfloat=nofold switch... $ECHO_C" >&6; }
26790 if test "${rd_cv_ieee_nofold+set}" = set; then
26791   echo $ECHO_N "(cached) $ECHO_C" >&6
26792 else
26793   if test "$cross_compiling" = yes; then
26794   :
26795 else
26796   cat >conftest.$ac_ext <<_ACEOF
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26804 #if HAVE_MATH_H
26805 #  include <math.h>
26806 #endif
26808 #if HAVE_FLOAT_H
26809 #  include <float.h>
26810 #endif
26812 #if HAVE_IEEEFP_H
26813 #  include <ieeefp.h>
26814 #endif
26816 #if HAVE_FP_CLASS_H
26817 #  include <fp_class.h>
26818 #endif
26820 /* Solaris */
26821 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26822 #  define HAVE_ISINF 1
26823 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26824 #endif
26826 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26827 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26828 #  undef isnan
26829 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26830 #endif
26832 /* Digital UNIX */
26833 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26834 #  define HAVE_ISINF 1
26835 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26836 #endif
26838 /* AIX */
26839 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26840 #  define HAVE_ISINF 1
26841 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26842 #endif
26844 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26845 #  define HAVE_ISINF 1
26846 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26847 #endif
26849 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26850 #  define HAVE_ISINF 1
26851 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26852 #endif
26854 #include <stdio.h>
26855 int main(void){
26856     double rrdnan,rrdinf,rrdc,rrdzero;
26857     ;
26858     /* some math to see if we get a floating point exception */
26859     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26860     rrdnan=0.0/rrdzero; /* especially here */
26861     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26862                   /* at run time without sig fpe */
26863     rrdc = rrdinf + rrdnan;
26864     rrdc = rrdinf / rrdnan;
26865     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26866     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26867     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26868     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26869     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26870     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26871     return 0;
26872  }
26873 _ACEOF
26874 rm -f conftest$ac_exeext
26875 if { (ac_try="$ac_link"
26876 case "(($ac_try" in
26877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26878   *) ac_try_echo=$ac_try;;
26879 esac
26880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26881   (eval "$ac_link") 2>&5
26882   ac_status=$?
26883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26885   { (case "(($ac_try" in
26886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26887   *) ac_try_echo=$ac_try;;
26888 esac
26889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26890   (eval "$ac_try") 2>&5
26891   ac_status=$?
26892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893   (exit $ac_status); }; }; then
26894   rd_cv_ieee_nofold=yes
26895 else
26896   echo "$as_me: program exited with status $ac_status" >&5
26897 echo "$as_me: failed program was:" >&5
26898 sed 's/^/| /' conftest.$ac_ext >&5
26900 ( exit $ac_status )
26901 rd_cv_ieee_nofold=no
26903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26909 if test x${rd_cv_ieee_nofold} = "xyes"; then
26910  { echo "$as_me:$LINENO: result: yes" >&5
26911 echo "${ECHO_T}yes" >&6; }
26913 else
26914  { echo "$as_me:$LINENO: result: no" >&5
26915 echo "${ECHO_T}no" >&6; }
26916  CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
26918 { echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
26919 echo $ECHO_N "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... $ECHO_C" >&6; }
26920 if test "${rd_cv_ieee_flttrap+set}" = set; then
26921   echo $ECHO_N "(cached) $ECHO_C" >&6
26922 else
26923   if test "$cross_compiling" = yes; then
26924   :
26925 else
26926   cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h.  */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h.  */
26934 #if HAVE_MATH_H
26935 #  include <math.h>
26936 #endif
26938 #if HAVE_FLOAT_H
26939 #  include <float.h>
26940 #endif
26942 #if HAVE_IEEEFP_H
26943 #  include <ieeefp.h>
26944 #endif
26946 #if HAVE_FP_CLASS_H
26947 #  include <fp_class.h>
26948 #endif
26950 /* Solaris */
26951 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26952 #  define HAVE_ISINF 1
26953 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26954 #endif
26956 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26957 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26958 #  undef isnan
26959 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26960 #endif
26962 /* Digital UNIX */
26963 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26964 #  define HAVE_ISINF 1
26965 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26966 #endif
26968 /* AIX */
26969 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26970 #  define HAVE_ISINF 1
26971 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26972 #endif
26974 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26975 #  define HAVE_ISINF 1
26976 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26977 #endif
26979 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26980 #  define HAVE_ISINF 1
26981 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26982 #endif
26984 #include <stdio.h>
26985 int main(void){
26986     double rrdnan,rrdinf,rrdc,rrdzero;
26987     ;
26988     /* some math to see if we get a floating point exception */
26989     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26990     rrdnan=0.0/rrdzero; /* especially here */
26991     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26992                   /* at run time without sig fpe */
26993     rrdc = rrdinf + rrdnan;
26994     rrdc = rrdinf / rrdnan;
26995     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26996     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26997     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26998     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26999     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27000     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27001     return 0;
27002  }
27003 _ACEOF
27004 rm -f conftest$ac_exeext
27005 if { (ac_try="$ac_link"
27006 case "(($ac_try" in
27007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27008   *) ac_try_echo=$ac_try;;
27009 esac
27010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27011   (eval "$ac_link") 2>&5
27012   ac_status=$?
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27015   { (case "(($ac_try" in
27016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27017   *) ac_try_echo=$ac_try;;
27018 esac
27019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27020   (eval "$ac_try") 2>&5
27021   ac_status=$?
27022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023   (exit $ac_status); }; }; then
27024   rd_cv_ieee_flttrap=yes
27025 else
27026   echo "$as_me: program exited with status $ac_status" >&5
27027 echo "$as_me: failed program was:" >&5
27028 sed 's/^/| /' conftest.$ac_ext >&5
27030 ( exit $ac_status )
27031 rd_cv_ieee_flttrap=no
27033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27039 if test x${rd_cv_ieee_flttrap} = "xyes"; then
27040  { echo "$as_me:$LINENO: result: yes" >&5
27041 echo "${ECHO_T}yes" >&6; }
27043 else
27044  { echo "$as_me:$LINENO: result: no" >&5
27045 echo "${ECHO_T}no" >&6; }
27046  CFLAGS="$_cflags -mieee"
27048 { echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
27049 echo $ECHO_N "checking if IEEE math works with the -mieee switch... $ECHO_C" >&6; }
27050 if test "${rd_cv_ieee_mswitch+set}" = set; then
27051   echo $ECHO_N "(cached) $ECHO_C" >&6
27052 else
27053   if test "$cross_compiling" = yes; then
27054   :
27055 else
27056   cat >conftest.$ac_ext <<_ACEOF
27057 /* confdefs.h.  */
27058 _ACEOF
27059 cat confdefs.h >>conftest.$ac_ext
27060 cat >>conftest.$ac_ext <<_ACEOF
27061 /* end confdefs.h.  */
27064 #if HAVE_MATH_H
27065 #  include <math.h>
27066 #endif
27068 #if HAVE_FLOAT_H
27069 #  include <float.h>
27070 #endif
27072 #if HAVE_IEEEFP_H
27073 #  include <ieeefp.h>
27074 #endif
27076 #if HAVE_FP_CLASS_H
27077 #  include <fp_class.h>
27078 #endif
27080 /* Solaris */
27081 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27082 #  define HAVE_ISINF 1
27083 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27084 #endif
27086 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27087 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27088 #  undef isnan
27089 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27090 #endif
27092 /* Digital UNIX */
27093 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27094 #  define HAVE_ISINF 1
27095 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27096 #endif
27098 /* AIX */
27099 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27100 #  define HAVE_ISINF 1
27101 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27102 #endif
27104 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27105 #  define HAVE_ISINF 1
27106 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27107 #endif
27109 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27110 #  define HAVE_ISINF 1
27111 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27112 #endif
27114 #include <stdio.h>
27115 int main(void){
27116     double rrdnan,rrdinf,rrdc,rrdzero;
27117     ;
27118     /* some math to see if we get a floating point exception */
27119     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27120     rrdnan=0.0/rrdzero; /* especially here */
27121     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27122                   /* at run time without sig fpe */
27123     rrdc = rrdinf + rrdnan;
27124     rrdc = rrdinf / rrdnan;
27125     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27126     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27127     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27128     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27129     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27130     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27131     return 0;
27132  }
27133 _ACEOF
27134 rm -f conftest$ac_exeext
27135 if { (ac_try="$ac_link"
27136 case "(($ac_try" in
27137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27138   *) ac_try_echo=$ac_try;;
27139 esac
27140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27141   (eval "$ac_link") 2>&5
27142   ac_status=$?
27143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27145   { (case "(($ac_try" in
27146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27147   *) ac_try_echo=$ac_try;;
27148 esac
27149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27150   (eval "$ac_try") 2>&5
27151   ac_status=$?
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); }; }; then
27154   rd_cv_ieee_mswitch=yes
27155 else
27156   echo "$as_me: program exited with status $ac_status" >&5
27157 echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27160 ( exit $ac_status )
27161 rd_cv_ieee_mswitch=no
27163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27169 if test x${rd_cv_ieee_mswitch} = "xyes"; then
27170  { echo "$as_me:$LINENO: result: yes" >&5
27171 echo "${ECHO_T}yes" >&6; }
27173 else
27174  { echo "$as_me:$LINENO: result: no" >&5
27175 echo "${ECHO_T}no" >&6; }
27176  CFLAGS="$_cflags -q float=rndsngl"
27178 { echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
27179 echo $ECHO_N "checking if IEEE math works with the -q float=rndsngl switch... $ECHO_C" >&6; }
27180 if test "${rd_cv_ieee_qswitch+set}" = set; then
27181   echo $ECHO_N "(cached) $ECHO_C" >&6
27182 else
27183   if test "$cross_compiling" = yes; then
27184   :
27185 else
27186   cat >conftest.$ac_ext <<_ACEOF
27187 /* confdefs.h.  */
27188 _ACEOF
27189 cat confdefs.h >>conftest.$ac_ext
27190 cat >>conftest.$ac_ext <<_ACEOF
27191 /* end confdefs.h.  */
27194 #if HAVE_MATH_H
27195 #  include <math.h>
27196 #endif
27198 #if HAVE_FLOAT_H
27199 #  include <float.h>
27200 #endif
27202 #if HAVE_IEEEFP_H
27203 #  include <ieeefp.h>
27204 #endif
27206 #if HAVE_FP_CLASS_H
27207 #  include <fp_class.h>
27208 #endif
27210 /* Solaris */
27211 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27212 #  define HAVE_ISINF 1
27213 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27214 #endif
27216 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27217 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27218 #  undef isnan
27219 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27220 #endif
27222 /* Digital UNIX */
27223 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27224 #  define HAVE_ISINF 1
27225 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27226 #endif
27228 /* AIX */
27229 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27230 #  define HAVE_ISINF 1
27231 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27232 #endif
27234 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27235 #  define HAVE_ISINF 1
27236 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27237 #endif
27239 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27240 #  define HAVE_ISINF 1
27241 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27242 #endif
27244 #include <stdio.h>
27245 int main(void){
27246     double rrdnan,rrdinf,rrdc,rrdzero;
27247     ;
27248     /* some math to see if we get a floating point exception */
27249     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27250     rrdnan=0.0/rrdzero; /* especially here */
27251     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27252                   /* at run time without sig fpe */
27253     rrdc = rrdinf + rrdnan;
27254     rrdc = rrdinf / rrdnan;
27255     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27256     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27257     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27258     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27259     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27260     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27261     return 0;
27262  }
27263 _ACEOF
27264 rm -f conftest$ac_exeext
27265 if { (ac_try="$ac_link"
27266 case "(($ac_try" in
27267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268   *) ac_try_echo=$ac_try;;
27269 esac
27270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271   (eval "$ac_link") 2>&5
27272   ac_status=$?
27273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27275   { (case "(($ac_try" in
27276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277   *) ac_try_echo=$ac_try;;
27278 esac
27279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27280   (eval "$ac_try") 2>&5
27281   ac_status=$?
27282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283   (exit $ac_status); }; }; then
27284   rd_cv_ieee_qswitch=yes
27285 else
27286   echo "$as_me: program exited with status $ac_status" >&5
27287 echo "$as_me: failed program was:" >&5
27288 sed 's/^/| /' conftest.$ac_ext >&5
27290 ( exit $ac_status )
27291 rd_cv_ieee_qswitch=no
27293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27299 if test x${rd_cv_ieee_qswitch} = "xyes"; then
27300  { echo "$as_me:$LINENO: result: yes" >&5
27301 echo "${ECHO_T}yes" >&6; }
27303 else
27304  { echo "$as_me:$LINENO: result: no" >&5
27305 echo "${ECHO_T}no" >&6; }
27306  CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
27308 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
27309 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... $ECHO_C" >&6; }
27310 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
27311   echo $ECHO_N "(cached) $ECHO_C" >&6
27312 else
27313   if test "$cross_compiling" = yes; then
27314   :
27315 else
27316   cat >conftest.$ac_ext <<_ACEOF
27317 /* confdefs.h.  */
27318 _ACEOF
27319 cat confdefs.h >>conftest.$ac_ext
27320 cat >>conftest.$ac_ext <<_ACEOF
27321 /* end confdefs.h.  */
27324 #if HAVE_MATH_H
27325 #  include <math.h>
27326 #endif
27328 #if HAVE_FLOAT_H
27329 #  include <float.h>
27330 #endif
27332 #if HAVE_IEEEFP_H
27333 #  include <ieeefp.h>
27334 #endif
27336 #if HAVE_FP_CLASS_H
27337 #  include <fp_class.h>
27338 #endif
27340 /* Solaris */
27341 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27342 #  define HAVE_ISINF 1
27343 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27344 #endif
27346 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27347 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27348 #  undef isnan
27349 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27350 #endif
27352 /* Digital UNIX */
27353 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27354 #  define HAVE_ISINF 1
27355 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27356 #endif
27358 /* AIX */
27359 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27360 #  define HAVE_ISINF 1
27361 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27362 #endif
27364 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27365 #  define HAVE_ISINF 1
27366 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27367 #endif
27369 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27370 #  define HAVE_ISINF 1
27371 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27372 #endif
27374 #include <stdio.h>
27375 int main(void){
27376     double rrdnan,rrdinf,rrdc,rrdzero;
27377     ;
27378     /* some math to see if we get a floating point exception */
27379     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27380     rrdnan=0.0/rrdzero; /* especially here */
27381     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27382                   /* at run time without sig fpe */
27383     rrdc = rrdinf + rrdnan;
27384     rrdc = rrdinf / rrdnan;
27385     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27386     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27387     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27388     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27389     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27390     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27391     return 0;
27392  }
27393 _ACEOF
27394 rm -f conftest$ac_exeext
27395 if { (ac_try="$ac_link"
27396 case "(($ac_try" in
27397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27398   *) ac_try_echo=$ac_try;;
27399 esac
27400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27401   (eval "$ac_link") 2>&5
27402   ac_status=$?
27403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27405   { (case "(($ac_try" in
27406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407   *) ac_try_echo=$ac_try;;
27408 esac
27409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27410   (eval "$ac_try") 2>&5
27411   ac_status=$?
27412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); }; }; then
27414   rd_cv_ieee_ieeenaninfswitch=yes
27415 else
27416   echo "$as_me: program exited with status $ac_status" >&5
27417 echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27420 ( exit $ac_status )
27421 rd_cv_ieee_ieeenaninfswitch=no
27423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27429 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
27430  { echo "$as_me:$LINENO: result: yes" >&5
27431 echo "${ECHO_T}yes" >&6; }
27433 else
27434  { echo "$as_me:$LINENO: result: no" >&5
27435 echo "${ECHO_T}no" >&6; }
27436  CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
27438 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
27439 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... $ECHO_C" >&6; }
27440 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
27441   echo $ECHO_N "(cached) $ECHO_C" >&6
27442 else
27443   if test "$cross_compiling" = yes; then
27444   :
27445 else
27446   cat >conftest.$ac_ext <<_ACEOF
27447 /* confdefs.h.  */
27448 _ACEOF
27449 cat confdefs.h >>conftest.$ac_ext
27450 cat >>conftest.$ac_ext <<_ACEOF
27451 /* end confdefs.h.  */
27454 #if HAVE_MATH_H
27455 #  include <math.h>
27456 #endif
27458 #if HAVE_FLOAT_H
27459 #  include <float.h>
27460 #endif
27462 #if HAVE_IEEEFP_H
27463 #  include <ieeefp.h>
27464 #endif
27466 #if HAVE_FP_CLASS_H
27467 #  include <fp_class.h>
27468 #endif
27470 /* Solaris */
27471 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27472 #  define HAVE_ISINF 1
27473 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27474 #endif
27476 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27477 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27478 #  undef isnan
27479 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27480 #endif
27482 /* Digital UNIX */
27483 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27484 #  define HAVE_ISINF 1
27485 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27486 #endif
27488 /* AIX */
27489 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27490 #  define HAVE_ISINF 1
27491 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27492 #endif
27494 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27495 #  define HAVE_ISINF 1
27496 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27497 #endif
27499 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27500 #  define HAVE_ISINF 1
27501 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27502 #endif
27504 #include <stdio.h>
27505 int main(void){
27506     double rrdnan,rrdinf,rrdc,rrdzero;
27507     ;
27508     /* some math to see if we get a floating point exception */
27509     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27510     rrdnan=0.0/rrdzero; /* especially here */
27511     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27512                   /* at run time without sig fpe */
27513     rrdc = rrdinf + rrdnan;
27514     rrdc = rrdinf / rrdnan;
27515     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27516     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27517     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27518     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27519     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27520     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27521     return 0;
27522  }
27523 _ACEOF
27524 rm -f conftest$ac_exeext
27525 if { (ac_try="$ac_link"
27526 case "(($ac_try" in
27527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528   *) ac_try_echo=$ac_try;;
27529 esac
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531   (eval "$ac_link") 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27535   { (case "(($ac_try" in
27536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537   *) ac_try_echo=$ac_try;;
27538 esac
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540   (eval "$ac_try") 2>&5
27541   ac_status=$?
27542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543   (exit $ac_status); }; }; then
27544   rd_cv_ieee_ieeecmpswitch=yes
27545 else
27546   echo "$as_me: program exited with status $ac_status" >&5
27547 echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27550 ( exit $ac_status )
27551 rd_cv_ieee_ieeecmpswitch=no
27553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27559 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
27560  { echo "$as_me:$LINENO: result: yes" >&5
27561 echo "${ECHO_T}yes" >&6; }
27563 else
27564  { echo "$as_me:$LINENO: result: no" >&5
27565 echo "${ECHO_T}no" >&6; }
27566  CFLAGS=$_cflags
27568 { echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
27569 echo $ECHO_N "checking if IEEE math works with fpsetmask(0)... $ECHO_C" >&6; }
27570 if test "${rd_cv_ieee_mask+set}" = set; then
27571   echo $ECHO_N "(cached) $ECHO_C" >&6
27572 else
27573   if test "$cross_compiling" = yes; then
27574   :
27575 else
27576   cat >conftest.$ac_ext <<_ACEOF
27577 /* confdefs.h.  */
27578 _ACEOF
27579 cat confdefs.h >>conftest.$ac_ext
27580 cat >>conftest.$ac_ext <<_ACEOF
27581 /* end confdefs.h.  */
27582 #include <floatingpoint.h>
27584 #if HAVE_MATH_H
27585 #  include <math.h>
27586 #endif
27588 #if HAVE_FLOAT_H
27589 #  include <float.h>
27590 #endif
27592 #if HAVE_IEEEFP_H
27593 #  include <ieeefp.h>
27594 #endif
27596 #if HAVE_FP_CLASS_H
27597 #  include <fp_class.h>
27598 #endif
27600 /* Solaris */
27601 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27602 #  define HAVE_ISINF 1
27603 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27604 #endif
27606 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27607 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27608 #  undef isnan
27609 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27610 #endif
27612 /* Digital UNIX */
27613 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27614 #  define HAVE_ISINF 1
27615 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27616 #endif
27618 /* AIX */
27619 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27620 #  define HAVE_ISINF 1
27621 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27622 #endif
27624 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27625 #  define HAVE_ISINF 1
27626 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27627 #endif
27629 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27630 #  define HAVE_ISINF 1
27631 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27632 #endif
27634 #include <stdio.h>
27635 int main(void){
27636     double rrdnan,rrdinf,rrdc,rrdzero;
27637     fpsetmask(0);
27638     /* some math to see if we get a floating point exception */
27639     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27640     rrdnan=0.0/rrdzero; /* especially here */
27641     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27642                   /* at run time without sig fpe */
27643     rrdc = rrdinf + rrdnan;
27644     rrdc = rrdinf / rrdnan;
27645     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27646     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27647     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27648     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27649     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27650     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27651     return 0;
27652  }
27653 _ACEOF
27654 rm -f conftest$ac_exeext
27655 if { (ac_try="$ac_link"
27656 case "(($ac_try" in
27657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658   *) ac_try_echo=$ac_try;;
27659 esac
27660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661   (eval "$ac_link") 2>&5
27662   ac_status=$?
27663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27665   { (case "(($ac_try" in
27666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667   *) ac_try_echo=$ac_try;;
27668 esac
27669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670   (eval "$ac_try") 2>&5
27671   ac_status=$?
27672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673   (exit $ac_status); }; }; then
27674   rd_cv_ieee_mask=yes
27675 else
27676   echo "$as_me: program exited with status $ac_status" >&5
27677 echo "$as_me: failed program was:" >&5
27678 sed 's/^/| /' conftest.$ac_ext >&5
27680 ( exit $ac_status )
27681 rd_cv_ieee_mask=no
27683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27689 if test x${rd_cv_ieee_mask} = "xyes"; then
27690  { echo "$as_me:$LINENO: result: yes" >&5
27691 echo "${ECHO_T}yes" >&6; }
27692  cat >>confdefs.h <<\_ACEOF
27693 #define MUST_DISABLE_FPMASK 1
27694 _ACEOF
27696                  PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
27697 else
27698  { echo "$as_me:$LINENO: result: no" >&5
27699 echo "${ECHO_T}no" >&6; }
27701 { echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
27702 echo $ECHO_N "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... $ECHO_C" >&6; }
27703 if test "${rd_cv_ieee_sigfpe+set}" = set; then
27704   echo $ECHO_N "(cached) $ECHO_C" >&6
27705 else
27706   if test "$cross_compiling" = yes; then
27707   :
27708 else
27709   cat >conftest.$ac_ext <<_ACEOF
27710 /* confdefs.h.  */
27711 _ACEOF
27712 cat confdefs.h >>conftest.$ac_ext
27713 cat >>conftest.$ac_ext <<_ACEOF
27714 /* end confdefs.h.  */
27715 #include <signal.h>
27717 #if HAVE_MATH_H
27718 #  include <math.h>
27719 #endif
27721 #if HAVE_FLOAT_H
27722 #  include <float.h>
27723 #endif
27725 #if HAVE_IEEEFP_H
27726 #  include <ieeefp.h>
27727 #endif
27729 #if HAVE_FP_CLASS_H
27730 #  include <fp_class.h>
27731 #endif
27733 /* Solaris */
27734 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27735 #  define HAVE_ISINF 1
27736 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27737 #endif
27739 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27740 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27741 #  undef isnan
27742 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27743 #endif
27745 /* Digital UNIX */
27746 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27747 #  define HAVE_ISINF 1
27748 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27749 #endif
27751 /* AIX */
27752 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27753 #  define HAVE_ISINF 1
27754 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27755 #endif
27757 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27758 #  define HAVE_ISINF 1
27759 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27760 #endif
27762 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27763 #  define HAVE_ISINF 1
27764 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27765 #endif
27767 #include <stdio.h>
27768 int main(void){
27769     double rrdnan,rrdinf,rrdc,rrdzero;
27770     signal(SIGFPE,SIG_IGN);
27771     /* some math to see if we get a floating point exception */
27772     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27773     rrdnan=0.0/rrdzero; /* especially here */
27774     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27775                   /* at run time without sig fpe */
27776     rrdc = rrdinf + rrdnan;
27777     rrdc = rrdinf / rrdnan;
27778     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27779     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27780     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27781     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27782     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27783     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27784     return 0;
27785  }
27786 _ACEOF
27787 rm -f conftest$ac_exeext
27788 if { (ac_try="$ac_link"
27789 case "(($ac_try" in
27790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791   *) ac_try_echo=$ac_try;;
27792 esac
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794   (eval "$ac_link") 2>&5
27795   ac_status=$?
27796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27798   { (case "(($ac_try" in
27799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800   *) ac_try_echo=$ac_try;;
27801 esac
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803   (eval "$ac_try") 2>&5
27804   ac_status=$?
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); }; }; then
27807   rd_cv_ieee_sigfpe=yes
27808 else
27809   echo "$as_me: program exited with status $ac_status" >&5
27810 echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27813 ( exit $ac_status )
27814 rd_cv_ieee_sigfpe=no
27816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27822 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
27823  { echo "$as_me:$LINENO: result: yes" >&5
27824 echo "${ECHO_T}yes" >&6; }
27825  cat >>confdefs.h <<\_ACEOF
27826 #define MUST_DISABLE_SIGFPE 1
27827 _ACEOF
27829                    PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
27830 else
27831  { echo "$as_me:$LINENO: result: no" >&5
27832 echo "${ECHO_T}no" >&6; }
27833  { { echo "$as_me:$LINENO: error:
27834 Your Compiler does not do propper IEEE math ... Please find out how to
27835 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
27836 Check config.log to see what went wrong ...
27837 " >&5
27838 echo "$as_me: error:
27839 Your Compiler does not do propper IEEE math ... Please find out how to
27840 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
27841 Check config.log to see what went wrong ...
27842 " >&2;}
27843    { (exit 1); exit 1; }; }
27875 ac_ext=c
27876 ac_cpp='$CPP $CPPFLAGS'
27877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27885 case $TERM in
27886        #   for the most important terminal types we directly know the sequences
27887        xterm|xterm*|vt220|vt220*)
27888                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
27889                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
27890        ;;
27891        vt100|vt100*|cygwin)
27892                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
27893                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
27894        ;;
27895        *)
27896                T_MD=''
27897                T_ME=''
27898        ;;
27899 esac
27900   { echo "$as_me:$LINENO: result: " >&5
27901 echo "${ECHO_T}" >&6; }
27902   { echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
27903 echo "${ECHO_T}${T_MD}Resolve Portability Issues${T_ME}" >&6; }
27907 { echo "$as_me:$LINENO: checking if msync with MS_ASYNC updates the files mtime" >&5
27908 echo $ECHO_N "checking if msync with MS_ASYNC updates the files mtime... $ECHO_C" >&6; }
27909 if test "${rd_cv_ms_async+set}" = set; then
27910   echo $ECHO_N "(cached) $ECHO_C" >&6
27911 else
27912   if test "$cross_compiling" = yes; then
27913   :
27914 else
27915   cat >conftest.$ac_ext <<_ACEOF
27916 /* confdefs.h.  */
27917 _ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h.  */
27922 #include <fcntl.h>
27923 #include <sys/types.h>
27924 #include <sys/stat.h>
27925 #include <unistd.h>
27926 #include <stdio.h>
27927 #include <sys/mman.h>
27928 #include <stdlib.h>
27929 #include <utime.h>
27930 int main(void){
27931         int fd;
27932         struct stat stbuf;
27933         char *addr;
27934         int res;
27935         char temp[] = "mmaptestXXXXXX";
27936         struct utimbuf newtime;
27938         time_t create_ts;
27939         fd = mkstemp(temp);
27940         if (fd == -1){
27941             perror(temp);
27942             return 1;
27943         }
27944         write(fd,"12345\n", 6);
27945         stat(temp, &stbuf);
27946         create_ts = stbuf.st_mtime;
27947         newtime.actime = 0;
27948         newtime.modtime = 0;
27949         utime(temp,&newtime);
27950         addr = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
27951         if (addr == MAP_FAILED) {
27952             perror("mmap");
27953             goto bad_exit;
27954         }
27955         addr[0]='x';
27956         res = msync(addr, 4, MS_ASYNC);
27957         if (res == -1) {
27958            perror("msync");
27959            goto bad_exit;
27960         }
27961         res = close(fd);
27962         if (res == -1) {
27963            perror("close");
27964            goto bad_exit;
27965         }
27966         /* The ASYNC means that we schedule the msync and return immediately.
27967            Since we want to see if the modification time is updated upon
27968            msync(), we have to make sure that our asynchronous request
27969            completes before we stat below. In a real application, the
27970            request would be completed at a random time in the future
27971            but for this test we do not want to wait an arbitrary amount of
27972            time, so force a commit now.  */
27973         sync();
27974         stat(temp, &stbuf);
27975         if (create_ts > stbuf.st_mtime){
27976            goto bad_exit;
27977         }
27978         unlink(temp);
27979         return 0;
27980      bad_exit:
27981         unlink(temp);
27982         return 1;
27985 _ACEOF
27986 rm -f conftest$ac_exeext
27987 if { (ac_try="$ac_link"
27988 case "(($ac_try" in
27989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27990   *) ac_try_echo=$ac_try;;
27991 esac
27992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27993   (eval "$ac_link") 2>&5
27994   ac_status=$?
27995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27997   { (case "(($ac_try" in
27998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27999   *) ac_try_echo=$ac_try;;
28000 esac
28001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28002   (eval "$ac_try") 2>&5
28003   ac_status=$?
28004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28005   (exit $ac_status); }; }; then
28006   rd_cv_ms_async=ok
28007 else
28008   echo "$as_me: program exited with status $ac_status" >&5
28009 echo "$as_me: failed program was:" >&5
28010 sed 's/^/| /' conftest.$ac_ext >&5
28012 ( exit $ac_status )
28013 rd_cv_ms_async=broken
28015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28023 if test "${rd_cv_ms_async}" = "ok"; then
28024  { echo "$as_me:$LINENO: result: yes" >&5
28025 echo "${ECHO_T}yes" >&6; }
28026 else
28028 cat >>confdefs.h <<_ACEOF
28029 #define HAVE_BROKEN_MS_ASYNC 1
28030 _ACEOF
28032  { echo "$as_me:$LINENO: result: no" >&5
28033 echo "${ECHO_T}no" >&6; }
28034  { echo "$as_me:$LINENO: WARNING: With mmap access, your platform fails to update the files" >&5
28035 echo "$as_me: WARNING: With mmap access, your platform fails to update the files" >&2;}
28036  { echo "$as_me:$LINENO: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&5
28037 echo "$as_me: WARNING: mtime. RRDtool will work around this problem by calling utime on each" >&2;}
28038  { echo "$as_me:$LINENO: WARNING: file it opens for rw access." >&5
28039 echo "$as_me: WARNING: file it opens for rw access." >&2;}
28040  sleep 2
28046 build_getopt=no
28047 RRD_GETOPT_LONG="LIBC_HAS_GETOPT_LONG"
28048 { echo "$as_me:$LINENO: checking for getopt_long" >&5
28049 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
28050 if test "${ac_cv_func_getopt_long+set}" = set; then
28051   echo $ECHO_N "(cached) $ECHO_C" >&6
28052 else
28053   cat >conftest.$ac_ext <<_ACEOF
28054 /* confdefs.h.  */
28055 _ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h.  */
28059 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
28060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28061 #define getopt_long innocuous_getopt_long
28063 /* System header to define __stub macros and hopefully few prototypes,
28064     which can conflict with char getopt_long (); below.
28065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28066     <limits.h> exists even on freestanding compilers.  */
28068 #ifdef __STDC__
28069 # include <limits.h>
28070 #else
28071 # include <assert.h>
28072 #endif
28074 #undef getopt_long
28076 /* Override any GCC internal prototype to avoid an error.
28077    Use char because int might match the return type of a GCC
28078    builtin and then its argument prototype would still apply.  */
28079 #ifdef __cplusplus
28080 extern "C"
28081 #endif
28082 char getopt_long ();
28083 /* The GNU C library defines this for functions which it implements
28084     to always fail with ENOSYS.  Some functions are actually named
28085     something starting with __ and the normal name is an alias.  */
28086 #if defined __stub_getopt_long || defined __stub___getopt_long
28087 choke me
28088 #endif
28090 int
28091 main ()
28093 return getopt_long ();
28094   ;
28095   return 0;
28097 _ACEOF
28098 rm -f conftest.$ac_objext conftest$ac_exeext
28099 if { (ac_try="$ac_link"
28100 case "(($ac_try" in
28101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28102   *) ac_try_echo=$ac_try;;
28103 esac
28104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28105   (eval "$ac_link") 2>conftest.er1
28106   ac_status=$?
28107   grep -v '^ *+' conftest.er1 >conftest.err
28108   rm -f conftest.er1
28109   cat conftest.err >&5
28110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111   (exit $ac_status); } && {
28112          test -z "$ac_c_werror_flag" ||
28113          test ! -s conftest.err
28114        } && test -s conftest$ac_exeext &&
28115        $as_test_x conftest$ac_exeext; then
28116   ac_cv_func_getopt_long=yes
28117 else
28118   echo "$as_me: failed program was:" >&5
28119 sed 's/^/| /' conftest.$ac_ext >&5
28121         ac_cv_func_getopt_long=no
28124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28125       conftest$ac_exeext conftest.$ac_ext
28127 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
28128 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
28129 if test $ac_cv_func_getopt_long = yes; then
28130   :
28131 else
28133 RRD_GETOPT_LONG="getopt_long"
28134 build_getopt=yes
28141 if test $build_getopt = yes; then
28142   BUILD_GETOPT_TRUE=
28143   BUILD_GETOPT_FALSE='#'
28144 else
28145   BUILD_GETOPT_TRUE='#'
28146   BUILD_GETOPT_FALSE=
28151 { echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
28152 echo $ECHO_N "checking if realloc can deal with NULL... $ECHO_C" >&6; }
28153 if test "${rd_cv_null_realloc+set}" = set; then
28154   echo $ECHO_N "(cached) $ECHO_C" >&6
28155 else
28156   if test "$cross_compiling" = yes; then
28157   :
28158 else
28159   cat >conftest.$ac_ext <<_ACEOF
28160 /* confdefs.h.  */
28161 _ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h.  */
28165 #include <stdlib.h>
28166               int main(void){
28167               char *x = NULL;
28168               x = realloc (x,10);
28169               if (x==NULL) return 1;
28170               return 0;
28171              }
28172 _ACEOF
28173 rm -f conftest$ac_exeext
28174 if { (ac_try="$ac_link"
28175 case "(($ac_try" in
28176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28177   *) ac_try_echo=$ac_try;;
28178 esac
28179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28180   (eval "$ac_link") 2>&5
28181   ac_status=$?
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28184   { (case "(($ac_try" in
28185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186   *) ac_try_echo=$ac_try;;
28187 esac
28188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28189   (eval "$ac_try") 2>&5
28190   ac_status=$?
28191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192   (exit $ac_status); }; }; then
28193   rd_cv_null_realloc=yes
28194 else
28195   echo "$as_me: program exited with status $ac_status" >&5
28196 echo "$as_me: failed program was:" >&5
28197 sed 's/^/| /' conftest.$ac_ext >&5
28199 ( exit $ac_status )
28200 rd_cv_null_realloc=nope
28202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28207 { echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
28208 echo "${ECHO_T}$rd_cv_null_realloc" >&6; }
28210 if test x"$rd_cv_null_realloc" = xnope; then
28211 cat >>confdefs.h <<\_ACEOF
28212 #define NO_NULL_REALLOC 1
28213 _ACEOF
28217 ac_ext=c
28218 ac_cpp='$CPP $CPPFLAGS'
28219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28223 { echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
28224 echo $ECHO_N "checking if ctime_r need special care to act posixly correct... $ECHO_C" >&6; }
28225 cat >conftest.$ac_ext <<_ACEOF
28226 /* confdefs.h.  */
28227 _ACEOF
28228 cat confdefs.h >>conftest.$ac_ext
28229 cat >>conftest.$ac_ext <<_ACEOF
28230 /* end confdefs.h.  */
28231 #include <time.h>
28232 int
28233 main ()
28235 ctime_r(NULL,NULL,0)
28237   ;
28238   return 0;
28240 _ACEOF
28241 rm -f conftest.$ac_objext conftest$ac_exeext
28242 if { (ac_try="$ac_link"
28243 case "(($ac_try" in
28244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28245   *) ac_try_echo=$ac_try;;
28246 esac
28247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28248   (eval "$ac_link") 2>conftest.er1
28249   ac_status=$?
28250   grep -v '^ *+' conftest.er1 >conftest.err
28251   rm -f conftest.er1
28252   cat conftest.err >&5
28253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254   (exit $ac_status); } && {
28255          test -z "$ac_c_werror_flag" ||
28256          test ! -s conftest.err
28257        } && test -s conftest$ac_exeext &&
28258        $as_test_x conftest$ac_exeext; then
28259    CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
28260       cat >conftest.$ac_ext <<_ACEOF
28261 /* confdefs.h.  */
28262 _ACEOF
28263 cat confdefs.h >>conftest.$ac_ext
28264 cat >>conftest.$ac_ext <<_ACEOF
28265 /* end confdefs.h.  */
28266 #include <time.h>
28267 int
28268 main ()
28270 ctime_r(NULL,NULL)
28272   ;
28273   return 0;
28275 _ACEOF
28276 rm -f conftest.$ac_objext conftest$ac_exeext
28277 if { (ac_try="$ac_link"
28278 case "(($ac_try" in
28279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280   *) ac_try_echo=$ac_try;;
28281 esac
28282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283   (eval "$ac_link") 2>conftest.er1
28284   ac_status=$?
28285   grep -v '^ *+' conftest.er1 >conftest.err
28286   rm -f conftest.er1
28287   cat conftest.err >&5
28288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28289   (exit $ac_status); } && {
28290          test -z "$ac_c_werror_flag" ||
28291          test ! -s conftest.err
28292        } && test -s conftest$ac_exeext &&
28293        $as_test_x conftest$ac_exeext; then
28294   { echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
28295 echo "${ECHO_T}yes, this seems to be solaris style" >&6; }
28296 else
28297   echo "$as_me: failed program was:" >&5
28298 sed 's/^/| /' conftest.$ac_ext >&5
28300         { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
28301 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
28302    { (exit 1); exit 1; }; }
28306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28307       conftest$ac_exeext conftest.$ac_ext
28309 else
28310   echo "$as_me: failed program was:" >&5
28311 sed 's/^/| /' conftest.$ac_ext >&5
28313          cat >conftest.$ac_ext <<_ACEOF
28314 /* confdefs.h.  */
28315 _ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h.  */
28319 #include <time.h>
28320 int
28321 main ()
28323 ctime_r(NULL,NULL)
28325   ;
28326   return 0;
28328 _ACEOF
28329 rm -f conftest.$ac_objext conftest$ac_exeext
28330 if { (ac_try="$ac_link"
28331 case "(($ac_try" in
28332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28333   *) ac_try_echo=$ac_try;;
28334 esac
28335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28336   (eval "$ac_link") 2>conftest.er1
28337   ac_status=$?
28338   grep -v '^ *+' conftest.er1 >conftest.err
28339   rm -f conftest.er1
28340   cat conftest.err >&5
28341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342   (exit $ac_status); } && {
28343          test -z "$ac_c_werror_flag" ||
28344          test ! -s conftest.err
28345        } && test -s conftest$ac_exeext &&
28346        $as_test_x conftest$ac_exeext; then
28347   { echo "$as_me:$LINENO: result: no" >&5
28348 echo "${ECHO_T}no" >&6; }
28349 else
28350   echo "$as_me: failed program was:" >&5
28351 sed 's/^/| /' conftest.$ac_ext >&5
28353         { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
28354 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
28355    { (exit 1); exit 1; }; }
28359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28360       conftest$ac_exeext conftest.$ac_ext
28365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28366       conftest$ac_exeext conftest.$ac_ext
28367 ac_ext=c
28368 ac_cpp='$CPP $CPPFLAGS'
28369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28378 if test $enable_pthread != no; then
28381 ac_ext=c
28382 ac_cpp='$CPP $CPPFLAGS'
28383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28387 acx_pthread_ok=no
28389 # We used to check for pthread.h first, but this fails if pthread.h
28390 # requires special compiler flags (e.g. on True64 or Sequent).
28391 # It gets checked for in the link test anyway.
28393 # First of all, check if the user has set any of the PTHREAD_LIBS,
28394 # etcetera environment variables, and if threads linking works using
28395 # them:
28396 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
28397         save_CFLAGS="$CFLAGS"
28398         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28399         save_LIBS="$LIBS"
28400         LIBS="$PTHREAD_LIBS $LIBS"
28401         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
28402 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
28403         cat >conftest.$ac_ext <<_ACEOF
28404 /* confdefs.h.  */
28405 _ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 cat >>conftest.$ac_ext <<_ACEOF
28408 /* end confdefs.h.  */
28410 /* Override any GCC internal prototype to avoid an error.
28411    Use char because int might match the return type of a GCC
28412    builtin and then its argument prototype would still apply.  */
28413 #ifdef __cplusplus
28414 extern "C"
28415 #endif
28416 char pthread_join ();
28417 int
28418 main ()
28420 return pthread_join ();
28421   ;
28422   return 0;
28424 _ACEOF
28425 rm -f conftest.$ac_objext conftest$ac_exeext
28426 if { (ac_try="$ac_link"
28427 case "(($ac_try" in
28428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429   *) ac_try_echo=$ac_try;;
28430 esac
28431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432   (eval "$ac_link") 2>conftest.er1
28433   ac_status=$?
28434   grep -v '^ *+' conftest.er1 >conftest.err
28435   rm -f conftest.er1
28436   cat conftest.err >&5
28437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438   (exit $ac_status); } && {
28439          test -z "$ac_c_werror_flag" ||
28440          test ! -s conftest.err
28441        } && test -s conftest$ac_exeext &&
28442        $as_test_x conftest$ac_exeext; then
28443   acx_pthread_ok=yes
28444 else
28445   echo "$as_me: failed program was:" >&5
28446 sed 's/^/| /' conftest.$ac_ext >&5
28451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28452       conftest$ac_exeext conftest.$ac_ext
28453         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
28454 echo "${ECHO_T}$acx_pthread_ok" >&6; }
28455         if test x"$acx_pthread_ok" = xno; then
28456                 PTHREAD_LIBS=""
28457                 PTHREAD_CFLAGS=""
28458         fi
28459         LIBS="$save_LIBS"
28460         CFLAGS="$save_CFLAGS"
28463 # We must check for the threads library under a number of different
28464 # names; the ordering is very important because some systems
28465 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
28466 # libraries is broken (non-POSIX).
28468 # Create a list of thread flags to try.  Items starting with a "-" are
28469 # C compiler flags, and other items are library names, except for "none"
28470 # which indicates that we try without any flags at all, and "pthread-config"
28471 # which is a program returning the flags for the Pth emulation library.
28473 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
28475 # The ordering *is* (sometimes) important.  Some notes on the
28476 # individual items follow:
28478 # pthreads: AIX (must check this before -lpthread)
28479 # none: in case threads are in libc; should be tried before -Kthread and
28480 #       other compiler flags to prevent continual compiler warnings
28481 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
28482 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
28483 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
28484 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
28485 # -pthreads: Solaris/gcc
28486 # -mthreads: Mingw32/gcc, Lynx/gcc
28487 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
28488 #      doesn't hurt to check since this sometimes defines pthreads too;
28489 #      also defines -D_REENTRANT)
28490 # pthread: Linux, etcetera
28491 # --thread-safe: KAI C++
28492 # pthread-config: use pthread-config program (for GNU Pth library)
28494 case "${host_cpu}-${host_os}" in
28495         *solaris*)
28497         # On Solaris (at least, for some versions), libc contains stubbed
28498         # (non-functional) versions of the pthreads routines, so link-based
28499         # tests will erroneously succeed.  (We need to link with -pthread or
28500         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
28501         # a function called by this macro, so we could check for that, but
28502         # who knows whether they'll stub that too in a future libc.)  So,
28503         # we'll just look for -pthreads and -lpthread first:
28505         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
28506         ;;
28507 esac
28509 if test x"$acx_pthread_ok" = xno; then
28510 for flag in $acx_pthread_flags; do
28512         case $flag in
28513                 none)
28514                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28515 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
28516                 ;;
28518                 -*)
28519                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28520 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
28521                 PTHREAD_CFLAGS="$flag"
28522                 ;;
28524                 pthread-config)
28525                 # Extract the first word of "pthread-config", so it can be a program name with args.
28526 set dummy pthread-config; ac_word=$2
28527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28529 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
28530   echo $ECHO_N "(cached) $ECHO_C" >&6
28531 else
28532   if test -n "$acx_pthread_config"; then
28533   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
28534 else
28535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28536 for as_dir in $PATH
28538   IFS=$as_save_IFS
28539   test -z "$as_dir" && as_dir=.
28540   for ac_exec_ext in '' $ac_executable_extensions; do
28541   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28542     ac_cv_prog_acx_pthread_config="yes"
28543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28544     break 2
28545   fi
28546 done
28547 done
28548 IFS=$as_save_IFS
28550   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
28553 acx_pthread_config=$ac_cv_prog_acx_pthread_config
28554 if test -n "$acx_pthread_config"; then
28555   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
28556 echo "${ECHO_T}$acx_pthread_config" >&6; }
28557 else
28558   { echo "$as_me:$LINENO: result: no" >&5
28559 echo "${ECHO_T}no" >&6; }
28563                 if test x"$acx_pthread_config" = xno; then continue; fi
28564                 PTHREAD_CFLAGS="`pthread-config --cflags`"
28565                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
28566                 ;;
28568                 *)
28569                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28570 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
28571                 PTHREAD_LIBS="-l$flag"
28572                 ;;
28573         esac
28575         save_LIBS="$LIBS"
28576         save_CFLAGS="$CFLAGS"
28577         LIBS="$PTHREAD_LIBS $LIBS"
28578         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28580         # Check for various functions.  We must include pthread.h,
28581         # since some functions may be macros.  (On the Sequent, we
28582         # need a special flag -Kthread to make this header compile.)
28583         # We check for pthread_join because it is in -lpthread on IRIX
28584         # while pthread_create is in libc.  We check for pthread_attr_init
28585         # due to DEC craziness with -lpthreads.  We check for
28586         # pthread_cleanup_push because it is one of the few pthread
28587         # functions on Solaris that doesn't have a non-functional libc stub.
28588         # We try pthread_create on general principles.
28589         cat >conftest.$ac_ext <<_ACEOF
28590 /* confdefs.h.  */
28591 _ACEOF
28592 cat confdefs.h >>conftest.$ac_ext
28593 cat >>conftest.$ac_ext <<_ACEOF
28594 /* end confdefs.h.  */
28595 #include <pthread.h>
28596 int
28597 main ()
28599 pthread_t th; pthread_join(th, 0);
28600                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
28601                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
28602   ;
28603   return 0;
28605 _ACEOF
28606 rm -f conftest.$ac_objext conftest$ac_exeext
28607 if { (ac_try="$ac_link"
28608 case "(($ac_try" in
28609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610   *) ac_try_echo=$ac_try;;
28611 esac
28612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28613   (eval "$ac_link") 2>conftest.er1
28614   ac_status=$?
28615   grep -v '^ *+' conftest.er1 >conftest.err
28616   rm -f conftest.er1
28617   cat conftest.err >&5
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); } && {
28620          test -z "$ac_c_werror_flag" ||
28621          test ! -s conftest.err
28622        } && test -s conftest$ac_exeext &&
28623        $as_test_x conftest$ac_exeext; then
28624   acx_pthread_ok=yes
28625 else
28626   echo "$as_me: failed program was:" >&5
28627 sed 's/^/| /' conftest.$ac_ext >&5
28632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28633       conftest$ac_exeext conftest.$ac_ext
28635         LIBS="$save_LIBS"
28636         CFLAGS="$save_CFLAGS"
28638         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
28639 echo "${ECHO_T}$acx_pthread_ok" >&6; }
28640         if test "x$acx_pthread_ok" = xyes; then
28641                 break;
28642         fi
28644         PTHREAD_LIBS=""
28645         PTHREAD_CFLAGS=""
28646 done
28649 # Various other checks:
28650 if test "x$acx_pthread_ok" = xyes; then
28651         save_LIBS="$LIBS"
28652         LIBS="$PTHREAD_LIBS $LIBS"
28653         save_CFLAGS="$CFLAGS"
28654         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28656         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
28657         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
28658 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
28659         attr_name=unknown
28660         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
28661             cat >conftest.$ac_ext <<_ACEOF
28662 /* confdefs.h.  */
28663 _ACEOF
28664 cat confdefs.h >>conftest.$ac_ext
28665 cat >>conftest.$ac_ext <<_ACEOF
28666 /* end confdefs.h.  */
28667 #include <pthread.h>
28668 int
28669 main ()
28671 int attr=$attr;
28672   ;
28673   return 0;
28675 _ACEOF
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (ac_try="$ac_link"
28678 case "(($ac_try" in
28679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680   *) ac_try_echo=$ac_try;;
28681 esac
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683   (eval "$ac_link") 2>conftest.er1
28684   ac_status=$?
28685   grep -v '^ *+' conftest.er1 >conftest.err
28686   rm -f conftest.er1
28687   cat conftest.err >&5
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); } && {
28690          test -z "$ac_c_werror_flag" ||
28691          test ! -s conftest.err
28692        } && test -s conftest$ac_exeext &&
28693        $as_test_x conftest$ac_exeext; then
28694   attr_name=$attr; break
28695 else
28696   echo "$as_me: failed program was:" >&5
28697 sed 's/^/| /' conftest.$ac_ext >&5
28702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28703       conftest$ac_exeext conftest.$ac_ext
28704         done
28705         { echo "$as_me:$LINENO: result: $attr_name" >&5
28706 echo "${ECHO_T}$attr_name" >&6; }
28707         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
28709 cat >>confdefs.h <<_ACEOF
28710 #define PTHREAD_CREATE_JOINABLE $attr_name
28711 _ACEOF
28713         fi
28715         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28716 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
28717         x_rflag=no
28718         case "${host_cpu}-${host_os}" in
28719             *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
28720             *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
28721             *-linux*)
28722             if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
28723                 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
28724                 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
28725                 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
28726             fi;;
28727         esac
28728         { echo "$as_me:$LINENO: result: ${x_rflag}" >&5
28729 echo "${ECHO_T}${x_rflag}" >&6; }
28730         if test "x$x_rflag" != xno; then
28731             PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
28732         fi
28734         LIBS="$save_LIBS"
28735         CFLAGS="$save_CFLAGS"
28737         # More AIX lossage: must compile with cc_r
28738         # Extract the first word of "cc_r", so it can be a program name with args.
28739 set dummy cc_r; ac_word=$2
28740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28742 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
28743   echo $ECHO_N "(cached) $ECHO_C" >&6
28744 else
28745   if test -n "$PTHREAD_CC"; then
28746   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
28747 else
28748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28749 for as_dir in $PATH
28751   IFS=$as_save_IFS
28752   test -z "$as_dir" && as_dir=.
28753   for ac_exec_ext in '' $ac_executable_extensions; do
28754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28755     ac_cv_prog_PTHREAD_CC="cc_r"
28756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28757     break 2
28758   fi
28759 done
28760 done
28761 IFS=$as_save_IFS
28763   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
28766 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
28767 if test -n "$PTHREAD_CC"; then
28768   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
28769 echo "${ECHO_T}$PTHREAD_CC" >&6; }
28770 else
28771   { echo "$as_me:$LINENO: result: no" >&5
28772 echo "${ECHO_T}no" >&6; }
28776 else
28777         PTHREAD_CC="$CC"
28784 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
28785 if test x"$acx_pthread_ok" = xyes; then
28787     MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
28788     MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
28790         :
28791 else
28792         acx_pthread_ok=no
28795 ac_ext=c
28796 ac_cpp='$CPP $CPPFLAGS'
28797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28805 if test  "x$x_rflag" != "xno"; then
28806    CPPFLAGS="$CPPFLAGS $x_rflag"
28811 if test $enable_pthread != no; then
28812   BUILD_MULTITHREAD_TRUE=
28813   BUILD_MULTITHREAD_FALSE='#'
28814 else
28815   BUILD_MULTITHREAD_TRUE='#'
28816   BUILD_MULTITHREAD_FALSE=
28820 ac_ext=c
28821 ac_cpp='$CPP $CPPFLAGS'
28822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28826 { echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
28827 echo $ECHO_N "checking do we need malloc/malloc.h... $ECHO_C" >&6; }
28828 cat >conftest.$ac_ext <<_ACEOF
28829 /* confdefs.h.  */
28830 _ACEOF
28831 cat confdefs.h >>conftest.$ac_ext
28832 cat >>conftest.$ac_ext <<_ACEOF
28833 /* end confdefs.h.  */
28834 #include <stdlib.h>
28835 int
28836 main ()
28838 malloc(1)
28840   ;
28841   return 0;
28843 _ACEOF
28844 rm -f conftest.$ac_objext conftest$ac_exeext
28845 if { (ac_try="$ac_link"
28846 case "(($ac_try" in
28847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28848   *) ac_try_echo=$ac_try;;
28849 esac
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851   (eval "$ac_link") 2>conftest.er1
28852   ac_status=$?
28853   grep -v '^ *+' conftest.er1 >conftest.err
28854   rm -f conftest.er1
28855   cat conftest.err >&5
28856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857   (exit $ac_status); } && {
28858          test -z "$ac_c_werror_flag" ||
28859          test ! -s conftest.err
28860        } && test -s conftest$ac_exeext &&
28861        $as_test_x conftest$ac_exeext; then
28862    { echo "$as_me:$LINENO: result: nope, works out of the box" >&5
28863 echo "${ECHO_T}nope, works out of the box" >&6; }
28864 else
28865   echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.$ac_ext >&5
28868          cat >conftest.$ac_ext <<_ACEOF
28869 /* confdefs.h.  */
28870 _ACEOF
28871 cat confdefs.h >>conftest.$ac_ext
28872 cat >>conftest.$ac_ext <<_ACEOF
28873 /* end confdefs.h.  */
28874 #include <stdlib.h>
28875                   #include <malloc/malloc.h>
28876 int
28877 main ()
28879 malloc(1)
28881   ;
28882   return 0;
28884 _ACEOF
28885 rm -f conftest.$ac_objext conftest$ac_exeext
28886 if { (ac_try="$ac_link"
28887 case "(($ac_try" in
28888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28889   *) ac_try_echo=$ac_try;;
28890 esac
28891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28892   (eval "$ac_link") 2>conftest.er1
28893   ac_status=$?
28894   grep -v '^ *+' conftest.er1 >conftest.err
28895   rm -f conftest.er1
28896   cat conftest.err >&5
28897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898   (exit $ac_status); } && {
28899          test -z "$ac_c_werror_flag" ||
28900          test ! -s conftest.err
28901        } && test -s conftest$ac_exeext &&
28902        $as_test_x conftest$ac_exeext; then
28904            cat >>confdefs.h <<\_ACEOF
28905 #define MUST_HAVE_MALLOC_MALLOC_H 1
28906 _ACEOF
28908            { echo "$as_me:$LINENO: result: yes we do" >&5
28909 echo "${ECHO_T}yes we do" >&6; }
28910 else
28911   echo "$as_me: failed program was:" >&5
28912 sed 's/^/| /' conftest.$ac_ext >&5
28914         { { echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
28915 echo "$as_me: error: Can not figure how to compile malloc" >&2;}
28916    { (exit 1); exit 1; }; }
28920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28921       conftest$ac_exeext conftest.$ac_ext
28926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28927       conftest$ac_exeext conftest.$ac_ext
28928 ac_ext=c
28929 ac_cpp='$CPP $CPPFLAGS'
28930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28936 case $TERM in
28937        #   for the most important terminal types we directly know the sequences
28938        xterm|xterm*|vt220|vt220*)
28939                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
28940                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
28941        ;;
28942        vt100|vt100*|cygwin)
28943                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
28944                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
28945        ;;
28946        *)
28947                T_MD=''
28948                T_ME=''
28949        ;;
28950 esac
28951   { echo "$as_me:$LINENO: result: " >&5
28952 echo "${ECHO_T}" >&6; }
28953   { echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
28954 echo "${ECHO_T}${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
28960 if test $enable_rrdcgi != no; then
28961   BUILD_RRDCGI_TRUE=
28962   BUILD_RRDCGI_FALSE='#'
28963 else
28964   BUILD_RRDCGI_TRUE='#'
28965   BUILD_RRDCGI_FALSE=
28970 CORE_LIBS="$LIBS"
28973  ac_ext=c
28974 ac_cpp='$CPP $CPPFLAGS'
28975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28979  EX_CHECK_STATE=NO
28980  ex_check_save_LIBS=${LIBS}
28981  ex_check_save_CPPFLAGS=${CPPFLAGS}
28982  ex_check_save_LDFLAGS=${LDFLAGS}
28983  if test "x""" != "x"; then
28984    CPPFLAGS="$CPPFLAGS -I"""
28985  fi
28986   { echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
28987 echo $ECHO_N "checking for cairo_font_options_create in -lcairo... $ECHO_C" >&6; }
28988 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
28989   echo $ECHO_N "(cached) $ECHO_C" >&6
28990 else
28991   ac_check_lib_save_LIBS=$LIBS
28992 LIBS="-lcairo  $LIBS"
28993 cat >conftest.$ac_ext <<_ACEOF
28994 /* confdefs.h.  */
28995 _ACEOF
28996 cat confdefs.h >>conftest.$ac_ext
28997 cat >>conftest.$ac_ext <<_ACEOF
28998 /* end confdefs.h.  */
29000 /* Override any GCC internal prototype to avoid an error.
29001    Use char because int might match the return type of a GCC
29002    builtin and then its argument prototype would still apply.  */
29003 #ifdef __cplusplus
29004 extern "C"
29005 #endif
29006 char cairo_font_options_create ();
29007 int
29008 main ()
29010 return cairo_font_options_create ();
29011   ;
29012   return 0;
29014 _ACEOF
29015 rm -f conftest.$ac_objext conftest$ac_exeext
29016 if { (ac_try="$ac_link"
29017 case "(($ac_try" in
29018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29019   *) ac_try_echo=$ac_try;;
29020 esac
29021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29022   (eval "$ac_link") 2>conftest.er1
29023   ac_status=$?
29024   grep -v '^ *+' conftest.er1 >conftest.err
29025   rm -f conftest.er1
29026   cat conftest.err >&5
29027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028   (exit $ac_status); } && {
29029          test -z "$ac_c_werror_flag" ||
29030          test ! -s conftest.err
29031        } && test -s conftest$ac_exeext &&
29032        $as_test_x conftest$ac_exeext; then
29033   ac_cv_lib_cairo_cairo_font_options_create=yes
29034 else
29035   echo "$as_me: failed program was:" >&5
29036 sed 's/^/| /' conftest.$ac_ext >&5
29038         ac_cv_lib_cairo_cairo_font_options_create=no
29041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29042       conftest$ac_exeext conftest.$ac_ext
29043 LIBS=$ac_check_lib_save_LIBS
29045 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
29046 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
29047 if test $ac_cv_lib_cairo_cairo_font_options_create = yes; then
29049     if test "${ac_cv_header_cairo_h+set}" = set; then
29050   { echo "$as_me:$LINENO: checking for cairo.h" >&5
29051 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
29052 if test "${ac_cv_header_cairo_h+set}" = set; then
29053   echo $ECHO_N "(cached) $ECHO_C" >&6
29055 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
29056 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
29057 else
29058   # Is the header compilable?
29059 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
29060 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
29061 cat >conftest.$ac_ext <<_ACEOF
29062 /* confdefs.h.  */
29063 _ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h.  */
29067 $ac_includes_default
29068 #include <cairo.h>
29069 _ACEOF
29070 rm -f conftest.$ac_objext
29071 if { (ac_try="$ac_compile"
29072 case "(($ac_try" in
29073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074   *) ac_try_echo=$ac_try;;
29075 esac
29076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077   (eval "$ac_compile") 2>conftest.er1
29078   ac_status=$?
29079   grep -v '^ *+' conftest.er1 >conftest.err
29080   rm -f conftest.er1
29081   cat conftest.err >&5
29082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29083   (exit $ac_status); } && {
29084          test -z "$ac_c_werror_flag" ||
29085          test ! -s conftest.err
29086        } && test -s conftest.$ac_objext; then
29087   ac_header_compiler=yes
29088 else
29089   echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29092         ac_header_compiler=no
29095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29096 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29097 echo "${ECHO_T}$ac_header_compiler" >&6; }
29099 # Is the header present?
29100 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
29101 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
29102 cat >conftest.$ac_ext <<_ACEOF
29103 /* confdefs.h.  */
29104 _ACEOF
29105 cat confdefs.h >>conftest.$ac_ext
29106 cat >>conftest.$ac_ext <<_ACEOF
29107 /* end confdefs.h.  */
29108 #include <cairo.h>
29109 _ACEOF
29110 if { (ac_try="$ac_cpp conftest.$ac_ext"
29111 case "(($ac_try" in
29112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29113   *) ac_try_echo=$ac_try;;
29114 esac
29115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29116   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29117   ac_status=$?
29118   grep -v '^ *+' conftest.er1 >conftest.err
29119   rm -f conftest.er1
29120   cat conftest.err >&5
29121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122   (exit $ac_status); } >/dev/null && {
29123          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29124          test ! -s conftest.err
29125        }; then
29126   ac_header_preproc=yes
29127 else
29128   echo "$as_me: failed program was:" >&5
29129 sed 's/^/| /' conftest.$ac_ext >&5
29131   ac_header_preproc=no
29134 rm -f conftest.err conftest.$ac_ext
29135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29136 echo "${ECHO_T}$ac_header_preproc" >&6; }
29138 # So?  What about this header?
29139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29140   yes:no: )
29141     { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
29142 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29143     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
29144 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
29145     ac_header_preproc=yes
29146     ;;
29147   no:yes:* )
29148     { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
29149 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
29150     { echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
29151 echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
29152     { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
29153 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
29154     { echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
29155 echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29156     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
29157 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
29158     { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
29159 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
29161     ;;
29162 esac
29163 { echo "$as_me:$LINENO: checking for cairo.h" >&5
29164 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
29165 if test "${ac_cv_header_cairo_h+set}" = set; then
29166   echo $ECHO_N "(cached) $ECHO_C" >&6
29167 else
29168   ac_cv_header_cairo_h=$ac_header_preproc
29170 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
29171 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
29174 if test $ac_cv_header_cairo_h = yes; then
29175   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
29181  if test $EX_CHECK_STATE = NO; then
29182         for ac_prog in pkg-config
29184   # Extract the first word of "$ac_prog", so it can be a program name with args.
29185 set dummy $ac_prog; ac_word=$2
29186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29188 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29189   echo $ECHO_N "(cached) $ECHO_C" >&6
29190 else
29191   if test -n "$PKGCONFIG"; then
29192   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29193 else
29194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29195 for as_dir in $PATH
29197   IFS=$as_save_IFS
29198   test -z "$as_dir" && as_dir=.
29199   for ac_exec_ext in '' $ac_executable_extensions; do
29200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29201     ac_cv_prog_PKGCONFIG="$ac_prog"
29202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29203     break 2
29204   fi
29205 done
29206 done
29207 IFS=$as_save_IFS
29211 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29212 if test -n "$PKGCONFIG"; then
29213   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29214 echo "${ECHO_T}$PKGCONFIG" >&6; }
29215 else
29216   { echo "$as_me:$LINENO: result: no" >&5
29217 echo "${ECHO_T}no" >&6; }
29221   test -n "$PKGCONFIG" && break
29222 done
29223 test -n "$PKGCONFIG" || PKGCONFIG="no"
29225     if test "$PKGCONFIG" != "no"; then
29226           if $PKGCONFIG --exists cairo-png; then
29227              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
29228              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
29229              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
29230              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
29231                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
29232              { echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
29233 echo $ECHO_N "checking for cairo_font_options_create in -lcairo... $ECHO_C" >&6; }
29234 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
29235   echo $ECHO_N "(cached) $ECHO_C" >&6
29236 else
29237   ac_check_lib_save_LIBS=$LIBS
29238 LIBS="-lcairo  $LIBS"
29239 cat >conftest.$ac_ext <<_ACEOF
29240 /* confdefs.h.  */
29241 _ACEOF
29242 cat confdefs.h >>conftest.$ac_ext
29243 cat >>conftest.$ac_ext <<_ACEOF
29244 /* end confdefs.h.  */
29246 /* Override any GCC internal prototype to avoid an error.
29247    Use char because int might match the return type of a GCC
29248    builtin and then its argument prototype would still apply.  */
29249 #ifdef __cplusplus
29250 extern "C"
29251 #endif
29252 char cairo_font_options_create ();
29253 int
29254 main ()
29256 return cairo_font_options_create ();
29257   ;
29258   return 0;
29260 _ACEOF
29261 rm -f conftest.$ac_objext conftest$ac_exeext
29262 if { (ac_try="$ac_link"
29263 case "(($ac_try" in
29264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29265   *) ac_try_echo=$ac_try;;
29266 esac
29267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29268   (eval "$ac_link") 2>conftest.er1
29269   ac_status=$?
29270   grep -v '^ *+' conftest.er1 >conftest.err
29271   rm -f conftest.er1
29272   cat conftest.err >&5
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); } && {
29275          test -z "$ac_c_werror_flag" ||
29276          test ! -s conftest.err
29277        } && test -s conftest$ac_exeext &&
29278        $as_test_x conftest$ac_exeext; then
29279   ac_cv_lib_cairo_cairo_font_options_create=yes
29280 else
29281   echo "$as_me: failed program was:" >&5
29282 sed 's/^/| /' conftest.$ac_ext >&5
29284         ac_cv_lib_cairo_cairo_font_options_create=no
29287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29288       conftest$ac_exeext conftest.$ac_ext
29289 LIBS=$ac_check_lib_save_LIBS
29291 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
29292 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
29293 if test $ac_cv_lib_cairo_cairo_font_options_create = yes; then
29295                  unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29296                  if test "${ac_cv_header_cairo_h+set}" = set; then
29297   { echo "$as_me:$LINENO: checking for cairo.h" >&5
29298 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
29299 if test "${ac_cv_header_cairo_h+set}" = set; then
29300   echo $ECHO_N "(cached) $ECHO_C" >&6
29302 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
29303 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
29304 else
29305   # Is the header compilable?
29306 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
29307 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
29308 cat >conftest.$ac_ext <<_ACEOF
29309 /* confdefs.h.  */
29310 _ACEOF
29311 cat confdefs.h >>conftest.$ac_ext
29312 cat >>conftest.$ac_ext <<_ACEOF
29313 /* end confdefs.h.  */
29314 $ac_includes_default
29315 #include <cairo.h>
29316 _ACEOF
29317 rm -f conftest.$ac_objext
29318 if { (ac_try="$ac_compile"
29319 case "(($ac_try" in
29320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29321   *) ac_try_echo=$ac_try;;
29322 esac
29323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29324   (eval "$ac_compile") 2>conftest.er1
29325   ac_status=$?
29326   grep -v '^ *+' conftest.er1 >conftest.err
29327   rm -f conftest.er1
29328   cat conftest.err >&5
29329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330   (exit $ac_status); } && {
29331          test -z "$ac_c_werror_flag" ||
29332          test ! -s conftest.err
29333        } && test -s conftest.$ac_objext; then
29334   ac_header_compiler=yes
29335 else
29336   echo "$as_me: failed program was:" >&5
29337 sed 's/^/| /' conftest.$ac_ext >&5
29339         ac_header_compiler=no
29342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29344 echo "${ECHO_T}$ac_header_compiler" >&6; }
29346 # Is the header present?
29347 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
29348 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
29349 cat >conftest.$ac_ext <<_ACEOF
29350 /* confdefs.h.  */
29351 _ACEOF
29352 cat confdefs.h >>conftest.$ac_ext
29353 cat >>conftest.$ac_ext <<_ACEOF
29354 /* end confdefs.h.  */
29355 #include <cairo.h>
29356 _ACEOF
29357 if { (ac_try="$ac_cpp conftest.$ac_ext"
29358 case "(($ac_try" in
29359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29360   *) ac_try_echo=$ac_try;;
29361 esac
29362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29364   ac_status=$?
29365   grep -v '^ *+' conftest.er1 >conftest.err
29366   rm -f conftest.er1
29367   cat conftest.err >&5
29368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369   (exit $ac_status); } >/dev/null && {
29370          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29371          test ! -s conftest.err
29372        }; then
29373   ac_header_preproc=yes
29374 else
29375   echo "$as_me: failed program was:" >&5
29376 sed 's/^/| /' conftest.$ac_ext >&5
29378   ac_header_preproc=no
29381 rm -f conftest.err conftest.$ac_ext
29382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29383 echo "${ECHO_T}$ac_header_preproc" >&6; }
29385 # So?  What about this header?
29386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29387   yes:no: )
29388     { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
29389 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29390     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
29391 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
29392     ac_header_preproc=yes
29393     ;;
29394   no:yes:* )
29395     { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
29396 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
29397     { echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
29398 echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
29399     { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
29400 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
29401     { echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
29402 echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29403     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
29404 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
29405     { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
29406 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
29408     ;;
29409 esac
29410 { echo "$as_me:$LINENO: checking for cairo.h" >&5
29411 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
29412 if test "${ac_cv_header_cairo_h+set}" = set; then
29413   echo $ECHO_N "(cached) $ECHO_C" >&6
29414 else
29415   ac_cv_header_cairo_h=$ac_header_preproc
29417 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
29418 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
29421 if test $ac_cv_header_cairo_h = yes; then
29422   EX_CHECK_STATE=YES
29429           else
29430              { echo "$as_me:$LINENO: WARNING:
29431 ----------------------------------------------------------------------------
29432 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
29433   You may want to set the PKG_CONFIG_PATH variable to point to its
29434   location.
29435 ----------------------------------------------------------------------------
29436                         " >&5
29437 echo "$as_me: WARNING:
29438 ----------------------------------------------------------------------------
29439 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
29440   You may want to set the PKG_CONFIG_PATH variable to point to its
29441   location.
29442 ----------------------------------------------------------------------------
29443                         " >&2;}
29444            fi
29445      fi
29446   fi
29448   if test ${EX_CHECK_STATE} = NO; then
29449      { echo "$as_me:$LINENO: WARNING:
29450 ----------------------------------------------------------------------------
29451 * I could not find a working copy of cairo-png. Check config.log for hints on why
29452   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29453   so that compiler and the linker can find libcairo and its header files. If
29454   you have not installed cairo-png, you can get it either from its original home on
29456      http://cairographics.org/releases/
29458   You can find also find an archive copy on
29460      http://oss.oetiker.ch/rrdtool/pub/libs
29462   The last tested version of cairo-png is 1.4.6.
29464        LIBS=$LIBS
29465    LDFLAGS=$LDFLAGS
29466   CPPFLAGS=$CPPFLAGS
29468 ----------------------------------------------------------------------------
29469                 " >&5
29470 echo "$as_me: WARNING:
29471 ----------------------------------------------------------------------------
29472 * I could not find a working copy of cairo-png. Check config.log for hints on why
29473   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29474   so that compiler and the linker can find libcairo and its header files. If
29475   you have not installed cairo-png, you can get it either from its original home on
29477      http://cairographics.org/releases/
29479   You can find also find an archive copy on
29481      http://oss.oetiker.ch/rrdtool/pub/libs
29483   The last tested version of cairo-png is 1.4.6.
29485        LIBS=$LIBS
29486    LDFLAGS=$LDFLAGS
29487   CPPFLAGS=$CPPFLAGS
29489 ----------------------------------------------------------------------------
29490                 " >&2;}
29491        EX_CHECK_ALL_ERR=YES
29492        LIBS="${ex_check_save_LIBS}"
29493        CPPFLAGS="${ex_check_save_CPPFLAGS}"
29494        LDFLAGS="${ex_check_save_LDFLAGS}"
29495     fi
29496     ac_ext=c
29497 ac_cpp='$CPP $CPPFLAGS'
29498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29505  ac_ext=c
29506 ac_cpp='$CPP $CPPFLAGS'
29507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29511  EX_CHECK_STATE=NO
29512  ex_check_save_LIBS=${LIBS}
29513  ex_check_save_CPPFLAGS=${CPPFLAGS}
29514  ex_check_save_LDFLAGS=${LDFLAGS}
29515  if test "x""" != "x"; then
29516    CPPFLAGS="$CPPFLAGS -I"""
29517  fi
29518   { echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
29519 echo $ECHO_N "checking for cairo_svg_surface_create in -lcairo... $ECHO_C" >&6; }
29520 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
29521   echo $ECHO_N "(cached) $ECHO_C" >&6
29522 else
29523   ac_check_lib_save_LIBS=$LIBS
29524 LIBS="-lcairo  $LIBS"
29525 cat >conftest.$ac_ext <<_ACEOF
29526 /* confdefs.h.  */
29527 _ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h.  */
29532 /* Override any GCC internal prototype to avoid an error.
29533    Use char because int might match the return type of a GCC
29534    builtin and then its argument prototype would still apply.  */
29535 #ifdef __cplusplus
29536 extern "C"
29537 #endif
29538 char cairo_svg_surface_create ();
29539 int
29540 main ()
29542 return cairo_svg_surface_create ();
29543   ;
29544   return 0;
29546 _ACEOF
29547 rm -f conftest.$ac_objext conftest$ac_exeext
29548 if { (ac_try="$ac_link"
29549 case "(($ac_try" in
29550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551   *) ac_try_echo=$ac_try;;
29552 esac
29553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29554   (eval "$ac_link") 2>conftest.er1
29555   ac_status=$?
29556   grep -v '^ *+' conftest.er1 >conftest.err
29557   rm -f conftest.er1
29558   cat conftest.err >&5
29559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560   (exit $ac_status); } && {
29561          test -z "$ac_c_werror_flag" ||
29562          test ! -s conftest.err
29563        } && test -s conftest$ac_exeext &&
29564        $as_test_x conftest$ac_exeext; then
29565   ac_cv_lib_cairo_cairo_svg_surface_create=yes
29566 else
29567   echo "$as_me: failed program was:" >&5
29568 sed 's/^/| /' conftest.$ac_ext >&5
29570         ac_cv_lib_cairo_cairo_svg_surface_create=no
29573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29574       conftest$ac_exeext conftest.$ac_ext
29575 LIBS=$ac_check_lib_save_LIBS
29577 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
29578 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
29579 if test $ac_cv_lib_cairo_cairo_svg_surface_create = yes; then
29581     if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29582   { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29583 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29584 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29585   echo $ECHO_N "(cached) $ECHO_C" >&6
29587 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29588 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29589 else
29590   # Is the header compilable?
29591 { echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
29592 echo $ECHO_N "checking cairo-svg.h usability... $ECHO_C" >&6; }
29593 cat >conftest.$ac_ext <<_ACEOF
29594 /* confdefs.h.  */
29595 _ACEOF
29596 cat confdefs.h >>conftest.$ac_ext
29597 cat >>conftest.$ac_ext <<_ACEOF
29598 /* end confdefs.h.  */
29599 $ac_includes_default
29600 #include <cairo-svg.h>
29601 _ACEOF
29602 rm -f conftest.$ac_objext
29603 if { (ac_try="$ac_compile"
29604 case "(($ac_try" in
29605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29606   *) ac_try_echo=$ac_try;;
29607 esac
29608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29609   (eval "$ac_compile") 2>conftest.er1
29610   ac_status=$?
29611   grep -v '^ *+' conftest.er1 >conftest.err
29612   rm -f conftest.er1
29613   cat conftest.err >&5
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); } && {
29616          test -z "$ac_c_werror_flag" ||
29617          test ! -s conftest.err
29618        } && test -s conftest.$ac_objext; then
29619   ac_header_compiler=yes
29620 else
29621   echo "$as_me: failed program was:" >&5
29622 sed 's/^/| /' conftest.$ac_ext >&5
29624         ac_header_compiler=no
29627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29629 echo "${ECHO_T}$ac_header_compiler" >&6; }
29631 # Is the header present?
29632 { echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
29633 echo $ECHO_N "checking cairo-svg.h presence... $ECHO_C" >&6; }
29634 cat >conftest.$ac_ext <<_ACEOF
29635 /* confdefs.h.  */
29636 _ACEOF
29637 cat confdefs.h >>conftest.$ac_ext
29638 cat >>conftest.$ac_ext <<_ACEOF
29639 /* end confdefs.h.  */
29640 #include <cairo-svg.h>
29641 _ACEOF
29642 if { (ac_try="$ac_cpp conftest.$ac_ext"
29643 case "(($ac_try" in
29644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645   *) ac_try_echo=$ac_try;;
29646 esac
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29649   ac_status=$?
29650   grep -v '^ *+' conftest.er1 >conftest.err
29651   rm -f conftest.er1
29652   cat conftest.err >&5
29653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654   (exit $ac_status); } >/dev/null && {
29655          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29656          test ! -s conftest.err
29657        }; then
29658   ac_header_preproc=yes
29659 else
29660   echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29663   ac_header_preproc=no
29666 rm -f conftest.err conftest.$ac_ext
29667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29668 echo "${ECHO_T}$ac_header_preproc" >&6; }
29670 # So?  What about this header?
29671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29672   yes:no: )
29673     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
29674 echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29675     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
29676 echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
29677     ac_header_preproc=yes
29678     ;;
29679   no:yes:* )
29680     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
29681 echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
29682     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
29683 echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
29684     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
29685 echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
29686     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
29687 echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29688     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
29689 echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
29690     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
29691 echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
29693     ;;
29694 esac
29695 { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29696 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29697 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29698   echo $ECHO_N "(cached) $ECHO_C" >&6
29699 else
29700   ac_cv_header_cairo_svg_h=$ac_header_preproc
29702 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29703 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29706 if test $ac_cv_header_cairo_svg_h = yes; then
29707   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
29713  if test $EX_CHECK_STATE = NO; then
29714         for ac_prog in pkg-config
29716   # Extract the first word of "$ac_prog", so it can be a program name with args.
29717 set dummy $ac_prog; ac_word=$2
29718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29720 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29721   echo $ECHO_N "(cached) $ECHO_C" >&6
29722 else
29723   if test -n "$PKGCONFIG"; then
29724   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29725 else
29726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29727 for as_dir in $PATH
29729   IFS=$as_save_IFS
29730   test -z "$as_dir" && as_dir=.
29731   for ac_exec_ext in '' $ac_executable_extensions; do
29732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29733     ac_cv_prog_PKGCONFIG="$ac_prog"
29734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29735     break 2
29736   fi
29737 done
29738 done
29739 IFS=$as_save_IFS
29743 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29744 if test -n "$PKGCONFIG"; then
29745   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29746 echo "${ECHO_T}$PKGCONFIG" >&6; }
29747 else
29748   { echo "$as_me:$LINENO: result: no" >&5
29749 echo "${ECHO_T}no" >&6; }
29753   test -n "$PKGCONFIG" && break
29754 done
29755 test -n "$PKGCONFIG" || PKGCONFIG="no"
29757     if test "$PKGCONFIG" != "no"; then
29758           if $PKGCONFIG --exists cairo-svg; then
29759              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
29760              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
29761              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
29762              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
29763                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
29764              { echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
29765 echo $ECHO_N "checking for cairo_svg_surface_create in -lcairo... $ECHO_C" >&6; }
29766 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
29767   echo $ECHO_N "(cached) $ECHO_C" >&6
29768 else
29769   ac_check_lib_save_LIBS=$LIBS
29770 LIBS="-lcairo  $LIBS"
29771 cat >conftest.$ac_ext <<_ACEOF
29772 /* confdefs.h.  */
29773 _ACEOF
29774 cat confdefs.h >>conftest.$ac_ext
29775 cat >>conftest.$ac_ext <<_ACEOF
29776 /* end confdefs.h.  */
29778 /* Override any GCC internal prototype to avoid an error.
29779    Use char because int might match the return type of a GCC
29780    builtin and then its argument prototype would still apply.  */
29781 #ifdef __cplusplus
29782 extern "C"
29783 #endif
29784 char cairo_svg_surface_create ();
29785 int
29786 main ()
29788 return cairo_svg_surface_create ();
29789   ;
29790   return 0;
29792 _ACEOF
29793 rm -f conftest.$ac_objext conftest$ac_exeext
29794 if { (ac_try="$ac_link"
29795 case "(($ac_try" in
29796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29797   *) ac_try_echo=$ac_try;;
29798 esac
29799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29800   (eval "$ac_link") 2>conftest.er1
29801   ac_status=$?
29802   grep -v '^ *+' conftest.er1 >conftest.err
29803   rm -f conftest.er1
29804   cat conftest.err >&5
29805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806   (exit $ac_status); } && {
29807          test -z "$ac_c_werror_flag" ||
29808          test ! -s conftest.err
29809        } && test -s conftest$ac_exeext &&
29810        $as_test_x conftest$ac_exeext; then
29811   ac_cv_lib_cairo_cairo_svg_surface_create=yes
29812 else
29813   echo "$as_me: failed program was:" >&5
29814 sed 's/^/| /' conftest.$ac_ext >&5
29816         ac_cv_lib_cairo_cairo_svg_surface_create=no
29819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29820       conftest$ac_exeext conftest.$ac_ext
29821 LIBS=$ac_check_lib_save_LIBS
29823 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
29824 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
29825 if test $ac_cv_lib_cairo_cairo_svg_surface_create = yes; then
29827                  unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29828                  if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29829   { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29830 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29831 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29832   echo $ECHO_N "(cached) $ECHO_C" >&6
29834 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29835 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29836 else
29837   # Is the header compilable?
29838 { echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
29839 echo $ECHO_N "checking cairo-svg.h usability... $ECHO_C" >&6; }
29840 cat >conftest.$ac_ext <<_ACEOF
29841 /* confdefs.h.  */
29842 _ACEOF
29843 cat confdefs.h >>conftest.$ac_ext
29844 cat >>conftest.$ac_ext <<_ACEOF
29845 /* end confdefs.h.  */
29846 $ac_includes_default
29847 #include <cairo-svg.h>
29848 _ACEOF
29849 rm -f conftest.$ac_objext
29850 if { (ac_try="$ac_compile"
29851 case "(($ac_try" in
29852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29853   *) ac_try_echo=$ac_try;;
29854 esac
29855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29856   (eval "$ac_compile") 2>conftest.er1
29857   ac_status=$?
29858   grep -v '^ *+' conftest.er1 >conftest.err
29859   rm -f conftest.er1
29860   cat conftest.err >&5
29861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862   (exit $ac_status); } && {
29863          test -z "$ac_c_werror_flag" ||
29864          test ! -s conftest.err
29865        } && test -s conftest.$ac_objext; then
29866   ac_header_compiler=yes
29867 else
29868   echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29871         ac_header_compiler=no
29874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29876 echo "${ECHO_T}$ac_header_compiler" >&6; }
29878 # Is the header present?
29879 { echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
29880 echo $ECHO_N "checking cairo-svg.h presence... $ECHO_C" >&6; }
29881 cat >conftest.$ac_ext <<_ACEOF
29882 /* confdefs.h.  */
29883 _ACEOF
29884 cat confdefs.h >>conftest.$ac_ext
29885 cat >>conftest.$ac_ext <<_ACEOF
29886 /* end confdefs.h.  */
29887 #include <cairo-svg.h>
29888 _ACEOF
29889 if { (ac_try="$ac_cpp conftest.$ac_ext"
29890 case "(($ac_try" in
29891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29892   *) ac_try_echo=$ac_try;;
29893 esac
29894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29895   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29896   ac_status=$?
29897   grep -v '^ *+' conftest.er1 >conftest.err
29898   rm -f conftest.er1
29899   cat conftest.err >&5
29900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29901   (exit $ac_status); } >/dev/null && {
29902          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29903          test ! -s conftest.err
29904        }; then
29905   ac_header_preproc=yes
29906 else
29907   echo "$as_me: failed program was:" >&5
29908 sed 's/^/| /' conftest.$ac_ext >&5
29910   ac_header_preproc=no
29913 rm -f conftest.err conftest.$ac_ext
29914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29915 echo "${ECHO_T}$ac_header_preproc" >&6; }
29917 # So?  What about this header?
29918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29919   yes:no: )
29920     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
29921 echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29922     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
29923 echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
29924     ac_header_preproc=yes
29925     ;;
29926   no:yes:* )
29927     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
29928 echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
29929     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
29930 echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
29931     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
29932 echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
29933     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
29934 echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29935     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
29936 echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
29937     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
29938 echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
29940     ;;
29941 esac
29942 { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29943 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29944 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29945   echo $ECHO_N "(cached) $ECHO_C" >&6
29946 else
29947   ac_cv_header_cairo_svg_h=$ac_header_preproc
29949 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29950 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29953 if test $ac_cv_header_cairo_svg_h = yes; then
29954   EX_CHECK_STATE=YES
29961           else
29962              { echo "$as_me:$LINENO: WARNING:
29963 ----------------------------------------------------------------------------
29964 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
29965   You may want to set the PKG_CONFIG_PATH variable to point to its
29966   location.
29967 ----------------------------------------------------------------------------
29968                         " >&5
29969 echo "$as_me: WARNING:
29970 ----------------------------------------------------------------------------
29971 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
29972   You may want to set the PKG_CONFIG_PATH variable to point to its
29973   location.
29974 ----------------------------------------------------------------------------
29975                         " >&2;}
29976            fi
29977      fi
29978   fi
29980   if test ${EX_CHECK_STATE} = NO; then
29981      { echo "$as_me:$LINENO: WARNING:
29982 ----------------------------------------------------------------------------
29983 * I could not find a working copy of cairo-svg. Check config.log for hints on why
29984   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29985   so that compiler and the linker can find libcairo and its header files. If
29986   you have not installed cairo-svg, you can get it either from its original home on
29988      http://cairographics.org/releases/
29990   You can find also find an archive copy on
29992      http://oss.oetiker.ch/rrdtool/pub/libs
29994   The last tested version of cairo-svg is 1.4.6.
29996        LIBS=$LIBS
29997    LDFLAGS=$LDFLAGS
29998   CPPFLAGS=$CPPFLAGS
30000 ----------------------------------------------------------------------------
30001                 " >&5
30002 echo "$as_me: WARNING:
30003 ----------------------------------------------------------------------------
30004 * I could not find a working copy of cairo-svg. Check config.log for hints on why
30005   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30006   so that compiler and the linker can find libcairo and its header files. If
30007   you have not installed cairo-svg, you can get it either from its original home on
30009      http://cairographics.org/releases/
30011   You can find also find an archive copy on
30013      http://oss.oetiker.ch/rrdtool/pub/libs
30015   The last tested version of cairo-svg is 1.4.6.
30017        LIBS=$LIBS
30018    LDFLAGS=$LDFLAGS
30019   CPPFLAGS=$CPPFLAGS
30021 ----------------------------------------------------------------------------
30022                 " >&2;}
30023        EX_CHECK_ALL_ERR=YES
30024        LIBS="${ex_check_save_LIBS}"
30025        CPPFLAGS="${ex_check_save_CPPFLAGS}"
30026        LDFLAGS="${ex_check_save_LDFLAGS}"
30027     fi
30028     ac_ext=c
30029 ac_cpp='$CPP $CPPFLAGS'
30030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30037  ac_ext=c
30038 ac_cpp='$CPP $CPPFLAGS'
30039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30043  EX_CHECK_STATE=NO
30044  ex_check_save_LIBS=${LIBS}
30045  ex_check_save_CPPFLAGS=${CPPFLAGS}
30046  ex_check_save_LDFLAGS=${LDFLAGS}
30047  if test "x""" != "x"; then
30048    CPPFLAGS="$CPPFLAGS -I"""
30049  fi
30050   { echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
30051 echo $ECHO_N "checking for cairo_pdf_surface_create in -lcairo... $ECHO_C" >&6; }
30052 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
30053   echo $ECHO_N "(cached) $ECHO_C" >&6
30054 else
30055   ac_check_lib_save_LIBS=$LIBS
30056 LIBS="-lcairo  $LIBS"
30057 cat >conftest.$ac_ext <<_ACEOF
30058 /* confdefs.h.  */
30059 _ACEOF
30060 cat confdefs.h >>conftest.$ac_ext
30061 cat >>conftest.$ac_ext <<_ACEOF
30062 /* end confdefs.h.  */
30064 /* Override any GCC internal prototype to avoid an error.
30065    Use char because int might match the return type of a GCC
30066    builtin and then its argument prototype would still apply.  */
30067 #ifdef __cplusplus
30068 extern "C"
30069 #endif
30070 char cairo_pdf_surface_create ();
30071 int
30072 main ()
30074 return cairo_pdf_surface_create ();
30075   ;
30076   return 0;
30078 _ACEOF
30079 rm -f conftest.$ac_objext conftest$ac_exeext
30080 if { (ac_try="$ac_link"
30081 case "(($ac_try" in
30082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30083   *) ac_try_echo=$ac_try;;
30084 esac
30085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30086   (eval "$ac_link") 2>conftest.er1
30087   ac_status=$?
30088   grep -v '^ *+' conftest.er1 >conftest.err
30089   rm -f conftest.er1
30090   cat conftest.err >&5
30091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092   (exit $ac_status); } && {
30093          test -z "$ac_c_werror_flag" ||
30094          test ! -s conftest.err
30095        } && test -s conftest$ac_exeext &&
30096        $as_test_x conftest$ac_exeext; then
30097   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
30098 else
30099   echo "$as_me: failed program was:" >&5
30100 sed 's/^/| /' conftest.$ac_ext >&5
30102         ac_cv_lib_cairo_cairo_pdf_surface_create=no
30105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30106       conftest$ac_exeext conftest.$ac_ext
30107 LIBS=$ac_check_lib_save_LIBS
30109 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
30110 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
30111 if test $ac_cv_lib_cairo_cairo_pdf_surface_create = yes; then
30113     if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30114   { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
30115 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
30116 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30117   echo $ECHO_N "(cached) $ECHO_C" >&6
30119 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
30120 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
30121 else
30122   # Is the header compilable?
30123 { echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
30124 echo $ECHO_N "checking cairo-pdf.h usability... $ECHO_C" >&6; }
30125 cat >conftest.$ac_ext <<_ACEOF
30126 /* confdefs.h.  */
30127 _ACEOF
30128 cat confdefs.h >>conftest.$ac_ext
30129 cat >>conftest.$ac_ext <<_ACEOF
30130 /* end confdefs.h.  */
30131 $ac_includes_default
30132 #include <cairo-pdf.h>
30133 _ACEOF
30134 rm -f conftest.$ac_objext
30135 if { (ac_try="$ac_compile"
30136 case "(($ac_try" in
30137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30138   *) ac_try_echo=$ac_try;;
30139 esac
30140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30141   (eval "$ac_compile") 2>conftest.er1
30142   ac_status=$?
30143   grep -v '^ *+' conftest.er1 >conftest.err
30144   rm -f conftest.er1
30145   cat conftest.err >&5
30146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147   (exit $ac_status); } && {
30148          test -z "$ac_c_werror_flag" ||
30149          test ! -s conftest.err
30150        } && test -s conftest.$ac_objext; then
30151   ac_header_compiler=yes
30152 else
30153   echo "$as_me: failed program was:" >&5
30154 sed 's/^/| /' conftest.$ac_ext >&5
30156         ac_header_compiler=no
30159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30161 echo "${ECHO_T}$ac_header_compiler" >&6; }
30163 # Is the header present?
30164 { echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
30165 echo $ECHO_N "checking cairo-pdf.h presence... $ECHO_C" >&6; }
30166 cat >conftest.$ac_ext <<_ACEOF
30167 /* confdefs.h.  */
30168 _ACEOF
30169 cat confdefs.h >>conftest.$ac_ext
30170 cat >>conftest.$ac_ext <<_ACEOF
30171 /* end confdefs.h.  */
30172 #include <cairo-pdf.h>
30173 _ACEOF
30174 if { (ac_try="$ac_cpp conftest.$ac_ext"
30175 case "(($ac_try" in
30176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177   *) ac_try_echo=$ac_try;;
30178 esac
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30181   ac_status=$?
30182   grep -v '^ *+' conftest.er1 >conftest.err
30183   rm -f conftest.er1
30184   cat conftest.err >&5
30185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186   (exit $ac_status); } >/dev/null && {
30187          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30188          test ! -s conftest.err
30189        }; then
30190   ac_header_preproc=yes
30191 else
30192   echo "$as_me: failed program was:" >&5
30193 sed 's/^/| /' conftest.$ac_ext >&5
30195   ac_header_preproc=no
30198 rm -f conftest.err conftest.$ac_ext
30199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30200 echo "${ECHO_T}$ac_header_preproc" >&6; }
30202 # So?  What about this header?
30203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30204   yes:no: )
30205     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
30206 echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30207     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
30208 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
30209     ac_header_preproc=yes
30210     ;;
30211   no:yes:* )
30212     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
30213 echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
30214     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
30215 echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
30216     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
30217 echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
30218     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
30219 echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30220     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
30221 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
30222     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
30223 echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
30225     ;;
30226 esac
30227 { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
30228 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
30229 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30230   echo $ECHO_N "(cached) $ECHO_C" >&6
30231 else
30232   ac_cv_header_cairo_pdf_h=$ac_header_preproc
30234 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
30235 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
30238 if test $ac_cv_header_cairo_pdf_h = yes; then
30239   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
30245  if test $EX_CHECK_STATE = NO; then
30246         for ac_prog in pkg-config
30248   # Extract the first word of "$ac_prog", so it can be a program name with args.
30249 set dummy $ac_prog; ac_word=$2
30250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30252 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30253   echo $ECHO_N "(cached) $ECHO_C" >&6
30254 else
30255   if test -n "$PKGCONFIG"; then
30256   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30257 else
30258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30259 for as_dir in $PATH
30261   IFS=$as_save_IFS
30262   test -z "$as_dir" && as_dir=.
30263   for ac_exec_ext in '' $ac_executable_extensions; do
30264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30265     ac_cv_prog_PKGCONFIG="$ac_prog"
30266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30267     break 2
30268   fi
30269 done
30270 done
30271 IFS=$as_save_IFS
30275 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30276 if test -n "$PKGCONFIG"; then
30277   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30278 echo "${ECHO_T}$PKGCONFIG" >&6; }
30279 else
30280   { echo "$as_me:$LINENO: result: no" >&5
30281 echo "${ECHO_T}no" >&6; }
30285   test -n "$PKGCONFIG" && break
30286 done
30287 test -n "$PKGCONFIG" || PKGCONFIG="no"
30289     if test "$PKGCONFIG" != "no"; then
30290           if $PKGCONFIG --exists cairo-pdf; then
30291              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
30292              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
30293              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
30294              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
30295                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
30296              { echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
30297 echo $ECHO_N "checking for cairo_pdf_surface_create in -lcairo... $ECHO_C" >&6; }
30298 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
30299   echo $ECHO_N "(cached) $ECHO_C" >&6
30300 else
30301   ac_check_lib_save_LIBS=$LIBS
30302 LIBS="-lcairo  $LIBS"
30303 cat >conftest.$ac_ext <<_ACEOF
30304 /* confdefs.h.  */
30305 _ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h.  */
30310 /* Override any GCC internal prototype to avoid an error.
30311    Use char because int might match the return type of a GCC
30312    builtin and then its argument prototype would still apply.  */
30313 #ifdef __cplusplus
30314 extern "C"
30315 #endif
30316 char cairo_pdf_surface_create ();
30317 int
30318 main ()
30320 return cairo_pdf_surface_create ();
30321   ;
30322   return 0;
30324 _ACEOF
30325 rm -f conftest.$ac_objext conftest$ac_exeext
30326 if { (ac_try="$ac_link"
30327 case "(($ac_try" in
30328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30329   *) ac_try_echo=$ac_try;;
30330 esac
30331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30332   (eval "$ac_link") 2>conftest.er1
30333   ac_status=$?
30334   grep -v '^ *+' conftest.er1 >conftest.err
30335   rm -f conftest.er1
30336   cat conftest.err >&5
30337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338   (exit $ac_status); } && {
30339          test -z "$ac_c_werror_flag" ||
30340          test ! -s conftest.err
30341        } && test -s conftest$ac_exeext &&
30342        $as_test_x conftest$ac_exeext; then
30343   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
30344 else
30345   echo "$as_me: failed program was:" >&5
30346 sed 's/^/| /' conftest.$ac_ext >&5
30348         ac_cv_lib_cairo_cairo_pdf_surface_create=no
30351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30352       conftest$ac_exeext conftest.$ac_ext
30353 LIBS=$ac_check_lib_save_LIBS
30355 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
30356 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
30357 if test $ac_cv_lib_cairo_cairo_pdf_surface_create = yes; then
30359                  unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30360                  if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30361   { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
30362 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
30363 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30364   echo $ECHO_N "(cached) $ECHO_C" >&6
30366 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
30367 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
30368 else
30369   # Is the header compilable?
30370 { echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
30371 echo $ECHO_N "checking cairo-pdf.h usability... $ECHO_C" >&6; }
30372 cat >conftest.$ac_ext <<_ACEOF
30373 /* confdefs.h.  */
30374 _ACEOF
30375 cat confdefs.h >>conftest.$ac_ext
30376 cat >>conftest.$ac_ext <<_ACEOF
30377 /* end confdefs.h.  */
30378 $ac_includes_default
30379 #include <cairo-pdf.h>
30380 _ACEOF
30381 rm -f conftest.$ac_objext
30382 if { (ac_try="$ac_compile"
30383 case "(($ac_try" in
30384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385   *) ac_try_echo=$ac_try;;
30386 esac
30387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388   (eval "$ac_compile") 2>conftest.er1
30389   ac_status=$?
30390   grep -v '^ *+' conftest.er1 >conftest.err
30391   rm -f conftest.er1
30392   cat conftest.err >&5
30393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30394   (exit $ac_status); } && {
30395          test -z "$ac_c_werror_flag" ||
30396          test ! -s conftest.err
30397        } && test -s conftest.$ac_objext; then
30398   ac_header_compiler=yes
30399 else
30400   echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30403         ac_header_compiler=no
30406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30408 echo "${ECHO_T}$ac_header_compiler" >&6; }
30410 # Is the header present?
30411 { echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
30412 echo $ECHO_N "checking cairo-pdf.h presence... $ECHO_C" >&6; }
30413 cat >conftest.$ac_ext <<_ACEOF
30414 /* confdefs.h.  */
30415 _ACEOF
30416 cat confdefs.h >>conftest.$ac_ext
30417 cat >>conftest.$ac_ext <<_ACEOF
30418 /* end confdefs.h.  */
30419 #include <cairo-pdf.h>
30420 _ACEOF
30421 if { (ac_try="$ac_cpp conftest.$ac_ext"
30422 case "(($ac_try" in
30423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30424   *) ac_try_echo=$ac_try;;
30425 esac
30426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30427   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30428   ac_status=$?
30429   grep -v '^ *+' conftest.er1 >conftest.err
30430   rm -f conftest.er1
30431   cat conftest.err >&5
30432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433   (exit $ac_status); } >/dev/null && {
30434          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30435          test ! -s conftest.err
30436        }; then
30437   ac_header_preproc=yes
30438 else
30439   echo "$as_me: failed program was:" >&5
30440 sed 's/^/| /' conftest.$ac_ext >&5
30442   ac_header_preproc=no
30445 rm -f conftest.err conftest.$ac_ext
30446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30447 echo "${ECHO_T}$ac_header_preproc" >&6; }
30449 # So?  What about this header?
30450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30451   yes:no: )
30452     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
30453 echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30454     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
30455 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
30456     ac_header_preproc=yes
30457     ;;
30458   no:yes:* )
30459     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
30460 echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
30461     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
30462 echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
30463     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
30464 echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
30465     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
30466 echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30467     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
30468 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
30469     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
30470 echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
30472     ;;
30473 esac
30474 { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
30475 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
30476 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
30477   echo $ECHO_N "(cached) $ECHO_C" >&6
30478 else
30479   ac_cv_header_cairo_pdf_h=$ac_header_preproc
30481 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
30482 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
30485 if test $ac_cv_header_cairo_pdf_h = yes; then
30486   EX_CHECK_STATE=YES
30493           else
30494              { echo "$as_me:$LINENO: WARNING:
30495 ----------------------------------------------------------------------------
30496 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
30497   You may want to set the PKG_CONFIG_PATH variable to point to its
30498   location.
30499 ----------------------------------------------------------------------------
30500                         " >&5
30501 echo "$as_me: WARNING:
30502 ----------------------------------------------------------------------------
30503 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
30504   You may want to set the PKG_CONFIG_PATH variable to point to its
30505   location.
30506 ----------------------------------------------------------------------------
30507                         " >&2;}
30508            fi
30509      fi
30510   fi
30512   if test ${EX_CHECK_STATE} = NO; then
30513      { echo "$as_me:$LINENO: WARNING:
30514 ----------------------------------------------------------------------------
30515 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
30516   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30517   so that compiler and the linker can find libcairo and its header files. If
30518   you have not installed cairo-pdf, you can get it either from its original home on
30520      http://cairographics.org/releases/
30522   You can find also find an archive copy on
30524      http://oss.oetiker.ch/rrdtool/pub/libs
30526   The last tested version of cairo-pdf is 1.4.6.
30528        LIBS=$LIBS
30529    LDFLAGS=$LDFLAGS
30530   CPPFLAGS=$CPPFLAGS
30532 ----------------------------------------------------------------------------
30533                 " >&5
30534 echo "$as_me: WARNING:
30535 ----------------------------------------------------------------------------
30536 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
30537   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30538   so that compiler and the linker can find libcairo and its header files. If
30539   you have not installed cairo-pdf, you can get it either from its original home on
30541      http://cairographics.org/releases/
30543   You can find also find an archive copy on
30545      http://oss.oetiker.ch/rrdtool/pub/libs
30547   The last tested version of cairo-pdf is 1.4.6.
30549        LIBS=$LIBS
30550    LDFLAGS=$LDFLAGS
30551   CPPFLAGS=$CPPFLAGS
30553 ----------------------------------------------------------------------------
30554                 " >&2;}
30555        EX_CHECK_ALL_ERR=YES
30556        LIBS="${ex_check_save_LIBS}"
30557        CPPFLAGS="${ex_check_save_CPPFLAGS}"
30558        LDFLAGS="${ex_check_save_LDFLAGS}"
30559     fi
30560     ac_ext=c
30561 ac_cpp='$CPP $CPPFLAGS'
30562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30569  ac_ext=c
30570 ac_cpp='$CPP $CPPFLAGS'
30571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30575  EX_CHECK_STATE=NO
30576  ex_check_save_LIBS=${LIBS}
30577  ex_check_save_CPPFLAGS=${CPPFLAGS}
30578  ex_check_save_LDFLAGS=${LDFLAGS}
30579  if test "x""" != "x"; then
30580    CPPFLAGS="$CPPFLAGS -I"""
30581  fi
30582   { echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
30583 echo $ECHO_N "checking for cairo_ps_surface_create in -lcairo... $ECHO_C" >&6; }
30584 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
30585   echo $ECHO_N "(cached) $ECHO_C" >&6
30586 else
30587   ac_check_lib_save_LIBS=$LIBS
30588 LIBS="-lcairo  $LIBS"
30589 cat >conftest.$ac_ext <<_ACEOF
30590 /* confdefs.h.  */
30591 _ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h.  */
30596 /* Override any GCC internal prototype to avoid an error.
30597    Use char because int might match the return type of a GCC
30598    builtin and then its argument prototype would still apply.  */
30599 #ifdef __cplusplus
30600 extern "C"
30601 #endif
30602 char cairo_ps_surface_create ();
30603 int
30604 main ()
30606 return cairo_ps_surface_create ();
30607   ;
30608   return 0;
30610 _ACEOF
30611 rm -f conftest.$ac_objext conftest$ac_exeext
30612 if { (ac_try="$ac_link"
30613 case "(($ac_try" in
30614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30615   *) ac_try_echo=$ac_try;;
30616 esac
30617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30618   (eval "$ac_link") 2>conftest.er1
30619   ac_status=$?
30620   grep -v '^ *+' conftest.er1 >conftest.err
30621   rm -f conftest.er1
30622   cat conftest.err >&5
30623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624   (exit $ac_status); } && {
30625          test -z "$ac_c_werror_flag" ||
30626          test ! -s conftest.err
30627        } && test -s conftest$ac_exeext &&
30628        $as_test_x conftest$ac_exeext; then
30629   ac_cv_lib_cairo_cairo_ps_surface_create=yes
30630 else
30631   echo "$as_me: failed program was:" >&5
30632 sed 's/^/| /' conftest.$ac_ext >&5
30634         ac_cv_lib_cairo_cairo_ps_surface_create=no
30637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30638       conftest$ac_exeext conftest.$ac_ext
30639 LIBS=$ac_check_lib_save_LIBS
30641 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
30642 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
30643 if test $ac_cv_lib_cairo_cairo_ps_surface_create = yes; then
30645     if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30646   { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30647 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30648 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30649   echo $ECHO_N "(cached) $ECHO_C" >&6
30651 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30652 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30653 else
30654   # Is the header compilable?
30655 { echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
30656 echo $ECHO_N "checking cairo-ps.h usability... $ECHO_C" >&6; }
30657 cat >conftest.$ac_ext <<_ACEOF
30658 /* confdefs.h.  */
30659 _ACEOF
30660 cat confdefs.h >>conftest.$ac_ext
30661 cat >>conftest.$ac_ext <<_ACEOF
30662 /* end confdefs.h.  */
30663 $ac_includes_default
30664 #include <cairo-ps.h>
30665 _ACEOF
30666 rm -f conftest.$ac_objext
30667 if { (ac_try="$ac_compile"
30668 case "(($ac_try" in
30669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670   *) ac_try_echo=$ac_try;;
30671 esac
30672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30673   (eval "$ac_compile") 2>conftest.er1
30674   ac_status=$?
30675   grep -v '^ *+' conftest.er1 >conftest.err
30676   rm -f conftest.er1
30677   cat conftest.err >&5
30678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679   (exit $ac_status); } && {
30680          test -z "$ac_c_werror_flag" ||
30681          test ! -s conftest.err
30682        } && test -s conftest.$ac_objext; then
30683   ac_header_compiler=yes
30684 else
30685   echo "$as_me: failed program was:" >&5
30686 sed 's/^/| /' conftest.$ac_ext >&5
30688         ac_header_compiler=no
30691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30693 echo "${ECHO_T}$ac_header_compiler" >&6; }
30695 # Is the header present?
30696 { echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
30697 echo $ECHO_N "checking cairo-ps.h presence... $ECHO_C" >&6; }
30698 cat >conftest.$ac_ext <<_ACEOF
30699 /* confdefs.h.  */
30700 _ACEOF
30701 cat confdefs.h >>conftest.$ac_ext
30702 cat >>conftest.$ac_ext <<_ACEOF
30703 /* end confdefs.h.  */
30704 #include <cairo-ps.h>
30705 _ACEOF
30706 if { (ac_try="$ac_cpp conftest.$ac_ext"
30707 case "(($ac_try" in
30708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709   *) ac_try_echo=$ac_try;;
30710 esac
30711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30713   ac_status=$?
30714   grep -v '^ *+' conftest.er1 >conftest.err
30715   rm -f conftest.er1
30716   cat conftest.err >&5
30717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718   (exit $ac_status); } >/dev/null && {
30719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30720          test ! -s conftest.err
30721        }; then
30722   ac_header_preproc=yes
30723 else
30724   echo "$as_me: failed program was:" >&5
30725 sed 's/^/| /' conftest.$ac_ext >&5
30727   ac_header_preproc=no
30730 rm -f conftest.err conftest.$ac_ext
30731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30732 echo "${ECHO_T}$ac_header_preproc" >&6; }
30734 # So?  What about this header?
30735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30736   yes:no: )
30737     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
30738 echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30739     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
30740 echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
30741     ac_header_preproc=yes
30742     ;;
30743   no:yes:* )
30744     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
30745 echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
30746     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
30747 echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
30748     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
30749 echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
30750     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
30751 echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30752     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
30753 echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
30754     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
30755 echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
30757     ;;
30758 esac
30759 { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30760 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30761 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30762   echo $ECHO_N "(cached) $ECHO_C" >&6
30763 else
30764   ac_cv_header_cairo_ps_h=$ac_header_preproc
30766 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30767 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30770 if test $ac_cv_header_cairo_ps_h = yes; then
30771   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
30777  if test $EX_CHECK_STATE = NO; then
30778         for ac_prog in pkg-config
30780   # Extract the first word of "$ac_prog", so it can be a program name with args.
30781 set dummy $ac_prog; ac_word=$2
30782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30784 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30785   echo $ECHO_N "(cached) $ECHO_C" >&6
30786 else
30787   if test -n "$PKGCONFIG"; then
30788   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30789 else
30790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30791 for as_dir in $PATH
30793   IFS=$as_save_IFS
30794   test -z "$as_dir" && as_dir=.
30795   for ac_exec_ext in '' $ac_executable_extensions; do
30796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30797     ac_cv_prog_PKGCONFIG="$ac_prog"
30798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30799     break 2
30800   fi
30801 done
30802 done
30803 IFS=$as_save_IFS
30807 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30808 if test -n "$PKGCONFIG"; then
30809   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30810 echo "${ECHO_T}$PKGCONFIG" >&6; }
30811 else
30812   { echo "$as_me:$LINENO: result: no" >&5
30813 echo "${ECHO_T}no" >&6; }
30817   test -n "$PKGCONFIG" && break
30818 done
30819 test -n "$PKGCONFIG" || PKGCONFIG="no"
30821     if test "$PKGCONFIG" != "no"; then
30822           if $PKGCONFIG --exists cairo-ps; then
30823              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
30824              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
30825              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
30826              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
30827                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
30828              { echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
30829 echo $ECHO_N "checking for cairo_ps_surface_create in -lcairo... $ECHO_C" >&6; }
30830 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
30831   echo $ECHO_N "(cached) $ECHO_C" >&6
30832 else
30833   ac_check_lib_save_LIBS=$LIBS
30834 LIBS="-lcairo  $LIBS"
30835 cat >conftest.$ac_ext <<_ACEOF
30836 /* confdefs.h.  */
30837 _ACEOF
30838 cat confdefs.h >>conftest.$ac_ext
30839 cat >>conftest.$ac_ext <<_ACEOF
30840 /* end confdefs.h.  */
30842 /* Override any GCC internal prototype to avoid an error.
30843    Use char because int might match the return type of a GCC
30844    builtin and then its argument prototype would still apply.  */
30845 #ifdef __cplusplus
30846 extern "C"
30847 #endif
30848 char cairo_ps_surface_create ();
30849 int
30850 main ()
30852 return cairo_ps_surface_create ();
30853   ;
30854   return 0;
30856 _ACEOF
30857 rm -f conftest.$ac_objext conftest$ac_exeext
30858 if { (ac_try="$ac_link"
30859 case "(($ac_try" in
30860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30861   *) ac_try_echo=$ac_try;;
30862 esac
30863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30864   (eval "$ac_link") 2>conftest.er1
30865   ac_status=$?
30866   grep -v '^ *+' conftest.er1 >conftest.err
30867   rm -f conftest.er1
30868   cat conftest.err >&5
30869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870   (exit $ac_status); } && {
30871          test -z "$ac_c_werror_flag" ||
30872          test ! -s conftest.err
30873        } && test -s conftest$ac_exeext &&
30874        $as_test_x conftest$ac_exeext; then
30875   ac_cv_lib_cairo_cairo_ps_surface_create=yes
30876 else
30877   echo "$as_me: failed program was:" >&5
30878 sed 's/^/| /' conftest.$ac_ext >&5
30880         ac_cv_lib_cairo_cairo_ps_surface_create=no
30883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30884       conftest$ac_exeext conftest.$ac_ext
30885 LIBS=$ac_check_lib_save_LIBS
30887 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
30888 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
30889 if test $ac_cv_lib_cairo_cairo_ps_surface_create = yes; then
30891                  unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30892                  if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30893   { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30894 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30895 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30896   echo $ECHO_N "(cached) $ECHO_C" >&6
30898 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30899 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30900 else
30901   # Is the header compilable?
30902 { echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
30903 echo $ECHO_N "checking cairo-ps.h usability... $ECHO_C" >&6; }
30904 cat >conftest.$ac_ext <<_ACEOF
30905 /* confdefs.h.  */
30906 _ACEOF
30907 cat confdefs.h >>conftest.$ac_ext
30908 cat >>conftest.$ac_ext <<_ACEOF
30909 /* end confdefs.h.  */
30910 $ac_includes_default
30911 #include <cairo-ps.h>
30912 _ACEOF
30913 rm -f conftest.$ac_objext
30914 if { (ac_try="$ac_compile"
30915 case "(($ac_try" in
30916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30917   *) ac_try_echo=$ac_try;;
30918 esac
30919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30920   (eval "$ac_compile") 2>conftest.er1
30921   ac_status=$?
30922   grep -v '^ *+' conftest.er1 >conftest.err
30923   rm -f conftest.er1
30924   cat conftest.err >&5
30925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926   (exit $ac_status); } && {
30927          test -z "$ac_c_werror_flag" ||
30928          test ! -s conftest.err
30929        } && test -s conftest.$ac_objext; then
30930   ac_header_compiler=yes
30931 else
30932   echo "$as_me: failed program was:" >&5
30933 sed 's/^/| /' conftest.$ac_ext >&5
30935         ac_header_compiler=no
30938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30940 echo "${ECHO_T}$ac_header_compiler" >&6; }
30942 # Is the header present?
30943 { echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
30944 echo $ECHO_N "checking cairo-ps.h presence... $ECHO_C" >&6; }
30945 cat >conftest.$ac_ext <<_ACEOF
30946 /* confdefs.h.  */
30947 _ACEOF
30948 cat confdefs.h >>conftest.$ac_ext
30949 cat >>conftest.$ac_ext <<_ACEOF
30950 /* end confdefs.h.  */
30951 #include <cairo-ps.h>
30952 _ACEOF
30953 if { (ac_try="$ac_cpp conftest.$ac_ext"
30954 case "(($ac_try" in
30955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956   *) ac_try_echo=$ac_try;;
30957 esac
30958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30960   ac_status=$?
30961   grep -v '^ *+' conftest.er1 >conftest.err
30962   rm -f conftest.er1
30963   cat conftest.err >&5
30964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965   (exit $ac_status); } >/dev/null && {
30966          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30967          test ! -s conftest.err
30968        }; then
30969   ac_header_preproc=yes
30970 else
30971   echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30974   ac_header_preproc=no
30977 rm -f conftest.err conftest.$ac_ext
30978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30979 echo "${ECHO_T}$ac_header_preproc" >&6; }
30981 # So?  What about this header?
30982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30983   yes:no: )
30984     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
30985 echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30986     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
30987 echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
30988     ac_header_preproc=yes
30989     ;;
30990   no:yes:* )
30991     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
30992 echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
30993     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
30994 echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
30995     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
30996 echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
30997     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
30998 echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30999     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
31000 echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
31001     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
31002 echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
31004     ;;
31005 esac
31006 { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
31007 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
31008 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
31009   echo $ECHO_N "(cached) $ECHO_C" >&6
31010 else
31011   ac_cv_header_cairo_ps_h=$ac_header_preproc
31013 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
31014 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
31017 if test $ac_cv_header_cairo_ps_h = yes; then
31018   EX_CHECK_STATE=YES
31025           else
31026              { echo "$as_me:$LINENO: WARNING:
31027 ----------------------------------------------------------------------------
31028 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
31029   You may want to set the PKG_CONFIG_PATH variable to point to its
31030   location.
31031 ----------------------------------------------------------------------------
31032                         " >&5
31033 echo "$as_me: WARNING:
31034 ----------------------------------------------------------------------------
31035 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
31036   You may want to set the PKG_CONFIG_PATH variable to point to its
31037   location.
31038 ----------------------------------------------------------------------------
31039                         " >&2;}
31040            fi
31041      fi
31042   fi
31044   if test ${EX_CHECK_STATE} = NO; then
31045      { echo "$as_me:$LINENO: WARNING:
31046 ----------------------------------------------------------------------------
31047 * I could not find a working copy of cairo-ps. Check config.log for hints on why
31048   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31049   so that compiler and the linker can find libcairo and its header files. If
31050   you have not installed cairo-ps, you can get it either from its original home on
31052      http://cairographics.org/releases/
31054   You can find also find an archive copy on
31056      http://oss.oetiker.ch/rrdtool/pub/libs
31058   The last tested version of cairo-ps is 1.4.6.
31060        LIBS=$LIBS
31061    LDFLAGS=$LDFLAGS
31062   CPPFLAGS=$CPPFLAGS
31064 ----------------------------------------------------------------------------
31065                 " >&5
31066 echo "$as_me: WARNING:
31067 ----------------------------------------------------------------------------
31068 * I could not find a working copy of cairo-ps. Check config.log for hints on why
31069   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31070   so that compiler and the linker can find libcairo and its header files. If
31071   you have not installed cairo-ps, you can get it either from its original home on
31073      http://cairographics.org/releases/
31075   You can find also find an archive copy on
31077      http://oss.oetiker.ch/rrdtool/pub/libs
31079   The last tested version of cairo-ps is 1.4.6.
31081        LIBS=$LIBS
31082    LDFLAGS=$LDFLAGS
31083   CPPFLAGS=$CPPFLAGS
31085 ----------------------------------------------------------------------------
31086                 " >&2;}
31087        EX_CHECK_ALL_ERR=YES
31088        LIBS="${ex_check_save_LIBS}"
31089        CPPFLAGS="${ex_check_save_CPPFLAGS}"
31090        LDFLAGS="${ex_check_save_LDFLAGS}"
31091     fi
31092     ac_ext=c
31093 ac_cpp='$CPP $CPPFLAGS'
31094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31101  ac_ext=c
31102 ac_cpp='$CPP $CPPFLAGS'
31103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31107  EX_CHECK_STATE=NO
31108  ex_check_save_LIBS=${LIBS}
31109  ex_check_save_CPPFLAGS=${CPPFLAGS}
31110  ex_check_save_LDFLAGS=${LDFLAGS}
31111  if test "x""" != "x"; then
31112    CPPFLAGS="$CPPFLAGS -I"""
31113  fi
31114   { echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
31115 echo $ECHO_N "checking for pango_cairo_context_set_font_options in -lpango-1.0... $ECHO_C" >&6; }
31116 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
31117   echo $ECHO_N "(cached) $ECHO_C" >&6
31118 else
31119   ac_check_lib_save_LIBS=$LIBS
31120 LIBS="-lpango-1.0  $LIBS"
31121 cat >conftest.$ac_ext <<_ACEOF
31122 /* confdefs.h.  */
31123 _ACEOF
31124 cat confdefs.h >>conftest.$ac_ext
31125 cat >>conftest.$ac_ext <<_ACEOF
31126 /* end confdefs.h.  */
31128 /* Override any GCC internal prototype to avoid an error.
31129    Use char because int might match the return type of a GCC
31130    builtin and then its argument prototype would still apply.  */
31131 #ifdef __cplusplus
31132 extern "C"
31133 #endif
31134 char pango_cairo_context_set_font_options ();
31135 int
31136 main ()
31138 return pango_cairo_context_set_font_options ();
31139   ;
31140   return 0;
31142 _ACEOF
31143 rm -f conftest.$ac_objext conftest$ac_exeext
31144 if { (ac_try="$ac_link"
31145 case "(($ac_try" in
31146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31147   *) ac_try_echo=$ac_try;;
31148 esac
31149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31150   (eval "$ac_link") 2>conftest.er1
31151   ac_status=$?
31152   grep -v '^ *+' conftest.er1 >conftest.err
31153   rm -f conftest.er1
31154   cat conftest.err >&5
31155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156   (exit $ac_status); } && {
31157          test -z "$ac_c_werror_flag" ||
31158          test ! -s conftest.err
31159        } && test -s conftest$ac_exeext &&
31160        $as_test_x conftest$ac_exeext; then
31161   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
31162 else
31163   echo "$as_me: failed program was:" >&5
31164 sed 's/^/| /' conftest.$ac_ext >&5
31166         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
31169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31170       conftest$ac_exeext conftest.$ac_ext
31171 LIBS=$ac_check_lib_save_LIBS
31173 { echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
31174 echo "${ECHO_T}$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
31175 if test $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options = yes; then
31177     if test "${ac_cv_header_pango_pango_h+set}" = set; then
31178   { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
31179 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
31180 if test "${ac_cv_header_pango_pango_h+set}" = set; then
31181   echo $ECHO_N "(cached) $ECHO_C" >&6
31183 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31184 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
31185 else
31186   # Is the header compilable?
31187 { echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
31188 echo $ECHO_N "checking pango/pango.h usability... $ECHO_C" >&6; }
31189 cat >conftest.$ac_ext <<_ACEOF
31190 /* confdefs.h.  */
31191 _ACEOF
31192 cat confdefs.h >>conftest.$ac_ext
31193 cat >>conftest.$ac_ext <<_ACEOF
31194 /* end confdefs.h.  */
31195 $ac_includes_default
31196 #include <pango/pango.h>
31197 _ACEOF
31198 rm -f conftest.$ac_objext
31199 if { (ac_try="$ac_compile"
31200 case "(($ac_try" in
31201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202   *) ac_try_echo=$ac_try;;
31203 esac
31204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205   (eval "$ac_compile") 2>conftest.er1
31206   ac_status=$?
31207   grep -v '^ *+' conftest.er1 >conftest.err
31208   rm -f conftest.er1
31209   cat conftest.err >&5
31210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211   (exit $ac_status); } && {
31212          test -z "$ac_c_werror_flag" ||
31213          test ! -s conftest.err
31214        } && test -s conftest.$ac_objext; then
31215   ac_header_compiler=yes
31216 else
31217   echo "$as_me: failed program was:" >&5
31218 sed 's/^/| /' conftest.$ac_ext >&5
31220         ac_header_compiler=no
31223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31225 echo "${ECHO_T}$ac_header_compiler" >&6; }
31227 # Is the header present?
31228 { echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
31229 echo $ECHO_N "checking pango/pango.h presence... $ECHO_C" >&6; }
31230 cat >conftest.$ac_ext <<_ACEOF
31231 /* confdefs.h.  */
31232 _ACEOF
31233 cat confdefs.h >>conftest.$ac_ext
31234 cat >>conftest.$ac_ext <<_ACEOF
31235 /* end confdefs.h.  */
31236 #include <pango/pango.h>
31237 _ACEOF
31238 if { (ac_try="$ac_cpp conftest.$ac_ext"
31239 case "(($ac_try" in
31240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31241   *) ac_try_echo=$ac_try;;
31242 esac
31243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31245   ac_status=$?
31246   grep -v '^ *+' conftest.er1 >conftest.err
31247   rm -f conftest.er1
31248   cat conftest.err >&5
31249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250   (exit $ac_status); } >/dev/null && {
31251          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31252          test ! -s conftest.err
31253        }; then
31254   ac_header_preproc=yes
31255 else
31256   echo "$as_me: failed program was:" >&5
31257 sed 's/^/| /' conftest.$ac_ext >&5
31259   ac_header_preproc=no
31262 rm -f conftest.err conftest.$ac_ext
31263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31264 echo "${ECHO_T}$ac_header_preproc" >&6; }
31266 # So?  What about this header?
31267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31268   yes:no: )
31269     { echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
31270 echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31271     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
31272 echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
31273     ac_header_preproc=yes
31274     ;;
31275   no:yes:* )
31276     { echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
31277 echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
31278     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
31279 echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
31280     { echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
31281 echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
31282     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
31283 echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31284     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
31285 echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
31286     { echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
31287 echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
31289     ;;
31290 esac
31291 { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
31292 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
31293 if test "${ac_cv_header_pango_pango_h+set}" = set; then
31294   echo $ECHO_N "(cached) $ECHO_C" >&6
31295 else
31296   ac_cv_header_pango_pango_h=$ac_header_preproc
31298 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31299 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
31302 if test $ac_cv_header_pango_pango_h = yes; then
31303   LIBS="-lpango-1.0 ${LIBS}";EX_CHECK_STATE=YES
31309  if test $EX_CHECK_STATE = NO; then
31310         for ac_prog in pkg-config
31312   # Extract the first word of "$ac_prog", so it can be a program name with args.
31313 set dummy $ac_prog; ac_word=$2
31314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31316 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
31317   echo $ECHO_N "(cached) $ECHO_C" >&6
31318 else
31319   if test -n "$PKGCONFIG"; then
31320   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
31321 else
31322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31323 for as_dir in $PATH
31325   IFS=$as_save_IFS
31326   test -z "$as_dir" && as_dir=.
31327   for ac_exec_ext in '' $ac_executable_extensions; do
31328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31329     ac_cv_prog_PKGCONFIG="$ac_prog"
31330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31331     break 2
31332   fi
31333 done
31334 done
31335 IFS=$as_save_IFS
31339 PKGCONFIG=$ac_cv_prog_PKGCONFIG
31340 if test -n "$PKGCONFIG"; then
31341   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
31342 echo "${ECHO_T}$PKGCONFIG" >&6; }
31343 else
31344   { echo "$as_me:$LINENO: result: no" >&5
31345 echo "${ECHO_T}no" >&6; }
31349   test -n "$PKGCONFIG" && break
31350 done
31351 test -n "$PKGCONFIG" || PKGCONFIG="no"
31353     if test "$PKGCONFIG" != "no"; then
31354           if $PKGCONFIG --exists pangocairo; then
31355              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
31356              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
31357              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
31358              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
31359                              unset ac_cv_lib_`echo pango-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
31360              { echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
31361 echo $ECHO_N "checking for pango_cairo_context_set_font_options in -lpango-1.0... $ECHO_C" >&6; }
31362 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
31363   echo $ECHO_N "(cached) $ECHO_C" >&6
31364 else
31365   ac_check_lib_save_LIBS=$LIBS
31366 LIBS="-lpango-1.0  $LIBS"
31367 cat >conftest.$ac_ext <<_ACEOF
31368 /* confdefs.h.  */
31369 _ACEOF
31370 cat confdefs.h >>conftest.$ac_ext
31371 cat >>conftest.$ac_ext <<_ACEOF
31372 /* end confdefs.h.  */
31374 /* Override any GCC internal prototype to avoid an error.
31375    Use char because int might match the return type of a GCC
31376    builtin and then its argument prototype would still apply.  */
31377 #ifdef __cplusplus
31378 extern "C"
31379 #endif
31380 char pango_cairo_context_set_font_options ();
31381 int
31382 main ()
31384 return pango_cairo_context_set_font_options ();
31385   ;
31386   return 0;
31388 _ACEOF
31389 rm -f conftest.$ac_objext conftest$ac_exeext
31390 if { (ac_try="$ac_link"
31391 case "(($ac_try" in
31392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393   *) ac_try_echo=$ac_try;;
31394 esac
31395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396   (eval "$ac_link") 2>conftest.er1
31397   ac_status=$?
31398   grep -v '^ *+' conftest.er1 >conftest.err
31399   rm -f conftest.er1
31400   cat conftest.err >&5
31401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31402   (exit $ac_status); } && {
31403          test -z "$ac_c_werror_flag" ||
31404          test ! -s conftest.err
31405        } && test -s conftest$ac_exeext &&
31406        $as_test_x conftest$ac_exeext; then
31407   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
31408 else
31409   echo "$as_me: failed program was:" >&5
31410 sed 's/^/| /' conftest.$ac_ext >&5
31412         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
31415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31416       conftest$ac_exeext conftest.$ac_ext
31417 LIBS=$ac_check_lib_save_LIBS
31419 { echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
31420 echo "${ECHO_T}$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
31421 if test $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options = yes; then
31423                  unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
31424                  if test "${ac_cv_header_pango_pango_h+set}" = set; then
31425   { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
31426 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
31427 if test "${ac_cv_header_pango_pango_h+set}" = set; then
31428   echo $ECHO_N "(cached) $ECHO_C" >&6
31430 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31431 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
31432 else
31433   # Is the header compilable?
31434 { echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
31435 echo $ECHO_N "checking pango/pango.h usability... $ECHO_C" >&6; }
31436 cat >conftest.$ac_ext <<_ACEOF
31437 /* confdefs.h.  */
31438 _ACEOF
31439 cat confdefs.h >>conftest.$ac_ext
31440 cat >>conftest.$ac_ext <<_ACEOF
31441 /* end confdefs.h.  */
31442 $ac_includes_default
31443 #include <pango/pango.h>
31444 _ACEOF
31445 rm -f conftest.$ac_objext
31446 if { (ac_try="$ac_compile"
31447 case "(($ac_try" in
31448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31449   *) ac_try_echo=$ac_try;;
31450 esac
31451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452   (eval "$ac_compile") 2>conftest.er1
31453   ac_status=$?
31454   grep -v '^ *+' conftest.er1 >conftest.err
31455   rm -f conftest.er1
31456   cat conftest.err >&5
31457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458   (exit $ac_status); } && {
31459          test -z "$ac_c_werror_flag" ||
31460          test ! -s conftest.err
31461        } && test -s conftest.$ac_objext; then
31462   ac_header_compiler=yes
31463 else
31464   echo "$as_me: failed program was:" >&5
31465 sed 's/^/| /' conftest.$ac_ext >&5
31467         ac_header_compiler=no
31470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31472 echo "${ECHO_T}$ac_header_compiler" >&6; }
31474 # Is the header present?
31475 { echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
31476 echo $ECHO_N "checking pango/pango.h presence... $ECHO_C" >&6; }
31477 cat >conftest.$ac_ext <<_ACEOF
31478 /* confdefs.h.  */
31479 _ACEOF
31480 cat confdefs.h >>conftest.$ac_ext
31481 cat >>conftest.$ac_ext <<_ACEOF
31482 /* end confdefs.h.  */
31483 #include <pango/pango.h>
31484 _ACEOF
31485 if { (ac_try="$ac_cpp conftest.$ac_ext"
31486 case "(($ac_try" in
31487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31488   *) ac_try_echo=$ac_try;;
31489 esac
31490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31492   ac_status=$?
31493   grep -v '^ *+' conftest.er1 >conftest.err
31494   rm -f conftest.er1
31495   cat conftest.err >&5
31496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497   (exit $ac_status); } >/dev/null && {
31498          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31499          test ! -s conftest.err
31500        }; then
31501   ac_header_preproc=yes
31502 else
31503   echo "$as_me: failed program was:" >&5
31504 sed 's/^/| /' conftest.$ac_ext >&5
31506   ac_header_preproc=no
31509 rm -f conftest.err conftest.$ac_ext
31510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31511 echo "${ECHO_T}$ac_header_preproc" >&6; }
31513 # So?  What about this header?
31514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31515   yes:no: )
31516     { echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
31517 echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31518     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
31519 echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
31520     ac_header_preproc=yes
31521     ;;
31522   no:yes:* )
31523     { echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
31524 echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
31525     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
31526 echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
31527     { echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
31528 echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
31529     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
31530 echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31531     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
31532 echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
31533     { echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
31534 echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
31536     ;;
31537 esac
31538 { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
31539 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
31540 if test "${ac_cv_header_pango_pango_h+set}" = set; then
31541   echo $ECHO_N "(cached) $ECHO_C" >&6
31542 else
31543   ac_cv_header_pango_pango_h=$ac_header_preproc
31545 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31546 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
31549 if test $ac_cv_header_pango_pango_h = yes; then
31550   EX_CHECK_STATE=YES
31557           else
31558              { echo "$as_me:$LINENO: WARNING:
31559 ----------------------------------------------------------------------------
31560 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
31561   You may want to set the PKG_CONFIG_PATH variable to point to its
31562   location.
31563 ----------------------------------------------------------------------------
31564                         " >&5
31565 echo "$as_me: WARNING:
31566 ----------------------------------------------------------------------------
31567 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
31568   You may want to set the PKG_CONFIG_PATH variable to point to its
31569   location.
31570 ----------------------------------------------------------------------------
31571                         " >&2;}
31572            fi
31573      fi
31574   fi
31576   if test ${EX_CHECK_STATE} = NO; then
31577      { echo "$as_me:$LINENO: WARNING:
31578 ----------------------------------------------------------------------------
31579 * I could not find a working copy of pangocairo. Check config.log for hints on why
31580   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31581   so that compiler and the linker can find libpango-1.0 and its header files. If
31582   you have not installed pangocairo, you can get it either from its original home on
31584      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
31586   You can find also find an archive copy on
31588      http://oss.oetiker.ch/rrdtool/pub/libs
31590   The last tested version of pangocairo is 1.17.
31592        LIBS=$LIBS
31593    LDFLAGS=$LDFLAGS
31594   CPPFLAGS=$CPPFLAGS
31596 ----------------------------------------------------------------------------
31597                 " >&5
31598 echo "$as_me: WARNING:
31599 ----------------------------------------------------------------------------
31600 * I could not find a working copy of pangocairo. Check config.log for hints on why
31601   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31602   so that compiler and the linker can find libpango-1.0 and its header files. If
31603   you have not installed pangocairo, you can get it either from its original home on
31605      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
31607   You can find also find an archive copy on
31609      http://oss.oetiker.ch/rrdtool/pub/libs
31611   The last tested version of pangocairo is 1.17.
31613        LIBS=$LIBS
31614    LDFLAGS=$LDFLAGS
31615   CPPFLAGS=$CPPFLAGS
31617 ----------------------------------------------------------------------------
31618                 " >&2;}
31619        EX_CHECK_ALL_ERR=YES
31620        LIBS="${ex_check_save_LIBS}"
31621        CPPFLAGS="${ex_check_save_CPPFLAGS}"
31622        LDFLAGS="${ex_check_save_LDFLAGS}"
31623     fi
31624     ac_ext=c
31625 ac_cpp='$CPP $CPPFLAGS'
31626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31633  ac_ext=c
31634 ac_cpp='$CPP $CPPFLAGS'
31635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31639  EX_CHECK_STATE=NO
31640  ex_check_save_LIBS=${LIBS}
31641  ex_check_save_CPPFLAGS=${CPPFLAGS}
31642  ex_check_save_LDFLAGS=${LDFLAGS}
31643  if test "x/usr/include/libxml2" != "x"; then
31644    CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
31645  fi
31646   { echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
31647 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6; }
31648 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
31649   echo $ECHO_N "(cached) $ECHO_C" >&6
31650 else
31651   ac_check_lib_save_LIBS=$LIBS
31652 LIBS="-lxml2  $LIBS"
31653 cat >conftest.$ac_ext <<_ACEOF
31654 /* confdefs.h.  */
31655 _ACEOF
31656 cat confdefs.h >>conftest.$ac_ext
31657 cat >>conftest.$ac_ext <<_ACEOF
31658 /* end confdefs.h.  */
31660 /* Override any GCC internal prototype to avoid an error.
31661    Use char because int might match the return type of a GCC
31662    builtin and then its argument prototype would still apply.  */
31663 #ifdef __cplusplus
31664 extern "C"
31665 #endif
31666 char xmlParseFile ();
31667 int
31668 main ()
31670 return xmlParseFile ();
31671   ;
31672   return 0;
31674 _ACEOF
31675 rm -f conftest.$ac_objext conftest$ac_exeext
31676 if { (ac_try="$ac_link"
31677 case "(($ac_try" in
31678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31679   *) ac_try_echo=$ac_try;;
31680 esac
31681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31682   (eval "$ac_link") 2>conftest.er1
31683   ac_status=$?
31684   grep -v '^ *+' conftest.er1 >conftest.err
31685   rm -f conftest.er1
31686   cat conftest.err >&5
31687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688   (exit $ac_status); } && {
31689          test -z "$ac_c_werror_flag" ||
31690          test ! -s conftest.err
31691        } && test -s conftest$ac_exeext &&
31692        $as_test_x conftest$ac_exeext; then
31693   ac_cv_lib_xml2_xmlParseFile=yes
31694 else
31695   echo "$as_me: failed program was:" >&5
31696 sed 's/^/| /' conftest.$ac_ext >&5
31698         ac_cv_lib_xml2_xmlParseFile=no
31701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31702       conftest$ac_exeext conftest.$ac_ext
31703 LIBS=$ac_check_lib_save_LIBS
31705 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
31706 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6; }
31707 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
31709     if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31710   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31711 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31712 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31713   echo $ECHO_N "(cached) $ECHO_C" >&6
31715 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31716 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31717 else
31718   # Is the header compilable?
31719 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
31720 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
31721 cat >conftest.$ac_ext <<_ACEOF
31722 /* confdefs.h.  */
31723 _ACEOF
31724 cat confdefs.h >>conftest.$ac_ext
31725 cat >>conftest.$ac_ext <<_ACEOF
31726 /* end confdefs.h.  */
31727 $ac_includes_default
31728 #include <libxml/parser.h>
31729 _ACEOF
31730 rm -f conftest.$ac_objext
31731 if { (ac_try="$ac_compile"
31732 case "(($ac_try" in
31733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31734   *) ac_try_echo=$ac_try;;
31735 esac
31736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31737   (eval "$ac_compile") 2>conftest.er1
31738   ac_status=$?
31739   grep -v '^ *+' conftest.er1 >conftest.err
31740   rm -f conftest.er1
31741   cat conftest.err >&5
31742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743   (exit $ac_status); } && {
31744          test -z "$ac_c_werror_flag" ||
31745          test ! -s conftest.err
31746        } && test -s conftest.$ac_objext; then
31747   ac_header_compiler=yes
31748 else
31749   echo "$as_me: failed program was:" >&5
31750 sed 's/^/| /' conftest.$ac_ext >&5
31752         ac_header_compiler=no
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31757 echo "${ECHO_T}$ac_header_compiler" >&6; }
31759 # Is the header present?
31760 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
31761 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
31762 cat >conftest.$ac_ext <<_ACEOF
31763 /* confdefs.h.  */
31764 _ACEOF
31765 cat confdefs.h >>conftest.$ac_ext
31766 cat >>conftest.$ac_ext <<_ACEOF
31767 /* end confdefs.h.  */
31768 #include <libxml/parser.h>
31769 _ACEOF
31770 if { (ac_try="$ac_cpp conftest.$ac_ext"
31771 case "(($ac_try" in
31772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773   *) ac_try_echo=$ac_try;;
31774 esac
31775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31777   ac_status=$?
31778   grep -v '^ *+' conftest.er1 >conftest.err
31779   rm -f conftest.er1
31780   cat conftest.err >&5
31781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31782   (exit $ac_status); } >/dev/null && {
31783          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31784          test ! -s conftest.err
31785        }; then
31786   ac_header_preproc=yes
31787 else
31788   echo "$as_me: failed program was:" >&5
31789 sed 's/^/| /' conftest.$ac_ext >&5
31791   ac_header_preproc=no
31794 rm -f conftest.err conftest.$ac_ext
31795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31796 echo "${ECHO_T}$ac_header_preproc" >&6; }
31798 # So?  What about this header?
31799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31800   yes:no: )
31801     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
31802 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31803     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
31804 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
31805     ac_header_preproc=yes
31806     ;;
31807   no:yes:* )
31808     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
31809 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
31810     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
31811 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
31812     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
31813 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
31814     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
31815 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31816     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
31817 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
31818     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
31819 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
31821     ;;
31822 esac
31823 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31824 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31825 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31826   echo $ECHO_N "(cached) $ECHO_C" >&6
31827 else
31828   ac_cv_header_libxml_parser_h=$ac_header_preproc
31830 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31831 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31834 if test $ac_cv_header_libxml_parser_h = yes; then
31835   LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
31841  if test $EX_CHECK_STATE = NO; then
31842         for ac_prog in pkg-config
31844   # Extract the first word of "$ac_prog", so it can be a program name with args.
31845 set dummy $ac_prog; ac_word=$2
31846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31848 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
31849   echo $ECHO_N "(cached) $ECHO_C" >&6
31850 else
31851   if test -n "$PKGCONFIG"; then
31852   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
31853 else
31854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31855 for as_dir in $PATH
31857   IFS=$as_save_IFS
31858   test -z "$as_dir" && as_dir=.
31859   for ac_exec_ext in '' $ac_executable_extensions; do
31860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31861     ac_cv_prog_PKGCONFIG="$ac_prog"
31862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31863     break 2
31864   fi
31865 done
31866 done
31867 IFS=$as_save_IFS
31871 PKGCONFIG=$ac_cv_prog_PKGCONFIG
31872 if test -n "$PKGCONFIG"; then
31873   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
31874 echo "${ECHO_T}$PKGCONFIG" >&6; }
31875 else
31876   { echo "$as_me:$LINENO: result: no" >&5
31877 echo "${ECHO_T}no" >&6; }
31881   test -n "$PKGCONFIG" && break
31882 done
31883 test -n "$PKGCONFIG" || PKGCONFIG="no"
31885     if test "$PKGCONFIG" != "no"; then
31886           if $PKGCONFIG --exists libxml-2.0; then
31887              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
31888              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
31889              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
31890              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
31891                              unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
31892              { echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
31893 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6; }
31894 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
31895   echo $ECHO_N "(cached) $ECHO_C" >&6
31896 else
31897   ac_check_lib_save_LIBS=$LIBS
31898 LIBS="-lxml2  $LIBS"
31899 cat >conftest.$ac_ext <<_ACEOF
31900 /* confdefs.h.  */
31901 _ACEOF
31902 cat confdefs.h >>conftest.$ac_ext
31903 cat >>conftest.$ac_ext <<_ACEOF
31904 /* end confdefs.h.  */
31906 /* Override any GCC internal prototype to avoid an error.
31907    Use char because int might match the return type of a GCC
31908    builtin and then its argument prototype would still apply.  */
31909 #ifdef __cplusplus
31910 extern "C"
31911 #endif
31912 char xmlParseFile ();
31913 int
31914 main ()
31916 return xmlParseFile ();
31917   ;
31918   return 0;
31920 _ACEOF
31921 rm -f conftest.$ac_objext conftest$ac_exeext
31922 if { (ac_try="$ac_link"
31923 case "(($ac_try" in
31924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925   *) ac_try_echo=$ac_try;;
31926 esac
31927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928   (eval "$ac_link") 2>conftest.er1
31929   ac_status=$?
31930   grep -v '^ *+' conftest.er1 >conftest.err
31931   rm -f conftest.er1
31932   cat conftest.err >&5
31933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934   (exit $ac_status); } && {
31935          test -z "$ac_c_werror_flag" ||
31936          test ! -s conftest.err
31937        } && test -s conftest$ac_exeext &&
31938        $as_test_x conftest$ac_exeext; then
31939   ac_cv_lib_xml2_xmlParseFile=yes
31940 else
31941   echo "$as_me: failed program was:" >&5
31942 sed 's/^/| /' conftest.$ac_ext >&5
31944         ac_cv_lib_xml2_xmlParseFile=no
31947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31948       conftest$ac_exeext conftest.$ac_ext
31949 LIBS=$ac_check_lib_save_LIBS
31951 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
31952 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6; }
31953 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
31955                  unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
31956                  if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31957   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31958 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31959 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31960   echo $ECHO_N "(cached) $ECHO_C" >&6
31962 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31963 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31964 else
31965   # Is the header compilable?
31966 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
31967 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
31968 cat >conftest.$ac_ext <<_ACEOF
31969 /* confdefs.h.  */
31970 _ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h.  */
31974 $ac_includes_default
31975 #include <libxml/parser.h>
31976 _ACEOF
31977 rm -f conftest.$ac_objext
31978 if { (ac_try="$ac_compile"
31979 case "(($ac_try" in
31980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981   *) ac_try_echo=$ac_try;;
31982 esac
31983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984   (eval "$ac_compile") 2>conftest.er1
31985   ac_status=$?
31986   grep -v '^ *+' conftest.er1 >conftest.err
31987   rm -f conftest.er1
31988   cat conftest.err >&5
31989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990   (exit $ac_status); } && {
31991          test -z "$ac_c_werror_flag" ||
31992          test ! -s conftest.err
31993        } && test -s conftest.$ac_objext; then
31994   ac_header_compiler=yes
31995 else
31996   echo "$as_me: failed program was:" >&5
31997 sed 's/^/| /' conftest.$ac_ext >&5
31999         ac_header_compiler=no
32002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32003 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32004 echo "${ECHO_T}$ac_header_compiler" >&6; }
32006 # Is the header present?
32007 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
32008 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
32009 cat >conftest.$ac_ext <<_ACEOF
32010 /* confdefs.h.  */
32011 _ACEOF
32012 cat confdefs.h >>conftest.$ac_ext
32013 cat >>conftest.$ac_ext <<_ACEOF
32014 /* end confdefs.h.  */
32015 #include <libxml/parser.h>
32016 _ACEOF
32017 if { (ac_try="$ac_cpp conftest.$ac_ext"
32018 case "(($ac_try" in
32019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020   *) ac_try_echo=$ac_try;;
32021 esac
32022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32024   ac_status=$?
32025   grep -v '^ *+' conftest.er1 >conftest.err
32026   rm -f conftest.er1
32027   cat conftest.err >&5
32028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029   (exit $ac_status); } >/dev/null && {
32030          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32031          test ! -s conftest.err
32032        }; then
32033   ac_header_preproc=yes
32034 else
32035   echo "$as_me: failed program was:" >&5
32036 sed 's/^/| /' conftest.$ac_ext >&5
32038   ac_header_preproc=no
32041 rm -f conftest.err conftest.$ac_ext
32042 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32043 echo "${ECHO_T}$ac_header_preproc" >&6; }
32045 # So?  What about this header?
32046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32047   yes:no: )
32048     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
32049 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32050     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
32051 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
32052     ac_header_preproc=yes
32053     ;;
32054   no:yes:* )
32055     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
32056 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
32057     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
32058 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
32059     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
32060 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
32061     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
32062 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32063     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
32064 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
32065     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
32066 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
32068     ;;
32069 esac
32070 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
32071 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
32072 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
32073   echo $ECHO_N "(cached) $ECHO_C" >&6
32074 else
32075   ac_cv_header_libxml_parser_h=$ac_header_preproc
32077 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
32078 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
32081 if test $ac_cv_header_libxml_parser_h = yes; then
32082   EX_CHECK_STATE=YES
32089           else
32090              { echo "$as_me:$LINENO: WARNING:
32091 ----------------------------------------------------------------------------
32092 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
32093   You may want to set the PKG_CONFIG_PATH variable to point to its
32094   location.
32095 ----------------------------------------------------------------------------
32096                         " >&5
32097 echo "$as_me: WARNING:
32098 ----------------------------------------------------------------------------
32099 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
32100   You may want to set the PKG_CONFIG_PATH variable to point to its
32101   location.
32102 ----------------------------------------------------------------------------
32103                         " >&2;}
32104            fi
32105      fi
32106   fi
32108   if test ${EX_CHECK_STATE} = NO; then
32109      { echo "$as_me:$LINENO: WARNING:
32110 ----------------------------------------------------------------------------
32111 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
32112   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
32113   so that compiler and the linker can find libxml2 and its header files. If
32114   you have not installed libxml-2.0, you can get it either from its original home on
32116      http://xmlsoft.org/downloads.html
32118   You can find also find an archive copy on
32120      http://oss.oetiker.ch/rrdtool/pub/libs
32122   The last tested version of libxml-2.0 is 2.6.31.
32124        LIBS=$LIBS
32125    LDFLAGS=$LDFLAGS
32126   CPPFLAGS=$CPPFLAGS
32128 ----------------------------------------------------------------------------
32129                 " >&5
32130 echo "$as_me: WARNING:
32131 ----------------------------------------------------------------------------
32132 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
32133   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
32134   so that compiler and the linker can find libxml2 and its header files. If
32135   you have not installed libxml-2.0, you can get it either from its original home on
32137      http://xmlsoft.org/downloads.html
32139   You can find also find an archive copy on
32141      http://oss.oetiker.ch/rrdtool/pub/libs
32143   The last tested version of libxml-2.0 is 2.6.31.
32145        LIBS=$LIBS
32146    LDFLAGS=$LDFLAGS
32147   CPPFLAGS=$CPPFLAGS
32149 ----------------------------------------------------------------------------
32150                 " >&2;}
32151        EX_CHECK_ALL_ERR=YES
32152        LIBS="${ex_check_save_LIBS}"
32153        CPPFLAGS="${ex_check_save_CPPFLAGS}"
32154        LDFLAGS="${ex_check_save_LDFLAGS}"
32155     fi
32156     ac_ext=c
32157 ac_cpp='$CPP $CPPFLAGS'
32158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32165 if test "$EX_CHECK_ALL_ERR" = "YES"; then
32166   { { echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
32167 echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
32168    { (exit 1); exit 1; }; }
32171 ALL_LIBS="$LIBS"
32172 LIBS=
32178 case $TERM in
32179        #   for the most important terminal types we directly know the sequences
32180        xterm|xterm*|vt220|vt220*)
32181                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
32182                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
32183        ;;
32184        vt100|vt100*|cygwin)
32185                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
32186                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
32187        ;;
32188        *)
32189                T_MD=''
32190                T_ME=''
32191        ;;
32192 esac
32193   { echo "$as_me:$LINENO: result: " >&5
32194 echo "${ECHO_T}" >&6; }
32195   { echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
32196 echo "${ECHO_T}${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
32199 PATH=$PATH:/usr/perl5/bin
32200 export PATH
32201 # Extract the first word of "perl", so it can be a program name with args.
32202 set dummy perl; ac_word=$2
32203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32205 if test "${ac_cv_path_PERL+set}" = set; then
32206   echo $ECHO_N "(cached) $ECHO_C" >&6
32207 else
32208   case $PERL in
32209   [\\/]* | ?:[\\/]*)
32210   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32211   ;;
32212   *)
32213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32214 for as_dir in $PATH
32216   IFS=$as_save_IFS
32217   test -z "$as_dir" && as_dir=.
32218   for ac_exec_ext in '' $ac_executable_extensions; do
32219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32220     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32221     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32222     break 2
32223   fi
32224 done
32225 done
32226 IFS=$as_save_IFS
32228   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
32229   ;;
32230 esac
32232 PERL=$ac_cv_path_PERL
32233 if test -n "$PERL"; then
32234   { echo "$as_me:$LINENO: result: $PERL" >&5
32235 echo "${ECHO_T}$PERL" >&6; }
32236 else
32237   { echo "$as_me:$LINENO: result: no" >&5
32238 echo "${ECHO_T}no" >&6; }
32242 # Extract the first word of "pod2man", so it can be a program name with args.
32243 set dummy pod2man; ac_word=$2
32244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32246 if test "${ac_cv_path_POD2MAN+set}" = set; then
32247   echo $ECHO_N "(cached) $ECHO_C" >&6
32248 else
32249   case $POD2MAN in
32250   [\\/]* | ?:[\\/]*)
32251   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
32252   ;;
32253   *)
32254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32255 for as_dir in $PATH
32257   IFS=$as_save_IFS
32258   test -z "$as_dir" && as_dir=.
32259   for ac_exec_ext in '' $ac_executable_extensions; do
32260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32261     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
32262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32263     break 2
32264   fi
32265 done
32266 done
32267 IFS=$as_save_IFS
32269   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
32270   ;;
32271 esac
32273 POD2MAN=$ac_cv_path_POD2MAN
32274 if test -n "$POD2MAN"; then
32275   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
32276 echo "${ECHO_T}$POD2MAN" >&6; }
32277 else
32278   { echo "$as_me:$LINENO: result: no" >&5
32279 echo "${ECHO_T}no" >&6; }
32283 # Extract the first word of "pod2html", so it can be a program name with args.
32284 set dummy pod2html; ac_word=$2
32285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32287 if test "${ac_cv_path_POD2HTML+set}" = set; then
32288   echo $ECHO_N "(cached) $ECHO_C" >&6
32289 else
32290   case $POD2HTML in
32291   [\\/]* | ?:[\\/]*)
32292   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
32293   ;;
32294   *)
32295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32296 for as_dir in $PATH
32298   IFS=$as_save_IFS
32299   test -z "$as_dir" && as_dir=.
32300   for ac_exec_ext in '' $ac_executable_extensions; do
32301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32302     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
32303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32304     break 2
32305   fi
32306 done
32307 done
32308 IFS=$as_save_IFS
32310   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
32311   ;;
32312 esac
32314 POD2HTML=$ac_cv_path_POD2HTML
32315 if test -n "$POD2HTML"; then
32316   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
32317 echo "${ECHO_T}$POD2HTML" >&6; }
32318 else
32319   { echo "$as_me:$LINENO: result: no" >&5
32320 echo "${ECHO_T}no" >&6; }
32326 # Check whether --enable-perl was given.
32327 if test "${enable_perl+set}" = set; then
32328   enableval=$enable_perl;
32329 else
32330   enable_perl=yes
32340 if test "x$PERL" = "xno" -o  x$enable_perl = xno; then
32341         COMP_PERL=
32342 else
32343         COMP_PERL="perl_piped perl_shared"
32344         { echo "$as_me:$LINENO: checking for the perl version you are running" >&5
32345 echo $ECHO_N "checking for the perl version you are running... $ECHO_C" >&6; }
32346         PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
32347         { echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
32348 echo "${ECHO_T}$PERL_VERSION" >&6; }
32349         if test -z "$PERLCC"; then
32350             { echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
32351 echo $ECHO_N "checking for the C compiler perl wants to use to build its modules... $ECHO_C" >&6; }
32352             perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
32353             { echo "$as_me:$LINENO: result: $perlcc" >&5
32354 echo "${ECHO_T}$perlcc" >&6; }
32355             if test ! -x "$perlcc"; then
32356                 # Extract the first word of "${perlcc}", so it can be a program name with args.
32357 set dummy ${perlcc}; ac_word=$2
32358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32360 if test "${ac_cv_path_PERL_CC+set}" = set; then
32361   echo $ECHO_N "(cached) $ECHO_C" >&6
32362 else
32363   case $PERL_CC in
32364   [\\/]* | ?:[\\/]*)
32365   ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
32366   ;;
32367   *)
32368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32369 for as_dir in $PATH
32371   IFS=$as_save_IFS
32372   test -z "$as_dir" && as_dir=.
32373   for ac_exec_ext in '' $ac_executable_extensions; do
32374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32375     ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
32376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32377     break 2
32378   fi
32379 done
32380 done
32381 IFS=$as_save_IFS
32383   test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
32384   ;;
32385 esac
32387 PERL_CC=$ac_cv_path_PERL_CC
32388 if test -n "$PERL_CC"; then
32389   { echo "$as_me:$LINENO: result: $PERL_CC" >&5
32390 echo "${ECHO_T}$PERL_CC" >&6; }
32391 else
32392   { echo "$as_me:$LINENO: result: no" >&5
32393 echo "${ECHO_T}no" >&6; }
32397                 if test "$PERL_CC" = "no"; then
32398                     { echo "$as_me:$LINENO: WARNING:
32399 I would not find the Compiler ($perlcc) that was originally used to compile
32400 your perl binary. You should either make sure that this compiler is
32401 available on your system, pick an other compiler and set PERLCC
32402 appropriately, or use a different perl setup that was compiled locally.
32404 I will disable the compilation of the RRDs perl module for now.
32405 " >&5
32406 echo "$as_me: WARNING:
32407 I would not find the Compiler ($perlcc) that was originally used to compile
32408 your perl binary. You should either make sure that this compiler is
32409 available on your system, pick an other compiler and set PERLCC
32410 appropriately, or use a different perl setup that was compiled locally.
32412 I will disable the compilation of the RRDs perl module for now.
32413 " >&2;}
32414                     COMP_PERL="perl_piped"
32415                 fi
32416             fi
32417         fi
32420 { echo "$as_me:$LINENO: checking Perl Modules to build" >&5
32421 echo $ECHO_N "checking Perl Modules to build... $ECHO_C" >&6; }
32422 { echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
32423 echo "${ECHO_T}${COMP_PERL:-No Perl Modules will be built}" >&6; }
32425 # Options to pass when configuring perl module
32426 ppref=$prefix
32427 test "$ppref" = 'NONE' && ppref=$ac_default_prefix
32429 PERL_MAKE_OPTIONS="PREFIX="'$(DESTDIR)'"$ppref LIB="'$(DESTDIR)'"$ppref/lib/perl/$PERL_VERSION"
32431 # Check whether --enable-perl-site-install was given.
32432 if test "${enable_perl_site_install+set}" = set; then
32433   enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
32437 if test ! -z "$PERLCC"; then
32438    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
32440    if test ! -z "$PERLCCFLAGS"; then
32441        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
32442    fi
32444    if test -z "$PERLLD"; then
32445        PERLLD=$PERLCC
32446    fi
32447    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
32449    if test ! -z "$PERLLDFLAGS"; then
32450        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
32451    fi
32455 # Check whether --with-perl-options was given.
32456 if test "${with_perl_options+set}" = set; then
32457   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
32466 # Extract the first word of "ruby", so it can be a program name with args.
32467 set dummy ruby; ac_word=$2
32468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32470 if test "${ac_cv_path_RUBY+set}" = set; then
32471   echo $ECHO_N "(cached) $ECHO_C" >&6
32472 else
32473   case $RUBY in
32474   [\\/]* | ?:[\\/]*)
32475   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
32476   ;;
32477   *)
32478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32479 for as_dir in $PATH
32481   IFS=$as_save_IFS
32482   test -z "$as_dir" && as_dir=.
32483   for ac_exec_ext in '' $ac_executable_extensions; do
32484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32485     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
32486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32487     break 2
32488   fi
32489 done
32490 done
32491 IFS=$as_save_IFS
32493   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
32494   ;;
32495 esac
32497 RUBY=$ac_cv_path_RUBY
32498 if test -n "$RUBY"; then
32499   { echo "$as_me:$LINENO: result: $RUBY" >&5
32500 echo "${ECHO_T}$RUBY" >&6; }
32501 else
32502   { echo "$as_me:$LINENO: result: no" >&5
32503 echo "${ECHO_T}no" >&6; }
32508 # Check whether --enable-ruby was given.
32509 if test "${enable_ruby+set}" = set; then
32510   enableval=$enable_ruby;
32511 else
32512   enable_ruby=yes
32516 { echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
32517 echo $ECHO_N "checking if ruby modules can be built... $ECHO_C" >&6; }
32519 if test "x$RUBY" = "xno" -o  x$enable_ruby = xno; then
32520         COMP_RUBY=
32521         { echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
32522 echo "${ECHO_T}No .. Ruby not found or disabled" >&6; }
32523 else
32524         if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
32525                 COMP_RUBY="ruby"
32526                 { echo "$as_me:$LINENO: result: YES" >&5
32527 echo "${ECHO_T}YES" >&6; }
32528         else
32529                 COMP_RUBY=
32530                 { echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
32531 echo "${ECHO_T}Ruby found but mkmf is missing! Install the -dev package" >&6; }
32532         fi
32535 rpref=$prefix
32536 test "$rpref" = 'NONE' && rpref=$ac_default_prefix
32538 # Check whether --enable-ruby-site-install was given.
32539 if test "${enable_ruby_site_install+set}" = set; then
32540   enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
32541 else
32542   RUBY_MAKE_OPTIONS="sitedir="'$(DESTDIR)'"$rpref/lib/ruby"
32548 # Check whether --with-ruby-options was given.
32549 if test "${with_ruby_options+set}" = set; then
32550   withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
32559 enable_tcl_site=no
32561 # Check whether --enable-tcl was given.
32562 if test "${enable_tcl+set}" = set; then
32563   enableval=$enable_tcl;
32564 else
32565   enable_tcl=yes
32569 if test  "$enable_tcl" = "yes"; then
32570     withval=""
32572 # Check whether --with-tcllib was given.
32573 if test "${with_tcllib+set}" = set; then
32574   withval=$with_tcllib;
32577   enable_tcl=no
32578   for dir in $withval /usr/lib /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
32579     { echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
32580 echo $ECHO_N "checking for tclConfig.sh in $dir... $ECHO_C" >&6; }
32581     if test -f "$dir/tclConfig.sh" ; then
32582         tcl_config=$dir/tclConfig.sh
32583         enable_tcl=yes
32584         { echo "$as_me:$LINENO: result: yes" >&5
32585 echo "${ECHO_T}yes" >&6; }
32586         break
32587     else
32588         { echo "$as_me:$LINENO: result: no" >&5
32589 echo "${ECHO_T}no" >&6; }
32590     fi
32591   done
32593   if test "$enable_tcl" = "no"; then
32594         { echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
32595 echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
32596   else
32597         . $tcl_config
32598         TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
32599         if test -n "$TCL_INC_DIR"; then
32600           TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
32601         fi
32602   fi
32603   # Check whether --enable-tcl was given.
32604 if test "${enable_tcl+set}" = set; then
32605   enableval=$enable_tcl;
32606 else
32607   enable_tcl_site=yes
32615 if test "$enable_tcl" = "yes" ; then
32616   BUILD_TCL_TRUE=
32617   BUILD_TCL_FALSE='#'
32618 else
32619   BUILD_TCL_TRUE='#'
32620   BUILD_TCL_FALSE=
32625 if test "$enable_tcl_site" = "yes" ; then
32626   BUILD_TCL_SITE_TRUE=
32627   BUILD_TCL_SITE_FALSE='#'
32628 else
32629   BUILD_TCL_SITE_TRUE='#'
32630   BUILD_TCL_SITE_FALSE=
32646 # Check whether --enable-python was given.
32647 if test "${enable_python+set}" = set; then
32648   enableval=$enable_python;
32649 else
32650   enable_python=yes
32654 if test  "$enable_python" = "yes"; then
32659         if test -n "$PYTHON"; then
32660       # If the user set $PYTHON, use it and don't search something else.
32661       { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
32662 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
32663       prog="import sys, string
32664 # split strings by '.' and convert to numeric.  Append some zeros
32665 # because we need at least 4 digits for the hex conversion.
32666 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
32667 minverhex = 0
32668 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
32669 sys.exit(sys.hexversion < minverhex)"
32670   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
32671    ($PYTHON -c "$prog") >&5 2>&5
32672    ac_status=$?
32673    echo "$as_me:$LINENO: \$? = $ac_status" >&5
32674    (exit $ac_status); }; then
32675   { echo "$as_me:$LINENO: result: yes" >&5
32676 echo "${ECHO_T}yes" >&6; }
32677 else
32678   { { echo "$as_me:$LINENO: error: too old" >&5
32679 echo "$as_me: error: too old" >&2;}
32680    { (exit 1); exit 1; }; }
32683       am_display_PYTHON=$PYTHON
32684     else
32685       # Otherwise, try each interpreter until we find one that satisfies
32686       # VERSION.
32687       { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
32688 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
32689 if test "${am_cv_pathless_PYTHON+set}" = set; then
32690   echo $ECHO_N "(cached) $ECHO_C" >&6
32691 else
32693         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
32694           test "$am_cv_pathless_PYTHON" = none && break
32695           prog="import sys, string
32696 # split strings by '.' and convert to numeric.  Append some zeros
32697 # because we need at least 4 digits for the hex conversion.
32698 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
32699 minverhex = 0
32700 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
32701 sys.exit(sys.hexversion < minverhex)"
32702   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
32703    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
32704    ac_status=$?
32705    echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706    (exit $ac_status); }; then
32707   break
32710         done
32712 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
32713 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
32714       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
32715       if test "$am_cv_pathless_PYTHON" = none; then
32716         PYTHON=:
32717       else
32718         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
32719 set dummy $am_cv_pathless_PYTHON; ac_word=$2
32720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32722 if test "${ac_cv_path_PYTHON+set}" = set; then
32723   echo $ECHO_N "(cached) $ECHO_C" >&6
32724 else
32725   case $PYTHON in
32726   [\\/]* | ?:[\\/]*)
32727   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
32728   ;;
32729   *)
32730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32731 for as_dir in $PATH
32733   IFS=$as_save_IFS
32734   test -z "$as_dir" && as_dir=.
32735   for ac_exec_ext in '' $ac_executable_extensions; do
32736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32737     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
32738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32739     break 2
32740   fi
32741 done
32742 done
32743 IFS=$as_save_IFS
32745   ;;
32746 esac
32748 PYTHON=$ac_cv_path_PYTHON
32749 if test -n "$PYTHON"; then
32750   { echo "$as_me:$LINENO: result: $PYTHON" >&5
32751 echo "${ECHO_T}$PYTHON" >&6; }
32752 else
32753   { echo "$as_me:$LINENO: result: no" >&5
32754 echo "${ECHO_T}no" >&6; }
32758       fi
32759       am_display_PYTHON=$am_cv_pathless_PYTHON
32760     fi
32763   if test "$PYTHON" = :; then
32764       enable_python=no
32765   else
32768   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
32769 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
32770 if test "${am_cv_python_version+set}" = set; then
32771   echo $ECHO_N "(cached) $ECHO_C" >&6
32772 else
32773   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
32775 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
32776 echo "${ECHO_T}$am_cv_python_version" >&6; }
32777   PYTHON_VERSION=$am_cv_python_version
32781   PYTHON_PREFIX='${prefix}'
32783   PYTHON_EXEC_PREFIX='${exec_prefix}'
32787   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
32788 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
32789 if test "${am_cv_python_platform+set}" = set; then
32790   echo $ECHO_N "(cached) $ECHO_C" >&6
32791 else
32792   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
32794 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
32795 echo "${ECHO_T}$am_cv_python_platform" >&6; }
32796   PYTHON_PLATFORM=$am_cv_python_platform
32801                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
32802 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
32803 if test "${am_cv_python_pythondir+set}" = set; then
32804   echo $ECHO_N "(cached) $ECHO_C" >&6
32805 else
32806   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
32807      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
32809 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
32810 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
32811   pythondir=$am_cv_python_pythondir
32815   pkgpythondir=\${pythondir}/$PACKAGE
32818             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
32819 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
32820 if test "${am_cv_python_pyexecdir+set}" = set; then
32821   echo $ECHO_N "(cached) $ECHO_C" >&6
32822 else
32823   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
32824      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
32826 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
32827 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
32828   pyexecdir=$am_cv_python_pyexecdir
32832   pkgpyexecdir=\${pyexecdir}/$PACKAGE
32836   fi
32840 { echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
32841 echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; }
32842 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
32843 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
32844 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
32845 if test "$py_prefix" != "$py_exec_prefix"; then
32846   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
32849 save_CPPFLAGS="$CPPFLAGS"
32850 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
32851 cat >conftest.$ac_ext <<_ACEOF
32852 /* confdefs.h.  */
32853 _ACEOF
32854 cat confdefs.h >>conftest.$ac_ext
32855 cat >>conftest.$ac_ext <<_ACEOF
32856 /* end confdefs.h.  */
32857 #include <Python.h>
32858 _ACEOF
32859 if { (ac_try="$ac_cpp conftest.$ac_ext"
32860 case "(($ac_try" in
32861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32862   *) ac_try_echo=$ac_try;;
32863 esac
32864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32865   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32866   ac_status=$?
32867   grep -v '^ *+' conftest.er1 >conftest.err
32868   rm -f conftest.er1
32869   cat conftest.err >&5
32870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871   (exit $ac_status); } >/dev/null && {
32872          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32873          test ! -s conftest.err
32874        }; then
32875   { echo "$as_me:$LINENO: result: found" >&5
32876 echo "${ECHO_T}found" >&6; }
32878 else
32879   echo "$as_me: failed program was:" >&5
32880 sed 's/^/| /' conftest.$ac_ext >&5
32882   { echo "$as_me:$LINENO: result: not found" >&5
32883 echo "${ECHO_T}not found" >&6; }
32884 enable_python=no;{ echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
32885 echo "$as_me: WARNING: could not find Python headers" >&2;}
32888 rm -f conftest.err conftest.$ac_ext
32889 CPPFLAGS="$save_CPPFLAGS"
32893 if test  x$enable_python = xno; then
32894         COMP_PYTHON=
32895 else
32896         COMP_PYTHON="python"
32901 for ac_prog in gnroff nroff
32903   # Extract the first word of "$ac_prog", so it can be a program name with args.
32904 set dummy $ac_prog; ac_word=$2
32905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32907 if test "${ac_cv_path_NROFF+set}" = set; then
32908   echo $ECHO_N "(cached) $ECHO_C" >&6
32909 else
32910   case $NROFF in
32911   [\\/]* | ?:[\\/]*)
32912   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
32913   ;;
32914   *)
32915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32916 for as_dir in $PATH
32918   IFS=$as_save_IFS
32919   test -z "$as_dir" && as_dir=.
32920   for ac_exec_ext in '' $ac_executable_extensions; do
32921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32922     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
32923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32924     break 2
32925   fi
32926 done
32927 done
32928 IFS=$as_save_IFS
32930   ;;
32931 esac
32933 NROFF=$ac_cv_path_NROFF
32934 if test -n "$NROFF"; then
32935   { echo "$as_me:$LINENO: result: $NROFF" >&5
32936 echo "${ECHO_T}$NROFF" >&6; }
32937 else
32938   { echo "$as_me:$LINENO: result: no" >&5
32939 echo "${ECHO_T}no" >&6; }
32943   test -n "$NROFF" && break
32944 done
32946 for ac_prog in groff troff
32948   # Extract the first word of "$ac_prog", so it can be a program name with args.
32949 set dummy $ac_prog; ac_word=$2
32950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32952 if test "${ac_cv_path_TROFF+set}" = set; then
32953   echo $ECHO_N "(cached) $ECHO_C" >&6
32954 else
32955   case $TROFF in
32956   [\\/]* | ?:[\\/]*)
32957   ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
32958   ;;
32959   *)
32960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32961 for as_dir in $PATH
32963   IFS=$as_save_IFS
32964   test -z "$as_dir" && as_dir=.
32965   for ac_exec_ext in '' $ac_executable_extensions; do
32966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32967     ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
32968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32969     break 2
32970   fi
32971 done
32972 done
32973 IFS=$as_save_IFS
32975   ;;
32976 esac
32978 TROFF=$ac_cv_path_TROFF
32979 if test -n "$TROFF"; then
32980   { echo "$as_me:$LINENO: result: $TROFF" >&5
32981 echo "${ECHO_T}$TROFF" >&6; }
32982 else
32983   { echo "$as_me:$LINENO: result: no" >&5
32984 echo "${ECHO_T}no" >&6; }
32988   test -n "$TROFF" && break
32989 done
32993 if test -z "$RRDDOCDIR"; then
32994    RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
32998 case $TERM in
32999        #   for the most important terminal types we directly know the sequences
33000        xterm|xterm*|vt220|vt220*)
33001                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
33002                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
33003        ;;
33004        vt100|vt100*|cygwin)
33005                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
33006                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
33007        ;;
33008        *)
33009                T_MD=''
33010                T_ME=''
33011        ;;
33012 esac
33013   { echo "$as_me:$LINENO: result: " >&5
33014 echo "${ECHO_T}" >&6; }
33015   { echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
33016 echo "${ECHO_T}${T_MD}Apply Configuration Information${T_ME}" >&6; }
33019 ac_config_files="$ac_config_files examples/shared-demo.pl"
33021 ac_config_files="$ac_config_files examples/piped-demo.pl"
33023 ac_config_files="$ac_config_files examples/stripes.pl"
33025 ac_config_files="$ac_config_files examples/bigtops.pl"
33027 ac_config_files="$ac_config_files examples/minmax.pl"
33029 ac_config_files="$ac_config_files examples/4charts.pl"
33031 ac_config_files="$ac_config_files examples/perftest.pl"
33033 ac_config_files="$ac_config_files examples/Makefile"
33035 ac_config_files="$ac_config_files doc/Makefile"
33037 ac_config_files="$ac_config_files po/Makefile.in"
33039 ac_config_files="$ac_config_files src/Makefile"
33041 ac_config_files="$ac_config_files src/librrd.sym.in"
33043 ac_config_files="$ac_config_files src/librrd.pc"
33045 ac_config_files="$ac_config_files bindings/Makefile"
33047 ac_config_files="$ac_config_files bindings/tcl/Makefile"
33049 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
33051 ac_config_files="$ac_config_files Makefile"
33054 ac_config_commands="$ac_config_commands default"
33056 cat >confcache <<\_ACEOF
33057 # This file is a shell script that caches the results of configure
33058 # tests run on this system so they can be shared between configure
33059 # scripts and configure runs, see configure's option --config-cache.
33060 # It is not useful on other systems.  If it contains results you don't
33061 # want to keep, you may remove or edit it.
33063 # config.status only pays attention to the cache file if you give it
33064 # the --recheck option to rerun configure.
33066 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33067 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33068 # following values.
33070 _ACEOF
33072 # The following way of writing the cache mishandles newlines in values,
33073 # but we know of no workaround that is simple, portable, and efficient.
33074 # So, we kill variables containing newlines.
33075 # Ultrix sh set writes to stderr and can't be redirected directly,
33076 # and sets the high bit in the cache file unless we assign to the vars.
33078   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33079     eval ac_val=\$$ac_var
33080     case $ac_val in #(
33081     *${as_nl}*)
33082       case $ac_var in #(
33083       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33084 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33085       esac
33086       case $ac_var in #(
33087       _ | IFS | as_nl) ;; #(
33088       *) $as_unset $ac_var ;;
33089       esac ;;
33090     esac
33091   done
33093   (set) 2>&1 |
33094     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33095     *${as_nl}ac_space=\ *)
33096       # `set' does not quote correctly, so add quotes (double-quote
33097       # substitution turns \\\\ into \\, and sed turns \\ into \).
33098       sed -n \
33099         "s/'/'\\\\''/g;
33100           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33101       ;; #(
33102     *)
33103       # `set' quotes correctly as required by POSIX, so do not add quotes.
33104       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33105       ;;
33106     esac |
33107     sort
33108 ) |
33109   sed '
33110      /^ac_cv_env_/b end
33111      t clear
33112      :clear
33113      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33114      t end
33115      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33116      :end' >>confcache
33117 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33118   if test -w "$cache_file"; then
33119     test "x$cache_file" != "x/dev/null" &&
33120       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33121 echo "$as_me: updating cache $cache_file" >&6;}
33122     cat confcache >$cache_file
33123   else
33124     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33125 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33126   fi
33128 rm -f confcache
33130 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33131 # Let make expand exec_prefix.
33132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33134 DEFS=-DHAVE_CONFIG_H
33136 ac_libobjs=
33137 ac_ltlibobjs=
33138 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33139   # 1. Remove the extension, and $U if already installed.
33140   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33141   ac_i=`echo "$ac_i" | sed "$ac_script"`
33142   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33143   #    will be set to the directory where LIBOBJS objects are built.
33144   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33145   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33146 done
33147 LIBOBJS=$ac_libobjs
33149 LTLIBOBJS=$ac_ltlibobjs
33152 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33153   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
33154 Usually this means the macro was only invoked conditionally." >&5
33155 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
33156 Usually this means the macro was only invoked conditionally." >&2;}
33157    { (exit 1); exit 1; }; }
33159 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
33160   { { echo "$as_me:$LINENO: error: conditional \"STATIC_PROGRAMS\" was never defined.
33161 Usually this means the macro was only invoked conditionally." >&5
33162 echo "$as_me: error: conditional \"STATIC_PROGRAMS\" was never defined.
33163 Usually this means the macro was only invoked conditionally." >&2;}
33164    { (exit 1); exit 1; }; }
33166 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33167   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
33168 Usually this means the macro was only invoked conditionally." >&5
33169 echo "$as_me: error: conditional \"AMDEP\" was never defined.
33170 Usually this means the macro was only invoked conditionally." >&2;}
33171    { (exit 1); exit 1; }; }
33173 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33174   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
33175 Usually this means the macro was only invoked conditionally." >&5
33176 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
33177 Usually this means the macro was only invoked conditionally." >&2;}
33178    { (exit 1); exit 1; }; }
33180 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33181   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
33182 Usually this means the macro was only invoked conditionally." >&5
33183 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
33184 Usually this means the macro was only invoked conditionally." >&2;}
33185    { (exit 1); exit 1; }; }
33188   ac_config_commands="$ac_config_commands po/stamp-it"
33191 if test -z "${BUILD_LIBINTL_TRUE}" && test -z "${BUILD_LIBINTL_FALSE}"; then
33192   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBINTL\" was never defined.
33193 Usually this means the macro was only invoked conditionally." >&5
33194 echo "$as_me: error: conditional \"BUILD_LIBINTL\" was never defined.
33195 Usually this means the macro was only invoked conditionally." >&2;}
33196    { (exit 1); exit 1; }; }
33198 if test -z "${BUILD_GETOPT_TRUE}" && test -z "${BUILD_GETOPT_FALSE}"; then
33199   { { echo "$as_me:$LINENO: error: conditional \"BUILD_GETOPT\" was never defined.
33200 Usually this means the macro was only invoked conditionally." >&5
33201 echo "$as_me: error: conditional \"BUILD_GETOPT\" was never defined.
33202 Usually this means the macro was only invoked conditionally." >&2;}
33203    { (exit 1); exit 1; }; }
33205 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
33206   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
33207 Usually this means the macro was only invoked conditionally." >&5
33208 echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
33209 Usually this means the macro was only invoked conditionally." >&2;}
33210    { (exit 1); exit 1; }; }
33212 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
33213   { { echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
33214 Usually this means the macro was only invoked conditionally." >&5
33215 echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
33216 Usually this means the macro was only invoked conditionally." >&2;}
33217    { (exit 1); exit 1; }; }
33219 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
33220   { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
33221 Usually this means the macro was only invoked conditionally." >&5
33222 echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
33223 Usually this means the macro was only invoked conditionally." >&2;}
33224    { (exit 1); exit 1; }; }
33226 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
33227   { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
33228 Usually this means the macro was only invoked conditionally." >&5
33229 echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
33230 Usually this means the macro was only invoked conditionally." >&2;}
33231    { (exit 1); exit 1; }; }
33234 : ${CONFIG_STATUS=./config.status}
33235 ac_clean_files_save=$ac_clean_files
33236 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33237 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33238 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33239 cat >$CONFIG_STATUS <<_ACEOF
33240 #! $SHELL
33241 # Generated by $as_me.
33242 # Run this file to recreate the current configuration.
33243 # Compiler output produced by configure, useful for debugging
33244 # configure, is in config.log if it exists.
33246 debug=false
33247 ac_cs_recheck=false
33248 ac_cs_silent=false
33249 SHELL=\${CONFIG_SHELL-$SHELL}
33250 _ACEOF
33252 cat >>$CONFIG_STATUS <<\_ACEOF
33253 ## --------------------- ##
33254 ## M4sh Initialization.  ##
33255 ## --------------------- ##
33257 # Be more Bourne compatible
33258 DUALCASE=1; export DUALCASE # for MKS sh
33259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33260   emulate sh
33261   NULLCMD=:
33262   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33263   # is contrary to our usage.  Disable this feature.
33264   alias -g '${1+"$@"}'='"$@"'
33265   setopt NO_GLOB_SUBST
33266 else
33267   case `(set -o) 2>/dev/null` in
33268   *posix*) set -o posix ;;
33269 esac
33276 # PATH needs CR
33277 # Avoid depending upon Character Ranges.
33278 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33279 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33280 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33281 as_cr_digits='0123456789'
33282 as_cr_alnum=$as_cr_Letters$as_cr_digits
33284 # The user is always right.
33285 if test "${PATH_SEPARATOR+set}" != set; then
33286   echo "#! /bin/sh" >conf$$.sh
33287   echo  "exit 0"   >>conf$$.sh
33288   chmod +x conf$$.sh
33289   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33290     PATH_SEPARATOR=';'
33291   else
33292     PATH_SEPARATOR=:
33293   fi
33294   rm -f conf$$.sh
33297 # Support unset when possible.
33298 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33299   as_unset=unset
33300 else
33301   as_unset=false
33305 # IFS
33306 # We need space, tab and new line, in precisely that order.  Quoting is
33307 # there to prevent editors from complaining about space-tab.
33308 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33309 # splitting by setting IFS to empty value.)
33310 as_nl='
33312 IFS=" ""        $as_nl"
33314 # Find who we are.  Look in the path if we contain no directory separator.
33315 case $0 in
33316   *[\\/]* ) as_myself=$0 ;;
33317   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33318 for as_dir in $PATH
33320   IFS=$as_save_IFS
33321   test -z "$as_dir" && as_dir=.
33322   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33323 done
33324 IFS=$as_save_IFS
33326      ;;
33327 esac
33328 # We did not find ourselves, most probably we were run as `sh COMMAND'
33329 # in which case we are not to be found in the path.
33330 if test "x$as_myself" = x; then
33331   as_myself=$0
33333 if test ! -f "$as_myself"; then
33334   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33335   { (exit 1); exit 1; }
33338 # Work around bugs in pre-3.0 UWIN ksh.
33339 for as_var in ENV MAIL MAILPATH
33340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33341 done
33342 PS1='$ '
33343 PS2='> '
33344 PS4='+ '
33346 # NLS nuisances.
33347 for as_var in \
33348   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33349   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33350   LC_TELEPHONE LC_TIME
33352   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33353     eval $as_var=C; export $as_var
33354   else
33355     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33356   fi
33357 done
33359 # Required to use basename.
33360 if expr a : '\(a\)' >/dev/null 2>&1 &&
33361    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33362   as_expr=expr
33363 else
33364   as_expr=false
33367 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33368   as_basename=basename
33369 else
33370   as_basename=false
33374 # Name of the executable.
33375 as_me=`$as_basename -- "$0" ||
33376 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33377          X"$0" : 'X\(//\)$' \| \
33378          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33379 echo X/"$0" |
33380     sed '/^.*\/\([^/][^/]*\)\/*$/{
33381             s//\1/
33382             q
33383           }
33384           /^X\/\(\/\/\)$/{
33385             s//\1/
33386             q
33387           }
33388           /^X\/\(\/\).*/{
33389             s//\1/
33390             q
33391           }
33392           s/.*/./; q'`
33394 # CDPATH.
33395 $as_unset CDPATH
33399   as_lineno_1=$LINENO
33400   as_lineno_2=$LINENO
33401   test "x$as_lineno_1" != "x$as_lineno_2" &&
33402   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33404   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33405   # uniformly replaced by the line number.  The first 'sed' inserts a
33406   # line-number line after each line using $LINENO; the second 'sed'
33407   # does the real work.  The second script uses 'N' to pair each
33408   # line-number line with the line containing $LINENO, and appends
33409   # trailing '-' during substitution so that $LINENO is not a special
33410   # case at line end.
33411   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33412   # scripts with optimization help from Paolo Bonzini.  Blame Lee
33413   # E. McMahon (1931-1989) for sed's syntax.  :-)
33414   sed -n '
33415     p
33416     /[$]LINENO/=
33417   ' <$as_myself |
33418     sed '
33419       s/[$]LINENO.*/&-/
33420       t lineno
33421       b
33422       :lineno
33423       N
33424       :loop
33425       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33426       t loop
33427       s/-\n.*//
33428     ' >$as_me.lineno &&
33429   chmod +x "$as_me.lineno" ||
33430     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33431    { (exit 1); exit 1; }; }
33433   # Don't try to exec as it changes $[0], causing all sort of problems
33434   # (the dirname of $[0] is not the place where we might find the
33435   # original and so on.  Autoconf is especially sensitive to this).
33436   . "./$as_me.lineno"
33437   # Exit status is that of the last command.
33438   exit
33442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33443   as_dirname=dirname
33444 else
33445   as_dirname=false
33448 ECHO_C= ECHO_N= ECHO_T=
33449 case `echo -n x` in
33450 -n*)
33451   case `echo 'x\c'` in
33452   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
33453   *)   ECHO_C='\c';;
33454   esac;;
33456   ECHO_N='-n';;
33457 esac
33459 if expr a : '\(a\)' >/dev/null 2>&1 &&
33460    test "X`expr 00001 : '.*\(...\)'`" = X001; then
33461   as_expr=expr
33462 else
33463   as_expr=false
33466 rm -f conf$$ conf$$.exe conf$$.file
33467 if test -d conf$$.dir; then
33468   rm -f conf$$.dir/conf$$.file
33469 else
33470   rm -f conf$$.dir
33471   mkdir conf$$.dir
33473 echo >conf$$.file
33474 if ln -s conf$$.file conf$$ 2>/dev/null; then
33475   as_ln_s='ln -s'
33476   # ... but there are two gotchas:
33477   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33478   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33479   # In both cases, we have to default to `cp -p'.
33480   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33481     as_ln_s='cp -p'
33482 elif ln conf$$.file conf$$ 2>/dev/null; then
33483   as_ln_s=ln
33484 else
33485   as_ln_s='cp -p'
33487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33488 rmdir conf$$.dir 2>/dev/null
33490 if mkdir -p . 2>/dev/null; then
33491   as_mkdir_p=:
33492 else
33493   test -d ./-p && rmdir ./-p
33494   as_mkdir_p=false
33497 if test -x / >/dev/null 2>&1; then
33498   as_test_x='test -x'
33499 else
33500   if ls -dL / >/dev/null 2>&1; then
33501     as_ls_L_option=L
33502   else
33503     as_ls_L_option=
33504   fi
33505   as_test_x='
33506     eval sh -c '\''
33507       if test -d "$1"; then
33508         test -d "$1/.";
33509       else
33510         case $1 in
33511         -*)set "./$1";;
33512         esac;
33513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33514         ???[sx]*):;;*)false;;esac;fi
33515     '\'' sh
33516   '
33518 as_executable_p=$as_test_x
33520 # Sed expression to map a string onto a valid CPP name.
33521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33523 # Sed expression to map a string onto a valid variable name.
33524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33527 exec 6>&1
33529 # Save the log message, to keep $[0] and so on meaningful, and to
33530 # report actual input values of CONFIG_FILES etc. instead of their
33531 # values after options handling.
33532 ac_log="
33533 This file was extended by rrdtool $as_me 1.3.7, which was
33534 generated by GNU Autoconf 2.61.  Invocation command line was
33536   CONFIG_FILES    = $CONFIG_FILES
33537   CONFIG_HEADERS  = $CONFIG_HEADERS
33538   CONFIG_LINKS    = $CONFIG_LINKS
33539   CONFIG_COMMANDS = $CONFIG_COMMANDS
33540   $ $0 $@
33542 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33545 _ACEOF
33547 cat >>$CONFIG_STATUS <<_ACEOF
33548 # Files that config.status was made for.
33549 config_files="$ac_config_files"
33550 config_headers="$ac_config_headers"
33551 config_commands="$ac_config_commands"
33553 _ACEOF
33555 cat >>$CONFIG_STATUS <<\_ACEOF
33556 ac_cs_usage="\
33557 \`$as_me' instantiates files from templates according to the
33558 current configuration.
33560 Usage: $0 [OPTIONS] [FILE]...
33562   -h, --help       print this help, then exit
33563   -V, --version    print version number and configuration settings, then exit
33564   -q, --quiet      do not print progress messages
33565   -d, --debug      don't remove temporary files
33566       --recheck    update $as_me by reconfiguring in the same conditions
33567   --file=FILE[:TEMPLATE]
33568                    instantiate the configuration file FILE
33569   --header=FILE[:TEMPLATE]
33570                    instantiate the configuration header FILE
33572 Configuration files:
33573 $config_files
33575 Configuration headers:
33576 $config_headers
33578 Configuration commands:
33579 $config_commands
33581 Report bugs to <bug-autoconf@gnu.org>."
33583 _ACEOF
33584 cat >>$CONFIG_STATUS <<_ACEOF
33585 ac_cs_version="\\
33586 rrdtool config.status 1.3.7
33587 configured by $0, generated by GNU Autoconf 2.61,
33588   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33590 Copyright (C) 2006 Free Software Foundation, Inc.
33591 This config.status script is free software; the Free Software Foundation
33592 gives unlimited permission to copy, distribute and modify it."
33594 ac_pwd='$ac_pwd'
33595 srcdir='$srcdir'
33596 INSTALL='$INSTALL'
33597 _ACEOF
33599 cat >>$CONFIG_STATUS <<\_ACEOF
33600 # If no file are specified by the user, then we need to provide default
33601 # value.  By we need to know if files were specified by the user.
33602 ac_need_defaults=:
33603 while test $# != 0
33605   case $1 in
33606   --*=*)
33607     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33608     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33609     ac_shift=:
33610     ;;
33611   *)
33612     ac_option=$1
33613     ac_optarg=$2
33614     ac_shift=shift
33615     ;;
33616   esac
33618   case $ac_option in
33619   # Handling of the options.
33620   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33621     ac_cs_recheck=: ;;
33622   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33623     echo "$ac_cs_version"; exit ;;
33624   --debug | --debu | --deb | --de | --d | -d )
33625     debug=: ;;
33626   --file | --fil | --fi | --f )
33627     $ac_shift
33628     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33629     ac_need_defaults=false;;
33630   --header | --heade | --head | --hea )
33631     $ac_shift
33632     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33633     ac_need_defaults=false;;
33634   --he | --h)
33635     # Conflict between --help and --header
33636     { echo "$as_me: error: ambiguous option: $1
33637 Try \`$0 --help' for more information." >&2
33638    { (exit 1); exit 1; }; };;
33639   --help | --hel | -h )
33640     echo "$ac_cs_usage"; exit ;;
33641   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33642   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33643     ac_cs_silent=: ;;
33645   # This is an error.
33646   -*) { echo "$as_me: error: unrecognized option: $1
33647 Try \`$0 --help' for more information." >&2
33648    { (exit 1); exit 1; }; } ;;
33650   *) ac_config_targets="$ac_config_targets $1"
33651      ac_need_defaults=false ;;
33653   esac
33654   shift
33655 done
33657 ac_configure_extra_args=
33659 if $ac_cs_silent; then
33660   exec 6>/dev/null
33661   ac_configure_extra_args="$ac_configure_extra_args --silent"
33664 _ACEOF
33665 cat >>$CONFIG_STATUS <<_ACEOF
33666 if \$ac_cs_recheck; then
33667   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33668   CONFIG_SHELL=$SHELL
33669   export CONFIG_SHELL
33670   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33673 _ACEOF
33674 cat >>$CONFIG_STATUS <<\_ACEOF
33675 exec 5>>config.log
33677   echo
33678   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33679 ## Running $as_me. ##
33680 _ASBOX
33681   echo "$ac_log"
33682 } >&5
33684 _ACEOF
33685 cat >>$CONFIG_STATUS <<_ACEOF
33687 # INIT-COMMANDS
33689 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33691 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
33692 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
33693 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'
33696 _ACEOF
33698 cat >>$CONFIG_STATUS <<\_ACEOF
33700 # Handling of arguments.
33701 for ac_config_target in $ac_config_targets
33703   case $ac_config_target in
33704     "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
33705     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33706     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33707     "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
33708     "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
33709     "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
33710     "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
33711     "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
33712     "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
33713     "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
33714     "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
33715     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
33716     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33717     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33718     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33719     "src/librrd.sym.in") CONFIG_FILES="$CONFIG_FILES src/librrd.sym.in" ;;
33720     "src/librrd.pc") CONFIG_FILES="$CONFIG_FILES src/librrd.pc" ;;
33721     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
33722     "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
33723     "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
33724     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33725     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33726     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
33728   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33729 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33730    { (exit 1); exit 1; }; };;
33731   esac
33732 done
33735 # If the user did not use the arguments to specify the items to instantiate,
33736 # then the envvar interface is used.  Set only those that are not.
33737 # We use the long form for the default assignment because of an extremely
33738 # bizarre bug on SunOS 4.1.3.
33739 if $ac_need_defaults; then
33740   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33741   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33742   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33745 # Have a temporary directory for convenience.  Make it in the build tree
33746 # simply because there is no reason against having it here, and in addition,
33747 # creating and moving files from /tmp can sometimes cause problems.
33748 # Hook for its removal unless debugging.
33749 # Note that there is a small window in which the directory will not be cleaned:
33750 # after its creation but before its name has been assigned to `$tmp'.
33751 $debug ||
33753   tmp=
33754   trap 'exit_status=$?
33755   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33756 ' 0
33757   trap '{ (exit 1); exit 1; }' 1 2 13 15
33759 # Create a (secure) tmp directory for tmp files.
33762   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33763   test -n "$tmp" && test -d "$tmp"
33764 }  ||
33766   tmp=./conf$$-$RANDOM
33767   (umask 077 && mkdir "$tmp")
33768 } ||
33770    echo "$me: cannot create a temporary directory in ." >&2
33771    { (exit 1); exit 1; }
33775 # Set up the sed scripts for CONFIG_FILES section.
33778 # No need to generate the scripts if there are no CONFIG_FILES.
33779 # This happens for instance when ./config.status config.h
33780 if test -n "$CONFIG_FILES"; then
33782 _ACEOF
33786 ac_delim='%!_!# '
33787 for ac_last_try in false false false false false :; do
33788   cat >conf$$subs.sed <<_ACEOF
33789 PERLFLAGS!$PERLFLAGS$ac_delim
33790 SHELL!$SHELL$ac_delim
33791 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33792 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33793 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33794 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33795 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33796 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33797 exec_prefix!$exec_prefix$ac_delim
33798 prefix!$prefix$ac_delim
33799 program_transform_name!$program_transform_name$ac_delim
33800 bindir!$bindir$ac_delim
33801 sbindir!$sbindir$ac_delim
33802 libexecdir!$libexecdir$ac_delim
33803 datarootdir!$datarootdir$ac_delim
33804 datadir!$datadir$ac_delim
33805 sysconfdir!$sysconfdir$ac_delim
33806 sharedstatedir!$sharedstatedir$ac_delim
33807 localstatedir!$localstatedir$ac_delim
33808 includedir!$includedir$ac_delim
33809 oldincludedir!$oldincludedir$ac_delim
33810 docdir!$docdir$ac_delim
33811 infodir!$infodir$ac_delim
33812 htmldir!$htmldir$ac_delim
33813 dvidir!$dvidir$ac_delim
33814 pdfdir!$pdfdir$ac_delim
33815 psdir!$psdir$ac_delim
33816 libdir!$libdir$ac_delim
33817 localedir!$localedir$ac_delim
33818 mandir!$mandir$ac_delim
33819 DEFS!$DEFS$ac_delim
33820 ECHO_C!$ECHO_C$ac_delim
33821 ECHO_N!$ECHO_N$ac_delim
33822 ECHO_T!$ECHO_T$ac_delim
33823 LIBS!$LIBS$ac_delim
33824 build_alias!$build_alias$ac_delim
33825 host_alias!$host_alias$ac_delim
33826 target_alias!$target_alias$ac_delim
33827 NUMVERS!$NUMVERS$ac_delim
33828 LIBVERS!$LIBVERS$ac_delim
33829 build!$build$ac_delim
33830 build_cpu!$build_cpu$ac_delim
33831 build_vendor!$build_vendor$ac_delim
33832 build_os!$build_os$ac_delim
33833 host!$host$ac_delim
33834 host_cpu!$host_cpu$ac_delim
33835 host_vendor!$host_vendor$ac_delim
33836 host_os!$host_os$ac_delim
33837 target!$target$ac_delim
33838 target_cpu!$target_cpu$ac_delim
33839 target_vendor!$target_vendor$ac_delim
33840 target_os!$target_os$ac_delim
33841 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33842 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33843 INSTALL_DATA!$INSTALL_DATA$ac_delim
33844 CYGPATH_W!$CYGPATH_W$ac_delim
33845 PACKAGE!$PACKAGE$ac_delim
33846 VERSION!$VERSION$ac_delim
33847 ACLOCAL!$ACLOCAL$ac_delim
33848 AUTOCONF!$AUTOCONF$ac_delim
33849 AUTOMAKE!$AUTOMAKE$ac_delim
33850 AUTOHEADER!$AUTOHEADER$ac_delim
33851 MAKEINFO!$MAKEINFO$ac_delim
33852 install_sh!$install_sh$ac_delim
33853 STRIP!$STRIP$ac_delim
33854 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
33855 mkdir_p!$mkdir_p$ac_delim
33856 AWK!$AWK$ac_delim
33857 SET_MAKE!$SET_MAKE$ac_delim
33858 am__leading_dot!$am__leading_dot$ac_delim
33859 AMTAR!$AMTAR$ac_delim
33860 am__tar!$am__tar$ac_delim
33861 am__untar!$am__untar$ac_delim
33862 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
33863 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
33864 MAINT!$MAINT$ac_delim
33865 RRDGRAPH_YLEGEND_ANGLE!$RRDGRAPH_YLEGEND_ANGLE$ac_delim
33866 STATIC_PROGRAMS_TRUE!$STATIC_PROGRAMS_TRUE$ac_delim
33867 STATIC_PROGRAMS_FALSE!$STATIC_PROGRAMS_FALSE$ac_delim
33868 CC!$CC$ac_delim
33869 CFLAGS!$CFLAGS$ac_delim
33870 LDFLAGS!$LDFLAGS$ac_delim
33871 CPPFLAGS!$CPPFLAGS$ac_delim
33872 ac_ct_CC!$ac_ct_CC$ac_delim
33873 EXEEXT!$EXEEXT$ac_delim
33874 OBJEXT!$OBJEXT$ac_delim
33875 DEPDIR!$DEPDIR$ac_delim
33876 am__include!$am__include$ac_delim
33877 am__quote!$am__quote$ac_delim
33878 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
33879 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
33880 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
33881 CCDEPMODE!$CCDEPMODE$ac_delim
33882 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
33883 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
33884 CPP!$CPP$ac_delim
33885 SED!$SED$ac_delim
33886 _ACEOF
33888   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33889     break
33890   elif $ac_last_try; then
33891     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33892 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33893    { (exit 1); exit 1; }; }
33894   else
33895     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33896   fi
33897 done
33899 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33900 if test -n "$ac_eof"; then
33901   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33902   ac_eof=`expr $ac_eof + 1`
33905 cat >>$CONFIG_STATUS <<_ACEOF
33906 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33908 _ACEOF
33909 sed '
33910 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33911 s/^/s,@/; s/!/@,|#_!!_#|/
33913 t n
33914 s/'"$ac_delim"'$/,g/; t
33915 s/$/\\/; p
33916 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33917 ' >>$CONFIG_STATUS <conf$$subs.sed
33918 rm -f conf$$subs.sed
33919 cat >>$CONFIG_STATUS <<_ACEOF
33920 CEOF$ac_eof
33921 _ACEOF
33924 ac_delim='%!_!# '
33925 for ac_last_try in false false false false false :; do
33926   cat >conf$$subs.sed <<_ACEOF
33927 GREP!$GREP$ac_delim
33928 EGREP!$EGREP$ac_delim
33929 LN_S!$LN_S$ac_delim
33930 ECHO!$ECHO$ac_delim
33931 AR!$AR$ac_delim
33932 RANLIB!$RANLIB$ac_delim
33933 DSYMUTIL!$DSYMUTIL$ac_delim
33934 NMEDIT!$NMEDIT$ac_delim
33935 CXX!$CXX$ac_delim
33936 CXXFLAGS!$CXXFLAGS$ac_delim
33937 ac_ct_CXX!$ac_ct_CXX$ac_delim
33938 CXXDEPMODE!$CXXDEPMODE$ac_delim
33939 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
33940 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
33941 CXXCPP!$CXXCPP$ac_delim
33942 F77!$F77$ac_delim
33943 FFLAGS!$FFLAGS$ac_delim
33944 ac_ct_F77!$ac_ct_F77$ac_delim
33945 LIBTOOL!$LIBTOOL$ac_delim
33946 RRD_DEFAULT_FONT!$RRD_DEFAULT_FONT$ac_delim
33947 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
33948 USE_NLS!$USE_NLS$ac_delim
33949 MSGFMT!$MSGFMT$ac_delim
33950 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
33951 GMSGFMT!$GMSGFMT$ac_delim
33952 XGETTEXT!$XGETTEXT$ac_delim
33953 CATALOGS!$CATALOGS$ac_delim
33954 CATOBJEXT!$CATOBJEXT$ac_delim
33955 DATADIRNAME!$DATADIRNAME$ac_delim
33956 GMOFILES!$GMOFILES$ac_delim
33957 INSTOBJEXT!$INSTOBJEXT$ac_delim
33958 INTLLIBS!$INTLLIBS$ac_delim
33959 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
33960 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
33961 POFILES!$POFILES$ac_delim
33962 POSUB!$POSUB$ac_delim
33963 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
33964 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
33965 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
33966 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
33967 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
33968 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
33969 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
33970 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
33971 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
33972 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
33973 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
33974 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
33975 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
33976 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
33977 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
33978 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
33979 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
33980 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
33981 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
33982 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
33983 MSGMERGE!$MSGMERGE$ac_delim
33984 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
33985 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
33986 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
33987 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
33988 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
33989 LIB_LIBINTL!$LIB_LIBINTL$ac_delim
33990 BUILD_LIBINTL_TRUE!$BUILD_LIBINTL_TRUE$ac_delim
33991 BUILD_LIBINTL_FALSE!$BUILD_LIBINTL_FALSE$ac_delim
33992 RRD_GETOPT_LONG!$RRD_GETOPT_LONG$ac_delim
33993 BUILD_GETOPT_TRUE!$BUILD_GETOPT_TRUE$ac_delim
33994 BUILD_GETOPT_FALSE!$BUILD_GETOPT_FALSE$ac_delim
33995 MULTITHREAD_CFLAGS!$MULTITHREAD_CFLAGS$ac_delim
33996 MULTITHREAD_LDFLAGS!$MULTITHREAD_LDFLAGS$ac_delim
33997 acx_pthread_config!$acx_pthread_config$ac_delim
33998 PTHREAD_CC!$PTHREAD_CC$ac_delim
33999 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
34000 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
34001 BUILD_MULTITHREAD_TRUE!$BUILD_MULTITHREAD_TRUE$ac_delim
34002 BUILD_MULTITHREAD_FALSE!$BUILD_MULTITHREAD_FALSE$ac_delim
34003 BUILD_RRDCGI_TRUE!$BUILD_RRDCGI_TRUE$ac_delim
34004 BUILD_RRDCGI_FALSE!$BUILD_RRDCGI_FALSE$ac_delim
34005 PKGCONFIG!$PKGCONFIG$ac_delim
34006 CORE_LIBS!$CORE_LIBS$ac_delim
34007 ALL_LIBS!$ALL_LIBS$ac_delim
34008 PERL!$PERL$ac_delim
34009 POD2MAN!$POD2MAN$ac_delim
34010 POD2HTML!$POD2HTML$ac_delim
34011 PERLCC!$PERLCC$ac_delim
34012 PERLCCFLAGS!$PERLCCFLAGS$ac_delim
34013 PERLLD!$PERLLD$ac_delim
34014 PERLLDFLAGS!$PERLLDFLAGS$ac_delim
34015 PERL_CC!$PERL_CC$ac_delim
34016 PERL_MAKE_OPTIONS!$PERL_MAKE_OPTIONS$ac_delim
34017 COMP_PERL!$COMP_PERL$ac_delim
34018 PERL_VERSION!$PERL_VERSION$ac_delim
34019 RUBY!$RUBY$ac_delim
34020 RUBY_MAKE_OPTIONS!$RUBY_MAKE_OPTIONS$ac_delim
34021 COMP_RUBY!$COMP_RUBY$ac_delim
34022 BUILD_TCL_TRUE!$BUILD_TCL_TRUE$ac_delim
34023 BUILD_TCL_FALSE!$BUILD_TCL_FALSE$ac_delim
34024 _ACEOF
34026   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34027     break
34028   elif $ac_last_try; then
34029     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34030 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34031    { (exit 1); exit 1; }; }
34032   else
34033     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34034   fi
34035 done
34037 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34038 if test -n "$ac_eof"; then
34039   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34040   ac_eof=`expr $ac_eof + 1`
34043 cat >>$CONFIG_STATUS <<_ACEOF
34044 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34046 _ACEOF
34047 sed '
34048 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34049 s/^/s,@/; s/!/@,|#_!!_#|/
34051 t n
34052 s/'"$ac_delim"'$/,g/; t
34053 s/$/\\/; p
34054 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34055 ' >>$CONFIG_STATUS <conf$$subs.sed
34056 rm -f conf$$subs.sed
34057 cat >>$CONFIG_STATUS <<_ACEOF
34058 CEOF$ac_eof
34059 _ACEOF
34062 ac_delim='%!_!# '
34063 for ac_last_try in false false false false false :; do
34064   cat >conf$$subs.sed <<_ACEOF
34065 BUILD_TCL_SITE_TRUE!$BUILD_TCL_SITE_TRUE$ac_delim
34066 BUILD_TCL_SITE_FALSE!$BUILD_TCL_SITE_FALSE$ac_delim
34067 TCL_PREFIX!$TCL_PREFIX$ac_delim
34068 TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
34069 TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
34070 TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
34071 TCL_PACKAGE_PATH!$TCL_PACKAGE_PATH$ac_delim
34072 TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
34073 TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
34074 TCL_VERSION!$TCL_VERSION$ac_delim
34075 TCL_PACKAGE_DIR!$TCL_PACKAGE_DIR$ac_delim
34076 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
34077 PYTHON!$PYTHON$ac_delim
34078 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
34079 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
34080 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
34081 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
34082 pythondir!$pythondir$ac_delim
34083 pkgpythondir!$pkgpythondir$ac_delim
34084 pyexecdir!$pyexecdir$ac_delim
34085 pkgpyexecdir!$pkgpyexecdir$ac_delim
34086 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
34087 COMP_PYTHON!$COMP_PYTHON$ac_delim
34088 NROFF!$NROFF$ac_delim
34089 TROFF!$TROFF$ac_delim
34090 RRDDOCDIR!$RRDDOCDIR$ac_delim
34091 LIBOBJS!$LIBOBJS$ac_delim
34092 LTLIBOBJS!$LTLIBOBJS$ac_delim
34093 _ACEOF
34095   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
34096     break
34097   elif $ac_last_try; then
34098     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34099 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34100    { (exit 1); exit 1; }; }
34101   else
34102     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34103   fi
34104 done
34106 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34107 if test -n "$ac_eof"; then
34108   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34109   ac_eof=`expr $ac_eof + 1`
34112 cat >>$CONFIG_STATUS <<_ACEOF
34113 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34114 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34115 _ACEOF
34116 sed '
34117 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34118 s/^/s,@/; s/!/@,|#_!!_#|/
34120 t n
34121 s/'"$ac_delim"'$/,g/; t
34122 s/$/\\/; p
34123 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34124 ' >>$CONFIG_STATUS <conf$$subs.sed
34125 rm -f conf$$subs.sed
34126 cat >>$CONFIG_STATUS <<_ACEOF
34127 :end
34128 s/|#_!!_#|//g
34129 CEOF$ac_eof
34130 _ACEOF
34133 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34134 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34135 # trailing colons and then remove the whole line if VPATH becomes empty
34136 # (actually we leave an empty line to preserve line numbers).
34137 if test "x$srcdir" = x.; then
34138   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34139 s/:*\$(srcdir):*/:/
34140 s/:*\${srcdir}:*/:/
34141 s/:*@srcdir@:*/:/
34142 s/^\([^=]*=[     ]*\):*/\1/
34143 s/:*$//
34144 s/^[^=]*=[       ]*$//
34148 cat >>$CONFIG_STATUS <<\_ACEOF
34149 fi # test -n "$CONFIG_FILES"
34152 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34154   case $ac_tag in
34155   :[FHLC]) ac_mode=$ac_tag; continue;;
34156   esac
34157   case $ac_mode$ac_tag in
34158   :[FHL]*:*);;
34159   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34160 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34161    { (exit 1); exit 1; }; };;
34162   :[FH]-) ac_tag=-:-;;
34163   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34164   esac
34165   ac_save_IFS=$IFS
34166   IFS=:
34167   set x $ac_tag
34168   IFS=$ac_save_IFS
34169   shift
34170   ac_file=$1
34171   shift
34173   case $ac_mode in
34174   :L) ac_source=$1;;
34175   :[FH])
34176     ac_file_inputs=
34177     for ac_f
34178     do
34179       case $ac_f in
34180       -) ac_f="$tmp/stdin";;
34181       *) # Look for the file first in the build tree, then in the source tree
34182          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34183          # because $ac_f cannot contain `:'.
34184          test -f "$ac_f" ||
34185            case $ac_f in
34186            [\\/$]*) false;;
34187            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34188            esac ||
34189            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34190 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34191    { (exit 1); exit 1; }; };;
34192       esac
34193       ac_file_inputs="$ac_file_inputs $ac_f"
34194     done
34196     # Let's still pretend it is `configure' which instantiates (i.e., don't
34197     # use $as_me), people would be surprised to read:
34198     #    /* config.h.  Generated by config.status.  */
34199     configure_input="Generated from "`IFS=:
34200           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34201     if test x"$ac_file" != x-; then
34202       configure_input="$ac_file.  $configure_input"
34203       { echo "$as_me:$LINENO: creating $ac_file" >&5
34204 echo "$as_me: creating $ac_file" >&6;}
34205     fi
34207     case $ac_tag in
34208     *:-:* | *:-) cat >"$tmp/stdin";;
34209     esac
34210     ;;
34211   esac
34213   ac_dir=`$as_dirname -- "$ac_file" ||
34214 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34215          X"$ac_file" : 'X\(//\)[^/]' \| \
34216          X"$ac_file" : 'X\(//\)$' \| \
34217          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34218 echo X"$ac_file" |
34219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34220             s//\1/
34221             q
34222           }
34223           /^X\(\/\/\)[^/].*/{
34224             s//\1/
34225             q
34226           }
34227           /^X\(\/\/\)$/{
34228             s//\1/
34229             q
34230           }
34231           /^X\(\/\).*/{
34232             s//\1/
34233             q
34234           }
34235           s/.*/./; q'`
34236   { as_dir="$ac_dir"
34237   case $as_dir in #(
34238   -*) as_dir=./$as_dir;;
34239   esac
34240   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34241     as_dirs=
34242     while :; do
34243       case $as_dir in #(
34244       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34245       *) as_qdir=$as_dir;;
34246       esac
34247       as_dirs="'$as_qdir' $as_dirs"
34248       as_dir=`$as_dirname -- "$as_dir" ||
34249 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34250          X"$as_dir" : 'X\(//\)[^/]' \| \
34251          X"$as_dir" : 'X\(//\)$' \| \
34252          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34253 echo X"$as_dir" |
34254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34255             s//\1/
34256             q
34257           }
34258           /^X\(\/\/\)[^/].*/{
34259             s//\1/
34260             q
34261           }
34262           /^X\(\/\/\)$/{
34263             s//\1/
34264             q
34265           }
34266           /^X\(\/\).*/{
34267             s//\1/
34268             q
34269           }
34270           s/.*/./; q'`
34271       test -d "$as_dir" && break
34272     done
34273     test -z "$as_dirs" || eval "mkdir $as_dirs"
34274   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34275 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34276    { (exit 1); exit 1; }; }; }
34277   ac_builddir=.
34279 case "$ac_dir" in
34280 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34282   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34283   # A ".." for each directory in $ac_dir_suffix.
34284   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34285   case $ac_top_builddir_sub in
34286   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34287   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34288   esac ;;
34289 esac
34290 ac_abs_top_builddir=$ac_pwd
34291 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34292 # for backward compatibility:
34293 ac_top_builddir=$ac_top_build_prefix
34295 case $srcdir in
34296   .)  # We are building in place.
34297     ac_srcdir=.
34298     ac_top_srcdir=$ac_top_builddir_sub
34299     ac_abs_top_srcdir=$ac_pwd ;;
34300   [\\/]* | ?:[\\/]* )  # Absolute name.
34301     ac_srcdir=$srcdir$ac_dir_suffix;
34302     ac_top_srcdir=$srcdir
34303     ac_abs_top_srcdir=$srcdir ;;
34304   *) # Relative name.
34305     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34306     ac_top_srcdir=$ac_top_build_prefix$srcdir
34307     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34308 esac
34309 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34312   case $ac_mode in
34313   :F)
34314   #
34315   # CONFIG_FILE
34316   #
34318   case $INSTALL in
34319   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34320   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34321   esac
34322 _ACEOF
34324 cat >>$CONFIG_STATUS <<\_ACEOF
34325 # If the template does not know about datarootdir, expand it.
34326 # FIXME: This hack should be removed a few years after 2.60.
34327 ac_datarootdir_hack=; ac_datarootdir_seen=
34329 case `sed -n '/datarootdir/ {
34330   p
34331   q
34333 /@datadir@/p
34334 /@docdir@/p
34335 /@infodir@/p
34336 /@localedir@/p
34337 /@mandir@/p
34338 ' $ac_file_inputs` in
34339 *datarootdir*) ac_datarootdir_seen=yes;;
34340 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34341   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34342 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34343 _ACEOF
34344 cat >>$CONFIG_STATUS <<_ACEOF
34345   ac_datarootdir_hack='
34346   s&@datadir@&$datadir&g
34347   s&@docdir@&$docdir&g
34348   s&@infodir@&$infodir&g
34349   s&@localedir@&$localedir&g
34350   s&@mandir@&$mandir&g
34351     s&\\\${datarootdir}&$datarootdir&g' ;;
34352 esac
34353 _ACEOF
34355 # Neutralize VPATH when `$srcdir' = `.'.
34356 # Shell code in configure.ac might set extrasub.
34357 # FIXME: do we really want to maintain this feature?
34358 cat >>$CONFIG_STATUS <<_ACEOF
34359   sed "$ac_vpsub
34360 $extrasub
34361 _ACEOF
34362 cat >>$CONFIG_STATUS <<\_ACEOF
34364 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34365 s&@configure_input@&$configure_input&;t t
34366 s&@top_builddir@&$ac_top_builddir_sub&;t t
34367 s&@srcdir@&$ac_srcdir&;t t
34368 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34369 s&@top_srcdir@&$ac_top_srcdir&;t t
34370 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34371 s&@builddir@&$ac_builddir&;t t
34372 s&@abs_builddir@&$ac_abs_builddir&;t t
34373 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34374 s&@INSTALL@&$ac_INSTALL&;t t
34375 $ac_datarootdir_hack
34376 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
34378 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34379   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34380   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34381   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34382 which seems to be undefined.  Please make sure it is defined." >&5
34383 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34384 which seems to be undefined.  Please make sure it is defined." >&2;}
34386   rm -f "$tmp/stdin"
34387   case $ac_file in
34388   -) cat "$tmp/out"; rm -f "$tmp/out";;
34389   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34390   esac
34391  ;;
34392   :H)
34393   #
34394   # CONFIG_HEADER
34395   #
34396 _ACEOF
34398 # Transform confdefs.h into a sed script `conftest.defines', that
34399 # substitutes the proper values into config.h.in to produce config.h.
34400 rm -f conftest.defines conftest.tail
34401 # First, append a space to every undef/define line, to ease matching.
34402 echo 's/$/ /' >conftest.defines
34403 # Then, protect against being on the right side of a sed subst, or in
34404 # an unquoted here document, in config.status.  If some macros were
34405 # called several times there might be several #defines for the same
34406 # symbol, which is useless.  But do not sort them, since the last
34407 # AC_DEFINE must be honored.
34408 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34409 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34410 # NAME is the cpp macro being defined, VALUE is the value it is being given.
34411 # PARAMS is the parameter list in the macro definition--in most cases, it's
34412 # just an empty string.
34413 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
34414 ac_dB='\\)[      (].*,\\1define\\2'
34415 ac_dC=' '
34416 ac_dD=' ,'
34418 uniq confdefs.h |
34419   sed -n '
34420         t rset
34421         :rset
34422         s/^[     ]*#[    ]*define[       ][      ]*//
34423         t ok
34424         d
34425         :ok
34426         s/[\\&,]/\\&/g
34427         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34428         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34429   ' >>conftest.defines
34431 # Remove the space that was appended to ease matching.
34432 # Then replace #undef with comments.  This is necessary, for
34433 # example, in the case of _POSIX_SOURCE, which is predefined and required
34434 # on some systems where configure will not decide to define it.
34435 # (The regexp can be short, since the line contains either #define or #undef.)
34436 echo 's/ $//
34437 s,^[     #]*u.*,/* & */,' >>conftest.defines
34439 # Break up conftest.defines:
34440 ac_max_sed_lines=50
34442 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34443 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34444 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34445 # et cetera.
34446 ac_in='$ac_file_inputs'
34447 ac_out='"$tmp/out1"'
34448 ac_nxt='"$tmp/out2"'
34450 while :
34452   # Write a here document:
34453     cat >>$CONFIG_STATUS <<_ACEOF
34454     # First, check the format of the line:
34455     cat >"\$tmp/defines.sed" <<\\CEOF
34456 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
34457 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
34459 :def
34460 _ACEOF
34461   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
34462   echo 'CEOF
34463     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34464   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34465   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34466   grep . conftest.tail >/dev/null || break
34467   rm -f conftest.defines
34468   mv conftest.tail conftest.defines
34469 done
34470 rm -f conftest.defines conftest.tail
34472 echo "ac_result=$ac_in" >>$CONFIG_STATUS
34473 cat >>$CONFIG_STATUS <<\_ACEOF
34474   if test x"$ac_file" != x-; then
34475     echo "/* $configure_input  */" >"$tmp/config.h"
34476     cat "$ac_result" >>"$tmp/config.h"
34477     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
34478       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34479 echo "$as_me: $ac_file is unchanged" >&6;}
34480     else
34481       rm -f $ac_file
34482       mv "$tmp/config.h" $ac_file
34483     fi
34484   else
34485     echo "/* $configure_input  */"
34486     cat "$ac_result"
34487   fi
34488   rm -f "$tmp/out12"
34489 # Compute $ac_file's index in $config_headers.
34490 _am_stamp_count=1
34491 for _am_header in $config_headers :; do
34492   case $_am_header in
34493     $ac_file | $ac_file:* )
34494       break ;;
34495     * )
34496       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34497   esac
34498 done
34499 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
34500 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34501          X$ac_file : 'X\(//\)[^/]' \| \
34502          X$ac_file : 'X\(//\)$' \| \
34503          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
34504 echo X$ac_file |
34505     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34506             s//\1/
34507             q
34508           }
34509           /^X\(\/\/\)[^/].*/{
34510             s//\1/
34511             q
34512           }
34513           /^X\(\/\/\)$/{
34514             s//\1/
34515             q
34516           }
34517           /^X\(\/\).*/{
34518             s//\1/
34519             q
34520           }
34521           s/.*/./; q'`/stamp-h$_am_stamp_count
34522  ;;
34524   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34525 echo "$as_me: executing $ac_file commands" >&6;}
34526  ;;
34527   esac
34530   case $ac_file$ac_mode in
34531     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
34532   # Strip MF so we end up with the name of the file.
34533   mf=`echo "$mf" | sed -e 's/:.*$//'`
34534   # Check whether this is an Automake generated Makefile or not.
34535   # We used to match only the files named `Makefile.in', but
34536   # some people rename them; so instead we look at the file content.
34537   # Grep'ing the first line is not enough: some people post-process
34538   # each Makefile.in and add a new line on top of each file to say so.
34539   # So let's grep whole file.
34540   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
34541     dirpart=`$as_dirname -- "$mf" ||
34542 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34543          X"$mf" : 'X\(//\)[^/]' \| \
34544          X"$mf" : 'X\(//\)$' \| \
34545          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34546 echo X"$mf" |
34547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34548             s//\1/
34549             q
34550           }
34551           /^X\(\/\/\)[^/].*/{
34552             s//\1/
34553             q
34554           }
34555           /^X\(\/\/\)$/{
34556             s//\1/
34557             q
34558           }
34559           /^X\(\/\).*/{
34560             s//\1/
34561             q
34562           }
34563           s/.*/./; q'`
34564   else
34565     continue
34566   fi
34567   # Extract the definition of DEPDIR, am__include, and am__quote
34568   # from the Makefile without running `make'.
34569   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34570   test -z "$DEPDIR" && continue
34571   am__include=`sed -n 's/^am__include = //p' < "$mf"`
34572   test -z "am__include" && continue
34573   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34574   # When using ansi2knr, U may be empty or an underscore; expand it
34575   U=`sed -n 's/^U = //p' < "$mf"`
34576   # Find all dependency output files, they are included files with
34577   # $(DEPDIR) in their names.  We invoke sed twice because it is the
34578   # simplest approach to changing $(DEPDIR) to its actual value in the
34579   # expansion.
34580   for file in `sed -n "
34581     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34582        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34583     # Make sure the directory exists.
34584     test -f "$dirpart/$file" && continue
34585     fdir=`$as_dirname -- "$file" ||
34586 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34587          X"$file" : 'X\(//\)[^/]' \| \
34588          X"$file" : 'X\(//\)$' \| \
34589          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34590 echo X"$file" |
34591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34592             s//\1/
34593             q
34594           }
34595           /^X\(\/\/\)[^/].*/{
34596             s//\1/
34597             q
34598           }
34599           /^X\(\/\/\)$/{
34600             s//\1/
34601             q
34602           }
34603           /^X\(\/\).*/{
34604             s//\1/
34605             q
34606           }
34607           s/.*/./; q'`
34608     { as_dir=$dirpart/$fdir
34609   case $as_dir in #(
34610   -*) as_dir=./$as_dir;;
34611   esac
34612   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34613     as_dirs=
34614     while :; do
34615       case $as_dir in #(
34616       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34617       *) as_qdir=$as_dir;;
34618       esac
34619       as_dirs="'$as_qdir' $as_dirs"
34620       as_dir=`$as_dirname -- "$as_dir" ||
34621 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34622          X"$as_dir" : 'X\(//\)[^/]' \| \
34623          X"$as_dir" : 'X\(//\)$' \| \
34624          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34625 echo X"$as_dir" |
34626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34627             s//\1/
34628             q
34629           }
34630           /^X\(\/\/\)[^/].*/{
34631             s//\1/
34632             q
34633           }
34634           /^X\(\/\/\)$/{
34635             s//\1/
34636             q
34637           }
34638           /^X\(\/\).*/{
34639             s//\1/
34640             q
34641           }
34642           s/.*/./; q'`
34643       test -d "$as_dir" && break
34644     done
34645     test -z "$as_dirs" || eval "mkdir $as_dirs"
34646   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34647 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34648    { (exit 1); exit 1; }; }; }
34649     # echo "creating $dirpart/$file"
34650     echo '# dummy' > "$dirpart/$file"
34651   done
34652 done
34653  ;;
34654     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
34655         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
34656       esac ;;
34657     "intltool":C)
34659 for file in intltool-extract intltool-merge intltool-update; do
34660   sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
34661       -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
34662       -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
34663         < ${ac_aux_dir}/${file}.in > ${file}.out
34664   if cmp -s ${file} ${file}.out 2>/dev/null; then
34665     rm -f ${file}.out
34666   else
34667     mv -f ${file}.out ${file}
34668   fi
34669   chmod ugo+x ${file}
34670   chmod u+w ${file}
34671 done
34673  ;;
34674     "default":C)  chmod +x examples/*.pl ;;
34675     "po/stamp-it":C)
34676     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
34677     >"po/stamp-it.tmp"
34678     sed '/^#/d
34679          s/^[[].*] *//
34680          /^[    ]*$/d
34681         '"s|^|  $ac_top_srcdir/|" \
34682       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
34684     if test ! -f "po/Makefile"; then
34685       { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
34686 echo "$as_me: error: po/Makefile is not ready." >&2;}
34687    { (exit 1); exit 1; }; }
34688     fi
34689     mv "po/Makefile" "po/Makefile.tmp"
34690     sed '/^POTFILES =/,/[^\\]$/ {
34691                 /^POTFILES =/!d
34692                 r po/POTFILES
34693           }
34694          ' "po/Makefile.tmp" >"po/Makefile"
34695     rm -f "po/Makefile.tmp"
34696     mv "po/stamp-it.tmp" "po/stamp-it"
34697    ;;
34699   esac
34700 done # for ac_tag
34703 { (exit 0); exit 0; }
34704 _ACEOF
34705 chmod +x $CONFIG_STATUS
34706 ac_clean_files=$ac_clean_files_save
34709 # configure is writing to config.log, and then calls config.status.
34710 # config.status does its own redirection, appending to config.log.
34711 # Unfortunately, on DOS this fails, as config.log is still kept open
34712 # by configure, so config.status won't be able to write to it; its
34713 # output is simply discarded.  So we exec the FD to /dev/null,
34714 # effectively closing config.log, so it can be properly (re)opened and
34715 # appended to by config.status.  When coming back to configure, we
34716 # need to make the FD available again.
34717 if test "$no_create" != yes; then
34718   ac_cs_success=:
34719   ac_config_status_args=
34720   test "$silent" = yes &&
34721     ac_config_status_args="$ac_config_status_args --quiet"
34722   exec 5>/dev/null
34723   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34724   exec 5>>config.log
34725   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34726   # would make configure fail if this is the last instruction.
34727   $ac_cs_success || { (exit 1); exit 1; }
34731 { echo "$as_me:$LINENO: checking in" >&5
34732 echo $ECHO_N "checking in... $ECHO_C" >&6; }
34733 { echo "$as_me:$LINENO: result: and out again" >&5
34734 echo "${ECHO_T}and out again" >&6; }
34736 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
34737 sleep 1
34738 echo $ECHO_N ".$ECHO_C" 1>&6
34739 sleep 1
34740 echo $ECHO_N ".$ECHO_C" 1>&6
34741 sleep 1
34742 echo $ECHO_N ".$ECHO_C" 1>&6
34743 sleep 1
34744 echo $ECHO_N ".$ECHO_C" 1>&6
34745 sleep 1
34746 { echo "$as_me:$LINENO: result:  just kidding ;-)" >&5
34747 echo "${ECHO_T} just kidding ;-)" >&6; }
34748 echo
34749 echo "----------------------------------------------------------------"
34750 echo "Config is DONE!"
34751 echo
34752 echo "          With MMAP IO: $enable_mmap"
34753 echo "      Build rrd_getopt: $build_getopt"
34754 echo "       Static programs: $staticprogs"
34755 echo "          Perl Modules: $COMP_PERL"
34756 echo "           Perl Binary: $PERL"
34757 echo "          Perl Version: $PERL_VERSION"
34758 echo "          Perl Options: $PERL_MAKE_OPTIONS"
34759 echo "          Ruby Modules: $COMP_RUBY"
34760 echo "           Ruby Binary: $RUBY"
34761 echo "          Ruby Options: $RUBY_MAKE_OPTIONS"
34762 echo "    Build Tcl Bindings: $enable_tcl"
34763 echo " Build Python Bindings: $enable_python"
34764 echo "          Build rrdcgi: $enable_rrdcgi"
34765 echo "       Build librrd MT: $enable_pthread"
34766 echo "     Link with libintl: $enable_libintl"
34767 echo
34768 echo "             Libraries: $ALL_LIBS"
34769 echo
34770 echo "Type 'make' to compile the software and use 'make install' to "
34771 echo "install everything to: $prefix."
34772 echo
34773 echo "       ... that wishlist is NO JOKE. If you find RRDtool useful"
34774 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
34775 echo "place an order."
34776 echo
34777 echo "                               -- Tobi Oetiker <tobi@oetiker.ch>"
34778 echo "----------------------------------------------------------------"