Code

Merge branch 'upstream-1.3' into experimental
[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.1.
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.1'
730 PACKAGE_STRING='rrdtool 1.3.1'
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 MULTITHREAD_CFLAGS
933 MULTITHREAD_LDFLAGS
934 acx_pthread_config
935 PTHREAD_CC
936 PTHREAD_LIBS
937 PTHREAD_CFLAGS
938 BUILD_MULTITHREAD_TRUE
939 BUILD_MULTITHREAD_FALSE
940 BUILD_RRDCGI_TRUE
941 BUILD_RRDCGI_FALSE
942 PKGCONFIG
943 CORE_LIBS
944 ALL_LIBS
945 PERL
946 POD2MAN
947 POD2HTML
948 PERLCC
949 PERLCCFLAGS
950 PERLLD
951 PERLLDFLAGS
952 PERL_CC
953 PERL_MAKE_OPTIONS
954 COMP_PERL
955 PERL_VERSION
956 RUBY
957 RUBY_MAKE_OPTIONS
958 COMP_RUBY
959 BUILD_TCL_TRUE
960 BUILD_TCL_FALSE
961 BUILD_TCL_SITE_TRUE
962 BUILD_TCL_SITE_FALSE
963 TCL_PREFIX
964 TCL_SHLIB_CFLAGS
965 TCL_SHLIB_LD
966 TCL_SHLIB_SUFFIX
967 TCL_PACKAGE_PATH
968 TCL_LD_SEARCH_FLAGS
969 TCL_STUB_LIB_SPEC
970 TCL_VERSION
971 TCL_PACKAGE_DIR
972 TCL_INCLUDE_SPEC
973 PYTHON
974 PYTHON_VERSION
975 PYTHON_PREFIX
976 PYTHON_EXEC_PREFIX
977 PYTHON_PLATFORM
978 pythondir
979 pkgpythondir
980 pyexecdir
981 pkgpyexecdir
982 PYTHON_INCLUDES
983 COMP_PYTHON
984 NROFF
985 TROFF
986 RRDDOCDIR
987 LIBOBJS
988 LTLIBOBJS'
989 ac_subst_files=''
990       ac_precious_vars='build_alias
991 host_alias
992 target_alias
993 RRDGRAPH_YLEGEND_ANGLE
994 CC
995 CFLAGS
996 LDFLAGS
997 LIBS
998 CPPFLAGS
999 CPP
1000 CXX
1001 CXXFLAGS
1002 CCC
1003 CXXCPP
1004 F77
1005 FFLAGS
1006 PERLCC
1007 PERLCCFLAGS
1008 PERLLD
1009 PERLLDFLAGS
1010 RRDDOCDIR'
1013 # Initialize some variables set by options.
1014 ac_init_help=
1015 ac_init_version=false
1016 # The variables have the same names as the options, with
1017 # dashes changed to underlines.
1018 cache_file=/dev/null
1019 exec_prefix=NONE
1020 no_create=
1021 no_recursion=
1022 prefix=NONE
1023 program_prefix=NONE
1024 program_suffix=NONE
1025 program_transform_name=s,x,x,
1026 silent=
1027 site=
1028 srcdir=
1029 verbose=
1030 x_includes=NONE
1031 x_libraries=NONE
1033 # Installation directory options.
1034 # These are left unexpanded so users can "make install exec_prefix=/foo"
1035 # and all the variables that are supposed to be based on exec_prefix
1036 # by default will actually change.
1037 # Use braces instead of parens because sh, perl, etc. also accept them.
1038 # (The list follows the same order as the GNU Coding Standards.)
1039 bindir='${exec_prefix}/bin'
1040 sbindir='${exec_prefix}/sbin'
1041 libexecdir='${exec_prefix}/libexec'
1042 datarootdir='${prefix}/share'
1043 datadir='${datarootdir}'
1044 sysconfdir='${prefix}/etc'
1045 sharedstatedir='${prefix}/com'
1046 localstatedir='${prefix}/var'
1047 includedir='${prefix}/include'
1048 oldincludedir='/usr/include'
1049 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1050 infodir='${datarootdir}/info'
1051 htmldir='${docdir}'
1052 dvidir='${docdir}'
1053 pdfdir='${docdir}'
1054 psdir='${docdir}'
1055 libdir='${exec_prefix}/lib'
1056 localedir='${datarootdir}/locale'
1057 mandir='${datarootdir}/man'
1059 ac_prev=
1060 ac_dashdash=
1061 for ac_option
1062 do
1063   # If the previous option needs an argument, assign it.
1064   if test -n "$ac_prev"; then
1065     eval $ac_prev=\$ac_option
1066     ac_prev=
1067     continue
1068   fi
1070   case $ac_option in
1071   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1072   *)    ac_optarg=yes ;;
1073   esac
1075   # Accept the important Cygnus configure options, so we can diagnose typos.
1077   case $ac_dashdash$ac_option in
1078   --)
1079     ac_dashdash=yes ;;
1081   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1082     ac_prev=bindir ;;
1083   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1084     bindir=$ac_optarg ;;
1086   -build | --build | --buil | --bui | --bu)
1087     ac_prev=build_alias ;;
1088   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1089     build_alias=$ac_optarg ;;
1091   -cache-file | --cache-file | --cache-fil | --cache-fi \
1092   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1093     ac_prev=cache_file ;;
1094   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1095   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1096     cache_file=$ac_optarg ;;
1098   --config-cache | -C)
1099     cache_file=config.cache ;;
1101   -datadir | --datadir | --datadi | --datad)
1102     ac_prev=datadir ;;
1103   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1104     datadir=$ac_optarg ;;
1106   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1107   | --dataroo | --dataro | --datar)
1108     ac_prev=datarootdir ;;
1109   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1110   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1111     datarootdir=$ac_optarg ;;
1113   -disable-* | --disable-*)
1114     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1118    { (exit 1); exit 1; }; }
1119     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1120     eval enable_$ac_feature=no ;;
1122   -docdir | --docdir | --docdi | --doc | --do)
1123     ac_prev=docdir ;;
1124   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125     docdir=$ac_optarg ;;
1127   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128     ac_prev=dvidir ;;
1129   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130     dvidir=$ac_optarg ;;
1132   -enable-* | --enable-*)
1133     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1136       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1137    { (exit 1); exit 1; }; }
1138     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1139     eval enable_$ac_feature=\$ac_optarg ;;
1141   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1142   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1143   | --exec | --exe | --ex)
1144     ac_prev=exec_prefix ;;
1145   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1146   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1147   | --exec=* | --exe=* | --ex=*)
1148     exec_prefix=$ac_optarg ;;
1150   -gas | --gas | --ga | --g)
1151     # Obsolete; use --with-gas.
1152     with_gas=yes ;;
1154   -help | --help | --hel | --he | -h)
1155     ac_init_help=long ;;
1156   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1157     ac_init_help=recursive ;;
1158   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1159     ac_init_help=short ;;
1161   -host | --host | --hos | --ho)
1162     ac_prev=host_alias ;;
1163   -host=* | --host=* | --hos=* | --ho=*)
1164     host_alias=$ac_optarg ;;
1166   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1167     ac_prev=htmldir ;;
1168   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1169   | --ht=*)
1170     htmldir=$ac_optarg ;;
1172   -includedir | --includedir | --includedi | --included | --include \
1173   | --includ | --inclu | --incl | --inc)
1174     ac_prev=includedir ;;
1175   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1176   | --includ=* | --inclu=* | --incl=* | --inc=*)
1177     includedir=$ac_optarg ;;
1179   -infodir | --infodir | --infodi | --infod | --info | --inf)
1180     ac_prev=infodir ;;
1181   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1182     infodir=$ac_optarg ;;
1184   -libdir | --libdir | --libdi | --libd)
1185     ac_prev=libdir ;;
1186   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1187     libdir=$ac_optarg ;;
1189   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1190   | --libexe | --libex | --libe)
1191     ac_prev=libexecdir ;;
1192   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1193   | --libexe=* | --libex=* | --libe=*)
1194     libexecdir=$ac_optarg ;;
1196   -localedir | --localedir | --localedi | --localed | --locale)
1197     ac_prev=localedir ;;
1198   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1199     localedir=$ac_optarg ;;
1201   -localstatedir | --localstatedir | --localstatedi | --localstated \
1202   | --localstate | --localstat | --localsta | --localst | --locals)
1203     ac_prev=localstatedir ;;
1204   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1205   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1206     localstatedir=$ac_optarg ;;
1208   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1209     ac_prev=mandir ;;
1210   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1211     mandir=$ac_optarg ;;
1213   -nfp | --nfp | --nf)
1214     # Obsolete; use --without-fp.
1215     with_fp=no ;;
1217   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1218   | --no-cr | --no-c | -n)
1219     no_create=yes ;;
1221   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1222   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1223     no_recursion=yes ;;
1225   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1226   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1227   | --oldin | --oldi | --old | --ol | --o)
1228     ac_prev=oldincludedir ;;
1229   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1230   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1231   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1232     oldincludedir=$ac_optarg ;;
1234   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1235     ac_prev=prefix ;;
1236   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1237     prefix=$ac_optarg ;;
1239   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1240   | --program-pre | --program-pr | --program-p)
1241     ac_prev=program_prefix ;;
1242   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1243   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1244     program_prefix=$ac_optarg ;;
1246   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1247   | --program-suf | --program-su | --program-s)
1248     ac_prev=program_suffix ;;
1249   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1250   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1251     program_suffix=$ac_optarg ;;
1253   -program-transform-name | --program-transform-name \
1254   | --program-transform-nam | --program-transform-na \
1255   | --program-transform-n | --program-transform- \
1256   | --program-transform | --program-transfor \
1257   | --program-transfo | --program-transf \
1258   | --program-trans | --program-tran \
1259   | --progr-tra | --program-tr | --program-t)
1260     ac_prev=program_transform_name ;;
1261   -program-transform-name=* | --program-transform-name=* \
1262   | --program-transform-nam=* | --program-transform-na=* \
1263   | --program-transform-n=* | --program-transform-=* \
1264   | --program-transform=* | --program-transfor=* \
1265   | --program-transfo=* | --program-transf=* \
1266   | --program-trans=* | --program-tran=* \
1267   | --progr-tra=* | --program-tr=* | --program-t=*)
1268     program_transform_name=$ac_optarg ;;
1270   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1271     ac_prev=pdfdir ;;
1272   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1273     pdfdir=$ac_optarg ;;
1275   -psdir | --psdir | --psdi | --psd | --ps)
1276     ac_prev=psdir ;;
1277   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1278     psdir=$ac_optarg ;;
1280   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1281   | -silent | --silent | --silen | --sile | --sil)
1282     silent=yes ;;
1284   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1285     ac_prev=sbindir ;;
1286   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1287   | --sbi=* | --sb=*)
1288     sbindir=$ac_optarg ;;
1290   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1291   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1292   | --sharedst | --shareds | --shared | --share | --shar \
1293   | --sha | --sh)
1294     ac_prev=sharedstatedir ;;
1295   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1296   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1297   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1298   | --sha=* | --sh=*)
1299     sharedstatedir=$ac_optarg ;;
1301   -site | --site | --sit)
1302     ac_prev=site ;;
1303   -site=* | --site=* | --sit=*)
1304     site=$ac_optarg ;;
1306   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1307     ac_prev=srcdir ;;
1308   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1309     srcdir=$ac_optarg ;;
1311   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1312   | --syscon | --sysco | --sysc | --sys | --sy)
1313     ac_prev=sysconfdir ;;
1314   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1315   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1316     sysconfdir=$ac_optarg ;;
1318   -target | --target | --targe | --targ | --tar | --ta | --t)
1319     ac_prev=target_alias ;;
1320   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1321     target_alias=$ac_optarg ;;
1323   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1324     verbose=yes ;;
1326   -version | --version | --versio | --versi | --vers | -V)
1327     ac_init_version=: ;;
1329   -with-* | --with-*)
1330     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333       { echo "$as_me: error: invalid package name: $ac_package" >&2
1334    { (exit 1); exit 1; }; }
1335     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1336     eval with_$ac_package=\$ac_optarg ;;
1338   -without-* | --without-*)
1339     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1340     # Reject names that are not valid shell variable names.
1341     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       { echo "$as_me: error: invalid package name: $ac_package" >&2
1343    { (exit 1); exit 1; }; }
1344     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1345     eval with_$ac_package=no ;;
1347   --x)
1348     # Obsolete; use --with-x.
1349     with_x=yes ;;
1351   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1352   | --x-incl | --x-inc | --x-in | --x-i)
1353     ac_prev=x_includes ;;
1354   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1355   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1356     x_includes=$ac_optarg ;;
1358   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1359   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1360     ac_prev=x_libraries ;;
1361   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1362   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1363     x_libraries=$ac_optarg ;;
1365   -*) { echo "$as_me: error: unrecognized option: $ac_option
1366 Try \`$0 --help' for more information." >&2
1367    { (exit 1); exit 1; }; }
1368     ;;
1370   *=*)
1371     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372     # Reject names that are not valid shell variable names.
1373     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1374       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1375    { (exit 1); exit 1; }; }
1376     eval $ac_envvar=\$ac_optarg
1377     export $ac_envvar ;;
1379   *)
1380     # FIXME: should be removed in autoconf 3.0.
1381     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1382     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1383       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1384     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1385     ;;
1387   esac
1388 done
1390 if test -n "$ac_prev"; then
1391   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1392   { echo "$as_me: error: missing argument to $ac_option" >&2
1393    { (exit 1); exit 1; }; }
1394 fi
1396 # Be sure to have absolute directory names.
1397 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398                 datadir sysconfdir sharedstatedir localstatedir includedir \
1399                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1400                 libdir localedir mandir
1401 do
1402   eval ac_val=\$$ac_var
1403   case $ac_val in
1404     [\\/$]* | ?:[\\/]* )  continue;;
1405     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1406   esac
1407   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1408    { (exit 1); exit 1; }; }
1409 done
1411 # There might be people who depend on the old broken behavior: `$host'
1412 # used to hold the argument of --host etc.
1413 # FIXME: To remove some day.
1414 build=$build_alias
1415 host=$host_alias
1416 target=$target_alias
1418 # FIXME: To remove some day.
1419 if test "x$host_alias" != x; then
1420   if test "x$build_alias" = x; then
1421     cross_compiling=maybe
1422     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1423     If a cross compiler is detected then cross compile mode will be used." >&2
1424   elif test "x$build_alias" != "x$host_alias"; then
1425     cross_compiling=yes
1426   fi
1427 fi
1429 ac_tool_prefix=
1430 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432 test "$silent" = yes && exec 6>/dev/null
1435 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1436 ac_ls_di=`ls -di .` &&
1437 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1438   { echo "$as_me: error: Working directory cannot be determined" >&2
1439    { (exit 1); exit 1; }; }
1440 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1441   { echo "$as_me: error: pwd does not report name of working directory" >&2
1442    { (exit 1); exit 1; }; }
1445 # Find the source files, if location was not specified.
1446 if test -z "$srcdir"; then
1447   ac_srcdir_defaulted=yes
1448   # Try the directory containing this script, then the parent directory.
1449   ac_confdir=`$as_dirname -- "$0" ||
1450 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1451          X"$0" : 'X\(//\)[^/]' \| \
1452          X"$0" : 'X\(//\)$' \| \
1453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1454 echo X"$0" |
1455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1456             s//\1/
1457             q
1458           }
1459           /^X\(\/\/\)[^/].*/{
1460             s//\1/
1461             q
1462           }
1463           /^X\(\/\/\)$/{
1464             s//\1/
1465             q
1466           }
1467           /^X\(\/\).*/{
1468             s//\1/
1469             q
1470           }
1471           s/.*/./; q'`
1472   srcdir=$ac_confdir
1473   if test ! -r "$srcdir/$ac_unique_file"; then
1474     srcdir=..
1475   fi
1476 else
1477   ac_srcdir_defaulted=no
1478 fi
1479 if test ! -r "$srcdir/$ac_unique_file"; then
1480   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1481   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1482    { (exit 1); exit 1; }; }
1483 fi
1484 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 ac_abs_confdir=`(
1486         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1487    { (exit 1); exit 1; }; }
1488         pwd)`
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1491   srcdir=.
1492 fi
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1496 case $srcdir in
1497 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 esac
1499 for ac_var in $ac_precious_vars; do
1500   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501   eval ac_env_${ac_var}_value=\$${ac_var}
1502   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504 done
1507 # Report the --help message.
1509 if test "$ac_init_help" = "long"; then
1510   # Omit some internal or obsolete options to make the list less imposing.
1511   # This message is too long to be a string in the A/UX 3.1 sh.
1512   cat <<_ACEOF
1513 \`configure' configures rrdtool 1.3.1 to adapt to many kinds of systems.
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE.  See below for descriptions of some of the useful variables.
1520 Defaults for the options are specified in brackets.
1522 Configuration:
1523   -h, --help              display this help and exit
1524       --help=short        display options specific to this package
1525       --help=recursive    display the short help of all the included packages
1526   -V, --version           display version information and exit
1527   -q, --quiet, --silent   do not print \`checking...' messages
1528       --cache-file=FILE   cache test results in FILE [disabled]
1529   -C, --config-cache      alias for \`--cache-file=config.cache'
1530   -n, --no-create         do not create output files
1531       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1533 Installation directories:
1534   --prefix=PREFIX         install architecture-independent files in PREFIX
1535                           [$ac_default_prefix]
1536   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1537                           [PREFIX]
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1544 For better control, use the options below.
1546 Fine tuning of the installation directories:
1547   --bindir=DIR           user executables [EPREFIX/bin]
1548   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1549   --libexecdir=DIR       program executables [EPREFIX/libexec]
1550   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1551   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1552   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1553   --libdir=DIR           object code libraries [EPREFIX/lib]
1554   --includedir=DIR       C header files [PREFIX/include]
1555   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1556   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1557   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1558   --infodir=DIR          info documentation [DATAROOTDIR/info]
1559   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1560   --mandir=DIR           man documentation [DATAROOTDIR/man]
1561   --docdir=DIR           documentation root [DATAROOTDIR/doc/rrdtool]
1562   --htmldir=DIR          html documentation [DOCDIR]
1563   --dvidir=DIR           dvi documentation [DOCDIR]
1564   --pdfdir=DIR           pdf documentation [DOCDIR]
1565   --psdir=DIR            ps documentation [DOCDIR]
1566 _ACEOF
1568   cat <<\_ACEOF
1570 Program names:
1571   --program-prefix=PREFIX            prepend PREFIX to installed program names
1572   --program-suffix=SUFFIX            append SUFFIX to installed program names
1573   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1575 System types:
1576   --build=BUILD     configure for building on BUILD [guessed]
1577   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1578   --target=TARGET   configure for building compilers for TARGET [HOST]
1579 _ACEOF
1580 fi
1582 if test -n "$ac_init_help"; then
1583   case $ac_init_help in
1584      short | recursive ) echo "Configuration of rrdtool 1.3.1:";;
1585    esac
1586   cat <<\_ACEOF
1588 Optional Features:
1589   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1590   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1591   --enable-maintainer-mode  enable make rules and dependencies not useful
1592                           (and sometimes confusing) to the casual installer
1593   --disable-rrdcgi        disable building of rrdcgi
1594   --disable-mmap          disable mmap in rrd_update, use seek+write instead
1595   --disable-pthread       disable multithread support
1596   --enable-static-programs  Build static programs
1597   --disable-dependency-tracking  speeds up one-time build
1598   --enable-dependency-tracking   do not reject slow dependency extractors
1599   --enable-shared[=PKGS]  build shared libraries [default=yes]
1600   --enable-static[=PKGS]  build static libraries [default=yes]
1601   --enable-fast-install[=PKGS]
1602                           optimize for fast installation [default=yes]
1603   --disable-libtool-lock  avoid locking (might break parallel builds)
1604   --disable-libintl        i18n support (libintl)
1605   --disable-perl          do not build the perl modules
1606   --enable-perl-site-install   by default the rrdtool perl modules are installed
1607                           together with rrdtool in $prefix/lib/perl. You have to
1608                           put a 'use lib qw($prefix/lib/perl)' into your scripts
1609                           when you want to use them. When you set this option
1610                           the perl modules will get installed wherever
1611                           your perl setup thinks it is best.
1612   --disable-ruby          do not build the ruby modules
1613   --enable-ruby-site-install   by default the rrdtool ruby modules are installed
1614                           together with rrdtool in $prefix/lib/ruby. You have to
1615                           add $prefix/lib/ruby/$ruby_version/$sitearch to you $: variable
1616                           for ruby to find the RRD.so file.
1617   --disable-tcl           do not build the tcl modules
1618   --enable-tcl-site        install the tcl extension in the tcl tree
1619   --disable-python        do not build the python modules
1621 Optional Packages:
1622   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1623   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1624   --with-rrd-default-font=OPTIONS  set the full path to your default font.
1625   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1626   --with-pic              try to use only PIC/non-PIC objects [default=use
1627                           both]
1628   --with-tags[=TAGS]      include additional configurations [automatic]
1629   --with-perl-options=OPTIONS  options to pass on command-line when
1630                           generating Makefile from Makefile.PL. If you set this
1631                           option, interesting things may happen unless you know
1632                           what you are doing!
1633   --with-ruby-options=OPTIONS  options to pass on command-line when
1634                           generating Makefile from extconf.rb. If you set this
1635                           option, interesting things may happen unless you know
1636                           what you are doing!
1637   --with-tcllib=DIR       location of the tclConfig.sh
1639 Some influential environment variables:
1640   RRDGRAPH_YLEGEND_ANGLE
1641               Vertical label angle: -90.0 (default) or 90.0
1642   CC          C compiler command
1643   CFLAGS      C compiler flags
1644   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1645               nonstandard directory <lib dir>
1646   LIBS        libraries to pass to the linker, e.g. -l<library>
1647   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1648               you have headers in a nonstandard directory <include dir>
1649   CPP         C preprocessor
1650   CXX         C++ compiler command
1651   CXXFLAGS    C++ compiler flags
1652   CXXCPP      C++ preprocessor
1653   F77         Fortran 77 compiler command
1654   FFLAGS      Fortran 77 compiler flags
1655   PERLCC      [] C compiler for Perl modules
1656   PERLCCFLAGS [] CC flags for Perl modules
1657   PERLLD      [same], [as], [PERLCC] Linker for Perl modules
1658   PERLLDFLAGS [] LD flags for Perl modules
1659   RRDDOCDIR   [DATADIR/doc/PACKAGE-VERSION] Documentation directory
1661 Use these variables to override the choices made by `configure' or to help
1662 it to find libraries and programs with nonstandard names/locations.
1664 _ACEOF
1665 ac_status=$?
1666 fi
1668 if test "$ac_init_help" = "recursive"; then
1669   # If there are subdirs, report their specific --help.
1670   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1671     test -d "$ac_dir" || continue
1672     ac_builddir=.
1674 case "$ac_dir" in
1675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 *)
1677   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1678   # A ".." for each directory in $ac_dir_suffix.
1679   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1680   case $ac_top_builddir_sub in
1681   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1683   esac ;;
1684 esac
1685 ac_abs_top_builddir=$ac_pwd
1686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1687 # for backward compatibility:
1688 ac_top_builddir=$ac_top_build_prefix
1690 case $srcdir in
1691   .)  # We are building in place.
1692     ac_srcdir=.
1693     ac_top_srcdir=$ac_top_builddir_sub
1694     ac_abs_top_srcdir=$ac_pwd ;;
1695   [\\/]* | ?:[\\/]* )  # Absolute name.
1696     ac_srcdir=$srcdir$ac_dir_suffix;
1697     ac_top_srcdir=$srcdir
1698     ac_abs_top_srcdir=$srcdir ;;
1699   *) # Relative name.
1700     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1701     ac_top_srcdir=$ac_top_build_prefix$srcdir
1702     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1703 esac
1704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1706     cd "$ac_dir" || { ac_status=$?; continue; }
1707     # Check for guested configure.
1708     if test -f "$ac_srcdir/configure.gnu"; then
1709       echo &&
1710       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1711     elif test -f "$ac_srcdir/configure"; then
1712       echo &&
1713       $SHELL "$ac_srcdir/configure" --help=recursive
1714     else
1715       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1716     fi || ac_status=$?
1717     cd "$ac_pwd" || { ac_status=$?; break; }
1718   done
1719 fi
1721 test -n "$ac_init_help" && exit $ac_status
1722 if $ac_init_version; then
1723   cat <<\_ACEOF
1724 rrdtool configure 1.3.1
1725 generated by GNU Autoconf 2.61
1727 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1728 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1729 This configure script is free software; the Free Software Foundation
1730 gives unlimited permission to copy, distribute and modify it.
1731 _ACEOF
1732   exit
1733 fi
1734 cat >config.log <<_ACEOF
1735 This file contains any messages produced by compilers while
1736 running configure, to aid debugging if configure makes a mistake.
1738 It was created by rrdtool $as_me 1.3.1, which was
1739 generated by GNU Autoconf 2.61.  Invocation command line was
1741   $ $0 $@
1743 _ACEOF
1744 exec 5>>config.log
1746 cat <<_ASUNAME
1747 ## --------- ##
1748 ## Platform. ##
1749 ## --------- ##
1751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1758 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1760 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1761 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1763 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1764 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1765 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1766 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1768 _ASUNAME
1770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771 for as_dir in $PATH
1772 do
1773   IFS=$as_save_IFS
1774   test -z "$as_dir" && as_dir=.
1775   echo "PATH: $as_dir"
1776 done
1777 IFS=$as_save_IFS
1779 } >&5
1781 cat >&5 <<_ACEOF
1784 ## ----------- ##
1785 ## Core tests. ##
1786 ## ----------- ##
1788 _ACEOF
1791 # Keep a trace of the command line.
1792 # Strip out --no-create and --no-recursion so they do not pile up.
1793 # Strip out --silent because we don't want to record it for future runs.
1794 # Also quote any args containing shell meta-characters.
1795 # Make two passes to allow for proper duplicate-argument suppression.
1796 ac_configure_args=
1797 ac_configure_args0=
1798 ac_configure_args1=
1799 ac_must_keep_next=false
1800 for ac_pass in 1 2
1801 do
1802   for ac_arg
1803   do
1804     case $ac_arg in
1805     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1806     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1807     | -silent | --silent | --silen | --sile | --sil)
1808       continue ;;
1809     *\'*)
1810       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1811     esac
1812     case $ac_pass in
1813     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1814     2)
1815       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1816       if test $ac_must_keep_next = true; then
1817         ac_must_keep_next=false # Got value, back to normal.
1818       else
1819         case $ac_arg in
1820           *=* | --config-cache | -C | -disable-* | --disable-* \
1821           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1822           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1823           | -with-* | --with-* | -without-* | --without-* | --x)
1824             case "$ac_configure_args0 " in
1825               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1826             esac
1827             ;;
1828           -* ) ac_must_keep_next=true ;;
1829         esac
1830       fi
1831       ac_configure_args="$ac_configure_args '$ac_arg'"
1832       ;;
1833     esac
1834   done
1835 done
1836 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1837 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1839 # When interrupted or exit'd, cleanup temporary files, and complete
1840 # config.log.  We remove comments because anyway the quotes in there
1841 # would cause problems or look ugly.
1842 # WARNING: Use '\'' to represent an apostrophe within the trap.
1843 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1844 trap 'exit_status=$?
1845   # Save into config.log some information that might help in debugging.
1846   {
1847     echo
1849     cat <<\_ASBOX
1850 ## ---------------- ##
1851 ## Cache variables. ##
1852 ## ---------------- ##
1853 _ASBOX
1854     echo
1855     # The following way of writing the cache mishandles newlines in values,
1857   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1858     eval ac_val=\$$ac_var
1859     case $ac_val in #(
1860     *${as_nl}*)
1861       case $ac_var in #(
1862       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1863 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1864       esac
1865       case $ac_var in #(
1866       _ | IFS | as_nl) ;; #(
1867       *) $as_unset $ac_var ;;
1868       esac ;;
1869     esac
1870   done
1871   (set) 2>&1 |
1872     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873     *${as_nl}ac_space=\ *)
1874       sed -n \
1875         "s/'\''/'\''\\\\'\'''\''/g;
1876           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877       ;; #(
1878     *)
1879       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880       ;;
1881     esac |
1882     sort
1884     echo
1886     cat <<\_ASBOX
1887 ## ----------------- ##
1888 ## Output variables. ##
1889 ## ----------------- ##
1890 _ASBOX
1891     echo
1892     for ac_var in $ac_subst_vars
1893     do
1894       eval ac_val=\$$ac_var
1895       case $ac_val in
1896       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1897       esac
1898       echo "$ac_var='\''$ac_val'\''"
1899     done | sort
1900     echo
1902     if test -n "$ac_subst_files"; then
1903       cat <<\_ASBOX
1904 ## ------------------- ##
1905 ## File substitutions. ##
1906 ## ------------------- ##
1907 _ASBOX
1908       echo
1909       for ac_var in $ac_subst_files
1910       do
1911         eval ac_val=\$$ac_var
1912         case $ac_val in
1913         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914         esac
1915         echo "$ac_var='\''$ac_val'\''"
1916       done | sort
1917       echo
1918     fi
1920     if test -s confdefs.h; then
1921       cat <<\_ASBOX
1922 ## ----------- ##
1923 ## confdefs.h. ##
1924 ## ----------- ##
1925 _ASBOX
1926       echo
1927       cat confdefs.h
1928       echo
1929     fi
1930     test "$ac_signal" != 0 &&
1931       echo "$as_me: caught signal $ac_signal"
1932     echo "$as_me: exit $exit_status"
1933   } >&5
1934   rm -f core *.core core.conftest.* &&
1935     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1936     exit $exit_status
1937 ' 0
1938 for ac_signal in 1 2 13 15; do
1939   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940 done
1941 ac_signal=0
1943 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1944 rm -f -r conftest* confdefs.h
1946 # Predefined preprocessor variables.
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_NAME "$PACKAGE_NAME"
1950 _ACEOF
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955 _ACEOF
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1960 _ACEOF
1963 cat >>confdefs.h <<_ACEOF
1964 #define PACKAGE_STRING "$PACKAGE_STRING"
1965 _ACEOF
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970 _ACEOF
1973 # Let the site file select an alternate cache file if it wants to.
1974 # Prefer explicitly selected file to automatically selected ones.
1975 if test -n "$CONFIG_SITE"; then
1976   set x "$CONFIG_SITE"
1977 elif test "x$prefix" != xNONE; then
1978   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1979 else
1980   set x "$ac_default_prefix/share/config.site" \
1981         "$ac_default_prefix/etc/config.site"
1982 fi
1983 shift
1984 for ac_site_file
1985 do
1986   if test -r "$ac_site_file"; then
1987     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1988 echo "$as_me: loading site script $ac_site_file" >&6;}
1989     sed 's/^/| /' "$ac_site_file" >&5
1990     . "$ac_site_file"
1991   fi
1992 done
1994 if test -r "$cache_file"; then
1995   # Some versions of bash will fail to source /dev/null (special
1996   # files actually), so we avoid doing that.
1997   if test -f "$cache_file"; then
1998     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1999 echo "$as_me: loading cache $cache_file" >&6;}
2000     case $cache_file in
2001       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2002       *)                      . "./$cache_file";;
2003     esac
2004   fi
2005 else
2006   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2007 echo "$as_me: creating cache $cache_file" >&6;}
2008   >$cache_file
2009 fi
2011 # Check that the precious variables saved in the cache have kept the same
2012 # value.
2013 ac_cache_corrupted=false
2014 for ac_var in $ac_precious_vars; do
2015   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2016   eval ac_new_set=\$ac_env_${ac_var}_set
2017   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2018   eval ac_new_val=\$ac_env_${ac_var}_value
2019   case $ac_old_set,$ac_new_set in
2020     set,)
2021       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2022 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2023       ac_cache_corrupted=: ;;
2024     ,set)
2025       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2026 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2027       ac_cache_corrupted=: ;;
2028     ,);;
2029     *)
2030       if test "x$ac_old_val" != "x$ac_new_val"; then
2031         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2032 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2033         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2034 echo "$as_me:   former value:  $ac_old_val" >&2;}
2035         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2036 echo "$as_me:   current value: $ac_new_val" >&2;}
2037         ac_cache_corrupted=:
2038       fi;;
2039   esac
2040   # Pass precious variables to config.status.
2041   if test "$ac_new_set" = set; then
2042     case $ac_new_val in
2043     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2044     *) ac_arg=$ac_var=$ac_new_val ;;
2045     esac
2046     case " $ac_configure_args " in
2047       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2048       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2049     esac
2050   fi
2051 done
2052 if $ac_cache_corrupted; then
2053   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2054 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2056 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2057    { (exit 1); exit 1; }; }
2058 fi
2084 ac_ext=c
2085 ac_cpp='$CPP $CPPFLAGS'
2086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 NUMVERS=1.3001
2095 LIBVERS=4:0:0
2098 ac_aux_dir=
2099 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2100   if test -f "$ac_dir/install-sh"; then
2101     ac_aux_dir=$ac_dir
2102     ac_install_sh="$ac_aux_dir/install-sh -c"
2103     break
2104   elif test -f "$ac_dir/install.sh"; then
2105     ac_aux_dir=$ac_dir
2106     ac_install_sh="$ac_aux_dir/install.sh -c"
2107     break
2108   elif test -f "$ac_dir/shtool"; then
2109     ac_aux_dir=$ac_dir
2110     ac_install_sh="$ac_aux_dir/shtool install -c"
2111     break
2112   fi
2113 done
2114 if test -z "$ac_aux_dir"; then
2115   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2116 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2117    { (exit 1); exit 1; }; }
2118 fi
2120 # These three variables are undocumented and unsupported,
2121 # and are intended to be withdrawn in a future Autoconf release.
2122 # They can cause serious problems if a builder's source tree is in a directory
2123 # whose full name contains unusual characters.
2124 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2125 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2126 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2129 # Make sure we can run config.sub.
2130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2131   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2132 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2133    { (exit 1); exit 1; }; }
2135 { echo "$as_me:$LINENO: checking build system type" >&5
2136 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_build+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   ac_build_alias=$build_alias
2141 test "x$ac_build_alias" = x &&
2142   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143 test "x$ac_build_alias" = x &&
2144   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146    { (exit 1); exit 1; }; }
2147 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2148   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2149 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2150    { (exit 1); exit 1; }; }
2152 fi
2153 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154 echo "${ECHO_T}$ac_cv_build" >&6; }
2155 case $ac_cv_build in
2156 *-*-*) ;;
2157 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2158 echo "$as_me: error: invalid value of canonical build" >&2;}
2159    { (exit 1); exit 1; }; };;
2160 esac
2161 build=$ac_cv_build
2162 ac_save_IFS=$IFS; IFS='-'
2163 set x $ac_cv_build
2164 shift
2165 build_cpu=$1
2166 build_vendor=$2
2167 shift; shift
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2170 build_os=$*
2171 IFS=$ac_save_IFS
2172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2175 { echo "$as_me:$LINENO: checking host system type" >&5
2176 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2177 if test "${ac_cv_host+set}" = set; then
2178   echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180   if test "x$host_alias" = x; then
2181   ac_cv_host=$ac_cv_build
2182 else
2183   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2184     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2185 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2186    { (exit 1); exit 1; }; }
2187 fi
2189 fi
2190 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191 echo "${ECHO_T}$ac_cv_host" >&6; }
2192 case $ac_cv_host in
2193 *-*-*) ;;
2194 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2195 echo "$as_me: error: invalid value of canonical host" >&2;}
2196    { (exit 1); exit 1; }; };;
2197 esac
2198 host=$ac_cv_host
2199 ac_save_IFS=$IFS; IFS='-'
2200 set x $ac_cv_host
2201 shift
2202 host_cpu=$1
2203 host_vendor=$2
2204 shift; shift
2205 # Remember, the first character of IFS is used to create $*,
2206 # except with old shells:
2207 host_os=$*
2208 IFS=$ac_save_IFS
2209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2212 { echo "$as_me:$LINENO: checking target system type" >&5
2213 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2214 if test "${ac_cv_target+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   if test "x$target_alias" = x; then
2218   ac_cv_target=$ac_cv_host
2219 else
2220   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2221     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2222 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2223    { (exit 1); exit 1; }; }
2224 fi
2226 fi
2227 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2228 echo "${ECHO_T}$ac_cv_target" >&6; }
2229 case $ac_cv_target in
2230 *-*-*) ;;
2231 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2232 echo "$as_me: error: invalid value of canonical target" >&2;}
2233    { (exit 1); exit 1; }; };;
2234 esac
2235 target=$ac_cv_target
2236 ac_save_IFS=$IFS; IFS='-'
2237 set x $ac_cv_target
2238 shift
2239 target_cpu=$1
2240 target_vendor=$2
2241 shift; shift
2242 # Remember, the first character of IFS is used to create $*,
2243 # except with old shells:
2244 target_os=$*
2245 IFS=$ac_save_IFS
2246 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2249 # The aliases save the names the user supplied, while $host etc.
2250 # will get canonicalized.
2251 test -n "$target_alias" &&
2252   test "$program_prefix$program_suffix$program_transform_name" = \
2253     NONENONEs,x,x, &&
2254   program_prefix=${target_alias}-
2255 am__api_version="1.9"
2256 # Find a good install program.  We prefer a C program (faster),
2257 # so one script is as good as another.  But avoid the broken or
2258 # incompatible versions:
2259 # SysV /etc/install, /usr/sbin/install
2260 # SunOS /usr/etc/install
2261 # IRIX /sbin/install
2262 # AIX /bin/install
2263 # AmigaOS /C/install, which installs bootblocks on floppy discs
2264 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2267 # OS/2's system install, which has a completely different semantic
2268 # ./install, which can be erroneously created by make from ./install.sh.
2269 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2270 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2271 if test -z "$INSTALL"; then
2272 if test "${ac_cv_path_install+set}" = set; then
2273   echo $ECHO_N "(cached) $ECHO_C" >&6
2274 else
2275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2277 do
2278   IFS=$as_save_IFS
2279   test -z "$as_dir" && as_dir=.
2280   # Account for people who put trailing slashes in PATH elements.
2281 case $as_dir/ in
2282   ./ | .// | /cC/* | \
2283   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2284   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2285   /usr/ucb/* ) ;;
2286   *)
2287     # OSF1 and SCO ODT 3.0 have their own names for install.
2288     # Don't use installbsd from OSF since it installs stuff as root
2289     # by default.
2290     for ac_prog in ginstall scoinst install; do
2291       for ac_exec_ext in '' $ac_executable_extensions; do
2292         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2293           if test $ac_prog = install &&
2294             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2295             # AIX install.  It has an incompatible calling convention.
2296             :
2297           elif test $ac_prog = install &&
2298             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299             # program-specific install script used by HP pwplus--don't use.
2300             :
2301           else
2302             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2303             break 3
2304           fi
2305         fi
2306       done
2307     done
2308     ;;
2309 esac
2310 done
2311 IFS=$as_save_IFS
2314 fi
2315   if test "${ac_cv_path_install+set}" = set; then
2316     INSTALL=$ac_cv_path_install
2317   else
2318     # As a last resort, use the slow shell script.  Don't cache a
2319     # value for INSTALL within a source directory, because that will
2320     # break other packages using the cache if that directory is
2321     # removed, or if the value is a relative name.
2322     INSTALL=$ac_install_sh
2323   fi
2324 fi
2325 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2326 echo "${ECHO_T}$INSTALL" >&6; }
2328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2329 # It thinks the first close brace ends the variable substitution.
2330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2336 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2337 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2338 # Just in case
2339 sleep 1
2340 echo timestamp > conftest.file
2341 # Do `set' in a subshell so we don't clobber the current shell's
2342 # arguments.  Must try -L first in case configure is actually a
2343 # symlink; some systems play weird games with the mod time of symlinks
2344 # (eg FreeBSD returns the mod time of the symlink's containing
2345 # directory).
2346 if (
2347    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2348    if test "$*" = "X"; then
2349       # -L didn't work.
2350       set X `ls -t $srcdir/configure conftest.file`
2351    fi
2352    rm -f conftest.file
2353    if test "$*" != "X $srcdir/configure conftest.file" \
2354       && test "$*" != "X conftest.file $srcdir/configure"; then
2356       # If neither matched, then we have a broken ls.  This can happen
2357       # if, for instance, CONFIG_SHELL is bash and it inherits a
2358       # broken ls alias from the environment.  This has actually
2359       # happened.  Such a system could not be considered "sane".
2360       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2361 alias in your environment" >&5
2362 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2363 alias in your environment" >&2;}
2364    { (exit 1); exit 1; }; }
2365    fi
2367    test "$2" = conftest.file
2368    )
2369 then
2370    # Ok.
2371    :
2372 else
2373    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2374 Check your system clock" >&5
2375 echo "$as_me: error: newly created file is older than distributed files!
2376 Check your system clock" >&2;}
2377    { (exit 1); exit 1; }; }
2378 fi
2379 { echo "$as_me:$LINENO: result: yes" >&5
2380 echo "${ECHO_T}yes" >&6; }
2381 test "$program_prefix" != NONE &&
2382   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2383 # Use a double $ so make ignores it.
2384 test "$program_suffix" != NONE &&
2385   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2386 # Double any \ or $.  echo might interpret backslashes.
2387 # By default was `s,x,x', remove it if useless.
2388 cat <<\_ACEOF >conftest.sed
2389 s/[\\$]/&&/g;s/;s,x,x,$//
2390 _ACEOF
2391 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2392 rm -f conftest.sed
2394 # expand $ac_aux_dir to an absolute path
2395 am_aux_dir=`cd $ac_aux_dir && pwd`
2397 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2398 # Use eval to expand $SHELL
2399 if eval "$MISSING --run true"; then
2400   am_missing_run="$MISSING --run "
2401 else
2402   am_missing_run=
2403   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2404 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2405 fi
2407 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2408   # We used to keeping the `.' as first argument, in order to
2409   # allow $(mkdir_p) to be used without argument.  As in
2410   #   $(mkdir_p) $(somedir)
2411   # where $(somedir) is conditionally defined.  However this is wrong
2412   # for two reasons:
2413   #  1. if the package is installed by a user who cannot write `.'
2414   #     make install will fail,
2415   #  2. the above comment should most certainly read
2416   #     $(mkdir_p) $(DESTDIR)$(somedir)
2417   #     so it does not work when $(somedir) is undefined and
2418   #     $(DESTDIR) is not.
2419   #  To support the latter case, we have to write
2420   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2421   #  so the `.' trick is pointless.
2422   mkdir_p='mkdir -p --'
2423 else
2424   # On NextStep and OpenStep, the `mkdir' command does not
2425   # recognize any option.  It will interpret all options as
2426   # directories to create, and then abort because `.' already
2427   # exists.
2428   for d in ./-p ./--version;
2429   do
2430     test -d $d && rmdir $d
2431   done
2432   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2433   if test -f "$ac_aux_dir/mkinstalldirs"; then
2434     mkdir_p='$(mkinstalldirs)'
2435   else
2436     mkdir_p='$(install_sh) -d'
2437   fi
2438 fi
2440 for ac_prog in gawk mawk nawk awk
2441 do
2442   # Extract the first word of "$ac_prog", so it can be a program name with args.
2443 set dummy $ac_prog; ac_word=$2
2444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2446 if test "${ac_cv_prog_AWK+set}" = set; then
2447   echo $ECHO_N "(cached) $ECHO_C" >&6
2448 else
2449   if test -n "$AWK"; then
2450   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2451 else
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2453 for as_dir in $PATH
2454 do
2455   IFS=$as_save_IFS
2456   test -z "$as_dir" && as_dir=.
2457   for ac_exec_ext in '' $ac_executable_extensions; do
2458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459     ac_cv_prog_AWK="$ac_prog"
2460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2461     break 2
2462   fi
2463 done
2464 done
2465 IFS=$as_save_IFS
2467 fi
2468 fi
2469 AWK=$ac_cv_prog_AWK
2470 if test -n "$AWK"; then
2471   { echo "$as_me:$LINENO: result: $AWK" >&5
2472 echo "${ECHO_T}$AWK" >&6; }
2473 else
2474   { echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6; }
2476 fi
2479   test -n "$AWK" && break
2480 done
2482 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2483 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2484 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2485 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   cat >conftest.make <<\_ACEOF
2489 SHELL = /bin/sh
2490 all:
2491         @echo '@@@%%%=$(MAKE)=@@@%%%'
2492 _ACEOF
2493 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2494 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2495   *@@@%%%=?*=@@@%%%*)
2496     eval ac_cv_prog_make_${ac_make}_set=yes;;
2497   *)
2498     eval ac_cv_prog_make_${ac_make}_set=no;;
2499 esac
2500 rm -f conftest.make
2501 fi
2502 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2503   { echo "$as_me:$LINENO: result: yes" >&5
2504 echo "${ECHO_T}yes" >&6; }
2505   SET_MAKE=
2506 else
2507   { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2509   SET_MAKE="MAKE=${MAKE-make}"
2510 fi
2512 rm -rf .tst 2>/dev/null
2513 mkdir .tst 2>/dev/null
2514 if test -d .tst; then
2515   am__leading_dot=.
2516 else
2517   am__leading_dot=_
2518 fi
2519 rmdir .tst 2>/dev/null
2521 # test to see if srcdir already configured
2522 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2523    test -f $srcdir/config.status; then
2524   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2525 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2526    { (exit 1); exit 1; }; }
2527 fi
2529 # test whether we have cygpath
2530 if test -z "$CYGPATH_W"; then
2531   if (cygpath --version) >/dev/null 2>/dev/null; then
2532     CYGPATH_W='cygpath -w'
2533   else
2534     CYGPATH_W=echo
2535   fi
2536 fi
2539 # Define the identity of the package.
2540  PACKAGE='rrdtool'
2541  VERSION='1.3.1'
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE "$PACKAGE"
2546 _ACEOF
2549 cat >>confdefs.h <<_ACEOF
2550 #define VERSION "$VERSION"
2551 _ACEOF
2553 # Some tools Automake needs.
2555 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2558 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2561 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2564 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2567 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2569 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2571 # Installed binaries are usually stripped using `strip' when the user
2572 # run `make install-strip'.  However `strip' might not be the right
2573 # tool to use in cross-compilation environments, therefore Automake
2574 # will honor the `STRIP' environment variable to overrule this program.
2575 if test "$cross_compiling" != no; then
2576   if test -n "$ac_tool_prefix"; then
2577   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2578 set dummy ${ac_tool_prefix}strip; ac_word=$2
2579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2581 if test "${ac_cv_prog_STRIP+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584   if test -n "$STRIP"; then
2585   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590   IFS=$as_save_IFS
2591   test -z "$as_dir" && as_dir=.
2592   for ac_exec_ext in '' $ac_executable_extensions; do
2593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2594     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596     break 2
2597   fi
2598 done
2599 done
2600 IFS=$as_save_IFS
2602 fi
2603 fi
2604 STRIP=$ac_cv_prog_STRIP
2605 if test -n "$STRIP"; then
2606   { echo "$as_me:$LINENO: result: $STRIP" >&5
2607 echo "${ECHO_T}$STRIP" >&6; }
2608 else
2609   { echo "$as_me:$LINENO: result: no" >&5
2610 echo "${ECHO_T}no" >&6; }
2611 fi
2614 fi
2615 if test -z "$ac_cv_prog_STRIP"; then
2616   ac_ct_STRIP=$STRIP
2617   # Extract the first word of "strip", so it can be a program name with args.
2618 set dummy strip; ac_word=$2
2619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2621 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2622   echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624   if test -n "$ac_ct_STRIP"; then
2625   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630   IFS=$as_save_IFS
2631   test -z "$as_dir" && as_dir=.
2632   for ac_exec_ext in '' $ac_executable_extensions; do
2633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634     ac_cv_prog_ac_ct_STRIP="strip"
2635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639 done
2640 IFS=$as_save_IFS
2642 fi
2643 fi
2644 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2645 if test -n "$ac_ct_STRIP"; then
2646   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2647 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2648 else
2649   { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2651 fi
2653   if test "x$ac_ct_STRIP" = x; then
2654     STRIP=":"
2655   else
2656     case $cross_compiling:$ac_tool_warned in
2657 yes:)
2658 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2659 whose name does not start with the host triplet.  If you think this
2660 configuration is useful to you, please write to autoconf@gnu.org." >&5
2661 echo "$as_me: 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." >&2;}
2664 ac_tool_warned=yes ;;
2665 esac
2666     STRIP=$ac_ct_STRIP
2667   fi
2668 else
2669   STRIP="$ac_cv_prog_STRIP"
2670 fi
2672 fi
2673 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2675 # We need awk for the "check" target.  The system "awk" is bad on
2676 # some platforms.
2677 # Always define AMTAR for backward compatibility.
2679 AMTAR=${AMTAR-"${am_missing_run}tar"}
2681 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2687 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2688 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2689     # Check whether --enable-maintainer-mode was given.
2690 if test "${enable_maintainer_mode+set}" = set; then
2691   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2692 else
2693   USE_MAINTAINER_MODE=no
2694 fi
2696   { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2697 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2700 if test $USE_MAINTAINER_MODE = yes; then
2701   MAINTAINER_MODE_TRUE=
2702   MAINTAINER_MODE_FALSE='#'
2703 else
2704   MAINTAINER_MODE_TRUE='#'
2705   MAINTAINER_MODE_FALSE=
2706 fi
2708   MAINT=$MAINTAINER_MODE_TRUE
2712 ac_config_headers="$ac_config_headers rrd_config.h"
2734 cat >>confdefs.h <<_ACEOF
2735 #define RRDGRAPH_YLEGEND_ANGLE ${RRDGRAPH_YLEGEND_ANGLE:-90.0}
2736 _ACEOF
2739 # Check whether --enable-rrdcgi was given.
2740 if test "${enable_rrdcgi+set}" = set; then
2741   enableval=$enable_rrdcgi;
2742 else
2743   enable_rrdcgi=yes
2744 fi
2748 # Check whether --with-rrd-default-font was given.
2749 if test "${with_rrd_default_font+set}" = set; then
2750   withval=$with_rrd_default_font; RRD_DEFAULT_FONT=$withval
2751 else
2753   if test -d ${WINDIR:-nodir}/cour.ttf ; then
2754         RRD_DEFAULT_FONT=`cd $WINDIR;pwd`/cour.ttf
2755   else
2756         RRD_DEFAULT_FONT='"DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier"'
2757   fi
2759 fi
2762 # Check whether --enable-mmap was given.
2763 if test "${enable_mmap+set}" = set; then
2764   enableval=$enable_mmap;
2765 else
2766   enable_mmap=yes
2767 fi
2770 # Check whether --enable-pthread was given.
2771 if test "${enable_pthread+set}" = set; then
2772   enableval=$enable_pthread;
2773 else
2774   enable_pthread=yes
2775 fi
2778 # Check whether --enable-static-programs was given.
2779 if test "${enable_static_programs+set}" = set; then
2780   enableval=$enable_static_programs; case "${enableval}" in
2781        yes) staticprogs=yes ;;
2782        no)  staticprogs=no ;;
2783        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-static-programs" >&5
2784 echo "$as_me: error: bad value ${enableval} for --enable-static-programs" >&2;}
2785    { (exit 1); exit 1; }; } ;;
2786      esac
2787 else
2788   staticprogs=no
2789 fi
2793 if test "x$staticprogs" = "xyes"; then
2794   STATIC_PROGRAMS_TRUE=
2795   STATIC_PROGRAMS_FALSE='#'
2796 else
2797   STATIC_PROGRAMS_TRUE='#'
2798   STATIC_PROGRAMS_FALSE=
2799 fi
2804 case $TERM in
2805        #   for the most important terminal types we directly know the sequences
2806        xterm|xterm*|vt220|vt220*)
2807                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
2808                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
2809        ;;
2810        vt100|vt100*|cygwin)
2811                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
2812                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
2813        ;;
2814        *)
2815                T_MD=''
2816                T_ME=''
2817        ;;
2818 esac
2819   { echo "$as_me:$LINENO: result: " >&5
2820 echo "${ECHO_T}" >&6; }
2821   { echo "$as_me:$LINENO: result: ${T_MD}Audit Compilation Environment${T_ME}" >&5
2822 echo "${ECHO_T}${T_MD}Audit Compilation Environment${T_ME}" >&6; }
2826 ac_ext=c
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831 if test -n "$ac_tool_prefix"; then
2832   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2833 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2836 if test "${ac_cv_prog_CC+set}" = set; then
2837   echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839   if test -n "$CC"; then
2840   ac_cv_prog_CC="$CC" # Let the user override the test.
2841 else
2842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 for as_dir in $PATH
2844 do
2845   IFS=$as_save_IFS
2846   test -z "$as_dir" && as_dir=.
2847   for ac_exec_ext in '' $ac_executable_extensions; do
2848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851     break 2
2852   fi
2853 done
2854 done
2855 IFS=$as_save_IFS
2857 fi
2858 fi
2859 CC=$ac_cv_prog_CC
2860 if test -n "$CC"; then
2861   { echo "$as_me:$LINENO: result: $CC" >&5
2862 echo "${ECHO_T}$CC" >&6; }
2863 else
2864   { echo "$as_me:$LINENO: result: no" >&5
2865 echo "${ECHO_T}no" >&6; }
2866 fi
2869 fi
2870 if test -z "$ac_cv_prog_CC"; then
2871   ac_ct_CC=$CC
2872   # Extract the first word of "gcc", so it can be a program name with args.
2873 set dummy gcc; ac_word=$2
2874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2876 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2877   echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879   if test -n "$ac_ct_CC"; then
2880   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2881 else
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH
2884 do
2885   IFS=$as_save_IFS
2886   test -z "$as_dir" && as_dir=.
2887   for ac_exec_ext in '' $ac_executable_extensions; do
2888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889     ac_cv_prog_ac_ct_CC="gcc"
2890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891     break 2
2892   fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2897 fi
2898 fi
2899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900 if test -n "$ac_ct_CC"; then
2901   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2902 echo "${ECHO_T}$ac_ct_CC" >&6; }
2903 else
2904   { echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6; }
2906 fi
2908   if test "x$ac_ct_CC" = x; then
2909     CC=""
2910   else
2911     case $cross_compiling:$ac_tool_warned in
2912 yes:)
2913 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2914 whose name does not start with the host triplet.  If you think this
2915 configuration is useful to you, please write to autoconf@gnu.org." >&5
2916 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2917 whose name does not start with the host triplet.  If you think this
2918 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2919 ac_tool_warned=yes ;;
2920 esac
2921     CC=$ac_ct_CC
2922   fi
2923 else
2924   CC="$ac_cv_prog_CC"
2925 fi
2927 if test -z "$CC"; then
2928           if test -n "$ac_tool_prefix"; then
2929     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}cc; ac_word=$2
2931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_CC+set}" = set; then
2934   echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936   if test -n "$CC"; then
2937   ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942   IFS=$as_save_IFS
2943   test -z "$as_dir" && as_dir=.
2944   for ac_exec_ext in '' $ac_executable_extensions; do
2945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946     ac_cv_prog_CC="${ac_tool_prefix}cc"
2947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958   { echo "$as_me:$LINENO: result: $CC" >&5
2959 echo "${ECHO_T}$CC" >&6; }
2960 else
2961   { echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6; }
2963 fi
2966   fi
2967 fi
2968 if test -z "$CC"; then
2969   # Extract the first word of "cc", so it can be a program name with args.
2970 set dummy cc; ac_word=$2
2971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_CC+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   if test -n "$CC"; then
2977   ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979   ac_prog_rejected=no
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983   IFS=$as_save_IFS
2984   test -z "$as_dir" && as_dir=.
2985   for ac_exec_ext in '' $ac_executable_extensions; do
2986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2988        ac_prog_rejected=yes
2989        continue
2990      fi
2991     ac_cv_prog_CC="cc"
2992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996 done
2997 IFS=$as_save_IFS
2999 if test $ac_prog_rejected = yes; then
3000   # We found a bogon in the path, so make sure we never use it.
3001   set dummy $ac_cv_prog_CC
3002   shift
3003   if test $# != 0; then
3004     # We chose a different compiler from the bogus one.
3005     # However, it has the same basename, so the bogon will be chosen
3006     # first if we set CC to just the basename; use the full file name.
3007     shift
3008     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3009   fi
3010 fi
3011 fi
3012 fi
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015   { echo "$as_me:$LINENO: result: $CC" >&5
3016 echo "${ECHO_T}$CC" >&6; }
3017 else
3018   { echo "$as_me:$LINENO: result: no" >&5
3019 echo "${ECHO_T}no" >&6; }
3020 fi
3023 fi
3024 if test -z "$CC"; then
3025   if test -n "$ac_tool_prefix"; then
3026   for ac_prog in cl.exe
3027   do
3028     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3032 if test "${ac_cv_prog_CC+set}" = set; then
3033   echo $ECHO_N "(cached) $ECHO_C" >&6
3034 else
3035   if test -n "$CC"; then
3036   ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043   for ac_exec_ext in '' $ac_executable_extensions; do
3044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057   { echo "$as_me:$LINENO: result: $CC" >&5
3058 echo "${ECHO_T}$CC" >&6; }
3059 else
3060   { echo "$as_me:$LINENO: result: no" >&5
3061 echo "${ECHO_T}no" >&6; }
3062 fi
3065     test -n "$CC" && break
3066   done
3067 fi
3068 if test -z "$CC"; then
3069   ac_ct_CC=$CC
3070   for ac_prog in cl.exe
3071 do
3072   # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   if test -n "$ac_ct_CC"; then
3080   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087   for ac_exec_ext in '' $ac_executable_extensions; do
3088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089     ac_cv_prog_ac_ct_CC="$ac_prog"
3090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094 done
3095 IFS=$as_save_IFS
3097 fi
3098 fi
3099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3100 if test -n "$ac_ct_CC"; then
3101   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3102 echo "${ECHO_T}$ac_ct_CC" >&6; }
3103 else
3104   { echo "$as_me:$LINENO: result: no" >&5
3105 echo "${ECHO_T}no" >&6; }
3106 fi
3109   test -n "$ac_ct_CC" && break
3110 done
3112   if test "x$ac_ct_CC" = x; then
3113     CC=""
3114   else
3115     case $cross_compiling:$ac_tool_warned in
3116 yes:)
3117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3118 whose name does not start with the host triplet.  If you think this
3119 configuration is useful to you, please write to autoconf@gnu.org." >&5
3120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3121 whose name does not start with the host triplet.  If you think this
3122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3123 ac_tool_warned=yes ;;
3124 esac
3125     CC=$ac_ct_CC
3126   fi
3127 fi
3129 fi
3132 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: no acceptable C compiler found in \$PATH
3135 See \`config.log' for more details." >&2;}
3136    { (exit 1); exit 1; }; }
3138 # Provide some information about the compiler.
3139 echo "$as_me:$LINENO: checking for C compiler version" >&5
3140 ac_compiler=`set X $ac_compile; echo $2`
3141 { (ac_try="$ac_compiler --version >&5"
3142 case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_compiler --version >&5") 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }
3151 { (ac_try="$ac_compiler -v >&5"
3152 case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_compiler -v >&5") 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }
3161 { (ac_try="$ac_compiler -V >&5"
3162 case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167   (eval "$ac_compiler -V >&5") 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }
3172 cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3179 int
3180 main ()
3183   ;
3184   return 0;
3186 _ACEOF
3187 ac_clean_files_save=$ac_clean_files
3188 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3189 # Try to create an executable without -o first, disregard a.out.
3190 # It will help us diagnose broken compilers, and finding out an intuition
3191 # of exeext.
3192 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3193 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3194 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3196 # List of possible output files, starting from the most likely.
3197 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3198 # only as a last resort.  b.out is created by i960 compilers.
3199 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3201 # The IRIX 6 linker writes into existing files which may not be
3202 # executable, retaining their permissions.  Remove them first so a
3203 # subsequent execution test works.
3204 ac_rmfiles=
3205 for ac_file in $ac_files
3206 do
3207   case $ac_file in
3208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3209     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3210   esac
3211 done
3212 rm -f $ac_rmfiles
3214 if { (ac_try="$ac_link_default"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_link_default") 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }; then
3224   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3225 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3226 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3227 # so that the user can short-circuit this test for compilers unknown to
3228 # Autoconf.
3229 for ac_file in $ac_files ''
3230 do
3231   test -f "$ac_file" || continue
3232   case $ac_file in
3233     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3234         ;;
3235     [ab].out )
3236         # We found the default executable, but exeext='' is most
3237         # certainly right.
3238         break;;
3239     *.* )
3240         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3241         then :; else
3242            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3243         fi
3244         # We set ac_cv_exeext here because the later test for it is not
3245         # safe: cross compilers may not add the suffix if given an `-o'
3246         # argument, so we may need to know it at that point already.
3247         # Even if this section looks crufty: it has the advantage of
3248         # actually working.
3249         break;;
3250     * )
3251         break;;
3252   esac
3253 done
3254 test "$ac_cv_exeext" = no && ac_cv_exeext=
3256 else
3257   ac_file=''
3258 fi
3260 { echo "$as_me:$LINENO: result: $ac_file" >&5
3261 echo "${ECHO_T}$ac_file" >&6; }
3262 if test -z "$ac_file"; then
3263   echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: C compiler cannot create executables
3269 See \`config.log' for more details." >&2;}
3270    { (exit 77); exit 77; }; }
3271 fi
3273 ac_exeext=$ac_cv_exeext
3275 # Check that the compiler produces executables we can run.  If not, either
3276 # the compiler is broken, or we cross compile.
3277 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3278 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3279 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3280 # If not cross compiling, check that we can run a simple program.
3281 if test "$cross_compiling" != yes; then
3282   if { ac_try='./$ac_file'
3283   { (case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288   (eval "$ac_try") 2>&5
3289   ac_status=$?
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); }; }; then
3292     cross_compiling=no
3293   else
3294     if test "$cross_compiling" = maybe; then
3295         cross_compiling=yes
3296     else
3297         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3298 If you meant to cross compile, use \`--host'.
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: cannot run C compiled programs.
3301 If you meant to cross compile, use \`--host'.
3302 See \`config.log' for more details." >&2;}
3303    { (exit 1); exit 1; }; }
3304     fi
3305   fi
3306 fi
3307 { echo "$as_me:$LINENO: result: yes" >&5
3308 echo "${ECHO_T}yes" >&6; }
3310 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3311 ac_clean_files=$ac_clean_files_save
3312 # Check that the compiler produces executables we can run.  If not, either
3313 # the compiler is broken, or we cross compile.
3314 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3315 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3316 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3317 echo "${ECHO_T}$cross_compiling" >&6; }
3319 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3320 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3321 if { (ac_try="$ac_link"
3322 case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_link") 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; then
3331   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3332 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3333 # work properly (i.e., refer to `conftest.exe'), while it won't with
3334 # `rm'.
3335 for ac_file in conftest.exe conftest conftest.*; do
3336   test -f "$ac_file" || continue
3337   case $ac_file in
3338     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3339     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340           break;;
3341     * ) break;;
3342   esac
3343 done
3344 else
3345   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3346 See \`config.log' for more details." >&5
3347 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3348 See \`config.log' for more details." >&2;}
3349    { (exit 1); exit 1; }; }
3350 fi
3352 rm -f conftest$ac_cv_exeext
3353 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3354 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3356 rm -f conftest.$ac_ext
3357 EXEEXT=$ac_cv_exeext
3358 ac_exeext=$EXEEXT
3359 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3360 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3361 if test "${ac_cv_objext+set}" = set; then
3362   echo $ECHO_N "(cached) $ECHO_C" >&6
3363 else
3364   cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3371 int
3372 main ()
3375   ;
3376   return 0;
3378 _ACEOF
3379 rm -f conftest.o conftest.obj
3380 if { (ac_try="$ac_compile"
3381 case "(($ac_try" in
3382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383   *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386   (eval "$ac_compile") 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }; then
3390   for ac_file in conftest.o conftest.obj conftest.*; do
3391   test -f "$ac_file" || continue;
3392   case $ac_file in
3393     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3394     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3395        break;;
3396   esac
3397 done
3398 else
3399   echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3403 See \`config.log' for more details." >&5
3404 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3405 See \`config.log' for more details." >&2;}
3406    { (exit 1); exit 1; }; }
3407 fi
3409 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3410 fi
3411 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3412 echo "${ECHO_T}$ac_cv_objext" >&6; }
3413 OBJEXT=$ac_cv_objext
3414 ac_objext=$OBJEXT
3415 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3416 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3417 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3418   echo $ECHO_N "(cached) $ECHO_C" >&6
3419 else
3420   cat >conftest.$ac_ext <<_ACEOF
3421 /* confdefs.h.  */
3422 _ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h.  */
3427 int
3428 main ()
3430 #ifndef __GNUC__
3431        choke me
3432 #endif
3434   ;
3435   return 0;
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_compile") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } && {
3452          test -z "$ac_c_werror_flag" ||
3453          test ! -s conftest.err
3454        } && test -s conftest.$ac_objext; then
3455   ac_compiler_gnu=yes
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3460         ac_compiler_gnu=no
3461 fi
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3466 fi
3467 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3469 GCC=`test $ac_compiler_gnu = yes && echo yes`
3470 ac_test_CFLAGS=${CFLAGS+set}
3471 ac_save_CFLAGS=$CFLAGS
3472 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3473 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3474 if test "${ac_cv_prog_cc_g+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   ac_save_c_werror_flag=$ac_c_werror_flag
3478    ac_c_werror_flag=yes
3479    ac_cv_prog_cc_g=no
3480    CFLAGS="-g"
3481    cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h.  */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h.  */
3488 int
3489 main ()
3492   ;
3493   return 0;
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503   (eval "$ac_compile") 2>conftest.er1
3504   ac_status=$?
3505   grep -v '^ *+' conftest.er1 >conftest.err
3506   rm -f conftest.er1
3507   cat conftest.err >&5
3508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509   (exit $ac_status); } && {
3510          test -z "$ac_c_werror_flag" ||
3511          test ! -s conftest.err
3512        } && test -s conftest.$ac_objext; then
3513   ac_cv_prog_cc_g=yes
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518         CFLAGS=""
3519       cat >conftest.$ac_ext <<_ACEOF
3520 /* confdefs.h.  */
3521 _ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h.  */
3526 int
3527 main ()
3530   ;
3531   return 0;
3533 _ACEOF
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3536 case "(($ac_try" in
3537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538   *) ac_try_echo=$ac_try;;
3539 esac
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541   (eval "$ac_compile") 2>conftest.er1
3542   ac_status=$?
3543   grep -v '^ *+' conftest.er1 >conftest.err
3544   rm -f conftest.er1
3545   cat conftest.err >&5
3546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547   (exit $ac_status); } && {
3548          test -z "$ac_c_werror_flag" ||
3549          test ! -s conftest.err
3550        } && test -s conftest.$ac_objext; then
3551   :
3552 else
3553   echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3556         ac_c_werror_flag=$ac_save_c_werror_flag
3557          CFLAGS="-g"
3558          cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3565 int
3566 main ()
3569   ;
3570   return 0;
3572 _ACEOF
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580   (eval "$ac_compile") 2>conftest.er1
3581   ac_status=$?
3582   grep -v '^ *+' conftest.er1 >conftest.err
3583   rm -f conftest.er1
3584   cat conftest.err >&5
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); } && {
3587          test -z "$ac_c_werror_flag" ||
3588          test ! -s conftest.err
3589        } && test -s conftest.$ac_objext; then
3590   ac_cv_prog_cc_g=yes
3591 else
3592   echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3596 fi
3598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3599 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605    ac_c_werror_flag=$ac_save_c_werror_flag
3606 fi
3607 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3608 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3609 if test "$ac_test_CFLAGS" = set; then
3610   CFLAGS=$ac_save_CFLAGS
3611 elif test $ac_cv_prog_cc_g = yes; then
3612   if test "$GCC" = yes; then
3613     CFLAGS="-g -O2"
3614   else
3615     CFLAGS="-g"
3616   fi
3617 else
3618   if test "$GCC" = yes; then
3619     CFLAGS="-O2"
3620   else
3621     CFLAGS=
3622   fi
3623 fi
3624 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3625 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3626 if test "${ac_cv_prog_cc_c89+set}" = set; then
3627   echo $ECHO_N "(cached) $ECHO_C" >&6
3628 else
3629   ac_cv_prog_cc_c89=no
3630 ac_save_CC=$CC
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637 #include <stdarg.h>
3638 #include <stdio.h>
3639 #include <sys/types.h>
3640 #include <sys/stat.h>
3641 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3642 struct buf { int x; };
3643 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3644 static char *e (p, i)
3645      char **p;
3646      int i;
3648   return p[i];
3650 static char *f (char * (*g) (char **, int), char **p, ...)
3652   char *s;
3653   va_list v;
3654   va_start (v,p);
3655   s = g (p, va_arg (v,int));
3656   va_end (v);
3657   return s;
3660 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3661    function prototypes and stuff, but not '\xHH' hex character constants.
3662    These don't provoke an error unfortunately, instead are silently treated
3663    as 'x'.  The following induces an error, until -std is added to get
3664    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3665    array size at least.  It's necessary to write '\x00'==0 to get something
3666    that's true only with -std.  */
3667 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3669 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3670    inside strings and character constants.  */
3671 #define FOO(x) 'x'
3672 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3674 int test (int i, double x);
3675 struct s1 {int (*f) (int a);};
3676 struct s2 {int (*f) (double a);};
3677 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3678 int argc;
3679 char **argv;
3680 int
3681 main ()
3683 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3684   ;
3685   return 0;
3687 _ACEOF
3688 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3689         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3690 do
3691   CC="$ac_save_CC $ac_arg"
3692   rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699   (eval "$ac_compile") 2>conftest.er1
3700   ac_status=$?
3701   grep -v '^ *+' conftest.er1 >conftest.err
3702   rm -f conftest.er1
3703   cat conftest.err >&5
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } && {
3706          test -z "$ac_c_werror_flag" ||
3707          test ! -s conftest.err
3708        } && test -s conftest.$ac_objext; then
3709   ac_cv_prog_cc_c89=$ac_arg
3710 else
3711   echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3715 fi
3717 rm -f core conftest.err conftest.$ac_objext
3718   test "x$ac_cv_prog_cc_c89" != "xno" && break
3719 done
3720 rm -f conftest.$ac_ext
3721 CC=$ac_save_CC
3723 fi
3724 # AC_CACHE_VAL
3725 case "x$ac_cv_prog_cc_c89" in
3726   x)
3727     { echo "$as_me:$LINENO: result: none needed" >&5
3728 echo "${ECHO_T}none needed" >&6; } ;;
3729   xno)
3730     { echo "$as_me:$LINENO: result: unsupported" >&5
3731 echo "${ECHO_T}unsupported" >&6; } ;;
3732   *)
3733     CC="$CC $ac_cv_prog_cc_c89"
3734     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3735 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3736 esac
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744 DEPDIR="${am__leading_dot}deps"
3746 ac_config_commands="$ac_config_commands depfiles"
3749 am_make=${MAKE-make}
3750 cat > confinc << 'END'
3751 am__doit:
3752         @echo done
3753 .PHONY: am__doit
3754 END
3755 # If we don't find an include directive, just comment out the code.
3756 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3757 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3758 am__include="#"
3759 am__quote=
3760 _am_result=none
3761 # First try GNU make style include.
3762 echo "include confinc" > confmf
3763 # We grep out `Entering directory' and `Leaving directory'
3764 # messages which can occur if `w' ends up in MAKEFLAGS.
3765 # In particular we don't look at `^make:' because GNU make might
3766 # be invoked under some other name (usually "gmake"), in which
3767 # case it prints its new name instead of `make'.
3768 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3769    am__include=include
3770    am__quote=
3771    _am_result=GNU
3772 fi
3773 # Now try BSD make style include.
3774 if test "$am__include" = "#"; then
3775    echo '.include "confinc"' > confmf
3776    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3777       am__include=.include
3778       am__quote="\""
3779       _am_result=BSD
3780    fi
3781 fi
3784 { echo "$as_me:$LINENO: result: $_am_result" >&5
3785 echo "${ECHO_T}$_am_result" >&6; }
3786 rm -f confinc confmf
3788 # Check whether --enable-dependency-tracking was given.
3789 if test "${enable_dependency_tracking+set}" = set; then
3790   enableval=$enable_dependency_tracking;
3791 fi
3793 if test "x$enable_dependency_tracking" != xno; then
3794   am_depcomp="$ac_aux_dir/depcomp"
3795   AMDEPBACKSLASH='\'
3796 fi
3799 if test "x$enable_dependency_tracking" != xno; then
3800   AMDEP_TRUE=
3801   AMDEP_FALSE='#'
3802 else
3803   AMDEP_TRUE='#'
3804   AMDEP_FALSE=
3805 fi
3810 depcc="$CC"   am_compiler_list=
3812 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3813 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3814 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3815   echo $ECHO_N "(cached) $ECHO_C" >&6
3816 else
3817   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3818   # We make a subdir and do the tests there.  Otherwise we can end up
3819   # making bogus files that we don't know about and never remove.  For
3820   # instance it was reported that on HP-UX the gcc test will end up
3821   # making a dummy file named `D' -- because `-MD' means `put the output
3822   # in D'.
3823   mkdir conftest.dir
3824   # Copy depcomp to subdir because otherwise we won't find it if we're
3825   # using a relative directory.
3826   cp "$am_depcomp" conftest.dir
3827   cd conftest.dir
3828   # We will build objects and dependencies in a subdirectory because
3829   # it helps to detect inapplicable dependency modes.  For instance
3830   # both Tru64's cc and ICC support -MD to output dependencies as a
3831   # side effect of compilation, but ICC will put the dependencies in
3832   # the current directory while Tru64 will put them in the object
3833   # directory.
3834   mkdir sub
3836   am_cv_CC_dependencies_compiler_type=none
3837   if test "$am_compiler_list" = ""; then
3838      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3839   fi
3840   for depmode in $am_compiler_list; do
3841     # Setup a source with many dependencies, because some compilers
3842     # like to wrap large dependency lists on column 80 (with \), and
3843     # we should not choose a depcomp mode which is confused by this.
3844     #
3845     # We need to recreate these files for each test, as the compiler may
3846     # overwrite some of them when testing with obscure command lines.
3847     # This happens at least with the AIX C compiler.
3848     : > sub/conftest.c
3849     for i in 1 2 3 4 5 6; do
3850       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3851       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3852       # Solaris 8's {/usr,}/bin/sh.
3853       touch sub/conftst$i.h
3854     done
3855     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3857     case $depmode in
3858     nosideeffect)
3859       # after this tag, mechanisms are not by side-effect, so they'll
3860       # only be used when explicitly requested
3861       if test "x$enable_dependency_tracking" = xyes; then
3862         continue
3863       else
3864         break
3865       fi
3866       ;;
3867     none) break ;;
3868     esac
3869     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3870     # mode.  It turns out that the SunPro C++ compiler does not properly
3871     # handle `-M -o', and we need to detect this.
3872     if depmode=$depmode \
3873        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3874        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3875        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3876          >/dev/null 2>conftest.err &&
3877        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3878        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3879        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3880       # icc doesn't choke on unknown options, it will just issue warnings
3881       # or remarks (even with -Werror).  So we grep stderr for any message
3882       # that says an option was ignored or not supported.
3883       # When given -MP, icc 7.0 and 7.1 complain thusly:
3884       #   icc: Command line warning: ignoring option '-M'; no argument required
3885       # The diagnosis changed in icc 8.0:
3886       #   icc: Command line remark: option '-MP' not supported
3887       if (grep 'ignoring option' conftest.err ||
3888           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3889         am_cv_CC_dependencies_compiler_type=$depmode
3890         break
3891       fi
3892     fi
3893   done
3895   cd ..
3896   rm -rf conftest.dir
3897 else
3898   am_cv_CC_dependencies_compiler_type=none
3899 fi
3901 fi
3902 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3903 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3904 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3908 if
3909   test "x$enable_dependency_tracking" != xno \
3910   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3911   am__fastdepCC_TRUE=
3912   am__fastdepCC_FALSE='#'
3913 else
3914   am__fastdepCC_TRUE='#'
3915   am__fastdepCC_FALSE=
3916 fi
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3925 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3926 # On Suns, sometimes $CPP names a directory.
3927 if test -n "$CPP" && test -d "$CPP"; then
3928   CPP=
3929 fi
3930 if test -z "$CPP"; then
3931   if test "${ac_cv_prog_CPP+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934       # Double quotes because CPP needs to be expanded
3935     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3936     do
3937       ac_preproc_ok=false
3938 for ac_c_preproc_warn_flag in '' yes
3939 do
3940   # Use a header file that comes with gcc, so configuring glibc
3941   # with a fresh cross-compiler works.
3942   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3943   # <limits.h> exists even on freestanding compilers.
3944   # On the NeXT, cc -E runs the code through the compiler's parser,
3945   # not just through cpp. "Syntax error" is here to catch this case.
3946   cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h.  */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h.  */
3952 #ifdef __STDC__
3953 # include <limits.h>
3954 #else
3955 # include <assert.h>
3956 #endif
3957                      Syntax error
3958 _ACEOF
3959 if { (ac_try="$ac_cpp conftest.$ac_ext"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3966   ac_status=$?
3967   grep -v '^ *+' conftest.er1 >conftest.err
3968   rm -f conftest.er1
3969   cat conftest.err >&5
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); } >/dev/null && {
3972          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3973          test ! -s conftest.err
3974        }; then
3975   :
3976 else
3977   echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3980   # Broken: fails on valid input.
3981 continue
3982 fi
3984 rm -f conftest.err conftest.$ac_ext
3986   # OK, works on sane cases.  Now check whether nonexistent headers
3987   # can be detected and how.
3988   cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h.  */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h.  */
3994 #include <ac_nonexistent.h>
3995 _ACEOF
3996 if { (ac_try="$ac_cpp conftest.$ac_ext"
3997 case "(($ac_try" in
3998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999   *) ac_try_echo=$ac_try;;
4000 esac
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4003   ac_status=$?
4004   grep -v '^ *+' conftest.er1 >conftest.err
4005   rm -f conftest.er1
4006   cat conftest.err >&5
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); } >/dev/null && {
4009          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4010          test ! -s conftest.err
4011        }; then
4012   # Broken: success on invalid input.
4013 continue
4014 else
4015   echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018   # Passes both tests.
4019 ac_preproc_ok=:
4020 break
4021 fi
4023 rm -f conftest.err conftest.$ac_ext
4025 done
4026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4027 rm -f conftest.err conftest.$ac_ext
4028 if $ac_preproc_ok; then
4029   break
4030 fi
4032     done
4033     ac_cv_prog_CPP=$CPP
4035 fi
4036   CPP=$ac_cv_prog_CPP
4037 else
4038   ac_cv_prog_CPP=$CPP
4039 fi
4040 { echo "$as_me:$LINENO: result: $CPP" >&5
4041 echo "${ECHO_T}$CPP" >&6; }
4042 ac_preproc_ok=false
4043 for ac_c_preproc_warn_flag in '' yes
4044 do
4045   # Use a header file that comes with gcc, so configuring glibc
4046   # with a fresh cross-compiler works.
4047   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4048   # <limits.h> exists even on freestanding compilers.
4049   # On the NeXT, cc -E runs the code through the compiler's parser,
4050   # not just through cpp. "Syntax error" is here to catch this case.
4051   cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057 #ifdef __STDC__
4058 # include <limits.h>
4059 #else
4060 # include <assert.h>
4061 #endif
4062                      Syntax error
4063 _ACEOF
4064 if { (ac_try="$ac_cpp conftest.$ac_ext"
4065 case "(($ac_try" in
4066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067   *) ac_try_echo=$ac_try;;
4068 esac
4069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4071   ac_status=$?
4072   grep -v '^ *+' conftest.er1 >conftest.err
4073   rm -f conftest.er1
4074   cat conftest.err >&5
4075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076   (exit $ac_status); } >/dev/null && {
4077          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4078          test ! -s conftest.err
4079        }; then
4080   :
4081 else
4082   echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4085   # Broken: fails on valid input.
4086 continue
4087 fi
4089 rm -f conftest.err conftest.$ac_ext
4091   # OK, works on sane cases.  Now check whether nonexistent headers
4092   # can be detected and how.
4093   cat >conftest.$ac_ext <<_ACEOF
4094 /* confdefs.h.  */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h.  */
4099 #include <ac_nonexistent.h>
4100 _ACEOF
4101 if { (ac_try="$ac_cpp conftest.$ac_ext"
4102 case "(($ac_try" in
4103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104   *) ac_try_echo=$ac_try;;
4105 esac
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4108   ac_status=$?
4109   grep -v '^ *+' conftest.er1 >conftest.err
4110   rm -f conftest.er1
4111   cat conftest.err >&5
4112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113   (exit $ac_status); } >/dev/null && {
4114          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4115          test ! -s conftest.err
4116        }; then
4117   # Broken: success on invalid input.
4118 continue
4119 else
4120   echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123   # Passes both tests.
4124 ac_preproc_ok=:
4125 break
4126 fi
4128 rm -f conftest.err conftest.$ac_ext
4130 done
4131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4132 rm -f conftest.err conftest.$ac_ext
4133 if $ac_preproc_ok; then
4134   :
4135 else
4136   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4137 See \`config.log' for more details." >&5
4138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4139 See \`config.log' for more details." >&2;}
4140    { (exit 1); exit 1; }; }
4141 fi
4143 ac_ext=c
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149 # Check whether --enable-shared was given.
4150 if test "${enable_shared+set}" = set; then
4151   enableval=$enable_shared; p=${PACKAGE-default}
4152     case $enableval in
4153     yes) enable_shared=yes ;;
4154     no) enable_shared=no ;;
4155     *)
4156       enable_shared=no
4157       # Look at the argument we got.  We use all the common list separators.
4158       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4159       for pkg in $enableval; do
4160         IFS="$lt_save_ifs"
4161         if test "X$pkg" = "X$p"; then
4162           enable_shared=yes
4163         fi
4164       done
4165       IFS="$lt_save_ifs"
4166       ;;
4167     esac
4168 else
4169   enable_shared=yes
4170 fi
4173 # Check whether --enable-static was given.
4174 if test "${enable_static+set}" = set; then
4175   enableval=$enable_static; p=${PACKAGE-default}
4176     case $enableval in
4177     yes) enable_static=yes ;;
4178     no) enable_static=no ;;
4179     *)
4180      enable_static=no
4181       # Look at the argument we got.  We use all the common list separators.
4182       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4183       for pkg in $enableval; do
4184         IFS="$lt_save_ifs"
4185         if test "X$pkg" = "X$p"; then
4186           enable_static=yes
4187         fi
4188       done
4189       IFS="$lt_save_ifs"
4190       ;;
4191     esac
4192 else
4193   enable_static=yes
4194 fi
4197 # Check whether --enable-fast-install was given.
4198 if test "${enable_fast_install+set}" = set; then
4199   enableval=$enable_fast_install; p=${PACKAGE-default}
4200     case $enableval in
4201     yes) enable_fast_install=yes ;;
4202     no) enable_fast_install=no ;;
4203     *)
4204       enable_fast_install=no
4205       # Look at the argument we got.  We use all the common list separators.
4206       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4207       for pkg in $enableval; do
4208         IFS="$lt_save_ifs"
4209         if test "X$pkg" = "X$p"; then
4210           enable_fast_install=yes
4211         fi
4212       done
4213       IFS="$lt_save_ifs"
4214       ;;
4215     esac
4216 else
4217   enable_fast_install=yes
4218 fi
4221 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4222 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4223 if test "${lt_cv_path_SED+set}" = set; then
4224   echo $ECHO_N "(cached) $ECHO_C" >&6
4225 else
4226   # Loop through the user's path and test for sed and gsed.
4227 # Then use that list of sed's as ones to test for truncation.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233   for lt_ac_prog in sed gsed; do
4234     for ac_exec_ext in '' $ac_executable_extensions; do
4235       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4236         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4237       fi
4238     done
4239   done
4240 done
4241 IFS=$as_save_IFS
4242 lt_ac_max=0
4243 lt_ac_count=0
4244 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4245 # along with /bin/sed that truncates output.
4246 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4247   test ! -f $lt_ac_sed && continue
4248   cat /dev/null > conftest.in
4249   lt_ac_count=0
4250   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4251   # Check for GNU sed and select it if it is found.
4252   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4253     lt_cv_path_SED=$lt_ac_sed
4254     break
4255   fi
4256   while true; do
4257     cat conftest.in conftest.in >conftest.tmp
4258     mv conftest.tmp conftest.in
4259     cp conftest.in conftest.nl
4260     echo >>conftest.nl
4261     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4262     cmp -s conftest.out conftest.nl || break
4263     # 10000 chars as input seems more than enough
4264     test $lt_ac_count -gt 10 && break
4265     lt_ac_count=`expr $lt_ac_count + 1`
4266     if test $lt_ac_count -gt $lt_ac_max; then
4267       lt_ac_max=$lt_ac_count
4268       lt_cv_path_SED=$lt_ac_sed
4269     fi
4270   done
4271 done
4273 fi
4275 SED=$lt_cv_path_SED
4277 { echo "$as_me:$LINENO: result: $SED" >&5
4278 echo "${ECHO_T}$SED" >&6; }
4280 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4281 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4282 if test "${ac_cv_path_GREP+set}" = set; then
4283   echo $ECHO_N "(cached) $ECHO_C" >&6
4284 else
4285   # Extract the first word of "grep ggrep" to use in msg output
4286 if test -z "$GREP"; then
4287 set dummy grep ggrep; ac_prog_name=$2
4288 if test "${ac_cv_path_GREP+set}" = set; then
4289   echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291   ac_path_GREP_found=false
4292 # Loop through the user's path and test for each of PROGNAME-LIST
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_prog in grep ggrep; do
4299   for ac_exec_ext in '' $ac_executable_extensions; do
4300     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4301     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4302     # Check for GNU ac_path_GREP and select it if it is found.
4303   # Check for GNU $ac_path_GREP
4304 case `"$ac_path_GREP" --version 2>&1` in
4305 *GNU*)
4306   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4307 *)
4308   ac_count=0
4309   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4310   while :
4311   do
4312     cat "conftest.in" "conftest.in" >"conftest.tmp"
4313     mv "conftest.tmp" "conftest.in"
4314     cp "conftest.in" "conftest.nl"
4315     echo 'GREP' >> "conftest.nl"
4316     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4318     ac_count=`expr $ac_count + 1`
4319     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4320       # Best one so far, save it but keep looking for a better one
4321       ac_cv_path_GREP="$ac_path_GREP"
4322       ac_path_GREP_max=$ac_count
4323     fi
4324     # 10*(2^10) chars as input seems more than enough
4325     test $ac_count -gt 10 && break
4326   done
4327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4328 esac
4331     $ac_path_GREP_found && break 3
4332   done
4333 done
4335 done
4336 IFS=$as_save_IFS
4339 fi
4341 GREP="$ac_cv_path_GREP"
4342 if test -z "$GREP"; then
4343   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4344 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4345    { (exit 1); exit 1; }; }
4346 fi
4348 else
4349   ac_cv_path_GREP=$GREP
4350 fi
4353 fi
4354 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4355 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4356  GREP="$ac_cv_path_GREP"
4359 { echo "$as_me:$LINENO: checking for egrep" >&5
4360 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4361 if test "${ac_cv_path_EGREP+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4365    then ac_cv_path_EGREP="$GREP -E"
4366    else
4367      # Extract the first word of "egrep" to use in msg output
4368 if test -z "$EGREP"; then
4369 set dummy egrep; ac_prog_name=$2
4370 if test "${ac_cv_path_EGREP+set}" = set; then
4371   echo $ECHO_N "(cached) $ECHO_C" >&6
4372 else
4373   ac_path_EGREP_found=false
4374 # Loop through the user's path and test for each of PROGNAME-LIST
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4377 do
4378   IFS=$as_save_IFS
4379   test -z "$as_dir" && as_dir=.
4380   for ac_prog in egrep; do
4381   for ac_exec_ext in '' $ac_executable_extensions; do
4382     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4383     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4384     # Check for GNU ac_path_EGREP and select it if it is found.
4385   # Check for GNU $ac_path_EGREP
4386 case `"$ac_path_EGREP" --version 2>&1` in
4387 *GNU*)
4388   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4389 *)
4390   ac_count=0
4391   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4392   while :
4393   do
4394     cat "conftest.in" "conftest.in" >"conftest.tmp"
4395     mv "conftest.tmp" "conftest.in"
4396     cp "conftest.in" "conftest.nl"
4397     echo 'EGREP' >> "conftest.nl"
4398     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400     ac_count=`expr $ac_count + 1`
4401     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4402       # Best one so far, save it but keep looking for a better one
4403       ac_cv_path_EGREP="$ac_path_EGREP"
4404       ac_path_EGREP_max=$ac_count
4405     fi
4406     # 10*(2^10) chars as input seems more than enough
4407     test $ac_count -gt 10 && break
4408   done
4409   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410 esac
4413     $ac_path_EGREP_found && break 3
4414   done
4415 done
4417 done
4418 IFS=$as_save_IFS
4421 fi
4423 EGREP="$ac_cv_path_EGREP"
4424 if test -z "$EGREP"; then
4425   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4426 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4427    { (exit 1); exit 1; }; }
4428 fi
4430 else
4431   ac_cv_path_EGREP=$EGREP
4432 fi
4435    fi
4436 fi
4437 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4438 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4439  EGREP="$ac_cv_path_EGREP"
4443 # Check whether --with-gnu-ld was given.
4444 if test "${with_gnu_ld+set}" = set; then
4445   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4446 else
4447   with_gnu_ld=no
4448 fi
4450 ac_prog=ld
4451 if test "$GCC" = yes; then
4452   # Check if gcc -print-prog-name=ld gives a path.
4453   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4454 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4455   case $host in
4456   *-*-mingw*)
4457     # gcc leaves a trailing carriage return which upsets mingw
4458     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4459   *)
4460     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4461   esac
4462   case $ac_prog in
4463     # Accept absolute paths.
4464     [\\/]* | ?:[\\/]*)
4465       re_direlt='/[^/][^/]*/\.\./'
4466       # Canonicalize the pathname of ld
4467       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4468       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4469         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4470       done
4471       test -z "$LD" && LD="$ac_prog"
4472       ;;
4473   "")
4474     # If it fails, then pretend we aren't using GCC.
4475     ac_prog=ld
4476     ;;
4477   *)
4478     # If it is relative, then search for the first ld in PATH.
4479     with_gnu_ld=unknown
4480     ;;
4481   esac
4482 elif test "$with_gnu_ld" = yes; then
4483   { echo "$as_me:$LINENO: checking for GNU ld" >&5
4484 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4485 else
4486   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4487 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4488 fi
4489 if test "${lt_cv_path_LD+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   if test -z "$LD"; then
4493   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4494   for ac_dir in $PATH; do
4495     IFS="$lt_save_ifs"
4496     test -z "$ac_dir" && ac_dir=.
4497     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4498       lt_cv_path_LD="$ac_dir/$ac_prog"
4499       # Check to see if the program is GNU ld.  I'd rather use --version,
4500       # but apparently some variants of GNU ld only accept -v.
4501       # Break only if it was the GNU/non-GNU ld that we prefer.
4502       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4503       *GNU* | *'with BFD'*)
4504         test "$with_gnu_ld" != no && break
4505         ;;
4506       *)
4507         test "$with_gnu_ld" != yes && break
4508         ;;
4509       esac
4510     fi
4511   done
4512   IFS="$lt_save_ifs"
4513 else
4514   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4515 fi
4516 fi
4518 LD="$lt_cv_path_LD"
4519 if test -n "$LD"; then
4520   { echo "$as_me:$LINENO: result: $LD" >&5
4521 echo "${ECHO_T}$LD" >&6; }
4522 else
4523   { echo "$as_me:$LINENO: result: no" >&5
4524 echo "${ECHO_T}no" >&6; }
4525 fi
4526 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4527 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4528    { (exit 1); exit 1; }; }
4529 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4530 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4531 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4535 case `$LD -v 2>&1 </dev/null` in
4536 *GNU* | *'with BFD'*)
4537   lt_cv_prog_gnu_ld=yes
4538   ;;
4539 *)
4540   lt_cv_prog_gnu_ld=no
4541   ;;
4542 esac
4543 fi
4544 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4545 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4546 with_gnu_ld=$lt_cv_prog_gnu_ld
4549 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4550 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4551 if test "${lt_cv_ld_reload_flag+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   lt_cv_ld_reload_flag='-r'
4555 fi
4556 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4557 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4558 reload_flag=$lt_cv_ld_reload_flag
4559 case $reload_flag in
4560 "" | " "*) ;;
4561 *) reload_flag=" $reload_flag" ;;
4562 esac
4563 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4564 case $host_os in
4565   darwin*)
4566     if test "$GCC" = yes; then
4567       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4568     else
4569       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4570     fi
4571     ;;
4572 esac
4574 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4575 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4576 if test "${lt_cv_path_NM+set}" = set; then
4577   echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579   if test -n "$NM"; then
4580   # Let the user override the test.
4581   lt_cv_path_NM="$NM"
4582 else
4583   lt_nm_to_check="${ac_tool_prefix}nm"
4584   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4585     lt_nm_to_check="$lt_nm_to_check nm"
4586   fi
4587   for lt_tmp_nm in $lt_nm_to_check; do
4588     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4589     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4590       IFS="$lt_save_ifs"
4591       test -z "$ac_dir" && ac_dir=.
4592       tmp_nm="$ac_dir/$lt_tmp_nm"
4593       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4594         # Check to see if the nm accepts a BSD-compat flag.
4595         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4596         #   nm: unknown option "B" ignored
4597         # Tru64's nm complains that /dev/null is an invalid object file
4598         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4599         */dev/null* | *'Invalid file or object type'*)
4600           lt_cv_path_NM="$tmp_nm -B"
4601           break
4602           ;;
4603         *)
4604           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4605           */dev/null*)
4606             lt_cv_path_NM="$tmp_nm -p"
4607             break
4608             ;;
4609           *)
4610             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4611             continue # so that we can try to find one that supports BSD flags
4612             ;;
4613           esac
4614           ;;
4615         esac
4616       fi
4617     done
4618     IFS="$lt_save_ifs"
4619   done
4620   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4621 fi
4622 fi
4623 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4624 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4625 NM="$lt_cv_path_NM"
4627 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4628 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4629 LN_S=$as_ln_s
4630 if test "$LN_S" = "ln -s"; then
4631   { echo "$as_me:$LINENO: result: yes" >&5
4632 echo "${ECHO_T}yes" >&6; }
4633 else
4634   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4635 echo "${ECHO_T}no, using $LN_S" >&6; }
4636 fi
4638 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4639 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4640 if test "${lt_cv_deplibs_check_method+set}" = set; then
4641   echo $ECHO_N "(cached) $ECHO_C" >&6
4642 else
4643   lt_cv_file_magic_cmd='$MAGIC_CMD'
4644 lt_cv_file_magic_test_file=
4645 lt_cv_deplibs_check_method='unknown'
4646 # Need to set the preceding variable on all platforms that support
4647 # interlibrary dependencies.
4648 # 'none' -- dependencies not supported.
4649 # `unknown' -- same as none, but documents that we really don't know.
4650 # 'pass_all' -- all dependencies passed with no checks.
4651 # 'test_compile' -- check by making test program.
4652 # 'file_magic [[regex]]' -- check by looking for files in library path
4653 # which responds to the $file_magic_cmd with a given extended regex.
4654 # If you have `file' or equivalent on your system and you're not sure
4655 # whether `pass_all' will *always* work, you probably want this one.
4657 case $host_os in
4658 aix[4-9]*)
4659   lt_cv_deplibs_check_method=pass_all
4660   ;;
4662 beos*)
4663   lt_cv_deplibs_check_method=pass_all
4664   ;;
4666 bsdi[45]*)
4667   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4668   lt_cv_file_magic_cmd='/usr/bin/file -L'
4669   lt_cv_file_magic_test_file=/shlib/libc.so
4670   ;;
4672 cygwin*)
4673   # func_win32_libid is a shell function defined in ltmain.sh
4674   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4675   lt_cv_file_magic_cmd='func_win32_libid'
4676   ;;
4678 mingw* | pw32*)
4679   # Base MSYS/MinGW do not provide the 'file' command needed by
4680   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4681   # unless we find 'file', for example because we are cross-compiling.
4682   if ( file / ) >/dev/null 2>&1; then
4683     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4684     lt_cv_file_magic_cmd='func_win32_libid'
4685   else
4686     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4687     lt_cv_file_magic_cmd='$OBJDUMP -f'
4688   fi
4689   ;;
4691 darwin* | rhapsody*)
4692   lt_cv_deplibs_check_method=pass_all
4693   ;;
4695 freebsd* | dragonfly*)
4696   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4697     case $host_cpu in
4698     i*86 )
4699       # Not sure whether the presence of OpenBSD here was a mistake.
4700       # Let's accept both of them until this is cleared up.
4701       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4702       lt_cv_file_magic_cmd=/usr/bin/file
4703       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4704       ;;
4705     esac
4706   else
4707     lt_cv_deplibs_check_method=pass_all
4708   fi
4709   ;;
4711 gnu*)
4712   lt_cv_deplibs_check_method=pass_all
4713   ;;
4715 hpux10.20* | hpux11*)
4716   lt_cv_file_magic_cmd=/usr/bin/file
4717   case $host_cpu in
4718   ia64*)
4719     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4720     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4721     ;;
4722   hppa*64*)
4723     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]'
4724     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4725     ;;
4726   *)
4727     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4728     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4729     ;;
4730   esac
4731   ;;
4733 interix[3-9]*)
4734   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4735   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4736   ;;
4738 irix5* | irix6* | nonstopux*)
4739   case $LD in
4740   *-32|*"-32 ") libmagic=32-bit;;
4741   *-n32|*"-n32 ") libmagic=N32;;
4742   *-64|*"-64 ") libmagic=64-bit;;
4743   *) libmagic=never-match;;
4744   esac
4745   lt_cv_deplibs_check_method=pass_all
4746   ;;
4748 # This must be Linux ELF.
4749 linux* | k*bsd*-gnu)
4750   lt_cv_deplibs_check_method=pass_all
4751   ;;
4753 netbsd* | netbsdelf*-gnu)
4754   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4755     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4756   else
4757     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4758   fi
4759   ;;
4761 newos6*)
4762   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4763   lt_cv_file_magic_cmd=/usr/bin/file
4764   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4765   ;;
4767 nto-qnx*)
4768   lt_cv_deplibs_check_method=unknown
4769   ;;
4771 openbsd*)
4772   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4773     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4774   else
4775     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4776   fi
4777   ;;
4779 osf3* | osf4* | osf5*)
4780   lt_cv_deplibs_check_method=pass_all
4781   ;;
4783 rdos*)
4784   lt_cv_deplibs_check_method=pass_all
4785   ;;
4787 solaris*)
4788   lt_cv_deplibs_check_method=pass_all
4789   ;;
4791 sysv4 | sysv4.3*)
4792   case $host_vendor in
4793   motorola)
4794     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]'
4795     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4796     ;;
4797   ncr)
4798     lt_cv_deplibs_check_method=pass_all
4799     ;;
4800   sequent)
4801     lt_cv_file_magic_cmd='/bin/file'
4802     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4803     ;;
4804   sni)
4805     lt_cv_file_magic_cmd='/bin/file'
4806     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4807     lt_cv_file_magic_test_file=/lib/libc.so
4808     ;;
4809   siemens)
4810     lt_cv_deplibs_check_method=pass_all
4811     ;;
4812   pc)
4813     lt_cv_deplibs_check_method=pass_all
4814     ;;
4815   esac
4816   ;;
4818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4819   lt_cv_deplibs_check_method=pass_all
4820   ;;
4821 esac
4823 fi
4824 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4825 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4826 file_magic_cmd=$lt_cv_file_magic_cmd
4827 deplibs_check_method=$lt_cv_deplibs_check_method
4828 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4833 # If no C compiler was specified, use CC.
4834 LTCC=${LTCC-"$CC"}
4836 # If no C compiler flags were specified, use CFLAGS.
4837 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4839 # Allow CC to be a program name with arguments.
4840 compiler=$CC
4843 # Check whether --enable-libtool-lock was given.
4844 if test "${enable_libtool_lock+set}" = set; then
4845   enableval=$enable_libtool_lock;
4846 fi
4848 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4850 # Some flags need to be propagated to the compiler or linker for good
4851 # libtool support.
4852 case $host in
4853 ia64-*-hpux*)
4854   # Find out which ABI we are using.
4855   echo 'int i;' > conftest.$ac_ext
4856   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857   (eval $ac_compile) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; then
4861     case `/usr/bin/file conftest.$ac_objext` in
4862     *ELF-32*)
4863       HPUX_IA64_MODE="32"
4864       ;;
4865     *ELF-64*)
4866       HPUX_IA64_MODE="64"
4867       ;;
4868     esac
4869   fi
4870   rm -rf conftest*
4871   ;;
4872 *-*-irix6*)
4873   # Find out which ABI we are using.
4874   echo '#line 4874 "configure"' > conftest.$ac_ext
4875   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876   (eval $ac_compile) 2>&5
4877   ac_status=$?
4878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879   (exit $ac_status); }; then
4880    if test "$lt_cv_prog_gnu_ld" = yes; then
4881     case `/usr/bin/file conftest.$ac_objext` in
4882     *32-bit*)
4883       LD="${LD-ld} -melf32bsmip"
4884       ;;
4885     *N32*)
4886       LD="${LD-ld} -melf32bmipn32"
4887       ;;
4888     *64-bit*)
4889       LD="${LD-ld} -melf64bmip"
4890       ;;
4891     esac
4892    else
4893     case `/usr/bin/file conftest.$ac_objext` in
4894     *32-bit*)
4895       LD="${LD-ld} -32"
4896       ;;
4897     *N32*)
4898       LD="${LD-ld} -n32"
4899       ;;
4900     *64-bit*)
4901       LD="${LD-ld} -64"
4902       ;;
4903     esac
4904    fi
4905   fi
4906   rm -rf conftest*
4907   ;;
4909 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4910 s390*-*linux*|sparc*-*linux*)
4911   # Find out which ABI we are using.
4912   echo 'int i;' > conftest.$ac_ext
4913   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914   (eval $ac_compile) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); }; then
4918     case `/usr/bin/file conftest.o` in
4919     *32-bit*)
4920       case $host in
4921         x86_64-*kfreebsd*-gnu)
4922           LD="${LD-ld} -m elf_i386_fbsd"
4923           ;;
4924         x86_64-*linux*)
4925           LD="${LD-ld} -m elf_i386"
4926           ;;
4927         ppc64-*linux*|powerpc64-*linux*)
4928           LD="${LD-ld} -m elf32ppclinux"
4929           ;;
4930         s390x-*linux*)
4931           LD="${LD-ld} -m elf_s390"
4932           ;;
4933         sparc64-*linux*)
4934           LD="${LD-ld} -m elf32_sparc"
4935           ;;
4936       esac
4937       ;;
4938     *64-bit*)
4939       case $host in
4940         x86_64-*kfreebsd*-gnu)
4941           LD="${LD-ld} -m elf_x86_64_fbsd"
4942           ;;
4943         x86_64-*linux*)
4944           LD="${LD-ld} -m elf_x86_64"
4945           ;;
4946         ppc*-*linux*|powerpc*-*linux*)
4947           LD="${LD-ld} -m elf64ppc"
4948           ;;
4949         s390*-*linux*)
4950           LD="${LD-ld} -m elf64_s390"
4951           ;;
4952         sparc*-*linux*)
4953           LD="${LD-ld} -m elf64_sparc"
4954           ;;
4955       esac
4956       ;;
4957     esac
4958   fi
4959   rm -rf conftest*
4960   ;;
4962 *-*-sco3.2v5*)
4963   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4964   SAVE_CFLAGS="$CFLAGS"
4965   CFLAGS="$CFLAGS -belf"
4966   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4967 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4968 if test "${lt_cv_cc_needs_belf+set}" = set; then
4969   echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971   ac_ext=c
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977      cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h.  */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h.  */
4984 int
4985 main ()
4988   ;
4989   return 0;
4991 _ACEOF
4992 rm -f conftest.$ac_objext conftest$ac_exeext
4993 if { (ac_try="$ac_link"
4994 case "(($ac_try" in
4995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996   *) ac_try_echo=$ac_try;;
4997 esac
4998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4999   (eval "$ac_link") 2>conftest.er1
5000   ac_status=$?
5001   grep -v '^ *+' conftest.er1 >conftest.err
5002   rm -f conftest.er1
5003   cat conftest.err >&5
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); } && {
5006          test -z "$ac_c_werror_flag" ||
5007          test ! -s conftest.err
5008        } && test -s conftest$ac_exeext &&
5009        $as_test_x conftest$ac_exeext; then
5010   lt_cv_cc_needs_belf=yes
5011 else
5012   echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015         lt_cv_cc_needs_belf=no
5016 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5019       conftest$ac_exeext conftest.$ac_ext
5020      ac_ext=c
5021 ac_cpp='$CPP $CPPFLAGS'
5022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026 fi
5027 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5028 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5029   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5030     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5031     CFLAGS="$SAVE_CFLAGS"
5032   fi
5033   ;;
5034 sparc*-*solaris*)
5035   # Find out which ABI we are using.
5036   echo 'int i;' > conftest.$ac_ext
5037   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038   (eval $ac_compile) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; then
5042     case `/usr/bin/file conftest.o` in
5043     *64-bit*)
5044       case $lt_cv_prog_gnu_ld in
5045       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5046       *)
5047         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5048           LD="${LD-ld} -64"
5049         fi
5050         ;;
5051       esac
5052       ;;
5053     esac
5054   fi
5055   rm -rf conftest*
5056   ;;
5059 esac
5061 need_locks="$enable_libtool_lock"
5065 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5066 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5067 if test "${ac_cv_header_stdc+set}" = set; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070   cat >conftest.$ac_ext <<_ACEOF
5071 /* confdefs.h.  */
5072 _ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h.  */
5076 #include <stdlib.h>
5077 #include <stdarg.h>
5078 #include <string.h>
5079 #include <float.h>
5081 int
5082 main ()
5085   ;
5086   return 0;
5088 _ACEOF
5089 rm -f conftest.$ac_objext
5090 if { (ac_try="$ac_compile"
5091 case "(($ac_try" in
5092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093   *) ac_try_echo=$ac_try;;
5094 esac
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096   (eval "$ac_compile") 2>conftest.er1
5097   ac_status=$?
5098   grep -v '^ *+' conftest.er1 >conftest.err
5099   rm -f conftest.er1
5100   cat conftest.err >&5
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } && {
5103          test -z "$ac_c_werror_flag" ||
5104          test ! -s conftest.err
5105        } && test -s conftest.$ac_objext; then
5106   ac_cv_header_stdc=yes
5107 else
5108   echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111         ac_cv_header_stdc=no
5112 fi
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 if test $ac_cv_header_stdc = yes; then
5117   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5118   cat >conftest.$ac_ext <<_ACEOF
5119 /* confdefs.h.  */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h.  */
5124 #include <string.h>
5126 _ACEOF
5127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5128   $EGREP "memchr" >/dev/null 2>&1; then
5129   :
5130 else
5131   ac_cv_header_stdc=no
5132 fi
5133 rm -f conftest*
5135 fi
5137 if test $ac_cv_header_stdc = yes; then
5138   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5139   cat >conftest.$ac_ext <<_ACEOF
5140 /* confdefs.h.  */
5141 _ACEOF
5142 cat confdefs.h >>conftest.$ac_ext
5143 cat >>conftest.$ac_ext <<_ACEOF
5144 /* end confdefs.h.  */
5145 #include <stdlib.h>
5147 _ACEOF
5148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5149   $EGREP "free" >/dev/null 2>&1; then
5150   :
5151 else
5152   ac_cv_header_stdc=no
5153 fi
5154 rm -f conftest*
5156 fi
5158 if test $ac_cv_header_stdc = yes; then
5159   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5160   if test "$cross_compiling" = yes; then
5161   :
5162 else
5163   cat >conftest.$ac_ext <<_ACEOF
5164 /* confdefs.h.  */
5165 _ACEOF
5166 cat confdefs.h >>conftest.$ac_ext
5167 cat >>conftest.$ac_ext <<_ACEOF
5168 /* end confdefs.h.  */
5169 #include <ctype.h>
5170 #include <stdlib.h>
5171 #if ((' ' & 0x0FF) == 0x020)
5172 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5173 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5174 #else
5175 # define ISLOWER(c) \
5176                    (('a' <= (c) && (c) <= 'i') \
5177                      || ('j' <= (c) && (c) <= 'r') \
5178                      || ('s' <= (c) && (c) <= 'z'))
5179 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5180 #endif
5182 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5183 int
5184 main ()
5186   int i;
5187   for (i = 0; i < 256; i++)
5188     if (XOR (islower (i), ISLOWER (i))
5189         || toupper (i) != TOUPPER (i))
5190       return 2;
5191   return 0;
5193 _ACEOF
5194 rm -f conftest$ac_exeext
5195 if { (ac_try="$ac_link"
5196 case "(($ac_try" in
5197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198   *) ac_try_echo=$ac_try;;
5199 esac
5200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201   (eval "$ac_link") 2>&5
5202   ac_status=$?
5203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5205   { (case "(($ac_try" in
5206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207   *) ac_try_echo=$ac_try;;
5208 esac
5209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210   (eval "$ac_try") 2>&5
5211   ac_status=$?
5212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213   (exit $ac_status); }; }; then
5214   :
5215 else
5216   echo "$as_me: program exited with status $ac_status" >&5
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5220 ( exit $ac_status )
5221 ac_cv_header_stdc=no
5222 fi
5223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5224 fi
5227 fi
5228 fi
5229 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5230 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5231 if test $ac_cv_header_stdc = yes; then
5233 cat >>confdefs.h <<\_ACEOF
5234 #define STDC_HEADERS 1
5235 _ACEOF
5237 fi
5239 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5249 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5250                   inttypes.h stdint.h unistd.h
5251 do
5252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h.  */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h.  */
5264 $ac_includes_default
5266 #include <$ac_header>
5267 _ACEOF
5268 rm -f conftest.$ac_objext
5269 if { (ac_try="$ac_compile"
5270 case "(($ac_try" in
5271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272   *) ac_try_echo=$ac_try;;
5273 esac
5274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275   (eval "$ac_compile") 2>conftest.er1
5276   ac_status=$?
5277   grep -v '^ *+' conftest.er1 >conftest.err
5278   rm -f conftest.er1
5279   cat conftest.err >&5
5280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281   (exit $ac_status); } && {
5282          test -z "$ac_c_werror_flag" ||
5283          test ! -s conftest.err
5284        } && test -s conftest.$ac_objext; then
5285   eval "$as_ac_Header=yes"
5286 else
5287   echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5290         eval "$as_ac_Header=no"
5291 fi
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 fi
5295 ac_res=`eval echo '${'$as_ac_Header'}'`
5296                { echo "$as_me:$LINENO: result: $ac_res" >&5
5297 echo "${ECHO_T}$ac_res" >&6; }
5298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5299   cat >>confdefs.h <<_ACEOF
5300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5301 _ACEOF
5303 fi
5305 done
5309 for ac_header in dlfcn.h
5310 do
5311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5313   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 fi
5318 ac_res=`eval echo '${'$as_ac_Header'}'`
5319                { echo "$as_me:$LINENO: result: $ac_res" >&5
5320 echo "${ECHO_T}$ac_res" >&6; }
5321 else
5322   # Is the header compilable?
5323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5325 cat >conftest.$ac_ext <<_ACEOF
5326 /* confdefs.h.  */
5327 _ACEOF
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h.  */
5331 $ac_includes_default
5332 #include <$ac_header>
5333 _ACEOF
5334 rm -f conftest.$ac_objext
5335 if { (ac_try="$ac_compile"
5336 case "(($ac_try" in
5337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338   *) ac_try_echo=$ac_try;;
5339 esac
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341   (eval "$ac_compile") 2>conftest.er1
5342   ac_status=$?
5343   grep -v '^ *+' conftest.er1 >conftest.err
5344   rm -f conftest.er1
5345   cat conftest.err >&5
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); } && {
5348          test -z "$ac_c_werror_flag" ||
5349          test ! -s conftest.err
5350        } && test -s conftest.$ac_objext; then
5351   ac_header_compiler=yes
5352 else
5353   echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356         ac_header_compiler=no
5357 fi
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5361 echo "${ECHO_T}$ac_header_compiler" >&6; }
5363 # Is the header present?
5364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5366 cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h.  */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h.  */
5372 #include <$ac_header>
5373 _ACEOF
5374 if { (ac_try="$ac_cpp conftest.$ac_ext"
5375 case "(($ac_try" in
5376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377   *) ac_try_echo=$ac_try;;
5378 esac
5379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5381   ac_status=$?
5382   grep -v '^ *+' conftest.er1 >conftest.err
5383   rm -f conftest.er1
5384   cat conftest.err >&5
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); } >/dev/null && {
5387          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5388          test ! -s conftest.err
5389        }; then
5390   ac_header_preproc=yes
5391 else
5392   echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395   ac_header_preproc=no
5396 fi
5398 rm -f conftest.err conftest.$ac_ext
5399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5400 echo "${ECHO_T}$ac_header_preproc" >&6; }
5402 # So?  What about this header?
5403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5404   yes:no: )
5405     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5409     ac_header_preproc=yes
5410     ;;
5411   no:yes:* )
5412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5414     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5415 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5416     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5418     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5419 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5422     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5425     ;;
5426 esac
5427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   eval "$as_ac_Header=\$ac_header_preproc"
5433 fi
5434 ac_res=`eval echo '${'$as_ac_Header'}'`
5435                { echo "$as_me:$LINENO: result: $ac_res" >&5
5436 echo "${ECHO_T}$ac_res" >&6; }
5438 fi
5439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440   cat >>confdefs.h <<_ACEOF
5441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5442 _ACEOF
5444 fi
5446 done
5448 ac_ext=cpp
5449 ac_cpp='$CXXCPP $CPPFLAGS'
5450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5453 if test -z "$CXX"; then
5454   if test -n "$CCC"; then
5455     CXX=$CCC
5456   else
5457     if test -n "$ac_tool_prefix"; then
5458   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5459   do
5460     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5464 if test "${ac_cv_prog_CXX+set}" = set; then
5465   echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467   if test -n "$CXX"; then
5468   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475   for ac_exec_ext in '' $ac_executable_extensions; do
5476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482 done
5483 IFS=$as_save_IFS
5485 fi
5486 fi
5487 CXX=$ac_cv_prog_CXX
5488 if test -n "$CXX"; then
5489   { echo "$as_me:$LINENO: result: $CXX" >&5
5490 echo "${ECHO_T}$CXX" >&6; }
5491 else
5492   { echo "$as_me:$LINENO: result: no" >&5
5493 echo "${ECHO_T}no" >&6; }
5494 fi
5497     test -n "$CXX" && break
5498   done
5499 fi
5500 if test -z "$CXX"; then
5501   ac_ct_CXX=$CXX
5502   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5503 do
5504   # Extract the first word of "$ac_prog", so it can be a program name with args.
5505 set dummy $ac_prog; ac_word=$2
5506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5508 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511   if test -n "$ac_ct_CXX"; then
5512   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5513 else
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5515 for as_dir in $PATH
5516 do
5517   IFS=$as_save_IFS
5518   test -z "$as_dir" && as_dir=.
5519   for ac_exec_ext in '' $ac_executable_extensions; do
5520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521     ac_cv_prog_ac_ct_CXX="$ac_prog"
5522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5523     break 2
5524   fi
5525 done
5526 done
5527 IFS=$as_save_IFS
5529 fi
5530 fi
5531 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5532 if test -n "$ac_ct_CXX"; then
5533   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5534 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5535 else
5536   { echo "$as_me:$LINENO: result: no" >&5
5537 echo "${ECHO_T}no" >&6; }
5538 fi
5541   test -n "$ac_ct_CXX" && break
5542 done
5544   if test "x$ac_ct_CXX" = x; then
5545     CXX="g++"
5546   else
5547     case $cross_compiling:$ac_tool_warned in
5548 yes:)
5549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5550 whose name does not start with the host triplet.  If you think this
5551 configuration is useful to you, please write to autoconf@gnu.org." >&5
5552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5553 whose name does not start with the host triplet.  If you think this
5554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5555 ac_tool_warned=yes ;;
5556 esac
5557     CXX=$ac_ct_CXX
5558   fi
5559 fi
5561   fi
5562 fi
5563 # Provide some information about the compiler.
5564 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5565 ac_compiler=`set X $ac_compile; echo $2`
5566 { (ac_try="$ac_compiler --version >&5"
5567 case "(($ac_try" in
5568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569   *) ac_try_echo=$ac_try;;
5570 esac
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572   (eval "$ac_compiler --version >&5") 2>&5
5573   ac_status=$?
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); }
5576 { (ac_try="$ac_compiler -v >&5"
5577 case "(($ac_try" in
5578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579   *) ac_try_echo=$ac_try;;
5580 esac
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582   (eval "$ac_compiler -v >&5") 2>&5
5583   ac_status=$?
5584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585   (exit $ac_status); }
5586 { (ac_try="$ac_compiler -V >&5"
5587 case "(($ac_try" in
5588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589   *) ac_try_echo=$ac_try;;
5590 esac
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592   (eval "$ac_compiler -V >&5") 2>&5
5593   ac_status=$?
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); }
5597 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5598 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5599 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5600   echo $ECHO_N "(cached) $ECHO_C" >&6
5601 else
5602   cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h.  */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h.  */
5609 int
5610 main ()
5612 #ifndef __GNUC__
5613        choke me
5614 #endif
5616   ;
5617   return 0;
5619 _ACEOF
5620 rm -f conftest.$ac_objext
5621 if { (ac_try="$ac_compile"
5622 case "(($ac_try" in
5623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624   *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627   (eval "$ac_compile") 2>conftest.er1
5628   ac_status=$?
5629   grep -v '^ *+' conftest.er1 >conftest.err
5630   rm -f conftest.er1
5631   cat conftest.err >&5
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } && {
5634          test -z "$ac_cxx_werror_flag" ||
5635          test ! -s conftest.err
5636        } && test -s conftest.$ac_objext; then
5637   ac_compiler_gnu=yes
5638 else
5639   echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642         ac_compiler_gnu=no
5643 fi
5645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5648 fi
5649 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5650 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5651 GXX=`test $ac_compiler_gnu = yes && echo yes`
5652 ac_test_CXXFLAGS=${CXXFLAGS+set}
5653 ac_save_CXXFLAGS=$CXXFLAGS
5654 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5655 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5656 if test "${ac_cv_prog_cxx_g+set}" = set; then
5657   echo $ECHO_N "(cached) $ECHO_C" >&6
5658 else
5659   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5660    ac_cxx_werror_flag=yes
5661    ac_cv_prog_cxx_g=no
5662    CXXFLAGS="-g"
5663    cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h.  */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h.  */
5670 int
5671 main ()
5674   ;
5675   return 0;
5677 _ACEOF
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5680 case "(($ac_try" in
5681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682   *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685   (eval "$ac_compile") 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } && {
5692          test -z "$ac_cxx_werror_flag" ||
5693          test ! -s conftest.err
5694        } && test -s conftest.$ac_objext; then
5695   ac_cv_prog_cxx_g=yes
5696 else
5697   echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5700         CXXFLAGS=""
5701       cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h.  */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h.  */
5708 int
5709 main ()
5712   ;
5713   return 0;
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5718 case "(($ac_try" in
5719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720   *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723   (eval "$ac_compile") 2>conftest.er1
5724   ac_status=$?
5725   grep -v '^ *+' conftest.er1 >conftest.err
5726   rm -f conftest.er1
5727   cat conftest.err >&5
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); } && {
5730          test -z "$ac_cxx_werror_flag" ||
5731          test ! -s conftest.err
5732        } && test -s conftest.$ac_objext; then
5733   :
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5738         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5739          CXXFLAGS="-g"
5740          cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5747 int
5748 main ()
5751   ;
5752   return 0;
5754 _ACEOF
5755 rm -f conftest.$ac_objext
5756 if { (ac_try="$ac_compile"
5757 case "(($ac_try" in
5758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759   *) ac_try_echo=$ac_try;;
5760 esac
5761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762   (eval "$ac_compile") 2>conftest.er1
5763   ac_status=$?
5764   grep -v '^ *+' conftest.er1 >conftest.err
5765   rm -f conftest.er1
5766   cat conftest.err >&5
5767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } && {
5769          test -z "$ac_cxx_werror_flag" ||
5770          test ! -s conftest.err
5771        } && test -s conftest.$ac_objext; then
5772   ac_cv_prog_cxx_g=yes
5773 else
5774   echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5778 fi
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 fi
5786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5788 fi
5789 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5790 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5791 if test "$ac_test_CXXFLAGS" = set; then
5792   CXXFLAGS=$ac_save_CXXFLAGS
5793 elif test $ac_cv_prog_cxx_g = yes; then
5794   if test "$GXX" = yes; then
5795     CXXFLAGS="-g -O2"
5796   else
5797     CXXFLAGS="-g"
5798   fi
5799 else
5800   if test "$GXX" = yes; then
5801     CXXFLAGS="-O2"
5802   else
5803     CXXFLAGS=
5804   fi
5805 fi
5806 ac_ext=cpp
5807 ac_cpp='$CXXCPP $CPPFLAGS'
5808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5812 depcc="$CXX"  am_compiler_list=
5814 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5815 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5816 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5820   # We make a subdir and do the tests there.  Otherwise we can end up
5821   # making bogus files that we don't know about and never remove.  For
5822   # instance it was reported that on HP-UX the gcc test will end up
5823   # making a dummy file named `D' -- because `-MD' means `put the output
5824   # in D'.
5825   mkdir conftest.dir
5826   # Copy depcomp to subdir because otherwise we won't find it if we're
5827   # using a relative directory.
5828   cp "$am_depcomp" conftest.dir
5829   cd conftest.dir
5830   # We will build objects and dependencies in a subdirectory because
5831   # it helps to detect inapplicable dependency modes.  For instance
5832   # both Tru64's cc and ICC support -MD to output dependencies as a
5833   # side effect of compilation, but ICC will put the dependencies in
5834   # the current directory while Tru64 will put them in the object
5835   # directory.
5836   mkdir sub
5838   am_cv_CXX_dependencies_compiler_type=none
5839   if test "$am_compiler_list" = ""; then
5840      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5841   fi
5842   for depmode in $am_compiler_list; do
5843     # Setup a source with many dependencies, because some compilers
5844     # like to wrap large dependency lists on column 80 (with \), and
5845     # we should not choose a depcomp mode which is confused by this.
5846     #
5847     # We need to recreate these files for each test, as the compiler may
5848     # overwrite some of them when testing with obscure command lines.
5849     # This happens at least with the AIX C compiler.
5850     : > sub/conftest.c
5851     for i in 1 2 3 4 5 6; do
5852       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5853       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5854       # Solaris 8's {/usr,}/bin/sh.
5855       touch sub/conftst$i.h
5856     done
5857     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5859     case $depmode in
5860     nosideeffect)
5861       # after this tag, mechanisms are not by side-effect, so they'll
5862       # only be used when explicitly requested
5863       if test "x$enable_dependency_tracking" = xyes; then
5864         continue
5865       else
5866         break
5867       fi
5868       ;;
5869     none) break ;;
5870     esac
5871     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5872     # mode.  It turns out that the SunPro C++ compiler does not properly
5873     # handle `-M -o', and we need to detect this.
5874     if depmode=$depmode \
5875        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5876        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5877        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5878          >/dev/null 2>conftest.err &&
5879        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5880        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5881        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5882       # icc doesn't choke on unknown options, it will just issue warnings
5883       # or remarks (even with -Werror).  So we grep stderr for any message
5884       # that says an option was ignored or not supported.
5885       # When given -MP, icc 7.0 and 7.1 complain thusly:
5886       #   icc: Command line warning: ignoring option '-M'; no argument required
5887       # The diagnosis changed in icc 8.0:
5888       #   icc: Command line remark: option '-MP' not supported
5889       if (grep 'ignoring option' conftest.err ||
5890           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5891         am_cv_CXX_dependencies_compiler_type=$depmode
5892         break
5893       fi
5894     fi
5895   done
5897   cd ..
5898   rm -rf conftest.dir
5899 else
5900   am_cv_CXX_dependencies_compiler_type=none
5901 fi
5903 fi
5904 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5905 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5906 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5910 if
5911   test "x$enable_dependency_tracking" != xno \
5912   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5913   am__fastdepCXX_TRUE=
5914   am__fastdepCXX_FALSE='#'
5915 else
5916   am__fastdepCXX_TRUE='#'
5917   am__fastdepCXX_FALSE=
5918 fi
5923 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5924     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5925     (test "X$CXX" != "Xg++"))) ; then
5926   ac_ext=cpp
5927 ac_cpp='$CXXCPP $CPPFLAGS'
5928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5931 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5932 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5933 if test -z "$CXXCPP"; then
5934   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937       # Double quotes because CXXCPP needs to be expanded
5938     for CXXCPP in "$CXX -E" "/lib/cpp"
5939     do
5940       ac_preproc_ok=false
5941 for ac_cxx_preproc_warn_flag in '' yes
5942 do
5943   # Use a header file that comes with gcc, so configuring glibc
5944   # with a fresh cross-compiler works.
5945   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5946   # <limits.h> exists even on freestanding compilers.
5947   # On the NeXT, cc -E runs the code through the compiler's parser,
5948   # not just through cpp. "Syntax error" is here to catch this case.
5949   cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h.  */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h.  */
5955 #ifdef __STDC__
5956 # include <limits.h>
5957 #else
5958 # include <assert.h>
5959 #endif
5960                      Syntax error
5961 _ACEOF
5962 if { (ac_try="$ac_cpp conftest.$ac_ext"
5963 case "(($ac_try" in
5964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965   *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5969   ac_status=$?
5970   grep -v '^ *+' conftest.er1 >conftest.err
5971   rm -f conftest.er1
5972   cat conftest.err >&5
5973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974   (exit $ac_status); } >/dev/null && {
5975          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5976          test ! -s conftest.err
5977        }; then
5978   :
5979 else
5980   echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983   # Broken: fails on valid input.
5984 continue
5985 fi
5987 rm -f conftest.err conftest.$ac_ext
5989   # OK, works on sane cases.  Now check whether nonexistent headers
5990   # can be detected and how.
5991   cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997 #include <ac_nonexistent.h>
5998 _ACEOF
5999 if { (ac_try="$ac_cpp conftest.$ac_ext"
6000 case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6005   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6006   ac_status=$?
6007   grep -v '^ *+' conftest.er1 >conftest.err
6008   rm -f conftest.er1
6009   cat conftest.err >&5
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); } >/dev/null && {
6012          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6013          test ! -s conftest.err
6014        }; then
6015   # Broken: success on invalid input.
6016 continue
6017 else
6018   echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021   # Passes both tests.
6022 ac_preproc_ok=:
6023 break
6024 fi
6026 rm -f conftest.err conftest.$ac_ext
6028 done
6029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6030 rm -f conftest.err conftest.$ac_ext
6031 if $ac_preproc_ok; then
6032   break
6033 fi
6035     done
6036     ac_cv_prog_CXXCPP=$CXXCPP
6038 fi
6039   CXXCPP=$ac_cv_prog_CXXCPP
6040 else
6041   ac_cv_prog_CXXCPP=$CXXCPP
6042 fi
6043 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6044 echo "${ECHO_T}$CXXCPP" >&6; }
6045 ac_preproc_ok=false
6046 for ac_cxx_preproc_warn_flag in '' yes
6047 do
6048   # Use a header file that comes with gcc, so configuring glibc
6049   # with a fresh cross-compiler works.
6050   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6051   # <limits.h> exists even on freestanding compilers.
6052   # On the NeXT, cc -E runs the code through the compiler's parser,
6053   # not just through cpp. "Syntax error" is here to catch this case.
6054   cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h.  */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h.  */
6060 #ifdef __STDC__
6061 # include <limits.h>
6062 #else
6063 # include <assert.h>
6064 #endif
6065                      Syntax error
6066 _ACEOF
6067 if { (ac_try="$ac_cpp conftest.$ac_ext"
6068 case "(($ac_try" in
6069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070   *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6074   ac_status=$?
6075   grep -v '^ *+' conftest.er1 >conftest.err
6076   rm -f conftest.er1
6077   cat conftest.err >&5
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); } >/dev/null && {
6080          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6081          test ! -s conftest.err
6082        }; then
6083   :
6084 else
6085   echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6088   # Broken: fails on valid input.
6089 continue
6090 fi
6092 rm -f conftest.err conftest.$ac_ext
6094   # OK, works on sane cases.  Now check whether nonexistent headers
6095   # can be detected and how.
6096   cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102 #include <ac_nonexistent.h>
6103 _ACEOF
6104 if { (ac_try="$ac_cpp conftest.$ac_ext"
6105 case "(($ac_try" in
6106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107   *) ac_try_echo=$ac_try;;
6108 esac
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6111   ac_status=$?
6112   grep -v '^ *+' conftest.er1 >conftest.err
6113   rm -f conftest.er1
6114   cat conftest.err >&5
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); } >/dev/null && {
6117          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6118          test ! -s conftest.err
6119        }; then
6120   # Broken: success on invalid input.
6121 continue
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6126   # Passes both tests.
6127 ac_preproc_ok=:
6128 break
6129 fi
6131 rm -f conftest.err conftest.$ac_ext
6133 done
6134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6135 rm -f conftest.err conftest.$ac_ext
6136 if $ac_preproc_ok; then
6137   :
6138 else
6139   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6140 See \`config.log' for more details." >&5
6141 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6142 See \`config.log' for more details." >&2;}
6143    { (exit 1); exit 1; }; }
6144 fi
6146 ac_ext=cpp
6147 ac_cpp='$CXXCPP $CPPFLAGS'
6148 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6152 fi
6155 ac_ext=f
6156 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6157 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6159 if test -n "$ac_tool_prefix"; then
6160   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
6161   do
6162     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6166 if test "${ac_cv_prog_F77+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   if test -n "$F77"; then
6170   ac_cv_prog_F77="$F77" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6174 do
6175   IFS=$as_save_IFS
6176   test -z "$as_dir" && as_dir=.
6177   for ac_exec_ext in '' $ac_executable_extensions; do
6178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6179     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6181     break 2
6182   fi
6183 done
6184 done
6185 IFS=$as_save_IFS
6187 fi
6188 fi
6189 F77=$ac_cv_prog_F77
6190 if test -n "$F77"; then
6191   { echo "$as_me:$LINENO: result: $F77" >&5
6192 echo "${ECHO_T}$F77" >&6; }
6193 else
6194   { echo "$as_me:$LINENO: result: no" >&5
6195 echo "${ECHO_T}no" >&6; }
6196 fi
6199     test -n "$F77" && break
6200   done
6201 fi
6202 if test -z "$F77"; then
6203   ac_ct_F77=$F77
6204   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
6205 do
6206   # Extract the first word of "$ac_prog", so it can be a program name with args.
6207 set dummy $ac_prog; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213   if test -n "$ac_ct_F77"; then
6214   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221   for ac_exec_ext in '' $ac_executable_extensions; do
6222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223     ac_cv_prog_ac_ct_F77="$ac_prog"
6224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6225     break 2
6226   fi
6227 done
6228 done
6229 IFS=$as_save_IFS
6231 fi
6232 fi
6233 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6234 if test -n "$ac_ct_F77"; then
6235   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6236 echo "${ECHO_T}$ac_ct_F77" >&6; }
6237 else
6238   { echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6; }
6240 fi
6243   test -n "$ac_ct_F77" && break
6244 done
6246   if test "x$ac_ct_F77" = x; then
6247     F77=""
6248   else
6249     case $cross_compiling:$ac_tool_warned in
6250 yes:)
6251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6252 whose name does not start with the host triplet.  If you think this
6253 configuration is useful to you, please write to autoconf@gnu.org." >&5
6254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6255 whose name does not start with the host triplet.  If you think this
6256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6257 ac_tool_warned=yes ;;
6258 esac
6259     F77=$ac_ct_F77
6260   fi
6261 fi
6264 # Provide some information about the compiler.
6265 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6266 ac_compiler=`set X $ac_compile; echo $2`
6267 { (ac_try="$ac_compiler --version >&5"
6268 case "(($ac_try" in
6269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270   *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273   (eval "$ac_compiler --version >&5") 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }
6277 { (ac_try="$ac_compiler -v >&5"
6278 case "(($ac_try" in
6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280   *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283   (eval "$ac_compiler -v >&5") 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }
6287 { (ac_try="$ac_compiler -V >&5"
6288 case "(($ac_try" in
6289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290   *) ac_try_echo=$ac_try;;
6291 esac
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293   (eval "$ac_compiler -V >&5") 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }
6297 rm -f a.out
6299 # If we don't use `.F' as extension, the preprocessor is not run on the
6300 # input file.  (Note that this only needs to work for GNU compilers.)
6301 ac_save_ext=$ac_ext
6302 ac_ext=F
6303 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6304 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6305 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   cat >conftest.$ac_ext <<_ACEOF
6309       program main
6310 #ifndef __GNUC__
6311        choke me
6312 #endif
6314       end
6315 _ACEOF
6316 rm -f conftest.$ac_objext
6317 if { (ac_try="$ac_compile"
6318 case "(($ac_try" in
6319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320   *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323   (eval "$ac_compile") 2>conftest.er1
6324   ac_status=$?
6325   grep -v '^ *+' conftest.er1 >conftest.err
6326   rm -f conftest.er1
6327   cat conftest.err >&5
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); } && {
6330          test -z "$ac_f77_werror_flag" ||
6331          test ! -s conftest.err
6332        } && test -s conftest.$ac_objext; then
6333   ac_compiler_gnu=yes
6334 else
6335   echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338         ac_compiler_gnu=no
6339 fi
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6344 fi
6345 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6346 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6347 ac_ext=$ac_save_ext
6348 ac_test_FFLAGS=${FFLAGS+set}
6349 ac_save_FFLAGS=$FFLAGS
6350 FFLAGS=
6351 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6352 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6353 if test "${ac_cv_prog_f77_g+set}" = set; then
6354   echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356   FFLAGS=-g
6357 cat >conftest.$ac_ext <<_ACEOF
6358       program main
6360       end
6361 _ACEOF
6362 rm -f conftest.$ac_objext
6363 if { (ac_try="$ac_compile"
6364 case "(($ac_try" in
6365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366   *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369   (eval "$ac_compile") 2>conftest.er1
6370   ac_status=$?
6371   grep -v '^ *+' conftest.er1 >conftest.err
6372   rm -f conftest.er1
6373   cat conftest.err >&5
6374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375   (exit $ac_status); } && {
6376          test -z "$ac_f77_werror_flag" ||
6377          test ! -s conftest.err
6378        } && test -s conftest.$ac_objext; then
6379   ac_cv_prog_f77_g=yes
6380 else
6381   echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384         ac_cv_prog_f77_g=no
6385 fi
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389 fi
6390 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6391 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6392 if test "$ac_test_FFLAGS" = set; then
6393   FFLAGS=$ac_save_FFLAGS
6394 elif test $ac_cv_prog_f77_g = yes; then
6395   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6396     FFLAGS="-g -O2"
6397   else
6398     FFLAGS="-g"
6399   fi
6400 else
6401   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6402     FFLAGS="-O2"
6403   else
6404     FFLAGS=
6405   fi
6406 fi
6408 G77=`test $ac_compiler_gnu = yes && echo yes`
6409 ac_ext=c
6410 ac_cpp='$CPP $CPPFLAGS'
6411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6417 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6418 # find the maximum length of command line arguments
6419 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6420 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6421 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6422   echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424     i=0
6425   teststring="ABCD"
6427   case $build_os in
6428   msdosdjgpp*)
6429     # On DJGPP, this test can blow up pretty badly due to problems in libc
6430     # (any single argument exceeding 2000 bytes causes a buffer overrun
6431     # during glob expansion).  Even if it were fixed, the result of this
6432     # check would be larger than it should be.
6433     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6434     ;;
6436   gnu*)
6437     # Under GNU Hurd, this test is not required because there is
6438     # no limit to the length of command line arguments.
6439     # Libtool will interpret -1 as no limit whatsoever
6440     lt_cv_sys_max_cmd_len=-1;
6441     ;;
6443   cygwin* | mingw*)
6444     # On Win9x/ME, this test blows up -- it succeeds, but takes
6445     # about 5 minutes as the teststring grows exponentially.
6446     # Worse, since 9x/ME are not pre-emptively multitasking,
6447     # you end up with a "frozen" computer, even though with patience
6448     # the test eventually succeeds (with a max line length of 256k).
6449     # Instead, let's just punt: use the minimum linelength reported by
6450     # all of the supported platforms: 8192 (on NT/2K/XP).
6451     lt_cv_sys_max_cmd_len=8192;
6452     ;;
6454   amigaos*)
6455     # On AmigaOS with pdksh, this test takes hours, literally.
6456     # So we just punt and use a minimum line length of 8192.
6457     lt_cv_sys_max_cmd_len=8192;
6458     ;;
6460   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6461     # This has been around since 386BSD, at least.  Likely further.
6462     if test -x /sbin/sysctl; then
6463       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6464     elif test -x /usr/sbin/sysctl; then
6465       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6466     else
6467       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6468     fi
6469     # And add a safety zone
6470     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6471     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6472     ;;
6474   interix*)
6475     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6476     lt_cv_sys_max_cmd_len=196608
6477     ;;
6479   osf*)
6480     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6481     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6482     # nice to cause kernel panics so lets avoid the loop below.
6483     # First set a reasonable default.
6484     lt_cv_sys_max_cmd_len=16384
6485     #
6486     if test -x /sbin/sysconfig; then
6487       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6488         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6489       esac
6490     fi
6491     ;;
6492   sco3.2v5*)
6493     lt_cv_sys_max_cmd_len=102400
6494     ;;
6495   sysv5* | sco5v6* | sysv4.2uw2*)
6496     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6497     if test -n "$kargmax"; then
6498       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6499     else
6500       lt_cv_sys_max_cmd_len=32768
6501     fi
6502     ;;
6503   *)
6504     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6505     if test -n "$lt_cv_sys_max_cmd_len"; then
6506       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6507       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6508     else
6509       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6510       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6511                = "XX$teststring") >/dev/null 2>&1 &&
6512               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6513               lt_cv_sys_max_cmd_len=$new_result &&
6514               test $i != 17 # 1/2 MB should be enough
6515       do
6516         i=`expr $i + 1`
6517         teststring=$teststring$teststring
6518       done
6519       teststring=
6520       # Add a significant safety factor because C++ compilers can tack on massive
6521       # amounts of additional arguments before passing them to the linker.
6522       # It appears as though 1/2 is a usable value.
6523       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6524     fi
6525     ;;
6526   esac
6528 fi
6530 if test -n $lt_cv_sys_max_cmd_len ; then
6531   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6532 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6533 else
6534   { echo "$as_me:$LINENO: result: none" >&5
6535 echo "${ECHO_T}none" >&6; }
6536 fi
6542 # Check for command to grab the raw symbol name followed by C symbol from nm.
6543 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6544 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6545 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6549 # These are sane defaults that work on at least a few old systems.
6550 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6552 # Character class describing NM global symbol codes.
6553 symcode='[BCDEGRST]'
6555 # Regexp to match symbols that can be accessed directly from C.
6556 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6558 # Transform an extracted symbol line into a proper C declaration
6559 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6561 # Transform an extracted symbol line into symbol name and symbol address
6562 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'"
6564 # Define system-specific variables.
6565 case $host_os in
6566 aix*)
6567   symcode='[BCDT]'
6568   ;;
6569 cygwin* | mingw* | pw32*)
6570   symcode='[ABCDGISTW]'
6571   ;;
6572 hpux*) # Its linker distinguishes data from code symbols
6573   if test "$host_cpu" = ia64; then
6574     symcode='[ABCDEGRST]'
6575   fi
6576   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6577   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'"
6578   ;;
6579 linux* | k*bsd*-gnu)
6580   if test "$host_cpu" = ia64; then
6581     symcode='[ABCDGIRSTW]'
6582     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6583     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'"
6584   fi
6585   ;;
6586 irix* | nonstopux*)
6587   symcode='[BCDEGRST]'
6588   ;;
6589 osf*)
6590   symcode='[BCDEGQRST]'
6591   ;;
6592 solaris*)
6593   symcode='[BDRT]'
6594   ;;
6595 sco3.2v5*)
6596   symcode='[DT]'
6597   ;;
6598 sysv4.2uw2*)
6599   symcode='[DT]'
6600   ;;
6601 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6602   symcode='[ABDT]'
6603   ;;
6604 sysv4)
6605   symcode='[DFNSTU]'
6606   ;;
6607 esac
6609 # Handle CRLF in mingw tool chain
6610 opt_cr=
6611 case $build_os in
6612 mingw*)
6613   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6614   ;;
6615 esac
6617 # If we're using GNU nm, then use its standard symbol codes.
6618 case `$NM -V 2>&1` in
6619 *GNU* | *'with BFD'*)
6620   symcode='[ABCDGIRSTW]' ;;
6621 esac
6623 # Try without a prefix undercore, then with it.
6624 for ac_symprfx in "" "_"; do
6626   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6627   symxfrm="\\1 $ac_symprfx\\2 \\2"
6629   # Write the raw and C identifiers.
6630   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6632   # Check to see that the pipe works correctly.
6633   pipe_works=no
6635   rm -f conftest*
6636   cat > conftest.$ac_ext <<EOF
6637 #ifdef __cplusplus
6638 extern "C" {
6639 #endif
6640 char nm_test_var;
6641 void nm_test_func(){}
6642 #ifdef __cplusplus
6644 #endif
6645 int main(){nm_test_var='a';nm_test_func();return(0);}
6646 EOF
6648   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649   (eval $ac_compile) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; then
6653     # Now try to grab the symbols.
6654     nlist=conftest.nm
6655     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6656   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6657   ac_status=$?
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); } && test -s "$nlist"; then
6660       # Try sorting and uniquifying the output.
6661       if sort "$nlist" | uniq > "$nlist"T; then
6662         mv -f "$nlist"T "$nlist"
6663       else
6664         rm -f "$nlist"T
6665       fi
6667       # Make sure that we snagged all the symbols we need.
6668       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6669         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6670           cat <<EOF > conftest.$ac_ext
6671 #ifdef __cplusplus
6672 extern "C" {
6673 #endif
6675 EOF
6676           # Now generate the symbol file.
6677           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6679           cat <<EOF >> conftest.$ac_ext
6680 #if defined (__STDC__) && __STDC__
6681 # define lt_ptr_t void *
6682 #else
6683 # define lt_ptr_t char *
6684 # define const
6685 #endif
6687 /* The mapping between symbol names and symbols. */
6688 const struct {
6689   const char *name;
6690   lt_ptr_t address;
6692 lt_preloaded_symbols[] =
6694 EOF
6695           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6696           cat <<\EOF >> conftest.$ac_ext
6697   {0, (lt_ptr_t) 0}
6698 };
6700 #ifdef __cplusplus
6702 #endif
6703 EOF
6704           # Now try linking the two files.
6705           mv conftest.$ac_objext conftstm.$ac_objext
6706           lt_save_LIBS="$LIBS"
6707           lt_save_CFLAGS="$CFLAGS"
6708           LIBS="conftstm.$ac_objext"
6709           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6710           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6711   (eval $ac_link) 2>&5
6712   ac_status=$?
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6715             pipe_works=yes
6716           fi
6717           LIBS="$lt_save_LIBS"
6718           CFLAGS="$lt_save_CFLAGS"
6719         else
6720           echo "cannot find nm_test_func in $nlist" >&5
6721         fi
6722       else
6723         echo "cannot find nm_test_var in $nlist" >&5
6724       fi
6725     else
6726       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6727     fi
6728   else
6729     echo "$progname: failed program was:" >&5
6730     cat conftest.$ac_ext >&5
6731   fi
6732   rm -rf conftest* conftst*
6734   # Do not use the global_symbol_pipe unless it works.
6735   if test "$pipe_works" = yes; then
6736     break
6737   else
6738     lt_cv_sys_global_symbol_pipe=
6739   fi
6740 done
6742 fi
6744 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6745   lt_cv_sys_global_symbol_to_cdecl=
6746 fi
6747 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6748   { echo "$as_me:$LINENO: result: failed" >&5
6749 echo "${ECHO_T}failed" >&6; }
6750 else
6751   { echo "$as_me:$LINENO: result: ok" >&5
6752 echo "${ECHO_T}ok" >&6; }
6753 fi
6755 { echo "$as_me:$LINENO: checking for objdir" >&5
6756 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6757 if test "${lt_cv_objdir+set}" = set; then
6758   echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760   rm -f .libs 2>/dev/null
6761 mkdir .libs 2>/dev/null
6762 if test -d .libs; then
6763   lt_cv_objdir=.libs
6764 else
6765   # MS-DOS does not allow filenames that begin with a dot.
6766   lt_cv_objdir=_libs
6767 fi
6768 rmdir .libs 2>/dev/null
6769 fi
6770 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6771 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6772 objdir=$lt_cv_objdir
6778 case $host_os in
6779 aix3*)
6780   # AIX sometimes has problems with the GCC collect2 program.  For some
6781   # reason, if we set the COLLECT_NAMES environment variable, the problems
6782   # vanish in a puff of smoke.
6783   if test "X${COLLECT_NAMES+set}" != Xset; then
6784     COLLECT_NAMES=
6785     export COLLECT_NAMES
6786   fi
6787   ;;
6788 esac
6790 # Sed substitution that helps us do robust quoting.  It backslashifies
6791 # metacharacters that are still active within double-quoted strings.
6792 Xsed='sed -e 1s/^X//'
6793 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6795 # Same as above, but do not quote variable references.
6796 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6798 # Sed substitution to delay expansion of an escaped shell variable in a
6799 # double_quote_subst'ed string.
6800 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6802 # Sed substitution to avoid accidental globbing in evaled expressions
6803 no_glob_subst='s/\*/\\\*/g'
6805 # Constants:
6806 rm="rm -f"
6808 # Global variables:
6809 default_ofile=libtool
6810 can_build_shared=yes
6812 # All known linkers require a `.a' archive for static linking (except MSVC,
6813 # which needs '.lib').
6814 libext=a
6815 ltmain="$ac_aux_dir/ltmain.sh"
6816 ofile="$default_ofile"
6817 with_gnu_ld="$lt_cv_prog_gnu_ld"
6819 if test -n "$ac_tool_prefix"; then
6820   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6821 set dummy ${ac_tool_prefix}ar; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_prog_AR+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   if test -n "$AR"; then
6828   ac_cv_prog_AR="$AR" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835   for ac_exec_ext in '' $ac_executable_extensions; do
6836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837     ac_cv_prog_AR="${ac_tool_prefix}ar"
6838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842 done
6843 IFS=$as_save_IFS
6845 fi
6846 fi
6847 AR=$ac_cv_prog_AR
6848 if test -n "$AR"; then
6849   { echo "$as_me:$LINENO: result: $AR" >&5
6850 echo "${ECHO_T}$AR" >&6; }
6851 else
6852   { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6854 fi
6857 fi
6858 if test -z "$ac_cv_prog_AR"; then
6859   ac_ct_AR=$AR
6860   # Extract the first word of "ar", so it can be a program name with args.
6861 set dummy ar; ac_word=$2
6862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   if test -n "$ac_ct_AR"; then
6868   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875   for ac_exec_ext in '' $ac_executable_extensions; do
6876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6877     ac_cv_prog_ac_ct_AR="ar"
6878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882 done
6883 IFS=$as_save_IFS
6885 fi
6886 fi
6887 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6888 if test -n "$ac_ct_AR"; then
6889   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6890 echo "${ECHO_T}$ac_ct_AR" >&6; }
6891 else
6892   { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6894 fi
6896   if test "x$ac_ct_AR" = x; then
6897     AR="false"
6898   else
6899     case $cross_compiling:$ac_tool_warned in
6900 yes:)
6901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6902 whose name does not start with the host triplet.  If you think this
6903 configuration is useful to you, please write to autoconf@gnu.org." >&5
6904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6905 whose name does not start with the host triplet.  If you think this
6906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6907 ac_tool_warned=yes ;;
6908 esac
6909     AR=$ac_ct_AR
6910   fi
6911 else
6912   AR="$ac_cv_prog_AR"
6913 fi
6915 if test -n "$ac_tool_prefix"; then
6916   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6920 if test "${ac_cv_prog_RANLIB+set}" = set; then
6921   echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923   if test -n "$RANLIB"; then
6924   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6925 else
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929   IFS=$as_save_IFS
6930   test -z "$as_dir" && as_dir=.
6931   for ac_exec_ext in '' $ac_executable_extensions; do
6932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6941 fi
6942 fi
6943 RANLIB=$ac_cv_prog_RANLIB
6944 if test -n "$RANLIB"; then
6945   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6946 echo "${ECHO_T}$RANLIB" >&6; }
6947 else
6948   { echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6; }
6950 fi
6953 fi
6954 if test -z "$ac_cv_prog_RANLIB"; then
6955   ac_ct_RANLIB=$RANLIB
6956   # Extract the first word of "ranlib", so it can be a program name with args.
6957 set dummy ranlib; ac_word=$2
6958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6960 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6961   echo $ECHO_N "(cached) $ECHO_C" >&6
6962 else
6963   if test -n "$ac_ct_RANLIB"; then
6964   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971   for ac_exec_ext in '' $ac_executable_extensions; do
6972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973     ac_cv_prog_ac_ct_RANLIB="ranlib"
6974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6981 fi
6982 fi
6983 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6984 if test -n "$ac_ct_RANLIB"; then
6985   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6986 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6987 else
6988   { echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6; }
6990 fi
6992   if test "x$ac_ct_RANLIB" = x; then
6993     RANLIB=":"
6994   else
6995     case $cross_compiling:$ac_tool_warned in
6996 yes:)
6997 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6998 whose name does not start with the host triplet.  If you think this
6999 configuration is useful to you, please write to autoconf@gnu.org." >&5
7000 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7001 whose name does not start with the host triplet.  If you think this
7002 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7003 ac_tool_warned=yes ;;
7004 esac
7005     RANLIB=$ac_ct_RANLIB
7006   fi
7007 else
7008   RANLIB="$ac_cv_prog_RANLIB"
7009 fi
7011 if test -n "$ac_tool_prefix"; then
7012   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7013 set dummy ${ac_tool_prefix}strip; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_prog_STRIP+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   if test -n "$STRIP"; then
7020   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025   IFS=$as_save_IFS
7026   test -z "$as_dir" && as_dir=.
7027   for ac_exec_ext in '' $ac_executable_extensions; do
7028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7031     break 2
7032   fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7037 fi
7038 fi
7039 STRIP=$ac_cv_prog_STRIP
7040 if test -n "$STRIP"; then
7041   { echo "$as_me:$LINENO: result: $STRIP" >&5
7042 echo "${ECHO_T}$STRIP" >&6; }
7043 else
7044   { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7046 fi
7049 fi
7050 if test -z "$ac_cv_prog_STRIP"; then
7051   ac_ct_STRIP=$STRIP
7052   # Extract the first word of "strip", so it can be a program name with args.
7053 set dummy strip; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   if test -n "$ac_ct_STRIP"; then
7060   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065   IFS=$as_save_IFS
7066   test -z "$as_dir" && as_dir=.
7067   for ac_exec_ext in '' $ac_executable_extensions; do
7068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069     ac_cv_prog_ac_ct_STRIP="strip"
7070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071     break 2
7072   fi
7073 done
7074 done
7075 IFS=$as_save_IFS
7077 fi
7078 fi
7079 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7080 if test -n "$ac_ct_STRIP"; then
7081   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7082 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7083 else
7084   { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7086 fi
7088   if test "x$ac_ct_STRIP" = x; then
7089     STRIP=":"
7090   else
7091     case $cross_compiling:$ac_tool_warned in
7092 yes:)
7093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7094 whose name does not start with the host triplet.  If you think this
7095 configuration is useful to you, please write to autoconf@gnu.org." >&5
7096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7097 whose name does not start with the host triplet.  If you think this
7098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7099 ac_tool_warned=yes ;;
7100 esac
7101     STRIP=$ac_ct_STRIP
7102   fi
7103 else
7104   STRIP="$ac_cv_prog_STRIP"
7105 fi
7108 old_CC="$CC"
7109 old_CFLAGS="$CFLAGS"
7111 # Set sane defaults for various variables
7112 test -z "$AR" && AR=ar
7113 test -z "$AR_FLAGS" && AR_FLAGS=cru
7114 test -z "$AS" && AS=as
7115 test -z "$CC" && CC=cc
7116 test -z "$LTCC" && LTCC=$CC
7117 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7118 test -z "$DLLTOOL" && DLLTOOL=dlltool
7119 test -z "$LD" && LD=ld
7120 test -z "$LN_S" && LN_S="ln -s"
7121 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7122 test -z "$NM" && NM=nm
7123 test -z "$SED" && SED=sed
7124 test -z "$OBJDUMP" && OBJDUMP=objdump
7125 test -z "$RANLIB" && RANLIB=:
7126 test -z "$STRIP" && STRIP=:
7127 test -z "$ac_objext" && ac_objext=o
7129 # Determine commands to create old-style static archives.
7130 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7131 old_postinstall_cmds='chmod 644 $oldlib'
7132 old_postuninstall_cmds=
7134 if test -n "$RANLIB"; then
7135   case $host_os in
7136   openbsd*)
7137     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7138     ;;
7139   *)
7140     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7141     ;;
7142   esac
7143   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7144 fi
7146 for cc_temp in $compiler""; do
7147   case $cc_temp in
7148     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7149     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7150     \-*) ;;
7151     *) break;;
7152   esac
7153 done
7154 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7157 # Only perform the check for file, if the check method requires it
7158 case $deplibs_check_method in
7159 file_magic*)
7160   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7161     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7162 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7163 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7164   echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166   case $MAGIC_CMD in
7167 [\\/*] |  ?:[\\/]*)
7168   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7169   ;;
7170 *)
7171   lt_save_MAGIC_CMD="$MAGIC_CMD"
7172   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7173   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7174   for ac_dir in $ac_dummy; do
7175     IFS="$lt_save_ifs"
7176     test -z "$ac_dir" && ac_dir=.
7177     if test -f $ac_dir/${ac_tool_prefix}file; then
7178       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7179       if test -n "$file_magic_test_file"; then
7180         case $deplibs_check_method in
7181         "file_magic "*)
7182           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7183           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7185             $EGREP "$file_magic_regex" > /dev/null; then
7186             :
7187           else
7188             cat <<EOF 1>&2
7190 *** Warning: the command libtool uses to detect shared libraries,
7191 *** $file_magic_cmd, produces output that libtool cannot recognize.
7192 *** The result is that libtool may fail to recognize shared libraries
7193 *** as such.  This will affect the creation of libtool libraries that
7194 *** depend on shared libraries, but programs linked with such libtool
7195 *** libraries will work regardless of this problem.  Nevertheless, you
7196 *** may want to report the problem to your system manager and/or to
7197 *** bug-libtool@gnu.org
7199 EOF
7200           fi ;;
7201         esac
7202       fi
7203       break
7204     fi
7205   done
7206   IFS="$lt_save_ifs"
7207   MAGIC_CMD="$lt_save_MAGIC_CMD"
7208   ;;
7209 esac
7210 fi
7212 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213 if test -n "$MAGIC_CMD"; then
7214   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7215 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7216 else
7217   { echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6; }
7219 fi
7221 if test -z "$lt_cv_path_MAGIC_CMD"; then
7222   if test -n "$ac_tool_prefix"; then
7223     { echo "$as_me:$LINENO: checking for file" >&5
7224 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7225 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7226   echo $ECHO_N "(cached) $ECHO_C" >&6
7227 else
7228   case $MAGIC_CMD in
7229 [\\/*] |  ?:[\\/]*)
7230   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7231   ;;
7232 *)
7233   lt_save_MAGIC_CMD="$MAGIC_CMD"
7234   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7235   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7236   for ac_dir in $ac_dummy; do
7237     IFS="$lt_save_ifs"
7238     test -z "$ac_dir" && ac_dir=.
7239     if test -f $ac_dir/file; then
7240       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7241       if test -n "$file_magic_test_file"; then
7242         case $deplibs_check_method in
7243         "file_magic "*)
7244           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7245           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7246           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7247             $EGREP "$file_magic_regex" > /dev/null; then
7248             :
7249           else
7250             cat <<EOF 1>&2
7252 *** Warning: the command libtool uses to detect shared libraries,
7253 *** $file_magic_cmd, produces output that libtool cannot recognize.
7254 *** The result is that libtool may fail to recognize shared libraries
7255 *** as such.  This will affect the creation of libtool libraries that
7256 *** depend on shared libraries, but programs linked with such libtool
7257 *** libraries will work regardless of this problem.  Nevertheless, you
7258 *** may want to report the problem to your system manager and/or to
7259 *** bug-libtool@gnu.org
7261 EOF
7262           fi ;;
7263         esac
7264       fi
7265       break
7266     fi
7267   done
7268   IFS="$lt_save_ifs"
7269   MAGIC_CMD="$lt_save_MAGIC_CMD"
7270   ;;
7271 esac
7272 fi
7274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7275 if test -n "$MAGIC_CMD"; then
7276   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7277 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7278 else
7279   { echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6; }
7281 fi
7283   else
7284     MAGIC_CMD=:
7285   fi
7286 fi
7288   fi
7289   ;;
7290 esac
7293   case $host_os in
7294     rhapsody* | darwin*)
7295     if test -n "$ac_tool_prefix"; then
7296   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7297 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7301   echo $ECHO_N "(cached) $ECHO_C" >&6
7302 else
7303   if test -n "$DSYMUTIL"; then
7304   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7305 else
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH
7308 do
7309   IFS=$as_save_IFS
7310   test -z "$as_dir" && as_dir=.
7311   for ac_exec_ext in '' $ac_executable_extensions; do
7312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7313     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7315     break 2
7316   fi
7317 done
7318 done
7319 IFS=$as_save_IFS
7321 fi
7322 fi
7323 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7324 if test -n "$DSYMUTIL"; then
7325   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7326 echo "${ECHO_T}$DSYMUTIL" >&6; }
7327 else
7328   { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7330 fi
7333 fi
7334 if test -z "$ac_cv_prog_DSYMUTIL"; then
7335   ac_ct_DSYMUTIL=$DSYMUTIL
7336   # Extract the first word of "dsymutil", so it can be a program name with args.
7337 set dummy dsymutil; ac_word=$2
7338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7340 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7341   echo $ECHO_N "(cached) $ECHO_C" >&6
7342 else
7343   if test -n "$ac_ct_DSYMUTIL"; then
7344   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7345 else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349   IFS=$as_save_IFS
7350   test -z "$as_dir" && as_dir=.
7351   for ac_exec_ext in '' $ac_executable_extensions; do
7352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7353     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7355     break 2
7356   fi
7357 done
7358 done
7359 IFS=$as_save_IFS
7361 fi
7362 fi
7363 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7364 if test -n "$ac_ct_DSYMUTIL"; then
7365   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7366 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7367 else
7368   { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7370 fi
7372   if test "x$ac_ct_DSYMUTIL" = x; then
7373     DSYMUTIL=":"
7374   else
7375     case $cross_compiling:$ac_tool_warned in
7376 yes:)
7377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7378 whose name does not start with the host triplet.  If you think this
7379 configuration is useful to you, please write to autoconf@gnu.org." >&5
7380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7381 whose name does not start with the host triplet.  If you think this
7382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7383 ac_tool_warned=yes ;;
7384 esac
7385     DSYMUTIL=$ac_ct_DSYMUTIL
7386   fi
7387 else
7388   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7389 fi
7391     if test -n "$ac_tool_prefix"; then
7392   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7393 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7396 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7397   echo $ECHO_N "(cached) $ECHO_C" >&6
7398 else
7399   if test -n "$NMEDIT"; then
7400   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407   for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414 done
7415 IFS=$as_save_IFS
7417 fi
7418 fi
7419 NMEDIT=$ac_cv_prog_NMEDIT
7420 if test -n "$NMEDIT"; then
7421   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7422 echo "${ECHO_T}$NMEDIT" >&6; }
7423 else
7424   { echo "$as_me:$LINENO: result: no" >&5
7425 echo "${ECHO_T}no" >&6; }
7426 fi
7429 fi
7430 if test -z "$ac_cv_prog_NMEDIT"; then
7431   ac_ct_NMEDIT=$NMEDIT
7432   # Extract the first word of "nmedit", so it can be a program name with args.
7433 set dummy nmedit; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   if test -n "$ac_ct_NMEDIT"; then
7440   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454 done
7455 IFS=$as_save_IFS
7457 fi
7458 fi
7459 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7460 if test -n "$ac_ct_NMEDIT"; then
7461   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7462 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7463 else
7464   { echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6; }
7466 fi
7468   if test "x$ac_ct_NMEDIT" = x; then
7469     NMEDIT=":"
7470   else
7471     case $cross_compiling:$ac_tool_warned in
7472 yes:)
7473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7474 whose name does not start with the host triplet.  If you think this
7475 configuration is useful to you, please write to autoconf@gnu.org." >&5
7476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7477 whose name does not start with the host triplet.  If you think this
7478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7479 ac_tool_warned=yes ;;
7480 esac
7481     NMEDIT=$ac_ct_NMEDIT
7482   fi
7483 else
7484   NMEDIT="$ac_cv_prog_NMEDIT"
7485 fi
7488     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7489 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7490 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   lt_cv_apple_cc_single_mod=no
7494       if test -z "${LT_MULTI_MODULE}"; then
7495    # By default we will add the -single_module flag. You can override
7496    # by either setting the environment variable LT_MULTI_MODULE
7497    # non-empty at configure time, or by adding -multi_module to the
7498    # link flags.
7499    echo "int foo(void){return 1;}" > conftest.c
7500    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7501      -dynamiclib ${wl}-single_module conftest.c
7502    if test -f libconftest.dylib; then
7503      lt_cv_apple_cc_single_mod=yes
7504      rm -rf libconftest.dylib*
7505    fi
7506    rm conftest.c
7507       fi
7508 fi
7509 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7510 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7511     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7512 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7513 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   lt_cv_ld_exported_symbols_list=no
7517       save_LDFLAGS=$LDFLAGS
7518       echo "_main" > conftest.sym
7519       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7520       cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h.  */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h.  */
7527 int
7528 main ()
7531   ;
7532   return 0;
7534 _ACEOF
7535 rm -f conftest.$ac_objext conftest$ac_exeext
7536 if { (ac_try="$ac_link"
7537 case "(($ac_try" in
7538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539   *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542   (eval "$ac_link") 2>conftest.er1
7543   ac_status=$?
7544   grep -v '^ *+' conftest.er1 >conftest.err
7545   rm -f conftest.er1
7546   cat conftest.err >&5
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); } && {
7549          test -z "$ac_c_werror_flag" ||
7550          test ! -s conftest.err
7551        } && test -s conftest$ac_exeext &&
7552        $as_test_x conftest$ac_exeext; then
7553   lt_cv_ld_exported_symbols_list=yes
7554 else
7555   echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.$ac_ext >&5
7558         lt_cv_ld_exported_symbols_list=no
7559 fi
7561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7562       conftest$ac_exeext conftest.$ac_ext
7563    LDFLAGS="$save_LDFLAGS"
7565 fi
7566 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7567 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7568     case $host_os in
7569     rhapsody* | darwin1.[0123])
7570       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7571     darwin1.*)
7572      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7573     darwin*)
7574       # if running on 10.5 or later, the deployment target defaults
7575       # to the OS version, if on x86, and 10.4, the deployment
7576       # target defaults to 10.4. Don't you love it?
7577       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7578    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7579      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7580    10.[012]*)
7581      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7582    10.*)
7583      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7584       esac
7585     ;;
7586   esac
7587     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7588       _lt_dar_single_mod='$single_module'
7589     fi
7590     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7591       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7592     else
7593       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7594     fi
7595     if test "$DSYMUTIL" != ":"; then
7596       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7597     else
7598       _lt_dsymutil=
7599     fi
7600     ;;
7601   esac
7604 enable_dlopen=no
7605 enable_win32_dll=no
7607 # Check whether --enable-libtool-lock was given.
7608 if test "${enable_libtool_lock+set}" = set; then
7609   enableval=$enable_libtool_lock;
7610 fi
7612 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7615 # Check whether --with-pic was given.
7616 if test "${with_pic+set}" = set; then
7617   withval=$with_pic; pic_mode="$withval"
7618 else
7619   pic_mode=default
7620 fi
7622 test -z "$pic_mode" && pic_mode=default
7624 # Use C for the default configuration in the libtool script
7625 tagname=
7626 lt_save_CC="$CC"
7627 ac_ext=c
7628 ac_cpp='$CPP $CPPFLAGS'
7629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7634 # Source file extension for C test sources.
7635 ac_ext=c
7637 # Object file extension for compiled C test sources.
7638 objext=o
7639 objext=$objext
7641 # Code to be used in simple compile tests
7642 lt_simple_compile_test_code="int some_variable = 0;"
7644 # Code to be used in simple link tests
7645 lt_simple_link_test_code='int main(){return(0);}'
7648 # If no C compiler was specified, use CC.
7649 LTCC=${LTCC-"$CC"}
7651 # If no C compiler flags were specified, use CFLAGS.
7652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7654 # Allow CC to be a program name with arguments.
7655 compiler=$CC
7658 # save warnings/boilerplate of simple test code
7659 ac_outfile=conftest.$ac_objext
7660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7662 _lt_compiler_boilerplate=`cat conftest.err`
7663 $rm conftest*
7665 ac_outfile=conftest.$ac_objext
7666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7668 _lt_linker_boilerplate=`cat conftest.err`
7669 $rm -r conftest*
7673 lt_prog_compiler_no_builtin_flag=
7675 if test "$GCC" = yes; then
7676   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7679 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7680 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7681 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7682   echo $ECHO_N "(cached) $ECHO_C" >&6
7683 else
7684   lt_cv_prog_compiler_rtti_exceptions=no
7685   ac_outfile=conftest.$ac_objext
7686    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7687    lt_compiler_flag="-fno-rtti -fno-exceptions"
7688    # Insert the option either (1) after the last *FLAGS variable, or
7689    # (2) before a word containing "conftest.", or (3) at the end.
7690    # Note that $ac_compile itself does not contain backslashes and begins
7691    # with a dollar sign (not a hyphen), so the echo should work correctly.
7692    # The option is referenced via a variable to avoid confusing sed.
7693    lt_compile=`echo "$ac_compile" | $SED \
7694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7696    -e 's:$: $lt_compiler_flag:'`
7697    (eval echo "\"\$as_me:7697: $lt_compile\"" >&5)
7698    (eval "$lt_compile" 2>conftest.err)
7699    ac_status=$?
7700    cat conftest.err >&5
7701    echo "$as_me:7701: \$? = $ac_status" >&5
7702    if (exit $ac_status) && test -s "$ac_outfile"; then
7703      # The compiler can only warn and ignore the option if not recognized
7704      # So say no if there are warnings other than the usual output.
7705      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7706      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7707      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7708        lt_cv_prog_compiler_rtti_exceptions=yes
7709      fi
7710    fi
7711    $rm conftest*
7713 fi
7714 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7715 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7717 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7718     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7719 else
7720     :
7721 fi
7723 fi
7725 lt_prog_compiler_wl=
7726 lt_prog_compiler_pic=
7727 lt_prog_compiler_static=
7729 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7730 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7732   if test "$GCC" = yes; then
7733     lt_prog_compiler_wl='-Wl,'
7734     lt_prog_compiler_static='-static'
7736     case $host_os in
7737       aix*)
7738       # All AIX code is PIC.
7739       if test "$host_cpu" = ia64; then
7740         # AIX 5 now supports IA64 processor
7741         lt_prog_compiler_static='-Bstatic'
7742       fi
7743       ;;
7745     amigaos*)
7746       # FIXME: we need at least 68020 code to build shared libraries, but
7747       # adding the `-m68020' flag to GCC prevents building anything better,
7748       # like `-m68040'.
7749       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7750       ;;
7752     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7753       # PIC is the default for these OSes.
7754       ;;
7756     mingw* | cygwin* | pw32* | os2*)
7757       # This hack is so that the source file can tell whether it is being
7758       # built for inclusion in a dll (and should export symbols for example).
7759       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7760       # (--disable-auto-import) libraries
7761       lt_prog_compiler_pic='-DDLL_EXPORT'
7762       ;;
7764     darwin* | rhapsody*)
7765       # PIC is the default on this platform
7766       # Common symbols not allowed in MH_DYLIB files
7767       lt_prog_compiler_pic='-fno-common'
7768       ;;
7770     interix[3-9]*)
7771       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7772       # Instead, we relocate shared libraries at runtime.
7773       ;;
7775     msdosdjgpp*)
7776       # Just because we use GCC doesn't mean we suddenly get shared libraries
7777       # on systems that don't support them.
7778       lt_prog_compiler_can_build_shared=no
7779       enable_shared=no
7780       ;;
7782     sysv4*MP*)
7783       if test -d /usr/nec; then
7784         lt_prog_compiler_pic=-Kconform_pic
7785       fi
7786       ;;
7788     hpux*)
7789       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7790       # not for PA HP-UX.
7791       case $host_cpu in
7792       hppa*64*|ia64*)
7793         # +Z the default
7794         ;;
7795       *)
7796         lt_prog_compiler_pic='-fPIC'
7797         ;;
7798       esac
7799       ;;
7801     *)
7802       lt_prog_compiler_pic='-fPIC'
7803       ;;
7804     esac
7805   else
7806     # PORTME Check for flag to pass linker flags through the system compiler.
7807     case $host_os in
7808     aix*)
7809       lt_prog_compiler_wl='-Wl,'
7810       if test "$host_cpu" = ia64; then
7811         # AIX 5 now supports IA64 processor
7812         lt_prog_compiler_static='-Bstatic'
7813       else
7814         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7815       fi
7816       ;;
7817       darwin*)
7818         # PIC is the default on this platform
7819         # Common symbols not allowed in MH_DYLIB files
7820        case $cc_basename in
7821          xlc*)
7822          lt_prog_compiler_pic='-qnocommon'
7823          lt_prog_compiler_wl='-Wl,'
7824          ;;
7825        esac
7826        ;;
7828     mingw* | cygwin* | pw32* | os2*)
7829       # This hack is so that the source file can tell whether it is being
7830       # built for inclusion in a dll (and should export symbols for example).
7831       lt_prog_compiler_pic='-DDLL_EXPORT'
7832       ;;
7834     hpux9* | hpux10* | hpux11*)
7835       lt_prog_compiler_wl='-Wl,'
7836       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7837       # not for PA HP-UX.
7838       case $host_cpu in
7839       hppa*64*|ia64*)
7840         # +Z the default
7841         ;;
7842       *)
7843         lt_prog_compiler_pic='+Z'
7844         ;;
7845       esac
7846       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7847       lt_prog_compiler_static='${wl}-a ${wl}archive'
7848       ;;
7850     irix5* | irix6* | nonstopux*)
7851       lt_prog_compiler_wl='-Wl,'
7852       # PIC (with -KPIC) is the default.
7853       lt_prog_compiler_static='-non_shared'
7854       ;;
7856     newsos6)
7857       lt_prog_compiler_pic='-KPIC'
7858       lt_prog_compiler_static='-Bstatic'
7859       ;;
7861     linux* | k*bsd*-gnu)
7862       case $cc_basename in
7863       icc* | ecc*)
7864         lt_prog_compiler_wl='-Wl,'
7865         lt_prog_compiler_pic='-KPIC'
7866         lt_prog_compiler_static='-static'
7867         ;;
7868       pgcc* | pgf77* | pgf90* | pgf95*)
7869         # Portland Group compilers (*not* the Pentium gcc compiler,
7870         # which looks to be a dead project)
7871         lt_prog_compiler_wl='-Wl,'
7872         lt_prog_compiler_pic='-fpic'
7873         lt_prog_compiler_static='-Bstatic'
7874         ;;
7875       ccc*)
7876         lt_prog_compiler_wl='-Wl,'
7877         # All Alpha code is PIC.
7878         lt_prog_compiler_static='-non_shared'
7879         ;;
7880       *)
7881         case `$CC -V 2>&1 | sed 5q` in
7882         *Sun\ C*)
7883           # Sun C 5.9
7884           lt_prog_compiler_pic='-KPIC'
7885           lt_prog_compiler_static='-Bstatic'
7886           lt_prog_compiler_wl='-Wl,'
7887           ;;
7888         *Sun\ F*)
7889           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7890           lt_prog_compiler_pic='-KPIC'
7891           lt_prog_compiler_static='-Bstatic'
7892           lt_prog_compiler_wl=''
7893           ;;
7894         esac
7895         ;;
7896       esac
7897       ;;
7899     osf3* | osf4* | osf5*)
7900       lt_prog_compiler_wl='-Wl,'
7901       # All OSF/1 code is PIC.
7902       lt_prog_compiler_static='-non_shared'
7903       ;;
7905     rdos*)
7906       lt_prog_compiler_static='-non_shared'
7907       ;;
7909     solaris*)
7910       lt_prog_compiler_pic='-KPIC'
7911       lt_prog_compiler_static='-Bstatic'
7912       case $cc_basename in
7913       f77* | f90* | f95*)
7914         lt_prog_compiler_wl='-Qoption ld ';;
7915       *)
7916         lt_prog_compiler_wl='-Wl,';;
7917       esac
7918       ;;
7920     sunos4*)
7921       lt_prog_compiler_wl='-Qoption ld '
7922       lt_prog_compiler_pic='-PIC'
7923       lt_prog_compiler_static='-Bstatic'
7924       ;;
7926     sysv4 | sysv4.2uw2* | sysv4.3*)
7927       lt_prog_compiler_wl='-Wl,'
7928       lt_prog_compiler_pic='-KPIC'
7929       lt_prog_compiler_static='-Bstatic'
7930       ;;
7932     sysv4*MP*)
7933       if test -d /usr/nec ;then
7934         lt_prog_compiler_pic='-Kconform_pic'
7935         lt_prog_compiler_static='-Bstatic'
7936       fi
7937       ;;
7939     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7940       lt_prog_compiler_wl='-Wl,'
7941       lt_prog_compiler_pic='-KPIC'
7942       lt_prog_compiler_static='-Bstatic'
7943       ;;
7945     unicos*)
7946       lt_prog_compiler_wl='-Wl,'
7947       lt_prog_compiler_can_build_shared=no
7948       ;;
7950     uts4*)
7951       lt_prog_compiler_pic='-pic'
7952       lt_prog_compiler_static='-Bstatic'
7953       ;;
7955     *)
7956       lt_prog_compiler_can_build_shared=no
7957       ;;
7958     esac
7959   fi
7961 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7962 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7965 # Check to make sure the PIC flag actually works.
7967 if test -n "$lt_prog_compiler_pic"; then
7969 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7970 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7971 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7972   echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974   lt_cv_prog_compiler_pic_works=no
7975   ac_outfile=conftest.$ac_objext
7976    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7977    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7978    # Insert the option either (1) after the last *FLAGS variable, or
7979    # (2) before a word containing "conftest.", or (3) at the end.
7980    # Note that $ac_compile itself does not contain backslashes and begins
7981    # with a dollar sign (not a hyphen), so the echo should work correctly.
7982    # The option is referenced via a variable to avoid confusing sed.
7983    lt_compile=`echo "$ac_compile" | $SED \
7984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7986    -e 's:$: $lt_compiler_flag:'`
7987    (eval echo "\"\$as_me:7987: $lt_compile\"" >&5)
7988    (eval "$lt_compile" 2>conftest.err)
7989    ac_status=$?
7990    cat conftest.err >&5
7991    echo "$as_me:7991: \$? = $ac_status" >&5
7992    if (exit $ac_status) && test -s "$ac_outfile"; then
7993      # The compiler can only warn and ignore the option if not recognized
7994      # So say no if there are warnings other than the usual output.
7995      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7996      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7997      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7998        lt_cv_prog_compiler_pic_works=yes
7999      fi
8000    fi
8001    $rm conftest*
8003 fi
8004 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8005 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8007 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8008     case $lt_prog_compiler_pic in
8009      "" | " "*) ;;
8010      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8011      esac
8012 else
8013     lt_prog_compiler_pic=
8014      lt_prog_compiler_can_build_shared=no
8015 fi
8017 fi
8018 case $host_os in
8019   # For platforms which do not support PIC, -DPIC is meaningless:
8020   *djgpp*)
8021     lt_prog_compiler_pic=
8022     ;;
8023   *)
8024     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8025     ;;
8026 esac
8029 # Check to make sure the static flag actually works.
8031 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8032 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8033 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8034 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8035   echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037   lt_cv_prog_compiler_static_works=no
8038    save_LDFLAGS="$LDFLAGS"
8039    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8040    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8041    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8042      # The linker can only warn and ignore the option if not recognized
8043      # So say no if there are warnings
8044      if test -s conftest.err; then
8045        # Append any errors to the config.log.
8046        cat conftest.err 1>&5
8047        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8048        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8049        if diff conftest.exp conftest.er2 >/dev/null; then
8050          lt_cv_prog_compiler_static_works=yes
8051        fi
8052      else
8053        lt_cv_prog_compiler_static_works=yes
8054      fi
8055    fi
8056    $rm -r conftest*
8057    LDFLAGS="$save_LDFLAGS"
8059 fi
8060 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8061 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8063 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8064     :
8065 else
8066     lt_prog_compiler_static=
8067 fi
8070 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8071 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8072 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8073   echo $ECHO_N "(cached) $ECHO_C" >&6
8074 else
8075   lt_cv_prog_compiler_c_o=no
8076    $rm -r conftest 2>/dev/null
8077    mkdir conftest
8078    cd conftest
8079    mkdir out
8080    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8082    lt_compiler_flag="-o out/conftest2.$ac_objext"
8083    # Insert the option either (1) after the last *FLAGS variable, or
8084    # (2) before a word containing "conftest.", or (3) at the end.
8085    # Note that $ac_compile itself does not contain backslashes and begins
8086    # with a dollar sign (not a hyphen), so the echo should work correctly.
8087    lt_compile=`echo "$ac_compile" | $SED \
8088    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8089    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8090    -e 's:$: $lt_compiler_flag:'`
8091    (eval echo "\"\$as_me:8091: $lt_compile\"" >&5)
8092    (eval "$lt_compile" 2>out/conftest.err)
8093    ac_status=$?
8094    cat out/conftest.err >&5
8095    echo "$as_me:8095: \$? = $ac_status" >&5
8096    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8097    then
8098      # The compiler can only warn and ignore the option if not recognized
8099      # So say no if there are warnings
8100      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8101      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8102      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8103        lt_cv_prog_compiler_c_o=yes
8104      fi
8105    fi
8106    chmod u+w . 2>&5
8107    $rm conftest*
8108    # SGI C++ compiler will create directory out/ii_files/ for
8109    # template instantiation
8110    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8111    $rm out/* && rmdir out
8112    cd ..
8113    rmdir conftest
8114    $rm conftest*
8116 fi
8117 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8118 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8121 hard_links="nottested"
8122 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8123   # do not overwrite the value of need_locks provided by the user
8124   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8125 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8126   hard_links=yes
8127   $rm conftest*
8128   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8129   touch conftest.a
8130   ln conftest.a conftest.b 2>&5 || hard_links=no
8131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8132   { echo "$as_me:$LINENO: result: $hard_links" >&5
8133 echo "${ECHO_T}$hard_links" >&6; }
8134   if test "$hard_links" = no; then
8135     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8136 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8137     need_locks=warn
8138   fi
8139 else
8140   need_locks=no
8141 fi
8143 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8144 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8146   runpath_var=
8147   allow_undefined_flag=
8148   enable_shared_with_static_runtimes=no
8149   archive_cmds=
8150   archive_expsym_cmds=
8151   old_archive_From_new_cmds=
8152   old_archive_from_expsyms_cmds=
8153   export_dynamic_flag_spec=
8154   whole_archive_flag_spec=
8155   thread_safe_flag_spec=
8156   hardcode_libdir_flag_spec=
8157   hardcode_libdir_flag_spec_ld=
8158   hardcode_libdir_separator=
8159   hardcode_direct=no
8160   hardcode_minus_L=no
8161   hardcode_shlibpath_var=unsupported
8162   link_all_deplibs=unknown
8163   hardcode_automatic=no
8164   module_cmds=
8165   module_expsym_cmds=
8166   always_export_symbols=no
8167   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8168   # include_expsyms should be a list of space-separated symbols to be *always*
8169   # included in the symbol list
8170   include_expsyms=
8171   # exclude_expsyms can be an extended regexp of symbols to exclude
8172   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8173   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8174   # as well as any symbol that contains `d'.
8175   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8176   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8177   # platforms (ab)use it in PIC code, but their linkers get confused if
8178   # the symbol is explicitly referenced.  Since portable code cannot
8179   # rely on this symbol name, it's probably fine to never include it in
8180   # preloaded symbol tables.
8181   # Exclude shared library initialization/finalization symbols.
8182   extract_expsyms_cmds=
8183   # Just being paranoid about ensuring that cc_basename is set.
8184   for cc_temp in $compiler""; do
8185   case $cc_temp in
8186     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8187     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8188     \-*) ;;
8189     *) break;;
8190   esac
8191 done
8192 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8194   case $host_os in
8195   cygwin* | mingw* | pw32*)
8196     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8197     # When not using gcc, we currently assume that we are using
8198     # Microsoft Visual C++.
8199     if test "$GCC" != yes; then
8200       with_gnu_ld=no
8201     fi
8202     ;;
8203   interix*)
8204     # we just hope/assume this is gcc and not c89 (= MSVC++)
8205     with_gnu_ld=yes
8206     ;;
8207   openbsd*)
8208     with_gnu_ld=no
8209     ;;
8210   esac
8212   ld_shlibs=yes
8213   if test "$with_gnu_ld" = yes; then
8214     # If archive_cmds runs LD, not CC, wlarc should be empty
8215     wlarc='${wl}'
8217     # Set some defaults for GNU ld with shared library support. These
8218     # are reset later if shared libraries are not supported. Putting them
8219     # here allows them to be overridden if necessary.
8220     runpath_var=LD_RUN_PATH
8221     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8222     export_dynamic_flag_spec='${wl}--export-dynamic'
8223     # ancient GNU ld didn't support --whole-archive et. al.
8224     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8225         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8226       else
8227         whole_archive_flag_spec=
8228     fi
8229     supports_anon_versioning=no
8230     case `$LD -v 2>/dev/null` in
8231       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8232       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8233       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8234       *\ 2.11.*) ;; # other 2.11 versions
8235       *) supports_anon_versioning=yes ;;
8236     esac
8238     # See if GNU ld supports shared libraries.
8239     case $host_os in
8240     aix[3-9]*)
8241       # On AIX/PPC, the GNU linker is very broken
8242       if test "$host_cpu" != ia64; then
8243         ld_shlibs=no
8244         cat <<EOF 1>&2
8246 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8247 *** to be unable to reliably create shared libraries on AIX.
8248 *** Therefore, libtool is disabling shared libraries support.  If you
8249 *** really care for shared libraries, you may want to modify your PATH
8250 *** so that a non-GNU linker is found, and then restart.
8252 EOF
8253       fi
8254       ;;
8256     amigaos*)
8257       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)'
8258       hardcode_libdir_flag_spec='-L$libdir'
8259       hardcode_minus_L=yes
8261       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8262       # that the semantics of dynamic libraries on AmigaOS, at least up
8263       # to version 4, is to share data among multiple programs linked
8264       # with the same dynamic library.  Since this doesn't match the
8265       # behavior of shared libraries on other platforms, we can't use
8266       # them.
8267       ld_shlibs=no
8268       ;;
8270     beos*)
8271       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8272         allow_undefined_flag=unsupported
8273         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8274         # support --undefined.  This deserves some investigation.  FIXME
8275         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8276       else
8277         ld_shlibs=no
8278       fi
8279       ;;
8281     cygwin* | mingw* | pw32*)
8282       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8283       # as there is no search path for DLLs.
8284       hardcode_libdir_flag_spec='-L$libdir'
8285       allow_undefined_flag=unsupported
8286       always_export_symbols=no
8287       enable_shared_with_static_runtimes=yes
8288       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8290       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8291         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8292         # If the export-symbols file already is a .def file (1st line
8293         # is EXPORTS), use it as is; otherwise, prepend...
8294         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8295           cp $export_symbols $output_objdir/$soname.def;
8296         else
8297           echo EXPORTS > $output_objdir/$soname.def;
8298           cat $export_symbols >> $output_objdir/$soname.def;
8299         fi~
8300         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8301       else
8302         ld_shlibs=no
8303       fi
8304       ;;
8306     interix[3-9]*)
8307       hardcode_direct=no
8308       hardcode_shlibpath_var=no
8309       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8310       export_dynamic_flag_spec='${wl}-E'
8311       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8312       # Instead, shared libraries are loaded at an image base (0x10000000 by
8313       # default) and relocated if they conflict, which is a slow very memory
8314       # consuming and fragmenting process.  To avoid this, we pick a random,
8315       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8316       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8317       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8318       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'
8319       ;;
8321     gnu* | linux* | k*bsd*-gnu)
8322       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8323         tmp_addflag=
8324         case $cc_basename,$host_cpu in
8325         pgcc*)                          # Portland Group C compiler
8326           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'
8327           tmp_addflag=' $pic_flag'
8328           ;;
8329         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
8332         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8333           tmp_addflag=' -i_dynamic' ;;
8334         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8335           tmp_addflag=' -i_dynamic -nofor_main' ;;
8336         ifc* | ifort*)                  # Intel Fortran compiler
8337           tmp_addflag=' -nofor_main' ;;
8338         esac
8339         case `$CC -V 2>&1 | sed 5q` in
8340         *Sun\ C*)                       # Sun C 5.9
8341           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'
8342           tmp_sharedflag='-G' ;;
8343         *Sun\ F*)                       # Sun Fortran 8.3
8344           tmp_sharedflag='-G' ;;
8345         *)
8346           tmp_sharedflag='-shared' ;;
8347         esac
8348         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8350         if test $supports_anon_versioning = yes; then
8351           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8352   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8353   $echo "local: *; };" >> $output_objdir/$libname.ver~
8354           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8355         fi
8356         link_all_deplibs=no
8357       else
8358         ld_shlibs=no
8359       fi
8360       ;;
8362     netbsd* | netbsdelf*-gnu)
8363       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8364         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8365         wlarc=
8366       else
8367         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8368         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8369       fi
8370       ;;
8372     solaris*)
8373       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8374         ld_shlibs=no
8375         cat <<EOF 1>&2
8377 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8378 *** create shared libraries on Solaris systems.  Therefore, libtool
8379 *** is disabling shared libraries support.  We urge you to upgrade GNU
8380 *** binutils to release 2.9.1 or newer.  Another option is to modify
8381 *** your PATH or compiler configuration so that the native linker is
8382 *** used, and then restart.
8384 EOF
8385       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8386         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8387         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8388       else
8389         ld_shlibs=no
8390       fi
8391       ;;
8393     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8394       case `$LD -v 2>&1` in
8395         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8396         ld_shlibs=no
8397         cat <<_LT_EOF 1>&2
8399 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8400 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8401 *** is disabling shared libraries support.  We urge you to upgrade GNU
8402 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8403 *** your PATH or compiler configuration so that the native linker is
8404 *** used, and then restart.
8406 _LT_EOF
8407         ;;
8408         *)
8409           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8410             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8411             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8412             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8413           else
8414             ld_shlibs=no
8415           fi
8416         ;;
8417       esac
8418       ;;
8420     sunos4*)
8421       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8422       wlarc=
8423       hardcode_direct=yes
8424       hardcode_shlibpath_var=no
8425       ;;
8427     *)
8428       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8429         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8430         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8431       else
8432         ld_shlibs=no
8433       fi
8434       ;;
8435     esac
8437     if test "$ld_shlibs" = no; then
8438       runpath_var=
8439       hardcode_libdir_flag_spec=
8440       export_dynamic_flag_spec=
8441       whole_archive_flag_spec=
8442     fi
8443   else
8444     # PORTME fill in a description of your system's linker (not GNU ld)
8445     case $host_os in
8446     aix3*)
8447       allow_undefined_flag=unsupported
8448       always_export_symbols=yes
8449       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'
8450       # Note: this linker hardcodes the directories in LIBPATH if there
8451       # are no directories specified by -L.
8452       hardcode_minus_L=yes
8453       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8454         # Neither direct hardcoding nor static linking is supported with a
8455         # broken collect2.
8456         hardcode_direct=unsupported
8457       fi
8458       ;;
8460     aix[4-9]*)
8461       if test "$host_cpu" = ia64; then
8462         # On IA64, the linker does run time linking by default, so we don't
8463         # have to do anything special.
8464         aix_use_runtimelinking=no
8465         exp_sym_flag='-Bexport'
8466         no_entry_flag=""
8467       else
8468         # If we're using GNU nm, then we don't want the "-C" option.
8469         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8470         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8471           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'
8472         else
8473           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'
8474         fi
8475         aix_use_runtimelinking=no
8477         # Test if we are trying to use run time linking or normal
8478         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8479         # need to do runtime linking.
8480         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8481           for ld_flag in $LDFLAGS; do
8482           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8483             aix_use_runtimelinking=yes
8484             break
8485           fi
8486           done
8487           ;;
8488         esac
8490         exp_sym_flag='-bexport'
8491         no_entry_flag='-bnoentry'
8492       fi
8494       # When large executables or shared objects are built, AIX ld can
8495       # have problems creating the table of contents.  If linking a library
8496       # or program results in "error TOC overflow" add -mminimal-toc to
8497       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8498       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8500       archive_cmds=''
8501       hardcode_direct=yes
8502       hardcode_libdir_separator=':'
8503       link_all_deplibs=yes
8505       if test "$GCC" = yes; then
8506         case $host_os in aix4.[012]|aix4.[012].*)
8507         # We only want to do this on AIX 4.2 and lower, the check
8508         # below for broken collect2 doesn't work under 4.3+
8509           collect2name=`${CC} -print-prog-name=collect2`
8510           if test -f "$collect2name" && \
8511            strings "$collect2name" | grep resolve_lib_name >/dev/null
8512           then
8513           # We have reworked collect2
8514           :
8515           else
8516           # We have old collect2
8517           hardcode_direct=unsupported
8518           # It fails to find uninstalled libraries when the uninstalled
8519           # path is not listed in the libpath.  Setting hardcode_minus_L
8520           # to unsupported forces relinking
8521           hardcode_minus_L=yes
8522           hardcode_libdir_flag_spec='-L$libdir'
8523           hardcode_libdir_separator=
8524           fi
8525           ;;
8526         esac
8527         shared_flag='-shared'
8528         if test "$aix_use_runtimelinking" = yes; then
8529           shared_flag="$shared_flag "'${wl}-G'
8530         fi
8531       else
8532         # not using gcc
8533         if test "$host_cpu" = ia64; then
8534         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8535         # chokes on -Wl,-G. The following line is correct:
8536           shared_flag='-G'
8537         else
8538           if test "$aix_use_runtimelinking" = yes; then
8539             shared_flag='${wl}-G'
8540           else
8541             shared_flag='${wl}-bM:SRE'
8542           fi
8543         fi
8544       fi
8546       # It seems that -bexpall does not export symbols beginning with
8547       # underscore (_), so it is better to generate a list of symbols to export.
8548       always_export_symbols=yes
8549       if test "$aix_use_runtimelinking" = yes; then
8550         # Warning - without using the other runtime loading flags (-brtl),
8551         # -berok will link without error, but may produce a broken library.
8552         allow_undefined_flag='-berok'
8553        # Determine the default libpath from the value encoded in an empty executable.
8554        cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h.  */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h.  */
8561 int
8562 main ()
8565   ;
8566   return 0;
8568 _ACEOF
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (ac_try="$ac_link"
8571 case "(($ac_try" in
8572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8573   *) ac_try_echo=$ac_try;;
8574 esac
8575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8576   (eval "$ac_link") 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } && {
8583          test -z "$ac_c_werror_flag" ||
8584          test ! -s conftest.err
8585        } && test -s conftest$ac_exeext &&
8586        $as_test_x conftest$ac_exeext; then
8588 lt_aix_libpath_sed='
8589     /Import File Strings/,/^$/ {
8590         /^0/ {
8591             s/^0  *\(.*\)$/\1/
8592             p
8593         }
8594     }'
8595 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8596 # Check for a 64-bit object if we didn't find anything.
8597 if test -z "$aix_libpath"; then
8598   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8599 fi
8600 else
8601   echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8605 fi
8607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8608       conftest$ac_exeext conftest.$ac_ext
8609 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8611        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8612         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"
8613        else
8614         if test "$host_cpu" = ia64; then
8615           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8616           allow_undefined_flag="-z nodefs"
8617           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"
8618         else
8619          # Determine the default libpath from the value encoded in an empty executable.
8620          cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h.  */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h.  */
8627 int
8628 main ()
8631   ;
8632   return 0;
8634 _ACEOF
8635 rm -f conftest.$ac_objext conftest$ac_exeext
8636 if { (ac_try="$ac_link"
8637 case "(($ac_try" in
8638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639   *) ac_try_echo=$ac_try;;
8640 esac
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642   (eval "$ac_link") 2>conftest.er1
8643   ac_status=$?
8644   grep -v '^ *+' conftest.er1 >conftest.err
8645   rm -f conftest.er1
8646   cat conftest.err >&5
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); } && {
8649          test -z "$ac_c_werror_flag" ||
8650          test ! -s conftest.err
8651        } && test -s conftest$ac_exeext &&
8652        $as_test_x conftest$ac_exeext; then
8654 lt_aix_libpath_sed='
8655     /Import File Strings/,/^$/ {
8656         /^0/ {
8657             s/^0  *\(.*\)$/\1/
8658             p
8659         }
8660     }'
8661 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8662 # Check for a 64-bit object if we didn't find anything.
8663 if test -z "$aix_libpath"; then
8664   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8665 fi
8666 else
8667   echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8671 fi
8673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8674       conftest$ac_exeext conftest.$ac_ext
8675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8677          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8678           # Warning - without using the other run time loading flags,
8679           # -berok will link without error, but may produce a broken library.
8680           no_undefined_flag=' ${wl}-bernotok'
8681           allow_undefined_flag=' ${wl}-berok'
8682           # Exported symbols can be pulled into shared objects from archives
8683           whole_archive_flag_spec='$convenience'
8684           archive_cmds_need_lc=yes
8685           # This is similar to how AIX traditionally builds its shared libraries.
8686           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'
8687         fi
8688       fi
8689       ;;
8691     amigaos*)
8692       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)'
8693       hardcode_libdir_flag_spec='-L$libdir'
8694       hardcode_minus_L=yes
8695       # see comment about different semantics on the GNU ld section
8696       ld_shlibs=no
8697       ;;
8699     bsdi[45]*)
8700       export_dynamic_flag_spec=-rdynamic
8701       ;;
8703     cygwin* | mingw* | pw32*)
8704       # When not using gcc, we currently assume that we are using
8705       # Microsoft Visual C++.
8706       # hardcode_libdir_flag_spec is actually meaningless, as there is
8707       # no search path for DLLs.
8708       hardcode_libdir_flag_spec=' '
8709       allow_undefined_flag=unsupported
8710       # Tell ltmain to make .lib files, not .a files.
8711       libext=lib
8712       # Tell ltmain to make .dll files, not .so files.
8713       shrext_cmds=".dll"
8714       # FIXME: Setting linknames here is a bad hack.
8715       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8716       # The linker will automatically build a .lib file if we build a DLL.
8717       old_archive_From_new_cmds='true'
8718       # FIXME: Should let the user specify the lib program.
8719       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8720       fix_srcfile_path='`cygpath -w "$srcfile"`'
8721       enable_shared_with_static_runtimes=yes
8722       ;;
8724     darwin* | rhapsody*)
8725       case $host_os in
8726         rhapsody* | darwin1.[012])
8727          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8728          ;;
8729        *) # Darwin 1.3 on
8730          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8731            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8732          else
8733            case ${MACOSX_DEPLOYMENT_TARGET} in
8734              10.[012])
8735                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8736                ;;
8737              10.*)
8738                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8739                ;;
8740            esac
8741          fi
8742          ;;
8743       esac
8744       archive_cmds_need_lc=no
8745       hardcode_direct=no
8746       hardcode_automatic=yes
8747       hardcode_shlibpath_var=unsupported
8748       whole_archive_flag_spec=''
8749       link_all_deplibs=yes
8750     if test "$GCC" = yes ; then
8751         output_verbose_link_cmd='echo'
8752         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8753         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8754         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}"
8755         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}"
8756     else
8757       case $cc_basename in
8758         xlc*)
8759          output_verbose_link_cmd='echo'
8760          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8761          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8762           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8763          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}'
8764           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}'
8765           ;;
8766        *)
8767          ld_shlibs=no
8768           ;;
8769       esac
8770     fi
8771       ;;
8773     dgux*)
8774       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8775       hardcode_libdir_flag_spec='-L$libdir'
8776       hardcode_shlibpath_var=no
8777       ;;
8779     freebsd1*)
8780       ld_shlibs=no
8781       ;;
8783     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8784     # support.  Future versions do this automatically, but an explicit c++rt0.o
8785     # does not break anything, and helps significantly (at the cost of a little
8786     # extra space).
8787     freebsd2.2*)
8788       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8789       hardcode_libdir_flag_spec='-R$libdir'
8790       hardcode_direct=yes
8791       hardcode_shlibpath_var=no
8792       ;;
8794     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8795     freebsd2*)
8796       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8797       hardcode_direct=yes
8798       hardcode_minus_L=yes
8799       hardcode_shlibpath_var=no
8800       ;;
8802     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8803     freebsd* | dragonfly*)
8804       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8805       hardcode_libdir_flag_spec='-R$libdir'
8806       hardcode_direct=yes
8807       hardcode_shlibpath_var=no
8808       ;;
8810     hpux9*)
8811       if test "$GCC" = yes; then
8812         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'
8813       else
8814         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'
8815       fi
8816       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8817       hardcode_libdir_separator=:
8818       hardcode_direct=yes
8820       # hardcode_minus_L: Not really in the search PATH,
8821       # but as the default location of the library.
8822       hardcode_minus_L=yes
8823       export_dynamic_flag_spec='${wl}-E'
8824       ;;
8826     hpux10*)
8827       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8828         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8829       else
8830         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8831       fi
8832       if test "$with_gnu_ld" = no; then
8833         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8834         hardcode_libdir_separator=:
8836         hardcode_direct=yes
8837         export_dynamic_flag_spec='${wl}-E'
8839         # hardcode_minus_L: Not really in the search PATH,
8840         # but as the default location of the library.
8841         hardcode_minus_L=yes
8842       fi
8843       ;;
8845     hpux11*)
8846       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8847         case $host_cpu in
8848         hppa*64*)
8849           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8850           ;;
8851         ia64*)
8852           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8853           ;;
8854         *)
8855           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8856           ;;
8857         esac
8858       else
8859         case $host_cpu in
8860         hppa*64*)
8861           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8862           ;;
8863         ia64*)
8864           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8865           ;;
8866         *)
8867           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8868           ;;
8869         esac
8870       fi
8871       if test "$with_gnu_ld" = no; then
8872         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8873         hardcode_libdir_separator=:
8875         case $host_cpu in
8876         hppa*64*|ia64*)
8877           hardcode_libdir_flag_spec_ld='+b $libdir'
8878           hardcode_direct=no
8879           hardcode_shlibpath_var=no
8880           ;;
8881         *)
8882           hardcode_direct=yes
8883           export_dynamic_flag_spec='${wl}-E'
8885           # hardcode_minus_L: Not really in the search PATH,
8886           # but as the default location of the library.
8887           hardcode_minus_L=yes
8888           ;;
8889         esac
8890       fi
8891       ;;
8893     irix5* | irix6* | nonstopux*)
8894       if test "$GCC" = yes; then
8895         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'
8896       else
8897         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'
8898         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8899       fi
8900       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8901       hardcode_libdir_separator=:
8902       link_all_deplibs=yes
8903       ;;
8905     netbsd* | netbsdelf*-gnu)
8906       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8907         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8908       else
8909         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8910       fi
8911       hardcode_libdir_flag_spec='-R$libdir'
8912       hardcode_direct=yes
8913       hardcode_shlibpath_var=no
8914       ;;
8916     newsos6)
8917       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918       hardcode_direct=yes
8919       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8920       hardcode_libdir_separator=:
8921       hardcode_shlibpath_var=no
8922       ;;
8924     openbsd*)
8925       if test -f /usr/libexec/ld.so; then
8926         hardcode_direct=yes
8927         hardcode_shlibpath_var=no
8928         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8929           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8930           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8931           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8932           export_dynamic_flag_spec='${wl}-E'
8933         else
8934           case $host_os in
8935            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8936              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8937              hardcode_libdir_flag_spec='-R$libdir'
8938              ;;
8939            *)
8940              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8941              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8942              ;;
8943           esac
8944         fi
8945       else
8946         ld_shlibs=no
8947       fi
8948       ;;
8950     os2*)
8951       hardcode_libdir_flag_spec='-L$libdir'
8952       hardcode_minus_L=yes
8953       allow_undefined_flag=unsupported
8954       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'
8955       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8956       ;;
8958     osf3*)
8959       if test "$GCC" = yes; then
8960         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8961         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'
8962       else
8963         allow_undefined_flag=' -expect_unresolved \*'
8964         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'
8965       fi
8966       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967       hardcode_libdir_separator=:
8968       ;;
8970     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8971       if test "$GCC" = yes; then
8972         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8973         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'
8974         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975       else
8976         allow_undefined_flag=' -expect_unresolved \*'
8977         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'
8978         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8979         $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'
8981         # Both c and cxx compiler support -rpath directly
8982         hardcode_libdir_flag_spec='-rpath $libdir'
8983       fi
8984       hardcode_libdir_separator=:
8985       ;;
8987     solaris*)
8988       no_undefined_flag=' -z text'
8989       if test "$GCC" = yes; then
8990         wlarc='${wl}'
8991         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8992         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8993           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8994       else
8995         wlarc=''
8996         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8998         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8999       fi
9000       hardcode_libdir_flag_spec='-R$libdir'
9001       hardcode_shlibpath_var=no
9002       case $host_os in
9003       solaris2.[0-5] | solaris2.[0-5].*) ;;
9004       *)
9005         # The compiler driver will combine and reorder linker options,
9006         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9007         # but is careful enough not to reorder.
9008         # Supported since Solaris 2.6 (maybe 2.5.1?)
9009         if test "$GCC" = yes; then
9010           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9011         else
9012           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9013         fi
9014         ;;
9015       esac
9016       link_all_deplibs=yes
9017       ;;
9019     sunos4*)
9020       if test "x$host_vendor" = xsequent; then
9021         # Use $CC to link under sequent, because it throws in some extra .o
9022         # files that make .init and .fini sections work.
9023         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9024       else
9025         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9026       fi
9027       hardcode_libdir_flag_spec='-L$libdir'
9028       hardcode_direct=yes
9029       hardcode_minus_L=yes
9030       hardcode_shlibpath_var=no
9031       ;;
9033     sysv4)
9034       case $host_vendor in
9035         sni)
9036           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037           hardcode_direct=yes # is this really true???
9038         ;;
9039         siemens)
9040           ## LD is ld it makes a PLAMLIB
9041           ## CC just makes a GrossModule.
9042           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9043           reload_cmds='$CC -r -o $output$reload_objs'
9044           hardcode_direct=no
9045         ;;
9046         motorola)
9047           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9049         ;;
9050       esac
9051       runpath_var='LD_RUN_PATH'
9052       hardcode_shlibpath_var=no
9053       ;;
9055     sysv4.3*)
9056       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9057       hardcode_shlibpath_var=no
9058       export_dynamic_flag_spec='-Bexport'
9059       ;;
9061     sysv4*MP*)
9062       if test -d /usr/nec; then
9063         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9064         hardcode_shlibpath_var=no
9065         runpath_var=LD_RUN_PATH
9066         hardcode_runpath_var=yes
9067         ld_shlibs=yes
9068       fi
9069       ;;
9071     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9072       no_undefined_flag='${wl}-z,text'
9073       archive_cmds_need_lc=no
9074       hardcode_shlibpath_var=no
9075       runpath_var='LD_RUN_PATH'
9077       if test "$GCC" = yes; then
9078         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9079         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9080       else
9081         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083       fi
9084       ;;
9086     sysv5* | sco3.2v5* | sco5v6*)
9087       # Note: We can NOT use -z defs as we might desire, because we do not
9088       # link with -lc, and that would cause any symbols used from libc to
9089       # always be unresolved, which means just about no library would
9090       # ever link correctly.  If we're not using GNU ld we use -z text
9091       # though, which does catch some bad symbols but isn't as heavy-handed
9092       # as -z defs.
9093       no_undefined_flag='${wl}-z,text'
9094       allow_undefined_flag='${wl}-z,nodefs'
9095       archive_cmds_need_lc=no
9096       hardcode_shlibpath_var=no
9097       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9098       hardcode_libdir_separator=':'
9099       link_all_deplibs=yes
9100       export_dynamic_flag_spec='${wl}-Bexport'
9101       runpath_var='LD_RUN_PATH'
9103       if test "$GCC" = yes; then
9104         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9105         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106       else
9107         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9108         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109       fi
9110       ;;
9112     uts4*)
9113       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9114       hardcode_libdir_flag_spec='-L$libdir'
9115       hardcode_shlibpath_var=no
9116       ;;
9118     *)
9119       ld_shlibs=no
9120       ;;
9121     esac
9122   fi
9124 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9125 echo "${ECHO_T}$ld_shlibs" >&6; }
9126 test "$ld_shlibs" = no && can_build_shared=no
9129 # Do we need to explicitly link libc?
9131 case "x$archive_cmds_need_lc" in
9132 x|xyes)
9133   # Assume -lc should be added
9134   archive_cmds_need_lc=yes
9136   if test "$enable_shared" = yes && test "$GCC" = yes; then
9137     case $archive_cmds in
9138     *'~'*)
9139       # FIXME: we may have to deal with multi-command sequences.
9140       ;;
9141     '$CC '*)
9142       # Test whether the compiler implicitly links with -lc since on some
9143       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9144       # to ld, don't add -lc before -lgcc.
9145       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9146 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9147       $rm conftest*
9148       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9151   (eval $ac_compile) 2>&5
9152   ac_status=$?
9153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154   (exit $ac_status); } 2>conftest.err; then
9155         soname=conftest
9156         lib=conftest
9157         libobjs=conftest.$ac_objext
9158         deplibs=
9159         wl=$lt_prog_compiler_wl
9160         pic_flag=$lt_prog_compiler_pic
9161         compiler_flags=-v
9162         linker_flags=-v
9163         verstring=
9164         output_objdir=.
9165         libname=conftest
9166         lt_save_allow_undefined_flag=$allow_undefined_flag
9167         allow_undefined_flag=
9168         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9169   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9170   ac_status=$?
9171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172   (exit $ac_status); }
9173         then
9174           archive_cmds_need_lc=no
9175         else
9176           archive_cmds_need_lc=yes
9177         fi
9178         allow_undefined_flag=$lt_save_allow_undefined_flag
9179       else
9180         cat conftest.err 1>&5
9181       fi
9182       $rm conftest*
9183       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9184 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9185       ;;
9186     esac
9187   fi
9188   ;;
9189 esac
9191 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9192 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9193 library_names_spec=
9194 libname_spec='lib$name'
9195 soname_spec=
9196 shrext_cmds=".so"
9197 postinstall_cmds=
9198 postuninstall_cmds=
9199 finish_cmds=
9200 finish_eval=
9201 shlibpath_var=
9202 shlibpath_overrides_runpath=unknown
9203 version_type=none
9204 dynamic_linker="$host_os ld.so"
9205 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9207 if test "$GCC" = yes; then
9208   case $host_os in
9209     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9210     *) lt_awk_arg="/^libraries:/" ;;
9211   esac
9212   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9213   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9214     # if the path contains ";" then we assume it to be the separator
9215     # otherwise default to the standard path separator (i.e. ":") - it is
9216     # assumed that no part of a normal pathname contains ";" but that should
9217     # okay in the real world where ";" in dirpaths is itself problematic.
9218     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9219   else
9220     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9221   fi
9222   # Ok, now we have the path, separated by spaces, we can step through it
9223   # and add multilib dir if necessary.
9224   lt_tmp_lt_search_path_spec=
9225   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9226   for lt_sys_path in $lt_search_path_spec; do
9227     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9228       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9229     else
9230       test -d "$lt_sys_path" && \
9231         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9232     fi
9233   done
9234   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9235 BEGIN {RS=" "; FS="/|\n";} {
9236   lt_foo="";
9237   lt_count=0;
9238   for (lt_i = NF; lt_i > 0; lt_i--) {
9239     if ($lt_i != "" && $lt_i != ".") {
9240       if ($lt_i == "..") {
9241         lt_count++;
9242       } else {
9243         if (lt_count == 0) {
9244           lt_foo="/" $lt_i lt_foo;
9245         } else {
9246           lt_count--;
9247         }
9248       }
9249     }
9250   }
9251   if (lt_foo != "") { lt_freq[lt_foo]++; }
9252   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9253 }'`
9254   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9255 else
9256   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9257 fi
9258 need_lib_prefix=unknown
9259 hardcode_into_libs=no
9261 # when you set need_version to no, make sure it does not cause -set_version
9262 # flags to be left without arguments
9263 need_version=unknown
9265 case $host_os in
9266 aix3*)
9267   version_type=linux
9268   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9269   shlibpath_var=LIBPATH
9271   # AIX 3 has no versioning support, so we append a major version to the name.
9272   soname_spec='${libname}${release}${shared_ext}$major'
9273   ;;
9275 aix[4-9]*)
9276   version_type=linux
9277   need_lib_prefix=no
9278   need_version=no
9279   hardcode_into_libs=yes
9280   if test "$host_cpu" = ia64; then
9281     # AIX 5 supports IA64
9282     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9283     shlibpath_var=LD_LIBRARY_PATH
9284   else
9285     # With GCC up to 2.95.x, collect2 would create an import file
9286     # for dependence libraries.  The import file would start with
9287     # the line `#! .'.  This would cause the generated library to
9288     # depend on `.', always an invalid library.  This was fixed in
9289     # development snapshots of GCC prior to 3.0.
9290     case $host_os in
9291       aix4 | aix4.[01] | aix4.[01].*)
9292       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9293            echo ' yes '
9294            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9295         :
9296       else
9297         can_build_shared=no
9298       fi
9299       ;;
9300     esac
9301     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9302     # soname into executable. Probably we can add versioning support to
9303     # collect2, so additional links can be useful in future.
9304     if test "$aix_use_runtimelinking" = yes; then
9305       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9306       # instead of lib<name>.a to let people know that these are not
9307       # typical AIX shared libraries.
9308       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309     else
9310       # We preserve .a as extension for shared libraries through AIX4.2
9311       # and later when we are not doing run time linking.
9312       library_names_spec='${libname}${release}.a $libname.a'
9313       soname_spec='${libname}${release}${shared_ext}$major'
9314     fi
9315     shlibpath_var=LIBPATH
9316   fi
9317   ;;
9319 amigaos*)
9320   library_names_spec='$libname.ixlibrary $libname.a'
9321   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9322   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'
9323   ;;
9325 beos*)
9326   library_names_spec='${libname}${shared_ext}'
9327   dynamic_linker="$host_os ld.so"
9328   shlibpath_var=LIBRARY_PATH
9329   ;;
9331 bsdi[45]*)
9332   version_type=linux
9333   need_version=no
9334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9335   soname_spec='${libname}${release}${shared_ext}$major'
9336   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9337   shlibpath_var=LD_LIBRARY_PATH
9338   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9339   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9340   # the default ld.so.conf also contains /usr/contrib/lib and
9341   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9342   # libtool to hard-code these into programs
9343   ;;
9345 cygwin* | mingw* | pw32*)
9346   version_type=windows
9347   shrext_cmds=".dll"
9348   need_version=no
9349   need_lib_prefix=no
9351   case $GCC,$host_os in
9352   yes,cygwin* | yes,mingw* | yes,pw32*)
9353     library_names_spec='$libname.dll.a'
9354     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9355     postinstall_cmds='base_file=`basename \${file}`~
9356       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9357       dldir=$destdir/`dirname \$dlpath`~
9358       test -d \$dldir || mkdir -p \$dldir~
9359       $install_prog $dir/$dlname \$dldir/$dlname~
9360       chmod a+x \$dldir/$dlname'
9361     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9362       dlpath=$dir/\$dldll~
9363        $rm \$dlpath'
9364     shlibpath_overrides_runpath=yes
9366     case $host_os in
9367     cygwin*)
9368       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9369       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9370       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9371       ;;
9372     mingw*)
9373       # MinGW DLLs use traditional 'lib' prefix
9374       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9375       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9376       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9377         # It is most probably a Windows format PATH printed by
9378         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9379         # path with ; separators, and with drive letters. We can handle the
9380         # drive letters (cygwin fileutils understands them), so leave them,
9381         # especially as we might pass files found there to a mingw objdump,
9382         # which wouldn't understand a cygwinified path. Ahh.
9383         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9384       else
9385         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9386       fi
9387       ;;
9388     pw32*)
9389       # pw32 DLLs use 'pw' prefix rather than 'lib'
9390       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9391       ;;
9392     esac
9393     ;;
9395   *)
9396     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9397     ;;
9398   esac
9399   dynamic_linker='Win32 ld.exe'
9400   # FIXME: first we should search . and the directory the executable is in
9401   shlibpath_var=PATH
9402   ;;
9404 darwin* | rhapsody*)
9405   dynamic_linker="$host_os dyld"
9406   version_type=darwin
9407   need_lib_prefix=no
9408   need_version=no
9409   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9410   soname_spec='${libname}${release}${major}$shared_ext'
9411   shlibpath_overrides_runpath=yes
9412   shlibpath_var=DYLD_LIBRARY_PATH
9413   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9415   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9416   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9417   ;;
9419 dgux*)
9420   version_type=linux
9421   need_lib_prefix=no
9422   need_version=no
9423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9424   soname_spec='${libname}${release}${shared_ext}$major'
9425   shlibpath_var=LD_LIBRARY_PATH
9426   ;;
9428 freebsd1*)
9429   dynamic_linker=no
9430   ;;
9432 freebsd* | dragonfly*)
9433   # DragonFly does not have aout.  When/if they implement a new
9434   # versioning mechanism, adjust this.
9435   if test -x /usr/bin/objformat; then
9436     objformat=`/usr/bin/objformat`
9437   else
9438     case $host_os in
9439     freebsd[123]*) objformat=aout ;;
9440     *) objformat=elf ;;
9441     esac
9442   fi
9443   version_type=freebsd-$objformat
9444   case $version_type in
9445     freebsd-elf*)
9446       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9447       need_version=no
9448       need_lib_prefix=no
9449       ;;
9450     freebsd-*)
9451       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9452       need_version=yes
9453       ;;
9454   esac
9455   shlibpath_var=LD_LIBRARY_PATH
9456   case $host_os in
9457   freebsd2*)
9458     shlibpath_overrides_runpath=yes
9459     ;;
9460   freebsd3.[01]* | freebsdelf3.[01]*)
9461     shlibpath_overrides_runpath=yes
9462     hardcode_into_libs=yes
9463     ;;
9464   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9465   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9466     shlibpath_overrides_runpath=no
9467     hardcode_into_libs=yes
9468     ;;
9469   *) # from 4.6 on, and DragonFly
9470     shlibpath_overrides_runpath=yes
9471     hardcode_into_libs=yes
9472     ;;
9473   esac
9474   ;;
9476 gnu*)
9477   version_type=linux
9478   need_lib_prefix=no
9479   need_version=no
9480   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9481   soname_spec='${libname}${release}${shared_ext}$major'
9482   shlibpath_var=LD_LIBRARY_PATH
9483   hardcode_into_libs=yes
9484   ;;
9486 hpux9* | hpux10* | hpux11*)
9487   # Give a soname corresponding to the major version so that dld.sl refuses to
9488   # link against other versions.
9489   version_type=sunos
9490   need_lib_prefix=no
9491   need_version=no
9492   case $host_cpu in
9493   ia64*)
9494     shrext_cmds='.so'
9495     hardcode_into_libs=yes
9496     dynamic_linker="$host_os dld.so"
9497     shlibpath_var=LD_LIBRARY_PATH
9498     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9499     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9500     soname_spec='${libname}${release}${shared_ext}$major'
9501     if test "X$HPUX_IA64_MODE" = X32; then
9502       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9503     else
9504       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9505     fi
9506     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9507     ;;
9508    hppa*64*)
9509      shrext_cmds='.sl'
9510      hardcode_into_libs=yes
9511      dynamic_linker="$host_os dld.sl"
9512      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9513      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9514      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515      soname_spec='${libname}${release}${shared_ext}$major'
9516      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9517      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9518      ;;
9519    *)
9520     shrext_cmds='.sl'
9521     dynamic_linker="$host_os dld.sl"
9522     shlibpath_var=SHLIB_PATH
9523     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9524     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525     soname_spec='${libname}${release}${shared_ext}$major'
9526     ;;
9527   esac
9528   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9529   postinstall_cmds='chmod 555 $lib'
9530   ;;
9532 interix[3-9]*)
9533   version_type=linux
9534   need_lib_prefix=no
9535   need_version=no
9536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9537   soname_spec='${libname}${release}${shared_ext}$major'
9538   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9539   shlibpath_var=LD_LIBRARY_PATH
9540   shlibpath_overrides_runpath=no
9541   hardcode_into_libs=yes
9542   ;;
9544 irix5* | irix6* | nonstopux*)
9545   case $host_os in
9546     nonstopux*) version_type=nonstopux ;;
9547     *)
9548         if test "$lt_cv_prog_gnu_ld" = yes; then
9549                 version_type=linux
9550         else
9551                 version_type=irix
9552         fi ;;
9553   esac
9554   need_lib_prefix=no
9555   need_version=no
9556   soname_spec='${libname}${release}${shared_ext}$major'
9557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9558   case $host_os in
9559   irix5* | nonstopux*)
9560     libsuff= shlibsuff=
9561     ;;
9562   *)
9563     case $LD in # libtool.m4 will add one of these switches to LD
9564     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9565       libsuff= shlibsuff= libmagic=32-bit;;
9566     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9567       libsuff=32 shlibsuff=N32 libmagic=N32;;
9568     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9569       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9570     *) libsuff= shlibsuff= libmagic=never-match;;
9571     esac
9572     ;;
9573   esac
9574   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9575   shlibpath_overrides_runpath=no
9576   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9577   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9578   hardcode_into_libs=yes
9579   ;;
9581 # No shared lib support for Linux oldld, aout, or coff.
9582 linux*oldld* | linux*aout* | linux*coff*)
9583   dynamic_linker=no
9584   ;;
9586 # This must be Linux ELF.
9587 linux* | k*bsd*-gnu)
9588   version_type=linux
9589   need_lib_prefix=no
9590   need_version=no
9591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9592   soname_spec='${libname}${release}${shared_ext}$major'
9593   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9594   shlibpath_var=LD_LIBRARY_PATH
9595   shlibpath_overrides_runpath=no
9596   # This implies no fast_install, which is unacceptable.
9597   # Some rework will be needed to allow for fast_install
9598   # before this can be enabled.
9599   hardcode_into_libs=yes
9601   # Append ld.so.conf contents to the search path
9602   if test -f /etc/ld.so.conf; then
9603     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' ' '`
9604     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9605   fi
9607   # We used to test for /lib/ld.so.1 and disable shared libraries on
9608   # powerpc, because MkLinux only supported shared libraries with the
9609   # GNU dynamic linker.  Since this was broken with cross compilers,
9610   # most powerpc-linux boxes support dynamic linking these days and
9611   # people can always --disable-shared, the test was removed, and we
9612   # assume the GNU/Linux dynamic linker is in use.
9613   dynamic_linker='GNU/Linux ld.so'
9614   ;;
9616 netbsdelf*-gnu)
9617   version_type=linux
9618   need_lib_prefix=no
9619   need_version=no
9620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9621   soname_spec='${libname}${release}${shared_ext}$major'
9622   shlibpath_var=LD_LIBRARY_PATH
9623   shlibpath_overrides_runpath=no
9624   hardcode_into_libs=yes
9625   dynamic_linker='NetBSD ld.elf_so'
9626   ;;
9628 netbsd*)
9629   version_type=sunos
9630   need_lib_prefix=no
9631   need_version=no
9632   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9634     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9635     dynamic_linker='NetBSD (a.out) ld.so'
9636   else
9637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9638     soname_spec='${libname}${release}${shared_ext}$major'
9639     dynamic_linker='NetBSD ld.elf_so'
9640   fi
9641   shlibpath_var=LD_LIBRARY_PATH
9642   shlibpath_overrides_runpath=yes
9643   hardcode_into_libs=yes
9644   ;;
9646 newsos6)
9647   version_type=linux
9648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649   shlibpath_var=LD_LIBRARY_PATH
9650   shlibpath_overrides_runpath=yes
9651   ;;
9653 nto-qnx*)
9654   version_type=linux
9655   need_lib_prefix=no
9656   need_version=no
9657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658   soname_spec='${libname}${release}${shared_ext}$major'
9659   shlibpath_var=LD_LIBRARY_PATH
9660   shlibpath_overrides_runpath=yes
9661   ;;
9663 openbsd*)
9664   version_type=sunos
9665   sys_lib_dlsearch_path_spec="/usr/lib"
9666   need_lib_prefix=no
9667   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9668   case $host_os in
9669     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9670     *)                         need_version=no  ;;
9671   esac
9672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9673   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9674   shlibpath_var=LD_LIBRARY_PATH
9675   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9676     case $host_os in
9677       openbsd2.[89] | openbsd2.[89].*)
9678         shlibpath_overrides_runpath=no
9679         ;;
9680       *)
9681         shlibpath_overrides_runpath=yes
9682         ;;
9683       esac
9684   else
9685     shlibpath_overrides_runpath=yes
9686   fi
9687   ;;
9689 os2*)
9690   libname_spec='$name'
9691   shrext_cmds=".dll"
9692   need_lib_prefix=no
9693   library_names_spec='$libname${shared_ext} $libname.a'
9694   dynamic_linker='OS/2 ld.exe'
9695   shlibpath_var=LIBPATH
9696   ;;
9698 osf3* | osf4* | osf5*)
9699   version_type=osf
9700   need_lib_prefix=no
9701   need_version=no
9702   soname_spec='${libname}${release}${shared_ext}$major'
9703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704   shlibpath_var=LD_LIBRARY_PATH
9705   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9706   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9707   ;;
9709 rdos*)
9710   dynamic_linker=no
9711   ;;
9713 solaris*)
9714   version_type=linux
9715   need_lib_prefix=no
9716   need_version=no
9717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718   soname_spec='${libname}${release}${shared_ext}$major'
9719   shlibpath_var=LD_LIBRARY_PATH
9720   shlibpath_overrides_runpath=yes
9721   hardcode_into_libs=yes
9722   # ldd complains unless libraries are executable
9723   postinstall_cmds='chmod +x $lib'
9724   ;;
9726 sunos4*)
9727   version_type=sunos
9728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9729   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9730   shlibpath_var=LD_LIBRARY_PATH
9731   shlibpath_overrides_runpath=yes
9732   if test "$with_gnu_ld" = yes; then
9733     need_lib_prefix=no
9734   fi
9735   need_version=yes
9736   ;;
9738 sysv4 | sysv4.3*)
9739   version_type=linux
9740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9741   soname_spec='${libname}${release}${shared_ext}$major'
9742   shlibpath_var=LD_LIBRARY_PATH
9743   case $host_vendor in
9744     sni)
9745       shlibpath_overrides_runpath=no
9746       need_lib_prefix=no
9747       export_dynamic_flag_spec='${wl}-Blargedynsym'
9748       runpath_var=LD_RUN_PATH
9749       ;;
9750     siemens)
9751       need_lib_prefix=no
9752       ;;
9753     motorola)
9754       need_lib_prefix=no
9755       need_version=no
9756       shlibpath_overrides_runpath=no
9757       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9758       ;;
9759   esac
9760   ;;
9762 sysv4*MP*)
9763   if test -d /usr/nec ;then
9764     version_type=linux
9765     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9766     soname_spec='$libname${shared_ext}.$major'
9767     shlibpath_var=LD_LIBRARY_PATH
9768   fi
9769   ;;
9771 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9772   version_type=freebsd-elf
9773   need_lib_prefix=no
9774   need_version=no
9775   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9776   soname_spec='${libname}${release}${shared_ext}$major'
9777   shlibpath_var=LD_LIBRARY_PATH
9778   hardcode_into_libs=yes
9779   if test "$with_gnu_ld" = yes; then
9780     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9781     shlibpath_overrides_runpath=no
9782   else
9783     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9784     shlibpath_overrides_runpath=yes
9785     case $host_os in
9786       sco3.2v5*)
9787         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9788         ;;
9789     esac
9790   fi
9791   sys_lib_dlsearch_path_spec='/usr/lib'
9792   ;;
9794 uts4*)
9795   version_type=linux
9796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797   soname_spec='${libname}${release}${shared_ext}$major'
9798   shlibpath_var=LD_LIBRARY_PATH
9799   ;;
9801 *)
9802   dynamic_linker=no
9803   ;;
9804 esac
9805 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9806 echo "${ECHO_T}$dynamic_linker" >&6; }
9807 test "$dynamic_linker" = no && can_build_shared=no
9809 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9810   echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9813 fi
9815 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9816 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9820 fi
9822 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9825 if test "$GCC" = yes; then
9826   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9827 fi
9829 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9830 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9831 hardcode_action=
9832 if test -n "$hardcode_libdir_flag_spec" || \
9833    test -n "$runpath_var" || \
9834    test "X$hardcode_automatic" = "Xyes" ; then
9836   # We can hardcode non-existant directories.
9837   if test "$hardcode_direct" != no &&
9838      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9839      # have to relink, otherwise we might link with an installed library
9840      # when we should be linking with a yet-to-be-installed one
9841      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9842      test "$hardcode_minus_L" != no; then
9843     # Linking always hardcodes the temporary library directory.
9844     hardcode_action=relink
9845   else
9846     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9847     hardcode_action=immediate
9848   fi
9849 else
9850   # We cannot hardcode anything, or else we can only hardcode existing
9851   # directories.
9852   hardcode_action=unsupported
9853 fi
9854 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9855 echo "${ECHO_T}$hardcode_action" >&6; }
9857 if test "$hardcode_action" = relink; then
9858   # Fast installation is not supported
9859   enable_fast_install=no
9860 elif test "$shlibpath_overrides_runpath" = yes ||
9861      test "$enable_shared" = no; then
9862   # Fast installation is not necessary
9863   enable_fast_install=needless
9864 fi
9866 striplib=
9867 old_striplib=
9868 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9869 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9870 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9871   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9872   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9873   { echo "$as_me:$LINENO: result: yes" >&5
9874 echo "${ECHO_T}yes" >&6; }
9875 else
9876 # FIXME - insert some real tests, host_os isn't really good enough
9877   case $host_os in
9878    darwin*)
9879        if test -n "$STRIP" ; then
9880          striplib="$STRIP -x"
9881          old_striplib="$STRIP -S"
9882          { echo "$as_me:$LINENO: result: yes" >&5
9883 echo "${ECHO_T}yes" >&6; }
9884        else
9885   { echo "$as_me:$LINENO: result: no" >&5
9886 echo "${ECHO_T}no" >&6; }
9887 fi
9888        ;;
9889    *)
9890   { echo "$as_me:$LINENO: result: no" >&5
9891 echo "${ECHO_T}no" >&6; }
9892     ;;
9893   esac
9894 fi
9896 if test "x$enable_dlopen" != xyes; then
9897   enable_dlopen=unknown
9898   enable_dlopen_self=unknown
9899   enable_dlopen_self_static=unknown
9900 else
9901   lt_cv_dlopen=no
9902   lt_cv_dlopen_libs=
9904   case $host_os in
9905   beos*)
9906     lt_cv_dlopen="load_add_on"
9907     lt_cv_dlopen_libs=
9908     lt_cv_dlopen_self=yes
9909     ;;
9911   mingw* | pw32*)
9912     lt_cv_dlopen="LoadLibrary"
9913     lt_cv_dlopen_libs=
9914    ;;
9916   cygwin*)
9917     lt_cv_dlopen="dlopen"
9918     lt_cv_dlopen_libs=
9919    ;;
9921   darwin*)
9922   # if libdl is installed we need to link against it
9923     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9924 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9925 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9926   echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928   ac_check_lib_save_LIBS=$LIBS
9929 LIBS="-ldl  $LIBS"
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h.  */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h.  */
9937 /* Override any GCC internal prototype to avoid an error.
9938    Use char because int might match the return type of a GCC
9939    builtin and then its argument prototype would still apply.  */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 char dlopen ();
9944 int
9945 main ()
9947 return dlopen ();
9948   ;
9949   return 0;
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9954 case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_link") 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } && {
9966          test -z "$ac_c_werror_flag" ||
9967          test ! -s conftest.err
9968        } && test -s conftest$ac_exeext &&
9969        $as_test_x conftest$ac_exeext; then
9970   ac_cv_lib_dl_dlopen=yes
9971 else
9972   echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9975         ac_cv_lib_dl_dlopen=no
9976 fi
9978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9979       conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9981 fi
9982 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9983 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9984 if test $ac_cv_lib_dl_dlopen = yes; then
9985   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9986 else
9988     lt_cv_dlopen="dyld"
9989     lt_cv_dlopen_libs=
9990     lt_cv_dlopen_self=yes
9992 fi
9994    ;;
9996   *)
9997     { echo "$as_me:$LINENO: checking for shl_load" >&5
9998 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9999 if test "${ac_cv_func_shl_load+set}" = set; then
10000   echo $ECHO_N "(cached) $ECHO_C" >&6
10001 else
10002   cat >conftest.$ac_ext <<_ACEOF
10003 /* confdefs.h.  */
10004 _ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h.  */
10008 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10009    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10010 #define shl_load innocuous_shl_load
10012 /* System header to define __stub macros and hopefully few prototypes,
10013     which can conflict with char shl_load (); below.
10014     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10015     <limits.h> exists even on freestanding compilers.  */
10017 #ifdef __STDC__
10018 # include <limits.h>
10019 #else
10020 # include <assert.h>
10021 #endif
10023 #undef shl_load
10025 /* Override any GCC internal prototype to avoid an error.
10026    Use char because int might match the return type of a GCC
10027    builtin and then its argument prototype would still apply.  */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char shl_load ();
10032 /* The GNU C library defines this for functions which it implements
10033     to always fail with ENOSYS.  Some functions are actually named
10034     something starting with __ and the normal name is an alias.  */
10035 #if defined __stub_shl_load || defined __stub___shl_load
10036 choke me
10037 #endif
10039 int
10040 main ()
10042 return shl_load ();
10043   ;
10044   return 0;
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_link") 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
10058   cat conftest.err >&5
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } && {
10061          test -z "$ac_c_werror_flag" ||
10062          test ! -s conftest.err
10063        } && test -s conftest$ac_exeext &&
10064        $as_test_x conftest$ac_exeext; then
10065   ac_cv_func_shl_load=yes
10066 else
10067   echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10070         ac_cv_func_shl_load=no
10073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10074       conftest$ac_exeext conftest.$ac_ext
10076 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10077 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10078 if test $ac_cv_func_shl_load = yes; then
10079   lt_cv_dlopen="shl_load"
10080 else
10081   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10082 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10083 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10084   echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086   ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-ldld  $LIBS"
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h.  */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h.  */
10095 /* Override any GCC internal prototype to avoid an error.
10096    Use char because int might match the return type of a GCC
10097    builtin and then its argument prototype would still apply.  */
10098 #ifdef __cplusplus
10099 extern "C"
10100 #endif
10101 char shl_load ();
10102 int
10103 main ()
10105 return shl_load ();
10106   ;
10107   return 0;
10109 _ACEOF
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114   *) ac_try_echo=$ac_try;;
10115 esac
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117   (eval "$ac_link") 2>conftest.er1
10118   ac_status=$?
10119   grep -v '^ *+' conftest.er1 >conftest.err
10120   rm -f conftest.er1
10121   cat conftest.err >&5
10122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123   (exit $ac_status); } && {
10124          test -z "$ac_c_werror_flag" ||
10125          test ! -s conftest.err
10126        } && test -s conftest$ac_exeext &&
10127        $as_test_x conftest$ac_exeext; then
10128   ac_cv_lib_dld_shl_load=yes
10129 else
10130   echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133         ac_cv_lib_dld_shl_load=no
10136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10137       conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10141 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10142 if test $ac_cv_lib_dld_shl_load = yes; then
10143   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10144 else
10145   { echo "$as_me:$LINENO: checking for dlopen" >&5
10146 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10147 if test "${ac_cv_func_dlopen+set}" = set; then
10148   echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150   cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10158 #define dlopen innocuous_dlopen
10160 /* System header to define __stub macros and hopefully few prototypes,
10161     which can conflict with char dlopen (); below.
10162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10163     <limits.h> exists even on freestanding compilers.  */
10165 #ifdef __STDC__
10166 # include <limits.h>
10167 #else
10168 # include <assert.h>
10169 #endif
10171 #undef dlopen
10173 /* Override any GCC internal prototype to avoid an error.
10174    Use char because int might match the return type of a GCC
10175    builtin and then its argument prototype would still apply.  */
10176 #ifdef __cplusplus
10177 extern "C"
10178 #endif
10179 char dlopen ();
10180 /* The GNU C library defines this for functions which it implements
10181     to always fail with ENOSYS.  Some functions are actually named
10182     something starting with __ and the normal name is an alias.  */
10183 #if defined __stub_dlopen || defined __stub___dlopen
10184 choke me
10185 #endif
10187 int
10188 main ()
10190 return dlopen ();
10191   ;
10192   return 0;
10194 _ACEOF
10195 rm -f conftest.$ac_objext conftest$ac_exeext
10196 if { (ac_try="$ac_link"
10197 case "(($ac_try" in
10198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199   *) ac_try_echo=$ac_try;;
10200 esac
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202   (eval "$ac_link") 2>conftest.er1
10203   ac_status=$?
10204   grep -v '^ *+' conftest.er1 >conftest.err
10205   rm -f conftest.er1
10206   cat conftest.err >&5
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); } && {
10209          test -z "$ac_c_werror_flag" ||
10210          test ! -s conftest.err
10211        } && test -s conftest$ac_exeext &&
10212        $as_test_x conftest$ac_exeext; then
10213   ac_cv_func_dlopen=yes
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218         ac_cv_func_dlopen=no
10221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10222       conftest$ac_exeext conftest.$ac_ext
10224 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10225 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10226 if test $ac_cv_func_dlopen = yes; then
10227   lt_cv_dlopen="dlopen"
10228 else
10229   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10230 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10231 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10232   echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234   ac_check_lib_save_LIBS=$LIBS
10235 LIBS="-ldl  $LIBS"
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10243 /* Override any GCC internal prototype to avoid an error.
10244    Use char because int might match the return type of a GCC
10245    builtin and then its argument prototype would still apply.  */
10246 #ifdef __cplusplus
10247 extern "C"
10248 #endif
10249 char dlopen ();
10250 int
10251 main ()
10253 return dlopen ();
10254   ;
10255   return 0;
10257 _ACEOF
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262   *) ac_try_echo=$ac_try;;
10263 esac
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265   (eval "$ac_link") 2>conftest.er1
10266   ac_status=$?
10267   grep -v '^ *+' conftest.er1 >conftest.err
10268   rm -f conftest.er1
10269   cat conftest.err >&5
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); } && {
10272          test -z "$ac_c_werror_flag" ||
10273          test ! -s conftest.err
10274        } && test -s conftest$ac_exeext &&
10275        $as_test_x conftest$ac_exeext; then
10276   ac_cv_lib_dl_dlopen=yes
10277 else
10278   echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281         ac_cv_lib_dl_dlopen=no
10284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10285       conftest$ac_exeext conftest.$ac_ext
10286 LIBS=$ac_check_lib_save_LIBS
10288 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10289 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10290 if test $ac_cv_lib_dl_dlopen = yes; then
10291   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10292 else
10293   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10294 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10295 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298   ac_check_lib_save_LIBS=$LIBS
10299 LIBS="-lsvld  $LIBS"
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h.  */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h.  */
10307 /* Override any GCC internal prototype to avoid an error.
10308    Use char because int might match the return type of a GCC
10309    builtin and then its argument prototype would still apply.  */
10310 #ifdef __cplusplus
10311 extern "C"
10312 #endif
10313 char dlopen ();
10314 int
10315 main ()
10317 return dlopen ();
10318   ;
10319   return 0;
10321 _ACEOF
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (ac_try="$ac_link"
10324 case "(($ac_try" in
10325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326   *) ac_try_echo=$ac_try;;
10327 esac
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329   (eval "$ac_link") 2>conftest.er1
10330   ac_status=$?
10331   grep -v '^ *+' conftest.er1 >conftest.err
10332   rm -f conftest.er1
10333   cat conftest.err >&5
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } && {
10336          test -z "$ac_c_werror_flag" ||
10337          test ! -s conftest.err
10338        } && test -s conftest$ac_exeext &&
10339        $as_test_x conftest$ac_exeext; then
10340   ac_cv_lib_svld_dlopen=yes
10341 else
10342   echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10345         ac_cv_lib_svld_dlopen=no
10348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10349       conftest$ac_exeext conftest.$ac_ext
10350 LIBS=$ac_check_lib_save_LIBS
10352 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10353 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10354 if test $ac_cv_lib_svld_dlopen = yes; then
10355   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10356 else
10357   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10358 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10359 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   ac_check_lib_save_LIBS=$LIBS
10363 LIBS="-ldld  $LIBS"
10364 cat >conftest.$ac_ext <<_ACEOF
10365 /* confdefs.h.  */
10366 _ACEOF
10367 cat confdefs.h >>conftest.$ac_ext
10368 cat >>conftest.$ac_ext <<_ACEOF
10369 /* end confdefs.h.  */
10371 /* Override any GCC internal prototype to avoid an error.
10372    Use char because int might match the return type of a GCC
10373    builtin and then its argument prototype would still apply.  */
10374 #ifdef __cplusplus
10375 extern "C"
10376 #endif
10377 char dld_link ();
10378 int
10379 main ()
10381 return dld_link ();
10382   ;
10383   return 0;
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390   *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393   (eval "$ac_link") 2>conftest.er1
10394   ac_status=$?
10395   grep -v '^ *+' conftest.er1 >conftest.err
10396   rm -f conftest.er1
10397   cat conftest.err >&5
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); } && {
10400          test -z "$ac_c_werror_flag" ||
10401          test ! -s conftest.err
10402        } && test -s conftest$ac_exeext &&
10403        $as_test_x conftest$ac_exeext; then
10404   ac_cv_lib_dld_dld_link=yes
10405 else
10406   echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409         ac_cv_lib_dld_dld_link=no
10412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10413       conftest$ac_exeext conftest.$ac_ext
10414 LIBS=$ac_check_lib_save_LIBS
10416 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10417 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10418 if test $ac_cv_lib_dld_dld_link = yes; then
10419   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10437     ;;
10438   esac
10440   if test "x$lt_cv_dlopen" != xno; then
10441     enable_dlopen=yes
10442   else
10443     enable_dlopen=no
10444   fi
10446   case $lt_cv_dlopen in
10447   dlopen)
10448     save_CPPFLAGS="$CPPFLAGS"
10449     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10451     save_LDFLAGS="$LDFLAGS"
10452     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10454     save_LIBS="$LIBS"
10455     LIBS="$lt_cv_dlopen_libs $LIBS"
10457     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10458 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10459 if test "${lt_cv_dlopen_self+set}" = set; then
10460   echo $ECHO_N "(cached) $ECHO_C" >&6
10461 else
10462           if test "$cross_compiling" = yes; then :
10463   lt_cv_dlopen_self=cross
10464 else
10465   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10466   lt_status=$lt_dlunknown
10467   cat > conftest.$ac_ext <<EOF
10468 #line 10468 "configure"
10469 #include "confdefs.h"
10471 #if HAVE_DLFCN_H
10472 #include <dlfcn.h>
10473 #endif
10475 #include <stdio.h>
10477 #ifdef RTLD_GLOBAL
10478 #  define LT_DLGLOBAL           RTLD_GLOBAL
10479 #else
10480 #  ifdef DL_GLOBAL
10481 #    define LT_DLGLOBAL         DL_GLOBAL
10482 #  else
10483 #    define LT_DLGLOBAL         0
10484 #  endif
10485 #endif
10487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10488    find out it does not work in some platform. */
10489 #ifndef LT_DLLAZY_OR_NOW
10490 #  ifdef RTLD_LAZY
10491 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10492 #  else
10493 #    ifdef DL_LAZY
10494 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10495 #    else
10496 #      ifdef RTLD_NOW
10497 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10498 #      else
10499 #        ifdef DL_NOW
10500 #          define LT_DLLAZY_OR_NOW      DL_NOW
10501 #        else
10502 #          define LT_DLLAZY_OR_NOW      0
10503 #        endif
10504 #      endif
10505 #    endif
10506 #  endif
10507 #endif
10509 #ifdef __cplusplus
10510 extern "C" void exit (int);
10511 #endif
10513 void fnord() { int i=42;}
10514 int main ()
10516   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10517   int status = $lt_dlunknown;
10519   if (self)
10520     {
10521       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10522       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10523       /* dlclose (self); */
10524     }
10525   else
10526     puts (dlerror ());
10528     exit (status);
10530 EOF
10531   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10532   (eval $ac_link) 2>&5
10533   ac_status=$?
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10536     (./conftest; exit; ) >&5 2>/dev/null
10537     lt_status=$?
10538     case x$lt_status in
10539       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10540       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10541       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10542     esac
10543   else :
10544     # compilation failed
10545     lt_cv_dlopen_self=no
10546   fi
10548 rm -fr conftest*
10552 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10553 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10555     if test "x$lt_cv_dlopen_self" = xyes; then
10556       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10557       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10558 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10559 if test "${lt_cv_dlopen_self_static+set}" = set; then
10560   echo $ECHO_N "(cached) $ECHO_C" >&6
10561 else
10562           if test "$cross_compiling" = yes; then :
10563   lt_cv_dlopen_self_static=cross
10564 else
10565   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10566   lt_status=$lt_dlunknown
10567   cat > conftest.$ac_ext <<EOF
10568 #line 10568 "configure"
10569 #include "confdefs.h"
10571 #if HAVE_DLFCN_H
10572 #include <dlfcn.h>
10573 #endif
10575 #include <stdio.h>
10577 #ifdef RTLD_GLOBAL
10578 #  define LT_DLGLOBAL           RTLD_GLOBAL
10579 #else
10580 #  ifdef DL_GLOBAL
10581 #    define LT_DLGLOBAL         DL_GLOBAL
10582 #  else
10583 #    define LT_DLGLOBAL         0
10584 #  endif
10585 #endif
10587 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10588    find out it does not work in some platform. */
10589 #ifndef LT_DLLAZY_OR_NOW
10590 #  ifdef RTLD_LAZY
10591 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10592 #  else
10593 #    ifdef DL_LAZY
10594 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10595 #    else
10596 #      ifdef RTLD_NOW
10597 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10598 #      else
10599 #        ifdef DL_NOW
10600 #          define LT_DLLAZY_OR_NOW      DL_NOW
10601 #        else
10602 #          define LT_DLLAZY_OR_NOW      0
10603 #        endif
10604 #      endif
10605 #    endif
10606 #  endif
10607 #endif
10609 #ifdef __cplusplus
10610 extern "C" void exit (int);
10611 #endif
10613 void fnord() { int i=42;}
10614 int main ()
10616   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10617   int status = $lt_dlunknown;
10619   if (self)
10620     {
10621       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10622       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10623       /* dlclose (self); */
10624     }
10625   else
10626     puts (dlerror ());
10628     exit (status);
10630 EOF
10631   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10632   (eval $ac_link) 2>&5
10633   ac_status=$?
10634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10636     (./conftest; exit; ) >&5 2>/dev/null
10637     lt_status=$?
10638     case x$lt_status in
10639       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10640       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10641       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10642     esac
10643   else :
10644     # compilation failed
10645     lt_cv_dlopen_self_static=no
10646   fi
10648 rm -fr conftest*
10652 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10653 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10654     fi
10656     CPPFLAGS="$save_CPPFLAGS"
10657     LDFLAGS="$save_LDFLAGS"
10658     LIBS="$save_LIBS"
10659     ;;
10660   esac
10662   case $lt_cv_dlopen_self in
10663   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10664   *) enable_dlopen_self=unknown ;;
10665   esac
10667   case $lt_cv_dlopen_self_static in
10668   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10669   *) enable_dlopen_self_static=unknown ;;
10670   esac
10674 # Report which library types will actually be built
10675 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10676 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10677 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10678 echo "${ECHO_T}$can_build_shared" >&6; }
10680 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10681 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10682 test "$can_build_shared" = "no" && enable_shared=no
10684 # On AIX, shared libraries and static libraries use the same namespace, and
10685 # are all built from PIC.
10686 case $host_os in
10687 aix3*)
10688   test "$enable_shared" = yes && enable_static=no
10689   if test -n "$RANLIB"; then
10690     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10691     postinstall_cmds='$RANLIB $lib'
10692   fi
10693   ;;
10695 aix[4-9]*)
10696   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10697     test "$enable_shared" = yes && enable_static=no
10698   fi
10699     ;;
10700 esac
10701 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10702 echo "${ECHO_T}$enable_shared" >&6; }
10704 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10705 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10706 # Make sure either enable_shared or enable_static is yes.
10707 test "$enable_shared" = yes || enable_static=yes
10708 { echo "$as_me:$LINENO: result: $enable_static" >&5
10709 echo "${ECHO_T}$enable_static" >&6; }
10711 # The else clause should only fire when bootstrapping the
10712 # libtool distribution, otherwise you forgot to ship ltmain.sh
10713 # with your package, and you will get complaints that there are
10714 # no rules to generate ltmain.sh.
10715 if test -f "$ltmain"; then
10716   # See if we are running on zsh, and set the options which allow our commands through
10717   # without removal of \ escapes.
10718   if test -n "${ZSH_VERSION+set}" ; then
10719     setopt NO_GLOB_SUBST
10720   fi
10721   # Now quote all the things that may contain metacharacters while being
10722   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10723   # variables and quote the copies for generation of the libtool script.
10724   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10725     SED SHELL STRIP \
10726     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10727     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10728     deplibs_check_method reload_flag reload_cmds need_locks \
10729     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10730     lt_cv_sys_global_symbol_to_c_name_address \
10731     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10732     old_postinstall_cmds old_postuninstall_cmds \
10733     compiler \
10734     CC \
10735     LD \
10736     lt_prog_compiler_wl \
10737     lt_prog_compiler_pic \
10738     lt_prog_compiler_static \
10739     lt_prog_compiler_no_builtin_flag \
10740     export_dynamic_flag_spec \
10741     thread_safe_flag_spec \
10742     whole_archive_flag_spec \
10743     enable_shared_with_static_runtimes \
10744     old_archive_cmds \
10745     old_archive_from_new_cmds \
10746     predep_objects \
10747     postdep_objects \
10748     predeps \
10749     postdeps \
10750     compiler_lib_search_path \
10751     compiler_lib_search_dirs \
10752     archive_cmds \
10753     archive_expsym_cmds \
10754     postinstall_cmds \
10755     postuninstall_cmds \
10756     old_archive_from_expsyms_cmds \
10757     allow_undefined_flag \
10758     no_undefined_flag \
10759     export_symbols_cmds \
10760     hardcode_libdir_flag_spec \
10761     hardcode_libdir_flag_spec_ld \
10762     hardcode_libdir_separator \
10763     hardcode_automatic \
10764     module_cmds \
10765     module_expsym_cmds \
10766     lt_cv_prog_compiler_c_o \
10767     fix_srcfile_path \
10768     exclude_expsyms \
10769     include_expsyms; do
10771     case $var in
10772     old_archive_cmds | \
10773     old_archive_from_new_cmds | \
10774     archive_cmds | \
10775     archive_expsym_cmds | \
10776     module_cmds | \
10777     module_expsym_cmds | \
10778     old_archive_from_expsyms_cmds | \
10779     export_symbols_cmds | \
10780     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10781     postinstall_cmds | postuninstall_cmds | \
10782     old_postinstall_cmds | old_postuninstall_cmds | \
10783     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10784       # Double-quote double-evaled strings.
10785       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10786       ;;
10787     *)
10788       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10789       ;;
10790     esac
10791   done
10793   case $lt_echo in
10794   *'\$0 --fallback-echo"')
10795     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10796     ;;
10797   esac
10799 cfgfile="${ofile}T"
10800   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10801   $rm -f "$cfgfile"
10802   { echo "$as_me:$LINENO: creating $ofile" >&5
10803 echo "$as_me: creating $ofile" >&6;}
10805   cat <<__EOF__ >> "$cfgfile"
10806 #! $SHELL
10808 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10809 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10810 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10812 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10813 # Free Software Foundation, Inc.
10815 # This file is part of GNU Libtool:
10816 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10818 # This program is free software; you can redistribute it and/or modify
10819 # it under the terms of the GNU General Public License as published by
10820 # the Free Software Foundation; either version 2 of the License, or
10821 # (at your option) any later version.
10823 # This program is distributed in the hope that it will be useful, but
10824 # WITHOUT ANY WARRANTY; without even the implied warranty of
10825 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10826 # General Public License for more details.
10828 # You should have received a copy of the GNU General Public License
10829 # along with this program; if not, write to the Free Software
10830 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10832 # As a special exception to the GNU General Public License, if you
10833 # distribute this file as part of a program that contains a
10834 # configuration script generated by Autoconf, you may include it under
10835 # the same distribution terms that you use for the rest of that program.
10837 # A sed program that does not truncate output.
10838 SED=$lt_SED
10840 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10841 Xsed="$SED -e 1s/^X//"
10843 # The HP-UX ksh and POSIX shell print the target directory to stdout
10844 # if CDPATH is set.
10845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10847 # The names of the tagged configurations supported by this script.
10848 available_tags=
10850 # ### BEGIN LIBTOOL CONFIG
10852 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10854 # Shell to use when invoking shell scripts.
10855 SHELL=$lt_SHELL
10857 # Whether or not to build shared libraries.
10858 build_libtool_libs=$enable_shared
10860 # Whether or not to build static libraries.
10861 build_old_libs=$enable_static
10863 # Whether or not to add -lc for building shared libraries.
10864 build_libtool_need_lc=$archive_cmds_need_lc
10866 # Whether or not to disallow shared libs when runtime libs are static
10867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10869 # Whether or not to optimize for fast installation.
10870 fast_install=$enable_fast_install
10872 # The host system.
10873 host_alias=$host_alias
10874 host=$host
10875 host_os=$host_os
10877 # The build system.
10878 build_alias=$build_alias
10879 build=$build
10880 build_os=$build_os
10882 # An echo program that does not interpret backslashes.
10883 echo=$lt_echo
10885 # The archiver.
10886 AR=$lt_AR
10887 AR_FLAGS=$lt_AR_FLAGS
10889 # A C compiler.
10890 LTCC=$lt_LTCC
10892 # LTCC compiler flags.
10893 LTCFLAGS=$lt_LTCFLAGS
10895 # A language-specific compiler.
10896 CC=$lt_compiler
10898 # Is the compiler the GNU C compiler?
10899 with_gcc=$GCC
10901 # An ERE matcher.
10902 EGREP=$lt_EGREP
10904 # The linker used to build libraries.
10905 LD=$lt_LD
10907 # Whether we need hard or soft links.
10908 LN_S=$lt_LN_S
10910 # A BSD-compatible nm program.
10911 NM=$lt_NM
10913 # A symbol stripping program
10914 STRIP=$lt_STRIP
10916 # Used to examine libraries when file_magic_cmd begins "file"
10917 MAGIC_CMD=$MAGIC_CMD
10919 # Used on cygwin: DLL creation program.
10920 DLLTOOL="$DLLTOOL"
10922 # Used on cygwin: object dumper.
10923 OBJDUMP="$OBJDUMP"
10925 # Used on cygwin: assembler.
10926 AS="$AS"
10928 # The name of the directory that contains temporary libtool files.
10929 objdir=$objdir
10931 # How to create reloadable object files.
10932 reload_flag=$lt_reload_flag
10933 reload_cmds=$lt_reload_cmds
10935 # How to pass a linker flag through the compiler.
10936 wl=$lt_lt_prog_compiler_wl
10938 # Object file suffix (normally "o").
10939 objext="$ac_objext"
10941 # Old archive suffix (normally "a").
10942 libext="$libext"
10944 # Shared library suffix (normally ".so").
10945 shrext_cmds='$shrext_cmds'
10947 # Executable file suffix (normally "").
10948 exeext="$exeext"
10950 # Additional compiler flags for building library objects.
10951 pic_flag=$lt_lt_prog_compiler_pic
10952 pic_mode=$pic_mode
10954 # What is the maximum length of a command?
10955 max_cmd_len=$lt_cv_sys_max_cmd_len
10957 # Does compiler simultaneously support -c and -o options?
10958 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10960 # Must we lock files when doing compilation?
10961 need_locks=$lt_need_locks
10963 # Do we need the lib prefix for modules?
10964 need_lib_prefix=$need_lib_prefix
10966 # Do we need a version for libraries?
10967 need_version=$need_version
10969 # Whether dlopen is supported.
10970 dlopen_support=$enable_dlopen
10972 # Whether dlopen of programs is supported.
10973 dlopen_self=$enable_dlopen_self
10975 # Whether dlopen of statically linked programs is supported.
10976 dlopen_self_static=$enable_dlopen_self_static
10978 # Compiler flag to prevent dynamic linking.
10979 link_static_flag=$lt_lt_prog_compiler_static
10981 # Compiler flag to turn off builtin functions.
10982 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10984 # Compiler flag to allow reflexive dlopens.
10985 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10987 # Compiler flag to generate shared objects directly from archives.
10988 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10990 # Compiler flag to generate thread-safe objects.
10991 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10993 # Library versioning type.
10994 version_type=$version_type
10996 # Format of library name prefix.
10997 libname_spec=$lt_libname_spec
10999 # List of archive names.  First name is the real one, the rest are links.
11000 # The last name is the one that the linker finds with -lNAME.
11001 library_names_spec=$lt_library_names_spec
11003 # The coded name of the library, if different from the real name.
11004 soname_spec=$lt_soname_spec
11006 # Commands used to build and install an old-style archive.
11007 RANLIB=$lt_RANLIB
11008 old_archive_cmds=$lt_old_archive_cmds
11009 old_postinstall_cmds=$lt_old_postinstall_cmds
11010 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11012 # Create an old-style archive from a shared archive.
11013 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11015 # Create a temporary old-style archive to link instead of a shared archive.
11016 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11018 # Commands used to build and install a shared archive.
11019 archive_cmds=$lt_archive_cmds
11020 archive_expsym_cmds=$lt_archive_expsym_cmds
11021 postinstall_cmds=$lt_postinstall_cmds
11022 postuninstall_cmds=$lt_postuninstall_cmds
11024 # Commands used to build a loadable module (assumed same as above if empty)
11025 module_cmds=$lt_module_cmds
11026 module_expsym_cmds=$lt_module_expsym_cmds
11028 # Commands to strip libraries.
11029 old_striplib=$lt_old_striplib
11030 striplib=$lt_striplib
11032 # Dependencies to place before the objects being linked to create a
11033 # shared library.
11034 predep_objects=$lt_predep_objects
11036 # Dependencies to place after the objects being linked to create a
11037 # shared library.
11038 postdep_objects=$lt_postdep_objects
11040 # Dependencies to place before the objects being linked to create a
11041 # shared library.
11042 predeps=$lt_predeps
11044 # Dependencies to place after the objects being linked to create a
11045 # shared library.
11046 postdeps=$lt_postdeps
11048 # The directories searched by this compiler when creating a shared
11049 # library
11050 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11052 # The library search path used internally by the compiler when linking
11053 # a shared library.
11054 compiler_lib_search_path=$lt_compiler_lib_search_path
11056 # Method to check whether dependent libraries are shared objects.
11057 deplibs_check_method=$lt_deplibs_check_method
11059 # Command to use when deplibs_check_method == file_magic.
11060 file_magic_cmd=$lt_file_magic_cmd
11062 # Flag that allows shared libraries with undefined symbols to be built.
11063 allow_undefined_flag=$lt_allow_undefined_flag
11065 # Flag that forces no undefined symbols.
11066 no_undefined_flag=$lt_no_undefined_flag
11068 # Commands used to finish a libtool library installation in a directory.
11069 finish_cmds=$lt_finish_cmds
11071 # Same as above, but a single script fragment to be evaled but not shown.
11072 finish_eval=$lt_finish_eval
11074 # Take the output of nm and produce a listing of raw symbols and C names.
11075 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11077 # Transform the output of nm in a proper C declaration
11078 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11080 # Transform the output of nm in a C name address pair
11081 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11083 # This is the shared library runtime path variable.
11084 runpath_var=$runpath_var
11086 # This is the shared library path variable.
11087 shlibpath_var=$shlibpath_var
11089 # Is shlibpath searched before the hard-coded library search path?
11090 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11092 # How to hardcode a shared library path into an executable.
11093 hardcode_action=$hardcode_action
11095 # Whether we should hardcode library paths into libraries.
11096 hardcode_into_libs=$hardcode_into_libs
11098 # Flag to hardcode \$libdir into a binary during linking.
11099 # This must work even if \$libdir does not exist.
11100 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11102 # If ld is used when linking, flag to hardcode \$libdir into
11103 # a binary during linking. This must work even if \$libdir does
11104 # not exist.
11105 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11107 # Whether we need a single -rpath flag with a separated argument.
11108 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11110 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11111 # resulting binary.
11112 hardcode_direct=$hardcode_direct
11114 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11115 # resulting binary.
11116 hardcode_minus_L=$hardcode_minus_L
11118 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11119 # the resulting binary.
11120 hardcode_shlibpath_var=$hardcode_shlibpath_var
11122 # Set to yes if building a shared library automatically hardcodes DIR into the library
11123 # and all subsequent libraries and executables linked against it.
11124 hardcode_automatic=$hardcode_automatic
11126 # Variables whose values should be saved in libtool wrapper scripts and
11127 # restored at relink time.
11128 variables_saved_for_relink="$variables_saved_for_relink"
11130 # Whether libtool must link a program against all its dependency libraries.
11131 link_all_deplibs=$link_all_deplibs
11133 # Compile-time system search path for libraries
11134 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11136 # Run-time system search path for libraries
11137 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11139 # Fix the shell variable \$srcfile for the compiler.
11140 fix_srcfile_path=$lt_fix_srcfile_path
11142 # Set to yes if exported symbols are required.
11143 always_export_symbols=$always_export_symbols
11145 # The commands to list exported symbols.
11146 export_symbols_cmds=$lt_export_symbols_cmds
11148 # The commands to extract the exported symbol list from a shared archive.
11149 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11151 # Symbols that should not be listed in the preloaded symbols.
11152 exclude_expsyms=$lt_exclude_expsyms
11154 # Symbols that must always be exported.
11155 include_expsyms=$lt_include_expsyms
11157 # ### END LIBTOOL CONFIG
11159 __EOF__
11162   case $host_os in
11163   aix3*)
11164     cat <<\EOF >> "$cfgfile"
11166 # AIX sometimes has problems with the GCC collect2 program.  For some
11167 # reason, if we set the COLLECT_NAMES environment variable, the problems
11168 # vanish in a puff of smoke.
11169 if test "X${COLLECT_NAMES+set}" != Xset; then
11170   COLLECT_NAMES=
11171   export COLLECT_NAMES
11173 EOF
11174     ;;
11175   esac
11177   # We use sed instead of cat because bash on DJGPP gets confused if
11178   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11179   # text mode, it properly converts lines to CR/LF.  This bash problem
11180   # is reportedly fixed, but why not run on old versions too?
11181   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11183   mv -f "$cfgfile" "$ofile" || \
11184     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11185   chmod +x "$ofile"
11187 else
11188   # If there is no Makefile yet, we rely on a make rule to execute
11189   # `config.status --recheck' to rerun these tests and create the
11190   # libtool script then.
11191   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11192   if test -f "$ltmain_in"; then
11193     test -f Makefile && make "$ltmain"
11194   fi
11198 ac_ext=c
11199 ac_cpp='$CPP $CPPFLAGS'
11200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11204 CC="$lt_save_CC"
11207 # Check whether --with-tags was given.
11208 if test "${with_tags+set}" = set; then
11209   withval=$with_tags; tagnames="$withval"
11213 if test -f "$ltmain" && test -n "$tagnames"; then
11214   if test ! -f "${ofile}"; then
11215     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11216 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11217   fi
11219   if test -z "$LTCC"; then
11220     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11221     if test -z "$LTCC"; then
11222       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11223 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11224     else
11225       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11226 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11227     fi
11228   fi
11229   if test -z "$LTCFLAGS"; then
11230     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11231   fi
11233   # Extract list of available tagged configurations in $ofile.
11234   # Note that this assumes the entire list is on one line.
11235   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11237   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11238   for tagname in $tagnames; do
11239     IFS="$lt_save_ifs"
11240     # Check whether tagname contains only valid characters
11241     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11242     "") ;;
11243     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11244 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11245    { (exit 1); exit 1; }; }
11246         ;;
11247     esac
11249     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11250     then
11251       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11252 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11253    { (exit 1); exit 1; }; }
11254     fi
11256     # Update the list of available tags.
11257     if test -n "$tagname"; then
11258       echo appending configuration tag \"$tagname\" to $ofile
11260       case $tagname in
11261       CXX)
11262         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11263             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11264             (test "X$CXX" != "Xg++"))) ; then
11265           ac_ext=cpp
11266 ac_cpp='$CXXCPP $CPPFLAGS'
11267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11274 archive_cmds_need_lc_CXX=no
11275 allow_undefined_flag_CXX=
11276 always_export_symbols_CXX=no
11277 archive_expsym_cmds_CXX=
11278 export_dynamic_flag_spec_CXX=
11279 hardcode_direct_CXX=no
11280 hardcode_libdir_flag_spec_CXX=
11281 hardcode_libdir_flag_spec_ld_CXX=
11282 hardcode_libdir_separator_CXX=
11283 hardcode_minus_L_CXX=no
11284 hardcode_shlibpath_var_CXX=unsupported
11285 hardcode_automatic_CXX=no
11286 module_cmds_CXX=
11287 module_expsym_cmds_CXX=
11288 link_all_deplibs_CXX=unknown
11289 old_archive_cmds_CXX=$old_archive_cmds
11290 no_undefined_flag_CXX=
11291 whole_archive_flag_spec_CXX=
11292 enable_shared_with_static_runtimes_CXX=no
11294 # Dependencies to place before and after the object being linked:
11295 predep_objects_CXX=
11296 postdep_objects_CXX=
11297 predeps_CXX=
11298 postdeps_CXX=
11299 compiler_lib_search_path_CXX=
11300 compiler_lib_search_dirs_CXX=
11302 # Source file extension for C++ test sources.
11303 ac_ext=cpp
11305 # Object file extension for compiled C++ test sources.
11306 objext=o
11307 objext_CXX=$objext
11309 # Code to be used in simple compile tests
11310 lt_simple_compile_test_code="int some_variable = 0;"
11312 # Code to be used in simple link tests
11313 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11315 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11317 # If no C compiler was specified, use CC.
11318 LTCC=${LTCC-"$CC"}
11320 # If no C compiler flags were specified, use CFLAGS.
11321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11323 # Allow CC to be a program name with arguments.
11324 compiler=$CC
11327 # save warnings/boilerplate of simple test code
11328 ac_outfile=conftest.$ac_objext
11329 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11330 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11331 _lt_compiler_boilerplate=`cat conftest.err`
11332 $rm conftest*
11334 ac_outfile=conftest.$ac_objext
11335 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11336 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11337 _lt_linker_boilerplate=`cat conftest.err`
11338 $rm -r conftest*
11341 # Allow CC to be a program name with arguments.
11342 lt_save_CC=$CC
11343 lt_save_LD=$LD
11344 lt_save_GCC=$GCC
11345 GCC=$GXX
11346 lt_save_with_gnu_ld=$with_gnu_ld
11347 lt_save_path_LD=$lt_cv_path_LD
11348 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11349   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11350 else
11351   $as_unset lt_cv_prog_gnu_ld
11353 if test -n "${lt_cv_path_LDCXX+set}"; then
11354   lt_cv_path_LD=$lt_cv_path_LDCXX
11355 else
11356   $as_unset lt_cv_path_LD
11358 test -z "${LDCXX+set}" || LD=$LDCXX
11359 CC=${CXX-"c++"}
11360 compiler=$CC
11361 compiler_CXX=$CC
11362 for cc_temp in $compiler""; do
11363   case $cc_temp in
11364     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11365     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11366     \-*) ;;
11367     *) break;;
11368   esac
11369 done
11370 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11373 # We don't want -fno-exception wen compiling C++ code, so set the
11374 # no_builtin_flag separately
11375 if test "$GXX" = yes; then
11376   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11377 else
11378   lt_prog_compiler_no_builtin_flag_CXX=
11381 if test "$GXX" = yes; then
11382   # Set up default GNU C++ configuration
11385 # Check whether --with-gnu-ld was given.
11386 if test "${with_gnu_ld+set}" = set; then
11387   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11388 else
11389   with_gnu_ld=no
11392 ac_prog=ld
11393 if test "$GCC" = yes; then
11394   # Check if gcc -print-prog-name=ld gives a path.
11395   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11396 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11397   case $host in
11398   *-*-mingw*)
11399     # gcc leaves a trailing carriage return which upsets mingw
11400     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11401   *)
11402     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11403   esac
11404   case $ac_prog in
11405     # Accept absolute paths.
11406     [\\/]* | ?:[\\/]*)
11407       re_direlt='/[^/][^/]*/\.\./'
11408       # Canonicalize the pathname of ld
11409       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11410       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11411         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11412       done
11413       test -z "$LD" && LD="$ac_prog"
11414       ;;
11415   "")
11416     # If it fails, then pretend we aren't using GCC.
11417     ac_prog=ld
11418     ;;
11419   *)
11420     # If it is relative, then search for the first ld in PATH.
11421     with_gnu_ld=unknown
11422     ;;
11423   esac
11424 elif test "$with_gnu_ld" = yes; then
11425   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11426 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11427 else
11428   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11429 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11431 if test "${lt_cv_path_LD+set}" = set; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434   if test -z "$LD"; then
11435   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11436   for ac_dir in $PATH; do
11437     IFS="$lt_save_ifs"
11438     test -z "$ac_dir" && ac_dir=.
11439     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11440       lt_cv_path_LD="$ac_dir/$ac_prog"
11441       # Check to see if the program is GNU ld.  I'd rather use --version,
11442       # but apparently some variants of GNU ld only accept -v.
11443       # Break only if it was the GNU/non-GNU ld that we prefer.
11444       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11445       *GNU* | *'with BFD'*)
11446         test "$with_gnu_ld" != no && break
11447         ;;
11448       *)
11449         test "$with_gnu_ld" != yes && break
11450         ;;
11451       esac
11452     fi
11453   done
11454   IFS="$lt_save_ifs"
11455 else
11456   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11460 LD="$lt_cv_path_LD"
11461 if test -n "$LD"; then
11462   { echo "$as_me:$LINENO: result: $LD" >&5
11463 echo "${ECHO_T}$LD" >&6; }
11464 else
11465   { echo "$as_me:$LINENO: result: no" >&5
11466 echo "${ECHO_T}no" >&6; }
11468 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11469 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11470    { (exit 1); exit 1; }; }
11471 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11472 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11473 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11474   echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11477 case `$LD -v 2>&1 </dev/null` in
11478 *GNU* | *'with BFD'*)
11479   lt_cv_prog_gnu_ld=yes
11480   ;;
11482   lt_cv_prog_gnu_ld=no
11483   ;;
11484 esac
11486 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11487 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11488 with_gnu_ld=$lt_cv_prog_gnu_ld
11492   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11493   # archiving commands below assume that GNU ld is being used.
11494   if test "$with_gnu_ld" = yes; then
11495     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11496     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'
11498     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11499     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11501     # If archive_cmds runs LD, not CC, wlarc should be empty
11502     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11503     #     investigate it a little bit more. (MM)
11504     wlarc='${wl}'
11506     # ancient GNU ld didn't support --whole-archive et. al.
11507     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11508         grep 'no-whole-archive' > /dev/null; then
11509       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11510     else
11511       whole_archive_flag_spec_CXX=
11512     fi
11513   else
11514     with_gnu_ld=no
11515     wlarc=
11517     # A generic and very simple default shared library creation
11518     # command for GNU C++ for the case where it uses the native
11519     # linker, instead of GNU ld.  If possible, this setting should
11520     # overridden to take advantage of the native linker features on
11521     # the platform it is being used on.
11522     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11523   fi
11525   # Commands to make compiler produce verbose output that lists
11526   # what "hidden" libraries, object files and flags are used when
11527   # linking a shared library.
11528   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11530 else
11531   GXX=no
11532   with_gnu_ld=no
11533   wlarc=
11536 # PORTME: fill in a description of your system's C++ link characteristics
11537 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11538 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11539 ld_shlibs_CXX=yes
11540 case $host_os in
11541   aix3*)
11542     # FIXME: insert proper C++ library support
11543     ld_shlibs_CXX=no
11544     ;;
11545   aix[4-9]*)
11546     if test "$host_cpu" = ia64; then
11547       # On IA64, the linker does run time linking by default, so we don't
11548       # have to do anything special.
11549       aix_use_runtimelinking=no
11550       exp_sym_flag='-Bexport'
11551       no_entry_flag=""
11552     else
11553       aix_use_runtimelinking=no
11555       # Test if we are trying to use run time linking or normal
11556       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11557       # need to do runtime linking.
11558       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11559         for ld_flag in $LDFLAGS; do
11560           case $ld_flag in
11561           *-brtl*)
11562             aix_use_runtimelinking=yes
11563             break
11564             ;;
11565           esac
11566         done
11567         ;;
11568       esac
11570       exp_sym_flag='-bexport'
11571       no_entry_flag='-bnoentry'
11572     fi
11574     # When large executables or shared objects are built, AIX ld can
11575     # have problems creating the table of contents.  If linking a library
11576     # or program results in "error TOC overflow" add -mminimal-toc to
11577     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11578     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11580     archive_cmds_CXX=''
11581     hardcode_direct_CXX=yes
11582     hardcode_libdir_separator_CXX=':'
11583     link_all_deplibs_CXX=yes
11585     if test "$GXX" = yes; then
11586       case $host_os in aix4.[012]|aix4.[012].*)
11587       # We only want to do this on AIX 4.2 and lower, the check
11588       # below for broken collect2 doesn't work under 4.3+
11589         collect2name=`${CC} -print-prog-name=collect2`
11590         if test -f "$collect2name" && \
11591            strings "$collect2name" | grep resolve_lib_name >/dev/null
11592         then
11593           # We have reworked collect2
11594           :
11595         else
11596           # We have old collect2
11597           hardcode_direct_CXX=unsupported
11598           # It fails to find uninstalled libraries when the uninstalled
11599           # path is not listed in the libpath.  Setting hardcode_minus_L
11600           # to unsupported forces relinking
11601           hardcode_minus_L_CXX=yes
11602           hardcode_libdir_flag_spec_CXX='-L$libdir'
11603           hardcode_libdir_separator_CXX=
11604         fi
11605         ;;
11606       esac
11607       shared_flag='-shared'
11608       if test "$aix_use_runtimelinking" = yes; then
11609         shared_flag="$shared_flag "'${wl}-G'
11610       fi
11611     else
11612       # not using gcc
11613       if test "$host_cpu" = ia64; then
11614         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11615         # chokes on -Wl,-G. The following line is correct:
11616         shared_flag='-G'
11617       else
11618         if test "$aix_use_runtimelinking" = yes; then
11619           shared_flag='${wl}-G'
11620         else
11621           shared_flag='${wl}-bM:SRE'
11622         fi
11623       fi
11624     fi
11626     # It seems that -bexpall does not export symbols beginning with
11627     # underscore (_), so it is better to generate a list of symbols to export.
11628     always_export_symbols_CXX=yes
11629     if test "$aix_use_runtimelinking" = yes; then
11630       # Warning - without using the other runtime loading flags (-brtl),
11631       # -berok will link without error, but may produce a broken library.
11632       allow_undefined_flag_CXX='-berok'
11633       # Determine the default libpath from the value encoded in an empty executable.
11634       cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h.  */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h.  */
11641 int
11642 main ()
11645   ;
11646   return 0;
11648 _ACEOF
11649 rm -f conftest.$ac_objext conftest$ac_exeext
11650 if { (ac_try="$ac_link"
11651 case "(($ac_try" in
11652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653   *) ac_try_echo=$ac_try;;
11654 esac
11655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11656   (eval "$ac_link") 2>conftest.er1
11657   ac_status=$?
11658   grep -v '^ *+' conftest.er1 >conftest.err
11659   rm -f conftest.er1
11660   cat conftest.err >&5
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); } && {
11663          test -z "$ac_cxx_werror_flag" ||
11664          test ! -s conftest.err
11665        } && test -s conftest$ac_exeext &&
11666        $as_test_x conftest$ac_exeext; then
11668 lt_aix_libpath_sed='
11669     /Import File Strings/,/^$/ {
11670         /^0/ {
11671             s/^0  *\(.*\)$/\1/
11672             p
11673         }
11674     }'
11675 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11676 # Check for a 64-bit object if we didn't find anything.
11677 if test -z "$aix_libpath"; then
11678   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11688       conftest$ac_exeext conftest.$ac_ext
11689 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11691       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11693       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"
11694      else
11695       if test "$host_cpu" = ia64; then
11696         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11697         allow_undefined_flag_CXX="-z nodefs"
11698         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"
11699       else
11700         # Determine the default libpath from the value encoded in an empty executable.
11701         cat >conftest.$ac_ext <<_ACEOF
11702 /* confdefs.h.  */
11703 _ACEOF
11704 cat confdefs.h >>conftest.$ac_ext
11705 cat >>conftest.$ac_ext <<_ACEOF
11706 /* end confdefs.h.  */
11708 int
11709 main ()
11712   ;
11713   return 0;
11715 _ACEOF
11716 rm -f conftest.$ac_objext conftest$ac_exeext
11717 if { (ac_try="$ac_link"
11718 case "(($ac_try" in
11719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720   *) ac_try_echo=$ac_try;;
11721 esac
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723   (eval "$ac_link") 2>conftest.er1
11724   ac_status=$?
11725   grep -v '^ *+' conftest.er1 >conftest.err
11726   rm -f conftest.er1
11727   cat conftest.err >&5
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); } && {
11730          test -z "$ac_cxx_werror_flag" ||
11731          test ! -s conftest.err
11732        } && test -s conftest$ac_exeext &&
11733        $as_test_x conftest$ac_exeext; then
11735 lt_aix_libpath_sed='
11736     /Import File Strings/,/^$/ {
11737         /^0/ {
11738             s/^0  *\(.*\)$/\1/
11739             p
11740         }
11741     }'
11742 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11743 # Check for a 64-bit object if we didn't find anything.
11744 if test -z "$aix_libpath"; then
11745   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11747 else
11748   echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11755       conftest$ac_exeext conftest.$ac_ext
11756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11758         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11759         # Warning - without using the other run time loading flags,
11760         # -berok will link without error, but may produce a broken library.
11761         no_undefined_flag_CXX=' ${wl}-bernotok'
11762         allow_undefined_flag_CXX=' ${wl}-berok'
11763         # Exported symbols can be pulled into shared objects from archives
11764         whole_archive_flag_spec_CXX='$convenience'
11765         archive_cmds_need_lc_CXX=yes
11766         # This is similar to how AIX traditionally builds its shared libraries.
11767         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'
11768       fi
11769     fi
11770     ;;
11772   beos*)
11773     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11774       allow_undefined_flag_CXX=unsupported
11775       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11776       # support --undefined.  This deserves some investigation.  FIXME
11777       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11778     else
11779       ld_shlibs_CXX=no
11780     fi
11781     ;;
11783   chorus*)
11784     case $cc_basename in
11785       *)
11786         # FIXME: insert proper C++ library support
11787         ld_shlibs_CXX=no
11788         ;;
11789     esac
11790     ;;
11792   cygwin* | mingw* | pw32*)
11793     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11794     # as there is no search path for DLLs.
11795     hardcode_libdir_flag_spec_CXX='-L$libdir'
11796     allow_undefined_flag_CXX=unsupported
11797     always_export_symbols_CXX=no
11798     enable_shared_with_static_runtimes_CXX=yes
11800     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11801       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'
11802       # If the export-symbols file already is a .def file (1st line
11803       # is EXPORTS), use it as is; otherwise, prepend...
11804       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11805         cp $export_symbols $output_objdir/$soname.def;
11806       else
11807         echo EXPORTS > $output_objdir/$soname.def;
11808         cat $export_symbols >> $output_objdir/$soname.def;
11809       fi~
11810       $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'
11811     else
11812       ld_shlibs_CXX=no
11813     fi
11814   ;;
11815       darwin* | rhapsody*)
11816       archive_cmds_need_lc_CXX=no
11817       hardcode_direct_CXX=no
11818       hardcode_automatic_CXX=yes
11819       hardcode_shlibpath_var_CXX=unsupported
11820       whole_archive_flag_spec_CXX=''
11821       link_all_deplibs_CXX=yes
11822       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11823       if test "$GXX" = yes ; then
11824       output_verbose_link_cmd='echo'
11825       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}"
11826       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11827       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}"
11828       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}"
11829       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11830         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}"
11831         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}"
11832       fi
11833       else
11834       case $cc_basename in
11835         xlc*)
11836          output_verbose_link_cmd='echo'
11837           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'
11838           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11839           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11840           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}'
11841           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}'
11842           ;;
11843        *)
11844          ld_shlibs_CXX=no
11845           ;;
11846       esac
11847       fi
11848         ;;
11850   dgux*)
11851     case $cc_basename in
11852       ec++*)
11853         # FIXME: insert proper C++ library support
11854         ld_shlibs_CXX=no
11855         ;;
11856       ghcx*)
11857         # Green Hills C++ Compiler
11858         # FIXME: insert proper C++ library support
11859         ld_shlibs_CXX=no
11860         ;;
11861       *)
11862         # FIXME: insert proper C++ library support
11863         ld_shlibs_CXX=no
11864         ;;
11865     esac
11866     ;;
11867   freebsd[12]*)
11868     # C++ shared libraries reported to be fairly broken before switch to ELF
11869     ld_shlibs_CXX=no
11870     ;;
11871   freebsd-elf*)
11872     archive_cmds_need_lc_CXX=no
11873     ;;
11874   freebsd* | dragonfly*)
11875     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11876     # conventions
11877     ld_shlibs_CXX=yes
11878     ;;
11879   gnu*)
11880     ;;
11881   hpux9*)
11882     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11883     hardcode_libdir_separator_CXX=:
11884     export_dynamic_flag_spec_CXX='${wl}-E'
11885     hardcode_direct_CXX=yes
11886     hardcode_minus_L_CXX=yes # Not in the search PATH,
11887                                 # but as the default
11888                                 # location of the library.
11890     case $cc_basename in
11891     CC*)
11892       # FIXME: insert proper C++ library support
11893       ld_shlibs_CXX=no
11894       ;;
11895     aCC*)
11896       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'
11897       # Commands to make compiler produce verbose output that lists
11898       # what "hidden" libraries, object files and flags are used when
11899       # linking a shared library.
11900       #
11901       # There doesn't appear to be a way to prevent this compiler from
11902       # explicitly linking system object files so we need to strip them
11903       # from the output so that they don't get included in the library
11904       # dependencies.
11905       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'
11906       ;;
11907     *)
11908       if test "$GXX" = yes; then
11909         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'
11910       else
11911         # FIXME: insert proper C++ library support
11912         ld_shlibs_CXX=no
11913       fi
11914       ;;
11915     esac
11916     ;;
11917   hpux10*|hpux11*)
11918     if test $with_gnu_ld = no; then
11919       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11920       hardcode_libdir_separator_CXX=:
11922       case $host_cpu in
11923       hppa*64*|ia64*) ;;
11924       *)
11925         export_dynamic_flag_spec_CXX='${wl}-E'
11926         ;;
11927       esac
11928     fi
11929     case $host_cpu in
11930     hppa*64*|ia64*)
11931       hardcode_direct_CXX=no
11932       hardcode_shlibpath_var_CXX=no
11933       ;;
11934     *)
11935       hardcode_direct_CXX=yes
11936       hardcode_minus_L_CXX=yes # Not in the search PATH,
11937                                               # but as the default
11938                                               # location of the library.
11939       ;;
11940     esac
11942     case $cc_basename in
11943       CC*)
11944         # FIXME: insert proper C++ library support
11945         ld_shlibs_CXX=no
11946         ;;
11947       aCC*)
11948         case $host_cpu in
11949         hppa*64*)
11950           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11951           ;;
11952         ia64*)
11953           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11954           ;;
11955         *)
11956           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11957           ;;
11958         esac
11959         # Commands to make compiler produce verbose output that lists
11960         # what "hidden" libraries, object files and flags are used when
11961         # linking a shared library.
11962         #
11963         # There doesn't appear to be a way to prevent this compiler from
11964         # explicitly linking system object files so we need to strip them
11965         # from the output so that they don't get included in the library
11966         # dependencies.
11967         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'
11968         ;;
11969       *)
11970         if test "$GXX" = yes; then
11971           if test $with_gnu_ld = no; then
11972             case $host_cpu in
11973             hppa*64*)
11974               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11975               ;;
11976             ia64*)
11977               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11978               ;;
11979             *)
11980               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'
11981               ;;
11982             esac
11983           fi
11984         else
11985           # FIXME: insert proper C++ library support
11986           ld_shlibs_CXX=no
11987         fi
11988         ;;
11989     esac
11990     ;;
11991   interix[3-9]*)
11992     hardcode_direct_CXX=no
11993     hardcode_shlibpath_var_CXX=no
11994     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11995     export_dynamic_flag_spec_CXX='${wl}-E'
11996     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11997     # Instead, shared libraries are loaded at an image base (0x10000000 by
11998     # default) and relocated if they conflict, which is a slow very memory
11999     # consuming and fragmenting process.  To avoid this, we pick a random,
12000     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12001     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12002     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'
12003     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'
12004     ;;
12005   irix5* | irix6*)
12006     case $cc_basename in
12007       CC*)
12008         # SGI C++
12009         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'
12011         # Archives containing C++ object files must be created using
12012         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12013         # necessary to make sure instantiated templates are included
12014         # in the archive.
12015         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12016         ;;
12017       *)
12018         if test "$GXX" = yes; then
12019           if test "$with_gnu_ld" = no; then
12020             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'
12021           else
12022             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'
12023           fi
12024         fi
12025         link_all_deplibs_CXX=yes
12026         ;;
12027     esac
12028     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12029     hardcode_libdir_separator_CXX=:
12030     ;;
12031   linux* | k*bsd*-gnu)
12032     case $cc_basename in
12033       KCC*)
12034         # Kuck and Associates, Inc. (KAI) C++ Compiler
12036         # KCC will only create a shared library if the output file
12037         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12038         # to its proper name (with version) after linking.
12039         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'
12040         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'
12041         # Commands to make compiler produce verbose output that lists
12042         # what "hidden" libraries, object files and flags are used when
12043         # linking a shared library.
12044         #
12045         # There doesn't appear to be a way to prevent this compiler from
12046         # explicitly linking system object files so we need to strip them
12047         # from the output so that they don't get included in the library
12048         # dependencies.
12049         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'
12051         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12052         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12054         # Archives containing C++ object files must be created using
12055         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12056         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12057         ;;
12058       icpc*)
12059         # Intel C++
12060         with_gnu_ld=yes
12061         # version 8.0 and above of icpc choke on multiply defined symbols
12062         # if we add $predep_objects and $postdep_objects, however 7.1 and
12063         # earlier do not add the objects themselves.
12064         case `$CC -V 2>&1` in
12065         *"Version 7."*)
12066           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12067           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'
12068           ;;
12069         *)  # Version 8.0 or newer
12070           tmp_idyn=
12071           case $host_cpu in
12072             ia64*) tmp_idyn=' -i_dynamic';;
12073           esac
12074           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075           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'
12076           ;;
12077         esac
12078         archive_cmds_need_lc_CXX=no
12079         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12080         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12081         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12082         ;;
12083       pgCC* | pgcpp*)
12084         # Portland Group C++ compiler
12085         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12086         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'
12088         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12089         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12090         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'
12091         ;;
12092       cxx*)
12093         # Compaq C++
12094         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12095         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'
12097         runpath_var=LD_RUN_PATH
12098         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12099         hardcode_libdir_separator_CXX=:
12101         # Commands to make compiler produce verbose output that lists
12102         # what "hidden" libraries, object files and flags are used when
12103         # linking a shared library.
12104         #
12105         # There doesn't appear to be a way to prevent this compiler from
12106         # explicitly linking system object files so we need to strip them
12107         # from the output so that they don't get included in the library
12108         # dependencies.
12109         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'
12110         ;;
12111       *)
12112         case `$CC -V 2>&1 | sed 5q` in
12113         *Sun\ C*)
12114           # Sun C++ 5.9
12115           no_undefined_flag_CXX=' -zdefs'
12116           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12117           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'
12118           hardcode_libdir_flag_spec_CXX='-R$libdir'
12119           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'
12121           # Not sure whether something based on
12122           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12123           # would be better.
12124           output_verbose_link_cmd='echo'
12126           # Archives containing C++ object files must be created using
12127           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12128           # necessary to make sure instantiated templates are included
12129           # in the archive.
12130           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12131           ;;
12132         esac
12133         ;;
12134     esac
12135     ;;
12136   lynxos*)
12137     # FIXME: insert proper C++ library support
12138     ld_shlibs_CXX=no
12139     ;;
12140   m88k*)
12141     # FIXME: insert proper C++ library support
12142     ld_shlibs_CXX=no
12143     ;;
12144   mvs*)
12145     case $cc_basename in
12146       cxx*)
12147         # FIXME: insert proper C++ library support
12148         ld_shlibs_CXX=no
12149         ;;
12150       *)
12151         # FIXME: insert proper C++ library support
12152         ld_shlibs_CXX=no
12153         ;;
12154     esac
12155     ;;
12156   netbsd* | netbsdelf*-gnu)
12157     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12158       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12159       wlarc=
12160       hardcode_libdir_flag_spec_CXX='-R$libdir'
12161       hardcode_direct_CXX=yes
12162       hardcode_shlibpath_var_CXX=no
12163     fi
12164     # Workaround some broken pre-1.5 toolchains
12165     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12166     ;;
12167   openbsd2*)
12168     # C++ shared libraries are fairly broken
12169     ld_shlibs_CXX=no
12170     ;;
12171   openbsd*)
12172     if test -f /usr/libexec/ld.so; then
12173       hardcode_direct_CXX=yes
12174       hardcode_shlibpath_var_CXX=no
12175       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12176       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12177       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12178         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12179         export_dynamic_flag_spec_CXX='${wl}-E'
12180         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12181       fi
12182       output_verbose_link_cmd='echo'
12183     else
12184       ld_shlibs_CXX=no
12185     fi
12186     ;;
12187   osf3*)
12188     case $cc_basename in
12189       KCC*)
12190         # Kuck and Associates, Inc. (KAI) C++ Compiler
12192         # KCC will only create a shared library if the output file
12193         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12194         # to its proper name (with version) after linking.
12195         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'
12197         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12198         hardcode_libdir_separator_CXX=:
12200         # Archives containing C++ object files must be created using
12201         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12202         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12204         ;;
12205       RCC*)
12206         # Rational C++ 2.4.1
12207         # FIXME: insert proper C++ library support
12208         ld_shlibs_CXX=no
12209         ;;
12210       cxx*)
12211         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12212         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'
12214         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12215         hardcode_libdir_separator_CXX=:
12217         # Commands to make compiler produce verbose output that lists
12218         # what "hidden" libraries, object files and flags are used when
12219         # linking a shared library.
12220         #
12221         # There doesn't appear to be a way to prevent this compiler from
12222         # explicitly linking system object files so we need to strip them
12223         # from the output so that they don't get included in the library
12224         # dependencies.
12225         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'
12226         ;;
12227       *)
12228         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12229           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12230           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'
12232           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12233           hardcode_libdir_separator_CXX=:
12235           # Commands to make compiler produce verbose output that lists
12236           # what "hidden" libraries, object files and flags are used when
12237           # linking a shared library.
12238           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12240         else
12241           # FIXME: insert proper C++ library support
12242           ld_shlibs_CXX=no
12243         fi
12244         ;;
12245     esac
12246     ;;
12247   osf4* | osf5*)
12248     case $cc_basename in
12249       KCC*)
12250         # Kuck and Associates, Inc. (KAI) C++ Compiler
12252         # KCC will only create a shared library if the output file
12253         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12254         # to its proper name (with version) after linking.
12255         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'
12257         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12258         hardcode_libdir_separator_CXX=:
12260         # Archives containing C++ object files must be created using
12261         # the KAI C++ compiler.
12262         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12263         ;;
12264       RCC*)
12265         # Rational C++ 2.4.1
12266         # FIXME: insert proper C++ library support
12267         ld_shlibs_CXX=no
12268         ;;
12269       cxx*)
12270         allow_undefined_flag_CXX=' -expect_unresolved \*'
12271         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'
12272         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12273           echo "-hidden">> $lib.exp~
12274           $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~
12275           $rm $lib.exp'
12277         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12278         hardcode_libdir_separator_CXX=:
12280         # Commands to make compiler produce verbose output that lists
12281         # what "hidden" libraries, object files and flags are used when
12282         # linking a shared library.
12283         #
12284         # There doesn't appear to be a way to prevent this compiler from
12285         # explicitly linking system object files so we need to strip them
12286         # from the output so that they don't get included in the library
12287         # dependencies.
12288         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'
12289         ;;
12290       *)
12291         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12292           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12293          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'
12295           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12296           hardcode_libdir_separator_CXX=:
12298           # Commands to make compiler produce verbose output that lists
12299           # what "hidden" libraries, object files and flags are used when
12300           # linking a shared library.
12301           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12303         else
12304           # FIXME: insert proper C++ library support
12305           ld_shlibs_CXX=no
12306         fi
12307         ;;
12308     esac
12309     ;;
12310   psos*)
12311     # FIXME: insert proper C++ library support
12312     ld_shlibs_CXX=no
12313     ;;
12314   sunos4*)
12315     case $cc_basename in
12316       CC*)
12317         # Sun C++ 4.x
12318         # FIXME: insert proper C++ library support
12319         ld_shlibs_CXX=no
12320         ;;
12321       lcc*)
12322         # Lucid
12323         # FIXME: insert proper C++ library support
12324         ld_shlibs_CXX=no
12325         ;;
12326       *)
12327         # FIXME: insert proper C++ library support
12328         ld_shlibs_CXX=no
12329         ;;
12330     esac
12331     ;;
12332   solaris*)
12333     case $cc_basename in
12334       CC*)
12335         # Sun C++ 4.2, 5.x and Centerline C++
12336         archive_cmds_need_lc_CXX=yes
12337         no_undefined_flag_CXX=' -zdefs'
12338         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12339         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12340         $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'
12342         hardcode_libdir_flag_spec_CXX='-R$libdir'
12343         hardcode_shlibpath_var_CXX=no
12344         case $host_os in
12345           solaris2.[0-5] | solaris2.[0-5].*) ;;
12346           *)
12347             # The compiler driver will combine and reorder linker options,
12348             # but understands `-z linker_flag'.
12349             # Supported since Solaris 2.6 (maybe 2.5.1?)
12350             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12351             ;;
12352         esac
12353         link_all_deplibs_CXX=yes
12355         output_verbose_link_cmd='echo'
12357         # Archives containing C++ object files must be created using
12358         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12359         # necessary to make sure instantiated templates are included
12360         # in the archive.
12361         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12362         ;;
12363       gcx*)
12364         # Green Hills C++ Compiler
12365         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12367         # The C++ compiler must be used to create the archive.
12368         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12369         ;;
12370       *)
12371         # GNU C++ compiler with Solaris linker
12372         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12373           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12374           if $CC --version | grep -v '^2\.7' > /dev/null; then
12375             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12376             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12377                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12379             # Commands to make compiler produce verbose output that lists
12380             # what "hidden" libraries, object files and flags are used when
12381             # linking a shared library.
12382             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12383           else
12384             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12385             # platform.
12386             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12387             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12388                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12390             # Commands to make compiler produce verbose output that lists
12391             # what "hidden" libraries, object files and flags are used when
12392             # linking a shared library.
12393             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12394           fi
12396           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12397           case $host_os in
12398           solaris2.[0-5] | solaris2.[0-5].*) ;;
12399           *)
12400             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12401             ;;
12402           esac
12403         fi
12404         ;;
12405     esac
12406     ;;
12407   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12408     no_undefined_flag_CXX='${wl}-z,text'
12409     archive_cmds_need_lc_CXX=no
12410     hardcode_shlibpath_var_CXX=no
12411     runpath_var='LD_RUN_PATH'
12413     case $cc_basename in
12414       CC*)
12415         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12416         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12417         ;;
12418       *)
12419         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12420         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12421         ;;
12422     esac
12423     ;;
12424   sysv5* | sco3.2v5* | sco5v6*)
12425     # Note: We can NOT use -z defs as we might desire, because we do not
12426     # link with -lc, and that would cause any symbols used from libc to
12427     # always be unresolved, which means just about no library would
12428     # ever link correctly.  If we're not using GNU ld we use -z text
12429     # though, which does catch some bad symbols but isn't as heavy-handed
12430     # as -z defs.
12431     # For security reasons, it is highly recommended that you always
12432     # use absolute paths for naming shared libraries, and exclude the
12433     # DT_RUNPATH tag from executables and libraries.  But doing so
12434     # requires that you compile everything twice, which is a pain.
12435     # So that behaviour is only enabled if SCOABSPATH is set to a
12436     # non-empty value in the environment.  Most likely only useful for
12437     # creating official distributions of packages.
12438     # This is a hack until libtool officially supports absolute path
12439     # names for shared libraries.
12440     no_undefined_flag_CXX='${wl}-z,text'
12441     allow_undefined_flag_CXX='${wl}-z,nodefs'
12442     archive_cmds_need_lc_CXX=no
12443     hardcode_shlibpath_var_CXX=no
12444     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12445     hardcode_libdir_separator_CXX=':'
12446     link_all_deplibs_CXX=yes
12447     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12448     runpath_var='LD_RUN_PATH'
12450     case $cc_basename in
12451       CC*)
12452         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12453         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12454         ;;
12455       *)
12456         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12457         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12458         ;;
12459     esac
12460     ;;
12461   tandem*)
12462     case $cc_basename in
12463       NCC*)
12464         # NonStop-UX NCC 3.20
12465         # FIXME: insert proper C++ library support
12466         ld_shlibs_CXX=no
12467         ;;
12468       *)
12469         # FIXME: insert proper C++ library support
12470         ld_shlibs_CXX=no
12471         ;;
12472     esac
12473     ;;
12474   vxworks*)
12475     # FIXME: insert proper C++ library support
12476     ld_shlibs_CXX=no
12477     ;;
12478   *)
12479     # FIXME: insert proper C++ library support
12480     ld_shlibs_CXX=no
12481     ;;
12482 esac
12483 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12484 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12485 test "$ld_shlibs_CXX" = no && can_build_shared=no
12487 GCC_CXX="$GXX"
12488 LD_CXX="$LD"
12490 cat > conftest.$ac_ext <<EOF
12491 class Foo
12493 public:
12494   Foo (void) { a = 0; }
12495 private:
12496   int a;
12498 EOF
12500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12501   (eval $ac_compile) 2>&5
12502   ac_status=$?
12503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504   (exit $ac_status); }; then
12505   # Parse the compiler output and extract the necessary
12506   # objects, libraries and library flags.
12508   # Sentinel used to keep track of whether or not we are before
12509   # the conftest object file.
12510   pre_test_object_deps_done=no
12512   # The `*' in the case matches for architectures that use `case' in
12513   # $output_verbose_cmd can trigger glob expansion during the loop
12514   # eval without this substitution.
12515   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12517   for p in `eval $output_verbose_link_cmd`; do
12518     case $p in
12520     -L* | -R* | -l*)
12521        # Some compilers place space between "-{L,R}" and the path.
12522        # Remove the space.
12523        if test $p = "-L" \
12524           || test $p = "-R"; then
12525          prev=$p
12526          continue
12527        else
12528          prev=
12529        fi
12531        if test "$pre_test_object_deps_done" = no; then
12532          case $p in
12533          -L* | -R*)
12534            # Internal compiler library paths should come after those
12535            # provided the user.  The postdeps already come after the
12536            # user supplied libs so there is no need to process them.
12537            if test -z "$compiler_lib_search_path_CXX"; then
12538              compiler_lib_search_path_CXX="${prev}${p}"
12539            else
12540              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12541            fi
12542            ;;
12543          # The "-l" case would never come before the object being
12544          # linked, so don't bother handling this case.
12545          esac
12546        else
12547          if test -z "$postdeps_CXX"; then
12548            postdeps_CXX="${prev}${p}"
12549          else
12550            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12551          fi
12552        fi
12553        ;;
12555     *.$objext)
12556        # This assumes that the test object file only shows up
12557        # once in the compiler output.
12558        if test "$p" = "conftest.$objext"; then
12559          pre_test_object_deps_done=yes
12560          continue
12561        fi
12563        if test "$pre_test_object_deps_done" = no; then
12564          if test -z "$predep_objects_CXX"; then
12565            predep_objects_CXX="$p"
12566          else
12567            predep_objects_CXX="$predep_objects_CXX $p"
12568          fi
12569        else
12570          if test -z "$postdep_objects_CXX"; then
12571            postdep_objects_CXX="$p"
12572          else
12573            postdep_objects_CXX="$postdep_objects_CXX $p"
12574          fi
12575        fi
12576        ;;
12578     *) ;; # Ignore the rest.
12580     esac
12581   done
12583   # Clean up.
12584   rm -f a.out a.exe
12585 else
12586   echo "libtool.m4: error: problem compiling CXX test program"
12589 $rm -f confest.$objext
12591 compiler_lib_search_dirs_CXX=
12592 if test -n "$compiler_lib_search_path_CXX"; then
12593   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12596 # PORTME: override above test on systems where it is broken
12597 case $host_os in
12598 interix[3-9]*)
12599   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12600   # hack all around it, let's just trust "g++" to DTRT.
12601   predep_objects_CXX=
12602   postdep_objects_CXX=
12603   postdeps_CXX=
12604   ;;
12606 linux*)
12607   case `$CC -V 2>&1 | sed 5q` in
12608   *Sun\ C*)
12609     # Sun C++ 5.9
12610     #
12611     # The more standards-conforming stlport4 library is
12612     # incompatible with the Cstd library. Avoid specifying
12613     # it if it's in CXXFLAGS. Ignore libCrun as
12614     # -library=stlport4 depends on it.
12615     case " $CXX $CXXFLAGS " in
12616     *" -library=stlport4 "*)
12617       solaris_use_stlport4=yes
12618       ;;
12619     esac
12620     if test "$solaris_use_stlport4" != yes; then
12621       postdeps_CXX='-library=Cstd -library=Crun'
12622     fi
12623     ;;
12624   esac
12625   ;;
12627 solaris*)
12628   case $cc_basename in
12629   CC*)
12630     # The more standards-conforming stlport4 library is
12631     # incompatible with the Cstd library. Avoid specifying
12632     # it if it's in CXXFLAGS. Ignore libCrun as
12633     # -library=stlport4 depends on it.
12634     case " $CXX $CXXFLAGS " in
12635     *" -library=stlport4 "*)
12636       solaris_use_stlport4=yes
12637       ;;
12638     esac
12640     # Adding this requires a known-good setup of shared libraries for
12641     # Sun compiler versions before 5.6, else PIC objects from an old
12642     # archive will be linked into the output, leading to subtle bugs.
12643     if test "$solaris_use_stlport4" != yes; then
12644       postdeps_CXX='-library=Cstd -library=Crun'
12645     fi
12646     ;;
12647   esac
12648   ;;
12649 esac
12651 case " $postdeps_CXX " in
12652 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12653 esac
12655 lt_prog_compiler_wl_CXX=
12656 lt_prog_compiler_pic_CXX=
12657 lt_prog_compiler_static_CXX=
12659 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12660 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12662   # C++ specific cases for pic, static, wl, etc.
12663   if test "$GXX" = yes; then
12664     lt_prog_compiler_wl_CXX='-Wl,'
12665     lt_prog_compiler_static_CXX='-static'
12667     case $host_os in
12668     aix*)
12669       # All AIX code is PIC.
12670       if test "$host_cpu" = ia64; then
12671         # AIX 5 now supports IA64 processor
12672         lt_prog_compiler_static_CXX='-Bstatic'
12673       fi
12674       ;;
12675     amigaos*)
12676       # FIXME: we need at least 68020 code to build shared libraries, but
12677       # adding the `-m68020' flag to GCC prevents building anything better,
12678       # like `-m68040'.
12679       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12680       ;;
12681     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12682       # PIC is the default for these OSes.
12683       ;;
12684     mingw* | cygwin* | os2* | pw32*)
12685       # This hack is so that the source file can tell whether it is being
12686       # built for inclusion in a dll (and should export symbols for example).
12687       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12688       # (--disable-auto-import) libraries
12689       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12690       ;;
12691     darwin* | rhapsody*)
12692       # PIC is the default on this platform
12693       # Common symbols not allowed in MH_DYLIB files
12694       lt_prog_compiler_pic_CXX='-fno-common'
12695       ;;
12696     *djgpp*)
12697       # DJGPP does not support shared libraries at all
12698       lt_prog_compiler_pic_CXX=
12699       ;;
12700     interix[3-9]*)
12701       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12702       # Instead, we relocate shared libraries at runtime.
12703       ;;
12704     sysv4*MP*)
12705       if test -d /usr/nec; then
12706         lt_prog_compiler_pic_CXX=-Kconform_pic
12707       fi
12708       ;;
12709     hpux*)
12710       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12711       # not for PA HP-UX.
12712       case $host_cpu in
12713       hppa*64*|ia64*)
12714         ;;
12715       *)
12716         lt_prog_compiler_pic_CXX='-fPIC'
12717         ;;
12718       esac
12719       ;;
12720     *)
12721       lt_prog_compiler_pic_CXX='-fPIC'
12722       ;;
12723     esac
12724   else
12725     case $host_os in
12726       aix[4-9]*)
12727         # All AIX code is PIC.
12728         if test "$host_cpu" = ia64; then
12729           # AIX 5 now supports IA64 processor
12730           lt_prog_compiler_static_CXX='-Bstatic'
12731         else
12732           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12733         fi
12734         ;;
12735       chorus*)
12736         case $cc_basename in
12737         cxch68*)
12738           # Green Hills C++ Compiler
12739           # _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"
12740           ;;
12741         esac
12742         ;;
12743        darwin*)
12744          # PIC is the default on this platform
12745          # Common symbols not allowed in MH_DYLIB files
12746          case $cc_basename in
12747            xlc*)
12748            lt_prog_compiler_pic_CXX='-qnocommon'
12749            lt_prog_compiler_wl_CXX='-Wl,'
12750            ;;
12751          esac
12752        ;;
12753       dgux*)
12754         case $cc_basename in
12755           ec++*)
12756             lt_prog_compiler_pic_CXX='-KPIC'
12757             ;;
12758           ghcx*)
12759             # Green Hills C++ Compiler
12760             lt_prog_compiler_pic_CXX='-pic'
12761             ;;
12762           *)
12763             ;;
12764         esac
12765         ;;
12766       freebsd* | dragonfly*)
12767         # FreeBSD uses GNU C++
12768         ;;
12769       hpux9* | hpux10* | hpux11*)
12770         case $cc_basename in
12771           CC*)
12772             lt_prog_compiler_wl_CXX='-Wl,'
12773             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12774             if test "$host_cpu" != ia64; then
12775               lt_prog_compiler_pic_CXX='+Z'
12776             fi
12777             ;;
12778           aCC*)
12779             lt_prog_compiler_wl_CXX='-Wl,'
12780             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12781             case $host_cpu in
12782             hppa*64*|ia64*)
12783               # +Z the default
12784               ;;
12785             *)
12786               lt_prog_compiler_pic_CXX='+Z'
12787               ;;
12788             esac
12789             ;;
12790           *)
12791             ;;
12792         esac
12793         ;;
12794       interix*)
12795         # This is c89, which is MS Visual C++ (no shared libs)
12796         # Anyone wants to do a port?
12797         ;;
12798       irix5* | irix6* | nonstopux*)
12799         case $cc_basename in
12800           CC*)
12801             lt_prog_compiler_wl_CXX='-Wl,'
12802             lt_prog_compiler_static_CXX='-non_shared'
12803             # CC pic flag -KPIC is the default.
12804             ;;
12805           *)
12806             ;;
12807         esac
12808         ;;
12809       linux* | k*bsd*-gnu)
12810         case $cc_basename in
12811           KCC*)
12812             # KAI C++ Compiler
12813             lt_prog_compiler_wl_CXX='--backend -Wl,'
12814             lt_prog_compiler_pic_CXX='-fPIC'
12815             ;;
12816           icpc* | ecpc*)
12817             # Intel C++
12818             lt_prog_compiler_wl_CXX='-Wl,'
12819             lt_prog_compiler_pic_CXX='-KPIC'
12820             lt_prog_compiler_static_CXX='-static'
12821             ;;
12822           pgCC* | pgcpp*)
12823             # Portland Group C++ compiler.
12824             lt_prog_compiler_wl_CXX='-Wl,'
12825             lt_prog_compiler_pic_CXX='-fpic'
12826             lt_prog_compiler_static_CXX='-Bstatic'
12827             ;;
12828           cxx*)
12829             # Compaq C++
12830             # Make sure the PIC flag is empty.  It appears that all Alpha
12831             # Linux and Compaq Tru64 Unix objects are PIC.
12832             lt_prog_compiler_pic_CXX=
12833             lt_prog_compiler_static_CXX='-non_shared'
12834             ;;
12835           *)
12836             case `$CC -V 2>&1 | sed 5q` in
12837             *Sun\ C*)
12838               # Sun C++ 5.9
12839               lt_prog_compiler_pic_CXX='-KPIC'
12840               lt_prog_compiler_static_CXX='-Bstatic'
12841               lt_prog_compiler_wl_CXX='-Qoption ld '
12842               ;;
12843             esac
12844             ;;
12845         esac
12846         ;;
12847       lynxos*)
12848         ;;
12849       m88k*)
12850         ;;
12851       mvs*)
12852         case $cc_basename in
12853           cxx*)
12854             lt_prog_compiler_pic_CXX='-W c,exportall'
12855             ;;
12856           *)
12857             ;;
12858         esac
12859         ;;
12860       netbsd* | netbsdelf*-gnu)
12861         ;;
12862       osf3* | osf4* | osf5*)
12863         case $cc_basename in
12864           KCC*)
12865             lt_prog_compiler_wl_CXX='--backend -Wl,'
12866             ;;
12867           RCC*)
12868             # Rational C++ 2.4.1
12869             lt_prog_compiler_pic_CXX='-pic'
12870             ;;
12871           cxx*)
12872             # Digital/Compaq C++
12873             lt_prog_compiler_wl_CXX='-Wl,'
12874             # Make sure the PIC flag is empty.  It appears that all Alpha
12875             # Linux and Compaq Tru64 Unix objects are PIC.
12876             lt_prog_compiler_pic_CXX=
12877             lt_prog_compiler_static_CXX='-non_shared'
12878             ;;
12879           *)
12880             ;;
12881         esac
12882         ;;
12883       psos*)
12884         ;;
12885       solaris*)
12886         case $cc_basename in
12887           CC*)
12888             # Sun C++ 4.2, 5.x and Centerline C++
12889             lt_prog_compiler_pic_CXX='-KPIC'
12890             lt_prog_compiler_static_CXX='-Bstatic'
12891             lt_prog_compiler_wl_CXX='-Qoption ld '
12892             ;;
12893           gcx*)
12894             # Green Hills C++ Compiler
12895             lt_prog_compiler_pic_CXX='-PIC'
12896             ;;
12897           *)
12898             ;;
12899         esac
12900         ;;
12901       sunos4*)
12902         case $cc_basename in
12903           CC*)
12904             # Sun C++ 4.x
12905             lt_prog_compiler_pic_CXX='-pic'
12906             lt_prog_compiler_static_CXX='-Bstatic'
12907             ;;
12908           lcc*)
12909             # Lucid
12910             lt_prog_compiler_pic_CXX='-pic'
12911             ;;
12912           *)
12913             ;;
12914         esac
12915         ;;
12916       tandem*)
12917         case $cc_basename in
12918           NCC*)
12919             # NonStop-UX NCC 3.20
12920             lt_prog_compiler_pic_CXX='-KPIC'
12921             ;;
12922           *)
12923             ;;
12924         esac
12925         ;;
12926       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12927         case $cc_basename in
12928           CC*)
12929             lt_prog_compiler_wl_CXX='-Wl,'
12930             lt_prog_compiler_pic_CXX='-KPIC'
12931             lt_prog_compiler_static_CXX='-Bstatic'
12932             ;;
12933         esac
12934         ;;
12935       vxworks*)
12936         ;;
12937       *)
12938         lt_prog_compiler_can_build_shared_CXX=no
12939         ;;
12940     esac
12941   fi
12943 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12944 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12947 # Check to make sure the PIC flag actually works.
12949 if test -n "$lt_prog_compiler_pic_CXX"; then
12951 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12952 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12953 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12954   echo $ECHO_N "(cached) $ECHO_C" >&6
12955 else
12956   lt_cv_prog_compiler_pic_works_CXX=no
12957   ac_outfile=conftest.$ac_objext
12958    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12959    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12960    # Insert the option either (1) after the last *FLAGS variable, or
12961    # (2) before a word containing "conftest.", or (3) at the end.
12962    # Note that $ac_compile itself does not contain backslashes and begins
12963    # with a dollar sign (not a hyphen), so the echo should work correctly.
12964    # The option is referenced via a variable to avoid confusing sed.
12965    lt_compile=`echo "$ac_compile" | $SED \
12966    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12967    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12968    -e 's:$: $lt_compiler_flag:'`
12969    (eval echo "\"\$as_me:12969: $lt_compile\"" >&5)
12970    (eval "$lt_compile" 2>conftest.err)
12971    ac_status=$?
12972    cat conftest.err >&5
12973    echo "$as_me:12973: \$? = $ac_status" >&5
12974    if (exit $ac_status) && test -s "$ac_outfile"; then
12975      # The compiler can only warn and ignore the option if not recognized
12976      # So say no if there are warnings other than the usual output.
12977      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12978      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12979      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12980        lt_cv_prog_compiler_pic_works_CXX=yes
12981      fi
12982    fi
12983    $rm conftest*
12986 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12987 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12989 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12990     case $lt_prog_compiler_pic_CXX in
12991      "" | " "*) ;;
12992      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12993      esac
12994 else
12995     lt_prog_compiler_pic_CXX=
12996      lt_prog_compiler_can_build_shared_CXX=no
13000 case $host_os in
13001   # For platforms which do not support PIC, -DPIC is meaningless:
13002   *djgpp*)
13003     lt_prog_compiler_pic_CXX=
13004     ;;
13005   *)
13006     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13007     ;;
13008 esac
13011 # Check to make sure the static flag actually works.
13013 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13014 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13015 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13016 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
13017   echo $ECHO_N "(cached) $ECHO_C" >&6
13018 else
13019   lt_cv_prog_compiler_static_works_CXX=no
13020    save_LDFLAGS="$LDFLAGS"
13021    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13022    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13023    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13024      # The linker can only warn and ignore the option if not recognized
13025      # So say no if there are warnings
13026      if test -s conftest.err; then
13027        # Append any errors to the config.log.
13028        cat conftest.err 1>&5
13029        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13030        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13031        if diff conftest.exp conftest.er2 >/dev/null; then
13032          lt_cv_prog_compiler_static_works_CXX=yes
13033        fi
13034      else
13035        lt_cv_prog_compiler_static_works_CXX=yes
13036      fi
13037    fi
13038    $rm -r conftest*
13039    LDFLAGS="$save_LDFLAGS"
13042 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13043 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
13045 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13046     :
13047 else
13048     lt_prog_compiler_static_CXX=
13052 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13053 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13054 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13055   echo $ECHO_N "(cached) $ECHO_C" >&6
13056 else
13057   lt_cv_prog_compiler_c_o_CXX=no
13058    $rm -r conftest 2>/dev/null
13059    mkdir conftest
13060    cd conftest
13061    mkdir out
13062    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13064    lt_compiler_flag="-o out/conftest2.$ac_objext"
13065    # Insert the option either (1) after the last *FLAGS variable, or
13066    # (2) before a word containing "conftest.", or (3) at the end.
13067    # Note that $ac_compile itself does not contain backslashes and begins
13068    # with a dollar sign (not a hyphen), so the echo should work correctly.
13069    lt_compile=`echo "$ac_compile" | $SED \
13070    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13071    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13072    -e 's:$: $lt_compiler_flag:'`
13073    (eval echo "\"\$as_me:13073: $lt_compile\"" >&5)
13074    (eval "$lt_compile" 2>out/conftest.err)
13075    ac_status=$?
13076    cat out/conftest.err >&5
13077    echo "$as_me:13077: \$? = $ac_status" >&5
13078    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13079    then
13080      # The compiler can only warn and ignore the option if not recognized
13081      # So say no if there are warnings
13082      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13083      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13084      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13085        lt_cv_prog_compiler_c_o_CXX=yes
13086      fi
13087    fi
13088    chmod u+w . 2>&5
13089    $rm conftest*
13090    # SGI C++ compiler will create directory out/ii_files/ for
13091    # template instantiation
13092    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13093    $rm out/* && rmdir out
13094    cd ..
13095    rmdir conftest
13096    $rm conftest*
13099 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13100 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13103 hard_links="nottested"
13104 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13105   # do not overwrite the value of need_locks provided by the user
13106   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13107 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13108   hard_links=yes
13109   $rm conftest*
13110   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13111   touch conftest.a
13112   ln conftest.a conftest.b 2>&5 || hard_links=no
13113   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13114   { echo "$as_me:$LINENO: result: $hard_links" >&5
13115 echo "${ECHO_T}$hard_links" >&6; }
13116   if test "$hard_links" = no; then
13117     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13118 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13119     need_locks=warn
13120   fi
13121 else
13122   need_locks=no
13125 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13126 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13128   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13129   case $host_os in
13130   aix[4-9]*)
13131     # If we're using GNU nm, then we don't want the "-C" option.
13132     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13133     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13134       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'
13135     else
13136       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'
13137     fi
13138     ;;
13139   pw32*)
13140     export_symbols_cmds_CXX="$ltdll_cmds"
13141   ;;
13142   cygwin* | mingw*)
13143     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'
13144   ;;
13145   linux* | k*bsd*-gnu)
13146     link_all_deplibs_CXX=no
13147   ;;
13148   *)
13149     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13150   ;;
13151   esac
13152   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13154 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13155 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13156 test "$ld_shlibs_CXX" = no && can_build_shared=no
13159 # Do we need to explicitly link libc?
13161 case "x$archive_cmds_need_lc_CXX" in
13162 x|xyes)
13163   # Assume -lc should be added
13164   archive_cmds_need_lc_CXX=yes
13166   if test "$enable_shared" = yes && test "$GCC" = yes; then
13167     case $archive_cmds_CXX in
13168     *'~'*)
13169       # FIXME: we may have to deal with multi-command sequences.
13170       ;;
13171     '$CC '*)
13172       # Test whether the compiler implicitly links with -lc since on some
13173       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13174       # to ld, don't add -lc before -lgcc.
13175       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13176 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13177       $rm conftest*
13178       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13180       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181   (eval $ac_compile) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } 2>conftest.err; then
13185         soname=conftest
13186         lib=conftest
13187         libobjs=conftest.$ac_objext
13188         deplibs=
13189         wl=$lt_prog_compiler_wl_CXX
13190         pic_flag=$lt_prog_compiler_pic_CXX
13191         compiler_flags=-v
13192         linker_flags=-v
13193         verstring=
13194         output_objdir=.
13195         libname=conftest
13196         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13197         allow_undefined_flag_CXX=
13198         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13199   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); }
13203         then
13204           archive_cmds_need_lc_CXX=no
13205         else
13206           archive_cmds_need_lc_CXX=yes
13207         fi
13208         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13209       else
13210         cat conftest.err 1>&5
13211       fi
13212       $rm conftest*
13213       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13214 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13215       ;;
13216     esac
13217   fi
13218   ;;
13219 esac
13221 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13222 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13223 library_names_spec=
13224 libname_spec='lib$name'
13225 soname_spec=
13226 shrext_cmds=".so"
13227 postinstall_cmds=
13228 postuninstall_cmds=
13229 finish_cmds=
13230 finish_eval=
13231 shlibpath_var=
13232 shlibpath_overrides_runpath=unknown
13233 version_type=none
13234 dynamic_linker="$host_os ld.so"
13235 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13237 need_lib_prefix=unknown
13238 hardcode_into_libs=no
13240 # when you set need_version to no, make sure it does not cause -set_version
13241 # flags to be left without arguments
13242 need_version=unknown
13244 case $host_os in
13245 aix3*)
13246   version_type=linux
13247   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13248   shlibpath_var=LIBPATH
13250   # AIX 3 has no versioning support, so we append a major version to the name.
13251   soname_spec='${libname}${release}${shared_ext}$major'
13252   ;;
13254 aix[4-9]*)
13255   version_type=linux
13256   need_lib_prefix=no
13257   need_version=no
13258   hardcode_into_libs=yes
13259   if test "$host_cpu" = ia64; then
13260     # AIX 5 supports IA64
13261     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13262     shlibpath_var=LD_LIBRARY_PATH
13263   else
13264     # With GCC up to 2.95.x, collect2 would create an import file
13265     # for dependence libraries.  The import file would start with
13266     # the line `#! .'.  This would cause the generated library to
13267     # depend on `.', always an invalid library.  This was fixed in
13268     # development snapshots of GCC prior to 3.0.
13269     case $host_os in
13270       aix4 | aix4.[01] | aix4.[01].*)
13271       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13272            echo ' yes '
13273            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13274         :
13275       else
13276         can_build_shared=no
13277       fi
13278       ;;
13279     esac
13280     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13281     # soname into executable. Probably we can add versioning support to
13282     # collect2, so additional links can be useful in future.
13283     if test "$aix_use_runtimelinking" = yes; then
13284       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13285       # instead of lib<name>.a to let people know that these are not
13286       # typical AIX shared libraries.
13287       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13288     else
13289       # We preserve .a as extension for shared libraries through AIX4.2
13290       # and later when we are not doing run time linking.
13291       library_names_spec='${libname}${release}.a $libname.a'
13292       soname_spec='${libname}${release}${shared_ext}$major'
13293     fi
13294     shlibpath_var=LIBPATH
13295   fi
13296   ;;
13298 amigaos*)
13299   library_names_spec='$libname.ixlibrary $libname.a'
13300   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13301   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'
13302   ;;
13304 beos*)
13305   library_names_spec='${libname}${shared_ext}'
13306   dynamic_linker="$host_os ld.so"
13307   shlibpath_var=LIBRARY_PATH
13308   ;;
13310 bsdi[45]*)
13311   version_type=linux
13312   need_version=no
13313   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13314   soname_spec='${libname}${release}${shared_ext}$major'
13315   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13316   shlibpath_var=LD_LIBRARY_PATH
13317   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13318   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13319   # the default ld.so.conf also contains /usr/contrib/lib and
13320   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13321   # libtool to hard-code these into programs
13322   ;;
13324 cygwin* | mingw* | pw32*)
13325   version_type=windows
13326   shrext_cmds=".dll"
13327   need_version=no
13328   need_lib_prefix=no
13330   case $GCC,$host_os in
13331   yes,cygwin* | yes,mingw* | yes,pw32*)
13332     library_names_spec='$libname.dll.a'
13333     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13334     postinstall_cmds='base_file=`basename \${file}`~
13335       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13336       dldir=$destdir/`dirname \$dlpath`~
13337       test -d \$dldir || mkdir -p \$dldir~
13338       $install_prog $dir/$dlname \$dldir/$dlname~
13339       chmod a+x \$dldir/$dlname'
13340     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13341       dlpath=$dir/\$dldll~
13342        $rm \$dlpath'
13343     shlibpath_overrides_runpath=yes
13345     case $host_os in
13346     cygwin*)
13347       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13348       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13349       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13350       ;;
13351     mingw*)
13352       # MinGW DLLs use traditional 'lib' prefix
13353       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13354       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13355       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13356         # It is most probably a Windows format PATH printed by
13357         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13358         # path with ; separators, and with drive letters. We can handle the
13359         # drive letters (cygwin fileutils understands them), so leave them,
13360         # especially as we might pass files found there to a mingw objdump,
13361         # which wouldn't understand a cygwinified path. Ahh.
13362         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13363       else
13364         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13365       fi
13366       ;;
13367     pw32*)
13368       # pw32 DLLs use 'pw' prefix rather than 'lib'
13369       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13370       ;;
13371     esac
13372     ;;
13374   *)
13375     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13376     ;;
13377   esac
13378   dynamic_linker='Win32 ld.exe'
13379   # FIXME: first we should search . and the directory the executable is in
13380   shlibpath_var=PATH
13381   ;;
13383 darwin* | rhapsody*)
13384   dynamic_linker="$host_os dyld"
13385   version_type=darwin
13386   need_lib_prefix=no
13387   need_version=no
13388   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13389   soname_spec='${libname}${release}${major}$shared_ext'
13390   shlibpath_overrides_runpath=yes
13391   shlibpath_var=DYLD_LIBRARY_PATH
13392   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13394   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13395   ;;
13397 dgux*)
13398   version_type=linux
13399   need_lib_prefix=no
13400   need_version=no
13401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13402   soname_spec='${libname}${release}${shared_ext}$major'
13403   shlibpath_var=LD_LIBRARY_PATH
13404   ;;
13406 freebsd1*)
13407   dynamic_linker=no
13408   ;;
13410 freebsd* | dragonfly*)
13411   # DragonFly does not have aout.  When/if they implement a new
13412   # versioning mechanism, adjust this.
13413   if test -x /usr/bin/objformat; then
13414     objformat=`/usr/bin/objformat`
13415   else
13416     case $host_os in
13417     freebsd[123]*) objformat=aout ;;
13418     *) objformat=elf ;;
13419     esac
13420   fi
13421   version_type=freebsd-$objformat
13422   case $version_type in
13423     freebsd-elf*)
13424       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13425       need_version=no
13426       need_lib_prefix=no
13427       ;;
13428     freebsd-*)
13429       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13430       need_version=yes
13431       ;;
13432   esac
13433   shlibpath_var=LD_LIBRARY_PATH
13434   case $host_os in
13435   freebsd2*)
13436     shlibpath_overrides_runpath=yes
13437     ;;
13438   freebsd3.[01]* | freebsdelf3.[01]*)
13439     shlibpath_overrides_runpath=yes
13440     hardcode_into_libs=yes
13441     ;;
13442   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13443   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13444     shlibpath_overrides_runpath=no
13445     hardcode_into_libs=yes
13446     ;;
13447   *) # from 4.6 on, and DragonFly
13448     shlibpath_overrides_runpath=yes
13449     hardcode_into_libs=yes
13450     ;;
13451   esac
13452   ;;
13454 gnu*)
13455   version_type=linux
13456   need_lib_prefix=no
13457   need_version=no
13458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13459   soname_spec='${libname}${release}${shared_ext}$major'
13460   shlibpath_var=LD_LIBRARY_PATH
13461   hardcode_into_libs=yes
13462   ;;
13464 hpux9* | hpux10* | hpux11*)
13465   # Give a soname corresponding to the major version so that dld.sl refuses to
13466   # link against other versions.
13467   version_type=sunos
13468   need_lib_prefix=no
13469   need_version=no
13470   case $host_cpu in
13471   ia64*)
13472     shrext_cmds='.so'
13473     hardcode_into_libs=yes
13474     dynamic_linker="$host_os dld.so"
13475     shlibpath_var=LD_LIBRARY_PATH
13476     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13477     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13478     soname_spec='${libname}${release}${shared_ext}$major'
13479     if test "X$HPUX_IA64_MODE" = X32; then
13480       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13481     else
13482       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13483     fi
13484     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13485     ;;
13486    hppa*64*)
13487      shrext_cmds='.sl'
13488      hardcode_into_libs=yes
13489      dynamic_linker="$host_os dld.sl"
13490      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13491      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13492      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13493      soname_spec='${libname}${release}${shared_ext}$major'
13494      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13495      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13496      ;;
13497    *)
13498     shrext_cmds='.sl'
13499     dynamic_linker="$host_os dld.sl"
13500     shlibpath_var=SHLIB_PATH
13501     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13502     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13503     soname_spec='${libname}${release}${shared_ext}$major'
13504     ;;
13505   esac
13506   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13507   postinstall_cmds='chmod 555 $lib'
13508   ;;
13510 interix[3-9]*)
13511   version_type=linux
13512   need_lib_prefix=no
13513   need_version=no
13514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13515   soname_spec='${libname}${release}${shared_ext}$major'
13516   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13517   shlibpath_var=LD_LIBRARY_PATH
13518   shlibpath_overrides_runpath=no
13519   hardcode_into_libs=yes
13520   ;;
13522 irix5* | irix6* | nonstopux*)
13523   case $host_os in
13524     nonstopux*) version_type=nonstopux ;;
13525     *)
13526         if test "$lt_cv_prog_gnu_ld" = yes; then
13527                 version_type=linux
13528         else
13529                 version_type=irix
13530         fi ;;
13531   esac
13532   need_lib_prefix=no
13533   need_version=no
13534   soname_spec='${libname}${release}${shared_ext}$major'
13535   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13536   case $host_os in
13537   irix5* | nonstopux*)
13538     libsuff= shlibsuff=
13539     ;;
13540   *)
13541     case $LD in # libtool.m4 will add one of these switches to LD
13542     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13543       libsuff= shlibsuff= libmagic=32-bit;;
13544     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13545       libsuff=32 shlibsuff=N32 libmagic=N32;;
13546     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13547       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13548     *) libsuff= shlibsuff= libmagic=never-match;;
13549     esac
13550     ;;
13551   esac
13552   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13553   shlibpath_overrides_runpath=no
13554   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13555   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13556   hardcode_into_libs=yes
13557   ;;
13559 # No shared lib support for Linux oldld, aout, or coff.
13560 linux*oldld* | linux*aout* | linux*coff*)
13561   dynamic_linker=no
13562   ;;
13564 # This must be Linux ELF.
13565 linux* | k*bsd*-gnu)
13566   version_type=linux
13567   need_lib_prefix=no
13568   need_version=no
13569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13570   soname_spec='${libname}${release}${shared_ext}$major'
13571   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13572   shlibpath_var=LD_LIBRARY_PATH
13573   shlibpath_overrides_runpath=no
13574   # This implies no fast_install, which is unacceptable.
13575   # Some rework will be needed to allow for fast_install
13576   # before this can be enabled.
13577   hardcode_into_libs=yes
13579   # Append ld.so.conf contents to the search path
13580   if test -f /etc/ld.so.conf; then
13581     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' ' '`
13582     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13583   fi
13585   # We used to test for /lib/ld.so.1 and disable shared libraries on
13586   # powerpc, because MkLinux only supported shared libraries with the
13587   # GNU dynamic linker.  Since this was broken with cross compilers,
13588   # most powerpc-linux boxes support dynamic linking these days and
13589   # people can always --disable-shared, the test was removed, and we
13590   # assume the GNU/Linux dynamic linker is in use.
13591   dynamic_linker='GNU/Linux ld.so'
13592   ;;
13594 netbsdelf*-gnu)
13595   version_type=linux
13596   need_lib_prefix=no
13597   need_version=no
13598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13599   soname_spec='${libname}${release}${shared_ext}$major'
13600   shlibpath_var=LD_LIBRARY_PATH
13601   shlibpath_overrides_runpath=no
13602   hardcode_into_libs=yes
13603   dynamic_linker='NetBSD ld.elf_so'
13604   ;;
13606 netbsd*)
13607   version_type=sunos
13608   need_lib_prefix=no
13609   need_version=no
13610   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13611     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13612     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13613     dynamic_linker='NetBSD (a.out) ld.so'
13614   else
13615     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13616     soname_spec='${libname}${release}${shared_ext}$major'
13617     dynamic_linker='NetBSD ld.elf_so'
13618   fi
13619   shlibpath_var=LD_LIBRARY_PATH
13620   shlibpath_overrides_runpath=yes
13621   hardcode_into_libs=yes
13622   ;;
13624 newsos6)
13625   version_type=linux
13626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13627   shlibpath_var=LD_LIBRARY_PATH
13628   shlibpath_overrides_runpath=yes
13629   ;;
13631 nto-qnx*)
13632   version_type=linux
13633   need_lib_prefix=no
13634   need_version=no
13635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636   soname_spec='${libname}${release}${shared_ext}$major'
13637   shlibpath_var=LD_LIBRARY_PATH
13638   shlibpath_overrides_runpath=yes
13639   ;;
13641 openbsd*)
13642   version_type=sunos
13643   sys_lib_dlsearch_path_spec="/usr/lib"
13644   need_lib_prefix=no
13645   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13646   case $host_os in
13647     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13648     *)                         need_version=no  ;;
13649   esac
13650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13651   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13652   shlibpath_var=LD_LIBRARY_PATH
13653   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13654     case $host_os in
13655       openbsd2.[89] | openbsd2.[89].*)
13656         shlibpath_overrides_runpath=no
13657         ;;
13658       *)
13659         shlibpath_overrides_runpath=yes
13660         ;;
13661       esac
13662   else
13663     shlibpath_overrides_runpath=yes
13664   fi
13665   ;;
13667 os2*)
13668   libname_spec='$name'
13669   shrext_cmds=".dll"
13670   need_lib_prefix=no
13671   library_names_spec='$libname${shared_ext} $libname.a'
13672   dynamic_linker='OS/2 ld.exe'
13673   shlibpath_var=LIBPATH
13674   ;;
13676 osf3* | osf4* | osf5*)
13677   version_type=osf
13678   need_lib_prefix=no
13679   need_version=no
13680   soname_spec='${libname}${release}${shared_ext}$major'
13681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13682   shlibpath_var=LD_LIBRARY_PATH
13683   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13684   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13685   ;;
13687 rdos*)
13688   dynamic_linker=no
13689   ;;
13691 solaris*)
13692   version_type=linux
13693   need_lib_prefix=no
13694   need_version=no
13695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13696   soname_spec='${libname}${release}${shared_ext}$major'
13697   shlibpath_var=LD_LIBRARY_PATH
13698   shlibpath_overrides_runpath=yes
13699   hardcode_into_libs=yes
13700   # ldd complains unless libraries are executable
13701   postinstall_cmds='chmod +x $lib'
13702   ;;
13704 sunos4*)
13705   version_type=sunos
13706   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13707   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13708   shlibpath_var=LD_LIBRARY_PATH
13709   shlibpath_overrides_runpath=yes
13710   if test "$with_gnu_ld" = yes; then
13711     need_lib_prefix=no
13712   fi
13713   need_version=yes
13714   ;;
13716 sysv4 | sysv4.3*)
13717   version_type=linux
13718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13719   soname_spec='${libname}${release}${shared_ext}$major'
13720   shlibpath_var=LD_LIBRARY_PATH
13721   case $host_vendor in
13722     sni)
13723       shlibpath_overrides_runpath=no
13724       need_lib_prefix=no
13725       export_dynamic_flag_spec='${wl}-Blargedynsym'
13726       runpath_var=LD_RUN_PATH
13727       ;;
13728     siemens)
13729       need_lib_prefix=no
13730       ;;
13731     motorola)
13732       need_lib_prefix=no
13733       need_version=no
13734       shlibpath_overrides_runpath=no
13735       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13736       ;;
13737   esac
13738   ;;
13740 sysv4*MP*)
13741   if test -d /usr/nec ;then
13742     version_type=linux
13743     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13744     soname_spec='$libname${shared_ext}.$major'
13745     shlibpath_var=LD_LIBRARY_PATH
13746   fi
13747   ;;
13749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13750   version_type=freebsd-elf
13751   need_lib_prefix=no
13752   need_version=no
13753   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13754   soname_spec='${libname}${release}${shared_ext}$major'
13755   shlibpath_var=LD_LIBRARY_PATH
13756   hardcode_into_libs=yes
13757   if test "$with_gnu_ld" = yes; then
13758     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13759     shlibpath_overrides_runpath=no
13760   else
13761     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13762     shlibpath_overrides_runpath=yes
13763     case $host_os in
13764       sco3.2v5*)
13765         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13766         ;;
13767     esac
13768   fi
13769   sys_lib_dlsearch_path_spec='/usr/lib'
13770   ;;
13772 uts4*)
13773   version_type=linux
13774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13775   soname_spec='${libname}${release}${shared_ext}$major'
13776   shlibpath_var=LD_LIBRARY_PATH
13777   ;;
13780   dynamic_linker=no
13781   ;;
13782 esac
13783 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13784 echo "${ECHO_T}$dynamic_linker" >&6; }
13785 test "$dynamic_linker" = no && can_build_shared=no
13787 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13788   echo $ECHO_N "(cached) $ECHO_C" >&6
13789 else
13790   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13793 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13794 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13795   echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13800 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13802 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13803 if test "$GCC" = yes; then
13804   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13807 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13808 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13809 hardcode_action_CXX=
13810 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13811    test -n "$runpath_var_CXX" || \
13812    test "X$hardcode_automatic_CXX" = "Xyes" ; then
13814   # We can hardcode non-existant directories.
13815   if test "$hardcode_direct_CXX" != no &&
13816      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13817      # have to relink, otherwise we might link with an installed library
13818      # when we should be linking with a yet-to-be-installed one
13819      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13820      test "$hardcode_minus_L_CXX" != no; then
13821     # Linking always hardcodes the temporary library directory.
13822     hardcode_action_CXX=relink
13823   else
13824     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13825     hardcode_action_CXX=immediate
13826   fi
13827 else
13828   # We cannot hardcode anything, or else we can only hardcode existing
13829   # directories.
13830   hardcode_action_CXX=unsupported
13832 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13833 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13835 if test "$hardcode_action_CXX" = relink; then
13836   # Fast installation is not supported
13837   enable_fast_install=no
13838 elif test "$shlibpath_overrides_runpath" = yes ||
13839      test "$enable_shared" = no; then
13840   # Fast installation is not necessary
13841   enable_fast_install=needless
13845 # The else clause should only fire when bootstrapping the
13846 # libtool distribution, otherwise you forgot to ship ltmain.sh
13847 # with your package, and you will get complaints that there are
13848 # no rules to generate ltmain.sh.
13849 if test -f "$ltmain"; then
13850   # See if we are running on zsh, and set the options which allow our commands through
13851   # without removal of \ escapes.
13852   if test -n "${ZSH_VERSION+set}" ; then
13853     setopt NO_GLOB_SUBST
13854   fi
13855   # Now quote all the things that may contain metacharacters while being
13856   # careful not to overquote the AC_SUBSTed values.  We take copies of the
13857   # variables and quote the copies for generation of the libtool script.
13858   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13859     SED SHELL STRIP \
13860     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13861     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13862     deplibs_check_method reload_flag reload_cmds need_locks \
13863     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13864     lt_cv_sys_global_symbol_to_c_name_address \
13865     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13866     old_postinstall_cmds old_postuninstall_cmds \
13867     compiler_CXX \
13868     CC_CXX \
13869     LD_CXX \
13870     lt_prog_compiler_wl_CXX \
13871     lt_prog_compiler_pic_CXX \
13872     lt_prog_compiler_static_CXX \
13873     lt_prog_compiler_no_builtin_flag_CXX \
13874     export_dynamic_flag_spec_CXX \
13875     thread_safe_flag_spec_CXX \
13876     whole_archive_flag_spec_CXX \
13877     enable_shared_with_static_runtimes_CXX \
13878     old_archive_cmds_CXX \
13879     old_archive_from_new_cmds_CXX \
13880     predep_objects_CXX \
13881     postdep_objects_CXX \
13882     predeps_CXX \
13883     postdeps_CXX \
13884     compiler_lib_search_path_CXX \
13885     compiler_lib_search_dirs_CXX \
13886     archive_cmds_CXX \
13887     archive_expsym_cmds_CXX \
13888     postinstall_cmds_CXX \
13889     postuninstall_cmds_CXX \
13890     old_archive_from_expsyms_cmds_CXX \
13891     allow_undefined_flag_CXX \
13892     no_undefined_flag_CXX \
13893     export_symbols_cmds_CXX \
13894     hardcode_libdir_flag_spec_CXX \
13895     hardcode_libdir_flag_spec_ld_CXX \
13896     hardcode_libdir_separator_CXX \
13897     hardcode_automatic_CXX \
13898     module_cmds_CXX \
13899     module_expsym_cmds_CXX \
13900     lt_cv_prog_compiler_c_o_CXX \
13901     fix_srcfile_path_CXX \
13902     exclude_expsyms_CXX \
13903     include_expsyms_CXX; do
13905     case $var in
13906     old_archive_cmds_CXX | \
13907     old_archive_from_new_cmds_CXX | \
13908     archive_cmds_CXX | \
13909     archive_expsym_cmds_CXX | \
13910     module_cmds_CXX | \
13911     module_expsym_cmds_CXX | \
13912     old_archive_from_expsyms_cmds_CXX | \
13913     export_symbols_cmds_CXX | \
13914     extract_expsyms_cmds | reload_cmds | finish_cmds | \
13915     postinstall_cmds | postuninstall_cmds | \
13916     old_postinstall_cmds | old_postuninstall_cmds | \
13917     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13918       # Double-quote double-evaled strings.
13919       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13920       ;;
13921     *)
13922       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13923       ;;
13924     esac
13925   done
13927   case $lt_echo in
13928   *'\$0 --fallback-echo"')
13929     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13930     ;;
13931   esac
13933 cfgfile="$ofile"
13935   cat <<__EOF__ >> "$cfgfile"
13936 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13938 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13940 # Shell to use when invoking shell scripts.
13941 SHELL=$lt_SHELL
13943 # Whether or not to build shared libraries.
13944 build_libtool_libs=$enable_shared
13946 # Whether or not to build static libraries.
13947 build_old_libs=$enable_static
13949 # Whether or not to add -lc for building shared libraries.
13950 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13952 # Whether or not to disallow shared libs when runtime libs are static
13953 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13955 # Whether or not to optimize for fast installation.
13956 fast_install=$enable_fast_install
13958 # The host system.
13959 host_alias=$host_alias
13960 host=$host
13961 host_os=$host_os
13963 # The build system.
13964 build_alias=$build_alias
13965 build=$build
13966 build_os=$build_os
13968 # An echo program that does not interpret backslashes.
13969 echo=$lt_echo
13971 # The archiver.
13972 AR=$lt_AR
13973 AR_FLAGS=$lt_AR_FLAGS
13975 # A C compiler.
13976 LTCC=$lt_LTCC
13978 # LTCC compiler flags.
13979 LTCFLAGS=$lt_LTCFLAGS
13981 # A language-specific compiler.
13982 CC=$lt_compiler_CXX
13984 # Is the compiler the GNU C compiler?
13985 with_gcc=$GCC_CXX
13987 # An ERE matcher.
13988 EGREP=$lt_EGREP
13990 # The linker used to build libraries.
13991 LD=$lt_LD_CXX
13993 # Whether we need hard or soft links.
13994 LN_S=$lt_LN_S
13996 # A BSD-compatible nm program.
13997 NM=$lt_NM
13999 # A symbol stripping program
14000 STRIP=$lt_STRIP
14002 # Used to examine libraries when file_magic_cmd begins "file"
14003 MAGIC_CMD=$MAGIC_CMD
14005 # Used on cygwin: DLL creation program.
14006 DLLTOOL="$DLLTOOL"
14008 # Used on cygwin: object dumper.
14009 OBJDUMP="$OBJDUMP"
14011 # Used on cygwin: assembler.
14012 AS="$AS"
14014 # The name of the directory that contains temporary libtool files.
14015 objdir=$objdir
14017 # How to create reloadable object files.
14018 reload_flag=$lt_reload_flag
14019 reload_cmds=$lt_reload_cmds
14021 # How to pass a linker flag through the compiler.
14022 wl=$lt_lt_prog_compiler_wl_CXX
14024 # Object file suffix (normally "o").
14025 objext="$ac_objext"
14027 # Old archive suffix (normally "a").
14028 libext="$libext"
14030 # Shared library suffix (normally ".so").
14031 shrext_cmds='$shrext_cmds'
14033 # Executable file suffix (normally "").
14034 exeext="$exeext"
14036 # Additional compiler flags for building library objects.
14037 pic_flag=$lt_lt_prog_compiler_pic_CXX
14038 pic_mode=$pic_mode
14040 # What is the maximum length of a command?
14041 max_cmd_len=$lt_cv_sys_max_cmd_len
14043 # Does compiler simultaneously support -c and -o options?
14044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14046 # Must we lock files when doing compilation?
14047 need_locks=$lt_need_locks
14049 # Do we need the lib prefix for modules?
14050 need_lib_prefix=$need_lib_prefix
14052 # Do we need a version for libraries?
14053 need_version=$need_version
14055 # Whether dlopen is supported.
14056 dlopen_support=$enable_dlopen
14058 # Whether dlopen of programs is supported.
14059 dlopen_self=$enable_dlopen_self
14061 # Whether dlopen of statically linked programs is supported.
14062 dlopen_self_static=$enable_dlopen_self_static
14064 # Compiler flag to prevent dynamic linking.
14065 link_static_flag=$lt_lt_prog_compiler_static_CXX
14067 # Compiler flag to turn off builtin functions.
14068 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14070 # Compiler flag to allow reflexive dlopens.
14071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14073 # Compiler flag to generate shared objects directly from archives.
14074 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14076 # Compiler flag to generate thread-safe objects.
14077 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14079 # Library versioning type.
14080 version_type=$version_type
14082 # Format of library name prefix.
14083 libname_spec=$lt_libname_spec
14085 # List of archive names.  First name is the real one, the rest are links.
14086 # The last name is the one that the linker finds with -lNAME.
14087 library_names_spec=$lt_library_names_spec
14089 # The coded name of the library, if different from the real name.
14090 soname_spec=$lt_soname_spec
14092 # Commands used to build and install an old-style archive.
14093 RANLIB=$lt_RANLIB
14094 old_archive_cmds=$lt_old_archive_cmds_CXX
14095 old_postinstall_cmds=$lt_old_postinstall_cmds
14096 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14098 # Create an old-style archive from a shared archive.
14099 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14101 # Create a temporary old-style archive to link instead of a shared archive.
14102 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14104 # Commands used to build and install a shared archive.
14105 archive_cmds=$lt_archive_cmds_CXX
14106 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14107 postinstall_cmds=$lt_postinstall_cmds
14108 postuninstall_cmds=$lt_postuninstall_cmds
14110 # Commands used to build a loadable module (assumed same as above if empty)
14111 module_cmds=$lt_module_cmds_CXX
14112 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14114 # Commands to strip libraries.
14115 old_striplib=$lt_old_striplib
14116 striplib=$lt_striplib
14118 # Dependencies to place before the objects being linked to create a
14119 # shared library.
14120 predep_objects=$lt_predep_objects_CXX
14122 # Dependencies to place after the objects being linked to create a
14123 # shared library.
14124 postdep_objects=$lt_postdep_objects_CXX
14126 # Dependencies to place before the objects being linked to create a
14127 # shared library.
14128 predeps=$lt_predeps_CXX
14130 # Dependencies to place after the objects being linked to create a
14131 # shared library.
14132 postdeps=$lt_postdeps_CXX
14134 # The directories searched by this compiler when creating a shared
14135 # library
14136 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14138 # The library search path used internally by the compiler when linking
14139 # a shared library.
14140 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14142 # Method to check whether dependent libraries are shared objects.
14143 deplibs_check_method=$lt_deplibs_check_method
14145 # Command to use when deplibs_check_method == file_magic.
14146 file_magic_cmd=$lt_file_magic_cmd
14148 # Flag that allows shared libraries with undefined symbols to be built.
14149 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14151 # Flag that forces no undefined symbols.
14152 no_undefined_flag=$lt_no_undefined_flag_CXX
14154 # Commands used to finish a libtool library installation in a directory.
14155 finish_cmds=$lt_finish_cmds
14157 # Same as above, but a single script fragment to be evaled but not shown.
14158 finish_eval=$lt_finish_eval
14160 # Take the output of nm and produce a listing of raw symbols and C names.
14161 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14163 # Transform the output of nm in a proper C declaration
14164 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14166 # Transform the output of nm in a C name address pair
14167 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14169 # This is the shared library runtime path variable.
14170 runpath_var=$runpath_var
14172 # This is the shared library path variable.
14173 shlibpath_var=$shlibpath_var
14175 # Is shlibpath searched before the hard-coded library search path?
14176 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14178 # How to hardcode a shared library path into an executable.
14179 hardcode_action=$hardcode_action_CXX
14181 # Whether we should hardcode library paths into libraries.
14182 hardcode_into_libs=$hardcode_into_libs
14184 # Flag to hardcode \$libdir into a binary during linking.
14185 # This must work even if \$libdir does not exist.
14186 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14188 # If ld is used when linking, flag to hardcode \$libdir into
14189 # a binary during linking. This must work even if \$libdir does
14190 # not exist.
14191 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14193 # Whether we need a single -rpath flag with a separated argument.
14194 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14196 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14197 # resulting binary.
14198 hardcode_direct=$hardcode_direct_CXX
14200 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14201 # resulting binary.
14202 hardcode_minus_L=$hardcode_minus_L_CXX
14204 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14205 # the resulting binary.
14206 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14208 # Set to yes if building a shared library automatically hardcodes DIR into the library
14209 # and all subsequent libraries and executables linked against it.
14210 hardcode_automatic=$hardcode_automatic_CXX
14212 # Variables whose values should be saved in libtool wrapper scripts and
14213 # restored at relink time.
14214 variables_saved_for_relink="$variables_saved_for_relink"
14216 # Whether libtool must link a program against all its dependency libraries.
14217 link_all_deplibs=$link_all_deplibs_CXX
14219 # Compile-time system search path for libraries
14220 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14222 # Run-time system search path for libraries
14223 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14225 # Fix the shell variable \$srcfile for the compiler.
14226 fix_srcfile_path=$lt_fix_srcfile_path
14228 # Set to yes if exported symbols are required.
14229 always_export_symbols=$always_export_symbols_CXX
14231 # The commands to list exported symbols.
14232 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14234 # The commands to extract the exported symbol list from a shared archive.
14235 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14237 # Symbols that should not be listed in the preloaded symbols.
14238 exclude_expsyms=$lt_exclude_expsyms_CXX
14240 # Symbols that must always be exported.
14241 include_expsyms=$lt_include_expsyms_CXX
14243 # ### END LIBTOOL TAG CONFIG: $tagname
14245 __EOF__
14248 else
14249   # If there is no Makefile yet, we rely on a make rule to execute
14250   # `config.status --recheck' to rerun these tests and create the
14251   # libtool script then.
14252   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14253   if test -f "$ltmain_in"; then
14254     test -f Makefile && make "$ltmain"
14255   fi
14259 ac_ext=c
14260 ac_cpp='$CPP $CPPFLAGS'
14261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14265 CC=$lt_save_CC
14266 LDCXX=$LD
14267 LD=$lt_save_LD
14268 GCC=$lt_save_GCC
14269 with_gnu_ldcxx=$with_gnu_ld
14270 with_gnu_ld=$lt_save_with_gnu_ld
14271 lt_cv_path_LDCXX=$lt_cv_path_LD
14272 lt_cv_path_LD=$lt_save_path_LD
14273 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14274 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14276         else
14277           tagname=""
14278         fi
14279         ;;
14281       F77)
14282         if test -n "$F77" && test "X$F77" != "Xno"; then
14284 ac_ext=f
14285 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14286 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14287 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14290 archive_cmds_need_lc_F77=no
14291 allow_undefined_flag_F77=
14292 always_export_symbols_F77=no
14293 archive_expsym_cmds_F77=
14294 export_dynamic_flag_spec_F77=
14295 hardcode_direct_F77=no
14296 hardcode_libdir_flag_spec_F77=
14297 hardcode_libdir_flag_spec_ld_F77=
14298 hardcode_libdir_separator_F77=
14299 hardcode_minus_L_F77=no
14300 hardcode_automatic_F77=no
14301 module_cmds_F77=
14302 module_expsym_cmds_F77=
14303 link_all_deplibs_F77=unknown
14304 old_archive_cmds_F77=$old_archive_cmds
14305 no_undefined_flag_F77=
14306 whole_archive_flag_spec_F77=
14307 enable_shared_with_static_runtimes_F77=no
14309 # Source file extension for f77 test sources.
14310 ac_ext=f
14312 # Object file extension for compiled f77 test sources.
14313 objext=o
14314 objext_F77=$objext
14316 # Code to be used in simple compile tests
14317 lt_simple_compile_test_code="\
14318       subroutine t
14319       return
14320       end
14323 # Code to be used in simple link tests
14324 lt_simple_link_test_code="\
14325       program t
14326       end
14329 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14331 # If no C compiler was specified, use CC.
14332 LTCC=${LTCC-"$CC"}
14334 # If no C compiler flags were specified, use CFLAGS.
14335 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14337 # Allow CC to be a program name with arguments.
14338 compiler=$CC
14341 # save warnings/boilerplate of simple test code
14342 ac_outfile=conftest.$ac_objext
14343 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14344 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14345 _lt_compiler_boilerplate=`cat conftest.err`
14346 $rm conftest*
14348 ac_outfile=conftest.$ac_objext
14349 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14350 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14351 _lt_linker_boilerplate=`cat conftest.err`
14352 $rm -r conftest*
14355 # Allow CC to be a program name with arguments.
14356 lt_save_CC="$CC"
14357 CC=${F77-"f77"}
14358 compiler=$CC
14359 compiler_F77=$CC
14360 for cc_temp in $compiler""; do
14361   case $cc_temp in
14362     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14363     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14364     \-*) ;;
14365     *) break;;
14366   esac
14367 done
14368 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14371 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14372 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14373 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14374 echo "${ECHO_T}$can_build_shared" >&6; }
14376 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14377 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14378 test "$can_build_shared" = "no" && enable_shared=no
14380 # On AIX, shared libraries and static libraries use the same namespace, and
14381 # are all built from PIC.
14382 case $host_os in
14383 aix3*)
14384   test "$enable_shared" = yes && enable_static=no
14385   if test -n "$RANLIB"; then
14386     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14387     postinstall_cmds='$RANLIB $lib'
14388   fi
14389   ;;
14390 aix[4-9]*)
14391   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14392     test "$enable_shared" = yes && enable_static=no
14393   fi
14394   ;;
14395 esac
14396 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14397 echo "${ECHO_T}$enable_shared" >&6; }
14399 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14400 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14401 # Make sure either enable_shared or enable_static is yes.
14402 test "$enable_shared" = yes || enable_static=yes
14403 { echo "$as_me:$LINENO: result: $enable_static" >&5
14404 echo "${ECHO_T}$enable_static" >&6; }
14406 GCC_F77="$G77"
14407 LD_F77="$LD"
14409 lt_prog_compiler_wl_F77=
14410 lt_prog_compiler_pic_F77=
14411 lt_prog_compiler_static_F77=
14413 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14414 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14416   if test "$GCC" = yes; then
14417     lt_prog_compiler_wl_F77='-Wl,'
14418     lt_prog_compiler_static_F77='-static'
14420     case $host_os in
14421       aix*)
14422       # All AIX code is PIC.
14423       if test "$host_cpu" = ia64; then
14424         # AIX 5 now supports IA64 processor
14425         lt_prog_compiler_static_F77='-Bstatic'
14426       fi
14427       ;;
14429     amigaos*)
14430       # FIXME: we need at least 68020 code to build shared libraries, but
14431       # adding the `-m68020' flag to GCC prevents building anything better,
14432       # like `-m68040'.
14433       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14434       ;;
14436     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14437       # PIC is the default for these OSes.
14438       ;;
14440     mingw* | cygwin* | pw32* | os2*)
14441       # This hack is so that the source file can tell whether it is being
14442       # built for inclusion in a dll (and should export symbols for example).
14443       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14444       # (--disable-auto-import) libraries
14445       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14446       ;;
14448     darwin* | rhapsody*)
14449       # PIC is the default on this platform
14450       # Common symbols not allowed in MH_DYLIB files
14451       lt_prog_compiler_pic_F77='-fno-common'
14452       ;;
14454     interix[3-9]*)
14455       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14456       # Instead, we relocate shared libraries at runtime.
14457       ;;
14459     msdosdjgpp*)
14460       # Just because we use GCC doesn't mean we suddenly get shared libraries
14461       # on systems that don't support them.
14462       lt_prog_compiler_can_build_shared_F77=no
14463       enable_shared=no
14464       ;;
14466     sysv4*MP*)
14467       if test -d /usr/nec; then
14468         lt_prog_compiler_pic_F77=-Kconform_pic
14469       fi
14470       ;;
14472     hpux*)
14473       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14474       # not for PA HP-UX.
14475       case $host_cpu in
14476       hppa*64*|ia64*)
14477         # +Z the default
14478         ;;
14479       *)
14480         lt_prog_compiler_pic_F77='-fPIC'
14481         ;;
14482       esac
14483       ;;
14485     *)
14486       lt_prog_compiler_pic_F77='-fPIC'
14487       ;;
14488     esac
14489   else
14490     # PORTME Check for flag to pass linker flags through the system compiler.
14491     case $host_os in
14492     aix*)
14493       lt_prog_compiler_wl_F77='-Wl,'
14494       if test "$host_cpu" = ia64; then
14495         # AIX 5 now supports IA64 processor
14496         lt_prog_compiler_static_F77='-Bstatic'
14497       else
14498         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14499       fi
14500       ;;
14501       darwin*)
14502         # PIC is the default on this platform
14503         # Common symbols not allowed in MH_DYLIB files
14504        case $cc_basename in
14505          xlc*)
14506          lt_prog_compiler_pic_F77='-qnocommon'
14507          lt_prog_compiler_wl_F77='-Wl,'
14508          ;;
14509        esac
14510        ;;
14512     mingw* | cygwin* | pw32* | os2*)
14513       # This hack is so that the source file can tell whether it is being
14514       # built for inclusion in a dll (and should export symbols for example).
14515       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14516       ;;
14518     hpux9* | hpux10* | hpux11*)
14519       lt_prog_compiler_wl_F77='-Wl,'
14520       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14521       # not for PA HP-UX.
14522       case $host_cpu in
14523       hppa*64*|ia64*)
14524         # +Z the default
14525         ;;
14526       *)
14527         lt_prog_compiler_pic_F77='+Z'
14528         ;;
14529       esac
14530       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14531       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14532       ;;
14534     irix5* | irix6* | nonstopux*)
14535       lt_prog_compiler_wl_F77='-Wl,'
14536       # PIC (with -KPIC) is the default.
14537       lt_prog_compiler_static_F77='-non_shared'
14538       ;;
14540     newsos6)
14541       lt_prog_compiler_pic_F77='-KPIC'
14542       lt_prog_compiler_static_F77='-Bstatic'
14543       ;;
14545     linux* | k*bsd*-gnu)
14546       case $cc_basename in
14547       icc* | ecc*)
14548         lt_prog_compiler_wl_F77='-Wl,'
14549         lt_prog_compiler_pic_F77='-KPIC'
14550         lt_prog_compiler_static_F77='-static'
14551         ;;
14552       pgcc* | pgf77* | pgf90* | pgf95*)
14553         # Portland Group compilers (*not* the Pentium gcc compiler,
14554         # which looks to be a dead project)
14555         lt_prog_compiler_wl_F77='-Wl,'
14556         lt_prog_compiler_pic_F77='-fpic'
14557         lt_prog_compiler_static_F77='-Bstatic'
14558         ;;
14559       ccc*)
14560         lt_prog_compiler_wl_F77='-Wl,'
14561         # All Alpha code is PIC.
14562         lt_prog_compiler_static_F77='-non_shared'
14563         ;;
14564       *)
14565         case `$CC -V 2>&1 | sed 5q` in
14566         *Sun\ C*)
14567           # Sun C 5.9
14568           lt_prog_compiler_pic_F77='-KPIC'
14569           lt_prog_compiler_static_F77='-Bstatic'
14570           lt_prog_compiler_wl_F77='-Wl,'
14571           ;;
14572         *Sun\ F*)
14573           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14574           lt_prog_compiler_pic_F77='-KPIC'
14575           lt_prog_compiler_static_F77='-Bstatic'
14576           lt_prog_compiler_wl_F77=''
14577           ;;
14578         esac
14579         ;;
14580       esac
14581       ;;
14583     osf3* | osf4* | osf5*)
14584       lt_prog_compiler_wl_F77='-Wl,'
14585       # All OSF/1 code is PIC.
14586       lt_prog_compiler_static_F77='-non_shared'
14587       ;;
14589     rdos*)
14590       lt_prog_compiler_static_F77='-non_shared'
14591       ;;
14593     solaris*)
14594       lt_prog_compiler_pic_F77='-KPIC'
14595       lt_prog_compiler_static_F77='-Bstatic'
14596       case $cc_basename in
14597       f77* | f90* | f95*)
14598         lt_prog_compiler_wl_F77='-Qoption ld ';;
14599       *)
14600         lt_prog_compiler_wl_F77='-Wl,';;
14601       esac
14602       ;;
14604     sunos4*)
14605       lt_prog_compiler_wl_F77='-Qoption ld '
14606       lt_prog_compiler_pic_F77='-PIC'
14607       lt_prog_compiler_static_F77='-Bstatic'
14608       ;;
14610     sysv4 | sysv4.2uw2* | sysv4.3*)
14611       lt_prog_compiler_wl_F77='-Wl,'
14612       lt_prog_compiler_pic_F77='-KPIC'
14613       lt_prog_compiler_static_F77='-Bstatic'
14614       ;;
14616     sysv4*MP*)
14617       if test -d /usr/nec ;then
14618         lt_prog_compiler_pic_F77='-Kconform_pic'
14619         lt_prog_compiler_static_F77='-Bstatic'
14620       fi
14621       ;;
14623     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14624       lt_prog_compiler_wl_F77='-Wl,'
14625       lt_prog_compiler_pic_F77='-KPIC'
14626       lt_prog_compiler_static_F77='-Bstatic'
14627       ;;
14629     unicos*)
14630       lt_prog_compiler_wl_F77='-Wl,'
14631       lt_prog_compiler_can_build_shared_F77=no
14632       ;;
14634     uts4*)
14635       lt_prog_compiler_pic_F77='-pic'
14636       lt_prog_compiler_static_F77='-Bstatic'
14637       ;;
14639     *)
14640       lt_prog_compiler_can_build_shared_F77=no
14641       ;;
14642     esac
14643   fi
14645 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14646 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14649 # Check to make sure the PIC flag actually works.
14651 if test -n "$lt_prog_compiler_pic_F77"; then
14653 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14654 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14655 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14656   echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658   lt_cv_prog_compiler_pic_works_F77=no
14659   ac_outfile=conftest.$ac_objext
14660    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14661    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14662    # Insert the option either (1) after the last *FLAGS variable, or
14663    # (2) before a word containing "conftest.", or (3) at the end.
14664    # Note that $ac_compile itself does not contain backslashes and begins
14665    # with a dollar sign (not a hyphen), so the echo should work correctly.
14666    # The option is referenced via a variable to avoid confusing sed.
14667    lt_compile=`echo "$ac_compile" | $SED \
14668    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14669    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14670    -e 's:$: $lt_compiler_flag:'`
14671    (eval echo "\"\$as_me:14671: $lt_compile\"" >&5)
14672    (eval "$lt_compile" 2>conftest.err)
14673    ac_status=$?
14674    cat conftest.err >&5
14675    echo "$as_me:14675: \$? = $ac_status" >&5
14676    if (exit $ac_status) && test -s "$ac_outfile"; then
14677      # The compiler can only warn and ignore the option if not recognized
14678      # So say no if there are warnings other than the usual output.
14679      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14680      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14681      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14682        lt_cv_prog_compiler_pic_works_F77=yes
14683      fi
14684    fi
14685    $rm conftest*
14688 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14689 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14691 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14692     case $lt_prog_compiler_pic_F77 in
14693      "" | " "*) ;;
14694      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14695      esac
14696 else
14697     lt_prog_compiler_pic_F77=
14698      lt_prog_compiler_can_build_shared_F77=no
14702 case $host_os in
14703   # For platforms which do not support PIC, -DPIC is meaningless:
14704   *djgpp*)
14705     lt_prog_compiler_pic_F77=
14706     ;;
14707   *)
14708     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14709     ;;
14710 esac
14713 # Check to make sure the static flag actually works.
14715 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14716 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14717 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14718 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14719   echo $ECHO_N "(cached) $ECHO_C" >&6
14720 else
14721   lt_cv_prog_compiler_static_works_F77=no
14722    save_LDFLAGS="$LDFLAGS"
14723    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14724    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14725    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14726      # The linker can only warn and ignore the option if not recognized
14727      # So say no if there are warnings
14728      if test -s conftest.err; then
14729        # Append any errors to the config.log.
14730        cat conftest.err 1>&5
14731        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14732        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14733        if diff conftest.exp conftest.er2 >/dev/null; then
14734          lt_cv_prog_compiler_static_works_F77=yes
14735        fi
14736      else
14737        lt_cv_prog_compiler_static_works_F77=yes
14738      fi
14739    fi
14740    $rm -r conftest*
14741    LDFLAGS="$save_LDFLAGS"
14744 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14745 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14747 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14748     :
14749 else
14750     lt_prog_compiler_static_F77=
14754 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14755 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14756 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   lt_cv_prog_compiler_c_o_F77=no
14760    $rm -r conftest 2>/dev/null
14761    mkdir conftest
14762    cd conftest
14763    mkdir out
14764    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14766    lt_compiler_flag="-o out/conftest2.$ac_objext"
14767    # Insert the option either (1) after the last *FLAGS variable, or
14768    # (2) before a word containing "conftest.", or (3) at the end.
14769    # Note that $ac_compile itself does not contain backslashes and begins
14770    # with a dollar sign (not a hyphen), so the echo should work correctly.
14771    lt_compile=`echo "$ac_compile" | $SED \
14772    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14773    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14774    -e 's:$: $lt_compiler_flag:'`
14775    (eval echo "\"\$as_me:14775: $lt_compile\"" >&5)
14776    (eval "$lt_compile" 2>out/conftest.err)
14777    ac_status=$?
14778    cat out/conftest.err >&5
14779    echo "$as_me:14779: \$? = $ac_status" >&5
14780    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14781    then
14782      # The compiler can only warn and ignore the option if not recognized
14783      # So say no if there are warnings
14784      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14785      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14786      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14787        lt_cv_prog_compiler_c_o_F77=yes
14788      fi
14789    fi
14790    chmod u+w . 2>&5
14791    $rm conftest*
14792    # SGI C++ compiler will create directory out/ii_files/ for
14793    # template instantiation
14794    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14795    $rm out/* && rmdir out
14796    cd ..
14797    rmdir conftest
14798    $rm conftest*
14801 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14802 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14805 hard_links="nottested"
14806 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14807   # do not overwrite the value of need_locks provided by the user
14808   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14809 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14810   hard_links=yes
14811   $rm conftest*
14812   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14813   touch conftest.a
14814   ln conftest.a conftest.b 2>&5 || hard_links=no
14815   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14816   { echo "$as_me:$LINENO: result: $hard_links" >&5
14817 echo "${ECHO_T}$hard_links" >&6; }
14818   if test "$hard_links" = no; then
14819     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14820 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14821     need_locks=warn
14822   fi
14823 else
14824   need_locks=no
14827 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14828 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14830   runpath_var=
14831   allow_undefined_flag_F77=
14832   enable_shared_with_static_runtimes_F77=no
14833   archive_cmds_F77=
14834   archive_expsym_cmds_F77=
14835   old_archive_From_new_cmds_F77=
14836   old_archive_from_expsyms_cmds_F77=
14837   export_dynamic_flag_spec_F77=
14838   whole_archive_flag_spec_F77=
14839   thread_safe_flag_spec_F77=
14840   hardcode_libdir_flag_spec_F77=
14841   hardcode_libdir_flag_spec_ld_F77=
14842   hardcode_libdir_separator_F77=
14843   hardcode_direct_F77=no
14844   hardcode_minus_L_F77=no
14845   hardcode_shlibpath_var_F77=unsupported
14846   link_all_deplibs_F77=unknown
14847   hardcode_automatic_F77=no
14848   module_cmds_F77=
14849   module_expsym_cmds_F77=
14850   always_export_symbols_F77=no
14851   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14852   # include_expsyms should be a list of space-separated symbols to be *always*
14853   # included in the symbol list
14854   include_expsyms_F77=
14855   # exclude_expsyms can be an extended regexp of symbols to exclude
14856   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14857   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14858   # as well as any symbol that contains `d'.
14859   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14860   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14861   # platforms (ab)use it in PIC code, but their linkers get confused if
14862   # the symbol is explicitly referenced.  Since portable code cannot
14863   # rely on this symbol name, it's probably fine to never include it in
14864   # preloaded symbol tables.
14865   # Exclude shared library initialization/finalization symbols.
14866   extract_expsyms_cmds=
14867   # Just being paranoid about ensuring that cc_basename is set.
14868   for cc_temp in $compiler""; do
14869   case $cc_temp in
14870     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14871     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14872     \-*) ;;
14873     *) break;;
14874   esac
14875 done
14876 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14878   case $host_os in
14879   cygwin* | mingw* | pw32*)
14880     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14881     # When not using gcc, we currently assume that we are using
14882     # Microsoft Visual C++.
14883     if test "$GCC" != yes; then
14884       with_gnu_ld=no
14885     fi
14886     ;;
14887   interix*)
14888     # we just hope/assume this is gcc and not c89 (= MSVC++)
14889     with_gnu_ld=yes
14890     ;;
14891   openbsd*)
14892     with_gnu_ld=no
14893     ;;
14894   esac
14896   ld_shlibs_F77=yes
14897   if test "$with_gnu_ld" = yes; then
14898     # If archive_cmds runs LD, not CC, wlarc should be empty
14899     wlarc='${wl}'
14901     # Set some defaults for GNU ld with shared library support. These
14902     # are reset later if shared libraries are not supported. Putting them
14903     # here allows them to be overridden if necessary.
14904     runpath_var=LD_RUN_PATH
14905     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14906     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14907     # ancient GNU ld didn't support --whole-archive et. al.
14908     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14909         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14910       else
14911         whole_archive_flag_spec_F77=
14912     fi
14913     supports_anon_versioning=no
14914     case `$LD -v 2>/dev/null` in
14915       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14916       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14917       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14918       *\ 2.11.*) ;; # other 2.11 versions
14919       *) supports_anon_versioning=yes ;;
14920     esac
14922     # See if GNU ld supports shared libraries.
14923     case $host_os in
14924     aix[3-9]*)
14925       # On AIX/PPC, the GNU linker is very broken
14926       if test "$host_cpu" != ia64; then
14927         ld_shlibs_F77=no
14928         cat <<EOF 1>&2
14930 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14931 *** to be unable to reliably create shared libraries on AIX.
14932 *** Therefore, libtool is disabling shared libraries support.  If you
14933 *** really care for shared libraries, you may want to modify your PATH
14934 *** so that a non-GNU linker is found, and then restart.
14936 EOF
14937       fi
14938       ;;
14940     amigaos*)
14941       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)'
14942       hardcode_libdir_flag_spec_F77='-L$libdir'
14943       hardcode_minus_L_F77=yes
14945       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14946       # that the semantics of dynamic libraries on AmigaOS, at least up
14947       # to version 4, is to share data among multiple programs linked
14948       # with the same dynamic library.  Since this doesn't match the
14949       # behavior of shared libraries on other platforms, we can't use
14950       # them.
14951       ld_shlibs_F77=no
14952       ;;
14954     beos*)
14955       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14956         allow_undefined_flag_F77=unsupported
14957         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14958         # support --undefined.  This deserves some investigation.  FIXME
14959         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14960       else
14961         ld_shlibs_F77=no
14962       fi
14963       ;;
14965     cygwin* | mingw* | pw32*)
14966       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14967       # as there is no search path for DLLs.
14968       hardcode_libdir_flag_spec_F77='-L$libdir'
14969       allow_undefined_flag_F77=unsupported
14970       always_export_symbols_F77=no
14971       enable_shared_with_static_runtimes_F77=yes
14972       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14974       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14975         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14976         # If the export-symbols file already is a .def file (1st line
14977         # is EXPORTS), use it as is; otherwise, prepend...
14978         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14979           cp $export_symbols $output_objdir/$soname.def;
14980         else
14981           echo EXPORTS > $output_objdir/$soname.def;
14982           cat $export_symbols >> $output_objdir/$soname.def;
14983         fi~
14984         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14985       else
14986         ld_shlibs_F77=no
14987       fi
14988       ;;
14990     interix[3-9]*)
14991       hardcode_direct_F77=no
14992       hardcode_shlibpath_var_F77=no
14993       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14994       export_dynamic_flag_spec_F77='${wl}-E'
14995       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14996       # Instead, shared libraries are loaded at an image base (0x10000000 by
14997       # default) and relocated if they conflict, which is a slow very memory
14998       # consuming and fragmenting process.  To avoid this, we pick a random,
14999       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15000       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15001       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'
15002       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'
15003       ;;
15005     gnu* | linux* | k*bsd*-gnu)
15006       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15007         tmp_addflag=
15008         case $cc_basename,$host_cpu in
15009         pgcc*)                          # Portland Group C compiler
15010           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'
15011           tmp_addflag=' $pic_flag'
15012           ;;
15013         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
15016         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15017           tmp_addflag=' -i_dynamic' ;;
15018         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15019           tmp_addflag=' -i_dynamic -nofor_main' ;;
15020         ifc* | ifort*)                  # Intel Fortran compiler
15021           tmp_addflag=' -nofor_main' ;;
15022         esac
15023         case `$CC -V 2>&1 | sed 5q` in
15024         *Sun\ C*)                       # Sun C 5.9
15025           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'
15026           tmp_sharedflag='-G' ;;
15027         *Sun\ F*)                       # Sun Fortran 8.3
15028           tmp_sharedflag='-G' ;;
15029         *)
15030           tmp_sharedflag='-shared' ;;
15031         esac
15032         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15034         if test $supports_anon_versioning = yes; then
15035           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15036   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15037   $echo "local: *; };" >> $output_objdir/$libname.ver~
15038           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15039         fi
15040         link_all_deplibs_F77=no
15041       else
15042         ld_shlibs_F77=no
15043       fi
15044       ;;
15046     netbsd* | netbsdelf*-gnu)
15047       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15048         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15049         wlarc=
15050       else
15051         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15052         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15053       fi
15054       ;;
15056     solaris*)
15057       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15058         ld_shlibs_F77=no
15059         cat <<EOF 1>&2
15061 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15062 *** create shared libraries on Solaris systems.  Therefore, libtool
15063 *** is disabling shared libraries support.  We urge you to upgrade GNU
15064 *** binutils to release 2.9.1 or newer.  Another option is to modify
15065 *** your PATH or compiler configuration so that the native linker is
15066 *** used, and then restart.
15068 EOF
15069       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15070         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15071         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15072       else
15073         ld_shlibs_F77=no
15074       fi
15075       ;;
15077     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15078       case `$LD -v 2>&1` in
15079         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15080         ld_shlibs_F77=no
15081         cat <<_LT_EOF 1>&2
15083 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15084 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15085 *** is disabling shared libraries support.  We urge you to upgrade GNU
15086 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15087 *** your PATH or compiler configuration so that the native linker is
15088 *** used, and then restart.
15090 _LT_EOF
15091         ;;
15092         *)
15093           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15094             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15095             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15096             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15097           else
15098             ld_shlibs_F77=no
15099           fi
15100         ;;
15101       esac
15102       ;;
15104     sunos4*)
15105       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15106       wlarc=
15107       hardcode_direct_F77=yes
15108       hardcode_shlibpath_var_F77=no
15109       ;;
15111     *)
15112       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15113         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15114         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15115       else
15116         ld_shlibs_F77=no
15117       fi
15118       ;;
15119     esac
15121     if test "$ld_shlibs_F77" = no; then
15122       runpath_var=
15123       hardcode_libdir_flag_spec_F77=
15124       export_dynamic_flag_spec_F77=
15125       whole_archive_flag_spec_F77=
15126     fi
15127   else
15128     # PORTME fill in a description of your system's linker (not GNU ld)
15129     case $host_os in
15130     aix3*)
15131       allow_undefined_flag_F77=unsupported
15132       always_export_symbols_F77=yes
15133       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'
15134       # Note: this linker hardcodes the directories in LIBPATH if there
15135       # are no directories specified by -L.
15136       hardcode_minus_L_F77=yes
15137       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15138         # Neither direct hardcoding nor static linking is supported with a
15139         # broken collect2.
15140         hardcode_direct_F77=unsupported
15141       fi
15142       ;;
15144     aix[4-9]*)
15145       if test "$host_cpu" = ia64; then
15146         # On IA64, the linker does run time linking by default, so we don't
15147         # have to do anything special.
15148         aix_use_runtimelinking=no
15149         exp_sym_flag='-Bexport'
15150         no_entry_flag=""
15151       else
15152         # If we're using GNU nm, then we don't want the "-C" option.
15153         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15154         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15155           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'
15156         else
15157           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'
15158         fi
15159         aix_use_runtimelinking=no
15161         # Test if we are trying to use run time linking or normal
15162         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15163         # need to do runtime linking.
15164         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15165           for ld_flag in $LDFLAGS; do
15166           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15167             aix_use_runtimelinking=yes
15168             break
15169           fi
15170           done
15171           ;;
15172         esac
15174         exp_sym_flag='-bexport'
15175         no_entry_flag='-bnoentry'
15176       fi
15178       # When large executables or shared objects are built, AIX ld can
15179       # have problems creating the table of contents.  If linking a library
15180       # or program results in "error TOC overflow" add -mminimal-toc to
15181       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15182       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15184       archive_cmds_F77=''
15185       hardcode_direct_F77=yes
15186       hardcode_libdir_separator_F77=':'
15187       link_all_deplibs_F77=yes
15189       if test "$GCC" = yes; then
15190         case $host_os in aix4.[012]|aix4.[012].*)
15191         # We only want to do this on AIX 4.2 and lower, the check
15192         # below for broken collect2 doesn't work under 4.3+
15193           collect2name=`${CC} -print-prog-name=collect2`
15194           if test -f "$collect2name" && \
15195            strings "$collect2name" | grep resolve_lib_name >/dev/null
15196           then
15197           # We have reworked collect2
15198           :
15199           else
15200           # We have old collect2
15201           hardcode_direct_F77=unsupported
15202           # It fails to find uninstalled libraries when the uninstalled
15203           # path is not listed in the libpath.  Setting hardcode_minus_L
15204           # to unsupported forces relinking
15205           hardcode_minus_L_F77=yes
15206           hardcode_libdir_flag_spec_F77='-L$libdir'
15207           hardcode_libdir_separator_F77=
15208           fi
15209           ;;
15210         esac
15211         shared_flag='-shared'
15212         if test "$aix_use_runtimelinking" = yes; then
15213           shared_flag="$shared_flag "'${wl}-G'
15214         fi
15215       else
15216         # not using gcc
15217         if test "$host_cpu" = ia64; then
15218         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15219         # chokes on -Wl,-G. The following line is correct:
15220           shared_flag='-G'
15221         else
15222           if test "$aix_use_runtimelinking" = yes; then
15223             shared_flag='${wl}-G'
15224           else
15225             shared_flag='${wl}-bM:SRE'
15226           fi
15227         fi
15228       fi
15230       # It seems that -bexpall does not export symbols beginning with
15231       # underscore (_), so it is better to generate a list of symbols to export.
15232       always_export_symbols_F77=yes
15233       if test "$aix_use_runtimelinking" = yes; then
15234         # Warning - without using the other runtime loading flags (-brtl),
15235         # -berok will link without error, but may produce a broken library.
15236         allow_undefined_flag_F77='-berok'
15237        # Determine the default libpath from the value encoded in an empty executable.
15238        cat >conftest.$ac_ext <<_ACEOF
15239       program main
15241       end
15242 _ACEOF
15243 rm -f conftest.$ac_objext conftest$ac_exeext
15244 if { (ac_try="$ac_link"
15245 case "(($ac_try" in
15246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247   *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250   (eval "$ac_link") 2>conftest.er1
15251   ac_status=$?
15252   grep -v '^ *+' conftest.er1 >conftest.err
15253   rm -f conftest.er1
15254   cat conftest.err >&5
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); } && {
15257          test -z "$ac_f77_werror_flag" ||
15258          test ! -s conftest.err
15259        } && test -s conftest$ac_exeext &&
15260        $as_test_x conftest$ac_exeext; then
15262 lt_aix_libpath_sed='
15263     /Import File Strings/,/^$/ {
15264         /^0/ {
15265             s/^0  *\(.*\)$/\1/
15266             p
15267         }
15268     }'
15269 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15270 # Check for a 64-bit object if we didn't find anything.
15271 if test -z "$aix_libpath"; then
15272   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15274 else
15275   echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.$ac_ext >&5
15281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15282       conftest$ac_exeext conftest.$ac_ext
15283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15285        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15286         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"
15287        else
15288         if test "$host_cpu" = ia64; then
15289           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15290           allow_undefined_flag_F77="-z nodefs"
15291           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"
15292         else
15293          # Determine the default libpath from the value encoded in an empty executable.
15294          cat >conftest.$ac_ext <<_ACEOF
15295       program main
15297       end
15298 _ACEOF
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (ac_try="$ac_link"
15301 case "(($ac_try" in
15302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303   *) ac_try_echo=$ac_try;;
15304 esac
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306   (eval "$ac_link") 2>conftest.er1
15307   ac_status=$?
15308   grep -v '^ *+' conftest.er1 >conftest.err
15309   rm -f conftest.er1
15310   cat conftest.err >&5
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); } && {
15313          test -z "$ac_f77_werror_flag" ||
15314          test ! -s conftest.err
15315        } && test -s conftest$ac_exeext &&
15316        $as_test_x conftest$ac_exeext; then
15318 lt_aix_libpath_sed='
15319     /Import File Strings/,/^$/ {
15320         /^0/ {
15321             s/^0  *\(.*\)$/\1/
15322             p
15323         }
15324     }'
15325 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15326 # Check for a 64-bit object if we didn't find anything.
15327 if test -z "$aix_libpath"; then
15328   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15338       conftest$ac_exeext conftest.$ac_ext
15339 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15341          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15342           # Warning - without using the other run time loading flags,
15343           # -berok will link without error, but may produce a broken library.
15344           no_undefined_flag_F77=' ${wl}-bernotok'
15345           allow_undefined_flag_F77=' ${wl}-berok'
15346           # Exported symbols can be pulled into shared objects from archives
15347           whole_archive_flag_spec_F77='$convenience'
15348           archive_cmds_need_lc_F77=yes
15349           # This is similar to how AIX traditionally builds its shared libraries.
15350           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'
15351         fi
15352       fi
15353       ;;
15355     amigaos*)
15356       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)'
15357       hardcode_libdir_flag_spec_F77='-L$libdir'
15358       hardcode_minus_L_F77=yes
15359       # see comment about different semantics on the GNU ld section
15360       ld_shlibs_F77=no
15361       ;;
15363     bsdi[45]*)
15364       export_dynamic_flag_spec_F77=-rdynamic
15365       ;;
15367     cygwin* | mingw* | pw32*)
15368       # When not using gcc, we currently assume that we are using
15369       # Microsoft Visual C++.
15370       # hardcode_libdir_flag_spec is actually meaningless, as there is
15371       # no search path for DLLs.
15372       hardcode_libdir_flag_spec_F77=' '
15373       allow_undefined_flag_F77=unsupported
15374       # Tell ltmain to make .lib files, not .a files.
15375       libext=lib
15376       # Tell ltmain to make .dll files, not .so files.
15377       shrext_cmds=".dll"
15378       # FIXME: Setting linknames here is a bad hack.
15379       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15380       # The linker will automatically build a .lib file if we build a DLL.
15381       old_archive_From_new_cmds_F77='true'
15382       # FIXME: Should let the user specify the lib program.
15383       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15384       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15385       enable_shared_with_static_runtimes_F77=yes
15386       ;;
15388     darwin* | rhapsody*)
15389       case $host_os in
15390         rhapsody* | darwin1.[012])
15391          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15392          ;;
15393        *) # Darwin 1.3 on
15394          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15395            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15396          else
15397            case ${MACOSX_DEPLOYMENT_TARGET} in
15398              10.[012])
15399                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15400                ;;
15401              10.*)
15402                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15403                ;;
15404            esac
15405          fi
15406          ;;
15407       esac
15408       archive_cmds_need_lc_F77=no
15409       hardcode_direct_F77=no
15410       hardcode_automatic_F77=yes
15411       hardcode_shlibpath_var_F77=unsupported
15412       whole_archive_flag_spec_F77=''
15413       link_all_deplibs_F77=yes
15414     if test "$GCC" = yes ; then
15415         output_verbose_link_cmd='echo'
15416         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}"
15417         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15418         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}"
15419         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}"
15420     else
15421       case $cc_basename in
15422         xlc*)
15423          output_verbose_link_cmd='echo'
15424          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15425          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15426           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15427          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}'
15428           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}'
15429           ;;
15430        *)
15431          ld_shlibs_F77=no
15432           ;;
15433       esac
15434     fi
15435       ;;
15437     dgux*)
15438       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15439       hardcode_libdir_flag_spec_F77='-L$libdir'
15440       hardcode_shlibpath_var_F77=no
15441       ;;
15443     freebsd1*)
15444       ld_shlibs_F77=no
15445       ;;
15447     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15448     # support.  Future versions do this automatically, but an explicit c++rt0.o
15449     # does not break anything, and helps significantly (at the cost of a little
15450     # extra space).
15451     freebsd2.2*)
15452       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15453       hardcode_libdir_flag_spec_F77='-R$libdir'
15454       hardcode_direct_F77=yes
15455       hardcode_shlibpath_var_F77=no
15456       ;;
15458     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15459     freebsd2*)
15460       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15461       hardcode_direct_F77=yes
15462       hardcode_minus_L_F77=yes
15463       hardcode_shlibpath_var_F77=no
15464       ;;
15466     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15467     freebsd* | dragonfly*)
15468       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15469       hardcode_libdir_flag_spec_F77='-R$libdir'
15470       hardcode_direct_F77=yes
15471       hardcode_shlibpath_var_F77=no
15472       ;;
15474     hpux9*)
15475       if test "$GCC" = yes; then
15476         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'
15477       else
15478         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'
15479       fi
15480       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15481       hardcode_libdir_separator_F77=:
15482       hardcode_direct_F77=yes
15484       # hardcode_minus_L: Not really in the search PATH,
15485       # but as the default location of the library.
15486       hardcode_minus_L_F77=yes
15487       export_dynamic_flag_spec_F77='${wl}-E'
15488       ;;
15490     hpux10*)
15491       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15492         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15493       else
15494         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15495       fi
15496       if test "$with_gnu_ld" = no; then
15497         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15498         hardcode_libdir_separator_F77=:
15500         hardcode_direct_F77=yes
15501         export_dynamic_flag_spec_F77='${wl}-E'
15503         # hardcode_minus_L: Not really in the search PATH,
15504         # but as the default location of the library.
15505         hardcode_minus_L_F77=yes
15506       fi
15507       ;;
15509     hpux11*)
15510       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15511         case $host_cpu in
15512         hppa*64*)
15513           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15514           ;;
15515         ia64*)
15516           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15517           ;;
15518         *)
15519           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15520           ;;
15521         esac
15522       else
15523         case $host_cpu in
15524         hppa*64*)
15525           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15526           ;;
15527         ia64*)
15528           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15529           ;;
15530         *)
15531           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15532           ;;
15533         esac
15534       fi
15535       if test "$with_gnu_ld" = no; then
15536         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15537         hardcode_libdir_separator_F77=:
15539         case $host_cpu in
15540         hppa*64*|ia64*)
15541           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15542           hardcode_direct_F77=no
15543           hardcode_shlibpath_var_F77=no
15544           ;;
15545         *)
15546           hardcode_direct_F77=yes
15547           export_dynamic_flag_spec_F77='${wl}-E'
15549           # hardcode_minus_L: Not really in the search PATH,
15550           # but as the default location of the library.
15551           hardcode_minus_L_F77=yes
15552           ;;
15553         esac
15554       fi
15555       ;;
15557     irix5* | irix6* | nonstopux*)
15558       if test "$GCC" = yes; then
15559         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'
15560       else
15561         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'
15562         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15563       fi
15564       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15565       hardcode_libdir_separator_F77=:
15566       link_all_deplibs_F77=yes
15567       ;;
15569     netbsd* | netbsdelf*-gnu)
15570       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15571         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15572       else
15573         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15574       fi
15575       hardcode_libdir_flag_spec_F77='-R$libdir'
15576       hardcode_direct_F77=yes
15577       hardcode_shlibpath_var_F77=no
15578       ;;
15580     newsos6)
15581       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15582       hardcode_direct_F77=yes
15583       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15584       hardcode_libdir_separator_F77=:
15585       hardcode_shlibpath_var_F77=no
15586       ;;
15588     openbsd*)
15589       if test -f /usr/libexec/ld.so; then
15590         hardcode_direct_F77=yes
15591         hardcode_shlibpath_var_F77=no
15592         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15593           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15594           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15595           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15596           export_dynamic_flag_spec_F77='${wl}-E'
15597         else
15598           case $host_os in
15599            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15600              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15601              hardcode_libdir_flag_spec_F77='-R$libdir'
15602              ;;
15603            *)
15604              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15605              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15606              ;;
15607           esac
15608         fi
15609       else
15610         ld_shlibs_F77=no
15611       fi
15612       ;;
15614     os2*)
15615       hardcode_libdir_flag_spec_F77='-L$libdir'
15616       hardcode_minus_L_F77=yes
15617       allow_undefined_flag_F77=unsupported
15618       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'
15619       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15620       ;;
15622     osf3*)
15623       if test "$GCC" = yes; then
15624         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15625         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'
15626       else
15627         allow_undefined_flag_F77=' -expect_unresolved \*'
15628         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'
15629       fi
15630       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15631       hardcode_libdir_separator_F77=:
15632       ;;
15634     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15635       if test "$GCC" = yes; then
15636         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15637         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'
15638         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15639       else
15640         allow_undefined_flag_F77=' -expect_unresolved \*'
15641         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'
15642         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~
15643         $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'
15645         # Both c and cxx compiler support -rpath directly
15646         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15647       fi
15648       hardcode_libdir_separator_F77=:
15649       ;;
15651     solaris*)
15652       no_undefined_flag_F77=' -z text'
15653       if test "$GCC" = yes; then
15654         wlarc='${wl}'
15655         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15656         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15657           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15658       else
15659         wlarc=''
15660         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15662         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15663       fi
15664       hardcode_libdir_flag_spec_F77='-R$libdir'
15665       hardcode_shlibpath_var_F77=no
15666       case $host_os in
15667       solaris2.[0-5] | solaris2.[0-5].*) ;;
15668       *)
15669         # The compiler driver will combine and reorder linker options,
15670         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15671         # but is careful enough not to reorder.
15672         # Supported since Solaris 2.6 (maybe 2.5.1?)
15673         if test "$GCC" = yes; then
15674           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15675         else
15676           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15677         fi
15678         ;;
15679       esac
15680       link_all_deplibs_F77=yes
15681       ;;
15683     sunos4*)
15684       if test "x$host_vendor" = xsequent; then
15685         # Use $CC to link under sequent, because it throws in some extra .o
15686         # files that make .init and .fini sections work.
15687         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15688       else
15689         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15690       fi
15691       hardcode_libdir_flag_spec_F77='-L$libdir'
15692       hardcode_direct_F77=yes
15693       hardcode_minus_L_F77=yes
15694       hardcode_shlibpath_var_F77=no
15695       ;;
15697     sysv4)
15698       case $host_vendor in
15699         sni)
15700           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701           hardcode_direct_F77=yes # is this really true???
15702         ;;
15703         siemens)
15704           ## LD is ld it makes a PLAMLIB
15705           ## CC just makes a GrossModule.
15706           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15707           reload_cmds_F77='$CC -r -o $output$reload_objs'
15708           hardcode_direct_F77=no
15709         ;;
15710         motorola)
15711           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15712           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15713         ;;
15714       esac
15715       runpath_var='LD_RUN_PATH'
15716       hardcode_shlibpath_var_F77=no
15717       ;;
15719     sysv4.3*)
15720       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15721       hardcode_shlibpath_var_F77=no
15722       export_dynamic_flag_spec_F77='-Bexport'
15723       ;;
15725     sysv4*MP*)
15726       if test -d /usr/nec; then
15727         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15728         hardcode_shlibpath_var_F77=no
15729         runpath_var=LD_RUN_PATH
15730         hardcode_runpath_var=yes
15731         ld_shlibs_F77=yes
15732       fi
15733       ;;
15735     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15736       no_undefined_flag_F77='${wl}-z,text'
15737       archive_cmds_need_lc_F77=no
15738       hardcode_shlibpath_var_F77=no
15739       runpath_var='LD_RUN_PATH'
15741       if test "$GCC" = yes; then
15742         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15743         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15744       else
15745         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15746         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15747       fi
15748       ;;
15750     sysv5* | sco3.2v5* | sco5v6*)
15751       # Note: We can NOT use -z defs as we might desire, because we do not
15752       # link with -lc, and that would cause any symbols used from libc to
15753       # always be unresolved, which means just about no library would
15754       # ever link correctly.  If we're not using GNU ld we use -z text
15755       # though, which does catch some bad symbols but isn't as heavy-handed
15756       # as -z defs.
15757       no_undefined_flag_F77='${wl}-z,text'
15758       allow_undefined_flag_F77='${wl}-z,nodefs'
15759       archive_cmds_need_lc_F77=no
15760       hardcode_shlibpath_var_F77=no
15761       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15762       hardcode_libdir_separator_F77=':'
15763       link_all_deplibs_F77=yes
15764       export_dynamic_flag_spec_F77='${wl}-Bexport'
15765       runpath_var='LD_RUN_PATH'
15767       if test "$GCC" = yes; then
15768         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15769         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15770       else
15771         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15772         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15773       fi
15774       ;;
15776     uts4*)
15777       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15778       hardcode_libdir_flag_spec_F77='-L$libdir'
15779       hardcode_shlibpath_var_F77=no
15780       ;;
15782     *)
15783       ld_shlibs_F77=no
15784       ;;
15785     esac
15786   fi
15788 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15789 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15790 test "$ld_shlibs_F77" = no && can_build_shared=no
15793 # Do we need to explicitly link libc?
15795 case "x$archive_cmds_need_lc_F77" in
15796 x|xyes)
15797   # Assume -lc should be added
15798   archive_cmds_need_lc_F77=yes
15800   if test "$enable_shared" = yes && test "$GCC" = yes; then
15801     case $archive_cmds_F77 in
15802     *'~'*)
15803       # FIXME: we may have to deal with multi-command sequences.
15804       ;;
15805     '$CC '*)
15806       # Test whether the compiler implicitly links with -lc since on some
15807       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15808       # to ld, don't add -lc before -lgcc.
15809       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15810 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15811       $rm conftest*
15812       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15814       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15815   (eval $ac_compile) 2>&5
15816   ac_status=$?
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } 2>conftest.err; then
15819         soname=conftest
15820         lib=conftest
15821         libobjs=conftest.$ac_objext
15822         deplibs=
15823         wl=$lt_prog_compiler_wl_F77
15824         pic_flag=$lt_prog_compiler_pic_F77
15825         compiler_flags=-v
15826         linker_flags=-v
15827         verstring=
15828         output_objdir=.
15829         libname=conftest
15830         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15831         allow_undefined_flag_F77=
15832         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15833   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }
15837         then
15838           archive_cmds_need_lc_F77=no
15839         else
15840           archive_cmds_need_lc_F77=yes
15841         fi
15842         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15843       else
15844         cat conftest.err 1>&5
15845       fi
15846       $rm conftest*
15847       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15848 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15849       ;;
15850     esac
15851   fi
15852   ;;
15853 esac
15855 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15856 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15857 library_names_spec=
15858 libname_spec='lib$name'
15859 soname_spec=
15860 shrext_cmds=".so"
15861 postinstall_cmds=
15862 postuninstall_cmds=
15863 finish_cmds=
15864 finish_eval=
15865 shlibpath_var=
15866 shlibpath_overrides_runpath=unknown
15867 version_type=none
15868 dynamic_linker="$host_os ld.so"
15869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15871 need_lib_prefix=unknown
15872 hardcode_into_libs=no
15874 # when you set need_version to no, make sure it does not cause -set_version
15875 # flags to be left without arguments
15876 need_version=unknown
15878 case $host_os in
15879 aix3*)
15880   version_type=linux
15881   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15882   shlibpath_var=LIBPATH
15884   # AIX 3 has no versioning support, so we append a major version to the name.
15885   soname_spec='${libname}${release}${shared_ext}$major'
15886   ;;
15888 aix[4-9]*)
15889   version_type=linux
15890   need_lib_prefix=no
15891   need_version=no
15892   hardcode_into_libs=yes
15893   if test "$host_cpu" = ia64; then
15894     # AIX 5 supports IA64
15895     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15896     shlibpath_var=LD_LIBRARY_PATH
15897   else
15898     # With GCC up to 2.95.x, collect2 would create an import file
15899     # for dependence libraries.  The import file would start with
15900     # the line `#! .'.  This would cause the generated library to
15901     # depend on `.', always an invalid library.  This was fixed in
15902     # development snapshots of GCC prior to 3.0.
15903     case $host_os in
15904       aix4 | aix4.[01] | aix4.[01].*)
15905       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15906            echo ' yes '
15907            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15908         :
15909       else
15910         can_build_shared=no
15911       fi
15912       ;;
15913     esac
15914     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15915     # soname into executable. Probably we can add versioning support to
15916     # collect2, so additional links can be useful in future.
15917     if test "$aix_use_runtimelinking" = yes; then
15918       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15919       # instead of lib<name>.a to let people know that these are not
15920       # typical AIX shared libraries.
15921       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922     else
15923       # We preserve .a as extension for shared libraries through AIX4.2
15924       # and later when we are not doing run time linking.
15925       library_names_spec='${libname}${release}.a $libname.a'
15926       soname_spec='${libname}${release}${shared_ext}$major'
15927     fi
15928     shlibpath_var=LIBPATH
15929   fi
15930   ;;
15932 amigaos*)
15933   library_names_spec='$libname.ixlibrary $libname.a'
15934   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15935   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'
15936   ;;
15938 beos*)
15939   library_names_spec='${libname}${shared_ext}'
15940   dynamic_linker="$host_os ld.so"
15941   shlibpath_var=LIBRARY_PATH
15942   ;;
15944 bsdi[45]*)
15945   version_type=linux
15946   need_version=no
15947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948   soname_spec='${libname}${release}${shared_ext}$major'
15949   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15950   shlibpath_var=LD_LIBRARY_PATH
15951   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15952   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15953   # the default ld.so.conf also contains /usr/contrib/lib and
15954   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15955   # libtool to hard-code these into programs
15956   ;;
15958 cygwin* | mingw* | pw32*)
15959   version_type=windows
15960   shrext_cmds=".dll"
15961   need_version=no
15962   need_lib_prefix=no
15964   case $GCC,$host_os in
15965   yes,cygwin* | yes,mingw* | yes,pw32*)
15966     library_names_spec='$libname.dll.a'
15967     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15968     postinstall_cmds='base_file=`basename \${file}`~
15969       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15970       dldir=$destdir/`dirname \$dlpath`~
15971       test -d \$dldir || mkdir -p \$dldir~
15972       $install_prog $dir/$dlname \$dldir/$dlname~
15973       chmod a+x \$dldir/$dlname'
15974     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15975       dlpath=$dir/\$dldll~
15976        $rm \$dlpath'
15977     shlibpath_overrides_runpath=yes
15979     case $host_os in
15980     cygwin*)
15981       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15982       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15983       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15984       ;;
15985     mingw*)
15986       # MinGW DLLs use traditional 'lib' prefix
15987       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15988       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15989       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15990         # It is most probably a Windows format PATH printed by
15991         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15992         # path with ; separators, and with drive letters. We can handle the
15993         # drive letters (cygwin fileutils understands them), so leave them,
15994         # especially as we might pass files found there to a mingw objdump,
15995         # which wouldn't understand a cygwinified path. Ahh.
15996         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15997       else
15998         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15999       fi
16000       ;;
16001     pw32*)
16002       # pw32 DLLs use 'pw' prefix rather than 'lib'
16003       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16004       ;;
16005     esac
16006     ;;
16008   *)
16009     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16010     ;;
16011   esac
16012   dynamic_linker='Win32 ld.exe'
16013   # FIXME: first we should search . and the directory the executable is in
16014   shlibpath_var=PATH
16015   ;;
16017 darwin* | rhapsody*)
16018   dynamic_linker="$host_os dyld"
16019   version_type=darwin
16020   need_lib_prefix=no
16021   need_version=no
16022   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16023   soname_spec='${libname}${release}${major}$shared_ext'
16024   shlibpath_overrides_runpath=yes
16025   shlibpath_var=DYLD_LIBRARY_PATH
16026   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16028   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16029   ;;
16031 dgux*)
16032   version_type=linux
16033   need_lib_prefix=no
16034   need_version=no
16035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16036   soname_spec='${libname}${release}${shared_ext}$major'
16037   shlibpath_var=LD_LIBRARY_PATH
16038   ;;
16040 freebsd1*)
16041   dynamic_linker=no
16042   ;;
16044 freebsd* | dragonfly*)
16045   # DragonFly does not have aout.  When/if they implement a new
16046   # versioning mechanism, adjust this.
16047   if test -x /usr/bin/objformat; then
16048     objformat=`/usr/bin/objformat`
16049   else
16050     case $host_os in
16051     freebsd[123]*) objformat=aout ;;
16052     *) objformat=elf ;;
16053     esac
16054   fi
16055   version_type=freebsd-$objformat
16056   case $version_type in
16057     freebsd-elf*)
16058       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16059       need_version=no
16060       need_lib_prefix=no
16061       ;;
16062     freebsd-*)
16063       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16064       need_version=yes
16065       ;;
16066   esac
16067   shlibpath_var=LD_LIBRARY_PATH
16068   case $host_os in
16069   freebsd2*)
16070     shlibpath_overrides_runpath=yes
16071     ;;
16072   freebsd3.[01]* | freebsdelf3.[01]*)
16073     shlibpath_overrides_runpath=yes
16074     hardcode_into_libs=yes
16075     ;;
16076   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16077   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16078     shlibpath_overrides_runpath=no
16079     hardcode_into_libs=yes
16080     ;;
16081   *) # from 4.6 on, and DragonFly
16082     shlibpath_overrides_runpath=yes
16083     hardcode_into_libs=yes
16084     ;;
16085   esac
16086   ;;
16088 gnu*)
16089   version_type=linux
16090   need_lib_prefix=no
16091   need_version=no
16092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16093   soname_spec='${libname}${release}${shared_ext}$major'
16094   shlibpath_var=LD_LIBRARY_PATH
16095   hardcode_into_libs=yes
16096   ;;
16098 hpux9* | hpux10* | hpux11*)
16099   # Give a soname corresponding to the major version so that dld.sl refuses to
16100   # link against other versions.
16101   version_type=sunos
16102   need_lib_prefix=no
16103   need_version=no
16104   case $host_cpu in
16105   ia64*)
16106     shrext_cmds='.so'
16107     hardcode_into_libs=yes
16108     dynamic_linker="$host_os dld.so"
16109     shlibpath_var=LD_LIBRARY_PATH
16110     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112     soname_spec='${libname}${release}${shared_ext}$major'
16113     if test "X$HPUX_IA64_MODE" = X32; then
16114       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16115     else
16116       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16117     fi
16118     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16119     ;;
16120    hppa*64*)
16121      shrext_cmds='.sl'
16122      hardcode_into_libs=yes
16123      dynamic_linker="$host_os dld.sl"
16124      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16125      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16126      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127      soname_spec='${libname}${release}${shared_ext}$major'
16128      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16129      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16130      ;;
16131    *)
16132     shrext_cmds='.sl'
16133     dynamic_linker="$host_os dld.sl"
16134     shlibpath_var=SHLIB_PATH
16135     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16137     soname_spec='${libname}${release}${shared_ext}$major'
16138     ;;
16139   esac
16140   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16141   postinstall_cmds='chmod 555 $lib'
16142   ;;
16144 interix[3-9]*)
16145   version_type=linux
16146   need_lib_prefix=no
16147   need_version=no
16148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16149   soname_spec='${libname}${release}${shared_ext}$major'
16150   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16151   shlibpath_var=LD_LIBRARY_PATH
16152   shlibpath_overrides_runpath=no
16153   hardcode_into_libs=yes
16154   ;;
16156 irix5* | irix6* | nonstopux*)
16157   case $host_os in
16158     nonstopux*) version_type=nonstopux ;;
16159     *)
16160         if test "$lt_cv_prog_gnu_ld" = yes; then
16161                 version_type=linux
16162         else
16163                 version_type=irix
16164         fi ;;
16165   esac
16166   need_lib_prefix=no
16167   need_version=no
16168   soname_spec='${libname}${release}${shared_ext}$major'
16169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16170   case $host_os in
16171   irix5* | nonstopux*)
16172     libsuff= shlibsuff=
16173     ;;
16174   *)
16175     case $LD in # libtool.m4 will add one of these switches to LD
16176     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16177       libsuff= shlibsuff= libmagic=32-bit;;
16178     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16179       libsuff=32 shlibsuff=N32 libmagic=N32;;
16180     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16181       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16182     *) libsuff= shlibsuff= libmagic=never-match;;
16183     esac
16184     ;;
16185   esac
16186   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16187   shlibpath_overrides_runpath=no
16188   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16189   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16190   hardcode_into_libs=yes
16191   ;;
16193 # No shared lib support for Linux oldld, aout, or coff.
16194 linux*oldld* | linux*aout* | linux*coff*)
16195   dynamic_linker=no
16196   ;;
16198 # This must be Linux ELF.
16199 linux* | k*bsd*-gnu)
16200   version_type=linux
16201   need_lib_prefix=no
16202   need_version=no
16203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204   soname_spec='${libname}${release}${shared_ext}$major'
16205   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16206   shlibpath_var=LD_LIBRARY_PATH
16207   shlibpath_overrides_runpath=no
16208   # This implies no fast_install, which is unacceptable.
16209   # Some rework will be needed to allow for fast_install
16210   # before this can be enabled.
16211   hardcode_into_libs=yes
16213   # Append ld.so.conf contents to the search path
16214   if test -f /etc/ld.so.conf; then
16215     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' ' '`
16216     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16217   fi
16219   # We used to test for /lib/ld.so.1 and disable shared libraries on
16220   # powerpc, because MkLinux only supported shared libraries with the
16221   # GNU dynamic linker.  Since this was broken with cross compilers,
16222   # most powerpc-linux boxes support dynamic linking these days and
16223   # people can always --disable-shared, the test was removed, and we
16224   # assume the GNU/Linux dynamic linker is in use.
16225   dynamic_linker='GNU/Linux ld.so'
16226   ;;
16228 netbsdelf*-gnu)
16229   version_type=linux
16230   need_lib_prefix=no
16231   need_version=no
16232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16233   soname_spec='${libname}${release}${shared_ext}$major'
16234   shlibpath_var=LD_LIBRARY_PATH
16235   shlibpath_overrides_runpath=no
16236   hardcode_into_libs=yes
16237   dynamic_linker='NetBSD ld.elf_so'
16238   ;;
16240 netbsd*)
16241   version_type=sunos
16242   need_lib_prefix=no
16243   need_version=no
16244   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16246     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16247     dynamic_linker='NetBSD (a.out) ld.so'
16248   else
16249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16250     soname_spec='${libname}${release}${shared_ext}$major'
16251     dynamic_linker='NetBSD ld.elf_so'
16252   fi
16253   shlibpath_var=LD_LIBRARY_PATH
16254   shlibpath_overrides_runpath=yes
16255   hardcode_into_libs=yes
16256   ;;
16258 newsos6)
16259   version_type=linux
16260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16261   shlibpath_var=LD_LIBRARY_PATH
16262   shlibpath_overrides_runpath=yes
16263   ;;
16265 nto-qnx*)
16266   version_type=linux
16267   need_lib_prefix=no
16268   need_version=no
16269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16270   soname_spec='${libname}${release}${shared_ext}$major'
16271   shlibpath_var=LD_LIBRARY_PATH
16272   shlibpath_overrides_runpath=yes
16273   ;;
16275 openbsd*)
16276   version_type=sunos
16277   sys_lib_dlsearch_path_spec="/usr/lib"
16278   need_lib_prefix=no
16279   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16280   case $host_os in
16281     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16282     *)                         need_version=no  ;;
16283   esac
16284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16285   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16286   shlibpath_var=LD_LIBRARY_PATH
16287   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16288     case $host_os in
16289       openbsd2.[89] | openbsd2.[89].*)
16290         shlibpath_overrides_runpath=no
16291         ;;
16292       *)
16293         shlibpath_overrides_runpath=yes
16294         ;;
16295       esac
16296   else
16297     shlibpath_overrides_runpath=yes
16298   fi
16299   ;;
16301 os2*)
16302   libname_spec='$name'
16303   shrext_cmds=".dll"
16304   need_lib_prefix=no
16305   library_names_spec='$libname${shared_ext} $libname.a'
16306   dynamic_linker='OS/2 ld.exe'
16307   shlibpath_var=LIBPATH
16308   ;;
16310 osf3* | osf4* | osf5*)
16311   version_type=osf
16312   need_lib_prefix=no
16313   need_version=no
16314   soname_spec='${libname}${release}${shared_ext}$major'
16315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316   shlibpath_var=LD_LIBRARY_PATH
16317   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16318   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16319   ;;
16321 rdos*)
16322   dynamic_linker=no
16323   ;;
16325 solaris*)
16326   version_type=linux
16327   need_lib_prefix=no
16328   need_version=no
16329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330   soname_spec='${libname}${release}${shared_ext}$major'
16331   shlibpath_var=LD_LIBRARY_PATH
16332   shlibpath_overrides_runpath=yes
16333   hardcode_into_libs=yes
16334   # ldd complains unless libraries are executable
16335   postinstall_cmds='chmod +x $lib'
16336   ;;
16338 sunos4*)
16339   version_type=sunos
16340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16341   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16342   shlibpath_var=LD_LIBRARY_PATH
16343   shlibpath_overrides_runpath=yes
16344   if test "$with_gnu_ld" = yes; then
16345     need_lib_prefix=no
16346   fi
16347   need_version=yes
16348   ;;
16350 sysv4 | sysv4.3*)
16351   version_type=linux
16352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353   soname_spec='${libname}${release}${shared_ext}$major'
16354   shlibpath_var=LD_LIBRARY_PATH
16355   case $host_vendor in
16356     sni)
16357       shlibpath_overrides_runpath=no
16358       need_lib_prefix=no
16359       export_dynamic_flag_spec='${wl}-Blargedynsym'
16360       runpath_var=LD_RUN_PATH
16361       ;;
16362     siemens)
16363       need_lib_prefix=no
16364       ;;
16365     motorola)
16366       need_lib_prefix=no
16367       need_version=no
16368       shlibpath_overrides_runpath=no
16369       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16370       ;;
16371   esac
16372   ;;
16374 sysv4*MP*)
16375   if test -d /usr/nec ;then
16376     version_type=linux
16377     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16378     soname_spec='$libname${shared_ext}.$major'
16379     shlibpath_var=LD_LIBRARY_PATH
16380   fi
16381   ;;
16383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16384   version_type=freebsd-elf
16385   need_lib_prefix=no
16386   need_version=no
16387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16388   soname_spec='${libname}${release}${shared_ext}$major'
16389   shlibpath_var=LD_LIBRARY_PATH
16390   hardcode_into_libs=yes
16391   if test "$with_gnu_ld" = yes; then
16392     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16393     shlibpath_overrides_runpath=no
16394   else
16395     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16396     shlibpath_overrides_runpath=yes
16397     case $host_os in
16398       sco3.2v5*)
16399         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16400         ;;
16401     esac
16402   fi
16403   sys_lib_dlsearch_path_spec='/usr/lib'
16404   ;;
16406 uts4*)
16407   version_type=linux
16408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409   soname_spec='${libname}${release}${shared_ext}$major'
16410   shlibpath_var=LD_LIBRARY_PATH
16411   ;;
16414   dynamic_linker=no
16415   ;;
16416 esac
16417 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16418 echo "${ECHO_T}$dynamic_linker" >&6; }
16419 test "$dynamic_linker" = no && can_build_shared=no
16421 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16422   echo $ECHO_N "(cached) $ECHO_C" >&6
16423 else
16424   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16427 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16428 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16429   echo $ECHO_N "(cached) $ECHO_C" >&6
16430 else
16431   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16434 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16436 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16437 if test "$GCC" = yes; then
16438   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16441 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16442 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16443 hardcode_action_F77=
16444 if test -n "$hardcode_libdir_flag_spec_F77" || \
16445    test -n "$runpath_var_F77" || \
16446    test "X$hardcode_automatic_F77" = "Xyes" ; then
16448   # We can hardcode non-existant directories.
16449   if test "$hardcode_direct_F77" != no &&
16450      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16451      # have to relink, otherwise we might link with an installed library
16452      # when we should be linking with a yet-to-be-installed one
16453      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16454      test "$hardcode_minus_L_F77" != no; then
16455     # Linking always hardcodes the temporary library directory.
16456     hardcode_action_F77=relink
16457   else
16458     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16459     hardcode_action_F77=immediate
16460   fi
16461 else
16462   # We cannot hardcode anything, or else we can only hardcode existing
16463   # directories.
16464   hardcode_action_F77=unsupported
16466 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16467 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16469 if test "$hardcode_action_F77" = relink; then
16470   # Fast installation is not supported
16471   enable_fast_install=no
16472 elif test "$shlibpath_overrides_runpath" = yes ||
16473      test "$enable_shared" = no; then
16474   # Fast installation is not necessary
16475   enable_fast_install=needless
16479 # The else clause should only fire when bootstrapping the
16480 # libtool distribution, otherwise you forgot to ship ltmain.sh
16481 # with your package, and you will get complaints that there are
16482 # no rules to generate ltmain.sh.
16483 if test -f "$ltmain"; then
16484   # See if we are running on zsh, and set the options which allow our commands through
16485   # without removal of \ escapes.
16486   if test -n "${ZSH_VERSION+set}" ; then
16487     setopt NO_GLOB_SUBST
16488   fi
16489   # Now quote all the things that may contain metacharacters while being
16490   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16491   # variables and quote the copies for generation of the libtool script.
16492   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16493     SED SHELL STRIP \
16494     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16495     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16496     deplibs_check_method reload_flag reload_cmds need_locks \
16497     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16498     lt_cv_sys_global_symbol_to_c_name_address \
16499     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16500     old_postinstall_cmds old_postuninstall_cmds \
16501     compiler_F77 \
16502     CC_F77 \
16503     LD_F77 \
16504     lt_prog_compiler_wl_F77 \
16505     lt_prog_compiler_pic_F77 \
16506     lt_prog_compiler_static_F77 \
16507     lt_prog_compiler_no_builtin_flag_F77 \
16508     export_dynamic_flag_spec_F77 \
16509     thread_safe_flag_spec_F77 \
16510     whole_archive_flag_spec_F77 \
16511     enable_shared_with_static_runtimes_F77 \
16512     old_archive_cmds_F77 \
16513     old_archive_from_new_cmds_F77 \
16514     predep_objects_F77 \
16515     postdep_objects_F77 \
16516     predeps_F77 \
16517     postdeps_F77 \
16518     compiler_lib_search_path_F77 \
16519     compiler_lib_search_dirs_F77 \
16520     archive_cmds_F77 \
16521     archive_expsym_cmds_F77 \
16522     postinstall_cmds_F77 \
16523     postuninstall_cmds_F77 \
16524     old_archive_from_expsyms_cmds_F77 \
16525     allow_undefined_flag_F77 \
16526     no_undefined_flag_F77 \
16527     export_symbols_cmds_F77 \
16528     hardcode_libdir_flag_spec_F77 \
16529     hardcode_libdir_flag_spec_ld_F77 \
16530     hardcode_libdir_separator_F77 \
16531     hardcode_automatic_F77 \
16532     module_cmds_F77 \
16533     module_expsym_cmds_F77 \
16534     lt_cv_prog_compiler_c_o_F77 \
16535     fix_srcfile_path_F77 \
16536     exclude_expsyms_F77 \
16537     include_expsyms_F77; do
16539     case $var in
16540     old_archive_cmds_F77 | \
16541     old_archive_from_new_cmds_F77 | \
16542     archive_cmds_F77 | \
16543     archive_expsym_cmds_F77 | \
16544     module_cmds_F77 | \
16545     module_expsym_cmds_F77 | \
16546     old_archive_from_expsyms_cmds_F77 | \
16547     export_symbols_cmds_F77 | \
16548     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16549     postinstall_cmds | postuninstall_cmds | \
16550     old_postinstall_cmds | old_postuninstall_cmds | \
16551     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16552       # Double-quote double-evaled strings.
16553       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16554       ;;
16555     *)
16556       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16557       ;;
16558     esac
16559   done
16561   case $lt_echo in
16562   *'\$0 --fallback-echo"')
16563     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16564     ;;
16565   esac
16567 cfgfile="$ofile"
16569   cat <<__EOF__ >> "$cfgfile"
16570 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16572 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16574 # Shell to use when invoking shell scripts.
16575 SHELL=$lt_SHELL
16577 # Whether or not to build shared libraries.
16578 build_libtool_libs=$enable_shared
16580 # Whether or not to build static libraries.
16581 build_old_libs=$enable_static
16583 # Whether or not to add -lc for building shared libraries.
16584 build_libtool_need_lc=$archive_cmds_need_lc_F77
16586 # Whether or not to disallow shared libs when runtime libs are static
16587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16589 # Whether or not to optimize for fast installation.
16590 fast_install=$enable_fast_install
16592 # The host system.
16593 host_alias=$host_alias
16594 host=$host
16595 host_os=$host_os
16597 # The build system.
16598 build_alias=$build_alias
16599 build=$build
16600 build_os=$build_os
16602 # An echo program that does not interpret backslashes.
16603 echo=$lt_echo
16605 # The archiver.
16606 AR=$lt_AR
16607 AR_FLAGS=$lt_AR_FLAGS
16609 # A C compiler.
16610 LTCC=$lt_LTCC
16612 # LTCC compiler flags.
16613 LTCFLAGS=$lt_LTCFLAGS
16615 # A language-specific compiler.
16616 CC=$lt_compiler_F77
16618 # Is the compiler the GNU C compiler?
16619 with_gcc=$GCC_F77
16621 # An ERE matcher.
16622 EGREP=$lt_EGREP
16624 # The linker used to build libraries.
16625 LD=$lt_LD_F77
16627 # Whether we need hard or soft links.
16628 LN_S=$lt_LN_S
16630 # A BSD-compatible nm program.
16631 NM=$lt_NM
16633 # A symbol stripping program
16634 STRIP=$lt_STRIP
16636 # Used to examine libraries when file_magic_cmd begins "file"
16637 MAGIC_CMD=$MAGIC_CMD
16639 # Used on cygwin: DLL creation program.
16640 DLLTOOL="$DLLTOOL"
16642 # Used on cygwin: object dumper.
16643 OBJDUMP="$OBJDUMP"
16645 # Used on cygwin: assembler.
16646 AS="$AS"
16648 # The name of the directory that contains temporary libtool files.
16649 objdir=$objdir
16651 # How to create reloadable object files.
16652 reload_flag=$lt_reload_flag
16653 reload_cmds=$lt_reload_cmds
16655 # How to pass a linker flag through the compiler.
16656 wl=$lt_lt_prog_compiler_wl_F77
16658 # Object file suffix (normally "o").
16659 objext="$ac_objext"
16661 # Old archive suffix (normally "a").
16662 libext="$libext"
16664 # Shared library suffix (normally ".so").
16665 shrext_cmds='$shrext_cmds'
16667 # Executable file suffix (normally "").
16668 exeext="$exeext"
16670 # Additional compiler flags for building library objects.
16671 pic_flag=$lt_lt_prog_compiler_pic_F77
16672 pic_mode=$pic_mode
16674 # What is the maximum length of a command?
16675 max_cmd_len=$lt_cv_sys_max_cmd_len
16677 # Does compiler simultaneously support -c and -o options?
16678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16680 # Must we lock files when doing compilation?
16681 need_locks=$lt_need_locks
16683 # Do we need the lib prefix for modules?
16684 need_lib_prefix=$need_lib_prefix
16686 # Do we need a version for libraries?
16687 need_version=$need_version
16689 # Whether dlopen is supported.
16690 dlopen_support=$enable_dlopen
16692 # Whether dlopen of programs is supported.
16693 dlopen_self=$enable_dlopen_self
16695 # Whether dlopen of statically linked programs is supported.
16696 dlopen_self_static=$enable_dlopen_self_static
16698 # Compiler flag to prevent dynamic linking.
16699 link_static_flag=$lt_lt_prog_compiler_static_F77
16701 # Compiler flag to turn off builtin functions.
16702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16704 # Compiler flag to allow reflexive dlopens.
16705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16707 # Compiler flag to generate shared objects directly from archives.
16708 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16710 # Compiler flag to generate thread-safe objects.
16711 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16713 # Library versioning type.
16714 version_type=$version_type
16716 # Format of library name prefix.
16717 libname_spec=$lt_libname_spec
16719 # List of archive names.  First name is the real one, the rest are links.
16720 # The last name is the one that the linker finds with -lNAME.
16721 library_names_spec=$lt_library_names_spec
16723 # The coded name of the library, if different from the real name.
16724 soname_spec=$lt_soname_spec
16726 # Commands used to build and install an old-style archive.
16727 RANLIB=$lt_RANLIB
16728 old_archive_cmds=$lt_old_archive_cmds_F77
16729 old_postinstall_cmds=$lt_old_postinstall_cmds
16730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16732 # Create an old-style archive from a shared archive.
16733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16735 # Create a temporary old-style archive to link instead of a shared archive.
16736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16738 # Commands used to build and install a shared archive.
16739 archive_cmds=$lt_archive_cmds_F77
16740 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16741 postinstall_cmds=$lt_postinstall_cmds
16742 postuninstall_cmds=$lt_postuninstall_cmds
16744 # Commands used to build a loadable module (assumed same as above if empty)
16745 module_cmds=$lt_module_cmds_F77
16746 module_expsym_cmds=$lt_module_expsym_cmds_F77
16748 # Commands to strip libraries.
16749 old_striplib=$lt_old_striplib
16750 striplib=$lt_striplib
16752 # Dependencies to place before the objects being linked to create a
16753 # shared library.
16754 predep_objects=$lt_predep_objects_F77
16756 # Dependencies to place after the objects being linked to create a
16757 # shared library.
16758 postdep_objects=$lt_postdep_objects_F77
16760 # Dependencies to place before the objects being linked to create a
16761 # shared library.
16762 predeps=$lt_predeps_F77
16764 # Dependencies to place after the objects being linked to create a
16765 # shared library.
16766 postdeps=$lt_postdeps_F77
16768 # The directories searched by this compiler when creating a shared
16769 # library
16770 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16772 # The library search path used internally by the compiler when linking
16773 # a shared library.
16774 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16776 # Method to check whether dependent libraries are shared objects.
16777 deplibs_check_method=$lt_deplibs_check_method
16779 # Command to use when deplibs_check_method == file_magic.
16780 file_magic_cmd=$lt_file_magic_cmd
16782 # Flag that allows shared libraries with undefined symbols to be built.
16783 allow_undefined_flag=$lt_allow_undefined_flag_F77
16785 # Flag that forces no undefined symbols.
16786 no_undefined_flag=$lt_no_undefined_flag_F77
16788 # Commands used to finish a libtool library installation in a directory.
16789 finish_cmds=$lt_finish_cmds
16791 # Same as above, but a single script fragment to be evaled but not shown.
16792 finish_eval=$lt_finish_eval
16794 # Take the output of nm and produce a listing of raw symbols and C names.
16795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16797 # Transform the output of nm in a proper C declaration
16798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16800 # Transform the output of nm in a C name address pair
16801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16803 # This is the shared library runtime path variable.
16804 runpath_var=$runpath_var
16806 # This is the shared library path variable.
16807 shlibpath_var=$shlibpath_var
16809 # Is shlibpath searched before the hard-coded library search path?
16810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16812 # How to hardcode a shared library path into an executable.
16813 hardcode_action=$hardcode_action_F77
16815 # Whether we should hardcode library paths into libraries.
16816 hardcode_into_libs=$hardcode_into_libs
16818 # Flag to hardcode \$libdir into a binary during linking.
16819 # This must work even if \$libdir does not exist.
16820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16822 # If ld is used when linking, flag to hardcode \$libdir into
16823 # a binary during linking. This must work even if \$libdir does
16824 # not exist.
16825 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16827 # Whether we need a single -rpath flag with a separated argument.
16828 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16830 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16831 # resulting binary.
16832 hardcode_direct=$hardcode_direct_F77
16834 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16835 # resulting binary.
16836 hardcode_minus_L=$hardcode_minus_L_F77
16838 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16839 # the resulting binary.
16840 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16842 # Set to yes if building a shared library automatically hardcodes DIR into the library
16843 # and all subsequent libraries and executables linked against it.
16844 hardcode_automatic=$hardcode_automatic_F77
16846 # Variables whose values should be saved in libtool wrapper scripts and
16847 # restored at relink time.
16848 variables_saved_for_relink="$variables_saved_for_relink"
16850 # Whether libtool must link a program against all its dependency libraries.
16851 link_all_deplibs=$link_all_deplibs_F77
16853 # Compile-time system search path for libraries
16854 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16856 # Run-time system search path for libraries
16857 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16859 # Fix the shell variable \$srcfile for the compiler.
16860 fix_srcfile_path=$lt_fix_srcfile_path
16862 # Set to yes if exported symbols are required.
16863 always_export_symbols=$always_export_symbols_F77
16865 # The commands to list exported symbols.
16866 export_symbols_cmds=$lt_export_symbols_cmds_F77
16868 # The commands to extract the exported symbol list from a shared archive.
16869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16871 # Symbols that should not be listed in the preloaded symbols.
16872 exclude_expsyms=$lt_exclude_expsyms_F77
16874 # Symbols that must always be exported.
16875 include_expsyms=$lt_include_expsyms_F77
16877 # ### END LIBTOOL TAG CONFIG: $tagname
16879 __EOF__
16882 else
16883   # If there is no Makefile yet, we rely on a make rule to execute
16884   # `config.status --recheck' to rerun these tests and create the
16885   # libtool script then.
16886   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16887   if test -f "$ltmain_in"; then
16888     test -f Makefile && make "$ltmain"
16889   fi
16893 ac_ext=c
16894 ac_cpp='$CPP $CPPFLAGS'
16895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16899 CC="$lt_save_CC"
16901         else
16902           tagname=""
16903         fi
16904         ;;
16906       GCJ)
16907         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16910 # Source file extension for Java test sources.
16911 ac_ext=java
16913 # Object file extension for compiled Java test sources.
16914 objext=o
16915 objext_GCJ=$objext
16917 # Code to be used in simple compile tests
16918 lt_simple_compile_test_code="class foo {}"
16920 # Code to be used in simple link tests
16921 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16923 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16925 # If no C compiler was specified, use CC.
16926 LTCC=${LTCC-"$CC"}
16928 # If no C compiler flags were specified, use CFLAGS.
16929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16931 # Allow CC to be a program name with arguments.
16932 compiler=$CC
16935 # save warnings/boilerplate of simple test code
16936 ac_outfile=conftest.$ac_objext
16937 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16939 _lt_compiler_boilerplate=`cat conftest.err`
16940 $rm conftest*
16942 ac_outfile=conftest.$ac_objext
16943 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16945 _lt_linker_boilerplate=`cat conftest.err`
16946 $rm -r conftest*
16949 # Allow CC to be a program name with arguments.
16950 lt_save_CC="$CC"
16951 CC=${GCJ-"gcj"}
16952 compiler=$CC
16953 compiler_GCJ=$CC
16954 for cc_temp in $compiler""; do
16955   case $cc_temp in
16956     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16957     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16958     \-*) ;;
16959     *) break;;
16960   esac
16961 done
16962 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16965 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16966 archive_cmds_need_lc_GCJ=no
16968 old_archive_cmds_GCJ=$old_archive_cmds
16971 lt_prog_compiler_no_builtin_flag_GCJ=
16973 if test "$GCC" = yes; then
16974   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16977 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16978 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16979 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16980   echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982   lt_cv_prog_compiler_rtti_exceptions=no
16983   ac_outfile=conftest.$ac_objext
16984    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16985    lt_compiler_flag="-fno-rtti -fno-exceptions"
16986    # Insert the option either (1) after the last *FLAGS variable, or
16987    # (2) before a word containing "conftest.", or (3) at the end.
16988    # Note that $ac_compile itself does not contain backslashes and begins
16989    # with a dollar sign (not a hyphen), so the echo should work correctly.
16990    # The option is referenced via a variable to avoid confusing sed.
16991    lt_compile=`echo "$ac_compile" | $SED \
16992    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16994    -e 's:$: $lt_compiler_flag:'`
16995    (eval echo "\"\$as_me:16995: $lt_compile\"" >&5)
16996    (eval "$lt_compile" 2>conftest.err)
16997    ac_status=$?
16998    cat conftest.err >&5
16999    echo "$as_me:16999: \$? = $ac_status" >&5
17000    if (exit $ac_status) && test -s "$ac_outfile"; then
17001      # The compiler can only warn and ignore the option if not recognized
17002      # So say no if there are warnings other than the usual output.
17003      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17004      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17005      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17006        lt_cv_prog_compiler_rtti_exceptions=yes
17007      fi
17008    fi
17009    $rm conftest*
17012 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17013 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17015 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17016     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17017 else
17018     :
17023 lt_prog_compiler_wl_GCJ=
17024 lt_prog_compiler_pic_GCJ=
17025 lt_prog_compiler_static_GCJ=
17027 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17028 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17030   if test "$GCC" = yes; then
17031     lt_prog_compiler_wl_GCJ='-Wl,'
17032     lt_prog_compiler_static_GCJ='-static'
17034     case $host_os in
17035       aix*)
17036       # All AIX code is PIC.
17037       if test "$host_cpu" = ia64; then
17038         # AIX 5 now supports IA64 processor
17039         lt_prog_compiler_static_GCJ='-Bstatic'
17040       fi
17041       ;;
17043     amigaos*)
17044       # FIXME: we need at least 68020 code to build shared libraries, but
17045       # adding the `-m68020' flag to GCC prevents building anything better,
17046       # like `-m68040'.
17047       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17048       ;;
17050     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17051       # PIC is the default for these OSes.
17052       ;;
17054     mingw* | cygwin* | pw32* | os2*)
17055       # This hack is so that the source file can tell whether it is being
17056       # built for inclusion in a dll (and should export symbols for example).
17057       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17058       # (--disable-auto-import) libraries
17060       ;;
17062     darwin* | rhapsody*)
17063       # PIC is the default on this platform
17064       # Common symbols not allowed in MH_DYLIB files
17065       lt_prog_compiler_pic_GCJ='-fno-common'
17066       ;;
17068     interix[3-9]*)
17069       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17070       # Instead, we relocate shared libraries at runtime.
17071       ;;
17073     msdosdjgpp*)
17074       # Just because we use GCC doesn't mean we suddenly get shared libraries
17075       # on systems that don't support them.
17076       lt_prog_compiler_can_build_shared_GCJ=no
17077       enable_shared=no
17078       ;;
17080     sysv4*MP*)
17081       if test -d /usr/nec; then
17082         lt_prog_compiler_pic_GCJ=-Kconform_pic
17083       fi
17084       ;;
17086     hpux*)
17087       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17088       # not for PA HP-UX.
17089       case $host_cpu in
17090       hppa*64*|ia64*)
17091         # +Z the default
17092         ;;
17093       *)
17094         lt_prog_compiler_pic_GCJ='-fPIC'
17095         ;;
17096       esac
17097       ;;
17099     *)
17100       lt_prog_compiler_pic_GCJ='-fPIC'
17101       ;;
17102     esac
17103   else
17104     # PORTME Check for flag to pass linker flags through the system compiler.
17105     case $host_os in
17106     aix*)
17107       lt_prog_compiler_wl_GCJ='-Wl,'
17108       if test "$host_cpu" = ia64; then
17109         # AIX 5 now supports IA64 processor
17110         lt_prog_compiler_static_GCJ='-Bstatic'
17111       else
17112         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17113       fi
17114       ;;
17115       darwin*)
17116         # PIC is the default on this platform
17117         # Common symbols not allowed in MH_DYLIB files
17118        case $cc_basename in
17119          xlc*)
17120          lt_prog_compiler_pic_GCJ='-qnocommon'
17121          lt_prog_compiler_wl_GCJ='-Wl,'
17122          ;;
17123        esac
17124        ;;
17126     mingw* | cygwin* | pw32* | os2*)
17127       # This hack is so that the source file can tell whether it is being
17128       # built for inclusion in a dll (and should export symbols for example).
17130       ;;
17132     hpux9* | hpux10* | hpux11*)
17133       lt_prog_compiler_wl_GCJ='-Wl,'
17134       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17135       # not for PA HP-UX.
17136       case $host_cpu in
17137       hppa*64*|ia64*)
17138         # +Z the default
17139         ;;
17140       *)
17141         lt_prog_compiler_pic_GCJ='+Z'
17142         ;;
17143       esac
17144       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17145       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17146       ;;
17148     irix5* | irix6* | nonstopux*)
17149       lt_prog_compiler_wl_GCJ='-Wl,'
17150       # PIC (with -KPIC) is the default.
17151       lt_prog_compiler_static_GCJ='-non_shared'
17152       ;;
17154     newsos6)
17155       lt_prog_compiler_pic_GCJ='-KPIC'
17156       lt_prog_compiler_static_GCJ='-Bstatic'
17157       ;;
17159     linux* | k*bsd*-gnu)
17160       case $cc_basename in
17161       icc* | ecc*)
17162         lt_prog_compiler_wl_GCJ='-Wl,'
17163         lt_prog_compiler_pic_GCJ='-KPIC'
17164         lt_prog_compiler_static_GCJ='-static'
17165         ;;
17166       pgcc* | pgf77* | pgf90* | pgf95*)
17167         # Portland Group compilers (*not* the Pentium gcc compiler,
17168         # which looks to be a dead project)
17169         lt_prog_compiler_wl_GCJ='-Wl,'
17170         lt_prog_compiler_pic_GCJ='-fpic'
17171         lt_prog_compiler_static_GCJ='-Bstatic'
17172         ;;
17173       ccc*)
17174         lt_prog_compiler_wl_GCJ='-Wl,'
17175         # All Alpha code is PIC.
17176         lt_prog_compiler_static_GCJ='-non_shared'
17177         ;;
17178       *)
17179         case `$CC -V 2>&1 | sed 5q` in
17180         *Sun\ C*)
17181           # Sun C 5.9
17182           lt_prog_compiler_pic_GCJ='-KPIC'
17183           lt_prog_compiler_static_GCJ='-Bstatic'
17184           lt_prog_compiler_wl_GCJ='-Wl,'
17185           ;;
17186         *Sun\ F*)
17187           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17188           lt_prog_compiler_pic_GCJ='-KPIC'
17189           lt_prog_compiler_static_GCJ='-Bstatic'
17190           lt_prog_compiler_wl_GCJ=''
17191           ;;
17192         esac
17193         ;;
17194       esac
17195       ;;
17197     osf3* | osf4* | osf5*)
17198       lt_prog_compiler_wl_GCJ='-Wl,'
17199       # All OSF/1 code is PIC.
17200       lt_prog_compiler_static_GCJ='-non_shared'
17201       ;;
17203     rdos*)
17204       lt_prog_compiler_static_GCJ='-non_shared'
17205       ;;
17207     solaris*)
17208       lt_prog_compiler_pic_GCJ='-KPIC'
17209       lt_prog_compiler_static_GCJ='-Bstatic'
17210       case $cc_basename in
17211       f77* | f90* | f95*)
17212         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17213       *)
17214         lt_prog_compiler_wl_GCJ='-Wl,';;
17215       esac
17216       ;;
17218     sunos4*)
17219       lt_prog_compiler_wl_GCJ='-Qoption ld '
17220       lt_prog_compiler_pic_GCJ='-PIC'
17221       lt_prog_compiler_static_GCJ='-Bstatic'
17222       ;;
17224     sysv4 | sysv4.2uw2* | sysv4.3*)
17225       lt_prog_compiler_wl_GCJ='-Wl,'
17226       lt_prog_compiler_pic_GCJ='-KPIC'
17227       lt_prog_compiler_static_GCJ='-Bstatic'
17228       ;;
17230     sysv4*MP*)
17231       if test -d /usr/nec ;then
17232         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17233         lt_prog_compiler_static_GCJ='-Bstatic'
17234       fi
17235       ;;
17237     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17238       lt_prog_compiler_wl_GCJ='-Wl,'
17239       lt_prog_compiler_pic_GCJ='-KPIC'
17240       lt_prog_compiler_static_GCJ='-Bstatic'
17241       ;;
17243     unicos*)
17244       lt_prog_compiler_wl_GCJ='-Wl,'
17245       lt_prog_compiler_can_build_shared_GCJ=no
17246       ;;
17248     uts4*)
17249       lt_prog_compiler_pic_GCJ='-pic'
17250       lt_prog_compiler_static_GCJ='-Bstatic'
17251       ;;
17253     *)
17254       lt_prog_compiler_can_build_shared_GCJ=no
17255       ;;
17256     esac
17257   fi
17259 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17260 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17263 # Check to make sure the PIC flag actually works.
17265 if test -n "$lt_prog_compiler_pic_GCJ"; then
17267 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17268 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17269 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17270   echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272   lt_cv_prog_compiler_pic_works_GCJ=no
17273   ac_outfile=conftest.$ac_objext
17274    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17275    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17276    # Insert the option either (1) after the last *FLAGS variable, or
17277    # (2) before a word containing "conftest.", or (3) at the end.
17278    # Note that $ac_compile itself does not contain backslashes and begins
17279    # with a dollar sign (not a hyphen), so the echo should work correctly.
17280    # The option is referenced via a variable to avoid confusing sed.
17281    lt_compile=`echo "$ac_compile" | $SED \
17282    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17283    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17284    -e 's:$: $lt_compiler_flag:'`
17285    (eval echo "\"\$as_me:17285: $lt_compile\"" >&5)
17286    (eval "$lt_compile" 2>conftest.err)
17287    ac_status=$?
17288    cat conftest.err >&5
17289    echo "$as_me:17289: \$? = $ac_status" >&5
17290    if (exit $ac_status) && test -s "$ac_outfile"; then
17291      # The compiler can only warn and ignore the option if not recognized
17292      # So say no if there are warnings other than the usual output.
17293      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17294      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17295      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17296        lt_cv_prog_compiler_pic_works_GCJ=yes
17297      fi
17298    fi
17299    $rm conftest*
17302 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17303 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17305 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17306     case $lt_prog_compiler_pic_GCJ in
17307      "" | " "*) ;;
17308      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17309      esac
17310 else
17311     lt_prog_compiler_pic_GCJ=
17312      lt_prog_compiler_can_build_shared_GCJ=no
17316 case $host_os in
17317   # For platforms which do not support PIC, -DPIC is meaningless:
17318   *djgpp*)
17319     lt_prog_compiler_pic_GCJ=
17320     ;;
17321   *)
17322     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17323     ;;
17324 esac
17327 # Check to make sure the static flag actually works.
17329 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17330 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17331 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17332 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17333   echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335   lt_cv_prog_compiler_static_works_GCJ=no
17336    save_LDFLAGS="$LDFLAGS"
17337    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17338    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17339    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17340      # The linker can only warn and ignore the option if not recognized
17341      # So say no if there are warnings
17342      if test -s conftest.err; then
17343        # Append any errors to the config.log.
17344        cat conftest.err 1>&5
17345        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17346        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17347        if diff conftest.exp conftest.er2 >/dev/null; then
17348          lt_cv_prog_compiler_static_works_GCJ=yes
17349        fi
17350      else
17351        lt_cv_prog_compiler_static_works_GCJ=yes
17352      fi
17353    fi
17354    $rm -r conftest*
17355    LDFLAGS="$save_LDFLAGS"
17358 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17359 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17361 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17362     :
17363 else
17364     lt_prog_compiler_static_GCJ=
17368 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17369 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17370 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17371   echo $ECHO_N "(cached) $ECHO_C" >&6
17372 else
17373   lt_cv_prog_compiler_c_o_GCJ=no
17374    $rm -r conftest 2>/dev/null
17375    mkdir conftest
17376    cd conftest
17377    mkdir out
17378    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17380    lt_compiler_flag="-o out/conftest2.$ac_objext"
17381    # Insert the option either (1) after the last *FLAGS variable, or
17382    # (2) before a word containing "conftest.", or (3) at the end.
17383    # Note that $ac_compile itself does not contain backslashes and begins
17384    # with a dollar sign (not a hyphen), so the echo should work correctly.
17385    lt_compile=`echo "$ac_compile" | $SED \
17386    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17387    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17388    -e 's:$: $lt_compiler_flag:'`
17389    (eval echo "\"\$as_me:17389: $lt_compile\"" >&5)
17390    (eval "$lt_compile" 2>out/conftest.err)
17391    ac_status=$?
17392    cat out/conftest.err >&5
17393    echo "$as_me:17393: \$? = $ac_status" >&5
17394    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17395    then
17396      # The compiler can only warn and ignore the option if not recognized
17397      # So say no if there are warnings
17398      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17399      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17400      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17401        lt_cv_prog_compiler_c_o_GCJ=yes
17402      fi
17403    fi
17404    chmod u+w . 2>&5
17405    $rm conftest*
17406    # SGI C++ compiler will create directory out/ii_files/ for
17407    # template instantiation
17408    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17409    $rm out/* && rmdir out
17410    cd ..
17411    rmdir conftest
17412    $rm conftest*
17415 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17416 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17419 hard_links="nottested"
17420 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17421   # do not overwrite the value of need_locks provided by the user
17422   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17423 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17424   hard_links=yes
17425   $rm conftest*
17426   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17427   touch conftest.a
17428   ln conftest.a conftest.b 2>&5 || hard_links=no
17429   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17430   { echo "$as_me:$LINENO: result: $hard_links" >&5
17431 echo "${ECHO_T}$hard_links" >&6; }
17432   if test "$hard_links" = no; then
17433     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17434 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17435     need_locks=warn
17436   fi
17437 else
17438   need_locks=no
17441 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17442 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17444   runpath_var=
17445   allow_undefined_flag_GCJ=
17446   enable_shared_with_static_runtimes_GCJ=no
17447   archive_cmds_GCJ=
17448   archive_expsym_cmds_GCJ=
17449   old_archive_From_new_cmds_GCJ=
17450   old_archive_from_expsyms_cmds_GCJ=
17451   export_dynamic_flag_spec_GCJ=
17452   whole_archive_flag_spec_GCJ=
17453   thread_safe_flag_spec_GCJ=
17454   hardcode_libdir_flag_spec_GCJ=
17455   hardcode_libdir_flag_spec_ld_GCJ=
17456   hardcode_libdir_separator_GCJ=
17457   hardcode_direct_GCJ=no
17458   hardcode_minus_L_GCJ=no
17459   hardcode_shlibpath_var_GCJ=unsupported
17460   link_all_deplibs_GCJ=unknown
17461   hardcode_automatic_GCJ=no
17462   module_cmds_GCJ=
17463   module_expsym_cmds_GCJ=
17464   always_export_symbols_GCJ=no
17465   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17466   # include_expsyms should be a list of space-separated symbols to be *always*
17467   # included in the symbol list
17468   include_expsyms_GCJ=
17469   # exclude_expsyms can be an extended regexp of symbols to exclude
17470   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17471   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17472   # as well as any symbol that contains `d'.
17473   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17474   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17475   # platforms (ab)use it in PIC code, but their linkers get confused if
17476   # the symbol is explicitly referenced.  Since portable code cannot
17477   # rely on this symbol name, it's probably fine to never include it in
17478   # preloaded symbol tables.
17479   # Exclude shared library initialization/finalization symbols.
17480   extract_expsyms_cmds=
17481   # Just being paranoid about ensuring that cc_basename is set.
17482   for cc_temp in $compiler""; do
17483   case $cc_temp in
17484     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17485     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17486     \-*) ;;
17487     *) break;;
17488   esac
17489 done
17490 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17492   case $host_os in
17493   cygwin* | mingw* | pw32*)
17494     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17495     # When not using gcc, we currently assume that we are using
17496     # Microsoft Visual C++.
17497     if test "$GCC" != yes; then
17498       with_gnu_ld=no
17499     fi
17500     ;;
17501   interix*)
17502     # we just hope/assume this is gcc and not c89 (= MSVC++)
17503     with_gnu_ld=yes
17504     ;;
17505   openbsd*)
17506     with_gnu_ld=no
17507     ;;
17508   esac
17510   ld_shlibs_GCJ=yes
17511   if test "$with_gnu_ld" = yes; then
17512     # If archive_cmds runs LD, not CC, wlarc should be empty
17513     wlarc='${wl}'
17515     # Set some defaults for GNU ld with shared library support. These
17516     # are reset later if shared libraries are not supported. Putting them
17517     # here allows them to be overridden if necessary.
17518     runpath_var=LD_RUN_PATH
17519     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17520     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17521     # ancient GNU ld didn't support --whole-archive et. al.
17522     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17523         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17524       else
17525         whole_archive_flag_spec_GCJ=
17526     fi
17527     supports_anon_versioning=no
17528     case `$LD -v 2>/dev/null` in
17529       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17530       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17531       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17532       *\ 2.11.*) ;; # other 2.11 versions
17533       *) supports_anon_versioning=yes ;;
17534     esac
17536     # See if GNU ld supports shared libraries.
17537     case $host_os in
17538     aix[3-9]*)
17539       # On AIX/PPC, the GNU linker is very broken
17540       if test "$host_cpu" != ia64; then
17541         ld_shlibs_GCJ=no
17542         cat <<EOF 1>&2
17544 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17545 *** to be unable to reliably create shared libraries on AIX.
17546 *** Therefore, libtool is disabling shared libraries support.  If you
17547 *** really care for shared libraries, you may want to modify your PATH
17548 *** so that a non-GNU linker is found, and then restart.
17550 EOF
17551       fi
17552       ;;
17554     amigaos*)
17555       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)'
17556       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17557       hardcode_minus_L_GCJ=yes
17559       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17560       # that the semantics of dynamic libraries on AmigaOS, at least up
17561       # to version 4, is to share data among multiple programs linked
17562       # with the same dynamic library.  Since this doesn't match the
17563       # behavior of shared libraries on other platforms, we can't use
17564       # them.
17565       ld_shlibs_GCJ=no
17566       ;;
17568     beos*)
17569       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17570         allow_undefined_flag_GCJ=unsupported
17571         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17572         # support --undefined.  This deserves some investigation.  FIXME
17573         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17574       else
17575         ld_shlibs_GCJ=no
17576       fi
17577       ;;
17579     cygwin* | mingw* | pw32*)
17580       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17581       # as there is no search path for DLLs.
17582       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17583       allow_undefined_flag_GCJ=unsupported
17584       always_export_symbols_GCJ=no
17585       enable_shared_with_static_runtimes_GCJ=yes
17586       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17588       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17589         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17590         # If the export-symbols file already is a .def file (1st line
17591         # is EXPORTS), use it as is; otherwise, prepend...
17592         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17593           cp $export_symbols $output_objdir/$soname.def;
17594         else
17595           echo EXPORTS > $output_objdir/$soname.def;
17596           cat $export_symbols >> $output_objdir/$soname.def;
17597         fi~
17598         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17599       else
17600         ld_shlibs_GCJ=no
17601       fi
17602       ;;
17604     interix[3-9]*)
17605       hardcode_direct_GCJ=no
17606       hardcode_shlibpath_var_GCJ=no
17607       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17608       export_dynamic_flag_spec_GCJ='${wl}-E'
17609       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17610       # Instead, shared libraries are loaded at an image base (0x10000000 by
17611       # default) and relocated if they conflict, which is a slow very memory
17612       # consuming and fragmenting process.  To avoid this, we pick a random,
17613       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17614       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17615       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'
17616       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'
17617       ;;
17619     gnu* | linux* | k*bsd*-gnu)
17620       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17621         tmp_addflag=
17622         case $cc_basename,$host_cpu in
17623         pgcc*)                          # Portland Group C compiler
17624           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'
17625           tmp_addflag=' $pic_flag'
17626           ;;
17627         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
17630         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17631           tmp_addflag=' -i_dynamic' ;;
17632         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17633           tmp_addflag=' -i_dynamic -nofor_main' ;;
17634         ifc* | ifort*)                  # Intel Fortran compiler
17635           tmp_addflag=' -nofor_main' ;;
17636         esac
17637         case `$CC -V 2>&1 | sed 5q` in
17638         *Sun\ C*)                       # Sun C 5.9
17639           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'
17640           tmp_sharedflag='-G' ;;
17641         *Sun\ F*)                       # Sun Fortran 8.3
17642           tmp_sharedflag='-G' ;;
17643         *)
17644           tmp_sharedflag='-shared' ;;
17645         esac
17646         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17648         if test $supports_anon_versioning = yes; then
17649           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17650   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17651   $echo "local: *; };" >> $output_objdir/$libname.ver~
17652           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17653         fi
17654         link_all_deplibs_GCJ=no
17655       else
17656         ld_shlibs_GCJ=no
17657       fi
17658       ;;
17660     netbsd* | netbsdelf*-gnu)
17661       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17662         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17663         wlarc=
17664       else
17665         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17666         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17667       fi
17668       ;;
17670     solaris*)
17671       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17672         ld_shlibs_GCJ=no
17673         cat <<EOF 1>&2
17675 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17676 *** create shared libraries on Solaris systems.  Therefore, libtool
17677 *** is disabling shared libraries support.  We urge you to upgrade GNU
17678 *** binutils to release 2.9.1 or newer.  Another option is to modify
17679 *** your PATH or compiler configuration so that the native linker is
17680 *** used, and then restart.
17682 EOF
17683       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17684         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17685         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17686       else
17687         ld_shlibs_GCJ=no
17688       fi
17689       ;;
17691     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17692       case `$LD -v 2>&1` in
17693         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17694         ld_shlibs_GCJ=no
17695         cat <<_LT_EOF 1>&2
17697 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17698 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17699 *** is disabling shared libraries support.  We urge you to upgrade GNU
17700 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17701 *** your PATH or compiler configuration so that the native linker is
17702 *** used, and then restart.
17704 _LT_EOF
17705         ;;
17706         *)
17707           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17708             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17709             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17710             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17711           else
17712             ld_shlibs_GCJ=no
17713           fi
17714         ;;
17715       esac
17716       ;;
17718     sunos4*)
17719       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17720       wlarc=
17721       hardcode_direct_GCJ=yes
17722       hardcode_shlibpath_var_GCJ=no
17723       ;;
17725     *)
17726       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17727         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17728         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17729       else
17730         ld_shlibs_GCJ=no
17731       fi
17732       ;;
17733     esac
17735     if test "$ld_shlibs_GCJ" = no; then
17736       runpath_var=
17737       hardcode_libdir_flag_spec_GCJ=
17738       export_dynamic_flag_spec_GCJ=
17739       whole_archive_flag_spec_GCJ=
17740     fi
17741   else
17742     # PORTME fill in a description of your system's linker (not GNU ld)
17743     case $host_os in
17744     aix3*)
17745       allow_undefined_flag_GCJ=unsupported
17746       always_export_symbols_GCJ=yes
17747       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'
17748       # Note: this linker hardcodes the directories in LIBPATH if there
17749       # are no directories specified by -L.
17750       hardcode_minus_L_GCJ=yes
17751       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17752         # Neither direct hardcoding nor static linking is supported with a
17753         # broken collect2.
17754         hardcode_direct_GCJ=unsupported
17755       fi
17756       ;;
17758     aix[4-9]*)
17759       if test "$host_cpu" = ia64; then
17760         # On IA64, the linker does run time linking by default, so we don't
17761         # have to do anything special.
17762         aix_use_runtimelinking=no
17763         exp_sym_flag='-Bexport'
17764         no_entry_flag=""
17765       else
17766         # If we're using GNU nm, then we don't want the "-C" option.
17767         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17768         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17769           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'
17770         else
17771           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'
17772         fi
17773         aix_use_runtimelinking=no
17775         # Test if we are trying to use run time linking or normal
17776         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17777         # need to do runtime linking.
17778         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17779           for ld_flag in $LDFLAGS; do
17780           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17781             aix_use_runtimelinking=yes
17782             break
17783           fi
17784           done
17785           ;;
17786         esac
17788         exp_sym_flag='-bexport'
17789         no_entry_flag='-bnoentry'
17790       fi
17792       # When large executables or shared objects are built, AIX ld can
17793       # have problems creating the table of contents.  If linking a library
17794       # or program results in "error TOC overflow" add -mminimal-toc to
17795       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17796       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17798       archive_cmds_GCJ=''
17799       hardcode_direct_GCJ=yes
17800       hardcode_libdir_separator_GCJ=':'
17801       link_all_deplibs_GCJ=yes
17803       if test "$GCC" = yes; then
17804         case $host_os in aix4.[012]|aix4.[012].*)
17805         # We only want to do this on AIX 4.2 and lower, the check
17806         # below for broken collect2 doesn't work under 4.3+
17807           collect2name=`${CC} -print-prog-name=collect2`
17808           if test -f "$collect2name" && \
17809            strings "$collect2name" | grep resolve_lib_name >/dev/null
17810           then
17811           # We have reworked collect2
17812           :
17813           else
17814           # We have old collect2
17815           hardcode_direct_GCJ=unsupported
17816           # It fails to find uninstalled libraries when the uninstalled
17817           # path is not listed in the libpath.  Setting hardcode_minus_L
17818           # to unsupported forces relinking
17819           hardcode_minus_L_GCJ=yes
17820           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17821           hardcode_libdir_separator_GCJ=
17822           fi
17823           ;;
17824         esac
17825         shared_flag='-shared'
17826         if test "$aix_use_runtimelinking" = yes; then
17827           shared_flag="$shared_flag "'${wl}-G'
17828         fi
17829       else
17830         # not using gcc
17831         if test "$host_cpu" = ia64; then
17832         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17833         # chokes on -Wl,-G. The following line is correct:
17834           shared_flag='-G'
17835         else
17836           if test "$aix_use_runtimelinking" = yes; then
17837             shared_flag='${wl}-G'
17838           else
17839             shared_flag='${wl}-bM:SRE'
17840           fi
17841         fi
17842       fi
17844       # It seems that -bexpall does not export symbols beginning with
17845       # underscore (_), so it is better to generate a list of symbols to export.
17846       always_export_symbols_GCJ=yes
17847       if test "$aix_use_runtimelinking" = yes; then
17848         # Warning - without using the other runtime loading flags (-brtl),
17849         # -berok will link without error, but may produce a broken library.
17850         allow_undefined_flag_GCJ='-berok'
17851        # Determine the default libpath from the value encoded in an empty executable.
17852        cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h.  */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h.  */
17859 int
17860 main ()
17863   ;
17864   return 0;
17866 _ACEOF
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (ac_try="$ac_link"
17869 case "(($ac_try" in
17870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871   *) ac_try_echo=$ac_try;;
17872 esac
17873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17874   (eval "$ac_link") 2>conftest.er1
17875   ac_status=$?
17876   grep -v '^ *+' conftest.er1 >conftest.err
17877   rm -f conftest.er1
17878   cat conftest.err >&5
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); } && {
17881          test -z "$ac_c_werror_flag" ||
17882          test ! -s conftest.err
17883        } && test -s conftest$ac_exeext &&
17884        $as_test_x conftest$ac_exeext; then
17886 lt_aix_libpath_sed='
17887     /Import File Strings/,/^$/ {
17888         /^0/ {
17889             s/^0  *\(.*\)$/\1/
17890             p
17891         }
17892     }'
17893 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17894 # Check for a 64-bit object if we didn't find anything.
17895 if test -z "$aix_libpath"; then
17896   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17898 else
17899   echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17906       conftest$ac_exeext conftest.$ac_ext
17907 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17909        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17910         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"
17911        else
17912         if test "$host_cpu" = ia64; then
17913           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17914           allow_undefined_flag_GCJ="-z nodefs"
17915           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"
17916         else
17917          # Determine the default libpath from the value encoded in an empty executable.
17918          cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h.  */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h.  */
17925 int
17926 main ()
17929   ;
17930   return 0;
17932 _ACEOF
17933 rm -f conftest.$ac_objext conftest$ac_exeext
17934 if { (ac_try="$ac_link"
17935 case "(($ac_try" in
17936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17937   *) ac_try_echo=$ac_try;;
17938 esac
17939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17940   (eval "$ac_link") 2>conftest.er1
17941   ac_status=$?
17942   grep -v '^ *+' conftest.er1 >conftest.err
17943   rm -f conftest.er1
17944   cat conftest.err >&5
17945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946   (exit $ac_status); } && {
17947          test -z "$ac_c_werror_flag" ||
17948          test ! -s conftest.err
17949        } && test -s conftest$ac_exeext &&
17950        $as_test_x conftest$ac_exeext; then
17952 lt_aix_libpath_sed='
17953     /Import File Strings/,/^$/ {
17954         /^0/ {
17955             s/^0  *\(.*\)$/\1/
17956             p
17957         }
17958     }'
17959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17960 # Check for a 64-bit object if we didn't find anything.
17961 if test -z "$aix_libpath"; then
17962   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17964 else
17965   echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17972       conftest$ac_exeext conftest.$ac_ext
17973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17975          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17976           # Warning - without using the other run time loading flags,
17977           # -berok will link without error, but may produce a broken library.
17978           no_undefined_flag_GCJ=' ${wl}-bernotok'
17979           allow_undefined_flag_GCJ=' ${wl}-berok'
17980           # Exported symbols can be pulled into shared objects from archives
17981           whole_archive_flag_spec_GCJ='$convenience'
17982           archive_cmds_need_lc_GCJ=yes
17983           # This is similar to how AIX traditionally builds its shared libraries.
17984           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'
17985         fi
17986       fi
17987       ;;
17989     amigaos*)
17990       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)'
17991       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17992       hardcode_minus_L_GCJ=yes
17993       # see comment about different semantics on the GNU ld section
17994       ld_shlibs_GCJ=no
17995       ;;
17997     bsdi[45]*)
17998       export_dynamic_flag_spec_GCJ=-rdynamic
17999       ;;
18001     cygwin* | mingw* | pw32*)
18002       # When not using gcc, we currently assume that we are using
18003       # Microsoft Visual C++.
18004       # hardcode_libdir_flag_spec is actually meaningless, as there is
18005       # no search path for DLLs.
18006       hardcode_libdir_flag_spec_GCJ=' '
18007       allow_undefined_flag_GCJ=unsupported
18008       # Tell ltmain to make .lib files, not .a files.
18009       libext=lib
18010       # Tell ltmain to make .dll files, not .so files.
18011       shrext_cmds=".dll"
18012       # FIXME: Setting linknames here is a bad hack.
18013       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18014       # The linker will automatically build a .lib file if we build a DLL.
18015       old_archive_From_new_cmds_GCJ='true'
18016       # FIXME: Should let the user specify the lib program.
18017       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18018       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18019       enable_shared_with_static_runtimes_GCJ=yes
18020       ;;
18022     darwin* | rhapsody*)
18023       case $host_os in
18024         rhapsody* | darwin1.[012])
18025          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18026          ;;
18027        *) # Darwin 1.3 on
18028          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18029            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18030          else
18031            case ${MACOSX_DEPLOYMENT_TARGET} in
18032              10.[012])
18033                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18034                ;;
18035              10.*)
18036                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18037                ;;
18038            esac
18039          fi
18040          ;;
18041       esac
18042       archive_cmds_need_lc_GCJ=no
18043       hardcode_direct_GCJ=no
18044       hardcode_automatic_GCJ=yes
18045       hardcode_shlibpath_var_GCJ=unsupported
18046       whole_archive_flag_spec_GCJ=''
18047       link_all_deplibs_GCJ=yes
18048     if test "$GCC" = yes ; then
18049         output_verbose_link_cmd='echo'
18050         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}"
18051         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18052         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}"
18053         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}"
18054     else
18055       case $cc_basename in
18056         xlc*)
18057          output_verbose_link_cmd='echo'
18058          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18059          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18060           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18061          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}'
18062           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}'
18063           ;;
18064        *)
18065          ld_shlibs_GCJ=no
18066           ;;
18067       esac
18068     fi
18069       ;;
18071     dgux*)
18072       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18073       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18074       hardcode_shlibpath_var_GCJ=no
18075       ;;
18077     freebsd1*)
18078       ld_shlibs_GCJ=no
18079       ;;
18081     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18082     # support.  Future versions do this automatically, but an explicit c++rt0.o
18083     # does not break anything, and helps significantly (at the cost of a little
18084     # extra space).
18085     freebsd2.2*)
18086       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18087       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18088       hardcode_direct_GCJ=yes
18089       hardcode_shlibpath_var_GCJ=no
18090       ;;
18092     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18093     freebsd2*)
18094       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18095       hardcode_direct_GCJ=yes
18096       hardcode_minus_L_GCJ=yes
18097       hardcode_shlibpath_var_GCJ=no
18098       ;;
18100     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18101     freebsd* | dragonfly*)
18102       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18103       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18104       hardcode_direct_GCJ=yes
18105       hardcode_shlibpath_var_GCJ=no
18106       ;;
18108     hpux9*)
18109       if test "$GCC" = yes; then
18110         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'
18111       else
18112         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'
18113       fi
18114       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18115       hardcode_libdir_separator_GCJ=:
18116       hardcode_direct_GCJ=yes
18118       # hardcode_minus_L: Not really in the search PATH,
18119       # but as the default location of the library.
18120       hardcode_minus_L_GCJ=yes
18121       export_dynamic_flag_spec_GCJ='${wl}-E'
18122       ;;
18124     hpux10*)
18125       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18126         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18127       else
18128         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18129       fi
18130       if test "$with_gnu_ld" = no; then
18131         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18132         hardcode_libdir_separator_GCJ=:
18134         hardcode_direct_GCJ=yes
18135         export_dynamic_flag_spec_GCJ='${wl}-E'
18137         # hardcode_minus_L: Not really in the search PATH,
18138         # but as the default location of the library.
18139         hardcode_minus_L_GCJ=yes
18140       fi
18141       ;;
18143     hpux11*)
18144       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18145         case $host_cpu in
18146         hppa*64*)
18147           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18148           ;;
18149         ia64*)
18150           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18151           ;;
18152         *)
18153           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18154           ;;
18155         esac
18156       else
18157         case $host_cpu in
18158         hppa*64*)
18159           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18160           ;;
18161         ia64*)
18162           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18163           ;;
18164         *)
18165           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18166           ;;
18167         esac
18168       fi
18169       if test "$with_gnu_ld" = no; then
18170         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18171         hardcode_libdir_separator_GCJ=:
18173         case $host_cpu in
18174         hppa*64*|ia64*)
18175           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18176           hardcode_direct_GCJ=no
18177           hardcode_shlibpath_var_GCJ=no
18178           ;;
18179         *)
18180           hardcode_direct_GCJ=yes
18181           export_dynamic_flag_spec_GCJ='${wl}-E'
18183           # hardcode_minus_L: Not really in the search PATH,
18184           # but as the default location of the library.
18185           hardcode_minus_L_GCJ=yes
18186           ;;
18187         esac
18188       fi
18189       ;;
18191     irix5* | irix6* | nonstopux*)
18192       if test "$GCC" = yes; then
18193         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'
18194       else
18195         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'
18196         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18197       fi
18198       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18199       hardcode_libdir_separator_GCJ=:
18200       link_all_deplibs_GCJ=yes
18201       ;;
18203     netbsd* | netbsdelf*-gnu)
18204       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18205         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18206       else
18207         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18208       fi
18209       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18210       hardcode_direct_GCJ=yes
18211       hardcode_shlibpath_var_GCJ=no
18212       ;;
18214     newsos6)
18215       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18216       hardcode_direct_GCJ=yes
18217       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18218       hardcode_libdir_separator_GCJ=:
18219       hardcode_shlibpath_var_GCJ=no
18220       ;;
18222     openbsd*)
18223       if test -f /usr/libexec/ld.so; then
18224         hardcode_direct_GCJ=yes
18225         hardcode_shlibpath_var_GCJ=no
18226         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18227           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18228           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18229           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18230           export_dynamic_flag_spec_GCJ='${wl}-E'
18231         else
18232           case $host_os in
18233            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18234              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18235              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18236              ;;
18237            *)
18238              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18239              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18240              ;;
18241           esac
18242         fi
18243       else
18244         ld_shlibs_GCJ=no
18245       fi
18246       ;;
18248     os2*)
18249       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18250       hardcode_minus_L_GCJ=yes
18251       allow_undefined_flag_GCJ=unsupported
18252       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'
18253       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18254       ;;
18256     osf3*)
18257       if test "$GCC" = yes; then
18258         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18259         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'
18260       else
18261         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18262         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'
18263       fi
18264       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18265       hardcode_libdir_separator_GCJ=:
18266       ;;
18268     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18269       if test "$GCC" = yes; then
18270         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18271         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'
18272         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18273       else
18274         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18275         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'
18276         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~
18277         $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'
18279         # Both c and cxx compiler support -rpath directly
18280         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18281       fi
18282       hardcode_libdir_separator_GCJ=:
18283       ;;
18285     solaris*)
18286       no_undefined_flag_GCJ=' -z text'
18287       if test "$GCC" = yes; then
18288         wlarc='${wl}'
18289         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18290         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18291           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18292       else
18293         wlarc=''
18294         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18295         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18296         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18297       fi
18298       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18299       hardcode_shlibpath_var_GCJ=no
18300       case $host_os in
18301       solaris2.[0-5] | solaris2.[0-5].*) ;;
18302       *)
18303         # The compiler driver will combine and reorder linker options,
18304         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18305         # but is careful enough not to reorder.
18306         # Supported since Solaris 2.6 (maybe 2.5.1?)
18307         if test "$GCC" = yes; then
18308           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18309         else
18310           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18311         fi
18312         ;;
18313       esac
18314       link_all_deplibs_GCJ=yes
18315       ;;
18317     sunos4*)
18318       if test "x$host_vendor" = xsequent; then
18319         # Use $CC to link under sequent, because it throws in some extra .o
18320         # files that make .init and .fini sections work.
18321         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18322       else
18323         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18324       fi
18325       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18326       hardcode_direct_GCJ=yes
18327       hardcode_minus_L_GCJ=yes
18328       hardcode_shlibpath_var_GCJ=no
18329       ;;
18331     sysv4)
18332       case $host_vendor in
18333         sni)
18334           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18335           hardcode_direct_GCJ=yes # is this really true???
18336         ;;
18337         siemens)
18338           ## LD is ld it makes a PLAMLIB
18339           ## CC just makes a GrossModule.
18340           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18341           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18342           hardcode_direct_GCJ=no
18343         ;;
18344         motorola)
18345           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18347         ;;
18348       esac
18349       runpath_var='LD_RUN_PATH'
18350       hardcode_shlibpath_var_GCJ=no
18351       ;;
18353     sysv4.3*)
18354       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18355       hardcode_shlibpath_var_GCJ=no
18356       export_dynamic_flag_spec_GCJ='-Bexport'
18357       ;;
18359     sysv4*MP*)
18360       if test -d /usr/nec; then
18361         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18362         hardcode_shlibpath_var_GCJ=no
18363         runpath_var=LD_RUN_PATH
18364         hardcode_runpath_var=yes
18365         ld_shlibs_GCJ=yes
18366       fi
18367       ;;
18369     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18370       no_undefined_flag_GCJ='${wl}-z,text'
18371       archive_cmds_need_lc_GCJ=no
18372       hardcode_shlibpath_var_GCJ=no
18373       runpath_var='LD_RUN_PATH'
18375       if test "$GCC" = yes; then
18376         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18377         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18378       else
18379         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18380         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18381       fi
18382       ;;
18384     sysv5* | sco3.2v5* | sco5v6*)
18385       # Note: We can NOT use -z defs as we might desire, because we do not
18386       # link with -lc, and that would cause any symbols used from libc to
18387       # always be unresolved, which means just about no library would
18388       # ever link correctly.  If we're not using GNU ld we use -z text
18389       # though, which does catch some bad symbols but isn't as heavy-handed
18390       # as -z defs.
18391       no_undefined_flag_GCJ='${wl}-z,text'
18392       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18393       archive_cmds_need_lc_GCJ=no
18394       hardcode_shlibpath_var_GCJ=no
18395       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18396       hardcode_libdir_separator_GCJ=':'
18397       link_all_deplibs_GCJ=yes
18398       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18399       runpath_var='LD_RUN_PATH'
18401       if test "$GCC" = yes; then
18402         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18403         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18404       else
18405         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18406         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18407       fi
18408       ;;
18410     uts4*)
18411       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18412       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18413       hardcode_shlibpath_var_GCJ=no
18414       ;;
18416     *)
18417       ld_shlibs_GCJ=no
18418       ;;
18419     esac
18420   fi
18422 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18423 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18424 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18427 # Do we need to explicitly link libc?
18429 case "x$archive_cmds_need_lc_GCJ" in
18430 x|xyes)
18431   # Assume -lc should be added
18432   archive_cmds_need_lc_GCJ=yes
18434   if test "$enable_shared" = yes && test "$GCC" = yes; then
18435     case $archive_cmds_GCJ in
18436     *'~'*)
18437       # FIXME: we may have to deal with multi-command sequences.
18438       ;;
18439     '$CC '*)
18440       # Test whether the compiler implicitly links with -lc since on some
18441       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18442       # to ld, don't add -lc before -lgcc.
18443       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18444 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18445       $rm conftest*
18446       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18448       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18449   (eval $ac_compile) 2>&5
18450   ac_status=$?
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); } 2>conftest.err; then
18453         soname=conftest
18454         lib=conftest
18455         libobjs=conftest.$ac_objext
18456         deplibs=
18457         wl=$lt_prog_compiler_wl_GCJ
18458         pic_flag=$lt_prog_compiler_pic_GCJ
18459         compiler_flags=-v
18460         linker_flags=-v
18461         verstring=
18462         output_objdir=.
18463         libname=conftest
18464         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18465         allow_undefined_flag_GCJ=
18466         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18467   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18468   ac_status=$?
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); }
18471         then
18472           archive_cmds_need_lc_GCJ=no
18473         else
18474           archive_cmds_need_lc_GCJ=yes
18475         fi
18476         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18477       else
18478         cat conftest.err 1>&5
18479       fi
18480       $rm conftest*
18481       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18482 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18483       ;;
18484     esac
18485   fi
18486   ;;
18487 esac
18489 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18490 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18491 library_names_spec=
18492 libname_spec='lib$name'
18493 soname_spec=
18494 shrext_cmds=".so"
18495 postinstall_cmds=
18496 postuninstall_cmds=
18497 finish_cmds=
18498 finish_eval=
18499 shlibpath_var=
18500 shlibpath_overrides_runpath=unknown
18501 version_type=none
18502 dynamic_linker="$host_os ld.so"
18503 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18505 need_lib_prefix=unknown
18506 hardcode_into_libs=no
18508 # when you set need_version to no, make sure it does not cause -set_version
18509 # flags to be left without arguments
18510 need_version=unknown
18512 case $host_os in
18513 aix3*)
18514   version_type=linux
18515   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18516   shlibpath_var=LIBPATH
18518   # AIX 3 has no versioning support, so we append a major version to the name.
18519   soname_spec='${libname}${release}${shared_ext}$major'
18520   ;;
18522 aix[4-9]*)
18523   version_type=linux
18524   need_lib_prefix=no
18525   need_version=no
18526   hardcode_into_libs=yes
18527   if test "$host_cpu" = ia64; then
18528     # AIX 5 supports IA64
18529     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18530     shlibpath_var=LD_LIBRARY_PATH
18531   else
18532     # With GCC up to 2.95.x, collect2 would create an import file
18533     # for dependence libraries.  The import file would start with
18534     # the line `#! .'.  This would cause the generated library to
18535     # depend on `.', always an invalid library.  This was fixed in
18536     # development snapshots of GCC prior to 3.0.
18537     case $host_os in
18538       aix4 | aix4.[01] | aix4.[01].*)
18539       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18540            echo ' yes '
18541            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18542         :
18543       else
18544         can_build_shared=no
18545       fi
18546       ;;
18547     esac
18548     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18549     # soname into executable. Probably we can add versioning support to
18550     # collect2, so additional links can be useful in future.
18551     if test "$aix_use_runtimelinking" = yes; then
18552       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18553       # instead of lib<name>.a to let people know that these are not
18554       # typical AIX shared libraries.
18555       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18556     else
18557       # We preserve .a as extension for shared libraries through AIX4.2
18558       # and later when we are not doing run time linking.
18559       library_names_spec='${libname}${release}.a $libname.a'
18560       soname_spec='${libname}${release}${shared_ext}$major'
18561     fi
18562     shlibpath_var=LIBPATH
18563   fi
18564   ;;
18566 amigaos*)
18567   library_names_spec='$libname.ixlibrary $libname.a'
18568   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18569   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'
18570   ;;
18572 beos*)
18573   library_names_spec='${libname}${shared_ext}'
18574   dynamic_linker="$host_os ld.so"
18575   shlibpath_var=LIBRARY_PATH
18576   ;;
18578 bsdi[45]*)
18579   version_type=linux
18580   need_version=no
18581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582   soname_spec='${libname}${release}${shared_ext}$major'
18583   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18584   shlibpath_var=LD_LIBRARY_PATH
18585   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18586   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18587   # the default ld.so.conf also contains /usr/contrib/lib and
18588   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18589   # libtool to hard-code these into programs
18590   ;;
18592 cygwin* | mingw* | pw32*)
18593   version_type=windows
18594   shrext_cmds=".dll"
18595   need_version=no
18596   need_lib_prefix=no
18598   case $GCC,$host_os in
18599   yes,cygwin* | yes,mingw* | yes,pw32*)
18600     library_names_spec='$libname.dll.a'
18601     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18602     postinstall_cmds='base_file=`basename \${file}`~
18603       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18604       dldir=$destdir/`dirname \$dlpath`~
18605       test -d \$dldir || mkdir -p \$dldir~
18606       $install_prog $dir/$dlname \$dldir/$dlname~
18607       chmod a+x \$dldir/$dlname'
18608     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18609       dlpath=$dir/\$dldll~
18610        $rm \$dlpath'
18611     shlibpath_overrides_runpath=yes
18613     case $host_os in
18614     cygwin*)
18615       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18616       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18617       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18618       ;;
18619     mingw*)
18620       # MinGW DLLs use traditional 'lib' prefix
18621       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18622       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18623       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18624         # It is most probably a Windows format PATH printed by
18625         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18626         # path with ; separators, and with drive letters. We can handle the
18627         # drive letters (cygwin fileutils understands them), so leave them,
18628         # especially as we might pass files found there to a mingw objdump,
18629         # which wouldn't understand a cygwinified path. Ahh.
18630         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18631       else
18632         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18633       fi
18634       ;;
18635     pw32*)
18636       # pw32 DLLs use 'pw' prefix rather than 'lib'
18637       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18638       ;;
18639     esac
18640     ;;
18642   *)
18643     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18644     ;;
18645   esac
18646   dynamic_linker='Win32 ld.exe'
18647   # FIXME: first we should search . and the directory the executable is in
18648   shlibpath_var=PATH
18649   ;;
18651 darwin* | rhapsody*)
18652   dynamic_linker="$host_os dyld"
18653   version_type=darwin
18654   need_lib_prefix=no
18655   need_version=no
18656   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18657   soname_spec='${libname}${release}${major}$shared_ext'
18658   shlibpath_overrides_runpath=yes
18659   shlibpath_var=DYLD_LIBRARY_PATH
18660   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18662   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18663   ;;
18665 dgux*)
18666   version_type=linux
18667   need_lib_prefix=no
18668   need_version=no
18669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18670   soname_spec='${libname}${release}${shared_ext}$major'
18671   shlibpath_var=LD_LIBRARY_PATH
18672   ;;
18674 freebsd1*)
18675   dynamic_linker=no
18676   ;;
18678 freebsd* | dragonfly*)
18679   # DragonFly does not have aout.  When/if they implement a new
18680   # versioning mechanism, adjust this.
18681   if test -x /usr/bin/objformat; then
18682     objformat=`/usr/bin/objformat`
18683   else
18684     case $host_os in
18685     freebsd[123]*) objformat=aout ;;
18686     *) objformat=elf ;;
18687     esac
18688   fi
18689   version_type=freebsd-$objformat
18690   case $version_type in
18691     freebsd-elf*)
18692       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18693       need_version=no
18694       need_lib_prefix=no
18695       ;;
18696     freebsd-*)
18697       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18698       need_version=yes
18699       ;;
18700   esac
18701   shlibpath_var=LD_LIBRARY_PATH
18702   case $host_os in
18703   freebsd2*)
18704     shlibpath_overrides_runpath=yes
18705     ;;
18706   freebsd3.[01]* | freebsdelf3.[01]*)
18707     shlibpath_overrides_runpath=yes
18708     hardcode_into_libs=yes
18709     ;;
18710   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18711   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18712     shlibpath_overrides_runpath=no
18713     hardcode_into_libs=yes
18714     ;;
18715   *) # from 4.6 on, and DragonFly
18716     shlibpath_overrides_runpath=yes
18717     hardcode_into_libs=yes
18718     ;;
18719   esac
18720   ;;
18722 gnu*)
18723   version_type=linux
18724   need_lib_prefix=no
18725   need_version=no
18726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18727   soname_spec='${libname}${release}${shared_ext}$major'
18728   shlibpath_var=LD_LIBRARY_PATH
18729   hardcode_into_libs=yes
18730   ;;
18732 hpux9* | hpux10* | hpux11*)
18733   # Give a soname corresponding to the major version so that dld.sl refuses to
18734   # link against other versions.
18735   version_type=sunos
18736   need_lib_prefix=no
18737   need_version=no
18738   case $host_cpu in
18739   ia64*)
18740     shrext_cmds='.so'
18741     hardcode_into_libs=yes
18742     dynamic_linker="$host_os dld.so"
18743     shlibpath_var=LD_LIBRARY_PATH
18744     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18746     soname_spec='${libname}${release}${shared_ext}$major'
18747     if test "X$HPUX_IA64_MODE" = X32; then
18748       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18749     else
18750       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18751     fi
18752     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18753     ;;
18754    hppa*64*)
18755      shrext_cmds='.sl'
18756      hardcode_into_libs=yes
18757      dynamic_linker="$host_os dld.sl"
18758      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18759      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18760      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18761      soname_spec='${libname}${release}${shared_ext}$major'
18762      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18763      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18764      ;;
18765    *)
18766     shrext_cmds='.sl'
18767     dynamic_linker="$host_os dld.sl"
18768     shlibpath_var=SHLIB_PATH
18769     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18771     soname_spec='${libname}${release}${shared_ext}$major'
18772     ;;
18773   esac
18774   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18775   postinstall_cmds='chmod 555 $lib'
18776   ;;
18778 interix[3-9]*)
18779   version_type=linux
18780   need_lib_prefix=no
18781   need_version=no
18782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18783   soname_spec='${libname}${release}${shared_ext}$major'
18784   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18785   shlibpath_var=LD_LIBRARY_PATH
18786   shlibpath_overrides_runpath=no
18787   hardcode_into_libs=yes
18788   ;;
18790 irix5* | irix6* | nonstopux*)
18791   case $host_os in
18792     nonstopux*) version_type=nonstopux ;;
18793     *)
18794         if test "$lt_cv_prog_gnu_ld" = yes; then
18795                 version_type=linux
18796         else
18797                 version_type=irix
18798         fi ;;
18799   esac
18800   need_lib_prefix=no
18801   need_version=no
18802   soname_spec='${libname}${release}${shared_ext}$major'
18803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18804   case $host_os in
18805   irix5* | nonstopux*)
18806     libsuff= shlibsuff=
18807     ;;
18808   *)
18809     case $LD in # libtool.m4 will add one of these switches to LD
18810     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18811       libsuff= shlibsuff= libmagic=32-bit;;
18812     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18813       libsuff=32 shlibsuff=N32 libmagic=N32;;
18814     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18815       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18816     *) libsuff= shlibsuff= libmagic=never-match;;
18817     esac
18818     ;;
18819   esac
18820   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18821   shlibpath_overrides_runpath=no
18822   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18823   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18824   hardcode_into_libs=yes
18825   ;;
18827 # No shared lib support for Linux oldld, aout, or coff.
18828 linux*oldld* | linux*aout* | linux*coff*)
18829   dynamic_linker=no
18830   ;;
18832 # This must be Linux ELF.
18833 linux* | k*bsd*-gnu)
18834   version_type=linux
18835   need_lib_prefix=no
18836   need_version=no
18837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18838   soname_spec='${libname}${release}${shared_ext}$major'
18839   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18840   shlibpath_var=LD_LIBRARY_PATH
18841   shlibpath_overrides_runpath=no
18842   # This implies no fast_install, which is unacceptable.
18843   # Some rework will be needed to allow for fast_install
18844   # before this can be enabled.
18845   hardcode_into_libs=yes
18847   # Append ld.so.conf contents to the search path
18848   if test -f /etc/ld.so.conf; then
18849     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' ' '`
18850     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18851   fi
18853   # We used to test for /lib/ld.so.1 and disable shared libraries on
18854   # powerpc, because MkLinux only supported shared libraries with the
18855   # GNU dynamic linker.  Since this was broken with cross compilers,
18856   # most powerpc-linux boxes support dynamic linking these days and
18857   # people can always --disable-shared, the test was removed, and we
18858   # assume the GNU/Linux dynamic linker is in use.
18859   dynamic_linker='GNU/Linux ld.so'
18860   ;;
18862 netbsdelf*-gnu)
18863   version_type=linux
18864   need_lib_prefix=no
18865   need_version=no
18866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18867   soname_spec='${libname}${release}${shared_ext}$major'
18868   shlibpath_var=LD_LIBRARY_PATH
18869   shlibpath_overrides_runpath=no
18870   hardcode_into_libs=yes
18871   dynamic_linker='NetBSD ld.elf_so'
18872   ;;
18874 netbsd*)
18875   version_type=sunos
18876   need_lib_prefix=no
18877   need_version=no
18878   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18880     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18881     dynamic_linker='NetBSD (a.out) ld.so'
18882   else
18883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18884     soname_spec='${libname}${release}${shared_ext}$major'
18885     dynamic_linker='NetBSD ld.elf_so'
18886   fi
18887   shlibpath_var=LD_LIBRARY_PATH
18888   shlibpath_overrides_runpath=yes
18889   hardcode_into_libs=yes
18890   ;;
18892 newsos6)
18893   version_type=linux
18894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895   shlibpath_var=LD_LIBRARY_PATH
18896   shlibpath_overrides_runpath=yes
18897   ;;
18899 nto-qnx*)
18900   version_type=linux
18901   need_lib_prefix=no
18902   need_version=no
18903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18904   soname_spec='${libname}${release}${shared_ext}$major'
18905   shlibpath_var=LD_LIBRARY_PATH
18906   shlibpath_overrides_runpath=yes
18907   ;;
18909 openbsd*)
18910   version_type=sunos
18911   sys_lib_dlsearch_path_spec="/usr/lib"
18912   need_lib_prefix=no
18913   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18914   case $host_os in
18915     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18916     *)                         need_version=no  ;;
18917   esac
18918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18919   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18920   shlibpath_var=LD_LIBRARY_PATH
18921   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18922     case $host_os in
18923       openbsd2.[89] | openbsd2.[89].*)
18924         shlibpath_overrides_runpath=no
18925         ;;
18926       *)
18927         shlibpath_overrides_runpath=yes
18928         ;;
18929       esac
18930   else
18931     shlibpath_overrides_runpath=yes
18932   fi
18933   ;;
18935 os2*)
18936   libname_spec='$name'
18937   shrext_cmds=".dll"
18938   need_lib_prefix=no
18939   library_names_spec='$libname${shared_ext} $libname.a'
18940   dynamic_linker='OS/2 ld.exe'
18941   shlibpath_var=LIBPATH
18942   ;;
18944 osf3* | osf4* | osf5*)
18945   version_type=osf
18946   need_lib_prefix=no
18947   need_version=no
18948   soname_spec='${libname}${release}${shared_ext}$major'
18949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18950   shlibpath_var=LD_LIBRARY_PATH
18951   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18952   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18953   ;;
18955 rdos*)
18956   dynamic_linker=no
18957   ;;
18959 solaris*)
18960   version_type=linux
18961   need_lib_prefix=no
18962   need_version=no
18963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18964   soname_spec='${libname}${release}${shared_ext}$major'
18965   shlibpath_var=LD_LIBRARY_PATH
18966   shlibpath_overrides_runpath=yes
18967   hardcode_into_libs=yes
18968   # ldd complains unless libraries are executable
18969   postinstall_cmds='chmod +x $lib'
18970   ;;
18972 sunos4*)
18973   version_type=sunos
18974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18975   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18976   shlibpath_var=LD_LIBRARY_PATH
18977   shlibpath_overrides_runpath=yes
18978   if test "$with_gnu_ld" = yes; then
18979     need_lib_prefix=no
18980   fi
18981   need_version=yes
18982   ;;
18984 sysv4 | sysv4.3*)
18985   version_type=linux
18986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18987   soname_spec='${libname}${release}${shared_ext}$major'
18988   shlibpath_var=LD_LIBRARY_PATH
18989   case $host_vendor in
18990     sni)
18991       shlibpath_overrides_runpath=no
18992       need_lib_prefix=no
18993       export_dynamic_flag_spec='${wl}-Blargedynsym'
18994       runpath_var=LD_RUN_PATH
18995       ;;
18996     siemens)
18997       need_lib_prefix=no
18998       ;;
18999     motorola)
19000       need_lib_prefix=no
19001       need_version=no
19002       shlibpath_overrides_runpath=no
19003       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19004       ;;
19005   esac
19006   ;;
19008 sysv4*MP*)
19009   if test -d /usr/nec ;then
19010     version_type=linux
19011     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19012     soname_spec='$libname${shared_ext}.$major'
19013     shlibpath_var=LD_LIBRARY_PATH
19014   fi
19015   ;;
19017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19018   version_type=freebsd-elf
19019   need_lib_prefix=no
19020   need_version=no
19021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19022   soname_spec='${libname}${release}${shared_ext}$major'
19023   shlibpath_var=LD_LIBRARY_PATH
19024   hardcode_into_libs=yes
19025   if test "$with_gnu_ld" = yes; then
19026     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19027     shlibpath_overrides_runpath=no
19028   else
19029     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19030     shlibpath_overrides_runpath=yes
19031     case $host_os in
19032       sco3.2v5*)
19033         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19034         ;;
19035     esac
19036   fi
19037   sys_lib_dlsearch_path_spec='/usr/lib'
19038   ;;
19040 uts4*)
19041   version_type=linux
19042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19043   soname_spec='${libname}${release}${shared_ext}$major'
19044   shlibpath_var=LD_LIBRARY_PATH
19045   ;;
19048   dynamic_linker=no
19049   ;;
19050 esac
19051 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19052 echo "${ECHO_T}$dynamic_linker" >&6; }
19053 test "$dynamic_linker" = no && can_build_shared=no
19055 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19056   echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
19061 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19062 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19063   echo $ECHO_N "(cached) $ECHO_C" >&6
19064 else
19065   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
19068 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19071 if test "$GCC" = yes; then
19072   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19075 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19076 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19077 hardcode_action_GCJ=
19078 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19079    test -n "$runpath_var_GCJ" || \
19080    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19082   # We can hardcode non-existant directories.
19083   if test "$hardcode_direct_GCJ" != no &&
19084      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19085      # have to relink, otherwise we might link with an installed library
19086      # when we should be linking with a yet-to-be-installed one
19087      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19088      test "$hardcode_minus_L_GCJ" != no; then
19089     # Linking always hardcodes the temporary library directory.
19090     hardcode_action_GCJ=relink
19091   else
19092     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19093     hardcode_action_GCJ=immediate
19094   fi
19095 else
19096   # We cannot hardcode anything, or else we can only hardcode existing
19097   # directories.
19098   hardcode_action_GCJ=unsupported
19100 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19101 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19103 if test "$hardcode_action_GCJ" = relink; then
19104   # Fast installation is not supported
19105   enable_fast_install=no
19106 elif test "$shlibpath_overrides_runpath" = yes ||
19107      test "$enable_shared" = no; then
19108   # Fast installation is not necessary
19109   enable_fast_install=needless
19113 # The else clause should only fire when bootstrapping the
19114 # libtool distribution, otherwise you forgot to ship ltmain.sh
19115 # with your package, and you will get complaints that there are
19116 # no rules to generate ltmain.sh.
19117 if test -f "$ltmain"; then
19118   # See if we are running on zsh, and set the options which allow our commands through
19119   # without removal of \ escapes.
19120   if test -n "${ZSH_VERSION+set}" ; then
19121     setopt NO_GLOB_SUBST
19122   fi
19123   # Now quote all the things that may contain metacharacters while being
19124   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19125   # variables and quote the copies for generation of the libtool script.
19126   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19127     SED SHELL STRIP \
19128     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19129     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19130     deplibs_check_method reload_flag reload_cmds need_locks \
19131     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19132     lt_cv_sys_global_symbol_to_c_name_address \
19133     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19134     old_postinstall_cmds old_postuninstall_cmds \
19135     compiler_GCJ \
19136     CC_GCJ \
19137     LD_GCJ \
19138     lt_prog_compiler_wl_GCJ \
19139     lt_prog_compiler_pic_GCJ \
19140     lt_prog_compiler_static_GCJ \
19141     lt_prog_compiler_no_builtin_flag_GCJ \
19142     export_dynamic_flag_spec_GCJ \
19143     thread_safe_flag_spec_GCJ \
19144     whole_archive_flag_spec_GCJ \
19145     enable_shared_with_static_runtimes_GCJ \
19146     old_archive_cmds_GCJ \
19147     old_archive_from_new_cmds_GCJ \
19148     predep_objects_GCJ \
19149     postdep_objects_GCJ \
19150     predeps_GCJ \
19151     postdeps_GCJ \
19152     compiler_lib_search_path_GCJ \
19153     compiler_lib_search_dirs_GCJ \
19154     archive_cmds_GCJ \
19155     archive_expsym_cmds_GCJ \
19156     postinstall_cmds_GCJ \
19157     postuninstall_cmds_GCJ \
19158     old_archive_from_expsyms_cmds_GCJ \
19159     allow_undefined_flag_GCJ \
19160     no_undefined_flag_GCJ \
19161     export_symbols_cmds_GCJ \
19162     hardcode_libdir_flag_spec_GCJ \
19163     hardcode_libdir_flag_spec_ld_GCJ \
19164     hardcode_libdir_separator_GCJ \
19165     hardcode_automatic_GCJ \
19166     module_cmds_GCJ \
19167     module_expsym_cmds_GCJ \
19168     lt_cv_prog_compiler_c_o_GCJ \
19169     fix_srcfile_path_GCJ \
19170     exclude_expsyms_GCJ \
19171     include_expsyms_GCJ; do
19173     case $var in
19174     old_archive_cmds_GCJ | \
19175     old_archive_from_new_cmds_GCJ | \
19176     archive_cmds_GCJ | \
19177     archive_expsym_cmds_GCJ | \
19178     module_cmds_GCJ | \
19179     module_expsym_cmds_GCJ | \
19180     old_archive_from_expsyms_cmds_GCJ | \
19181     export_symbols_cmds_GCJ | \
19182     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19183     postinstall_cmds | postuninstall_cmds | \
19184     old_postinstall_cmds | old_postuninstall_cmds | \
19185     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19186       # Double-quote double-evaled strings.
19187       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19188       ;;
19189     *)
19190       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19191       ;;
19192     esac
19193   done
19195   case $lt_echo in
19196   *'\$0 --fallback-echo"')
19197     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19198     ;;
19199   esac
19201 cfgfile="$ofile"
19203   cat <<__EOF__ >> "$cfgfile"
19204 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19206 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19208 # Shell to use when invoking shell scripts.
19209 SHELL=$lt_SHELL
19211 # Whether or not to build shared libraries.
19212 build_libtool_libs=$enable_shared
19214 # Whether or not to build static libraries.
19215 build_old_libs=$enable_static
19217 # Whether or not to add -lc for building shared libraries.
19218 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19220 # Whether or not to disallow shared libs when runtime libs are static
19221 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19223 # Whether or not to optimize for fast installation.
19224 fast_install=$enable_fast_install
19226 # The host system.
19227 host_alias=$host_alias
19228 host=$host
19229 host_os=$host_os
19231 # The build system.
19232 build_alias=$build_alias
19233 build=$build
19234 build_os=$build_os
19236 # An echo program that does not interpret backslashes.
19237 echo=$lt_echo
19239 # The archiver.
19240 AR=$lt_AR
19241 AR_FLAGS=$lt_AR_FLAGS
19243 # A C compiler.
19244 LTCC=$lt_LTCC
19246 # LTCC compiler flags.
19247 LTCFLAGS=$lt_LTCFLAGS
19249 # A language-specific compiler.
19250 CC=$lt_compiler_GCJ
19252 # Is the compiler the GNU C compiler?
19253 with_gcc=$GCC_GCJ
19255 # An ERE matcher.
19256 EGREP=$lt_EGREP
19258 # The linker used to build libraries.
19259 LD=$lt_LD_GCJ
19261 # Whether we need hard or soft links.
19262 LN_S=$lt_LN_S
19264 # A BSD-compatible nm program.
19265 NM=$lt_NM
19267 # A symbol stripping program
19268 STRIP=$lt_STRIP
19270 # Used to examine libraries when file_magic_cmd begins "file"
19271 MAGIC_CMD=$MAGIC_CMD
19273 # Used on cygwin: DLL creation program.
19274 DLLTOOL="$DLLTOOL"
19276 # Used on cygwin: object dumper.
19277 OBJDUMP="$OBJDUMP"
19279 # Used on cygwin: assembler.
19280 AS="$AS"
19282 # The name of the directory that contains temporary libtool files.
19283 objdir=$objdir
19285 # How to create reloadable object files.
19286 reload_flag=$lt_reload_flag
19287 reload_cmds=$lt_reload_cmds
19289 # How to pass a linker flag through the compiler.
19290 wl=$lt_lt_prog_compiler_wl_GCJ
19292 # Object file suffix (normally "o").
19293 objext="$ac_objext"
19295 # Old archive suffix (normally "a").
19296 libext="$libext"
19298 # Shared library suffix (normally ".so").
19299 shrext_cmds='$shrext_cmds'
19301 # Executable file suffix (normally "").
19302 exeext="$exeext"
19304 # Additional compiler flags for building library objects.
19305 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19306 pic_mode=$pic_mode
19308 # What is the maximum length of a command?
19309 max_cmd_len=$lt_cv_sys_max_cmd_len
19311 # Does compiler simultaneously support -c and -o options?
19312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19314 # Must we lock files when doing compilation?
19315 need_locks=$lt_need_locks
19317 # Do we need the lib prefix for modules?
19318 need_lib_prefix=$need_lib_prefix
19320 # Do we need a version for libraries?
19321 need_version=$need_version
19323 # Whether dlopen is supported.
19324 dlopen_support=$enable_dlopen
19326 # Whether dlopen of programs is supported.
19327 dlopen_self=$enable_dlopen_self
19329 # Whether dlopen of statically linked programs is supported.
19330 dlopen_self_static=$enable_dlopen_self_static
19332 # Compiler flag to prevent dynamic linking.
19333 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19335 # Compiler flag to turn off builtin functions.
19336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19338 # Compiler flag to allow reflexive dlopens.
19339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19341 # Compiler flag to generate shared objects directly from archives.
19342 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19344 # Compiler flag to generate thread-safe objects.
19345 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19347 # Library versioning type.
19348 version_type=$version_type
19350 # Format of library name prefix.
19351 libname_spec=$lt_libname_spec
19353 # List of archive names.  First name is the real one, the rest are links.
19354 # The last name is the one that the linker finds with -lNAME.
19355 library_names_spec=$lt_library_names_spec
19357 # The coded name of the library, if different from the real name.
19358 soname_spec=$lt_soname_spec
19360 # Commands used to build and install an old-style archive.
19361 RANLIB=$lt_RANLIB
19362 old_archive_cmds=$lt_old_archive_cmds_GCJ
19363 old_postinstall_cmds=$lt_old_postinstall_cmds
19364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19366 # Create an old-style archive from a shared archive.
19367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19369 # Create a temporary old-style archive to link instead of a shared archive.
19370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19372 # Commands used to build and install a shared archive.
19373 archive_cmds=$lt_archive_cmds_GCJ
19374 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19375 postinstall_cmds=$lt_postinstall_cmds
19376 postuninstall_cmds=$lt_postuninstall_cmds
19378 # Commands used to build a loadable module (assumed same as above if empty)
19379 module_cmds=$lt_module_cmds_GCJ
19380 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19382 # Commands to strip libraries.
19383 old_striplib=$lt_old_striplib
19384 striplib=$lt_striplib
19386 # Dependencies to place before the objects being linked to create a
19387 # shared library.
19388 predep_objects=$lt_predep_objects_GCJ
19390 # Dependencies to place after the objects being linked to create a
19391 # shared library.
19392 postdep_objects=$lt_postdep_objects_GCJ
19394 # Dependencies to place before the objects being linked to create a
19395 # shared library.
19396 predeps=$lt_predeps_GCJ
19398 # Dependencies to place after the objects being linked to create a
19399 # shared library.
19400 postdeps=$lt_postdeps_GCJ
19402 # The directories searched by this compiler when creating a shared
19403 # library
19404 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19406 # The library search path used internally by the compiler when linking
19407 # a shared library.
19408 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19410 # Method to check whether dependent libraries are shared objects.
19411 deplibs_check_method=$lt_deplibs_check_method
19413 # Command to use when deplibs_check_method == file_magic.
19414 file_magic_cmd=$lt_file_magic_cmd
19416 # Flag that allows shared libraries with undefined symbols to be built.
19417 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19419 # Flag that forces no undefined symbols.
19420 no_undefined_flag=$lt_no_undefined_flag_GCJ
19422 # Commands used to finish a libtool library installation in a directory.
19423 finish_cmds=$lt_finish_cmds
19425 # Same as above, but a single script fragment to be evaled but not shown.
19426 finish_eval=$lt_finish_eval
19428 # Take the output of nm and produce a listing of raw symbols and C names.
19429 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19431 # Transform the output of nm in a proper C declaration
19432 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19434 # Transform the output of nm in a C name address pair
19435 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19437 # This is the shared library runtime path variable.
19438 runpath_var=$runpath_var
19440 # This is the shared library path variable.
19441 shlibpath_var=$shlibpath_var
19443 # Is shlibpath searched before the hard-coded library search path?
19444 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19446 # How to hardcode a shared library path into an executable.
19447 hardcode_action=$hardcode_action_GCJ
19449 # Whether we should hardcode library paths into libraries.
19450 hardcode_into_libs=$hardcode_into_libs
19452 # Flag to hardcode \$libdir into a binary during linking.
19453 # This must work even if \$libdir does not exist.
19454 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19456 # If ld is used when linking, flag to hardcode \$libdir into
19457 # a binary during linking. This must work even if \$libdir does
19458 # not exist.
19459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19461 # Whether we need a single -rpath flag with a separated argument.
19462 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19464 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19465 # resulting binary.
19466 hardcode_direct=$hardcode_direct_GCJ
19468 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19469 # resulting binary.
19470 hardcode_minus_L=$hardcode_minus_L_GCJ
19472 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19473 # the resulting binary.
19474 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19476 # Set to yes if building a shared library automatically hardcodes DIR into the library
19477 # and all subsequent libraries and executables linked against it.
19478 hardcode_automatic=$hardcode_automatic_GCJ
19480 # Variables whose values should be saved in libtool wrapper scripts and
19481 # restored at relink time.
19482 variables_saved_for_relink="$variables_saved_for_relink"
19484 # Whether libtool must link a program against all its dependency libraries.
19485 link_all_deplibs=$link_all_deplibs_GCJ
19487 # Compile-time system search path for libraries
19488 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19490 # Run-time system search path for libraries
19491 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19493 # Fix the shell variable \$srcfile for the compiler.
19494 fix_srcfile_path=$lt_fix_srcfile_path
19496 # Set to yes if exported symbols are required.
19497 always_export_symbols=$always_export_symbols_GCJ
19499 # The commands to list exported symbols.
19500 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19502 # The commands to extract the exported symbol list from a shared archive.
19503 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19505 # Symbols that should not be listed in the preloaded symbols.
19506 exclude_expsyms=$lt_exclude_expsyms_GCJ
19508 # Symbols that must always be exported.
19509 include_expsyms=$lt_include_expsyms_GCJ
19511 # ### END LIBTOOL TAG CONFIG: $tagname
19513 __EOF__
19516 else
19517   # If there is no Makefile yet, we rely on a make rule to execute
19518   # `config.status --recheck' to rerun these tests and create the
19519   # libtool script then.
19520   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19521   if test -f "$ltmain_in"; then
19522     test -f Makefile && make "$ltmain"
19523   fi
19527 ac_ext=c
19528 ac_cpp='$CPP $CPPFLAGS'
19529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19533 CC="$lt_save_CC"
19535         else
19536           tagname=""
19537         fi
19538         ;;
19540       RC)
19543 # Source file extension for RC test sources.
19544 ac_ext=rc
19546 # Object file extension for compiled RC test sources.
19547 objext=o
19548 objext_RC=$objext
19550 # Code to be used in simple compile tests
19551 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19553 # Code to be used in simple link tests
19554 lt_simple_link_test_code="$lt_simple_compile_test_code"
19556 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19558 # If no C compiler was specified, use CC.
19559 LTCC=${LTCC-"$CC"}
19561 # If no C compiler flags were specified, use CFLAGS.
19562 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19564 # Allow CC to be a program name with arguments.
19565 compiler=$CC
19568 # save warnings/boilerplate of simple test code
19569 ac_outfile=conftest.$ac_objext
19570 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19571 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19572 _lt_compiler_boilerplate=`cat conftest.err`
19573 $rm conftest*
19575 ac_outfile=conftest.$ac_objext
19576 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19577 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19578 _lt_linker_boilerplate=`cat conftest.err`
19579 $rm -r conftest*
19582 # Allow CC to be a program name with arguments.
19583 lt_save_CC="$CC"
19584 CC=${RC-"windres"}
19585 compiler=$CC
19586 compiler_RC=$CC
19587 for cc_temp in $compiler""; do
19588   case $cc_temp in
19589     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19590     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19591     \-*) ;;
19592     *) break;;
19593   esac
19594 done
19595 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19597 lt_cv_prog_compiler_c_o_RC=yes
19599 # The else clause should only fire when bootstrapping the
19600 # libtool distribution, otherwise you forgot to ship ltmain.sh
19601 # with your package, and you will get complaints that there are
19602 # no rules to generate ltmain.sh.
19603 if test -f "$ltmain"; then
19604   # See if we are running on zsh, and set the options which allow our commands through
19605   # without removal of \ escapes.
19606   if test -n "${ZSH_VERSION+set}" ; then
19607     setopt NO_GLOB_SUBST
19608   fi
19609   # Now quote all the things that may contain metacharacters while being
19610   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19611   # variables and quote the copies for generation of the libtool script.
19612   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19613     SED SHELL STRIP \
19614     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19615     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19616     deplibs_check_method reload_flag reload_cmds need_locks \
19617     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19618     lt_cv_sys_global_symbol_to_c_name_address \
19619     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19620     old_postinstall_cmds old_postuninstall_cmds \
19621     compiler_RC \
19622     CC_RC \
19623     LD_RC \
19624     lt_prog_compiler_wl_RC \
19625     lt_prog_compiler_pic_RC \
19626     lt_prog_compiler_static_RC \
19627     lt_prog_compiler_no_builtin_flag_RC \
19628     export_dynamic_flag_spec_RC \
19629     thread_safe_flag_spec_RC \
19630     whole_archive_flag_spec_RC \
19631     enable_shared_with_static_runtimes_RC \
19632     old_archive_cmds_RC \
19633     old_archive_from_new_cmds_RC \
19634     predep_objects_RC \
19635     postdep_objects_RC \
19636     predeps_RC \
19637     postdeps_RC \
19638     compiler_lib_search_path_RC \
19639     compiler_lib_search_dirs_RC \
19640     archive_cmds_RC \
19641     archive_expsym_cmds_RC \
19642     postinstall_cmds_RC \
19643     postuninstall_cmds_RC \
19644     old_archive_from_expsyms_cmds_RC \
19645     allow_undefined_flag_RC \
19646     no_undefined_flag_RC \
19647     export_symbols_cmds_RC \
19648     hardcode_libdir_flag_spec_RC \
19649     hardcode_libdir_flag_spec_ld_RC \
19650     hardcode_libdir_separator_RC \
19651     hardcode_automatic_RC \
19652     module_cmds_RC \
19653     module_expsym_cmds_RC \
19654     lt_cv_prog_compiler_c_o_RC \
19655     fix_srcfile_path_RC \
19656     exclude_expsyms_RC \
19657     include_expsyms_RC; do
19659     case $var in
19660     old_archive_cmds_RC | \
19661     old_archive_from_new_cmds_RC | \
19662     archive_cmds_RC | \
19663     archive_expsym_cmds_RC | \
19664     module_cmds_RC | \
19665     module_expsym_cmds_RC | \
19666     old_archive_from_expsyms_cmds_RC | \
19667     export_symbols_cmds_RC | \
19668     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19669     postinstall_cmds | postuninstall_cmds | \
19670     old_postinstall_cmds | old_postuninstall_cmds | \
19671     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19672       # Double-quote double-evaled strings.
19673       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19674       ;;
19675     *)
19676       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19677       ;;
19678     esac
19679   done
19681   case $lt_echo in
19682   *'\$0 --fallback-echo"')
19683     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19684     ;;
19685   esac
19687 cfgfile="$ofile"
19689   cat <<__EOF__ >> "$cfgfile"
19690 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19692 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19694 # Shell to use when invoking shell scripts.
19695 SHELL=$lt_SHELL
19697 # Whether or not to build shared libraries.
19698 build_libtool_libs=$enable_shared
19700 # Whether or not to build static libraries.
19701 build_old_libs=$enable_static
19703 # Whether or not to add -lc for building shared libraries.
19704 build_libtool_need_lc=$archive_cmds_need_lc_RC
19706 # Whether or not to disallow shared libs when runtime libs are static
19707 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19709 # Whether or not to optimize for fast installation.
19710 fast_install=$enable_fast_install
19712 # The host system.
19713 host_alias=$host_alias
19714 host=$host
19715 host_os=$host_os
19717 # The build system.
19718 build_alias=$build_alias
19719 build=$build
19720 build_os=$build_os
19722 # An echo program that does not interpret backslashes.
19723 echo=$lt_echo
19725 # The archiver.
19726 AR=$lt_AR
19727 AR_FLAGS=$lt_AR_FLAGS
19729 # A C compiler.
19730 LTCC=$lt_LTCC
19732 # LTCC compiler flags.
19733 LTCFLAGS=$lt_LTCFLAGS
19735 # A language-specific compiler.
19736 CC=$lt_compiler_RC
19738 # Is the compiler the GNU C compiler?
19739 with_gcc=$GCC_RC
19741 # An ERE matcher.
19742 EGREP=$lt_EGREP
19744 # The linker used to build libraries.
19745 LD=$lt_LD_RC
19747 # Whether we need hard or soft links.
19748 LN_S=$lt_LN_S
19750 # A BSD-compatible nm program.
19751 NM=$lt_NM
19753 # A symbol stripping program
19754 STRIP=$lt_STRIP
19756 # Used to examine libraries when file_magic_cmd begins "file"
19757 MAGIC_CMD=$MAGIC_CMD
19759 # Used on cygwin: DLL creation program.
19760 DLLTOOL="$DLLTOOL"
19762 # Used on cygwin: object dumper.
19763 OBJDUMP="$OBJDUMP"
19765 # Used on cygwin: assembler.
19766 AS="$AS"
19768 # The name of the directory that contains temporary libtool files.
19769 objdir=$objdir
19771 # How to create reloadable object files.
19772 reload_flag=$lt_reload_flag
19773 reload_cmds=$lt_reload_cmds
19775 # How to pass a linker flag through the compiler.
19776 wl=$lt_lt_prog_compiler_wl_RC
19778 # Object file suffix (normally "o").
19779 objext="$ac_objext"
19781 # Old archive suffix (normally "a").
19782 libext="$libext"
19784 # Shared library suffix (normally ".so").
19785 shrext_cmds='$shrext_cmds'
19787 # Executable file suffix (normally "").
19788 exeext="$exeext"
19790 # Additional compiler flags for building library objects.
19791 pic_flag=$lt_lt_prog_compiler_pic_RC
19792 pic_mode=$pic_mode
19794 # What is the maximum length of a command?
19795 max_cmd_len=$lt_cv_sys_max_cmd_len
19797 # Does compiler simultaneously support -c and -o options?
19798 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19800 # Must we lock files when doing compilation?
19801 need_locks=$lt_need_locks
19803 # Do we need the lib prefix for modules?
19804 need_lib_prefix=$need_lib_prefix
19806 # Do we need a version for libraries?
19807 need_version=$need_version
19809 # Whether dlopen is supported.
19810 dlopen_support=$enable_dlopen
19812 # Whether dlopen of programs is supported.
19813 dlopen_self=$enable_dlopen_self
19815 # Whether dlopen of statically linked programs is supported.
19816 dlopen_self_static=$enable_dlopen_self_static
19818 # Compiler flag to prevent dynamic linking.
19819 link_static_flag=$lt_lt_prog_compiler_static_RC
19821 # Compiler flag to turn off builtin functions.
19822 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19824 # Compiler flag to allow reflexive dlopens.
19825 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19827 # Compiler flag to generate shared objects directly from archives.
19828 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19830 # Compiler flag to generate thread-safe objects.
19831 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19833 # Library versioning type.
19834 version_type=$version_type
19836 # Format of library name prefix.
19837 libname_spec=$lt_libname_spec
19839 # List of archive names.  First name is the real one, the rest are links.
19840 # The last name is the one that the linker finds with -lNAME.
19841 library_names_spec=$lt_library_names_spec
19843 # The coded name of the library, if different from the real name.
19844 soname_spec=$lt_soname_spec
19846 # Commands used to build and install an old-style archive.
19847 RANLIB=$lt_RANLIB
19848 old_archive_cmds=$lt_old_archive_cmds_RC
19849 old_postinstall_cmds=$lt_old_postinstall_cmds
19850 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19852 # Create an old-style archive from a shared archive.
19853 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19855 # Create a temporary old-style archive to link instead of a shared archive.
19856 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19858 # Commands used to build and install a shared archive.
19859 archive_cmds=$lt_archive_cmds_RC
19860 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19861 postinstall_cmds=$lt_postinstall_cmds
19862 postuninstall_cmds=$lt_postuninstall_cmds
19864 # Commands used to build a loadable module (assumed same as above if empty)
19865 module_cmds=$lt_module_cmds_RC
19866 module_expsym_cmds=$lt_module_expsym_cmds_RC
19868 # Commands to strip libraries.
19869 old_striplib=$lt_old_striplib
19870 striplib=$lt_striplib
19872 # Dependencies to place before the objects being linked to create a
19873 # shared library.
19874 predep_objects=$lt_predep_objects_RC
19876 # Dependencies to place after the objects being linked to create a
19877 # shared library.
19878 postdep_objects=$lt_postdep_objects_RC
19880 # Dependencies to place before the objects being linked to create a
19881 # shared library.
19882 predeps=$lt_predeps_RC
19884 # Dependencies to place after the objects being linked to create a
19885 # shared library.
19886 postdeps=$lt_postdeps_RC
19888 # The directories searched by this compiler when creating a shared
19889 # library
19890 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19892 # The library search path used internally by the compiler when linking
19893 # a shared library.
19894 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19896 # Method to check whether dependent libraries are shared objects.
19897 deplibs_check_method=$lt_deplibs_check_method
19899 # Command to use when deplibs_check_method == file_magic.
19900 file_magic_cmd=$lt_file_magic_cmd
19902 # Flag that allows shared libraries with undefined symbols to be built.
19903 allow_undefined_flag=$lt_allow_undefined_flag_RC
19905 # Flag that forces no undefined symbols.
19906 no_undefined_flag=$lt_no_undefined_flag_RC
19908 # Commands used to finish a libtool library installation in a directory.
19909 finish_cmds=$lt_finish_cmds
19911 # Same as above, but a single script fragment to be evaled but not shown.
19912 finish_eval=$lt_finish_eval
19914 # Take the output of nm and produce a listing of raw symbols and C names.
19915 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19917 # Transform the output of nm in a proper C declaration
19918 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19920 # Transform the output of nm in a C name address pair
19921 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19923 # This is the shared library runtime path variable.
19924 runpath_var=$runpath_var
19926 # This is the shared library path variable.
19927 shlibpath_var=$shlibpath_var
19929 # Is shlibpath searched before the hard-coded library search path?
19930 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19932 # How to hardcode a shared library path into an executable.
19933 hardcode_action=$hardcode_action_RC
19935 # Whether we should hardcode library paths into libraries.
19936 hardcode_into_libs=$hardcode_into_libs
19938 # Flag to hardcode \$libdir into a binary during linking.
19939 # This must work even if \$libdir does not exist.
19940 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19942 # If ld is used when linking, flag to hardcode \$libdir into
19943 # a binary during linking. This must work even if \$libdir does
19944 # not exist.
19945 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19947 # Whether we need a single -rpath flag with a separated argument.
19948 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19950 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19951 # resulting binary.
19952 hardcode_direct=$hardcode_direct_RC
19954 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19955 # resulting binary.
19956 hardcode_minus_L=$hardcode_minus_L_RC
19958 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19959 # the resulting binary.
19960 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19962 # Set to yes if building a shared library automatically hardcodes DIR into the library
19963 # and all subsequent libraries and executables linked against it.
19964 hardcode_automatic=$hardcode_automatic_RC
19966 # Variables whose values should be saved in libtool wrapper scripts and
19967 # restored at relink time.
19968 variables_saved_for_relink="$variables_saved_for_relink"
19970 # Whether libtool must link a program against all its dependency libraries.
19971 link_all_deplibs=$link_all_deplibs_RC
19973 # Compile-time system search path for libraries
19974 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19976 # Run-time system search path for libraries
19977 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19979 # Fix the shell variable \$srcfile for the compiler.
19980 fix_srcfile_path=$lt_fix_srcfile_path
19982 # Set to yes if exported symbols are required.
19983 always_export_symbols=$always_export_symbols_RC
19985 # The commands to list exported symbols.
19986 export_symbols_cmds=$lt_export_symbols_cmds_RC
19988 # The commands to extract the exported symbol list from a shared archive.
19989 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19991 # Symbols that should not be listed in the preloaded symbols.
19992 exclude_expsyms=$lt_exclude_expsyms_RC
19994 # Symbols that must always be exported.
19995 include_expsyms=$lt_include_expsyms_RC
19997 # ### END LIBTOOL TAG CONFIG: $tagname
19999 __EOF__
20002 else
20003   # If there is no Makefile yet, we rely on a make rule to execute
20004   # `config.status --recheck' to rerun these tests and create the
20005   # libtool script then.
20006   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20007   if test -f "$ltmain_in"; then
20008     test -f Makefile && make "$ltmain"
20009   fi
20013 ac_ext=c
20014 ac_cpp='$CPP $CPPFLAGS'
20015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20019 CC="$lt_save_CC"
20021         ;;
20023       *)
20024         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20025 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20026    { (exit 1); exit 1; }; }
20027         ;;
20028       esac
20030       # Append the new tag name to the list of available tags.
20031       if test -n "$tagname" ; then
20032       available_tags="$available_tags $tagname"
20033     fi
20034     fi
20035   done
20036   IFS="$lt_save_ifs"
20038   # Now substitute the updated list of available tags.
20039   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20040     mv "${ofile}T" "$ofile"
20041     chmod +x "$ofile"
20042   else
20043     rm -f "${ofile}T"
20044     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20045 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20046    { (exit 1); exit 1; }; }
20047   fi
20052 # This can be used to rebuild libtool when needed
20053 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20055 # Always use our own libtool.
20056 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20058 # Prevent multiple expansion
20080 CFLAGS="$CFLAGS -D_GNU_SOURCE"
20082 if test "x$GCC" = "xyes"; then
20083   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
20084     oCFLAGS="$CFLAGS"
20085     CFLAGS="$CFLAGS $flag"
20086     cachename=rd_cv_gcc_flag_`echo $flag|sed 's/[^A-Za-z]/_/g'`
20087     { echo "$as_me:$LINENO: checking if gcc likes the $flag flag" >&5
20088 echo $ECHO_N "checking if gcc likes the $flag flag... $ECHO_C" >&6; }
20089 if { as_var=$cachename; eval "test \"\${$as_var+set}\" = set"; }; then
20090   echo $ECHO_N "(cached) $ECHO_C" >&6
20091 else
20092   cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h.  */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h.  */
20099 int
20100 main ()
20102 return 0
20103   ;
20104   return 0;
20106 _ACEOF
20107 rm -f conftest.$ac_objext
20108 if { (ac_try="$ac_compile"
20109 case "(($ac_try" in
20110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20111   *) ac_try_echo=$ac_try;;
20112 esac
20113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20114   (eval "$ac_compile") 2>conftest.er1
20115   ac_status=$?
20116   grep -v '^ *+' conftest.er1 >conftest.err
20117   rm -f conftest.er1
20118   cat conftest.err >&5
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); } && {
20121          test -z "$ac_c_werror_flag" ||
20122          test ! -s conftest.err
20123        } && test -s conftest.$ac_objext; then
20124   eval $cachename=yes
20125 else
20126   echo "$as_me: failed program was:" >&5
20127 sed 's/^/| /' conftest.$ac_ext >&5
20129         eval $cachename=no
20132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20134 ac_res=`eval echo '${'$cachename'}'`
20135                { echo "$as_me:$LINENO: result: $ac_res" >&5
20136 echo "${ECHO_T}$ac_res" >&6; }
20137     if eval test \$$cachename = no; then
20138          CFLAGS="$oCFLAGS"
20139     fi
20140   done
20148 case $TERM in
20149        #   for the most important terminal types we directly know the sequences
20150        xterm|xterm*|vt220|vt220*)
20151                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20152                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20153        ;;
20154        vt100|vt100*|cygwin)
20155                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20156                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20157        ;;
20158        *)
20159                T_MD=''
20160                T_ME=''
20161        ;;
20162 esac
20163   { echo "$as_me:$LINENO: result: " >&5
20164 echo "${ECHO_T}" >&6; }
20165   { echo "$as_me:$LINENO: result: ${T_MD}Checking for Header Files${T_ME}" >&5
20166 echo "${ECHO_T}${T_MD}Checking for Header Files${T_ME}" >&6; }
20169 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20170 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20171 if test "${ac_cv_header_stdc+set}" = set; then
20172   echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20174   cat >conftest.$ac_ext <<_ACEOF
20175 /* confdefs.h.  */
20176 _ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h.  */
20180 #include <stdlib.h>
20181 #include <stdarg.h>
20182 #include <string.h>
20183 #include <float.h>
20185 int
20186 main ()
20189   ;
20190   return 0;
20192 _ACEOF
20193 rm -f conftest.$ac_objext
20194 if { (ac_try="$ac_compile"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_compile") 2>conftest.er1
20201   ac_status=$?
20202   grep -v '^ *+' conftest.er1 >conftest.err
20203   rm -f conftest.er1
20204   cat conftest.err >&5
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } && {
20207          test -z "$ac_c_werror_flag" ||
20208          test ! -s conftest.err
20209        } && test -s conftest.$ac_objext; then
20210   ac_cv_header_stdc=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215         ac_cv_header_stdc=no
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20220 if test $ac_cv_header_stdc = yes; then
20221   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20222   cat >conftest.$ac_ext <<_ACEOF
20223 /* confdefs.h.  */
20224 _ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h.  */
20228 #include <string.h>
20230 _ACEOF
20231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20232   $EGREP "memchr" >/dev/null 2>&1; then
20233   :
20234 else
20235   ac_cv_header_stdc=no
20237 rm -f conftest*
20241 if test $ac_cv_header_stdc = yes; then
20242   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20243   cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h.  */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h.  */
20249 #include <stdlib.h>
20251 _ACEOF
20252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20253   $EGREP "free" >/dev/null 2>&1; then
20254   :
20255 else
20256   ac_cv_header_stdc=no
20258 rm -f conftest*
20262 if test $ac_cv_header_stdc = yes; then
20263   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20264   if test "$cross_compiling" = yes; then
20265   :
20266 else
20267   cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273 #include <ctype.h>
20274 #include <stdlib.h>
20275 #if ((' ' & 0x0FF) == 0x020)
20276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20278 #else
20279 # define ISLOWER(c) \
20280                    (('a' <= (c) && (c) <= 'i') \
20281                      || ('j' <= (c) && (c) <= 'r') \
20282                      || ('s' <= (c) && (c) <= 'z'))
20283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20284 #endif
20286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20287 int
20288 main ()
20290   int i;
20291   for (i = 0; i < 256; i++)
20292     if (XOR (islower (i), ISLOWER (i))
20293         || toupper (i) != TOUPPER (i))
20294       return 2;
20295   return 0;
20297 _ACEOF
20298 rm -f conftest$ac_exeext
20299 if { (ac_try="$ac_link"
20300 case "(($ac_try" in
20301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20302   *) ac_try_echo=$ac_try;;
20303 esac
20304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20305   (eval "$ac_link") 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20309   { (case "(($ac_try" in
20310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311   *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314   (eval "$ac_try") 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); }; }; then
20318   :
20319 else
20320   echo "$as_me: program exited with status $ac_status" >&5
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ( exit $ac_status )
20325 ac_cv_header_stdc=no
20327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20333 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20334 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20335 if test $ac_cv_header_stdc = yes; then
20337 cat >>confdefs.h <<\_ACEOF
20338 #define STDC_HEADERS 1
20339 _ACEOF
20348 ac_header_dirent=no
20349 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20350   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20351 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20352 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20354   echo $ECHO_N "(cached) $ECHO_C" >&6
20355 else
20356   cat >conftest.$ac_ext <<_ACEOF
20357 /* confdefs.h.  */
20358 _ACEOF
20359 cat confdefs.h >>conftest.$ac_ext
20360 cat >>conftest.$ac_ext <<_ACEOF
20361 /* end confdefs.h.  */
20362 #include <sys/types.h>
20363 #include <$ac_hdr>
20365 int
20366 main ()
20368 if ((DIR *) 0)
20369 return 0;
20370   ;
20371   return 0;
20373 _ACEOF
20374 rm -f conftest.$ac_objext
20375 if { (ac_try="$ac_compile"
20376 case "(($ac_try" in
20377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378   *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381   (eval "$ac_compile") 2>conftest.er1
20382   ac_status=$?
20383   grep -v '^ *+' conftest.er1 >conftest.err
20384   rm -f conftest.er1
20385   cat conftest.err >&5
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); } && {
20388          test -z "$ac_c_werror_flag" ||
20389          test ! -s conftest.err
20390        } && test -s conftest.$ac_objext; then
20391   eval "$as_ac_Header=yes"
20392 else
20393   echo "$as_me: failed program was:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396         eval "$as_ac_Header=no"
20399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20401 ac_res=`eval echo '${'$as_ac_Header'}'`
20402                { echo "$as_me:$LINENO: result: $ac_res" >&5
20403 echo "${ECHO_T}$ac_res" >&6; }
20404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20405   cat >>confdefs.h <<_ACEOF
20406 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20407 _ACEOF
20409 ac_header_dirent=$ac_hdr; break
20412 done
20413 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20414 if test $ac_header_dirent = dirent.h; then
20415   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20416 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20417 if test "${ac_cv_search_opendir+set}" = set; then
20418   echo $ECHO_N "(cached) $ECHO_C" >&6
20419 else
20420   ac_func_search_save_LIBS=$LIBS
20421 cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h.  */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h.  */
20428 /* Override any GCC internal prototype to avoid an error.
20429    Use char because int might match the return type of a GCC
20430    builtin and then its argument prototype would still apply.  */
20431 #ifdef __cplusplus
20432 extern "C"
20433 #endif
20434 char opendir ();
20435 int
20436 main ()
20438 return opendir ();
20439   ;
20440   return 0;
20442 _ACEOF
20443 for ac_lib in '' dir; do
20444   if test -z "$ac_lib"; then
20445     ac_res="none required"
20446   else
20447     ac_res=-l$ac_lib
20448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20449   fi
20450   rm -f conftest.$ac_objext conftest$ac_exeext
20451 if { (ac_try="$ac_link"
20452 case "(($ac_try" in
20453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454   *) ac_try_echo=$ac_try;;
20455 esac
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457   (eval "$ac_link") 2>conftest.er1
20458   ac_status=$?
20459   grep -v '^ *+' conftest.er1 >conftest.err
20460   rm -f conftest.er1
20461   cat conftest.err >&5
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); } && {
20464          test -z "$ac_c_werror_flag" ||
20465          test ! -s conftest.err
20466        } && test -s conftest$ac_exeext &&
20467        $as_test_x conftest$ac_exeext; then
20468   ac_cv_search_opendir=$ac_res
20469 else
20470   echo "$as_me: failed program was:" >&5
20471 sed 's/^/| /' conftest.$ac_ext >&5
20476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20477       conftest$ac_exeext
20478   if test "${ac_cv_search_opendir+set}" = set; then
20479   break
20481 done
20482 if test "${ac_cv_search_opendir+set}" = set; then
20483   :
20484 else
20485   ac_cv_search_opendir=no
20487 rm conftest.$ac_ext
20488 LIBS=$ac_func_search_save_LIBS
20490 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20491 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20492 ac_res=$ac_cv_search_opendir
20493 if test "$ac_res" != no; then
20494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20498 else
20499   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20500 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20501 if test "${ac_cv_search_opendir+set}" = set; then
20502   echo $ECHO_N "(cached) $ECHO_C" >&6
20503 else
20504   ac_func_search_save_LIBS=$LIBS
20505 cat >conftest.$ac_ext <<_ACEOF
20506 /* confdefs.h.  */
20507 _ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h.  */
20512 /* Override any GCC internal prototype to avoid an error.
20513    Use char because int might match the return type of a GCC
20514    builtin and then its argument prototype would still apply.  */
20515 #ifdef __cplusplus
20516 extern "C"
20517 #endif
20518 char opendir ();
20519 int
20520 main ()
20522 return opendir ();
20523   ;
20524   return 0;
20526 _ACEOF
20527 for ac_lib in '' x; do
20528   if test -z "$ac_lib"; then
20529     ac_res="none required"
20530   else
20531     ac_res=-l$ac_lib
20532     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20533   fi
20534   rm -f conftest.$ac_objext conftest$ac_exeext
20535 if { (ac_try="$ac_link"
20536 case "(($ac_try" in
20537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538   *) ac_try_echo=$ac_try;;
20539 esac
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541   (eval "$ac_link") 2>conftest.er1
20542   ac_status=$?
20543   grep -v '^ *+' conftest.er1 >conftest.err
20544   rm -f conftest.er1
20545   cat conftest.err >&5
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); } && {
20548          test -z "$ac_c_werror_flag" ||
20549          test ! -s conftest.err
20550        } && test -s conftest$ac_exeext &&
20551        $as_test_x conftest$ac_exeext; then
20552   ac_cv_search_opendir=$ac_res
20553 else
20554   echo "$as_me: failed program was:" >&5
20555 sed 's/^/| /' conftest.$ac_ext >&5
20560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20561       conftest$ac_exeext
20562   if test "${ac_cv_search_opendir+set}" = set; then
20563   break
20565 done
20566 if test "${ac_cv_search_opendir+set}" = set; then
20567   :
20568 else
20569   ac_cv_search_opendir=no
20571 rm conftest.$ac_ext
20572 LIBS=$ac_func_search_save_LIBS
20574 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20575 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20576 ac_res=$ac_cv_search_opendir
20577 if test "$ac_res" != no; then
20578   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20604 for ac_header in features.h sys/stat.h sys/types.h fcntl.h locale.h fp_class.h malloc.h unistd.h ieeefp.h math.h sys/times.h sys/param.h sys/resource.h signal.h float.h stdio.h stdlib.h errno.h string.h ctype.h
20606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20608   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20611   echo $ECHO_N "(cached) $ECHO_C" >&6
20613 ac_res=`eval echo '${'$as_ac_Header'}'`
20614                { echo "$as_me:$LINENO: result: $ac_res" >&5
20615 echo "${ECHO_T}$ac_res" >&6; }
20616 else
20617   # Is the header compilable?
20618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20620 cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h.  */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h.  */
20626 $ac_includes_default
20627 #include <$ac_header>
20628 _ACEOF
20629 rm -f conftest.$ac_objext
20630 if { (ac_try="$ac_compile"
20631 case "(($ac_try" in
20632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633   *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636   (eval "$ac_compile") 2>conftest.er1
20637   ac_status=$?
20638   grep -v '^ *+' conftest.er1 >conftest.err
20639   rm -f conftest.er1
20640   cat conftest.err >&5
20641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642   (exit $ac_status); } && {
20643          test -z "$ac_c_werror_flag" ||
20644          test ! -s conftest.err
20645        } && test -s conftest.$ac_objext; then
20646   ac_header_compiler=yes
20647 else
20648   echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20651         ac_header_compiler=no
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20656 echo "${ECHO_T}$ac_header_compiler" >&6; }
20658 # Is the header present?
20659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h.  */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h.  */
20667 #include <$ac_header>
20668 _ACEOF
20669 if { (ac_try="$ac_cpp conftest.$ac_ext"
20670 case "(($ac_try" in
20671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672   *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20676   ac_status=$?
20677   grep -v '^ *+' conftest.er1 >conftest.err
20678   rm -f conftest.er1
20679   cat conftest.err >&5
20680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681   (exit $ac_status); } >/dev/null && {
20682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20683          test ! -s conftest.err
20684        }; then
20685   ac_header_preproc=yes
20686 else
20687   echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20690   ac_header_preproc=no
20693 rm -f conftest.err conftest.$ac_ext
20694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20695 echo "${ECHO_T}$ac_header_preproc" >&6; }
20697 # So?  What about this header?
20698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20699   yes:no: )
20700     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20702     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20704     ac_header_preproc=yes
20705     ;;
20706   no:yes:* )
20707     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20709     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20710 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20711     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20713     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20714 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20717     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20720     ;;
20721 esac
20722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20725   echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727   eval "$as_ac_Header=\$ac_header_preproc"
20729 ac_res=`eval echo '${'$as_ac_Header'}'`
20730                { echo "$as_me:$LINENO: result: $ac_res" >&5
20731 echo "${ECHO_T}$ac_res" >&6; }
20734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20735   cat >>confdefs.h <<_ACEOF
20736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20737 _ACEOF
20741 done
20744 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20745 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20746 if test "${ac_cv_c_const+set}" = set; then
20747   echo $ECHO_N "(cached) $ECHO_C" >&6
20748 else
20749   cat >conftest.$ac_ext <<_ACEOF
20750 /* confdefs.h.  */
20751 _ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h.  */
20756 int
20757 main ()
20759 /* FIXME: Include the comments suggested by Paul. */
20760 #ifndef __cplusplus
20761   /* Ultrix mips cc rejects this.  */
20762   typedef int charset[2];
20763   const charset cs;
20764   /* SunOS 4.1.1 cc rejects this.  */
20765   char const *const *pcpcc;
20766   char **ppc;
20767   /* NEC SVR4.0.2 mips cc rejects this.  */
20768   struct point {int x, y;};
20769   static struct point const zero = {0,0};
20770   /* AIX XL C 1.02.0.0 rejects this.
20771      It does not let you subtract one const X* pointer from another in
20772      an arm of an if-expression whose if-part is not a constant
20773      expression */
20774   const char *g = "string";
20775   pcpcc = &g + (g ? g-g : 0);
20776   /* HPUX 7.0 cc rejects these. */
20777   ++pcpcc;
20778   ppc = (char**) pcpcc;
20779   pcpcc = (char const *const *) ppc;
20780   { /* SCO 3.2v4 cc rejects this.  */
20781     char *t;
20782     char const *s = 0 ? (char *) 0 : (char const *) 0;
20784     *t++ = 0;
20785     if (s) return 0;
20786   }
20787   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20788     int x[] = {25, 17};
20789     const int *foo = &x[0];
20790     ++foo;
20791   }
20792   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20793     typedef const int *iptr;
20794     iptr p = 0;
20795     ++p;
20796   }
20797   { /* AIX XL C 1.02.0.0 rejects this saying
20798        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20799     struct s { int j; const int *ap[3]; };
20800     struct s *b; b->j = 5;
20801   }
20802   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20803     const int foo = 10;
20804     if (!foo) return 0;
20805   }
20806   return !cs[0] && !zero.x;
20807 #endif
20809   ;
20810   return 0;
20812 _ACEOF
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817   *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820   (eval "$ac_compile") 2>conftest.er1
20821   ac_status=$?
20822   grep -v '^ *+' conftest.er1 >conftest.err
20823   rm -f conftest.er1
20824   cat conftest.err >&5
20825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826   (exit $ac_status); } && {
20827          test -z "$ac_c_werror_flag" ||
20828          test ! -s conftest.err
20829        } && test -s conftest.$ac_objext; then
20830   ac_cv_c_const=yes
20831 else
20832   echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835         ac_cv_c_const=no
20838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20841 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20842 if test $ac_cv_c_const = no; then
20844 cat >>confdefs.h <<\_ACEOF
20845 #define const
20846 _ACEOF
20850 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20851 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20852 if test "${ac_cv_header_time+set}" = set; then
20853   echo $ECHO_N "(cached) $ECHO_C" >&6
20854 else
20855   cat >conftest.$ac_ext <<_ACEOF
20856 /* confdefs.h.  */
20857 _ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h.  */
20861 #include <sys/types.h>
20862 #include <sys/time.h>
20863 #include <time.h>
20865 int
20866 main ()
20868 if ((struct tm *) 0)
20869 return 0;
20870   ;
20871   return 0;
20873 _ACEOF
20874 rm -f conftest.$ac_objext
20875 if { (ac_try="$ac_compile"
20876 case "(($ac_try" in
20877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878   *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881   (eval "$ac_compile") 2>conftest.er1
20882   ac_status=$?
20883   grep -v '^ *+' conftest.er1 >conftest.err
20884   rm -f conftest.er1
20885   cat conftest.err >&5
20886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887   (exit $ac_status); } && {
20888          test -z "$ac_c_werror_flag" ||
20889          test ! -s conftest.err
20890        } && test -s conftest.$ac_objext; then
20891   ac_cv_header_time=yes
20892 else
20893   echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20896         ac_cv_header_time=no
20899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20901 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20902 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20903 if test $ac_cv_header_time = yes; then
20905 cat >>confdefs.h <<\_ACEOF
20906 #define TIME_WITH_SYS_TIME 1
20907 _ACEOF
20911 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20912 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20913 if test "${ac_cv_struct_tm+set}" = set; then
20914   echo $ECHO_N "(cached) $ECHO_C" >&6
20915 else
20916   cat >conftest.$ac_ext <<_ACEOF
20917 /* confdefs.h.  */
20918 _ACEOF
20919 cat confdefs.h >>conftest.$ac_ext
20920 cat >>conftest.$ac_ext <<_ACEOF
20921 /* end confdefs.h.  */
20922 #include <sys/types.h>
20923 #include <time.h>
20925 int
20926 main ()
20928 struct tm tm;
20929                                      int *p = &tm.tm_sec;
20930                                      return !p;
20931   ;
20932   return 0;
20934 _ACEOF
20935 rm -f conftest.$ac_objext
20936 if { (ac_try="$ac_compile"
20937 case "(($ac_try" in
20938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939   *) ac_try_echo=$ac_try;;
20940 esac
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942   (eval "$ac_compile") 2>conftest.er1
20943   ac_status=$?
20944   grep -v '^ *+' conftest.er1 >conftest.err
20945   rm -f conftest.er1
20946   cat conftest.err >&5
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); } && {
20949          test -z "$ac_c_werror_flag" ||
20950          test ! -s conftest.err
20951        } && test -s conftest.$ac_objext; then
20952   ac_cv_struct_tm=time.h
20953 else
20954   echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957         ac_cv_struct_tm=sys/time.h
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20962 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20963 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20964 if test $ac_cv_struct_tm = sys/time.h; then
20966 cat >>confdefs.h <<\_ACEOF
20967 #define TM_IN_SYS_TIME 1
20968 _ACEOF
20974 case $TERM in
20975        #   for the most important terminal types we directly know the sequences
20976        xterm|xterm*|vt220|vt220*)
20977                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
20978                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
20979        ;;
20980        vt100|vt100*|cygwin)
20981                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
20982                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
20983        ;;
20984        *)
20985                T_MD=''
20986                T_ME=''
20987        ;;
20988 esac
20989   { echo "$as_me:$LINENO: result: " >&5
20990 echo "${ECHO_T}" >&6; }
20991   { echo "$as_me:$LINENO: result: ${T_MD}Test Library Functions${T_ME}" >&5
20992 echo "${ECHO_T}${T_MD}Test Library Functions${T_ME}" >&6; }
20995 { echo "$as_me:$LINENO: checking for acos" >&5
20996 echo $ECHO_N "checking for acos... $ECHO_C" >&6; }
20997 if test "${ac_cv_func_acos+set}" = set; then
20998   echo $ECHO_N "(cached) $ECHO_C" >&6
20999 else
21000   cat >conftest.$ac_ext <<_ACEOF
21001 /* confdefs.h.  */
21002 _ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h.  */
21006 /* Define acos to an innocuous variant, in case <limits.h> declares acos.
21007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21008 #define acos innocuous_acos
21010 /* System header to define __stub macros and hopefully few prototypes,
21011     which can conflict with char acos (); below.
21012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21013     <limits.h> exists even on freestanding compilers.  */
21015 #ifdef __STDC__
21016 # include <limits.h>
21017 #else
21018 # include <assert.h>
21019 #endif
21021 #undef acos
21023 /* Override any GCC internal prototype to avoid an error.
21024    Use char because int might match the return type of a GCC
21025    builtin and then its argument prototype would still apply.  */
21026 #ifdef __cplusplus
21027 extern "C"
21028 #endif
21029 char acos ();
21030 /* The GNU C library defines this for functions which it implements
21031     to always fail with ENOSYS.  Some functions are actually named
21032     something starting with __ and the normal name is an alias.  */
21033 #if defined __stub_acos || defined __stub___acos
21034 choke me
21035 #endif
21037 int
21038 main ()
21040 return acos ();
21041   ;
21042   return 0;
21044 _ACEOF
21045 rm -f conftest.$ac_objext conftest$ac_exeext
21046 if { (ac_try="$ac_link"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_link") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } && {
21059          test -z "$ac_c_werror_flag" ||
21060          test ! -s conftest.err
21061        } && test -s conftest$ac_exeext &&
21062        $as_test_x conftest$ac_exeext; then
21063   ac_cv_func_acos=yes
21064 else
21065   echo "$as_me: failed program was:" >&5
21066 sed 's/^/| /' conftest.$ac_ext >&5
21068         ac_cv_func_acos=no
21071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21072       conftest$ac_exeext conftest.$ac_ext
21074 { echo "$as_me:$LINENO: result: $ac_cv_func_acos" >&5
21075 echo "${ECHO_T}$ac_cv_func_acos" >&6; }
21076 if test $ac_cv_func_acos = yes; then
21077   :
21078 else
21080 { echo "$as_me:$LINENO: checking for acos in -lm" >&5
21081 echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6; }
21082 if test "${ac_cv_lib_m_acos+set}" = set; then
21083   echo $ECHO_N "(cached) $ECHO_C" >&6
21084 else
21085   ac_check_lib_save_LIBS=$LIBS
21086 LIBS="-lm  $LIBS"
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h.  */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h.  */
21094 /* Override any GCC internal prototype to avoid an error.
21095    Use char because int might match the return type of a GCC
21096    builtin and then its argument prototype would still apply.  */
21097 #ifdef __cplusplus
21098 extern "C"
21099 #endif
21100 char acos ();
21101 int
21102 main ()
21104 return acos ();
21105   ;
21106   return 0;
21108 _ACEOF
21109 rm -f conftest.$ac_objext conftest$ac_exeext
21110 if { (ac_try="$ac_link"
21111 case "(($ac_try" in
21112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113   *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116   (eval "$ac_link") 2>conftest.er1
21117   ac_status=$?
21118   grep -v '^ *+' conftest.er1 >conftest.err
21119   rm -f conftest.er1
21120   cat conftest.err >&5
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } && {
21123          test -z "$ac_c_werror_flag" ||
21124          test ! -s conftest.err
21125        } && test -s conftest$ac_exeext &&
21126        $as_test_x conftest$ac_exeext; then
21127   ac_cv_lib_m_acos=yes
21128 else
21129   echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132         ac_cv_lib_m_acos=no
21135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21136       conftest$ac_exeext conftest.$ac_ext
21137 LIBS=$ac_check_lib_save_LIBS
21139 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5
21140 echo "${ECHO_T}$ac_cv_lib_m_acos" >&6; }
21141 if test $ac_cv_lib_m_acos = yes; then
21142   cat >>confdefs.h <<_ACEOF
21143 #define HAVE_LIBM 1
21144 _ACEOF
21146   LIBS="-lm $LIBS"
21155 eval `./libtool --config | grep pic_flag`
21156 CFLAGS="$CFLAGS $pic_flag"
21160 for ac_func in strftime
21162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21166   echo $ECHO_N "(cached) $ECHO_C" >&6
21167 else
21168   cat >conftest.$ac_ext <<_ACEOF
21169 /* confdefs.h.  */
21170 _ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h.  */
21174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21176 #define $ac_func innocuous_$ac_func
21178 /* System header to define __stub macros and hopefully few prototypes,
21179     which can conflict with char $ac_func (); below.
21180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21181     <limits.h> exists even on freestanding compilers.  */
21183 #ifdef __STDC__
21184 # include <limits.h>
21185 #else
21186 # include <assert.h>
21187 #endif
21189 #undef $ac_func
21191 /* Override any GCC internal prototype to avoid an error.
21192    Use char because int might match the return type of a GCC
21193    builtin and then its argument prototype would still apply.  */
21194 #ifdef __cplusplus
21195 extern "C"
21196 #endif
21197 char $ac_func ();
21198 /* The GNU C library defines this for functions which it implements
21199     to always fail with ENOSYS.  Some functions are actually named
21200     something starting with __ and the normal name is an alias.  */
21201 #if defined __stub_$ac_func || defined __stub___$ac_func
21202 choke me
21203 #endif
21205 int
21206 main ()
21208 return $ac_func ();
21209   ;
21210   return 0;
21212 _ACEOF
21213 rm -f conftest.$ac_objext conftest$ac_exeext
21214 if { (ac_try="$ac_link"
21215 case "(($ac_try" in
21216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217   *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220   (eval "$ac_link") 2>conftest.er1
21221   ac_status=$?
21222   grep -v '^ *+' conftest.er1 >conftest.err
21223   rm -f conftest.er1
21224   cat conftest.err >&5
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); } && {
21227          test -z "$ac_c_werror_flag" ||
21228          test ! -s conftest.err
21229        } && test -s conftest$ac_exeext &&
21230        $as_test_x conftest$ac_exeext; then
21231   eval "$as_ac_var=yes"
21232 else
21233   echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236         eval "$as_ac_var=no"
21239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21240       conftest$ac_exeext conftest.$ac_ext
21242 ac_res=`eval echo '${'$as_ac_var'}'`
21243                { echo "$as_me:$LINENO: result: $ac_res" >&5
21244 echo "${ECHO_T}$ac_res" >&6; }
21245 if test `eval echo '${'$as_ac_var'}'` = yes; then
21246   cat >>confdefs.h <<_ACEOF
21247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21248 _ACEOF
21250 else
21251   # strftime is in -lintl on SCO UNIX.
21252 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21253 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
21254 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21255   echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257   ac_check_lib_save_LIBS=$LIBS
21258 LIBS="-lintl  $LIBS"
21259 cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h.  */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h.  */
21266 /* Override any GCC internal prototype to avoid an error.
21267    Use char because int might match the return type of a GCC
21268    builtin and then its argument prototype would still apply.  */
21269 #ifdef __cplusplus
21270 extern "C"
21271 #endif
21272 char strftime ();
21273 int
21274 main ()
21276 return strftime ();
21277   ;
21278   return 0;
21280 _ACEOF
21281 rm -f conftest.$ac_objext conftest$ac_exeext
21282 if { (ac_try="$ac_link"
21283 case "(($ac_try" in
21284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285   *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288   (eval "$ac_link") 2>conftest.er1
21289   ac_status=$?
21290   grep -v '^ *+' conftest.er1 >conftest.err
21291   rm -f conftest.er1
21292   cat conftest.err >&5
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); } && {
21295          test -z "$ac_c_werror_flag" ||
21296          test ! -s conftest.err
21297        } && test -s conftest$ac_exeext &&
21298        $as_test_x conftest$ac_exeext; then
21299   ac_cv_lib_intl_strftime=yes
21300 else
21301   echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21304         ac_cv_lib_intl_strftime=no
21307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21308       conftest$ac_exeext conftest.$ac_ext
21309 LIBS=$ac_check_lib_save_LIBS
21311 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21312 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
21313 if test $ac_cv_lib_intl_strftime = yes; then
21314   cat >>confdefs.h <<\_ACEOF
21315 #define HAVE_STRFTIME 1
21316 _ACEOF
21318 LIBS="-lintl $LIBS"
21322 done
21325 for ac_func in vprintf
21327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21331   echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333   cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21341 #define $ac_func innocuous_$ac_func
21343 /* System header to define __stub macros and hopefully few prototypes,
21344     which can conflict with char $ac_func (); below.
21345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21346     <limits.h> exists even on freestanding compilers.  */
21348 #ifdef __STDC__
21349 # include <limits.h>
21350 #else
21351 # include <assert.h>
21352 #endif
21354 #undef $ac_func
21356 /* Override any GCC internal prototype to avoid an error.
21357    Use char because int might match the return type of a GCC
21358    builtin and then its argument prototype would still apply.  */
21359 #ifdef __cplusplus
21360 extern "C"
21361 #endif
21362 char $ac_func ();
21363 /* The GNU C library defines this for functions which it implements
21364     to always fail with ENOSYS.  Some functions are actually named
21365     something starting with __ and the normal name is an alias.  */
21366 #if defined __stub_$ac_func || defined __stub___$ac_func
21367 choke me
21368 #endif
21370 int
21371 main ()
21373 return $ac_func ();
21374   ;
21375   return 0;
21377 _ACEOF
21378 rm -f conftest.$ac_objext conftest$ac_exeext
21379 if { (ac_try="$ac_link"
21380 case "(($ac_try" in
21381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21382   *) ac_try_echo=$ac_try;;
21383 esac
21384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21385   (eval "$ac_link") 2>conftest.er1
21386   ac_status=$?
21387   grep -v '^ *+' conftest.er1 >conftest.err
21388   rm -f conftest.er1
21389   cat conftest.err >&5
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); } && {
21392          test -z "$ac_c_werror_flag" ||
21393          test ! -s conftest.err
21394        } && test -s conftest$ac_exeext &&
21395        $as_test_x conftest$ac_exeext; then
21396   eval "$as_ac_var=yes"
21397 else
21398   echo "$as_me: failed program was:" >&5
21399 sed 's/^/| /' conftest.$ac_ext >&5
21401         eval "$as_ac_var=no"
21404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21405       conftest$ac_exeext conftest.$ac_ext
21407 ac_res=`eval echo '${'$as_ac_var'}'`
21408                { echo "$as_me:$LINENO: result: $ac_res" >&5
21409 echo "${ECHO_T}$ac_res" >&6; }
21410 if test `eval echo '${'$as_ac_var'}'` = yes; then
21411   cat >>confdefs.h <<_ACEOF
21412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21413 _ACEOF
21415 { echo "$as_me:$LINENO: checking for _doprnt" >&5
21416 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
21417 if test "${ac_cv_func__doprnt+set}" = set; then
21418   echo $ECHO_N "(cached) $ECHO_C" >&6
21419 else
21420   cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h.  */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h.  */
21426 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21428 #define _doprnt innocuous__doprnt
21430 /* System header to define __stub macros and hopefully few prototypes,
21431     which can conflict with char _doprnt (); below.
21432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21433     <limits.h> exists even on freestanding compilers.  */
21435 #ifdef __STDC__
21436 # include <limits.h>
21437 #else
21438 # include <assert.h>
21439 #endif
21441 #undef _doprnt
21443 /* Override any GCC internal prototype to avoid an error.
21444    Use char because int might match the return type of a GCC
21445    builtin and then its argument prototype would still apply.  */
21446 #ifdef __cplusplus
21447 extern "C"
21448 #endif
21449 char _doprnt ();
21450 /* The GNU C library defines this for functions which it implements
21451     to always fail with ENOSYS.  Some functions are actually named
21452     something starting with __ and the normal name is an alias.  */
21453 #if defined __stub__doprnt || defined __stub____doprnt
21454 choke me
21455 #endif
21457 int
21458 main ()
21460 return _doprnt ();
21461   ;
21462   return 0;
21464 _ACEOF
21465 rm -f conftest.$ac_objext conftest$ac_exeext
21466 if { (ac_try="$ac_link"
21467 case "(($ac_try" in
21468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21469   *) ac_try_echo=$ac_try;;
21470 esac
21471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21472   (eval "$ac_link") 2>conftest.er1
21473   ac_status=$?
21474   grep -v '^ *+' conftest.er1 >conftest.err
21475   rm -f conftest.er1
21476   cat conftest.err >&5
21477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); } && {
21479          test -z "$ac_c_werror_flag" ||
21480          test ! -s conftest.err
21481        } && test -s conftest$ac_exeext &&
21482        $as_test_x conftest$ac_exeext; then
21483   ac_cv_func__doprnt=yes
21484 else
21485   echo "$as_me: failed program was:" >&5
21486 sed 's/^/| /' conftest.$ac_ext >&5
21488         ac_cv_func__doprnt=no
21491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21492       conftest$ac_exeext conftest.$ac_ext
21494 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21495 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
21496 if test $ac_cv_func__doprnt = yes; then
21498 cat >>confdefs.h <<\_ACEOF
21499 #define HAVE_DOPRNT 1
21500 _ACEOF
21505 done
21509 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21510 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21511 if test "${ac_cv_c_bigendian+set}" = set; then
21512   echo $ECHO_N "(cached) $ECHO_C" >&6
21513 else
21514   # See if sys/param.h defines the BYTE_ORDER macro.
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h.  */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h.  */
21521 #include <sys/types.h>
21522 #include <sys/param.h>
21524 int
21525 main ()
21527 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
21528         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
21529  bogus endian macros
21530 #endif
21532   ;
21533   return 0;
21535 _ACEOF
21536 rm -f conftest.$ac_objext
21537 if { (ac_try="$ac_compile"
21538 case "(($ac_try" in
21539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540   *) ac_try_echo=$ac_try;;
21541 esac
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543   (eval "$ac_compile") 2>conftest.er1
21544   ac_status=$?
21545   grep -v '^ *+' conftest.er1 >conftest.err
21546   rm -f conftest.er1
21547   cat conftest.err >&5
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); } && {
21550          test -z "$ac_c_werror_flag" ||
21551          test ! -s conftest.err
21552        } && test -s conftest.$ac_objext; then
21553   # It does; now see whether it defined to BIG_ENDIAN or not.
21554 cat >conftest.$ac_ext <<_ACEOF
21555 /* confdefs.h.  */
21556 _ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h.  */
21560 #include <sys/types.h>
21561 #include <sys/param.h>
21563 int
21564 main ()
21566 #if BYTE_ORDER != BIG_ENDIAN
21567  not big endian
21568 #endif
21570   ;
21571   return 0;
21573 _ACEOF
21574 rm -f conftest.$ac_objext
21575 if { (ac_try="$ac_compile"
21576 case "(($ac_try" in
21577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578   *) ac_try_echo=$ac_try;;
21579 esac
21580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21581   (eval "$ac_compile") 2>conftest.er1
21582   ac_status=$?
21583   grep -v '^ *+' conftest.er1 >conftest.err
21584   rm -f conftest.er1
21585   cat conftest.err >&5
21586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587   (exit $ac_status); } && {
21588          test -z "$ac_c_werror_flag" ||
21589          test ! -s conftest.err
21590        } && test -s conftest.$ac_objext; then
21591   ac_cv_c_bigendian=yes
21592 else
21593   echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21596         ac_cv_c_bigendian=no
21599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21600 else
21601   echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21604         # It does not; compile a test program.
21605 if test "$cross_compiling" = yes; then
21606   # try to guess the endianness by grepping values into an object file
21607   ac_cv_c_bigendian=unknown
21608   cat >conftest.$ac_ext <<_ACEOF
21609 /* confdefs.h.  */
21610 _ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h.  */
21614 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21615 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21616 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21617 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21618 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21619 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21620 int
21621 main ()
21623  _ascii (); _ebcdic ();
21624   ;
21625   return 0;
21627 _ACEOF
21628 rm -f conftest.$ac_objext
21629 if { (ac_try="$ac_compile"
21630 case "(($ac_try" in
21631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632   *) ac_try_echo=$ac_try;;
21633 esac
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635   (eval "$ac_compile") 2>conftest.er1
21636   ac_status=$?
21637   grep -v '^ *+' conftest.er1 >conftest.err
21638   rm -f conftest.er1
21639   cat conftest.err >&5
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); } && {
21642          test -z "$ac_c_werror_flag" ||
21643          test ! -s conftest.err
21644        } && test -s conftest.$ac_objext; then
21645   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21646   ac_cv_c_bigendian=yes
21648 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21649   if test "$ac_cv_c_bigendian" = unknown; then
21650     ac_cv_c_bigendian=no
21651   else
21652     # finding both strings is unlikely to happen, but who knows?
21653     ac_cv_c_bigendian=unknown
21654   fi
21656 else
21657   echo "$as_me: failed program was:" >&5
21658 sed 's/^/| /' conftest.$ac_ext >&5
21663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21664 else
21665   cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h.  */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h.  */
21671 $ac_includes_default
21672 int
21673 main ()
21676   /* Are we little or big endian?  From Harbison&Steele.  */
21677   union
21678   {
21679     long int l;
21680     char c[sizeof (long int)];
21681   } u;
21682   u.l = 1;
21683   return u.c[sizeof (long int) - 1] == 1;
21685   ;
21686   return 0;
21688 _ACEOF
21689 rm -f conftest$ac_exeext
21690 if { (ac_try="$ac_link"
21691 case "(($ac_try" in
21692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693   *) ac_try_echo=$ac_try;;
21694 esac
21695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21696   (eval "$ac_link") 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21700   { (case "(($ac_try" in
21701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702   *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705   (eval "$ac_try") 2>&5
21706   ac_status=$?
21707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708   (exit $ac_status); }; }; then
21709   ac_cv_c_bigendian=no
21710 else
21711   echo "$as_me: program exited with status $ac_status" >&5
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ( exit $ac_status )
21716 ac_cv_c_bigendian=yes
21718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21726 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21727 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21728 case $ac_cv_c_bigendian in
21729   yes)
21731 cat >>confdefs.h <<\_ACEOF
21732 #define WORDS_BIGENDIAN 1
21733 _ACEOF
21734  ;;
21735   no)
21736      ;;
21737   *)
21738     { { echo "$as_me:$LINENO: error: unknown endianness
21739 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21740 echo "$as_me: error: unknown endianness
21741 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21742    { (exit 1); exit 1; }; } ;;
21743 esac
21769 for ac_func in tzset fsync mbstowcs opendir readdir chdir chroot getuid setlocale strerror strerror_r snprintf vsnprintf fpclass class fp_class isnan memmove strchr mktime getrusage gettimeofday
21771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21775   echo $ECHO_N "(cached) $ECHO_C" >&6
21776 else
21777   cat >conftest.$ac_ext <<_ACEOF
21778 /* confdefs.h.  */
21779 _ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h.  */
21783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21785 #define $ac_func innocuous_$ac_func
21787 /* System header to define __stub macros and hopefully few prototypes,
21788     which can conflict with char $ac_func (); below.
21789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21790     <limits.h> exists even on freestanding compilers.  */
21792 #ifdef __STDC__
21793 # include <limits.h>
21794 #else
21795 # include <assert.h>
21796 #endif
21798 #undef $ac_func
21800 /* Override any GCC internal prototype to avoid an error.
21801    Use char because int might match the return type of a GCC
21802    builtin and then its argument prototype would still apply.  */
21803 #ifdef __cplusplus
21804 extern "C"
21805 #endif
21806 char $ac_func ();
21807 /* The GNU C library defines this for functions which it implements
21808     to always fail with ENOSYS.  Some functions are actually named
21809     something starting with __ and the normal name is an alias.  */
21810 #if defined __stub_$ac_func || defined __stub___$ac_func
21811 choke me
21812 #endif
21814 int
21815 main ()
21817 return $ac_func ();
21818   ;
21819   return 0;
21821 _ACEOF
21822 rm -f conftest.$ac_objext conftest$ac_exeext
21823 if { (ac_try="$ac_link"
21824 case "(($ac_try" in
21825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826   *) ac_try_echo=$ac_try;;
21827 esac
21828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21829   (eval "$ac_link") 2>conftest.er1
21830   ac_status=$?
21831   grep -v '^ *+' conftest.er1 >conftest.err
21832   rm -f conftest.er1
21833   cat conftest.err >&5
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); } && {
21836          test -z "$ac_c_werror_flag" ||
21837          test ! -s conftest.err
21838        } && test -s conftest$ac_exeext &&
21839        $as_test_x conftest$ac_exeext; then
21840   eval "$as_ac_var=yes"
21841 else
21842   echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21845         eval "$as_ac_var=no"
21848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21849       conftest$ac_exeext conftest.$ac_ext
21851 ac_res=`eval echo '${'$as_ac_var'}'`
21852                { echo "$as_me:$LINENO: result: $ac_res" >&5
21853 echo "${ECHO_T}$ac_res" >&6; }
21854 if test `eval echo '${'$as_ac_var'}'` = yes; then
21855   cat >>confdefs.h <<_ACEOF
21856 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21857 _ACEOF
21860 done
21864 case $TERM in
21865        #   for the most important terminal types we directly know the sequences
21866        xterm|xterm*|vt220|vt220*)
21867                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
21868                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
21869        ;;
21870        vt100|vt100*|cygwin)
21871                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
21872                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
21873        ;;
21874        *)
21875                T_MD=''
21876                T_ME=''
21877        ;;
21878 esac
21879   { echo "$as_me:$LINENO: result: " >&5
21880 echo "${ECHO_T}" >&6; }
21881   { echo "$as_me:$LINENO: result: ${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&5
21882 echo "${ECHO_T}${T_MD}Map/Fadvis/Madvise checking${T_ME}" >&6; }
21888 for ac_func in fdatasync
21890 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21893 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21894   echo $ECHO_N "(cached) $ECHO_C" >&6
21895 else
21896   cat >conftest.$ac_ext <<_ACEOF
21897 /* confdefs.h.  */
21898 _ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h.  */
21902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21903    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21904 #define $ac_func innocuous_$ac_func
21906 /* System header to define __stub macros and hopefully few prototypes,
21907     which can conflict with char $ac_func (); below.
21908     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21909     <limits.h> exists even on freestanding compilers.  */
21911 #ifdef __STDC__
21912 # include <limits.h>
21913 #else
21914 # include <assert.h>
21915 #endif
21917 #undef $ac_func
21919 /* Override any GCC internal prototype to avoid an error.
21920    Use char because int might match the return type of a GCC
21921    builtin and then its argument prototype would still apply.  */
21922 #ifdef __cplusplus
21923 extern "C"
21924 #endif
21925 char $ac_func ();
21926 /* The GNU C library defines this for functions which it implements
21927     to always fail with ENOSYS.  Some functions are actually named
21928     something starting with __ and the normal name is an alias.  */
21929 #if defined __stub_$ac_func || defined __stub___$ac_func
21930 choke me
21931 #endif
21933 int
21934 main ()
21936 return $ac_func ();
21937   ;
21938   return 0;
21940 _ACEOF
21941 rm -f conftest.$ac_objext conftest$ac_exeext
21942 if { (ac_try="$ac_link"
21943 case "(($ac_try" in
21944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945   *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948   (eval "$ac_link") 2>conftest.er1
21949   ac_status=$?
21950   grep -v '^ *+' conftest.er1 >conftest.err
21951   rm -f conftest.er1
21952   cat conftest.err >&5
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); } && {
21955          test -z "$ac_c_werror_flag" ||
21956          test ! -s conftest.err
21957        } && test -s conftest$ac_exeext &&
21958        $as_test_x conftest$ac_exeext; then
21959   eval "$as_ac_var=yes"
21960 else
21961   echo "$as_me: failed program was:" >&5
21962 sed 's/^/| /' conftest.$ac_ext >&5
21964         eval "$as_ac_var=no"
21967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21968       conftest$ac_exeext conftest.$ac_ext
21970 ac_res=`eval echo '${'$as_ac_var'}'`
21971                { echo "$as_me:$LINENO: result: $ac_res" >&5
21972 echo "${ECHO_T}$ac_res" >&6; }
21973 if test `eval echo '${'$as_ac_var'}'` = yes; then
21974   cat >>confdefs.h <<_ACEOF
21975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21976 _ACEOF
21978 else
21979   { echo "$as_me:$LINENO: checking for fdatasync in -lrt" >&5
21980 echo $ECHO_N "checking for fdatasync in -lrt... $ECHO_C" >&6; }
21981 if test "${ac_cv_lib_rt_fdatasync+set}" = set; then
21982   echo $ECHO_N "(cached) $ECHO_C" >&6
21983 else
21984   ac_check_lib_save_LIBS=$LIBS
21985 LIBS="-lrt  $LIBS"
21986 cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h.  */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h.  */
21993 /* Override any GCC internal prototype to avoid an error.
21994    Use char because int might match the return type of a GCC
21995    builtin and then its argument prototype would still apply.  */
21996 #ifdef __cplusplus
21997 extern "C"
21998 #endif
21999 char fdatasync ();
22000 int
22001 main ()
22003 return fdatasync ();
22004   ;
22005   return 0;
22007 _ACEOF
22008 rm -f conftest.$ac_objext conftest$ac_exeext
22009 if { (ac_try="$ac_link"
22010 case "(($ac_try" in
22011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22012   *) ac_try_echo=$ac_try;;
22013 esac
22014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22015   (eval "$ac_link") 2>conftest.er1
22016   ac_status=$?
22017   grep -v '^ *+' conftest.er1 >conftest.err
22018   rm -f conftest.er1
22019   cat conftest.err >&5
22020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); } && {
22022          test -z "$ac_c_werror_flag" ||
22023          test ! -s conftest.err
22024        } && test -s conftest$ac_exeext &&
22025        $as_test_x conftest$ac_exeext; then
22026   ac_cv_lib_rt_fdatasync=yes
22027 else
22028   echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22031         ac_cv_lib_rt_fdatasync=no
22034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22035       conftest$ac_exeext conftest.$ac_ext
22036 LIBS=$ac_check_lib_save_LIBS
22038 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_fdatasync" >&5
22039 echo "${ECHO_T}$ac_cv_lib_rt_fdatasync" >&6; }
22040 if test $ac_cv_lib_rt_fdatasync = yes; then
22041   LIBS="${LIBS} -lrt"; cat >>confdefs.h <<\_ACEOF
22042 #define HAVE_FDATASYNC 1
22043 _ACEOF
22048 done
22051 for ac_func in fsync
22053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22057   echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059   cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h.  */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h.  */
22065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22067 #define $ac_func innocuous_$ac_func
22069 /* System header to define __stub macros and hopefully few prototypes,
22070     which can conflict with char $ac_func (); below.
22071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22072     <limits.h> exists even on freestanding compilers.  */
22074 #ifdef __STDC__
22075 # include <limits.h>
22076 #else
22077 # include <assert.h>
22078 #endif
22080 #undef $ac_func
22082 /* Override any GCC internal prototype to avoid an error.
22083    Use char because int might match the return type of a GCC
22084    builtin and then its argument prototype would still apply.  */
22085 #ifdef __cplusplus
22086 extern "C"
22087 #endif
22088 char $ac_func ();
22089 /* The GNU C library defines this for functions which it implements
22090     to always fail with ENOSYS.  Some functions are actually named
22091     something starting with __ and the normal name is an alias.  */
22092 #if defined __stub_$ac_func || defined __stub___$ac_func
22093 choke me
22094 #endif
22096 int
22097 main ()
22099 return $ac_func ();
22100   ;
22101   return 0;
22103 _ACEOF
22104 rm -f conftest.$ac_objext conftest$ac_exeext
22105 if { (ac_try="$ac_link"
22106 case "(($ac_try" in
22107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108   *) ac_try_echo=$ac_try;;
22109 esac
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111   (eval "$ac_link") 2>conftest.er1
22112   ac_status=$?
22113   grep -v '^ *+' conftest.er1 >conftest.err
22114   rm -f conftest.er1
22115   cat conftest.err >&5
22116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); } && {
22118          test -z "$ac_c_werror_flag" ||
22119          test ! -s conftest.err
22120        } && test -s conftest$ac_exeext &&
22121        $as_test_x conftest$ac_exeext; then
22122   eval "$as_ac_var=yes"
22123 else
22124   echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127         eval "$as_ac_var=no"
22130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22131       conftest$ac_exeext conftest.$ac_ext
22133 ac_res=`eval echo '${'$as_ac_var'}'`
22134                { echo "$as_me:$LINENO: result: $ac_res" >&5
22135 echo "${ECHO_T}$ac_res" >&6; }
22136 if test `eval echo '${'$as_ac_var'}'` = yes; then
22137   cat >>confdefs.h <<_ACEOF
22138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22139 _ACEOF
22142 done
22146 if test "x$enable_mmap" = "xyes"; then
22147   case "$host" in
22148   *cygwin*)
22149     # the normal mmap test does not work in cygwin
22151 for ac_func in mmap
22153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22157   echo $ECHO_N "(cached) $ECHO_C" >&6
22158 else
22159   cat >conftest.$ac_ext <<_ACEOF
22160 /* confdefs.h.  */
22161 _ACEOF
22162 cat confdefs.h >>conftest.$ac_ext
22163 cat >>conftest.$ac_ext <<_ACEOF
22164 /* end confdefs.h.  */
22165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22167 #define $ac_func innocuous_$ac_func
22169 /* System header to define __stub macros and hopefully few prototypes,
22170     which can conflict with char $ac_func (); below.
22171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22172     <limits.h> exists even on freestanding compilers.  */
22174 #ifdef __STDC__
22175 # include <limits.h>
22176 #else
22177 # include <assert.h>
22178 #endif
22180 #undef $ac_func
22182 /* Override any GCC internal prototype to avoid an error.
22183    Use char because int might match the return type of a GCC
22184    builtin and then its argument prototype would still apply.  */
22185 #ifdef __cplusplus
22186 extern "C"
22187 #endif
22188 char $ac_func ();
22189 /* The GNU C library defines this for functions which it implements
22190     to always fail with ENOSYS.  Some functions are actually named
22191     something starting with __ and the normal name is an alias.  */
22192 #if defined __stub_$ac_func || defined __stub___$ac_func
22193 choke me
22194 #endif
22196 int
22197 main ()
22199 return $ac_func ();
22200   ;
22201   return 0;
22203 _ACEOF
22204 rm -f conftest.$ac_objext conftest$ac_exeext
22205 if { (ac_try="$ac_link"
22206 case "(($ac_try" in
22207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208   *) ac_try_echo=$ac_try;;
22209 esac
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211   (eval "$ac_link") 2>conftest.er1
22212   ac_status=$?
22213   grep -v '^ *+' conftest.er1 >conftest.err
22214   rm -f conftest.er1
22215   cat conftest.err >&5
22216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217   (exit $ac_status); } && {
22218          test -z "$ac_c_werror_flag" ||
22219          test ! -s conftest.err
22220        } && test -s conftest$ac_exeext &&
22221        $as_test_x conftest$ac_exeext; then
22222   eval "$as_ac_var=yes"
22223 else
22224   echo "$as_me: failed program was:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227         eval "$as_ac_var=no"
22230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22231       conftest$ac_exeext conftest.$ac_ext
22233 ac_res=`eval echo '${'$as_ac_var'}'`
22234                { echo "$as_me:$LINENO: result: $ac_res" >&5
22235 echo "${ECHO_T}$ac_res" >&6; }
22236 if test `eval echo '${'$as_ac_var'}'` = yes; then
22237   cat >>confdefs.h <<_ACEOF
22238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22239 _ACEOF
22242 done
22244     if test "x$ac_cv_func_mmap" = "xyes"; then
22245       ac_cv_func_mmap_fixed_mapped=yes
22246     fi
22247   ;;
22248   *)
22250 for ac_header in sys/mman.h
22252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22254   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22257   echo $ECHO_N "(cached) $ECHO_C" >&6
22259 ac_res=`eval echo '${'$as_ac_Header'}'`
22260                { echo "$as_me:$LINENO: result: $ac_res" >&5
22261 echo "${ECHO_T}$ac_res" >&6; }
22262 else
22263   # Is the header compilable?
22264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22266 cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h.  */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h.  */
22272 $ac_includes_default
22273 #include <$ac_header>
22274 _ACEOF
22275 rm -f conftest.$ac_objext
22276 if { (ac_try="$ac_compile"
22277 case "(($ac_try" in
22278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279   *) ac_try_echo=$ac_try;;
22280 esac
22281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22282   (eval "$ac_compile") 2>conftest.er1
22283   ac_status=$?
22284   grep -v '^ *+' conftest.er1 >conftest.err
22285   rm -f conftest.er1
22286   cat conftest.err >&5
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); } && {
22289          test -z "$ac_c_werror_flag" ||
22290          test ! -s conftest.err
22291        } && test -s conftest.$ac_objext; then
22292   ac_header_compiler=yes
22293 else
22294   echo "$as_me: failed program was:" >&5
22295 sed 's/^/| /' conftest.$ac_ext >&5
22297         ac_header_compiler=no
22300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22302 echo "${ECHO_T}$ac_header_compiler" >&6; }
22304 # Is the header present?
22305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22307 cat >conftest.$ac_ext <<_ACEOF
22308 /* confdefs.h.  */
22309 _ACEOF
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h.  */
22313 #include <$ac_header>
22314 _ACEOF
22315 if { (ac_try="$ac_cpp conftest.$ac_ext"
22316 case "(($ac_try" in
22317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318   *) ac_try_echo=$ac_try;;
22319 esac
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22322   ac_status=$?
22323   grep -v '^ *+' conftest.er1 >conftest.err
22324   rm -f conftest.er1
22325   cat conftest.err >&5
22326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22327   (exit $ac_status); } >/dev/null && {
22328          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22329          test ! -s conftest.err
22330        }; then
22331   ac_header_preproc=yes
22332 else
22333   echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22336   ac_header_preproc=no
22339 rm -f conftest.err conftest.$ac_ext
22340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22341 echo "${ECHO_T}$ac_header_preproc" >&6; }
22343 # So?  What about this header?
22344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22345   yes:no: )
22346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22350     ac_header_preproc=yes
22351     ;;
22352   no:yes:* )
22353     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22355     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22356 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22357     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22359     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22360 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22363     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22366     ;;
22367 esac
22368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22371   echo $ECHO_N "(cached) $ECHO_C" >&6
22372 else
22373   eval "$as_ac_Header=\$ac_header_preproc"
22375 ac_res=`eval echo '${'$as_ac_Header'}'`
22376                { echo "$as_me:$LINENO: result: $ac_res" >&5
22377 echo "${ECHO_T}$ac_res" >&6; }
22380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22381   cat >>confdefs.h <<_ACEOF
22382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22383 _ACEOF
22387 done
22391 for ac_header in stdlib.h unistd.h
22393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22395   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22398   echo $ECHO_N "(cached) $ECHO_C" >&6
22400 ac_res=`eval echo '${'$as_ac_Header'}'`
22401                { echo "$as_me:$LINENO: result: $ac_res" >&5
22402 echo "${ECHO_T}$ac_res" >&6; }
22403 else
22404   # Is the header compilable?
22405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22407 cat >conftest.$ac_ext <<_ACEOF
22408 /* confdefs.h.  */
22409 _ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h.  */
22413 $ac_includes_default
22414 #include <$ac_header>
22415 _ACEOF
22416 rm -f conftest.$ac_objext
22417 if { (ac_try="$ac_compile"
22418 case "(($ac_try" in
22419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420   *) ac_try_echo=$ac_try;;
22421 esac
22422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423   (eval "$ac_compile") 2>conftest.er1
22424   ac_status=$?
22425   grep -v '^ *+' conftest.er1 >conftest.err
22426   rm -f conftest.er1
22427   cat conftest.err >&5
22428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429   (exit $ac_status); } && {
22430          test -z "$ac_c_werror_flag" ||
22431          test ! -s conftest.err
22432        } && test -s conftest.$ac_objext; then
22433   ac_header_compiler=yes
22434 else
22435   echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.$ac_ext >&5
22438         ac_header_compiler=no
22441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22443 echo "${ECHO_T}$ac_header_compiler" >&6; }
22445 # Is the header present?
22446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22448 cat >conftest.$ac_ext <<_ACEOF
22449 /* confdefs.h.  */
22450 _ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h.  */
22454 #include <$ac_header>
22455 _ACEOF
22456 if { (ac_try="$ac_cpp conftest.$ac_ext"
22457 case "(($ac_try" in
22458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459   *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22463   ac_status=$?
22464   grep -v '^ *+' conftest.er1 >conftest.err
22465   rm -f conftest.er1
22466   cat conftest.err >&5
22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468   (exit $ac_status); } >/dev/null && {
22469          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22470          test ! -s conftest.err
22471        }; then
22472   ac_header_preproc=yes
22473 else
22474   echo "$as_me: failed program was:" >&5
22475 sed 's/^/| /' conftest.$ac_ext >&5
22477   ac_header_preproc=no
22480 rm -f conftest.err conftest.$ac_ext
22481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22482 echo "${ECHO_T}$ac_header_preproc" >&6; }
22484 # So?  What about this header?
22485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22486   yes:no: )
22487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22491     ac_header_preproc=yes
22492     ;;
22493   no:yes:* )
22494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22507     ;;
22508 esac
22509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22512   echo $ECHO_N "(cached) $ECHO_C" >&6
22513 else
22514   eval "$as_ac_Header=\$ac_header_preproc"
22516 ac_res=`eval echo '${'$as_ac_Header'}'`
22517                { echo "$as_me:$LINENO: result: $ac_res" >&5
22518 echo "${ECHO_T}$ac_res" >&6; }
22521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22522   cat >>confdefs.h <<_ACEOF
22523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22524 _ACEOF
22528 done
22531 for ac_func in getpagesize
22533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22537   echo $ECHO_N "(cached) $ECHO_C" >&6
22538 else
22539   cat >conftest.$ac_ext <<_ACEOF
22540 /* confdefs.h.  */
22541 _ACEOF
22542 cat confdefs.h >>conftest.$ac_ext
22543 cat >>conftest.$ac_ext <<_ACEOF
22544 /* end confdefs.h.  */
22545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22546    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22547 #define $ac_func innocuous_$ac_func
22549 /* System header to define __stub macros and hopefully few prototypes,
22550     which can conflict with char $ac_func (); below.
22551     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22552     <limits.h> exists even on freestanding compilers.  */
22554 #ifdef __STDC__
22555 # include <limits.h>
22556 #else
22557 # include <assert.h>
22558 #endif
22560 #undef $ac_func
22562 /* Override any GCC internal prototype to avoid an error.
22563    Use char because int might match the return type of a GCC
22564    builtin and then its argument prototype would still apply.  */
22565 #ifdef __cplusplus
22566 extern "C"
22567 #endif
22568 char $ac_func ();
22569 /* The GNU C library defines this for functions which it implements
22570     to always fail with ENOSYS.  Some functions are actually named
22571     something starting with __ and the normal name is an alias.  */
22572 #if defined __stub_$ac_func || defined __stub___$ac_func
22573 choke me
22574 #endif
22576 int
22577 main ()
22579 return $ac_func ();
22580   ;
22581   return 0;
22583 _ACEOF
22584 rm -f conftest.$ac_objext conftest$ac_exeext
22585 if { (ac_try="$ac_link"
22586 case "(($ac_try" in
22587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22588   *) ac_try_echo=$ac_try;;
22589 esac
22590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22591   (eval "$ac_link") 2>conftest.er1
22592   ac_status=$?
22593   grep -v '^ *+' conftest.er1 >conftest.err
22594   rm -f conftest.er1
22595   cat conftest.err >&5
22596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597   (exit $ac_status); } && {
22598          test -z "$ac_c_werror_flag" ||
22599          test ! -s conftest.err
22600        } && test -s conftest$ac_exeext &&
22601        $as_test_x conftest$ac_exeext; then
22602   eval "$as_ac_var=yes"
22603 else
22604   echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22607         eval "$as_ac_var=no"
22610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22611       conftest$ac_exeext conftest.$ac_ext
22613 ac_res=`eval echo '${'$as_ac_var'}'`
22614                { echo "$as_me:$LINENO: result: $ac_res" >&5
22615 echo "${ECHO_T}$ac_res" >&6; }
22616 if test `eval echo '${'$as_ac_var'}'` = yes; then
22617   cat >>confdefs.h <<_ACEOF
22618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22619 _ACEOF
22622 done
22624 { echo "$as_me:$LINENO: checking for working mmap" >&5
22625 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
22626 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22627   echo $ECHO_N "(cached) $ECHO_C" >&6
22628 else
22629   if test "$cross_compiling" = yes; then
22630   ac_cv_func_mmap_fixed_mapped=no
22631 else
22632   cat >conftest.$ac_ext <<_ACEOF
22633 /* confdefs.h.  */
22634 _ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h.  */
22638 $ac_includes_default
22639 /* malloc might have been renamed as rpl_malloc. */
22640 #undef malloc
22642 /* Thanks to Mike Haertel and Jim Avera for this test.
22643    Here is a matrix of mmap possibilities:
22644         mmap private not fixed
22645         mmap private fixed at somewhere currently unmapped
22646         mmap private fixed at somewhere already mapped
22647         mmap shared not fixed
22648         mmap shared fixed at somewhere currently unmapped
22649         mmap shared fixed at somewhere already mapped
22650    For private mappings, we should verify that changes cannot be read()
22651    back from the file, nor mmap's back from the file at a different
22652    address.  (There have been systems where private was not correctly
22653    implemented like the infamous i386 svr4.0, and systems where the
22654    VM page cache was not coherent with the file system buffer cache
22655    like early versions of FreeBSD and possibly contemporary NetBSD.)
22656    For shared mappings, we should conversely verify that changes get
22657    propagated back to all the places they're supposed to be.
22659    Grep wants private fixed already mapped.
22660    The main things grep needs to know about mmap are:
22661    * does it exist and is it safe to write into the mmap'd area
22662    * how to use it (BSD variants)  */
22664 #include <fcntl.h>
22665 #include <sys/mman.h>
22667 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22668 char *malloc ();
22669 #endif
22671 /* This mess was copied from the GNU getpagesize.h.  */
22672 #ifndef HAVE_GETPAGESIZE
22673 /* Assume that all systems that can run configure have sys/param.h.  */
22674 # ifndef HAVE_SYS_PARAM_H
22675 #  define HAVE_SYS_PARAM_H 1
22676 # endif
22678 # ifdef _SC_PAGESIZE
22679 #  define getpagesize() sysconf(_SC_PAGESIZE)
22680 # else /* no _SC_PAGESIZE */
22681 #  ifdef HAVE_SYS_PARAM_H
22682 #   include <sys/param.h>
22683 #   ifdef EXEC_PAGESIZE
22684 #    define getpagesize() EXEC_PAGESIZE
22685 #   else /* no EXEC_PAGESIZE */
22686 #    ifdef NBPG
22687 #     define getpagesize() NBPG * CLSIZE
22688 #     ifndef CLSIZE
22689 #      define CLSIZE 1
22690 #     endif /* no CLSIZE */
22691 #    else /* no NBPG */
22692 #     ifdef NBPC
22693 #      define getpagesize() NBPC
22694 #     else /* no NBPC */
22695 #      ifdef PAGESIZE
22696 #       define getpagesize() PAGESIZE
22697 #      endif /* PAGESIZE */
22698 #     endif /* no NBPC */
22699 #    endif /* no NBPG */
22700 #   endif /* no EXEC_PAGESIZE */
22701 #  else /* no HAVE_SYS_PARAM_H */
22702 #   define getpagesize() 8192   /* punt totally */
22703 #  endif /* no HAVE_SYS_PARAM_H */
22704 # endif /* no _SC_PAGESIZE */
22706 #endif /* no HAVE_GETPAGESIZE */
22708 int
22709 main ()
22711   char *data, *data2, *data3;
22712   int i, pagesize;
22713   int fd;
22715   pagesize = getpagesize ();
22717   /* First, make a file with some known garbage in it. */
22718   data = (char *) malloc (pagesize);
22719   if (!data)
22720     return 1;
22721   for (i = 0; i < pagesize; ++i)
22722     *(data + i) = rand ();
22723   umask (0);
22724   fd = creat ("conftest.mmap", 0600);
22725   if (fd < 0)
22726     return 1;
22727   if (write (fd, data, pagesize) != pagesize)
22728     return 1;
22729   close (fd);
22731   /* Next, try to mmap the file at a fixed address which already has
22732      something else allocated at it.  If we can, also make sure that
22733      we see the same garbage.  */
22734   fd = open ("conftest.mmap", O_RDWR);
22735   if (fd < 0)
22736     return 1;
22737   data2 = (char *) malloc (2 * pagesize);
22738   if (!data2)
22739     return 1;
22740   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22741   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22742                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
22743     return 1;
22744   for (i = 0; i < pagesize; ++i)
22745     if (*(data + i) != *(data2 + i))
22746       return 1;
22748   /* Finally, make sure that changes to the mapped area do not
22749      percolate back to the file as seen by read().  (This is a bug on
22750      some variants of i386 svr4.0.)  */
22751   for (i = 0; i < pagesize; ++i)
22752     *(data2 + i) = *(data2 + i) + 1;
22753   data3 = (char *) malloc (pagesize);
22754   if (!data3)
22755     return 1;
22756   if (read (fd, data3, pagesize) != pagesize)
22757     return 1;
22758   for (i = 0; i < pagesize; ++i)
22759     if (*(data + i) != *(data3 + i))
22760       return 1;
22761   close (fd);
22762   return 0;
22764 _ACEOF
22765 rm -f conftest$ac_exeext
22766 if { (ac_try="$ac_link"
22767 case "(($ac_try" in
22768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769   *) ac_try_echo=$ac_try;;
22770 esac
22771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22772   (eval "$ac_link") 2>&5
22773   ac_status=$?
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22776   { (case "(($ac_try" in
22777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778   *) ac_try_echo=$ac_try;;
22779 esac
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781   (eval "$ac_try") 2>&5
22782   ac_status=$?
22783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784   (exit $ac_status); }; }; then
22785   ac_cv_func_mmap_fixed_mapped=yes
22786 else
22787   echo "$as_me: program exited with status $ac_status" >&5
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22791 ( exit $ac_status )
22792 ac_cv_func_mmap_fixed_mapped=no
22794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22799 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22800 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
22801 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22803 cat >>confdefs.h <<\_ACEOF
22804 #define HAVE_MMAP 1
22805 _ACEOF
22808 rm -f conftest.mmap
22813 for ac_func in mmap munmap msync
22815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22819   echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22821   cat >conftest.$ac_ext <<_ACEOF
22822 /* confdefs.h.  */
22823 _ACEOF
22824 cat confdefs.h >>conftest.$ac_ext
22825 cat >>conftest.$ac_ext <<_ACEOF
22826 /* end confdefs.h.  */
22827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22829 #define $ac_func innocuous_$ac_func
22831 /* System header to define __stub macros and hopefully few prototypes,
22832     which can conflict with char $ac_func (); below.
22833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22834     <limits.h> exists even on freestanding compilers.  */
22836 #ifdef __STDC__
22837 # include <limits.h>
22838 #else
22839 # include <assert.h>
22840 #endif
22842 #undef $ac_func
22844 /* Override any GCC internal prototype to avoid an error.
22845    Use char because int might match the return type of a GCC
22846    builtin and then its argument prototype would still apply.  */
22847 #ifdef __cplusplus
22848 extern "C"
22849 #endif
22850 char $ac_func ();
22851 /* The GNU C library defines this for functions which it implements
22852     to always fail with ENOSYS.  Some functions are actually named
22853     something starting with __ and the normal name is an alias.  */
22854 #if defined __stub_$ac_func || defined __stub___$ac_func
22855 choke me
22856 #endif
22858 int
22859 main ()
22861 return $ac_func ();
22862   ;
22863   return 0;
22865 _ACEOF
22866 rm -f conftest.$ac_objext conftest$ac_exeext
22867 if { (ac_try="$ac_link"
22868 case "(($ac_try" in
22869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870   *) ac_try_echo=$ac_try;;
22871 esac
22872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22873   (eval "$ac_link") 2>conftest.er1
22874   ac_status=$?
22875   grep -v '^ *+' conftest.er1 >conftest.err
22876   rm -f conftest.er1
22877   cat conftest.err >&5
22878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879   (exit $ac_status); } && {
22880          test -z "$ac_c_werror_flag" ||
22881          test ! -s conftest.err
22882        } && test -s conftest$ac_exeext &&
22883        $as_test_x conftest$ac_exeext; then
22884   eval "$as_ac_var=yes"
22885 else
22886   echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.$ac_ext >&5
22889         eval "$as_ac_var=no"
22892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22893       conftest$ac_exeext conftest.$ac_ext
22895 ac_res=`eval echo '${'$as_ac_var'}'`
22896                { echo "$as_me:$LINENO: result: $ac_res" >&5
22897 echo "${ECHO_T}$ac_res" >&6; }
22898 if test `eval echo '${'$as_ac_var'}'` = yes; then
22899   cat >>confdefs.h <<_ACEOF
22900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22901 _ACEOF
22904 done
22906     { echo "$as_me:$LINENO: checking whether madvise is declared" >&5
22907 echo $ECHO_N "checking whether madvise is declared... $ECHO_C" >&6; }
22908 if test "${ac_cv_have_decl_madvise+set}" = set; then
22909   echo $ECHO_N "(cached) $ECHO_C" >&6
22910 else
22911   cat >conftest.$ac_ext <<_ACEOF
22912 /* confdefs.h.  */
22913 _ACEOF
22914 cat confdefs.h >>conftest.$ac_ext
22915 cat >>conftest.$ac_ext <<_ACEOF
22916 /* end confdefs.h.  */
22917 #ifdef HAVE_SYS_MMAN_H
22918                                      # include <sys/mman.h>
22919                                      #endif
22921 int
22922 main ()
22924 #ifndef madvise
22925   (void) madvise;
22926 #endif
22928   ;
22929   return 0;
22931 _ACEOF
22932 rm -f conftest.$ac_objext
22933 if { (ac_try="$ac_compile"
22934 case "(($ac_try" in
22935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936   *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939   (eval "$ac_compile") 2>conftest.er1
22940   ac_status=$?
22941   grep -v '^ *+' conftest.er1 >conftest.err
22942   rm -f conftest.er1
22943   cat conftest.err >&5
22944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945   (exit $ac_status); } && {
22946          test -z "$ac_c_werror_flag" ||
22947          test ! -s conftest.err
22948        } && test -s conftest.$ac_objext; then
22949   ac_cv_have_decl_madvise=yes
22950 else
22951   echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22954         ac_cv_have_decl_madvise=no
22957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22959 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
22960 echo "${ECHO_T}$ac_cv_have_decl_madvise" >&6; }
22961 if test $ac_cv_have_decl_madvise = yes; then
22963 cat >>confdefs.h <<_ACEOF
22964 #define HAVE_DECL_MADVISE 1
22965 _ACEOF
22968 else
22969   cat >>confdefs.h <<_ACEOF
22970 #define HAVE_DECL_MADVISE 0
22971 _ACEOF
22977     if test "x$ac_cv_have_decl_madvise" = "xyes";
22978     then
22980 for ac_func in madvise
22982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22983 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22985 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22986   echo $ECHO_N "(cached) $ECHO_C" >&6
22987 else
22988   cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h.  */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h.  */
22994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22996 #define $ac_func innocuous_$ac_func
22998 /* System header to define __stub macros and hopefully few prototypes,
22999     which can conflict with char $ac_func (); below.
23000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23001     <limits.h> exists even on freestanding compilers.  */
23003 #ifdef __STDC__
23004 # include <limits.h>
23005 #else
23006 # include <assert.h>
23007 #endif
23009 #undef $ac_func
23011 /* Override any GCC internal prototype to avoid an error.
23012    Use char because int might match the return type of a GCC
23013    builtin and then its argument prototype would still apply.  */
23014 #ifdef __cplusplus
23015 extern "C"
23016 #endif
23017 char $ac_func ();
23018 /* The GNU C library defines this for functions which it implements
23019     to always fail with ENOSYS.  Some functions are actually named
23020     something starting with __ and the normal name is an alias.  */
23021 #if defined __stub_$ac_func || defined __stub___$ac_func
23022 choke me
23023 #endif
23025 int
23026 main ()
23028 return $ac_func ();
23029   ;
23030   return 0;
23032 _ACEOF
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (ac_try="$ac_link"
23035 case "(($ac_try" in
23036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037   *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040   (eval "$ac_link") 2>conftest.er1
23041   ac_status=$?
23042   grep -v '^ *+' conftest.er1 >conftest.err
23043   rm -f conftest.er1
23044   cat conftest.err >&5
23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046   (exit $ac_status); } && {
23047          test -z "$ac_c_werror_flag" ||
23048          test ! -s conftest.err
23049        } && test -s conftest$ac_exeext &&
23050        $as_test_x conftest$ac_exeext; then
23051   eval "$as_ac_var=yes"
23052 else
23053   echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23056         eval "$as_ac_var=no"
23059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23060       conftest$ac_exeext conftest.$ac_ext
23062 ac_res=`eval echo '${'$as_ac_var'}'`
23063                { echo "$as_me:$LINENO: result: $ac_res" >&5
23064 echo "${ECHO_T}$ac_res" >&6; }
23065 if test `eval echo '${'$as_ac_var'}'` = yes; then
23066   cat >>confdefs.h <<_ACEOF
23067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23068 _ACEOF
23071 done
23073     else
23075 for ac_func in posix_madvise
23077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23081   echo $ECHO_N "(cached) $ECHO_C" >&6
23082 else
23083   cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h.  */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h.  */
23089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23091 #define $ac_func innocuous_$ac_func
23093 /* System header to define __stub macros and hopefully few prototypes,
23094     which can conflict with char $ac_func (); below.
23095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23096     <limits.h> exists even on freestanding compilers.  */
23098 #ifdef __STDC__
23099 # include <limits.h>
23100 #else
23101 # include <assert.h>
23102 #endif
23104 #undef $ac_func
23106 /* Override any GCC internal prototype to avoid an error.
23107    Use char because int might match the return type of a GCC
23108    builtin and then its argument prototype would still apply.  */
23109 #ifdef __cplusplus
23110 extern "C"
23111 #endif
23112 char $ac_func ();
23113 /* The GNU C library defines this for functions which it implements
23114     to always fail with ENOSYS.  Some functions are actually named
23115     something starting with __ and the normal name is an alias.  */
23116 #if defined __stub_$ac_func || defined __stub___$ac_func
23117 choke me
23118 #endif
23120 int
23121 main ()
23123 return $ac_func ();
23124   ;
23125   return 0;
23127 _ACEOF
23128 rm -f conftest.$ac_objext conftest$ac_exeext
23129 if { (ac_try="$ac_link"
23130 case "(($ac_try" in
23131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132   *) ac_try_echo=$ac_try;;
23133 esac
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135   (eval "$ac_link") 2>conftest.er1
23136   ac_status=$?
23137   grep -v '^ *+' conftest.er1 >conftest.err
23138   rm -f conftest.er1
23139   cat conftest.err >&5
23140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141   (exit $ac_status); } && {
23142          test -z "$ac_c_werror_flag" ||
23143          test ! -s conftest.err
23144        } && test -s conftest$ac_exeext &&
23145        $as_test_x conftest$ac_exeext; then
23146   eval "$as_ac_var=yes"
23147 else
23148   echo "$as_me: failed program was:" >&5
23149 sed 's/^/| /' conftest.$ac_ext >&5
23151         eval "$as_ac_var=no"
23154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23155       conftest$ac_exeext conftest.$ac_ext
23157 ac_res=`eval echo '${'$as_ac_var'}'`
23158                { echo "$as_me:$LINENO: result: $ac_res" >&5
23159 echo "${ECHO_T}$ac_res" >&6; }
23160 if test `eval echo '${'$as_ac_var'}'` = yes; then
23161   cat >>confdefs.h <<_ACEOF
23162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23163 _ACEOF
23166 done
23168       if test "x$ac_cv_func_posix_madvise" != "xyes"; then
23169         { echo "$as_me:$LINENO: WARNING: madvise() nor posix_madvise() found." >&5
23170 echo "$as_me: WARNING: madvise() nor posix_madvise() found." >&2;}
23171       fi
23172     fi
23173   ;;
23174   esac
23175   if test "x$ac_cv_func_mmap" != "xyes";
23176   then
23177     { { echo "$as_me:$LINENO: error: --enable-mmap requested but mmap() was not detected" >&5
23178 echo "$as_me: error: --enable-mmap requested but mmap() was not detected" >&2;}
23179    { (exit 1); exit 1; }; }
23180   fi
23183 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
23184 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
23185 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
23186   echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188   cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h.  */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h.  */
23194 #define _XOPEN_SOURCE 600
23195 #include <fcntl.h>
23197 int
23198 main ()
23200 #ifndef posix_fadvise
23201   (void) posix_fadvise;
23202 #endif
23204   ;
23205   return 0;
23207 _ACEOF
23208 rm -f conftest.$ac_objext
23209 if { (ac_try="$ac_compile"
23210 case "(($ac_try" in
23211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23212   *) ac_try_echo=$ac_try;;
23213 esac
23214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23215   (eval "$ac_compile") 2>conftest.er1
23216   ac_status=$?
23217   grep -v '^ *+' conftest.er1 >conftest.err
23218   rm -f conftest.er1
23219   cat conftest.err >&5
23220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221   (exit $ac_status); } && {
23222          test -z "$ac_c_werror_flag" ||
23223          test ! -s conftest.err
23224        } && test -s conftest.$ac_objext; then
23225   ac_cv_have_decl_posix_fadvise=yes
23226 else
23227   echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230         ac_cv_have_decl_posix_fadvise=no
23233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23235 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
23236 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
23237 if test $ac_cv_have_decl_posix_fadvise = yes; then
23239 cat >>confdefs.h <<_ACEOF
23240 #define HAVE_DECL_POSIX_FADVISE 1
23241 _ACEOF
23244 else
23245   cat >>confdefs.h <<_ACEOF
23246 #define HAVE_DECL_POSIX_FADVISE 0
23247 _ACEOF
23254 for ac_func in posix_fadvise
23256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23260   echo $ECHO_N "(cached) $ECHO_C" >&6
23261 else
23262   cat >conftest.$ac_ext <<_ACEOF
23263 /* confdefs.h.  */
23264 _ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h.  */
23268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23270 #define $ac_func innocuous_$ac_func
23272 /* System header to define __stub macros and hopefully few prototypes,
23273     which can conflict with char $ac_func (); below.
23274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23275     <limits.h> exists even on freestanding compilers.  */
23277 #ifdef __STDC__
23278 # include <limits.h>
23279 #else
23280 # include <assert.h>
23281 #endif
23283 #undef $ac_func
23285 /* Override any GCC internal prototype to avoid an error.
23286    Use char because int might match the return type of a GCC
23287    builtin and then its argument prototype would still apply.  */
23288 #ifdef __cplusplus
23289 extern "C"
23290 #endif
23291 char $ac_func ();
23292 /* The GNU C library defines this for functions which it implements
23293     to always fail with ENOSYS.  Some functions are actually named
23294     something starting with __ and the normal name is an alias.  */
23295 #if defined __stub_$ac_func || defined __stub___$ac_func
23296 choke me
23297 #endif
23299 int
23300 main ()
23302 return $ac_func ();
23303   ;
23304   return 0;
23306 _ACEOF
23307 rm -f conftest.$ac_objext conftest$ac_exeext
23308 if { (ac_try="$ac_link"
23309 case "(($ac_try" in
23310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311   *) ac_try_echo=$ac_try;;
23312 esac
23313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314   (eval "$ac_link") 2>conftest.er1
23315   ac_status=$?
23316   grep -v '^ *+' conftest.er1 >conftest.err
23317   rm -f conftest.er1
23318   cat conftest.err >&5
23319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320   (exit $ac_status); } && {
23321          test -z "$ac_c_werror_flag" ||
23322          test ! -s conftest.err
23323        } && test -s conftest$ac_exeext &&
23324        $as_test_x conftest$ac_exeext; then
23325   eval "$as_ac_var=yes"
23326 else
23327   echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23330         eval "$as_ac_var=no"
23333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23334       conftest$ac_exeext conftest.$ac_ext
23336 ac_res=`eval echo '${'$as_ac_var'}'`
23337                { echo "$as_me:$LINENO: result: $ac_res" >&5
23338 echo "${ECHO_T}$ac_res" >&6; }
23339 if test `eval echo '${'$as_ac_var'}'` = yes; then
23340   cat >>confdefs.h <<_ACEOF
23341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23342 _ACEOF
23345 done
23349 case $TERM in
23350        #   for the most important terminal types we directly know the sequences
23351        xterm|xterm*|vt220|vt220*)
23352                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
23353                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
23354        ;;
23355        vt100|vt100*|cygwin)
23356                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
23357                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
23358        ;;
23359        *)
23360                T_MD=''
23361                T_ME=''
23362        ;;
23363 esac
23364   { echo "$as_me:$LINENO: result: " >&5
23365 echo "${ECHO_T}" >&6; }
23366   { echo "$as_me:$LINENO: result: ${T_MD}Libintl Processing${T_ME}" >&5
23367 echo "${ECHO_T}${T_MD}Libintl Processing${T_ME}" >&6; }
23371 GETTEXT_PACKAGE=rrdtool
23374 cat >>confdefs.h <<_ACEOF
23375 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
23376 _ACEOF
23381 for ac_header in locale.h
23383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23385   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23388   echo $ECHO_N "(cached) $ECHO_C" >&6
23390 ac_res=`eval echo '${'$as_ac_Header'}'`
23391                { echo "$as_me:$LINENO: result: $ac_res" >&5
23392 echo "${ECHO_T}$ac_res" >&6; }
23393 else
23394   # Is the header compilable?
23395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23397 cat >conftest.$ac_ext <<_ACEOF
23398 /* confdefs.h.  */
23399 _ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h.  */
23403 $ac_includes_default
23404 #include <$ac_header>
23405 _ACEOF
23406 rm -f conftest.$ac_objext
23407 if { (ac_try="$ac_compile"
23408 case "(($ac_try" in
23409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410   *) ac_try_echo=$ac_try;;
23411 esac
23412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413   (eval "$ac_compile") 2>conftest.er1
23414   ac_status=$?
23415   grep -v '^ *+' conftest.er1 >conftest.err
23416   rm -f conftest.er1
23417   cat conftest.err >&5
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } && {
23420          test -z "$ac_c_werror_flag" ||
23421          test ! -s conftest.err
23422        } && test -s conftest.$ac_objext; then
23423   ac_header_compiler=yes
23424 else
23425   echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23428         ac_header_compiler=no
23431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23433 echo "${ECHO_T}$ac_header_compiler" >&6; }
23435 # Is the header present?
23436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23438 cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h.  */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h.  */
23444 #include <$ac_header>
23445 _ACEOF
23446 if { (ac_try="$ac_cpp conftest.$ac_ext"
23447 case "(($ac_try" in
23448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449   *) ac_try_echo=$ac_try;;
23450 esac
23451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23452   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23453   ac_status=$?
23454   grep -v '^ *+' conftest.er1 >conftest.err
23455   rm -f conftest.er1
23456   cat conftest.err >&5
23457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458   (exit $ac_status); } >/dev/null && {
23459          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23460          test ! -s conftest.err
23461        }; then
23462   ac_header_preproc=yes
23463 else
23464   echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23467   ac_header_preproc=no
23470 rm -f conftest.err conftest.$ac_ext
23471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23472 echo "${ECHO_T}$ac_header_preproc" >&6; }
23474 # So?  What about this header?
23475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23476   yes:no: )
23477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23481     ac_header_preproc=yes
23482     ;;
23483   no:yes:* )
23484     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23486     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23487 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23488     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23490     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23491 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23492     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23494     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23497     ;;
23498 esac
23499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23502   echo $ECHO_N "(cached) $ECHO_C" >&6
23503 else
23504   eval "$as_ac_Header=\$ac_header_preproc"
23506 ac_res=`eval echo '${'$as_ac_Header'}'`
23507                { echo "$as_me:$LINENO: result: $ac_res" >&5
23508 echo "${ECHO_T}$ac_res" >&6; }
23511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23512   cat >>confdefs.h <<_ACEOF
23513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23514 _ACEOF
23518 done
23520     if test $ac_cv_header_locale_h = yes; then
23521     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
23522 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
23523 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
23524   echo $ECHO_N "(cached) $ECHO_C" >&6
23525 else
23526   cat >conftest.$ac_ext <<_ACEOF
23527 /* confdefs.h.  */
23528 _ACEOF
23529 cat confdefs.h >>conftest.$ac_ext
23530 cat >>conftest.$ac_ext <<_ACEOF
23531 /* end confdefs.h.  */
23532 #include <locale.h>
23533 int
23534 main ()
23536 return LC_MESSAGES
23537   ;
23538   return 0;
23540 _ACEOF
23541 rm -f conftest.$ac_objext conftest$ac_exeext
23542 if { (ac_try="$ac_link"
23543 case "(($ac_try" in
23544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545   *) ac_try_echo=$ac_try;;
23546 esac
23547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23548   (eval "$ac_link") 2>conftest.er1
23549   ac_status=$?
23550   grep -v '^ *+' conftest.er1 >conftest.err
23551   rm -f conftest.er1
23552   cat conftest.err >&5
23553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554   (exit $ac_status); } && {
23555          test -z "$ac_c_werror_flag" ||
23556          test ! -s conftest.err
23557        } && test -s conftest$ac_exeext &&
23558        $as_test_x conftest$ac_exeext; then
23559   am_cv_val_LC_MESSAGES=yes
23560 else
23561   echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564         am_cv_val_LC_MESSAGES=no
23567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23568       conftest$ac_exeext conftest.$ac_ext
23570 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
23571 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
23572     if test $am_cv_val_LC_MESSAGES = yes; then
23574 cat >>confdefs.h <<\_ACEOF
23575 #define HAVE_LC_MESSAGES 1
23576 _ACEOF
23578     fi
23579   fi
23580      USE_NLS=yes
23583     gt_cv_have_gettext=no
23585     CATOBJEXT=NONE
23586     XGETTEXT=:
23587     INTLLIBS=
23589     if test "${ac_cv_header_libintl_h+set}" = set; then
23590   { echo "$as_me:$LINENO: checking for libintl.h" >&5
23591 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
23592 if test "${ac_cv_header_libintl_h+set}" = set; then
23593   echo $ECHO_N "(cached) $ECHO_C" >&6
23595 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23596 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
23597 else
23598   # Is the header compilable?
23599 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
23600 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
23601 cat >conftest.$ac_ext <<_ACEOF
23602 /* confdefs.h.  */
23603 _ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h.  */
23607 $ac_includes_default
23608 #include <libintl.h>
23609 _ACEOF
23610 rm -f conftest.$ac_objext
23611 if { (ac_try="$ac_compile"
23612 case "(($ac_try" in
23613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614   *) ac_try_echo=$ac_try;;
23615 esac
23616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23617   (eval "$ac_compile") 2>conftest.er1
23618   ac_status=$?
23619   grep -v '^ *+' conftest.er1 >conftest.err
23620   rm -f conftest.er1
23621   cat conftest.err >&5
23622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); } && {
23624          test -z "$ac_c_werror_flag" ||
23625          test ! -s conftest.err
23626        } && test -s conftest.$ac_objext; then
23627   ac_header_compiler=yes
23628 else
23629   echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23632         ac_header_compiler=no
23635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23636 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23637 echo "${ECHO_T}$ac_header_compiler" >&6; }
23639 # Is the header present?
23640 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
23641 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
23642 cat >conftest.$ac_ext <<_ACEOF
23643 /* confdefs.h.  */
23644 _ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h.  */
23648 #include <libintl.h>
23649 _ACEOF
23650 if { (ac_try="$ac_cpp conftest.$ac_ext"
23651 case "(($ac_try" in
23652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23653   *) ac_try_echo=$ac_try;;
23654 esac
23655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23656   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23657   ac_status=$?
23658   grep -v '^ *+' conftest.er1 >conftest.err
23659   rm -f conftest.er1
23660   cat conftest.err >&5
23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662   (exit $ac_status); } >/dev/null && {
23663          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23664          test ! -s conftest.err
23665        }; then
23666   ac_header_preproc=yes
23667 else
23668   echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23671   ac_header_preproc=no
23674 rm -f conftest.err conftest.$ac_ext
23675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23676 echo "${ECHO_T}$ac_header_preproc" >&6; }
23678 # So?  What about this header?
23679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23680   yes:no: )
23681     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23682 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23683     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
23684 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
23685     ac_header_preproc=yes
23686     ;;
23687   no:yes:* )
23688     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
23689 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
23690     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
23691 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
23692     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
23693 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
23694     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
23695 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23696     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
23697 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
23698     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
23699 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
23701     ;;
23702 esac
23703 { echo "$as_me:$LINENO: checking for libintl.h" >&5
23704 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
23705 if test "${ac_cv_header_libintl_h+set}" = set; then
23706   echo $ECHO_N "(cached) $ECHO_C" >&6
23707 else
23708   ac_cv_header_libintl_h=$ac_header_preproc
23710 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
23711 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
23714 if test $ac_cv_header_libintl_h = yes; then
23715   gt_cv_func_dgettext_libintl="no"
23716       libintl_extra_libs=""
23718       #
23719       # First check in libc
23720       #
23721       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
23722 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
23723 if test "${gt_cv_func_ngettext_libc+set}" = set; then
23724   echo $ECHO_N "(cached) $ECHO_C" >&6
23725 else
23726   cat >conftest.$ac_ext <<_ACEOF
23727 /* confdefs.h.  */
23728 _ACEOF
23729 cat confdefs.h >>conftest.$ac_ext
23730 cat >>conftest.$ac_ext <<_ACEOF
23731 /* end confdefs.h.  */
23733 #include <libintl.h>
23735 int
23736 main ()
23738 return !ngettext ("","", 1)
23739   ;
23740   return 0;
23742 _ACEOF
23743 rm -f conftest.$ac_objext conftest$ac_exeext
23744 if { (ac_try="$ac_link"
23745 case "(($ac_try" in
23746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747   *) ac_try_echo=$ac_try;;
23748 esac
23749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23750   (eval "$ac_link") 2>conftest.er1
23751   ac_status=$?
23752   grep -v '^ *+' conftest.er1 >conftest.err
23753   rm -f conftest.er1
23754   cat conftest.err >&5
23755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23756   (exit $ac_status); } && {
23757          test -z "$ac_c_werror_flag" ||
23758          test ! -s conftest.err
23759        } && test -s conftest$ac_exeext &&
23760        $as_test_x conftest$ac_exeext; then
23761   gt_cv_func_ngettext_libc=yes
23762 else
23763   echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.$ac_ext >&5
23766         gt_cv_func_ngettext_libc=no
23769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23770       conftest$ac_exeext conftest.$ac_ext
23773 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
23774 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
23776       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
23777               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
23778 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
23779 if test "${gt_cv_func_dgettext_libc+set}" = set; then
23780   echo $ECHO_N "(cached) $ECHO_C" >&6
23781 else
23782   cat >conftest.$ac_ext <<_ACEOF
23783 /* confdefs.h.  */
23784 _ACEOF
23785 cat confdefs.h >>conftest.$ac_ext
23786 cat >>conftest.$ac_ext <<_ACEOF
23787 /* end confdefs.h.  */
23789 #include <libintl.h>
23791 int
23792 main ()
23794 return !dgettext ("","")
23795   ;
23796   return 0;
23798 _ACEOF
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (ac_try="$ac_link"
23801 case "(($ac_try" in
23802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803   *) ac_try_echo=$ac_try;;
23804 esac
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806   (eval "$ac_link") 2>conftest.er1
23807   ac_status=$?
23808   grep -v '^ *+' conftest.er1 >conftest.err
23809   rm -f conftest.er1
23810   cat conftest.err >&5
23811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812   (exit $ac_status); } && {
23813          test -z "$ac_c_werror_flag" ||
23814          test ! -s conftest.err
23815        } && test -s conftest$ac_exeext &&
23816        $as_test_x conftest$ac_exeext; then
23817   gt_cv_func_dgettext_libc=yes
23818 else
23819   echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23822         gt_cv_func_dgettext_libc=no
23825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23826       conftest$ac_exeext conftest.$ac_ext
23829 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
23830 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
23831       fi
23833       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
23835 for ac_func in bind_textdomain_codeset
23837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23841   echo $ECHO_N "(cached) $ECHO_C" >&6
23842 else
23843   cat >conftest.$ac_ext <<_ACEOF
23844 /* confdefs.h.  */
23845 _ACEOF
23846 cat confdefs.h >>conftest.$ac_ext
23847 cat >>conftest.$ac_ext <<_ACEOF
23848 /* end confdefs.h.  */
23849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23851 #define $ac_func innocuous_$ac_func
23853 /* System header to define __stub macros and hopefully few prototypes,
23854     which can conflict with char $ac_func (); below.
23855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23856     <limits.h> exists even on freestanding compilers.  */
23858 #ifdef __STDC__
23859 # include <limits.h>
23860 #else
23861 # include <assert.h>
23862 #endif
23864 #undef $ac_func
23866 /* Override any GCC internal prototype to avoid an error.
23867    Use char because int might match the return type of a GCC
23868    builtin and then its argument prototype would still apply.  */
23869 #ifdef __cplusplus
23870 extern "C"
23871 #endif
23872 char $ac_func ();
23873 /* The GNU C library defines this for functions which it implements
23874     to always fail with ENOSYS.  Some functions are actually named
23875     something starting with __ and the normal name is an alias.  */
23876 #if defined __stub_$ac_func || defined __stub___$ac_func
23877 choke me
23878 #endif
23880 int
23881 main ()
23883 return $ac_func ();
23884   ;
23885   return 0;
23887 _ACEOF
23888 rm -f conftest.$ac_objext conftest$ac_exeext
23889 if { (ac_try="$ac_link"
23890 case "(($ac_try" in
23891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23892   *) ac_try_echo=$ac_try;;
23893 esac
23894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23895   (eval "$ac_link") 2>conftest.er1
23896   ac_status=$?
23897   grep -v '^ *+' conftest.er1 >conftest.err
23898   rm -f conftest.er1
23899   cat conftest.err >&5
23900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901   (exit $ac_status); } && {
23902          test -z "$ac_c_werror_flag" ||
23903          test ! -s conftest.err
23904        } && test -s conftest$ac_exeext &&
23905        $as_test_x conftest$ac_exeext; then
23906   eval "$as_ac_var=yes"
23907 else
23908   echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23911         eval "$as_ac_var=no"
23914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23915       conftest$ac_exeext conftest.$ac_ext
23917 ac_res=`eval echo '${'$as_ac_var'}'`
23918                { echo "$as_me:$LINENO: result: $ac_res" >&5
23919 echo "${ECHO_T}$ac_res" >&6; }
23920 if test `eval echo '${'$as_ac_var'}'` = yes; then
23921   cat >>confdefs.h <<_ACEOF
23922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23923 _ACEOF
23926 done
23928       fi
23930       #
23931       # If we don't have everything we want, check in libintl
23932       #
23933       if test "$gt_cv_func_dgettext_libc" != "yes" \
23934          || test "$gt_cv_func_ngettext_libc" != "yes" \
23935          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
23937         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
23938 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
23939 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
23940   echo $ECHO_N "(cached) $ECHO_C" >&6
23941 else
23942   ac_check_lib_save_LIBS=$LIBS
23943 LIBS="-lintl  $LIBS"
23944 cat >conftest.$ac_ext <<_ACEOF
23945 /* confdefs.h.  */
23946 _ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h.  */
23951 /* Override any GCC internal prototype to avoid an error.
23952    Use char because int might match the return type of a GCC
23953    builtin and then its argument prototype would still apply.  */
23954 #ifdef __cplusplus
23955 extern "C"
23956 #endif
23957 char bindtextdomain ();
23958 int
23959 main ()
23961 return bindtextdomain ();
23962   ;
23963   return 0;
23965 _ACEOF
23966 rm -f conftest.$ac_objext conftest$ac_exeext
23967 if { (ac_try="$ac_link"
23968 case "(($ac_try" in
23969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970   *) ac_try_echo=$ac_try;;
23971 esac
23972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23973   (eval "$ac_link") 2>conftest.er1
23974   ac_status=$?
23975   grep -v '^ *+' conftest.er1 >conftest.err
23976   rm -f conftest.er1
23977   cat conftest.err >&5
23978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979   (exit $ac_status); } && {
23980          test -z "$ac_c_werror_flag" ||
23981          test ! -s conftest.err
23982        } && test -s conftest$ac_exeext &&
23983        $as_test_x conftest$ac_exeext; then
23984   ac_cv_lib_intl_bindtextdomain=yes
23985 else
23986   echo "$as_me: failed program was:" >&5
23987 sed 's/^/| /' conftest.$ac_ext >&5
23989         ac_cv_lib_intl_bindtextdomain=no
23992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23993       conftest$ac_exeext conftest.$ac_ext
23994 LIBS=$ac_check_lib_save_LIBS
23996 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
23997 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
23998 if test $ac_cv_lib_intl_bindtextdomain = yes; then
23999   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
24000 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
24001 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
24002   echo $ECHO_N "(cached) $ECHO_C" >&6
24003 else
24004   ac_check_lib_save_LIBS=$LIBS
24005 LIBS="-lintl  $LIBS"
24006 cat >conftest.$ac_ext <<_ACEOF
24007 /* confdefs.h.  */
24008 _ACEOF
24009 cat confdefs.h >>conftest.$ac_ext
24010 cat >>conftest.$ac_ext <<_ACEOF
24011 /* end confdefs.h.  */
24013 /* Override any GCC internal prototype to avoid an error.
24014    Use char because int might match the return type of a GCC
24015    builtin and then its argument prototype would still apply.  */
24016 #ifdef __cplusplus
24017 extern "C"
24018 #endif
24019 char ngettext ();
24020 int
24021 main ()
24023 return ngettext ();
24024   ;
24025   return 0;
24027 _ACEOF
24028 rm -f conftest.$ac_objext conftest$ac_exeext
24029 if { (ac_try="$ac_link"
24030 case "(($ac_try" in
24031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032   *) ac_try_echo=$ac_try;;
24033 esac
24034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24035   (eval "$ac_link") 2>conftest.er1
24036   ac_status=$?
24037   grep -v '^ *+' conftest.er1 >conftest.err
24038   rm -f conftest.er1
24039   cat conftest.err >&5
24040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041   (exit $ac_status); } && {
24042          test -z "$ac_c_werror_flag" ||
24043          test ! -s conftest.err
24044        } && test -s conftest$ac_exeext &&
24045        $as_test_x conftest$ac_exeext; then
24046   ac_cv_lib_intl_ngettext=yes
24047 else
24048   echo "$as_me: failed program was:" >&5
24049 sed 's/^/| /' conftest.$ac_ext >&5
24051         ac_cv_lib_intl_ngettext=no
24054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24055       conftest$ac_exeext conftest.$ac_ext
24056 LIBS=$ac_check_lib_save_LIBS
24058 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
24059 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
24060 if test $ac_cv_lib_intl_ngettext = yes; then
24061   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24062 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
24063 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24064   echo $ECHO_N "(cached) $ECHO_C" >&6
24065 else
24066   ac_check_lib_save_LIBS=$LIBS
24067 LIBS="-lintl  $LIBS"
24068 cat >conftest.$ac_ext <<_ACEOF
24069 /* confdefs.h.  */
24070 _ACEOF
24071 cat confdefs.h >>conftest.$ac_ext
24072 cat >>conftest.$ac_ext <<_ACEOF
24073 /* end confdefs.h.  */
24075 /* Override any GCC internal prototype to avoid an error.
24076    Use char because int might match the return type of a GCC
24077    builtin and then its argument prototype would still apply.  */
24078 #ifdef __cplusplus
24079 extern "C"
24080 #endif
24081 char dgettext ();
24082 int
24083 main ()
24085 return dgettext ();
24086   ;
24087   return 0;
24089 _ACEOF
24090 rm -f conftest.$ac_objext conftest$ac_exeext
24091 if { (ac_try="$ac_link"
24092 case "(($ac_try" in
24093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24094   *) ac_try_echo=$ac_try;;
24095 esac
24096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24097   (eval "$ac_link") 2>conftest.er1
24098   ac_status=$?
24099   grep -v '^ *+' conftest.er1 >conftest.err
24100   rm -f conftest.er1
24101   cat conftest.err >&5
24102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24103   (exit $ac_status); } && {
24104          test -z "$ac_c_werror_flag" ||
24105          test ! -s conftest.err
24106        } && test -s conftest$ac_exeext &&
24107        $as_test_x conftest$ac_exeext; then
24108   ac_cv_lib_intl_dgettext=yes
24109 else
24110   echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24113         ac_cv_lib_intl_dgettext=no
24116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24117       conftest$ac_exeext conftest.$ac_ext
24118 LIBS=$ac_check_lib_save_LIBS
24120 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24121 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
24122 if test $ac_cv_lib_intl_dgettext = yes; then
24123   gt_cv_func_dgettext_libintl=yes
24131         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
24132           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
24133 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
24134           { echo "$as_me:$LINENO: result: " >&5
24135 echo "${ECHO_T}" >&6; }
24136           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
24137 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
24138 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
24139   echo $ECHO_N "(cached) $ECHO_C" >&6
24140 else
24141   ac_check_lib_save_LIBS=$LIBS
24142 LIBS="-lintl -liconv $LIBS"
24143 cat >conftest.$ac_ext <<_ACEOF
24144 /* confdefs.h.  */
24145 _ACEOF
24146 cat confdefs.h >>conftest.$ac_ext
24147 cat >>conftest.$ac_ext <<_ACEOF
24148 /* end confdefs.h.  */
24150 /* Override any GCC internal prototype to avoid an error.
24151    Use char because int might match the return type of a GCC
24152    builtin and then its argument prototype would still apply.  */
24153 #ifdef __cplusplus
24154 extern "C"
24155 #endif
24156 char ngettext ();
24157 int
24158 main ()
24160 return ngettext ();
24161   ;
24162   return 0;
24164 _ACEOF
24165 rm -f conftest.$ac_objext conftest$ac_exeext
24166 if { (ac_try="$ac_link"
24167 case "(($ac_try" in
24168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24169   *) ac_try_echo=$ac_try;;
24170 esac
24171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24172   (eval "$ac_link") 2>conftest.er1
24173   ac_status=$?
24174   grep -v '^ *+' conftest.er1 >conftest.err
24175   rm -f conftest.er1
24176   cat conftest.err >&5
24177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178   (exit $ac_status); } && {
24179          test -z "$ac_c_werror_flag" ||
24180          test ! -s conftest.err
24181        } && test -s conftest$ac_exeext &&
24182        $as_test_x conftest$ac_exeext; then
24183   ac_cv_lib_intl_ngettext=yes
24184 else
24185   echo "$as_me: failed program was:" >&5
24186 sed 's/^/| /' conftest.$ac_ext >&5
24188         ac_cv_lib_intl_ngettext=no
24191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24192       conftest$ac_exeext conftest.$ac_ext
24193 LIBS=$ac_check_lib_save_LIBS
24195 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
24196 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
24197 if test $ac_cv_lib_intl_ngettext = yes; then
24198   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
24199 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
24200 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
24201   echo $ECHO_N "(cached) $ECHO_C" >&6
24202 else
24203   ac_check_lib_save_LIBS=$LIBS
24204 LIBS="-lintl -liconv $LIBS"
24205 cat >conftest.$ac_ext <<_ACEOF
24206 /* confdefs.h.  */
24207 _ACEOF
24208 cat confdefs.h >>conftest.$ac_ext
24209 cat >>conftest.$ac_ext <<_ACEOF
24210 /* end confdefs.h.  */
24212 /* Override any GCC internal prototype to avoid an error.
24213    Use char because int might match the return type of a GCC
24214    builtin and then its argument prototype would still apply.  */
24215 #ifdef __cplusplus
24216 extern "C"
24217 #endif
24218 char dcgettext ();
24219 int
24220 main ()
24222 return dcgettext ();
24223   ;
24224   return 0;
24226 _ACEOF
24227 rm -f conftest.$ac_objext conftest$ac_exeext
24228 if { (ac_try="$ac_link"
24229 case "(($ac_try" in
24230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231   *) ac_try_echo=$ac_try;;
24232 esac
24233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24234   (eval "$ac_link") 2>conftest.er1
24235   ac_status=$?
24236   grep -v '^ *+' conftest.er1 >conftest.err
24237   rm -f conftest.er1
24238   cat conftest.err >&5
24239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240   (exit $ac_status); } && {
24241          test -z "$ac_c_werror_flag" ||
24242          test ! -s conftest.err
24243        } && test -s conftest$ac_exeext &&
24244        $as_test_x conftest$ac_exeext; then
24245   ac_cv_lib_intl_dcgettext=yes
24246 else
24247   echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24250         ac_cv_lib_intl_dcgettext=no
24253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24254       conftest$ac_exeext conftest.$ac_ext
24255 LIBS=$ac_check_lib_save_LIBS
24257 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
24258 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
24259 if test $ac_cv_lib_intl_dcgettext = yes; then
24260   gt_cv_func_dgettext_libintl=yes
24261                         libintl_extra_libs=-liconv
24262 else
24263   :
24266 else
24267   :
24270         fi
24272         #
24273         # If we found libintl, then check in it for bind_textdomain_codeset();
24274         # we'll prefer libc if neither have bind_textdomain_codeset(),
24275         # and both have dgettext and ngettext
24276         #
24277         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
24278           glib_save_LIBS="$LIBS"
24279           LIBS="$LIBS -lintl $libintl_extra_libs"
24280           unset ac_cv_func_bind_textdomain_codeset
24282 for ac_func in bind_textdomain_codeset
24284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24288   echo $ECHO_N "(cached) $ECHO_C" >&6
24289 else
24290   cat >conftest.$ac_ext <<_ACEOF
24291 /* confdefs.h.  */
24292 _ACEOF
24293 cat confdefs.h >>conftest.$ac_ext
24294 cat >>conftest.$ac_ext <<_ACEOF
24295 /* end confdefs.h.  */
24296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24298 #define $ac_func innocuous_$ac_func
24300 /* System header to define __stub macros and hopefully few prototypes,
24301     which can conflict with char $ac_func (); below.
24302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24303     <limits.h> exists even on freestanding compilers.  */
24305 #ifdef __STDC__
24306 # include <limits.h>
24307 #else
24308 # include <assert.h>
24309 #endif
24311 #undef $ac_func
24313 /* Override any GCC internal prototype to avoid an error.
24314    Use char because int might match the return type of a GCC
24315    builtin and then its argument prototype would still apply.  */
24316 #ifdef __cplusplus
24317 extern "C"
24318 #endif
24319 char $ac_func ();
24320 /* The GNU C library defines this for functions which it implements
24321     to always fail with ENOSYS.  Some functions are actually named
24322     something starting with __ and the normal name is an alias.  */
24323 #if defined __stub_$ac_func || defined __stub___$ac_func
24324 choke me
24325 #endif
24327 int
24328 main ()
24330 return $ac_func ();
24331   ;
24332   return 0;
24334 _ACEOF
24335 rm -f conftest.$ac_objext conftest$ac_exeext
24336 if { (ac_try="$ac_link"
24337 case "(($ac_try" in
24338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339   *) ac_try_echo=$ac_try;;
24340 esac
24341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342   (eval "$ac_link") 2>conftest.er1
24343   ac_status=$?
24344   grep -v '^ *+' conftest.er1 >conftest.err
24345   rm -f conftest.er1
24346   cat conftest.err >&5
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); } && {
24349          test -z "$ac_c_werror_flag" ||
24350          test ! -s conftest.err
24351        } && test -s conftest$ac_exeext &&
24352        $as_test_x conftest$ac_exeext; then
24353   eval "$as_ac_var=yes"
24354 else
24355   echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24358         eval "$as_ac_var=no"
24361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24362       conftest$ac_exeext conftest.$ac_ext
24364 ac_res=`eval echo '${'$as_ac_var'}'`
24365                { echo "$as_me:$LINENO: result: $ac_res" >&5
24366 echo "${ECHO_T}$ac_res" >&6; }
24367 if test `eval echo '${'$as_ac_var'}'` = yes; then
24368   cat >>confdefs.h <<_ACEOF
24369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24370 _ACEOF
24373 done
24375           LIBS="$glib_save_LIBS"
24377           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
24378             gt_cv_func_dgettext_libc=no
24379           else
24380             if test "$gt_cv_func_dgettext_libc" = "yes" \
24381                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
24382               gt_cv_func_dgettext_libintl=no
24383             fi
24384           fi
24385         fi
24386       fi
24388       if test "$gt_cv_func_dgettext_libc" = "yes" \
24389         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
24390         gt_cv_have_gettext=yes
24391       fi
24393       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
24394         INTLLIBS="-lintl $libintl_extra_libs"
24395       fi
24397       if test "$gt_cv_have_gettext" = "yes"; then
24399 cat >>confdefs.h <<\_ACEOF
24400 #define HAVE_GETTEXT 1
24401 _ACEOF
24403         # Extract the first word of "msgfmt", so it can be a program name with args.
24404 set dummy msgfmt; ac_word=$2
24405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24407 if test "${ac_cv_path_MSGFMT+set}" = set; then
24408   echo $ECHO_N "(cached) $ECHO_C" >&6
24409 else
24410   case "$MSGFMT" in
24411   /*)
24412   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
24413   ;;
24414   *)
24415   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24416   for ac_dir in $PATH; do
24417     test -z "$ac_dir" && ac_dir=.
24418     if test -f $ac_dir/$ac_word; then
24419       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
24420         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
24421         break
24422       fi
24423     fi
24424   done
24425   IFS="$ac_save_ifs"
24426   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
24427   ;;
24428 esac
24430 MSGFMT="$ac_cv_path_MSGFMT"
24431 if test "$MSGFMT" != "no"; then
24432   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
24433 echo "${ECHO_T}$MSGFMT" >&6; }
24434 else
24435   { echo "$as_me:$LINENO: result: no" >&5
24436 echo "${ECHO_T}no" >&6; }
24438         if test "$MSGFMT" != "no"; then
24439           glib_save_LIBS="$LIBS"
24440           LIBS="$LIBS $INTLLIBS"
24442 for ac_func in dcgettext
24444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24448   echo $ECHO_N "(cached) $ECHO_C" >&6
24449 else
24450   cat >conftest.$ac_ext <<_ACEOF
24451 /* confdefs.h.  */
24452 _ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h.  */
24456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24458 #define $ac_func innocuous_$ac_func
24460 /* System header to define __stub macros and hopefully few prototypes,
24461     which can conflict with char $ac_func (); below.
24462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24463     <limits.h> exists even on freestanding compilers.  */
24465 #ifdef __STDC__
24466 # include <limits.h>
24467 #else
24468 # include <assert.h>
24469 #endif
24471 #undef $ac_func
24473 /* Override any GCC internal prototype to avoid an error.
24474    Use char because int might match the return type of a GCC
24475    builtin and then its argument prototype would still apply.  */
24476 #ifdef __cplusplus
24477 extern "C"
24478 #endif
24479 char $ac_func ();
24480 /* The GNU C library defines this for functions which it implements
24481     to always fail with ENOSYS.  Some functions are actually named
24482     something starting with __ and the normal name is an alias.  */
24483 #if defined __stub_$ac_func || defined __stub___$ac_func
24484 choke me
24485 #endif
24487 int
24488 main ()
24490 return $ac_func ();
24491   ;
24492   return 0;
24494 _ACEOF
24495 rm -f conftest.$ac_objext conftest$ac_exeext
24496 if { (ac_try="$ac_link"
24497 case "(($ac_try" in
24498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24499   *) ac_try_echo=$ac_try;;
24500 esac
24501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24502   (eval "$ac_link") 2>conftest.er1
24503   ac_status=$?
24504   grep -v '^ *+' conftest.er1 >conftest.err
24505   rm -f conftest.er1
24506   cat conftest.err >&5
24507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508   (exit $ac_status); } && {
24509          test -z "$ac_c_werror_flag" ||
24510          test ! -s conftest.err
24511        } && test -s conftest$ac_exeext &&
24512        $as_test_x conftest$ac_exeext; then
24513   eval "$as_ac_var=yes"
24514 else
24515   echo "$as_me: failed program was:" >&5
24516 sed 's/^/| /' conftest.$ac_ext >&5
24518         eval "$as_ac_var=no"
24521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24522       conftest$ac_exeext conftest.$ac_ext
24524 ac_res=`eval echo '${'$as_ac_var'}'`
24525                { echo "$as_me:$LINENO: result: $ac_res" >&5
24526 echo "${ECHO_T}$ac_res" >&6; }
24527 if test `eval echo '${'$as_ac_var'}'` = yes; then
24528   cat >>confdefs.h <<_ACEOF
24529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24530 _ACEOF
24533 done
24535           MSGFMT_OPTS=
24536           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
24537 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
24538           cat >conftest.foo <<_ACEOF
24540 msgid ""
24541 msgstr ""
24542 "Content-Type: text/plain; charset=UTF-8\n"
24543 "Project-Id-Version: test 1.0\n"
24544 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
24545 "Last-Translator: test <foo@bar.xx>\n"
24546 "Language-Team: C <LL@li.org>\n"
24547 "MIME-Version: 1.0\n"
24548 "Content-Transfer-Encoding: 8bit\n"
24550 _ACEOF
24551 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
24552   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
24553   ac_status=$?
24554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555   (exit $ac_status); }; then
24556   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
24557 echo "${ECHO_T}yes" >&6; }
24558 else { echo "$as_me:$LINENO: result: no" >&5
24559 echo "${ECHO_T}no" >&6; }
24560 echo "$as_me: failed input was:" >&5
24561 sed 's/^/| /' conftest.foo >&5
24564           # Extract the first word of "gmsgfmt", so it can be a program name with args.
24565 set dummy gmsgfmt; ac_word=$2
24566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24568 if test "${ac_cv_path_GMSGFMT+set}" = set; then
24569   echo $ECHO_N "(cached) $ECHO_C" >&6
24570 else
24571   case $GMSGFMT in
24572   [\\/]* | ?:[\\/]*)
24573   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
24574   ;;
24575   *)
24576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24577 for as_dir in $PATH
24579   IFS=$as_save_IFS
24580   test -z "$as_dir" && as_dir=.
24581   for ac_exec_ext in '' $ac_executable_extensions; do
24582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24583     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
24584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24585     break 2
24586   fi
24587 done
24588 done
24589 IFS=$as_save_IFS
24591   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
24592   ;;
24593 esac
24595 GMSGFMT=$ac_cv_path_GMSGFMT
24596 if test -n "$GMSGFMT"; then
24597   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
24598 echo "${ECHO_T}$GMSGFMT" >&6; }
24599 else
24600   { echo "$as_me:$LINENO: result: no" >&5
24601 echo "${ECHO_T}no" >&6; }
24605           # Extract the first word of "xgettext", so it can be a program name with args.
24606 set dummy xgettext; ac_word=$2
24607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24609 if test "${ac_cv_path_XGETTEXT+set}" = set; then
24610   echo $ECHO_N "(cached) $ECHO_C" >&6
24611 else
24612   case "$XGETTEXT" in
24613   /*)
24614   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24615   ;;
24616   *)
24617   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24618   for ac_dir in $PATH; do
24619     test -z "$ac_dir" && ac_dir=.
24620     if test -f $ac_dir/$ac_word; then
24621       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
24622         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
24623         break
24624       fi
24625     fi
24626   done
24627   IFS="$ac_save_ifs"
24628   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
24629   ;;
24630 esac
24632 XGETTEXT="$ac_cv_path_XGETTEXT"
24633 if test "$XGETTEXT" != ":"; then
24634   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
24635 echo "${ECHO_T}$XGETTEXT" >&6; }
24636 else
24637   { echo "$as_me:$LINENO: result: no" >&5
24638 echo "${ECHO_T}no" >&6; }
24641           cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h.  */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h.  */
24648 int
24649 main ()
24651 extern int _nl_msg_cat_cntr;
24652                          return _nl_msg_cat_cntr
24653   ;
24654   return 0;
24656 _ACEOF
24657 rm -f conftest.$ac_objext conftest$ac_exeext
24658 if { (ac_try="$ac_link"
24659 case "(($ac_try" in
24660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661   *) ac_try_echo=$ac_try;;
24662 esac
24663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664   (eval "$ac_link") 2>conftest.er1
24665   ac_status=$?
24666   grep -v '^ *+' conftest.er1 >conftest.err
24667   rm -f conftest.er1
24668   cat conftest.err >&5
24669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670   (exit $ac_status); } && {
24671          test -z "$ac_c_werror_flag" ||
24672          test ! -s conftest.err
24673        } && test -s conftest$ac_exeext &&
24674        $as_test_x conftest$ac_exeext; then
24675   CATOBJEXT=.gmo
24676              DATADIRNAME=share
24677 else
24678   echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24681         case $host in
24682             *-*-solaris*)
24683                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
24684 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
24685 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
24686   echo $ECHO_N "(cached) $ECHO_C" >&6
24687 else
24688   cat >conftest.$ac_ext <<_ACEOF
24689 /* confdefs.h.  */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h.  */
24694 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
24695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24696 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
24698 /* System header to define __stub macros and hopefully few prototypes,
24699     which can conflict with char bind_textdomain_codeset (); below.
24700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24701     <limits.h> exists even on freestanding compilers.  */
24703 #ifdef __STDC__
24704 # include <limits.h>
24705 #else
24706 # include <assert.h>
24707 #endif
24709 #undef bind_textdomain_codeset
24711 /* Override any GCC internal prototype to avoid an error.
24712    Use char because int might match the return type of a GCC
24713    builtin and then its argument prototype would still apply.  */
24714 #ifdef __cplusplus
24715 extern "C"
24716 #endif
24717 char bind_textdomain_codeset ();
24718 /* The GNU C library defines this for functions which it implements
24719     to always fail with ENOSYS.  Some functions are actually named
24720     something starting with __ and the normal name is an alias.  */
24721 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
24722 choke me
24723 #endif
24725 int
24726 main ()
24728 return bind_textdomain_codeset ();
24729   ;
24730   return 0;
24732 _ACEOF
24733 rm -f conftest.$ac_objext conftest$ac_exeext
24734 if { (ac_try="$ac_link"
24735 case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740   (eval "$ac_link") 2>conftest.er1
24741   ac_status=$?
24742   grep -v '^ *+' conftest.er1 >conftest.err
24743   rm -f conftest.er1
24744   cat conftest.err >&5
24745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746   (exit $ac_status); } && {
24747          test -z "$ac_c_werror_flag" ||
24748          test ! -s conftest.err
24749        } && test -s conftest$ac_exeext &&
24750        $as_test_x conftest$ac_exeext; then
24751   ac_cv_func_bind_textdomain_codeset=yes
24752 else
24753   echo "$as_me: failed program was:" >&5
24754 sed 's/^/| /' conftest.$ac_ext >&5
24756         ac_cv_func_bind_textdomain_codeset=no
24759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24760       conftest$ac_exeext conftest.$ac_ext
24762 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
24763 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
24764 if test $ac_cv_func_bind_textdomain_codeset = yes; then
24765   CATOBJEXT=.gmo
24766                DATADIRNAME=share
24767 else
24768   CATOBJEXT=.mo
24769                DATADIRNAME=lib
24772             ;;
24773             *)
24774             CATOBJEXT=.mo
24775             DATADIRNAME=lib
24776             ;;
24777             esac
24780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24781       conftest$ac_exeext conftest.$ac_ext
24782           LIBS="$glib_save_LIBS"
24783           INSTOBJEXT=.mo
24784         else
24785           gt_cv_have_gettext=no
24786         fi
24787       fi
24793     if test "$gt_cv_have_gettext" = "yes" ; then
24795 cat >>confdefs.h <<\_ACEOF
24796 #define ENABLE_NLS 1
24797 _ACEOF
24799     fi
24801         if test "$XGETTEXT" != ":"; then
24802                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
24803         : ;
24804       else
24805         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
24806 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
24807         XGETTEXT=":"
24808       fi
24809     fi
24811     # We need to process the po/ directory.
24812     POSUB=po
24814     ac_config_commands="$ac_config_commands default-1"
24817                 for lang in $ALL_LINGUAS; do
24818       GMOFILES="$GMOFILES $lang.gmo"
24819       POFILES="$POFILES $lang.po"
24820     done
24834    if test "$gt_cv_have_gettext" = "yes"; then
24835      if test "x$ALL_LINGUAS" = "x"; then
24836        LINGUAS=
24837      else
24838        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
24839 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
24840        NEW_LINGUAS=
24841        for presentlang in $ALL_LINGUAS; do
24842          useit=no
24843          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
24844            desiredlanguages="$LINGUAS"
24845          else
24846            desiredlanguages="$ALL_LINGUAS"
24847          fi
24848          for desiredlang in $desiredlanguages; do
24849            # Use the presentlang catalog if desiredlang is
24850            #   a. equal to presentlang, or
24851            #   b. a variant of presentlang (because in this case,
24852            #      presentlang can be used as a fallback for messages
24853            #      which are not translated in the desiredlang catalog).
24854            case "$desiredlang" in
24855              "$presentlang"*) useit=yes;;
24856            esac
24857          done
24858          if test $useit = yes; then
24859            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
24860          fi
24861        done
24862        LINGUAS=$NEW_LINGUAS
24863        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
24864 echo "${ECHO_T}$LINGUAS" >&6; }
24865      fi
24867           if test -n "$LINGUAS"; then
24868        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
24869      fi
24870    fi
24872             MKINSTALLDIRS=
24873    if test -n "$ac_aux_dir"; then
24874      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
24875    fi
24876    if test -z "$MKINSTALLDIRS"; then
24877      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
24878    fi
24881          test -d po || mkdir po
24882    if test "x$srcdir" != "x."; then
24883      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
24884        posrcprefix="$srcdir/"
24885      else
24886        posrcprefix="../$srcdir/"
24887      fi
24888    else
24889      posrcprefix="../"
24890    fi
24891    rm -f po/POTFILES
24892    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
24893         < $srcdir/po/POTFILES.in > po/POTFILES
24896 # Check whether --enable-libintl was given.
24897 if test "${enable_libintl+set}" = set; then
24898   enableval=$enable_libintl;
24899 else
24900   enable_libintl=yes
24904 if test x$enable_libintl = xyes; then
24906 case "$am__api_version" in
24907     1.01234)
24908         { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
24909 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
24910    { (exit 1); exit 1; }; }
24911     ;;
24912     *)
24913     ;;
24914 esac
24916 if test -n "0.35.0"; then
24917     { echo "$as_me:$LINENO: checking for intltool >= 0.35.0" >&5
24918 echo $ECHO_N "checking for intltool >= 0.35.0... $ECHO_C" >&6; }
24920     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
24921     INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
24922     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`
24924     { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
24925 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
24926     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
24927         { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&5
24928 echo "$as_me: error: Your intltool is too old.  You need intltool 0.35.0 or later." >&2;}
24929    { (exit 1); exit 1; }; }
24932   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 $< $@'
24933 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 $< $@'
24934      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 $< $@'
24935      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 $< $@'
24936       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
24937      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 $< $@'
24938    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 $< $@'
24939     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 $< $@'
24940 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 $< $@'
24941        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 $< $@'
24942       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 $< $@'
24943       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
24944       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 $< $@'
24945       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 $< $@'
24946     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 $< $@'
24947   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 $< $@'
24948     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 $< $@'
24949     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 $< $@'
24950    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 $< $@'
24972 # Check the gettext tools to make sure they are GNU
24973 # Extract the first word of "xgettext", so it can be a program name with args.
24974 set dummy xgettext; ac_word=$2
24975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
24976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
24977 if test "${ac_cv_path_XGETTEXT+set}" = set; then
24978   echo $ECHO_N "(cached) $ECHO_C" >&6
24979 else
24980   case $XGETTEXT in
24981   [\\/]* | ?:[\\/]*)
24982   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
24983   ;;
24984   *)
24985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24986 for as_dir in $PATH
24988   IFS=$as_save_IFS
24989   test -z "$as_dir" && as_dir=.
24990   for ac_exec_ext in '' $ac_executable_extensions; do
24991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24992     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
24993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24994     break 2
24995   fi
24996 done
24997 done
24998 IFS=$as_save_IFS
25000   ;;
25001 esac
25003 XGETTEXT=$ac_cv_path_XGETTEXT
25004 if test -n "$XGETTEXT"; then
25005   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25006 echo "${ECHO_T}$XGETTEXT" >&6; }
25007 else
25008   { echo "$as_me:$LINENO: result: no" >&5
25009 echo "${ECHO_T}no" >&6; }
25013 # Extract the first word of "msgmerge", so it can be a program name with args.
25014 set dummy msgmerge; ac_word=$2
25015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25017 if test "${ac_cv_path_MSGMERGE+set}" = set; then
25018   echo $ECHO_N "(cached) $ECHO_C" >&6
25019 else
25020   case $MSGMERGE in
25021   [\\/]* | ?:[\\/]*)
25022   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
25023   ;;
25024   *)
25025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25026 for as_dir in $PATH
25028   IFS=$as_save_IFS
25029   test -z "$as_dir" && as_dir=.
25030   for ac_exec_ext in '' $ac_executable_extensions; do
25031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25032     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
25033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25034     break 2
25035   fi
25036 done
25037 done
25038 IFS=$as_save_IFS
25040   ;;
25041 esac
25043 MSGMERGE=$ac_cv_path_MSGMERGE
25044 if test -n "$MSGMERGE"; then
25045   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25046 echo "${ECHO_T}$MSGMERGE" >&6; }
25047 else
25048   { echo "$as_me:$LINENO: result: no" >&5
25049 echo "${ECHO_T}no" >&6; }
25053 # Extract the first word of "msgfmt", so it can be a program name with args.
25054 set dummy msgfmt; ac_word=$2
25055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25057 if test "${ac_cv_path_MSGFMT+set}" = set; then
25058   echo $ECHO_N "(cached) $ECHO_C" >&6
25059 else
25060   case $MSGFMT in
25061   [\\/]* | ?:[\\/]*)
25062   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
25063   ;;
25064   *)
25065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25066 for as_dir in $PATH
25068   IFS=$as_save_IFS
25069   test -z "$as_dir" && as_dir=.
25070   for ac_exec_ext in '' $ac_executable_extensions; do
25071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25072     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
25073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25074     break 2
25075   fi
25076 done
25077 done
25078 IFS=$as_save_IFS
25080   ;;
25081 esac
25083 MSGFMT=$ac_cv_path_MSGFMT
25084 if test -n "$MSGFMT"; then
25085   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25086 echo "${ECHO_T}$MSGFMT" >&6; }
25087 else
25088   { echo "$as_me:$LINENO: result: no" >&5
25089 echo "${ECHO_T}no" >&6; }
25093 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
25094     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
25095 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
25096    { (exit 1); exit 1; }; }
25098 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
25099 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
25100 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
25101 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
25102     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
25103 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
25104    { (exit 1); exit 1; }; }
25107 # Use the tools built into the package, not the ones that are installed.
25108 INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
25110 INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
25112 INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
25115 # Extract the first word of "perl", so it can be a program name with args.
25116 set dummy perl; ac_word=$2
25117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25119 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
25120   echo $ECHO_N "(cached) $ECHO_C" >&6
25121 else
25122   case $INTLTOOL_PERL in
25123   [\\/]* | ?:[\\/]*)
25124   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
25125   ;;
25126   *)
25127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25128 for as_dir in $PATH
25130   IFS=$as_save_IFS
25131   test -z "$as_dir" && as_dir=.
25132   for ac_exec_ext in '' $ac_executable_extensions; do
25133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25134     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
25135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25136     break 2
25137   fi
25138 done
25139 done
25140 IFS=$as_save_IFS
25142   ;;
25143 esac
25145 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
25146 if test -n "$INTLTOOL_PERL"; then
25147   { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
25148 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
25149 else
25150   { echo "$as_me:$LINENO: result: no" >&5
25151 echo "${ECHO_T}no" >&6; }
25155 if test -z "$INTLTOOL_PERL"; then
25156    { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
25157 echo "$as_me: error: perl not found; required for intltool" >&2;}
25158    { (exit 1); exit 1; }; }
25160 if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
25161    { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
25162 echo "$as_me: error: perl 5.x required for intltool" >&2;}
25163    { (exit 1); exit 1; }; }
25165 if test "xno-xml" != "xno-xml"; then
25166    { echo "$as_me:$LINENO: checking for XML::Parser" >&5
25167 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
25168    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
25169        { echo "$as_me:$LINENO: result: ok" >&5
25170 echo "${ECHO_T}ok" >&6; }
25171    else
25172        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
25173 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
25174    { (exit 1); exit 1; }; }
25175    fi
25178 # Substitute ALL_LINGUAS so we can use it in po/Makefile
25181 # Set DATADIRNAME correctly if it is not set yet
25182 # (copied from glib-gettext.m4)
25183 if test -z "$DATADIRNAME"; then
25184   cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25191 int
25192 main ()
25194 extern int _nl_msg_cat_cntr;
25195                        return _nl_msg_cat_cntr
25196   ;
25197   return 0;
25199 _ACEOF
25200 rm -f conftest.$ac_objext conftest$ac_exeext
25201 if { (ac_try="$ac_link"
25202 case "(($ac_try" in
25203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204   *) ac_try_echo=$ac_try;;
25205 esac
25206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25207   (eval "$ac_link") 2>conftest.er1
25208   ac_status=$?
25209   grep -v '^ *+' conftest.er1 >conftest.err
25210   rm -f conftest.er1
25211   cat conftest.err >&5
25212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213   (exit $ac_status); } && {
25214          test -z "$ac_c_werror_flag" ||
25215          test ! -s conftest.err
25216        } && test -s conftest$ac_exeext &&
25217        $as_test_x conftest$ac_exeext; then
25218   DATADIRNAME=share
25219 else
25220   echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25223         case $host in
25224     *-*-solaris*)
25225                         { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
25226 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
25227 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
25228   echo $ECHO_N "(cached) $ECHO_C" >&6
25229 else
25230   cat >conftest.$ac_ext <<_ACEOF
25231 /* confdefs.h.  */
25232 _ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h.  */
25236 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
25237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25238 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
25240 /* System header to define __stub macros and hopefully few prototypes,
25241     which can conflict with char bind_textdomain_codeset (); below.
25242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25243     <limits.h> exists even on freestanding compilers.  */
25245 #ifdef __STDC__
25246 # include <limits.h>
25247 #else
25248 # include <assert.h>
25249 #endif
25251 #undef bind_textdomain_codeset
25253 /* Override any GCC internal prototype to avoid an error.
25254    Use char because int might match the return type of a GCC
25255    builtin and then its argument prototype would still apply.  */
25256 #ifdef __cplusplus
25257 extern "C"
25258 #endif
25259 char bind_textdomain_codeset ();
25260 /* The GNU C library defines this for functions which it implements
25261     to always fail with ENOSYS.  Some functions are actually named
25262     something starting with __ and the normal name is an alias.  */
25263 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
25264 choke me
25265 #endif
25267 int
25268 main ()
25270 return bind_textdomain_codeset ();
25271   ;
25272   return 0;
25274 _ACEOF
25275 rm -f conftest.$ac_objext conftest$ac_exeext
25276 if { (ac_try="$ac_link"
25277 case "(($ac_try" in
25278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25279   *) ac_try_echo=$ac_try;;
25280 esac
25281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25282   (eval "$ac_link") 2>conftest.er1
25283   ac_status=$?
25284   grep -v '^ *+' conftest.er1 >conftest.err
25285   rm -f conftest.er1
25286   cat conftest.err >&5
25287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288   (exit $ac_status); } && {
25289          test -z "$ac_c_werror_flag" ||
25290          test ! -s conftest.err
25291        } && test -s conftest$ac_exeext &&
25292        $as_test_x conftest$ac_exeext; then
25293   ac_cv_func_bind_textdomain_codeset=yes
25294 else
25295   echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25298         ac_cv_func_bind_textdomain_codeset=no
25301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25302       conftest$ac_exeext conftest.$ac_ext
25304 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
25305 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
25306 if test $ac_cv_func_bind_textdomain_codeset = yes; then
25307   DATADIRNAME=share
25308 else
25309   DATADIRNAME=lib
25312     ;;
25313     *)
25314     DATADIRNAME=lib
25315     ;;
25316     esac
25319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25320       conftest$ac_exeext conftest.$ac_ext
25327 ac_config_commands="$ac_config_commands intltool"
25333 if test x$enable_libintl = xyes -a x$MSGFMT = xno; then
25334   { echo "$as_me:$LINENO: WARNING: I could not find msgfmt. Diabeling libintl build." >&5
25335 echo "$as_me: WARNING: I could not find msgfmt. Diabeling libintl build." >&2;}
25336   enable_libintl=no
25339 if test x$enable_libintl = xyes; then
25341 for ac_header in libintl.h
25343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25345   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25348   echo $ECHO_N "(cached) $ECHO_C" >&6
25350 ac_res=`eval echo '${'$as_ac_Header'}'`
25351                { echo "$as_me:$LINENO: result: $ac_res" >&5
25352 echo "${ECHO_T}$ac_res" >&6; }
25353 else
25354   # Is the header compilable?
25355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25357 cat >conftest.$ac_ext <<_ACEOF
25358 /* confdefs.h.  */
25359 _ACEOF
25360 cat confdefs.h >>conftest.$ac_ext
25361 cat >>conftest.$ac_ext <<_ACEOF
25362 /* end confdefs.h.  */
25363 $ac_includes_default
25364 #include <$ac_header>
25365 _ACEOF
25366 rm -f conftest.$ac_objext
25367 if { (ac_try="$ac_compile"
25368 case "(($ac_try" in
25369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370   *) ac_try_echo=$ac_try;;
25371 esac
25372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25373   (eval "$ac_compile") 2>conftest.er1
25374   ac_status=$?
25375   grep -v '^ *+' conftest.er1 >conftest.err
25376   rm -f conftest.er1
25377   cat conftest.err >&5
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); } && {
25380          test -z "$ac_c_werror_flag" ||
25381          test ! -s conftest.err
25382        } && test -s conftest.$ac_objext; then
25383   ac_header_compiler=yes
25384 else
25385   echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25388         ac_header_compiler=no
25391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25393 echo "${ECHO_T}$ac_header_compiler" >&6; }
25395 # Is the header present?
25396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25398 cat >conftest.$ac_ext <<_ACEOF
25399 /* confdefs.h.  */
25400 _ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h.  */
25404 #include <$ac_header>
25405 _ACEOF
25406 if { (ac_try="$ac_cpp conftest.$ac_ext"
25407 case "(($ac_try" in
25408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25409   *) ac_try_echo=$ac_try;;
25410 esac
25411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25412   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25413   ac_status=$?
25414   grep -v '^ *+' conftest.er1 >conftest.err
25415   rm -f conftest.er1
25416   cat conftest.err >&5
25417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418   (exit $ac_status); } >/dev/null && {
25419          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25420          test ! -s conftest.err
25421        }; then
25422   ac_header_preproc=yes
25423 else
25424   echo "$as_me: failed program was:" >&5
25425 sed 's/^/| /' conftest.$ac_ext >&5
25427   ac_header_preproc=no
25430 rm -f conftest.err conftest.$ac_ext
25431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25432 echo "${ECHO_T}$ac_header_preproc" >&6; }
25434 # So?  What about this header?
25435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25436   yes:no: )
25437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25441     ac_header_preproc=yes
25442     ;;
25443   no:yes:* )
25444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25457     ;;
25458 esac
25459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25462   echo $ECHO_N "(cached) $ECHO_C" >&6
25463 else
25464   eval "$as_ac_Header=\$ac_header_preproc"
25466 ac_res=`eval echo '${'$as_ac_Header'}'`
25467                { echo "$as_me:$LINENO: result: $ac_res" >&5
25468 echo "${ECHO_T}$ac_res" >&6; }
25471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25472   cat >>confdefs.h <<_ACEOF
25473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25474 _ACEOF
25476 else
25477   { echo "$as_me:$LINENO: result: disabeling libintl build" >&5
25478 echo "${ECHO_T}disabeling libintl build" >&6; }; enable_libintl=no
25481 done
25485 if test x$enable_libintl = xyes ; then
25486       { echo "$as_me:$LINENO: checking for libintl_gettext in -lintl" >&5
25487 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6; }
25488 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
25489   echo $ECHO_N "(cached) $ECHO_C" >&6
25490 else
25491   ac_check_lib_save_LIBS=$LIBS
25492 LIBS="-lintl  $LIBS"
25493 cat >conftest.$ac_ext <<_ACEOF
25494 /* confdefs.h.  */
25495 _ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h.  */
25500 /* Override any GCC internal prototype to avoid an error.
25501    Use char because int might match the return type of a GCC
25502    builtin and then its argument prototype would still apply.  */
25503 #ifdef __cplusplus
25504 extern "C"
25505 #endif
25506 char libintl_gettext ();
25507 int
25508 main ()
25510 return libintl_gettext ();
25511   ;
25512   return 0;
25514 _ACEOF
25515 rm -f conftest.$ac_objext conftest$ac_exeext
25516 if { (ac_try="$ac_link"
25517 case "(($ac_try" in
25518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25519   *) ac_try_echo=$ac_try;;
25520 esac
25521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25522   (eval "$ac_link") 2>conftest.er1
25523   ac_status=$?
25524   grep -v '^ *+' conftest.er1 >conftest.err
25525   rm -f conftest.er1
25526   cat conftest.err >&5
25527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25528   (exit $ac_status); } && {
25529          test -z "$ac_c_werror_flag" ||
25530          test ! -s conftest.err
25531        } && test -s conftest$ac_exeext &&
25532        $as_test_x conftest$ac_exeext; then
25533   ac_cv_lib_intl_libintl_gettext=yes
25534 else
25535   echo "$as_me: failed program was:" >&5
25536 sed 's/^/| /' conftest.$ac_ext >&5
25538         ac_cv_lib_intl_libintl_gettext=no
25541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25542       conftest$ac_exeext conftest.$ac_ext
25543 LIBS=$ac_check_lib_save_LIBS
25545 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_libintl_gettext" >&5
25546 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6; }
25547 if test $ac_cv_lib_intl_libintl_gettext = yes; then
25548   LIB_LIBINTL="-lintl"
25557 if test x$enable_libintl = xyes; then
25558   BUILD_LIBINTL_TRUE=
25559   BUILD_LIBINTL_FALSE='#'
25560 else
25561   BUILD_LIBINTL_TRUE='#'
25562   BUILD_LIBINTL_FALSE=
25566 if test x$enable_libintl = xyes; then
25568 cat >>confdefs.h <<\_ACEOF
25569 #define BUILD_LIBINTL
25570 _ACEOF
25575 case $TERM in
25576        #   for the most important terminal types we directly know the sequences
25577        xterm|xterm*|vt220|vt220*)
25578                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
25579                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
25580        ;;
25581        vt100|vt100*|cygwin)
25582                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
25583                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
25584        ;;
25585        *)
25586                T_MD=''
25587                T_ME=''
25588        ;;
25589 esac
25590   { echo "$as_me:$LINENO: result: " >&5
25591 echo "${ECHO_T}" >&6; }
25592   { echo "$as_me:$LINENO: result: ${T_MD}IEEE Math Checks${T_ME}" >&5
25593 echo "${ECHO_T}${T_MD}IEEE Math Checks${T_ME}" >&6; }
25598 for ac_func in fpclassify
25600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25604   echo $ECHO_N "(cached) $ECHO_C" >&6
25605 else
25606   cat >conftest.$ac_ext <<_ACEOF
25607 /* confdefs.h.  */
25608 _ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h.  */
25612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25614 #define $ac_func innocuous_$ac_func
25616 /* System header to define __stub macros and hopefully few prototypes,
25617     which can conflict with char $ac_func (); below.
25618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25619     <limits.h> exists even on freestanding compilers.  */
25621 #ifdef __STDC__
25622 # include <limits.h>
25623 #else
25624 # include <assert.h>
25625 #endif
25627 #undef $ac_func
25629 /* Override any GCC internal prototype to avoid an error.
25630    Use char because int might match the return type of a GCC
25631    builtin and then its argument prototype would still apply.  */
25632 #ifdef __cplusplus
25633 extern "C"
25634 #endif
25635 char $ac_func ();
25636 /* The GNU C library defines this for functions which it implements
25637     to always fail with ENOSYS.  Some functions are actually named
25638     something starting with __ and the normal name is an alias.  */
25639 #if defined __stub_$ac_func || defined __stub___$ac_func
25640 choke me
25641 #endif
25643 int
25644 main ()
25646 return $ac_func ();
25647   ;
25648   return 0;
25650 _ACEOF
25651 rm -f conftest.$ac_objext conftest$ac_exeext
25652 if { (ac_try="$ac_link"
25653 case "(($ac_try" in
25654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655   *) ac_try_echo=$ac_try;;
25656 esac
25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658   (eval "$ac_link") 2>conftest.er1
25659   ac_status=$?
25660   grep -v '^ *+' conftest.er1 >conftest.err
25661   rm -f conftest.er1
25662   cat conftest.err >&5
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); } && {
25665          test -z "$ac_c_werror_flag" ||
25666          test ! -s conftest.err
25667        } && test -s conftest$ac_exeext &&
25668        $as_test_x conftest$ac_exeext; then
25669   eval "$as_ac_var=yes"
25670 else
25671   echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25674         eval "$as_ac_var=no"
25677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25678       conftest$ac_exeext conftest.$ac_ext
25680 ac_res=`eval echo '${'$as_ac_var'}'`
25681                { echo "$as_me:$LINENO: result: $ac_res" >&5
25682 echo "${ECHO_T}$ac_res" >&6; }
25683 if test `eval echo '${'$as_ac_var'}'` = yes; then
25684   cat >>confdefs.h <<_ACEOF
25685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25686 _ACEOF
25688 else
25689   { echo "$as_me:$LINENO: checking for fpclassify with <math.h>" >&5
25690 echo $ECHO_N "checking for fpclassify with <math.h>... $ECHO_C" >&6; }
25691     cat >conftest.$ac_ext <<_ACEOF
25692 /* confdefs.h.  */
25693 _ACEOF
25694 cat confdefs.h >>conftest.$ac_ext
25695 cat >>conftest.$ac_ext <<_ACEOF
25696 /* end confdefs.h.  */
25697 #include <math.h>
25698 volatile int x;volatile float f;
25699 int
25700 main ()
25702 x = fpclassify(f)
25703   ;
25704   return 0;
25706 _ACEOF
25707 rm -f conftest.$ac_objext conftest$ac_exeext
25708 if { (ac_try="$ac_link"
25709 case "(($ac_try" in
25710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711   *) ac_try_echo=$ac_try;;
25712 esac
25713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25714   (eval "$ac_link") 2>conftest.er1
25715   ac_status=$?
25716   grep -v '^ *+' conftest.er1 >conftest.err
25717   rm -f conftest.er1
25718   cat conftest.err >&5
25719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720   (exit $ac_status); } && {
25721          test -z "$ac_c_werror_flag" ||
25722          test ! -s conftest.err
25723        } && test -s conftest$ac_exeext &&
25724        $as_test_x conftest$ac_exeext; then
25725   { echo "$as_me:$LINENO: result: yes" >&5
25726 echo "${ECHO_T}yes" >&6; }
25727       cat >>confdefs.h <<\_ACEOF
25728 #define HAVE_FPCLASSIFY 1
25729 _ACEOF
25731 else
25732   echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25735         { echo "$as_me:$LINENO: result: no" >&5
25736 echo "${ECHO_T}no" >&6; }
25739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25740       conftest$ac_exeext conftest.$ac_ext
25742 done
25746 for ac_func in isinf
25748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25752   echo $ECHO_N "(cached) $ECHO_C" >&6
25753 else
25754   cat >conftest.$ac_ext <<_ACEOF
25755 /* confdefs.h.  */
25756 _ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h.  */
25760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25762 #define $ac_func innocuous_$ac_func
25764 /* System header to define __stub macros and hopefully few prototypes,
25765     which can conflict with char $ac_func (); below.
25766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25767     <limits.h> exists even on freestanding compilers.  */
25769 #ifdef __STDC__
25770 # include <limits.h>
25771 #else
25772 # include <assert.h>
25773 #endif
25775 #undef $ac_func
25777 /* Override any GCC internal prototype to avoid an error.
25778    Use char because int might match the return type of a GCC
25779    builtin and then its argument prototype would still apply.  */
25780 #ifdef __cplusplus
25781 extern "C"
25782 #endif
25783 char $ac_func ();
25784 /* The GNU C library defines this for functions which it implements
25785     to always fail with ENOSYS.  Some functions are actually named
25786     something starting with __ and the normal name is an alias.  */
25787 #if defined __stub_$ac_func || defined __stub___$ac_func
25788 choke me
25789 #endif
25791 int
25792 main ()
25794 return $ac_func ();
25795   ;
25796   return 0;
25798 _ACEOF
25799 rm -f conftest.$ac_objext conftest$ac_exeext
25800 if { (ac_try="$ac_link"
25801 case "(($ac_try" in
25802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25803   *) ac_try_echo=$ac_try;;
25804 esac
25805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25806   (eval "$ac_link") 2>conftest.er1
25807   ac_status=$?
25808   grep -v '^ *+' conftest.er1 >conftest.err
25809   rm -f conftest.er1
25810   cat conftest.err >&5
25811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812   (exit $ac_status); } && {
25813          test -z "$ac_c_werror_flag" ||
25814          test ! -s conftest.err
25815        } && test -s conftest$ac_exeext &&
25816        $as_test_x conftest$ac_exeext; then
25817   eval "$as_ac_var=yes"
25818 else
25819   echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25822         eval "$as_ac_var=no"
25825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25826       conftest$ac_exeext conftest.$ac_ext
25828 ac_res=`eval echo '${'$as_ac_var'}'`
25829                { echo "$as_me:$LINENO: result: $ac_res" >&5
25830 echo "${ECHO_T}$ac_res" >&6; }
25831 if test `eval echo '${'$as_ac_var'}'` = yes; then
25832   cat >>confdefs.h <<_ACEOF
25833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25834 _ACEOF
25836 else
25837   { echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
25838 echo $ECHO_N "checking for isinf with <math.h>... $ECHO_C" >&6; }
25839     cat >conftest.$ac_ext <<_ACEOF
25840 /* confdefs.h.  */
25841 _ACEOF
25842 cat confdefs.h >>conftest.$ac_ext
25843 cat >>conftest.$ac_ext <<_ACEOF
25844 /* end confdefs.h.  */
25845 #include <math.h>
25846 volatile int x;volatile float f;
25847 int
25848 main ()
25850 x = isinf(f)
25851   ;
25852   return 0;
25854 _ACEOF
25855 rm -f conftest.$ac_objext conftest$ac_exeext
25856 if { (ac_try="$ac_link"
25857 case "(($ac_try" in
25858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859   *) ac_try_echo=$ac_try;;
25860 esac
25861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25862   (eval "$ac_link") 2>conftest.er1
25863   ac_status=$?
25864   grep -v '^ *+' conftest.er1 >conftest.err
25865   rm -f conftest.er1
25866   cat conftest.err >&5
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); } && {
25869          test -z "$ac_c_werror_flag" ||
25870          test ! -s conftest.err
25871        } && test -s conftest$ac_exeext &&
25872        $as_test_x conftest$ac_exeext; then
25873   { echo "$as_me:$LINENO: result: yes" >&5
25874 echo "${ECHO_T}yes" >&6; }
25875       cat >>confdefs.h <<\_ACEOF
25876 #define HAVE_ISINF 1
25877 _ACEOF
25879 else
25880   echo "$as_me: failed program was:" >&5
25881 sed 's/^/| /' conftest.$ac_ext >&5
25883         { echo "$as_me:$LINENO: result: no" >&5
25884 echo "${ECHO_T}no" >&6; }
25887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25888       conftest$ac_exeext conftest.$ac_ext
25890 done
25893 { echo "$as_me:$LINENO: checking whether isfinite is broken" >&5
25894 echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6; }
25895 if test "${have_broken_isfinite+set}" = set; then
25896   echo $ECHO_N "(cached) $ECHO_C" >&6
25897 else
25899 if test "$cross_compiling" = yes; then
25901 case "${target}" in
25902   hppa*-*-hpux*) have_broken_isfinite=yes ;;
25903   *) have_broken_isfinite=no ;;
25904 esac
25905 else
25906   cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25913 #ifdef HAVE_MATH_H
25914 #include <math.h>
25915 #endif
25916 #ifdef HAVE_FLOAT_H
25917 #include <float.h>
25918 #endif
25919 int main ()
25921 #ifdef isfinite
25922 #ifdef LDBL_MAX
25923   if (!isfinite(LDBL_MAX)) return 1;
25924 #endif
25925 #ifdef DBL_MAX
25926   if (!isfinite(DBL_MAX)) return 1;
25927 #endif
25928 #endif
25929 return 0;
25931 _ACEOF
25932 rm -f conftest$ac_exeext
25933 if { (ac_try="$ac_link"
25934 case "(($ac_try" in
25935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936   *) ac_try_echo=$ac_try;;
25937 esac
25938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25939   (eval "$ac_link") 2>&5
25940   ac_status=$?
25941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25943   { (case "(($ac_try" in
25944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25945   *) ac_try_echo=$ac_try;;
25946 esac
25947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25948   (eval "$ac_try") 2>&5
25949   ac_status=$?
25950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951   (exit $ac_status); }; }; then
25953 have_broken_isfinite=no
25954 else
25955   echo "$as_me: program exited with status $ac_status" >&5
25956 echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25959 ( exit $ac_status )
25960 have_broken_isfinite=yes
25962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25968 { echo "$as_me:$LINENO: result: $have_broken_isfinite" >&5
25969 echo "${ECHO_T}$have_broken_isfinite" >&6; }
25970 if test "x$have_broken_isfinite" = "xno"; then
25971   cat >>confdefs.h <<\_ACEOF
25972 #define HAVE_ISFINITE 1
25973 _ACEOF
25975 else
25977 for ac_func in finite
25979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25980 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25982 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25983   echo $ECHO_N "(cached) $ECHO_C" >&6
25984 else
25985   cat >conftest.$ac_ext <<_ACEOF
25986 /* confdefs.h.  */
25987 _ACEOF
25988 cat confdefs.h >>conftest.$ac_ext
25989 cat >>conftest.$ac_ext <<_ACEOF
25990 /* end confdefs.h.  */
25991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25993 #define $ac_func innocuous_$ac_func
25995 /* System header to define __stub macros and hopefully few prototypes,
25996     which can conflict with char $ac_func (); below.
25997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25998     <limits.h> exists even on freestanding compilers.  */
26000 #ifdef __STDC__
26001 # include <limits.h>
26002 #else
26003 # include <assert.h>
26004 #endif
26006 #undef $ac_func
26008 /* Override any GCC internal prototype to avoid an error.
26009    Use char because int might match the return type of a GCC
26010    builtin and then its argument prototype would still apply.  */
26011 #ifdef __cplusplus
26012 extern "C"
26013 #endif
26014 char $ac_func ();
26015 /* The GNU C library defines this for functions which it implements
26016     to always fail with ENOSYS.  Some functions are actually named
26017     something starting with __ and the normal name is an alias.  */
26018 #if defined __stub_$ac_func || defined __stub___$ac_func
26019 choke me
26020 #endif
26022 int
26023 main ()
26025 return $ac_func ();
26026   ;
26027   return 0;
26029 _ACEOF
26030 rm -f conftest.$ac_objext conftest$ac_exeext
26031 if { (ac_try="$ac_link"
26032 case "(($ac_try" in
26033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034   *) ac_try_echo=$ac_try;;
26035 esac
26036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26037   (eval "$ac_link") 2>conftest.er1
26038   ac_status=$?
26039   grep -v '^ *+' conftest.er1 >conftest.err
26040   rm -f conftest.er1
26041   cat conftest.err >&5
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); } && {
26044          test -z "$ac_c_werror_flag" ||
26045          test ! -s conftest.err
26046        } && test -s conftest$ac_exeext &&
26047        $as_test_x conftest$ac_exeext; then
26048   eval "$as_ac_var=yes"
26049 else
26050   echo "$as_me: failed program was:" >&5
26051 sed 's/^/| /' conftest.$ac_ext >&5
26053         eval "$as_ac_var=no"
26056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26057       conftest$ac_exeext conftest.$ac_ext
26059 ac_res=`eval echo '${'$as_ac_var'}'`
26060                { echo "$as_me:$LINENO: result: $ac_res" >&5
26061 echo "${ECHO_T}$ac_res" >&6; }
26062 if test `eval echo '${'$as_ac_var'}'` = yes; then
26063   cat >>confdefs.h <<_ACEOF
26064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26065 _ACEOF
26067 else
26069 for ac_func in isfinite
26071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26072 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26075   echo $ECHO_N "(cached) $ECHO_C" >&6
26076 else
26077   cat >conftest.$ac_ext <<_ACEOF
26078 /* confdefs.h.  */
26079 _ACEOF
26080 cat confdefs.h >>conftest.$ac_ext
26081 cat >>conftest.$ac_ext <<_ACEOF
26082 /* end confdefs.h.  */
26083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26085 #define $ac_func innocuous_$ac_func
26087 /* System header to define __stub macros and hopefully few prototypes,
26088     which can conflict with char $ac_func (); below.
26089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26090     <limits.h> exists even on freestanding compilers.  */
26092 #ifdef __STDC__
26093 # include <limits.h>
26094 #else
26095 # include <assert.h>
26096 #endif
26098 #undef $ac_func
26100 /* Override any GCC internal prototype to avoid an error.
26101    Use char because int might match the return type of a GCC
26102    builtin and then its argument prototype would still apply.  */
26103 #ifdef __cplusplus
26104 extern "C"
26105 #endif
26106 char $ac_func ();
26107 /* The GNU C library defines this for functions which it implements
26108     to always fail with ENOSYS.  Some functions are actually named
26109     something starting with __ and the normal name is an alias.  */
26110 #if defined __stub_$ac_func || defined __stub___$ac_func
26111 choke me
26112 #endif
26114 int
26115 main ()
26117 return $ac_func ();
26118   ;
26119   return 0;
26121 _ACEOF
26122 rm -f conftest.$ac_objext conftest$ac_exeext
26123 if { (ac_try="$ac_link"
26124 case "(($ac_try" in
26125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26126   *) ac_try_echo=$ac_try;;
26127 esac
26128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26129   (eval "$ac_link") 2>conftest.er1
26130   ac_status=$?
26131   grep -v '^ *+' conftest.er1 >conftest.err
26132   rm -f conftest.er1
26133   cat conftest.err >&5
26134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135   (exit $ac_status); } && {
26136          test -z "$ac_c_werror_flag" ||
26137          test ! -s conftest.err
26138        } && test -s conftest$ac_exeext &&
26139        $as_test_x conftest$ac_exeext; then
26140   eval "$as_ac_var=yes"
26141 else
26142   echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26145         eval "$as_ac_var=no"
26148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26149       conftest$ac_exeext conftest.$ac_ext
26151 ac_res=`eval echo '${'$as_ac_var'}'`
26152                { echo "$as_me:$LINENO: result: $ac_res" >&5
26153 echo "${ECHO_T}$ac_res" >&6; }
26154 if test `eval echo '${'$as_ac_var'}'` = yes; then
26155   cat >>confdefs.h <<_ACEOF
26156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26157 _ACEOF
26159 else
26160   { echo "$as_me:$LINENO: checking for isfinite with <math.h>" >&5
26161 echo $ECHO_N "checking for isfinite with <math.h>... $ECHO_C" >&6; }
26162        cat >conftest.$ac_ext <<_ACEOF
26163 /* confdefs.h.  */
26164 _ACEOF
26165 cat confdefs.h >>conftest.$ac_ext
26166 cat >>conftest.$ac_ext <<_ACEOF
26167 /* end confdefs.h.  */
26168 #include <math.h>
26169 volatile int x;volatile float f;
26170 int
26171 main ()
26173 x = isfinite(f)
26174   ;
26175   return 0;
26177 _ACEOF
26178 rm -f conftest.$ac_objext conftest$ac_exeext
26179 if { (ac_try="$ac_link"
26180 case "(($ac_try" in
26181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182   *) ac_try_echo=$ac_try;;
26183 esac
26184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26185   (eval "$ac_link") 2>conftest.er1
26186   ac_status=$?
26187   grep -v '^ *+' conftest.er1 >conftest.err
26188   rm -f conftest.er1
26189   cat conftest.err >&5
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); } && {
26192          test -z "$ac_c_werror_flag" ||
26193          test ! -s conftest.err
26194        } && test -s conftest$ac_exeext &&
26195        $as_test_x conftest$ac_exeext; then
26196   { echo "$as_me:$LINENO: result: yes" >&5
26197 echo "${ECHO_T}yes" >&6; }
26198                 cat >>confdefs.h <<\_ACEOF
26199 #define HAVE_ISFINITE 1
26200 _ACEOF
26202 else
26203   echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26206         { echo "$as_me:$LINENO: result: no" >&5
26207 echo "${ECHO_T}no" >&6; }
26210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26211       conftest$ac_exeext conftest.$ac_ext
26213 done
26216 done
26221 ac_ext=c
26222 ac_cpp='$CPP $CPPFLAGS'
26223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26227 _cflags=${CFLAGS}
26229 { echo "$as_me:$LINENO: checking if IEEE math works out of the box" >&5
26230 echo $ECHO_N "checking if IEEE math works out of the box... $ECHO_C" >&6; }
26231 if test "${rd_cv_ieee_works+set}" = set; then
26232   echo $ECHO_N "(cached) $ECHO_C" >&6
26233 else
26234   if test "$cross_compiling" = yes; then
26235   :
26236 else
26237   cat >conftest.$ac_ext <<_ACEOF
26238 /* confdefs.h.  */
26239 _ACEOF
26240 cat confdefs.h >>conftest.$ac_ext
26241 cat >>conftest.$ac_ext <<_ACEOF
26242 /* end confdefs.h.  */
26245 #if HAVE_MATH_H
26246 #  include <math.h>
26247 #endif
26249 #if HAVE_FLOAT_H
26250 #  include <float.h>
26251 #endif
26253 #if HAVE_IEEEFP_H
26254 #  include <ieeefp.h>
26255 #endif
26257 #if HAVE_FP_CLASS_H
26258 #  include <fp_class.h>
26259 #endif
26261 /* Solaris */
26262 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26263 #  define HAVE_ISINF 1
26264 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26265 #endif
26267 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26268 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26269 #  undef isnan
26270 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26271 #endif
26273 /* Digital UNIX */
26274 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26275 #  define HAVE_ISINF 1
26276 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26277 #endif
26279 /* AIX */
26280 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26281 #  define HAVE_ISINF 1
26282 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26283 #endif
26285 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26286 #  define HAVE_ISINF 1
26287 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26288 #endif
26290 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26291 #  define HAVE_ISINF 1
26292 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26293 #endif
26295 #include <stdio.h>
26296 int main(void){
26297     double rrdnan,rrdinf,rrdc,rrdzero;
26298     ;
26299     /* some math to see if we get a floating point exception */
26300     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26301     rrdnan=0.0/rrdzero; /* especially here */
26302     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26303                   /* at run time without sig fpe */
26304     rrdc = rrdinf + rrdnan;
26305     rrdc = rrdinf / rrdnan;
26306     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26307     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26308     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26309     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26310     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26311     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26312     return 0;
26313  }
26314 _ACEOF
26315 rm -f conftest$ac_exeext
26316 if { (ac_try="$ac_link"
26317 case "(($ac_try" in
26318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319   *) ac_try_echo=$ac_try;;
26320 esac
26321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26322   (eval "$ac_link") 2>&5
26323   ac_status=$?
26324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26326   { (case "(($ac_try" in
26327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328   *) ac_try_echo=$ac_try;;
26329 esac
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331   (eval "$ac_try") 2>&5
26332   ac_status=$?
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); }; }; then
26335   rd_cv_ieee_works=yes
26336 else
26337   echo "$as_me: program exited with status $ac_status" >&5
26338 echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26341 ( exit $ac_status )
26342 rd_cv_ieee_works=no
26344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26350 if test x${rd_cv_ieee_works} = "xyes"; then
26351  { echo "$as_me:$LINENO: result: yes" >&5
26352 echo "${ECHO_T}yes" >&6; }
26354 else
26355  { echo "$as_me:$LINENO: result: no" >&5
26356 echo "${ECHO_T}no" >&6; }
26357  CFLAGS="$_cflags -ieee"
26359 { echo "$as_me:$LINENO: checking if IEEE math works with the -ieee switch" >&5
26360 echo $ECHO_N "checking if IEEE math works with the -ieee switch... $ECHO_C" >&6; }
26361 if test "${rd_cv_ieee_switch+set}" = set; then
26362   echo $ECHO_N "(cached) $ECHO_C" >&6
26363 else
26364   if test "$cross_compiling" = yes; then
26365   :
26366 else
26367   cat >conftest.$ac_ext <<_ACEOF
26368 /* confdefs.h.  */
26369 _ACEOF
26370 cat confdefs.h >>conftest.$ac_ext
26371 cat >>conftest.$ac_ext <<_ACEOF
26372 /* end confdefs.h.  */
26375 #if HAVE_MATH_H
26376 #  include <math.h>
26377 #endif
26379 #if HAVE_FLOAT_H
26380 #  include <float.h>
26381 #endif
26383 #if HAVE_IEEEFP_H
26384 #  include <ieeefp.h>
26385 #endif
26387 #if HAVE_FP_CLASS_H
26388 #  include <fp_class.h>
26389 #endif
26391 /* Solaris */
26392 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26393 #  define HAVE_ISINF 1
26394 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26395 #endif
26397 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26398 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26399 #  undef isnan
26400 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26401 #endif
26403 /* Digital UNIX */
26404 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26405 #  define HAVE_ISINF 1
26406 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26407 #endif
26409 /* AIX */
26410 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26411 #  define HAVE_ISINF 1
26412 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26413 #endif
26415 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26416 #  define HAVE_ISINF 1
26417 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26418 #endif
26420 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26421 #  define HAVE_ISINF 1
26422 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26423 #endif
26425 #include <stdio.h>
26426 int main(void){
26427     double rrdnan,rrdinf,rrdc,rrdzero;
26428     ;
26429     /* some math to see if we get a floating point exception */
26430     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26431     rrdnan=0.0/rrdzero; /* especially here */
26432     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26433                   /* at run time without sig fpe */
26434     rrdc = rrdinf + rrdnan;
26435     rrdc = rrdinf / rrdnan;
26436     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26437     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26438     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26439     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26440     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26441     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26442     return 0;
26443  }
26444 _ACEOF
26445 rm -f conftest$ac_exeext
26446 if { (ac_try="$ac_link"
26447 case "(($ac_try" in
26448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449   *) ac_try_echo=$ac_try;;
26450 esac
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452   (eval "$ac_link") 2>&5
26453   ac_status=$?
26454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26456   { (case "(($ac_try" in
26457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26458   *) ac_try_echo=$ac_try;;
26459 esac
26460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26461   (eval "$ac_try") 2>&5
26462   ac_status=$?
26463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464   (exit $ac_status); }; }; then
26465   rd_cv_ieee_switch=yes
26466 else
26467   echo "$as_me: program exited with status $ac_status" >&5
26468 echo "$as_me: failed program was:" >&5
26469 sed 's/^/| /' conftest.$ac_ext >&5
26471 ( exit $ac_status )
26472 rd_cv_ieee_switch=no
26474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26480 if test x${rd_cv_ieee_switch} = "xyes"; then
26481  { echo "$as_me:$LINENO: result: yes" >&5
26482 echo "${ECHO_T}yes" >&6; }
26484 else
26485  { echo "$as_me:$LINENO: result: no" >&5
26486 echo "${ECHO_T}no" >&6; }
26487  CFLAGS="$_cflags -qfloat=nofold"
26489 { echo "$as_me:$LINENO: checking if IEEE math works with the -qfloat=nofold switch" >&5
26490 echo $ECHO_N "checking if IEEE math works with the -qfloat=nofold switch... $ECHO_C" >&6; }
26491 if test "${rd_cv_ieee_nofold+set}" = set; then
26492   echo $ECHO_N "(cached) $ECHO_C" >&6
26493 else
26494   if test "$cross_compiling" = yes; then
26495   :
26496 else
26497   cat >conftest.$ac_ext <<_ACEOF
26498 /* confdefs.h.  */
26499 _ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h.  */
26505 #if HAVE_MATH_H
26506 #  include <math.h>
26507 #endif
26509 #if HAVE_FLOAT_H
26510 #  include <float.h>
26511 #endif
26513 #if HAVE_IEEEFP_H
26514 #  include <ieeefp.h>
26515 #endif
26517 #if HAVE_FP_CLASS_H
26518 #  include <fp_class.h>
26519 #endif
26521 /* Solaris */
26522 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26523 #  define HAVE_ISINF 1
26524 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26525 #endif
26527 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26528 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26529 #  undef isnan
26530 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26531 #endif
26533 /* Digital UNIX */
26534 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26535 #  define HAVE_ISINF 1
26536 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26537 #endif
26539 /* AIX */
26540 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26541 #  define HAVE_ISINF 1
26542 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26543 #endif
26545 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26546 #  define HAVE_ISINF 1
26547 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26548 #endif
26550 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26551 #  define HAVE_ISINF 1
26552 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26553 #endif
26555 #include <stdio.h>
26556 int main(void){
26557     double rrdnan,rrdinf,rrdc,rrdzero;
26558     ;
26559     /* some math to see if we get a floating point exception */
26560     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26561     rrdnan=0.0/rrdzero; /* especially here */
26562     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26563                   /* at run time without sig fpe */
26564     rrdc = rrdinf + rrdnan;
26565     rrdc = rrdinf / rrdnan;
26566     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26567     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26568     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26569     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26570     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26571     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26572     return 0;
26573  }
26574 _ACEOF
26575 rm -f conftest$ac_exeext
26576 if { (ac_try="$ac_link"
26577 case "(($ac_try" in
26578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26579   *) ac_try_echo=$ac_try;;
26580 esac
26581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26582   (eval "$ac_link") 2>&5
26583   ac_status=$?
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26586   { (case "(($ac_try" in
26587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588   *) ac_try_echo=$ac_try;;
26589 esac
26590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591   (eval "$ac_try") 2>&5
26592   ac_status=$?
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); }; }; then
26595   rd_cv_ieee_nofold=yes
26596 else
26597   echo "$as_me: program exited with status $ac_status" >&5
26598 echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26601 ( exit $ac_status )
26602 rd_cv_ieee_nofold=no
26604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26610 if test x${rd_cv_ieee_nofold} = "xyes"; then
26611  { echo "$as_me:$LINENO: result: yes" >&5
26612 echo "${ECHO_T}yes" >&6; }
26614 else
26615  { echo "$as_me:$LINENO: result: no" >&5
26616 echo "${ECHO_T}no" >&6; }
26617  CFLAGS="$_cflags -w -qflttrap=enable:zerodivide"
26619 { echo "$as_me:$LINENO: checking if IEEE math works with the -w -qflttrap=enable:zerodivide" >&5
26620 echo $ECHO_N "checking if IEEE math works with the -w -qflttrap=enable:zerodivide... $ECHO_C" >&6; }
26621 if test "${rd_cv_ieee_flttrap+set}" = set; then
26622   echo $ECHO_N "(cached) $ECHO_C" >&6
26623 else
26624   if test "$cross_compiling" = yes; then
26625   :
26626 else
26627   cat >conftest.$ac_ext <<_ACEOF
26628 /* confdefs.h.  */
26629 _ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h.  */
26635 #if HAVE_MATH_H
26636 #  include <math.h>
26637 #endif
26639 #if HAVE_FLOAT_H
26640 #  include <float.h>
26641 #endif
26643 #if HAVE_IEEEFP_H
26644 #  include <ieeefp.h>
26645 #endif
26647 #if HAVE_FP_CLASS_H
26648 #  include <fp_class.h>
26649 #endif
26651 /* Solaris */
26652 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26653 #  define HAVE_ISINF 1
26654 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26655 #endif
26657 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26658 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26659 #  undef isnan
26660 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26661 #endif
26663 /* Digital UNIX */
26664 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26665 #  define HAVE_ISINF 1
26666 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26667 #endif
26669 /* AIX */
26670 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26671 #  define HAVE_ISINF 1
26672 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26673 #endif
26675 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26676 #  define HAVE_ISINF 1
26677 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26678 #endif
26680 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26681 #  define HAVE_ISINF 1
26682 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26683 #endif
26685 #include <stdio.h>
26686 int main(void){
26687     double rrdnan,rrdinf,rrdc,rrdzero;
26688     ;
26689     /* some math to see if we get a floating point exception */
26690     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26691     rrdnan=0.0/rrdzero; /* especially here */
26692     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26693                   /* at run time without sig fpe */
26694     rrdc = rrdinf + rrdnan;
26695     rrdc = rrdinf / rrdnan;
26696     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26697     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26698     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26699     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26700     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26701     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26702     return 0;
26703  }
26704 _ACEOF
26705 rm -f conftest$ac_exeext
26706 if { (ac_try="$ac_link"
26707 case "(($ac_try" in
26708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26709   *) ac_try_echo=$ac_try;;
26710 esac
26711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26712   (eval "$ac_link") 2>&5
26713   ac_status=$?
26714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26716   { (case "(($ac_try" in
26717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26718   *) ac_try_echo=$ac_try;;
26719 esac
26720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26721   (eval "$ac_try") 2>&5
26722   ac_status=$?
26723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724   (exit $ac_status); }; }; then
26725   rd_cv_ieee_flttrap=yes
26726 else
26727   echo "$as_me: program exited with status $ac_status" >&5
26728 echo "$as_me: failed program was:" >&5
26729 sed 's/^/| /' conftest.$ac_ext >&5
26731 ( exit $ac_status )
26732 rd_cv_ieee_flttrap=no
26734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26740 if test x${rd_cv_ieee_flttrap} = "xyes"; then
26741  { echo "$as_me:$LINENO: result: yes" >&5
26742 echo "${ECHO_T}yes" >&6; }
26744 else
26745  { echo "$as_me:$LINENO: result: no" >&5
26746 echo "${ECHO_T}no" >&6; }
26747  CFLAGS="$_cflags -mieee"
26749 { echo "$as_me:$LINENO: checking if IEEE math works with the -mieee switch" >&5
26750 echo $ECHO_N "checking if IEEE math works with the -mieee switch... $ECHO_C" >&6; }
26751 if test "${rd_cv_ieee_mswitch+set}" = set; then
26752   echo $ECHO_N "(cached) $ECHO_C" >&6
26753 else
26754   if test "$cross_compiling" = yes; then
26755   :
26756 else
26757   cat >conftest.$ac_ext <<_ACEOF
26758 /* confdefs.h.  */
26759 _ACEOF
26760 cat confdefs.h >>conftest.$ac_ext
26761 cat >>conftest.$ac_ext <<_ACEOF
26762 /* end confdefs.h.  */
26765 #if HAVE_MATH_H
26766 #  include <math.h>
26767 #endif
26769 #if HAVE_FLOAT_H
26770 #  include <float.h>
26771 #endif
26773 #if HAVE_IEEEFP_H
26774 #  include <ieeefp.h>
26775 #endif
26777 #if HAVE_FP_CLASS_H
26778 #  include <fp_class.h>
26779 #endif
26781 /* Solaris */
26782 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26783 #  define HAVE_ISINF 1
26784 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26785 #endif
26787 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26788 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26789 #  undef isnan
26790 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26791 #endif
26793 /* Digital UNIX */
26794 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26795 #  define HAVE_ISINF 1
26796 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26797 #endif
26799 /* AIX */
26800 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26801 #  define HAVE_ISINF 1
26802 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26803 #endif
26805 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26806 #  define HAVE_ISINF 1
26807 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26808 #endif
26810 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26811 #  define HAVE_ISINF 1
26812 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26813 #endif
26815 #include <stdio.h>
26816 int main(void){
26817     double rrdnan,rrdinf,rrdc,rrdzero;
26818     ;
26819     /* some math to see if we get a floating point exception */
26820     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26821     rrdnan=0.0/rrdzero; /* especially here */
26822     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26823                   /* at run time without sig fpe */
26824     rrdc = rrdinf + rrdnan;
26825     rrdc = rrdinf / rrdnan;
26826     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26827     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26828     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26829     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26830     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26831     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26832     return 0;
26833  }
26834 _ACEOF
26835 rm -f conftest$ac_exeext
26836 if { (ac_try="$ac_link"
26837 case "(($ac_try" in
26838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26839   *) ac_try_echo=$ac_try;;
26840 esac
26841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26842   (eval "$ac_link") 2>&5
26843   ac_status=$?
26844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26846   { (case "(($ac_try" in
26847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848   *) ac_try_echo=$ac_try;;
26849 esac
26850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851   (eval "$ac_try") 2>&5
26852   ac_status=$?
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); }; }; then
26855   rd_cv_ieee_mswitch=yes
26856 else
26857   echo "$as_me: program exited with status $ac_status" >&5
26858 echo "$as_me: failed program was:" >&5
26859 sed 's/^/| /' conftest.$ac_ext >&5
26861 ( exit $ac_status )
26862 rd_cv_ieee_mswitch=no
26864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26870 if test x${rd_cv_ieee_mswitch} = "xyes"; then
26871  { echo "$as_me:$LINENO: result: yes" >&5
26872 echo "${ECHO_T}yes" >&6; }
26874 else
26875  { echo "$as_me:$LINENO: result: no" >&5
26876 echo "${ECHO_T}no" >&6; }
26877  CFLAGS="$_cflags -q float=rndsngl"
26879 { echo "$as_me:$LINENO: checking if IEEE math works with the -q float=rndsngl switch" >&5
26880 echo $ECHO_N "checking if IEEE math works with the -q float=rndsngl switch... $ECHO_C" >&6; }
26881 if test "${rd_cv_ieee_qswitch+set}" = set; then
26882   echo $ECHO_N "(cached) $ECHO_C" >&6
26883 else
26884   if test "$cross_compiling" = yes; then
26885   :
26886 else
26887   cat >conftest.$ac_ext <<_ACEOF
26888 /* confdefs.h.  */
26889 _ACEOF
26890 cat confdefs.h >>conftest.$ac_ext
26891 cat >>conftest.$ac_ext <<_ACEOF
26892 /* end confdefs.h.  */
26895 #if HAVE_MATH_H
26896 #  include <math.h>
26897 #endif
26899 #if HAVE_FLOAT_H
26900 #  include <float.h>
26901 #endif
26903 #if HAVE_IEEEFP_H
26904 #  include <ieeefp.h>
26905 #endif
26907 #if HAVE_FP_CLASS_H
26908 #  include <fp_class.h>
26909 #endif
26911 /* Solaris */
26912 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
26913 #  define HAVE_ISINF 1
26914 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
26915 #endif
26917 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
26918 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
26919 #  undef isnan
26920 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
26921 #endif
26923 /* Digital UNIX */
26924 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
26925 #  define HAVE_ISINF 1
26926 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
26927 #endif
26929 /* AIX */
26930 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
26931 #  define HAVE_ISINF 1
26932 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
26933 #endif
26935 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
26936 #  define HAVE_ISINF 1
26937 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
26938 #endif
26940 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
26941 #  define HAVE_ISINF 1
26942 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
26943 #endif
26945 #include <stdio.h>
26946 int main(void){
26947     double rrdnan,rrdinf,rrdc,rrdzero;
26948     ;
26949     /* some math to see if we get a floating point exception */
26950     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
26951     rrdnan=0.0/rrdzero; /* especially here */
26952     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
26953                   /* at run time without sig fpe */
26954     rrdc = rrdinf + rrdnan;
26955     rrdc = rrdinf / rrdnan;
26956     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
26957     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
26958     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
26959     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
26960     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
26961     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
26962     return 0;
26963  }
26964 _ACEOF
26965 rm -f conftest$ac_exeext
26966 if { (ac_try="$ac_link"
26967 case "(($ac_try" in
26968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26969   *) ac_try_echo=$ac_try;;
26970 esac
26971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26972   (eval "$ac_link") 2>&5
26973   ac_status=$?
26974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26976   { (case "(($ac_try" in
26977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978   *) ac_try_echo=$ac_try;;
26979 esac
26980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26981   (eval "$ac_try") 2>&5
26982   ac_status=$?
26983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984   (exit $ac_status); }; }; then
26985   rd_cv_ieee_qswitch=yes
26986 else
26987   echo "$as_me: program exited with status $ac_status" >&5
26988 echo "$as_me: failed program was:" >&5
26989 sed 's/^/| /' conftest.$ac_ext >&5
26991 ( exit $ac_status )
26992 rd_cv_ieee_qswitch=no
26994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27000 if test x${rd_cv_ieee_qswitch} = "xyes"; then
27001  { echo "$as_me:$LINENO: result: yes" >&5
27002 echo "${ECHO_T}yes" >&6; }
27004 else
27005  { echo "$as_me:$LINENO: result: no" >&5
27006 echo "${ECHO_T}no" >&6; }
27007  CFLAGS="$_cflags -OPT:IEEE_NaN_inf=ON"
27009 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch" >&5
27010 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_NaN_inf=ON switch... $ECHO_C" >&6; }
27011 if test "${rd_cv_ieee_ieeenaninfswitch+set}" = set; then
27012   echo $ECHO_N "(cached) $ECHO_C" >&6
27013 else
27014   if test "$cross_compiling" = yes; then
27015   :
27016 else
27017   cat >conftest.$ac_ext <<_ACEOF
27018 /* confdefs.h.  */
27019 _ACEOF
27020 cat confdefs.h >>conftest.$ac_ext
27021 cat >>conftest.$ac_ext <<_ACEOF
27022 /* end confdefs.h.  */
27025 #if HAVE_MATH_H
27026 #  include <math.h>
27027 #endif
27029 #if HAVE_FLOAT_H
27030 #  include <float.h>
27031 #endif
27033 #if HAVE_IEEEFP_H
27034 #  include <ieeefp.h>
27035 #endif
27037 #if HAVE_FP_CLASS_H
27038 #  include <fp_class.h>
27039 #endif
27041 /* Solaris */
27042 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27043 #  define HAVE_ISINF 1
27044 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27045 #endif
27047 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27048 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27049 #  undef isnan
27050 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27051 #endif
27053 /* Digital UNIX */
27054 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27055 #  define HAVE_ISINF 1
27056 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27057 #endif
27059 /* AIX */
27060 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27061 #  define HAVE_ISINF 1
27062 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27063 #endif
27065 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27066 #  define HAVE_ISINF 1
27067 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27068 #endif
27070 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27071 #  define HAVE_ISINF 1
27072 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27073 #endif
27075 #include <stdio.h>
27076 int main(void){
27077     double rrdnan,rrdinf,rrdc,rrdzero;
27078     ;
27079     /* some math to see if we get a floating point exception */
27080     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27081     rrdnan=0.0/rrdzero; /* especially here */
27082     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27083                   /* at run time without sig fpe */
27084     rrdc = rrdinf + rrdnan;
27085     rrdc = rrdinf / rrdnan;
27086     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27087     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27088     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27089     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27090     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27091     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27092     return 0;
27093  }
27094 _ACEOF
27095 rm -f conftest$ac_exeext
27096 if { (ac_try="$ac_link"
27097 case "(($ac_try" in
27098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099   *) ac_try_echo=$ac_try;;
27100 esac
27101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102   (eval "$ac_link") 2>&5
27103   ac_status=$?
27104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27106   { (case "(($ac_try" in
27107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108   *) ac_try_echo=$ac_try;;
27109 esac
27110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27111   (eval "$ac_try") 2>&5
27112   ac_status=$?
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); }; }; then
27115   rd_cv_ieee_ieeenaninfswitch=yes
27116 else
27117   echo "$as_me: program exited with status $ac_status" >&5
27118 echo "$as_me: failed program was:" >&5
27119 sed 's/^/| /' conftest.$ac_ext >&5
27121 ( exit $ac_status )
27122 rd_cv_ieee_ieeenaninfswitch=no
27124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27130 if test x${rd_cv_ieee_ieeenaninfswitch} = "xyes"; then
27131  { echo "$as_me:$LINENO: result: yes" >&5
27132 echo "${ECHO_T}yes" >&6; }
27134 else
27135  { echo "$as_me:$LINENO: result: no" >&5
27136 echo "${ECHO_T}no" >&6; }
27137  CFLAGS="$_cflags -OPT:IEEE_comparisons=ON"
27139 { echo "$as_me:$LINENO: checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch" >&5
27140 echo $ECHO_N "checking if IEEE math works with the -OPT:IEEE_comparisons=ON switch... $ECHO_C" >&6; }
27141 if test "${rd_cv_ieee_ieeecmpswitch+set}" = set; then
27142   echo $ECHO_N "(cached) $ECHO_C" >&6
27143 else
27144   if test "$cross_compiling" = yes; then
27145   :
27146 else
27147   cat >conftest.$ac_ext <<_ACEOF
27148 /* confdefs.h.  */
27149 _ACEOF
27150 cat confdefs.h >>conftest.$ac_ext
27151 cat >>conftest.$ac_ext <<_ACEOF
27152 /* end confdefs.h.  */
27155 #if HAVE_MATH_H
27156 #  include <math.h>
27157 #endif
27159 #if HAVE_FLOAT_H
27160 #  include <float.h>
27161 #endif
27163 #if HAVE_IEEEFP_H
27164 #  include <ieeefp.h>
27165 #endif
27167 #if HAVE_FP_CLASS_H
27168 #  include <fp_class.h>
27169 #endif
27171 /* Solaris */
27172 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27173 #  define HAVE_ISINF 1
27174 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27175 #endif
27177 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27178 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27179 #  undef isnan
27180 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27181 #endif
27183 /* Digital UNIX */
27184 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27185 #  define HAVE_ISINF 1
27186 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27187 #endif
27189 /* AIX */
27190 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27191 #  define HAVE_ISINF 1
27192 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27193 #endif
27195 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27196 #  define HAVE_ISINF 1
27197 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27198 #endif
27200 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27201 #  define HAVE_ISINF 1
27202 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27203 #endif
27205 #include <stdio.h>
27206 int main(void){
27207     double rrdnan,rrdinf,rrdc,rrdzero;
27208     ;
27209     /* some math to see if we get a floating point exception */
27210     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27211     rrdnan=0.0/rrdzero; /* especially here */
27212     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27213                   /* at run time without sig fpe */
27214     rrdc = rrdinf + rrdnan;
27215     rrdc = rrdinf / rrdnan;
27216     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27217     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27218     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27219     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27220     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27221     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27222     return 0;
27223  }
27224 _ACEOF
27225 rm -f conftest$ac_exeext
27226 if { (ac_try="$ac_link"
27227 case "(($ac_try" in
27228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27229   *) ac_try_echo=$ac_try;;
27230 esac
27231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27232   (eval "$ac_link") 2>&5
27233   ac_status=$?
27234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27236   { (case "(($ac_try" in
27237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238   *) ac_try_echo=$ac_try;;
27239 esac
27240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241   (eval "$ac_try") 2>&5
27242   ac_status=$?
27243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244   (exit $ac_status); }; }; then
27245   rd_cv_ieee_ieeecmpswitch=yes
27246 else
27247   echo "$as_me: program exited with status $ac_status" >&5
27248 echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27251 ( exit $ac_status )
27252 rd_cv_ieee_ieeecmpswitch=no
27254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27260 if test x${rd_cv_ieee_ieeecmpswitch} = "xyes"; then
27261  { echo "$as_me:$LINENO: result: yes" >&5
27262 echo "${ECHO_T}yes" >&6; }
27264 else
27265  { echo "$as_me:$LINENO: result: no" >&5
27266 echo "${ECHO_T}no" >&6; }
27267  CFLAGS=$_cflags
27269 { echo "$as_me:$LINENO: checking if IEEE math works with fpsetmask(0)" >&5
27270 echo $ECHO_N "checking if IEEE math works with fpsetmask(0)... $ECHO_C" >&6; }
27271 if test "${rd_cv_ieee_mask+set}" = set; then
27272   echo $ECHO_N "(cached) $ECHO_C" >&6
27273 else
27274   if test "$cross_compiling" = yes; then
27275   :
27276 else
27277   cat >conftest.$ac_ext <<_ACEOF
27278 /* confdefs.h.  */
27279 _ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h.  */
27283 #include <floatingpoint.h>
27285 #if HAVE_MATH_H
27286 #  include <math.h>
27287 #endif
27289 #if HAVE_FLOAT_H
27290 #  include <float.h>
27291 #endif
27293 #if HAVE_IEEEFP_H
27294 #  include <ieeefp.h>
27295 #endif
27297 #if HAVE_FP_CLASS_H
27298 #  include <fp_class.h>
27299 #endif
27301 /* Solaris */
27302 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27303 #  define HAVE_ISINF 1
27304 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27305 #endif
27307 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27308 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27309 #  undef isnan
27310 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27311 #endif
27313 /* Digital UNIX */
27314 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27315 #  define HAVE_ISINF 1
27316 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27317 #endif
27319 /* AIX */
27320 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27321 #  define HAVE_ISINF 1
27322 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27323 #endif
27325 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27326 #  define HAVE_ISINF 1
27327 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27328 #endif
27330 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27331 #  define HAVE_ISINF 1
27332 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27333 #endif
27335 #include <stdio.h>
27336 int main(void){
27337     double rrdnan,rrdinf,rrdc,rrdzero;
27338     fpsetmask(0);
27339     /* some math to see if we get a floating point exception */
27340     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27341     rrdnan=0.0/rrdzero; /* especially here */
27342     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27343                   /* at run time without sig fpe */
27344     rrdc = rrdinf + rrdnan;
27345     rrdc = rrdinf / rrdnan;
27346     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27347     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27348     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27349     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27350     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27351     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27352     return 0;
27353  }
27354 _ACEOF
27355 rm -f conftest$ac_exeext
27356 if { (ac_try="$ac_link"
27357 case "(($ac_try" in
27358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359   *) ac_try_echo=$ac_try;;
27360 esac
27361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362   (eval "$ac_link") 2>&5
27363   ac_status=$?
27364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27366   { (case "(($ac_try" in
27367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368   *) ac_try_echo=$ac_try;;
27369 esac
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371   (eval "$ac_try") 2>&5
27372   ac_status=$?
27373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374   (exit $ac_status); }; }; then
27375   rd_cv_ieee_mask=yes
27376 else
27377   echo "$as_me: program exited with status $ac_status" >&5
27378 echo "$as_me: failed program was:" >&5
27379 sed 's/^/| /' conftest.$ac_ext >&5
27381 ( exit $ac_status )
27382 rd_cv_ieee_mask=no
27384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27390 if test x${rd_cv_ieee_mask} = "xyes"; then
27391  { echo "$as_me:$LINENO: result: yes" >&5
27392 echo "${ECHO_T}yes" >&6; }
27393  cat >>confdefs.h <<\_ACEOF
27394 #define MUST_DISABLE_FPMASK 1
27395 _ACEOF
27397                  PERLFLAGS="CCFLAGS=-DMUST_DISABLE_FPMASK"
27398 else
27399  { echo "$as_me:$LINENO: result: no" >&5
27400 echo "${ECHO_T}no" >&6; }
27402 { echo "$as_me:$LINENO: checking if IEEE math works with signal(SIGFPE,SIG_IGN)" >&5
27403 echo $ECHO_N "checking if IEEE math works with signal(SIGFPE,SIG_IGN)... $ECHO_C" >&6; }
27404 if test "${rd_cv_ieee_sigfpe+set}" = set; then
27405   echo $ECHO_N "(cached) $ECHO_C" >&6
27406 else
27407   if test "$cross_compiling" = yes; then
27408   :
27409 else
27410   cat >conftest.$ac_ext <<_ACEOF
27411 /* confdefs.h.  */
27412 _ACEOF
27413 cat confdefs.h >>conftest.$ac_ext
27414 cat >>conftest.$ac_ext <<_ACEOF
27415 /* end confdefs.h.  */
27416 #include <signal.h>
27418 #if HAVE_MATH_H
27419 #  include <math.h>
27420 #endif
27422 #if HAVE_FLOAT_H
27423 #  include <float.h>
27424 #endif
27426 #if HAVE_IEEEFP_H
27427 #  include <ieeefp.h>
27428 #endif
27430 #if HAVE_FP_CLASS_H
27431 #  include <fp_class.h>
27432 #endif
27434 /* Solaris */
27435 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASS))
27436 #  define HAVE_ISINF 1
27437 #  define isinf(a) (fpclass(a) == FP_NINF || fpclass(a) == FP_PINF)
27438 #endif
27440 /* solaris 10 it defines isnan such that only forte can compile it ... bad bad  */
27441 #if (defined(HAVE_ISNAN) && defined(isnan) && defined(HAVE_FPCLASS))
27442 #  undef isnan
27443 #  define isnan(a) (fpclass(a) == FP_SNAN || fpclass(a) == FP_QNAN)
27444 #endif
27446 /* Digital UNIX */
27447 #if (! defined(HAVE_ISINF) && defined(HAVE_FP_CLASS) && defined(HAVE_FP_CLASS_H))
27448 #  define HAVE_ISINF 1
27449 #  define isinf(a) (fp_class(a) == FP_NEG_INF || fp_class(a) == FP_POS_INF)
27450 #endif
27452 /* AIX */
27453 #if (! defined(HAVE_ISINF) && defined(HAVE_CLASS))
27454 #  define HAVE_ISINF 1
27455 #  define isinf(a) (class(a) == FP_MINUS_INF || class(a) == FP_PLUS_INF)
27456 #endif
27458 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_PLUS_INF) && defined(FP_MINUS_INF))
27459 #  define HAVE_ISINF 1
27460 #  define isinf(a) (fpclassify(a) == FP_MINUS_INF || fpclassify(a) == FP_PLUS_INF)
27461 #endif
27463 #if (! defined(HAVE_ISINF) && defined(HAVE_FPCLASSIFY) && defined(FP_INFINITE))
27464 #  define HAVE_ISINF 1
27465 #  define isinf(a) (fpclassify(a) == FP_INFINITE)
27466 #endif
27468 #include <stdio.h>
27469 int main(void){
27470     double rrdnan,rrdinf,rrdc,rrdzero;
27471     signal(SIGFPE,SIG_IGN);
27472     /* some math to see if we get a floating point exception */
27473     rrdzero=sin(0.0); /* don't let the compiler optimize us away */
27474     rrdnan=0.0/rrdzero; /* especially here */
27475     rrdinf=1.0/rrdzero; /* and here. I want to know if it can do the magic */
27476                   /* at run time without sig fpe */
27477     rrdc = rrdinf + rrdnan;
27478     rrdc = rrdinf / rrdnan;
27479     if (! isnan(rrdnan)) {printf ("not isnan(NaN) ... "); return 1;}
27480     if (rrdnan == rrdnan) {printf ("nan == nan ... "); return 1;}
27481     if (! isinf(rrdinf)) {printf ("not isinf(oo) ... "); return 1;}
27482     if (! isinf(-rrdinf)) {printf ("not isinf(-oo) ... "); return 1;}
27483     if (! rrdinf > 0) {printf ("not inf > 0 ... "); return 1;}
27484     if (! -rrdinf < 0) {printf ("not -inf < 0 ... "); return 1;}
27485     return 0;
27486  }
27487 _ACEOF
27488 rm -f conftest$ac_exeext
27489 if { (ac_try="$ac_link"
27490 case "(($ac_try" in
27491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492   *) ac_try_echo=$ac_try;;
27493 esac
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495   (eval "$ac_link") 2>&5
27496   ac_status=$?
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27499   { (case "(($ac_try" in
27500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501   *) ac_try_echo=$ac_try;;
27502 esac
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504   (eval "$ac_try") 2>&5
27505   ac_status=$?
27506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507   (exit $ac_status); }; }; then
27508   rd_cv_ieee_sigfpe=yes
27509 else
27510   echo "$as_me: program exited with status $ac_status" >&5
27511 echo "$as_me: failed program was:" >&5
27512 sed 's/^/| /' conftest.$ac_ext >&5
27514 ( exit $ac_status )
27515 rd_cv_ieee_sigfpe=no
27517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27523 if test x${rd_cv_ieee_sigfpe} = "xyes"; then
27524  { echo "$as_me:$LINENO: result: yes" >&5
27525 echo "${ECHO_T}yes" >&6; }
27526  cat >>confdefs.h <<\_ACEOF
27527 #define MUST_DISABLE_SIGFPE 1
27528 _ACEOF
27530                    PERLFLAGS="CCFLAGS=-DMUST_DISABLE_SIGFPE"
27531 else
27532  { echo "$as_me:$LINENO: result: no" >&5
27533 echo "${ECHO_T}no" >&6; }
27534  { { echo "$as_me:$LINENO: error:
27535 Your Compiler does not do propper IEEE math ... Please find out how to
27536 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
27537 Check config.log to see what went wrong ...
27538 " >&5
27539 echo "$as_me: error:
27540 Your Compiler does not do propper IEEE math ... Please find out how to
27541 make IEEE math work with your compiler and let me know (tobi@oetiker.ch).
27542 Check config.log to see what went wrong ...
27543 " >&2;}
27544    { (exit 1); exit 1; }; }
27576 ac_ext=c
27577 ac_cpp='$CPP $CPPFLAGS'
27578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27586 case $TERM in
27587        #   for the most important terminal types we directly know the sequences
27588        xterm|xterm*|vt220|vt220*)
27589                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
27590                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
27591        ;;
27592        vt100|vt100*|cygwin)
27593                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
27594                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
27595        ;;
27596        *)
27597                T_MD=''
27598                T_ME=''
27599        ;;
27600 esac
27601   { echo "$as_me:$LINENO: result: " >&5
27602 echo "${ECHO_T}" >&6; }
27603   { echo "$as_me:$LINENO: result: ${T_MD}Resolve Portability Issues${T_ME}" >&5
27604 echo "${ECHO_T}${T_MD}Resolve Portability Issues${T_ME}" >&6; }
27608 { echo "$as_me:$LINENO: checking if realloc can deal with NULL" >&5
27609 echo $ECHO_N "checking if realloc can deal with NULL... $ECHO_C" >&6; }
27610 if test "${rd_cv_null_realloc+set}" = set; then
27611   echo $ECHO_N "(cached) $ECHO_C" >&6
27612 else
27613   if test "$cross_compiling" = yes; then
27614   :
27615 else
27616   cat >conftest.$ac_ext <<_ACEOF
27617 /* confdefs.h.  */
27618 _ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h.  */
27622 #include <stdlib.h>
27623               int main(void){
27624               char *x = NULL;
27625               x = realloc (x,10);
27626               if (x==NULL) return 1;
27627               return 0;
27628              }
27629 _ACEOF
27630 rm -f conftest$ac_exeext
27631 if { (ac_try="$ac_link"
27632 case "(($ac_try" in
27633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27634   *) ac_try_echo=$ac_try;;
27635 esac
27636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27637   (eval "$ac_link") 2>&5
27638   ac_status=$?
27639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27641   { (case "(($ac_try" in
27642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643   *) ac_try_echo=$ac_try;;
27644 esac
27645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646   (eval "$ac_try") 2>&5
27647   ac_status=$?
27648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649   (exit $ac_status); }; }; then
27650   rd_cv_null_realloc=yes
27651 else
27652   echo "$as_me: program exited with status $ac_status" >&5
27653 echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27656 ( exit $ac_status )
27657 rd_cv_null_realloc=nope
27659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27664 { echo "$as_me:$LINENO: result: $rd_cv_null_realloc" >&5
27665 echo "${ECHO_T}$rd_cv_null_realloc" >&6; }
27667 if test x"$rd_cv_null_realloc" = xnope; then
27668 cat >>confdefs.h <<\_ACEOF
27669 #define NO_NULL_REALLOC 1
27670 _ACEOF
27674 ac_ext=c
27675 ac_cpp='$CPP $CPPFLAGS'
27676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27680 { echo "$as_me:$LINENO: checking if ctime_r need special care to act posixly correct" >&5
27681 echo $ECHO_N "checking if ctime_r need special care to act posixly correct... $ECHO_C" >&6; }
27682 cat >conftest.$ac_ext <<_ACEOF
27683 /* confdefs.h.  */
27684 _ACEOF
27685 cat confdefs.h >>conftest.$ac_ext
27686 cat >>conftest.$ac_ext <<_ACEOF
27687 /* end confdefs.h.  */
27688 #include <time.h>
27689 int
27690 main ()
27692 ctime_r(NULL,NULL,0)
27694   ;
27695   return 0;
27697 _ACEOF
27698 rm -f conftest.$ac_objext conftest$ac_exeext
27699 if { (ac_try="$ac_link"
27700 case "(($ac_try" in
27701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27702   *) ac_try_echo=$ac_try;;
27703 esac
27704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27705   (eval "$ac_link") 2>conftest.er1
27706   ac_status=$?
27707   grep -v '^ *+' conftest.er1 >conftest.err
27708   rm -f conftest.er1
27709   cat conftest.err >&5
27710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); } && {
27712          test -z "$ac_c_werror_flag" ||
27713          test ! -s conftest.err
27714        } && test -s conftest$ac_exeext &&
27715        $as_test_x conftest$ac_exeext; then
27716    CPPFLAGS="$CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
27717       cat >conftest.$ac_ext <<_ACEOF
27718 /* confdefs.h.  */
27719 _ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h.  */
27723 #include <time.h>
27724 int
27725 main ()
27727 ctime_r(NULL,NULL)
27729   ;
27730   return 0;
27732 _ACEOF
27733 rm -f conftest.$ac_objext conftest$ac_exeext
27734 if { (ac_try="$ac_link"
27735 case "(($ac_try" in
27736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27737   *) ac_try_echo=$ac_try;;
27738 esac
27739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27740   (eval "$ac_link") 2>conftest.er1
27741   ac_status=$?
27742   grep -v '^ *+' conftest.er1 >conftest.err
27743   rm -f conftest.er1
27744   cat conftest.err >&5
27745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746   (exit $ac_status); } && {
27747          test -z "$ac_c_werror_flag" ||
27748          test ! -s conftest.err
27749        } && test -s conftest$ac_exeext &&
27750        $as_test_x conftest$ac_exeext; then
27751   { echo "$as_me:$LINENO: result: yes, this seems to be solaris style" >&5
27752 echo "${ECHO_T}yes, this seems to be solaris style" >&6; }
27753 else
27754   echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27757         { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
27758 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
27759    { (exit 1); exit 1; }; }
27763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27764       conftest$ac_exeext conftest.$ac_ext
27766 else
27767   echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27770          cat >conftest.$ac_ext <<_ACEOF
27771 /* confdefs.h.  */
27772 _ACEOF
27773 cat confdefs.h >>conftest.$ac_ext
27774 cat >>conftest.$ac_ext <<_ACEOF
27775 /* end confdefs.h.  */
27776 #include <time.h>
27777 int
27778 main ()
27780 ctime_r(NULL,NULL)
27782   ;
27783   return 0;
27785 _ACEOF
27786 rm -f conftest.$ac_objext conftest$ac_exeext
27787 if { (ac_try="$ac_link"
27788 case "(($ac_try" in
27789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790   *) ac_try_echo=$ac_try;;
27791 esac
27792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793   (eval "$ac_link") 2>conftest.er1
27794   ac_status=$?
27795   grep -v '^ *+' conftest.er1 >conftest.err
27796   rm -f conftest.er1
27797   cat conftest.err >&5
27798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799   (exit $ac_status); } && {
27800          test -z "$ac_c_werror_flag" ||
27801          test ! -s conftest.err
27802        } && test -s conftest$ac_exeext &&
27803        $as_test_x conftest$ac_exeext; then
27804   { echo "$as_me:$LINENO: result: no" >&5
27805 echo "${ECHO_T}no" >&6; }
27806 else
27807   echo "$as_me: failed program was:" >&5
27808 sed 's/^/| /' conftest.$ac_ext >&5
27810         { { echo "$as_me:$LINENO: error: Can't figure how to compile ctime_r" >&5
27811 echo "$as_me: error: Can't figure how to compile ctime_r" >&2;}
27812    { (exit 1); exit 1; }; }
27816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27817       conftest$ac_exeext conftest.$ac_ext
27822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27823       conftest$ac_exeext conftest.$ac_ext
27824 ac_ext=c
27825 ac_cpp='$CPP $CPPFLAGS'
27826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27835 if test $enable_pthread != no; then
27838 ac_ext=c
27839 ac_cpp='$CPP $CPPFLAGS'
27840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27844 acx_pthread_ok=no
27846 # We used to check for pthread.h first, but this fails if pthread.h
27847 # requires special compiler flags (e.g. on True64 or Sequent).
27848 # It gets checked for in the link test anyway.
27850 # First of all, check if the user has set any of the PTHREAD_LIBS,
27851 # etcetera environment variables, and if threads linking works using
27852 # them:
27853 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
27854         save_CFLAGS="$CFLAGS"
27855         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
27856         save_LIBS="$LIBS"
27857         LIBS="$PTHREAD_LIBS $LIBS"
27858         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
27859 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
27860         cat >conftest.$ac_ext <<_ACEOF
27861 /* confdefs.h.  */
27862 _ACEOF
27863 cat confdefs.h >>conftest.$ac_ext
27864 cat >>conftest.$ac_ext <<_ACEOF
27865 /* end confdefs.h.  */
27867 /* Override any GCC internal prototype to avoid an error.
27868    Use char because int might match the return type of a GCC
27869    builtin and then its argument prototype would still apply.  */
27870 #ifdef __cplusplus
27871 extern "C"
27872 #endif
27873 char pthread_join ();
27874 int
27875 main ()
27877 return pthread_join ();
27878   ;
27879   return 0;
27881 _ACEOF
27882 rm -f conftest.$ac_objext conftest$ac_exeext
27883 if { (ac_try="$ac_link"
27884 case "(($ac_try" in
27885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886   *) ac_try_echo=$ac_try;;
27887 esac
27888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889   (eval "$ac_link") 2>conftest.er1
27890   ac_status=$?
27891   grep -v '^ *+' conftest.er1 >conftest.err
27892   rm -f conftest.er1
27893   cat conftest.err >&5
27894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895   (exit $ac_status); } && {
27896          test -z "$ac_c_werror_flag" ||
27897          test ! -s conftest.err
27898        } && test -s conftest$ac_exeext &&
27899        $as_test_x conftest$ac_exeext; then
27900   acx_pthread_ok=yes
27901 else
27902   echo "$as_me: failed program was:" >&5
27903 sed 's/^/| /' conftest.$ac_ext >&5
27908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27909       conftest$ac_exeext conftest.$ac_ext
27910         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
27911 echo "${ECHO_T}$acx_pthread_ok" >&6; }
27912         if test x"$acx_pthread_ok" = xno; then
27913                 PTHREAD_LIBS=""
27914                 PTHREAD_CFLAGS=""
27915         fi
27916         LIBS="$save_LIBS"
27917         CFLAGS="$save_CFLAGS"
27920 # We must check for the threads library under a number of different
27921 # names; the ordering is very important because some systems
27922 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
27923 # libraries is broken (non-POSIX).
27925 # Create a list of thread flags to try.  Items starting with a "-" are
27926 # C compiler flags, and other items are library names, except for "none"
27927 # which indicates that we try without any flags at all, and "pthread-config"
27928 # which is a program returning the flags for the Pth emulation library.
27930 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
27932 # The ordering *is* (sometimes) important.  Some notes on the
27933 # individual items follow:
27935 # pthreads: AIX (must check this before -lpthread)
27936 # none: in case threads are in libc; should be tried before -Kthread and
27937 #       other compiler flags to prevent continual compiler warnings
27938 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
27939 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
27940 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
27941 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
27942 # -pthreads: Solaris/gcc
27943 # -mthreads: Mingw32/gcc, Lynx/gcc
27944 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
27945 #      doesn't hurt to check since this sometimes defines pthreads too;
27946 #      also defines -D_REENTRANT)
27947 # pthread: Linux, etcetera
27948 # --thread-safe: KAI C++
27949 # pthread-config: use pthread-config program (for GNU Pth library)
27951 case "${host_cpu}-${host_os}" in
27952         *solaris*)
27954         # On Solaris (at least, for some versions), libc contains stubbed
27955         # (non-functional) versions of the pthreads routines, so link-based
27956         # tests will erroneously succeed.  (We need to link with -pthread or
27957         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
27958         # a function called by this macro, so we could check for that, but
27959         # who knows whether they'll stub that too in a future libc.)  So,
27960         # we'll just look for -pthreads and -lpthread first:
27962         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
27963         ;;
27964 esac
27966 if test x"$acx_pthread_ok" = xno; then
27967 for flag in $acx_pthread_flags; do
27969         case $flag in
27970                 none)
27971                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
27972 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
27973                 ;;
27975                 -*)
27976                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
27977 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
27978                 PTHREAD_CFLAGS="$flag"
27979                 ;;
27981                 pthread-config)
27982                 # Extract the first word of "pthread-config", so it can be a program name with args.
27983 set dummy pthread-config; ac_word=$2
27984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27986 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
27987   echo $ECHO_N "(cached) $ECHO_C" >&6
27988 else
27989   if test -n "$acx_pthread_config"; then
27990   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
27991 else
27992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27993 for as_dir in $PATH
27995   IFS=$as_save_IFS
27996   test -z "$as_dir" && as_dir=.
27997   for ac_exec_ext in '' $ac_executable_extensions; do
27998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27999     ac_cv_prog_acx_pthread_config="yes"
28000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28001     break 2
28002   fi
28003 done
28004 done
28005 IFS=$as_save_IFS
28007   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
28010 acx_pthread_config=$ac_cv_prog_acx_pthread_config
28011 if test -n "$acx_pthread_config"; then
28012   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
28013 echo "${ECHO_T}$acx_pthread_config" >&6; }
28014 else
28015   { echo "$as_me:$LINENO: result: no" >&5
28016 echo "${ECHO_T}no" >&6; }
28020                 if test x"$acx_pthread_config" = xno; then continue; fi
28021                 PTHREAD_CFLAGS="`pthread-config --cflags`"
28022                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
28023                 ;;
28025                 *)
28026                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28027 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
28028                 PTHREAD_LIBS="-l$flag"
28029                 ;;
28030         esac
28032         save_LIBS="$LIBS"
28033         save_CFLAGS="$CFLAGS"
28034         LIBS="$PTHREAD_LIBS $LIBS"
28035         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28037         # Check for various functions.  We must include pthread.h,
28038         # since some functions may be macros.  (On the Sequent, we
28039         # need a special flag -Kthread to make this header compile.)
28040         # We check for pthread_join because it is in -lpthread on IRIX
28041         # while pthread_create is in libc.  We check for pthread_attr_init
28042         # due to DEC craziness with -lpthreads.  We check for
28043         # pthread_cleanup_push because it is one of the few pthread
28044         # functions on Solaris that doesn't have a non-functional libc stub.
28045         # We try pthread_create on general principles.
28046         cat >conftest.$ac_ext <<_ACEOF
28047 /* confdefs.h.  */
28048 _ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h.  */
28052 #include <pthread.h>
28053 int
28054 main ()
28056 pthread_t th; pthread_join(th, 0);
28057                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
28058                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
28059   ;
28060   return 0;
28062 _ACEOF
28063 rm -f conftest.$ac_objext conftest$ac_exeext
28064 if { (ac_try="$ac_link"
28065 case "(($ac_try" in
28066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067   *) ac_try_echo=$ac_try;;
28068 esac
28069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070   (eval "$ac_link") 2>conftest.er1
28071   ac_status=$?
28072   grep -v '^ *+' conftest.er1 >conftest.err
28073   rm -f conftest.er1
28074   cat conftest.err >&5
28075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076   (exit $ac_status); } && {
28077          test -z "$ac_c_werror_flag" ||
28078          test ! -s conftest.err
28079        } && test -s conftest$ac_exeext &&
28080        $as_test_x conftest$ac_exeext; then
28081   acx_pthread_ok=yes
28082 else
28083   echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28090       conftest$ac_exeext conftest.$ac_ext
28092         LIBS="$save_LIBS"
28093         CFLAGS="$save_CFLAGS"
28095         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
28096 echo "${ECHO_T}$acx_pthread_ok" >&6; }
28097         if test "x$acx_pthread_ok" = xyes; then
28098                 break;
28099         fi
28101         PTHREAD_LIBS=""
28102         PTHREAD_CFLAGS=""
28103 done
28106 # Various other checks:
28107 if test "x$acx_pthread_ok" = xyes; then
28108         save_LIBS="$LIBS"
28109         LIBS="$PTHREAD_LIBS $LIBS"
28110         save_CFLAGS="$CFLAGS"
28111         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28113         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
28114         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
28115 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
28116         attr_name=unknown
28117         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
28118             cat >conftest.$ac_ext <<_ACEOF
28119 /* confdefs.h.  */
28120 _ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h.  */
28124 #include <pthread.h>
28125 int
28126 main ()
28128 int attr=$attr;
28129   ;
28130   return 0;
28132 _ACEOF
28133 rm -f conftest.$ac_objext conftest$ac_exeext
28134 if { (ac_try="$ac_link"
28135 case "(($ac_try" in
28136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28137   *) ac_try_echo=$ac_try;;
28138 esac
28139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28140   (eval "$ac_link") 2>conftest.er1
28141   ac_status=$?
28142   grep -v '^ *+' conftest.er1 >conftest.err
28143   rm -f conftest.er1
28144   cat conftest.err >&5
28145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); } && {
28147          test -z "$ac_c_werror_flag" ||
28148          test ! -s conftest.err
28149        } && test -s conftest$ac_exeext &&
28150        $as_test_x conftest$ac_exeext; then
28151   attr_name=$attr; break
28152 else
28153   echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28160       conftest$ac_exeext conftest.$ac_ext
28161         done
28162         { echo "$as_me:$LINENO: result: $attr_name" >&5
28163 echo "${ECHO_T}$attr_name" >&6; }
28164         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
28166 cat >>confdefs.h <<_ACEOF
28167 #define PTHREAD_CREATE_JOINABLE $attr_name
28168 _ACEOF
28170         fi
28172         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28173 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
28174         x_rflag=no
28175         case "${host_cpu}-${host_os}" in
28176             *-aix* | *-freebsd* | *-darwin*) x_rflag="-D_THREAD_SAFE";;
28177             *solaris* | *-osf* | *-hpux*) x_rflag="-D_REENTRANT";;
28178             *-linux*)
28179             if test x"$PTHREAD_CFLAGS" = "x-pthread"; then
28180                 # For Linux/gcc "-pthread" implies "-lpthread". We need, however, to make this explicit
28181                 # in PTHREAD_LIBS such that a shared library to be built properly depends on libpthread.
28182                 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
28183             fi;;
28184         esac
28185         { echo "$as_me:$LINENO: result: ${x_rflag}" >&5
28186 echo "${ECHO_T}${x_rflag}" >&6; }
28187         if test "x$x_rflag" != xno; then
28188             PTHREAD_CFLAGS="$x_rflag $PTHREAD_CFLAGS"
28189         fi
28191         LIBS="$save_LIBS"
28192         CFLAGS="$save_CFLAGS"
28194         # More AIX lossage: must compile with cc_r
28195         # Extract the first word of "cc_r", so it can be a program name with args.
28196 set dummy cc_r; ac_word=$2
28197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28199 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
28200   echo $ECHO_N "(cached) $ECHO_C" >&6
28201 else
28202   if test -n "$PTHREAD_CC"; then
28203   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
28204 else
28205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28206 for as_dir in $PATH
28208   IFS=$as_save_IFS
28209   test -z "$as_dir" && as_dir=.
28210   for ac_exec_ext in '' $ac_executable_extensions; do
28211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28212     ac_cv_prog_PTHREAD_CC="cc_r"
28213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28214     break 2
28215   fi
28216 done
28217 done
28218 IFS=$as_save_IFS
28220   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
28223 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
28224 if test -n "$PTHREAD_CC"; then
28225   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
28226 echo "${ECHO_T}$PTHREAD_CC" >&6; }
28227 else
28228   { echo "$as_me:$LINENO: result: no" >&5
28229 echo "${ECHO_T}no" >&6; }
28233 else
28234         PTHREAD_CC="$CC"
28241 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
28242 if test x"$acx_pthread_ok" = xyes; then
28244     MULTITHREAD_CFLAGS=$PTHREAD_CFLAGS
28245     MULTITHREAD_LDFLAGS=$PTHREAD_LIBS
28247         :
28248 else
28249         acx_pthread_ok=no
28252 ac_ext=c
28253 ac_cpp='$CPP $CPPFLAGS'
28254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28262 if test  "x$x_rflag" != "xno"; then
28263    CPPFLAGS="$CPPFLAGS $x_rflag"
28268 if test $enable_pthread != no; then
28269   BUILD_MULTITHREAD_TRUE=
28270   BUILD_MULTITHREAD_FALSE='#'
28271 else
28272   BUILD_MULTITHREAD_TRUE='#'
28273   BUILD_MULTITHREAD_FALSE=
28277 ac_ext=c
28278 ac_cpp='$CPP $CPPFLAGS'
28279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28283 { echo "$as_me:$LINENO: checking do we need malloc/malloc.h" >&5
28284 echo $ECHO_N "checking do we need malloc/malloc.h... $ECHO_C" >&6; }
28285 cat >conftest.$ac_ext <<_ACEOF
28286 /* confdefs.h.  */
28287 _ACEOF
28288 cat confdefs.h >>conftest.$ac_ext
28289 cat >>conftest.$ac_ext <<_ACEOF
28290 /* end confdefs.h.  */
28291 #include <stdlib.h>
28292 int
28293 main ()
28295 malloc(1)
28297   ;
28298   return 0;
28300 _ACEOF
28301 rm -f conftest.$ac_objext conftest$ac_exeext
28302 if { (ac_try="$ac_link"
28303 case "(($ac_try" in
28304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305   *) ac_try_echo=$ac_try;;
28306 esac
28307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28308   (eval "$ac_link") 2>conftest.er1
28309   ac_status=$?
28310   grep -v '^ *+' conftest.er1 >conftest.err
28311   rm -f conftest.er1
28312   cat conftest.err >&5
28313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314   (exit $ac_status); } && {
28315          test -z "$ac_c_werror_flag" ||
28316          test ! -s conftest.err
28317        } && test -s conftest$ac_exeext &&
28318        $as_test_x conftest$ac_exeext; then
28319    { echo "$as_me:$LINENO: result: nope, works out of the box" >&5
28320 echo "${ECHO_T}nope, works out of the box" >&6; }
28321 else
28322   echo "$as_me: failed program was:" >&5
28323 sed 's/^/| /' conftest.$ac_ext >&5
28325          cat >conftest.$ac_ext <<_ACEOF
28326 /* confdefs.h.  */
28327 _ACEOF
28328 cat confdefs.h >>conftest.$ac_ext
28329 cat >>conftest.$ac_ext <<_ACEOF
28330 /* end confdefs.h.  */
28331 #include <stdlib.h>
28332                   #include <malloc/malloc.h>
28333 int
28334 main ()
28336 malloc(1)
28338   ;
28339   return 0;
28341 _ACEOF
28342 rm -f conftest.$ac_objext conftest$ac_exeext
28343 if { (ac_try="$ac_link"
28344 case "(($ac_try" in
28345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28346   *) ac_try_echo=$ac_try;;
28347 esac
28348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28349   (eval "$ac_link") 2>conftest.er1
28350   ac_status=$?
28351   grep -v '^ *+' conftest.er1 >conftest.err
28352   rm -f conftest.er1
28353   cat conftest.err >&5
28354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355   (exit $ac_status); } && {
28356          test -z "$ac_c_werror_flag" ||
28357          test ! -s conftest.err
28358        } && test -s conftest$ac_exeext &&
28359        $as_test_x conftest$ac_exeext; then
28360   cat >>confdefs.h <<\_ACEOF
28361 #define NEED_MALLOC_MALLOC_H 1
28362 _ACEOF
28364            { echo "$as_me:$LINENO: result: yes we do" >&5
28365 echo "${ECHO_T}yes we do" >&6; }
28366 else
28367   echo "$as_me: failed program was:" >&5
28368 sed 's/^/| /' conftest.$ac_ext >&5
28370         { { echo "$as_me:$LINENO: error: Can not figure how to compile malloc" >&5
28371 echo "$as_me: error: Can not figure how to compile malloc" >&2;}
28372    { (exit 1); exit 1; }; }
28376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28377       conftest$ac_exeext conftest.$ac_ext
28382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28383       conftest$ac_exeext conftest.$ac_ext
28384 ac_ext=c
28385 ac_cpp='$CPP $CPPFLAGS'
28386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28392 case $TERM in
28393        #   for the most important terminal types we directly know the sequences
28394        xterm|xterm*|vt220|vt220*)
28395                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
28396                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
28397        ;;
28398        vt100|vt100*|cygwin)
28399                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
28400                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
28401        ;;
28402        *)
28403                T_MD=''
28404                T_ME=''
28405        ;;
28406 esac
28407   { echo "$as_me:$LINENO: result: " >&5
28408 echo "${ECHO_T}" >&6; }
28409   { echo "$as_me:$LINENO: result: ${T_MD}Find 3rd-Party Libraries${T_ME}" >&5
28410 echo "${ECHO_T}${T_MD}Find 3rd-Party Libraries${T_ME}" >&6; }
28416 if test $enable_rrdcgi != no; then
28417   BUILD_RRDCGI_TRUE=
28418   BUILD_RRDCGI_FALSE='#'
28419 else
28420   BUILD_RRDCGI_TRUE='#'
28421   BUILD_RRDCGI_FALSE=
28426 CORE_LIBS="$LIBS"
28429  ac_ext=c
28430 ac_cpp='$CPP $CPPFLAGS'
28431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28435  EX_CHECK_STATE=NO
28436  ex_check_save_LIBS=${LIBS}
28437  ex_check_save_CPPFLAGS=${CPPFLAGS}
28438  ex_check_save_LDFLAGS=${LDFLAGS}
28439  if test "x""" != "x"; then
28440    CPPFLAGS="$CPPFLAGS -I"""
28441  fi
28442   { echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
28443 echo $ECHO_N "checking for cairo_font_options_create in -lcairo... $ECHO_C" >&6; }
28444 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
28445   echo $ECHO_N "(cached) $ECHO_C" >&6
28446 else
28447   ac_check_lib_save_LIBS=$LIBS
28448 LIBS="-lcairo  $LIBS"
28449 cat >conftest.$ac_ext <<_ACEOF
28450 /* confdefs.h.  */
28451 _ACEOF
28452 cat confdefs.h >>conftest.$ac_ext
28453 cat >>conftest.$ac_ext <<_ACEOF
28454 /* end confdefs.h.  */
28456 /* Override any GCC internal prototype to avoid an error.
28457    Use char because int might match the return type of a GCC
28458    builtin and then its argument prototype would still apply.  */
28459 #ifdef __cplusplus
28460 extern "C"
28461 #endif
28462 char cairo_font_options_create ();
28463 int
28464 main ()
28466 return cairo_font_options_create ();
28467   ;
28468   return 0;
28470 _ACEOF
28471 rm -f conftest.$ac_objext conftest$ac_exeext
28472 if { (ac_try="$ac_link"
28473 case "(($ac_try" in
28474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475   *) ac_try_echo=$ac_try;;
28476 esac
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478   (eval "$ac_link") 2>conftest.er1
28479   ac_status=$?
28480   grep -v '^ *+' conftest.er1 >conftest.err
28481   rm -f conftest.er1
28482   cat conftest.err >&5
28483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484   (exit $ac_status); } && {
28485          test -z "$ac_c_werror_flag" ||
28486          test ! -s conftest.err
28487        } && test -s conftest$ac_exeext &&
28488        $as_test_x conftest$ac_exeext; then
28489   ac_cv_lib_cairo_cairo_font_options_create=yes
28490 else
28491   echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28494         ac_cv_lib_cairo_cairo_font_options_create=no
28497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28498       conftest$ac_exeext conftest.$ac_ext
28499 LIBS=$ac_check_lib_save_LIBS
28501 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
28502 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
28503 if test $ac_cv_lib_cairo_cairo_font_options_create = yes; then
28505     if test "${ac_cv_header_cairo_h+set}" = set; then
28506   { echo "$as_me:$LINENO: checking for cairo.h" >&5
28507 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
28508 if test "${ac_cv_header_cairo_h+set}" = set; then
28509   echo $ECHO_N "(cached) $ECHO_C" >&6
28511 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
28512 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
28513 else
28514   # Is the header compilable?
28515 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
28516 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
28517 cat >conftest.$ac_ext <<_ACEOF
28518 /* confdefs.h.  */
28519 _ACEOF
28520 cat confdefs.h >>conftest.$ac_ext
28521 cat >>conftest.$ac_ext <<_ACEOF
28522 /* end confdefs.h.  */
28523 $ac_includes_default
28524 #include <cairo.h>
28525 _ACEOF
28526 rm -f conftest.$ac_objext
28527 if { (ac_try="$ac_compile"
28528 case "(($ac_try" in
28529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530   *) ac_try_echo=$ac_try;;
28531 esac
28532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28533   (eval "$ac_compile") 2>conftest.er1
28534   ac_status=$?
28535   grep -v '^ *+' conftest.er1 >conftest.err
28536   rm -f conftest.er1
28537   cat conftest.err >&5
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); } && {
28540          test -z "$ac_c_werror_flag" ||
28541          test ! -s conftest.err
28542        } && test -s conftest.$ac_objext; then
28543   ac_header_compiler=yes
28544 else
28545   echo "$as_me: failed program was:" >&5
28546 sed 's/^/| /' conftest.$ac_ext >&5
28548         ac_header_compiler=no
28551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28553 echo "${ECHO_T}$ac_header_compiler" >&6; }
28555 # Is the header present?
28556 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
28557 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
28558 cat >conftest.$ac_ext <<_ACEOF
28559 /* confdefs.h.  */
28560 _ACEOF
28561 cat confdefs.h >>conftest.$ac_ext
28562 cat >>conftest.$ac_ext <<_ACEOF
28563 /* end confdefs.h.  */
28564 #include <cairo.h>
28565 _ACEOF
28566 if { (ac_try="$ac_cpp conftest.$ac_ext"
28567 case "(($ac_try" in
28568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569   *) ac_try_echo=$ac_try;;
28570 esac
28571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28572   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28573   ac_status=$?
28574   grep -v '^ *+' conftest.er1 >conftest.err
28575   rm -f conftest.er1
28576   cat conftest.err >&5
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); } >/dev/null && {
28579          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28580          test ! -s conftest.err
28581        }; then
28582   ac_header_preproc=yes
28583 else
28584   echo "$as_me: failed program was:" >&5
28585 sed 's/^/| /' conftest.$ac_ext >&5
28587   ac_header_preproc=no
28590 rm -f conftest.err conftest.$ac_ext
28591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28592 echo "${ECHO_T}$ac_header_preproc" >&6; }
28594 # So?  What about this header?
28595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28596   yes:no: )
28597     { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
28598 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28599     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
28600 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
28601     ac_header_preproc=yes
28602     ;;
28603   no:yes:* )
28604     { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
28605 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
28606     { echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
28607 echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
28608     { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
28609 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
28610     { echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
28611 echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28612     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
28613 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
28614     { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
28615 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
28617     ;;
28618 esac
28619 { echo "$as_me:$LINENO: checking for cairo.h" >&5
28620 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
28621 if test "${ac_cv_header_cairo_h+set}" = set; then
28622   echo $ECHO_N "(cached) $ECHO_C" >&6
28623 else
28624   ac_cv_header_cairo_h=$ac_header_preproc
28626 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
28627 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
28630 if test $ac_cv_header_cairo_h = yes; then
28631   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
28637  if test $EX_CHECK_STATE = NO; then
28638         for ac_prog in pkg-config
28640   # Extract the first word of "$ac_prog", so it can be a program name with args.
28641 set dummy $ac_prog; ac_word=$2
28642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28644 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
28645   echo $ECHO_N "(cached) $ECHO_C" >&6
28646 else
28647   if test -n "$PKGCONFIG"; then
28648   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
28649 else
28650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28651 for as_dir in $PATH
28653   IFS=$as_save_IFS
28654   test -z "$as_dir" && as_dir=.
28655   for ac_exec_ext in '' $ac_executable_extensions; do
28656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28657     ac_cv_prog_PKGCONFIG="$ac_prog"
28658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28659     break 2
28660   fi
28661 done
28662 done
28663 IFS=$as_save_IFS
28667 PKGCONFIG=$ac_cv_prog_PKGCONFIG
28668 if test -n "$PKGCONFIG"; then
28669   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
28670 echo "${ECHO_T}$PKGCONFIG" >&6; }
28671 else
28672   { echo "$as_me:$LINENO: result: no" >&5
28673 echo "${ECHO_T}no" >&6; }
28677   test -n "$PKGCONFIG" && break
28678 done
28679 test -n "$PKGCONFIG" || PKGCONFIG="no"
28681     if test "$PKGCONFIG" != "no"; then
28682           if $PKGCONFIG --exists cairo-png; then
28683              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-png`
28684              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-png`
28685              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-png`
28686              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-png`
28687                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_font_options_create
28688              { echo "$as_me:$LINENO: checking for cairo_font_options_create in -lcairo" >&5
28689 echo $ECHO_N "checking for cairo_font_options_create in -lcairo... $ECHO_C" >&6; }
28690 if test "${ac_cv_lib_cairo_cairo_font_options_create+set}" = set; then
28691   echo $ECHO_N "(cached) $ECHO_C" >&6
28692 else
28693   ac_check_lib_save_LIBS=$LIBS
28694 LIBS="-lcairo  $LIBS"
28695 cat >conftest.$ac_ext <<_ACEOF
28696 /* confdefs.h.  */
28697 _ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h.  */
28702 /* Override any GCC internal prototype to avoid an error.
28703    Use char because int might match the return type of a GCC
28704    builtin and then its argument prototype would still apply.  */
28705 #ifdef __cplusplus
28706 extern "C"
28707 #endif
28708 char cairo_font_options_create ();
28709 int
28710 main ()
28712 return cairo_font_options_create ();
28713   ;
28714   return 0;
28716 _ACEOF
28717 rm -f conftest.$ac_objext conftest$ac_exeext
28718 if { (ac_try="$ac_link"
28719 case "(($ac_try" in
28720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721   *) ac_try_echo=$ac_try;;
28722 esac
28723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724   (eval "$ac_link") 2>conftest.er1
28725   ac_status=$?
28726   grep -v '^ *+' conftest.er1 >conftest.err
28727   rm -f conftest.er1
28728   cat conftest.err >&5
28729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28730   (exit $ac_status); } && {
28731          test -z "$ac_c_werror_flag" ||
28732          test ! -s conftest.err
28733        } && test -s conftest$ac_exeext &&
28734        $as_test_x conftest$ac_exeext; then
28735   ac_cv_lib_cairo_cairo_font_options_create=yes
28736 else
28737   echo "$as_me: failed program was:" >&5
28738 sed 's/^/| /' conftest.$ac_ext >&5
28740         ac_cv_lib_cairo_cairo_font_options_create=no
28743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28744       conftest$ac_exeext conftest.$ac_ext
28745 LIBS=$ac_check_lib_save_LIBS
28747 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_font_options_create" >&5
28748 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_font_options_create" >&6; }
28749 if test $ac_cv_lib_cairo_cairo_font_options_create = yes; then
28751                  unset ac_cv_header_`echo cairo.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
28752                  if test "${ac_cv_header_cairo_h+set}" = set; then
28753   { echo "$as_me:$LINENO: checking for cairo.h" >&5
28754 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
28755 if test "${ac_cv_header_cairo_h+set}" = set; then
28756   echo $ECHO_N "(cached) $ECHO_C" >&6
28758 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
28759 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
28760 else
28761   # Is the header compilable?
28762 { echo "$as_me:$LINENO: checking cairo.h usability" >&5
28763 echo $ECHO_N "checking cairo.h usability... $ECHO_C" >&6; }
28764 cat >conftest.$ac_ext <<_ACEOF
28765 /* confdefs.h.  */
28766 _ACEOF
28767 cat confdefs.h >>conftest.$ac_ext
28768 cat >>conftest.$ac_ext <<_ACEOF
28769 /* end confdefs.h.  */
28770 $ac_includes_default
28771 #include <cairo.h>
28772 _ACEOF
28773 rm -f conftest.$ac_objext
28774 if { (ac_try="$ac_compile"
28775 case "(($ac_try" in
28776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777   *) ac_try_echo=$ac_try;;
28778 esac
28779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780   (eval "$ac_compile") 2>conftest.er1
28781   ac_status=$?
28782   grep -v '^ *+' conftest.er1 >conftest.err
28783   rm -f conftest.er1
28784   cat conftest.err >&5
28785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786   (exit $ac_status); } && {
28787          test -z "$ac_c_werror_flag" ||
28788          test ! -s conftest.err
28789        } && test -s conftest.$ac_objext; then
28790   ac_header_compiler=yes
28791 else
28792   echo "$as_me: failed program was:" >&5
28793 sed 's/^/| /' conftest.$ac_ext >&5
28795         ac_header_compiler=no
28798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28800 echo "${ECHO_T}$ac_header_compiler" >&6; }
28802 # Is the header present?
28803 { echo "$as_me:$LINENO: checking cairo.h presence" >&5
28804 echo $ECHO_N "checking cairo.h presence... $ECHO_C" >&6; }
28805 cat >conftest.$ac_ext <<_ACEOF
28806 /* confdefs.h.  */
28807 _ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h.  */
28811 #include <cairo.h>
28812 _ACEOF
28813 if { (ac_try="$ac_cpp conftest.$ac_ext"
28814 case "(($ac_try" in
28815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28816   *) ac_try_echo=$ac_try;;
28817 esac
28818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28820   ac_status=$?
28821   grep -v '^ *+' conftest.er1 >conftest.err
28822   rm -f conftest.er1
28823   cat conftest.err >&5
28824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825   (exit $ac_status); } >/dev/null && {
28826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28827          test ! -s conftest.err
28828        }; then
28829   ac_header_preproc=yes
28830 else
28831   echo "$as_me: failed program was:" >&5
28832 sed 's/^/| /' conftest.$ac_ext >&5
28834   ac_header_preproc=no
28837 rm -f conftest.err conftest.$ac_ext
28838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28839 echo "${ECHO_T}$ac_header_preproc" >&6; }
28841 # So?  What about this header?
28842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28843   yes:no: )
28844     { echo "$as_me:$LINENO: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&5
28845 echo "$as_me: WARNING: cairo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28846     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the compiler's result" >&5
28847 echo "$as_me: WARNING: cairo.h: proceeding with the compiler's result" >&2;}
28848     ac_header_preproc=yes
28849     ;;
28850   no:yes:* )
28851     { echo "$as_me:$LINENO: WARNING: cairo.h: present but cannot be compiled" >&5
28852 echo "$as_me: WARNING: cairo.h: present but cannot be compiled" >&2;}
28853     { echo "$as_me:$LINENO: WARNING: cairo.h:     check for missing prerequisite headers?" >&5
28854 echo "$as_me: WARNING: cairo.h:     check for missing prerequisite headers?" >&2;}
28855     { echo "$as_me:$LINENO: WARNING: cairo.h: see the Autoconf documentation" >&5
28856 echo "$as_me: WARNING: cairo.h: see the Autoconf documentation" >&2;}
28857     { echo "$as_me:$LINENO: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&5
28858 echo "$as_me: WARNING: cairo.h:     section \"Present But Cannot Be Compiled\"" >&2;}
28859     { echo "$as_me:$LINENO: WARNING: cairo.h: proceeding with the preprocessor's result" >&5
28860 echo "$as_me: WARNING: cairo.h: proceeding with the preprocessor's result" >&2;}
28861     { echo "$as_me:$LINENO: WARNING: cairo.h: in the future, the compiler will take precedence" >&5
28862 echo "$as_me: WARNING: cairo.h: in the future, the compiler will take precedence" >&2;}
28864     ;;
28865 esac
28866 { echo "$as_me:$LINENO: checking for cairo.h" >&5
28867 echo $ECHO_N "checking for cairo.h... $ECHO_C" >&6; }
28868 if test "${ac_cv_header_cairo_h+set}" = set; then
28869   echo $ECHO_N "(cached) $ECHO_C" >&6
28870 else
28871   ac_cv_header_cairo_h=$ac_header_preproc
28873 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_h" >&5
28874 echo "${ECHO_T}$ac_cv_header_cairo_h" >&6; }
28877 if test $ac_cv_header_cairo_h = yes; then
28878   EX_CHECK_STATE=YES
28885           else
28886              { echo "$as_me:$LINENO: WARNING:
28887 ----------------------------------------------------------------------------
28888 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
28889   You may want to set the PKG_CONFIG_PATH variable to point to its
28890   location.
28891 ----------------------------------------------------------------------------
28892                         " >&5
28893 echo "$as_me: WARNING:
28894 ----------------------------------------------------------------------------
28895 * I found a copy of pkgconfig, but there is no cairo-png.pc file around.
28896   You may want to set the PKG_CONFIG_PATH variable to point to its
28897   location.
28898 ----------------------------------------------------------------------------
28899                         " >&2;}
28900            fi
28901      fi
28902   fi
28904   if test ${EX_CHECK_STATE} = NO; then
28905      { echo "$as_me:$LINENO: WARNING:
28906 ----------------------------------------------------------------------------
28907 * I could not find a working copy of cairo-png. Check config.log for hints on why
28908   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28909   so that compiler and the linker can find libcairo and its header files. If
28910   you have not installed cairo-png, you can get it either from its original home on
28912      http://cairographics.org/releases/
28914   You can find also find an archive copy on
28916      http://oss.oetiker.ch/rrdtool/pub/libs
28918   The last tested version of cairo-png is 1.4.6.
28920        LIBS=$LIBS
28921    LDFLAGS=$LDFLAGS
28922   CPPFLAGS=$CPPFLAGS
28924 ----------------------------------------------------------------------------
28925                 " >&5
28926 echo "$as_me: WARNING:
28927 ----------------------------------------------------------------------------
28928 * I could not find a working copy of cairo-png. Check config.log for hints on why
28929   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
28930   so that compiler and the linker can find libcairo and its header files. If
28931   you have not installed cairo-png, you can get it either from its original home on
28933      http://cairographics.org/releases/
28935   You can find also find an archive copy on
28937      http://oss.oetiker.ch/rrdtool/pub/libs
28939   The last tested version of cairo-png is 1.4.6.
28941        LIBS=$LIBS
28942    LDFLAGS=$LDFLAGS
28943   CPPFLAGS=$CPPFLAGS
28945 ----------------------------------------------------------------------------
28946                 " >&2;}
28947        EX_CHECK_ALL_ERR=YES
28948        LIBS="${ex_check_save_LIBS}"
28949        CPPFLAGS="${ex_check_save_CPPFLAGS}"
28950        LDFLAGS="${ex_check_save_LDFLAGS}"
28951     fi
28952     ac_ext=c
28953 ac_cpp='$CPP $CPPFLAGS'
28954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28961  ac_ext=c
28962 ac_cpp='$CPP $CPPFLAGS'
28963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28967  EX_CHECK_STATE=NO
28968  ex_check_save_LIBS=${LIBS}
28969  ex_check_save_CPPFLAGS=${CPPFLAGS}
28970  ex_check_save_LDFLAGS=${LDFLAGS}
28971  if test "x""" != "x"; then
28972    CPPFLAGS="$CPPFLAGS -I"""
28973  fi
28974   { echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
28975 echo $ECHO_N "checking for cairo_svg_surface_create in -lcairo... $ECHO_C" >&6; }
28976 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
28977   echo $ECHO_N "(cached) $ECHO_C" >&6
28978 else
28979   ac_check_lib_save_LIBS=$LIBS
28980 LIBS="-lcairo  $LIBS"
28981 cat >conftest.$ac_ext <<_ACEOF
28982 /* confdefs.h.  */
28983 _ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h.  */
28988 /* Override any GCC internal prototype to avoid an error.
28989    Use char because int might match the return type of a GCC
28990    builtin and then its argument prototype would still apply.  */
28991 #ifdef __cplusplus
28992 extern "C"
28993 #endif
28994 char cairo_svg_surface_create ();
28995 int
28996 main ()
28998 return cairo_svg_surface_create ();
28999   ;
29000   return 0;
29002 _ACEOF
29003 rm -f conftest.$ac_objext conftest$ac_exeext
29004 if { (ac_try="$ac_link"
29005 case "(($ac_try" in
29006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007   *) ac_try_echo=$ac_try;;
29008 esac
29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010   (eval "$ac_link") 2>conftest.er1
29011   ac_status=$?
29012   grep -v '^ *+' conftest.er1 >conftest.err
29013   rm -f conftest.er1
29014   cat conftest.err >&5
29015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016   (exit $ac_status); } && {
29017          test -z "$ac_c_werror_flag" ||
29018          test ! -s conftest.err
29019        } && test -s conftest$ac_exeext &&
29020        $as_test_x conftest$ac_exeext; then
29021   ac_cv_lib_cairo_cairo_svg_surface_create=yes
29022 else
29023   echo "$as_me: failed program was:" >&5
29024 sed 's/^/| /' conftest.$ac_ext >&5
29026         ac_cv_lib_cairo_cairo_svg_surface_create=no
29029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29030       conftest$ac_exeext conftest.$ac_ext
29031 LIBS=$ac_check_lib_save_LIBS
29033 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
29034 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
29035 if test $ac_cv_lib_cairo_cairo_svg_surface_create = yes; then
29037     if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29038   { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29039 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29040 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29041   echo $ECHO_N "(cached) $ECHO_C" >&6
29043 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29044 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29045 else
29046   # Is the header compilable?
29047 { echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
29048 echo $ECHO_N "checking cairo-svg.h usability... $ECHO_C" >&6; }
29049 cat >conftest.$ac_ext <<_ACEOF
29050 /* confdefs.h.  */
29051 _ACEOF
29052 cat confdefs.h >>conftest.$ac_ext
29053 cat >>conftest.$ac_ext <<_ACEOF
29054 /* end confdefs.h.  */
29055 $ac_includes_default
29056 #include <cairo-svg.h>
29057 _ACEOF
29058 rm -f conftest.$ac_objext
29059 if { (ac_try="$ac_compile"
29060 case "(($ac_try" in
29061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062   *) ac_try_echo=$ac_try;;
29063 esac
29064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065   (eval "$ac_compile") 2>conftest.er1
29066   ac_status=$?
29067   grep -v '^ *+' conftest.er1 >conftest.err
29068   rm -f conftest.er1
29069   cat conftest.err >&5
29070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071   (exit $ac_status); } && {
29072          test -z "$ac_c_werror_flag" ||
29073          test ! -s conftest.err
29074        } && test -s conftest.$ac_objext; then
29075   ac_header_compiler=yes
29076 else
29077   echo "$as_me: failed program was:" >&5
29078 sed 's/^/| /' conftest.$ac_ext >&5
29080         ac_header_compiler=no
29083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29085 echo "${ECHO_T}$ac_header_compiler" >&6; }
29087 # Is the header present?
29088 { echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
29089 echo $ECHO_N "checking cairo-svg.h presence... $ECHO_C" >&6; }
29090 cat >conftest.$ac_ext <<_ACEOF
29091 /* confdefs.h.  */
29092 _ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h.  */
29096 #include <cairo-svg.h>
29097 _ACEOF
29098 if { (ac_try="$ac_cpp conftest.$ac_ext"
29099 case "(($ac_try" in
29100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101   *) ac_try_echo=$ac_try;;
29102 esac
29103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29105   ac_status=$?
29106   grep -v '^ *+' conftest.er1 >conftest.err
29107   rm -f conftest.er1
29108   cat conftest.err >&5
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); } >/dev/null && {
29111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29112          test ! -s conftest.err
29113        }; then
29114   ac_header_preproc=yes
29115 else
29116   echo "$as_me: failed program was:" >&5
29117 sed 's/^/| /' conftest.$ac_ext >&5
29119   ac_header_preproc=no
29122 rm -f conftest.err conftest.$ac_ext
29123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29124 echo "${ECHO_T}$ac_header_preproc" >&6; }
29126 # So?  What about this header?
29127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29128   yes:no: )
29129     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
29130 echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29131     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
29132 echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
29133     ac_header_preproc=yes
29134     ;;
29135   no:yes:* )
29136     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
29137 echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
29138     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
29139 echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
29140     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
29141 echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
29142     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
29143 echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29144     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
29145 echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
29146     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
29147 echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
29149     ;;
29150 esac
29151 { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29152 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29153 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29154   echo $ECHO_N "(cached) $ECHO_C" >&6
29155 else
29156   ac_cv_header_cairo_svg_h=$ac_header_preproc
29158 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29159 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29162 if test $ac_cv_header_cairo_svg_h = yes; then
29163   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
29169  if test $EX_CHECK_STATE = NO; then
29170         for ac_prog in pkg-config
29172   # Extract the first word of "$ac_prog", so it can be a program name with args.
29173 set dummy $ac_prog; ac_word=$2
29174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29176 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29177   echo $ECHO_N "(cached) $ECHO_C" >&6
29178 else
29179   if test -n "$PKGCONFIG"; then
29180   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29181 else
29182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29183 for as_dir in $PATH
29185   IFS=$as_save_IFS
29186   test -z "$as_dir" && as_dir=.
29187   for ac_exec_ext in '' $ac_executable_extensions; do
29188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29189     ac_cv_prog_PKGCONFIG="$ac_prog"
29190     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29191     break 2
29192   fi
29193 done
29194 done
29195 IFS=$as_save_IFS
29199 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29200 if test -n "$PKGCONFIG"; then
29201   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29202 echo "${ECHO_T}$PKGCONFIG" >&6; }
29203 else
29204   { echo "$as_me:$LINENO: result: no" >&5
29205 echo "${ECHO_T}no" >&6; }
29209   test -n "$PKGCONFIG" && break
29210 done
29211 test -n "$PKGCONFIG" || PKGCONFIG="no"
29213     if test "$PKGCONFIG" != "no"; then
29214           if $PKGCONFIG --exists cairo-svg; then
29215              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-svg`
29216              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-svg`
29217              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-svg`
29218              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-svg`
29219                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_svg_surface_create
29220              { echo "$as_me:$LINENO: checking for cairo_svg_surface_create in -lcairo" >&5
29221 echo $ECHO_N "checking for cairo_svg_surface_create in -lcairo... $ECHO_C" >&6; }
29222 if test "${ac_cv_lib_cairo_cairo_svg_surface_create+set}" = set; then
29223   echo $ECHO_N "(cached) $ECHO_C" >&6
29224 else
29225   ac_check_lib_save_LIBS=$LIBS
29226 LIBS="-lcairo  $LIBS"
29227 cat >conftest.$ac_ext <<_ACEOF
29228 /* confdefs.h.  */
29229 _ACEOF
29230 cat confdefs.h >>conftest.$ac_ext
29231 cat >>conftest.$ac_ext <<_ACEOF
29232 /* end confdefs.h.  */
29234 /* Override any GCC internal prototype to avoid an error.
29235    Use char because int might match the return type of a GCC
29236    builtin and then its argument prototype would still apply.  */
29237 #ifdef __cplusplus
29238 extern "C"
29239 #endif
29240 char cairo_svg_surface_create ();
29241 int
29242 main ()
29244 return cairo_svg_surface_create ();
29245   ;
29246   return 0;
29248 _ACEOF
29249 rm -f conftest.$ac_objext conftest$ac_exeext
29250 if { (ac_try="$ac_link"
29251 case "(($ac_try" in
29252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253   *) ac_try_echo=$ac_try;;
29254 esac
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256   (eval "$ac_link") 2>conftest.er1
29257   ac_status=$?
29258   grep -v '^ *+' conftest.er1 >conftest.err
29259   rm -f conftest.er1
29260   cat conftest.err >&5
29261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262   (exit $ac_status); } && {
29263          test -z "$ac_c_werror_flag" ||
29264          test ! -s conftest.err
29265        } && test -s conftest$ac_exeext &&
29266        $as_test_x conftest$ac_exeext; then
29267   ac_cv_lib_cairo_cairo_svg_surface_create=yes
29268 else
29269   echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29272         ac_cv_lib_cairo_cairo_svg_surface_create=no
29275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29276       conftest$ac_exeext conftest.$ac_ext
29277 LIBS=$ac_check_lib_save_LIBS
29279 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_svg_surface_create" >&5
29280 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_svg_surface_create" >&6; }
29281 if test $ac_cv_lib_cairo_cairo_svg_surface_create = yes; then
29283                  unset ac_cv_header_`echo cairo-svg.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29284                  if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29285   { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29286 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29287 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29288   echo $ECHO_N "(cached) $ECHO_C" >&6
29290 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29291 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29292 else
29293   # Is the header compilable?
29294 { echo "$as_me:$LINENO: checking cairo-svg.h usability" >&5
29295 echo $ECHO_N "checking cairo-svg.h usability... $ECHO_C" >&6; }
29296 cat >conftest.$ac_ext <<_ACEOF
29297 /* confdefs.h.  */
29298 _ACEOF
29299 cat confdefs.h >>conftest.$ac_ext
29300 cat >>conftest.$ac_ext <<_ACEOF
29301 /* end confdefs.h.  */
29302 $ac_includes_default
29303 #include <cairo-svg.h>
29304 _ACEOF
29305 rm -f conftest.$ac_objext
29306 if { (ac_try="$ac_compile"
29307 case "(($ac_try" in
29308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309   *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312   (eval "$ac_compile") 2>conftest.er1
29313   ac_status=$?
29314   grep -v '^ *+' conftest.er1 >conftest.err
29315   rm -f conftest.er1
29316   cat conftest.err >&5
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); } && {
29319          test -z "$ac_c_werror_flag" ||
29320          test ! -s conftest.err
29321        } && test -s conftest.$ac_objext; then
29322   ac_header_compiler=yes
29323 else
29324   echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29327         ac_header_compiler=no
29330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29332 echo "${ECHO_T}$ac_header_compiler" >&6; }
29334 # Is the header present?
29335 { echo "$as_me:$LINENO: checking cairo-svg.h presence" >&5
29336 echo $ECHO_N "checking cairo-svg.h presence... $ECHO_C" >&6; }
29337 cat >conftest.$ac_ext <<_ACEOF
29338 /* confdefs.h.  */
29339 _ACEOF
29340 cat confdefs.h >>conftest.$ac_ext
29341 cat >>conftest.$ac_ext <<_ACEOF
29342 /* end confdefs.h.  */
29343 #include <cairo-svg.h>
29344 _ACEOF
29345 if { (ac_try="$ac_cpp conftest.$ac_ext"
29346 case "(($ac_try" in
29347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348   *) ac_try_echo=$ac_try;;
29349 esac
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29352   ac_status=$?
29353   grep -v '^ *+' conftest.er1 >conftest.err
29354   rm -f conftest.er1
29355   cat conftest.err >&5
29356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357   (exit $ac_status); } >/dev/null && {
29358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29359          test ! -s conftest.err
29360        }; then
29361   ac_header_preproc=yes
29362 else
29363   echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29366   ac_header_preproc=no
29369 rm -f conftest.err conftest.$ac_ext
29370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29371 echo "${ECHO_T}$ac_header_preproc" >&6; }
29373 # So?  What about this header?
29374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29375   yes:no: )
29376     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&5
29377 echo "$as_me: WARNING: cairo-svg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29378     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the compiler's result" >&5
29379 echo "$as_me: WARNING: cairo-svg.h: proceeding with the compiler's result" >&2;}
29380     ac_header_preproc=yes
29381     ;;
29382   no:yes:* )
29383     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: present but cannot be compiled" >&5
29384 echo "$as_me: WARNING: cairo-svg.h: present but cannot be compiled" >&2;}
29385     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&5
29386 echo "$as_me: WARNING: cairo-svg.h:     check for missing prerequisite headers?" >&2;}
29387     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: see the Autoconf documentation" >&5
29388 echo "$as_me: WARNING: cairo-svg.h: see the Autoconf documentation" >&2;}
29389     { echo "$as_me:$LINENO: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&5
29390 echo "$as_me: WARNING: cairo-svg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29391     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&5
29392 echo "$as_me: WARNING: cairo-svg.h: proceeding with the preprocessor's result" >&2;}
29393     { echo "$as_me:$LINENO: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&5
29394 echo "$as_me: WARNING: cairo-svg.h: in the future, the compiler will take precedence" >&2;}
29396     ;;
29397 esac
29398 { echo "$as_me:$LINENO: checking for cairo-svg.h" >&5
29399 echo $ECHO_N "checking for cairo-svg.h... $ECHO_C" >&6; }
29400 if test "${ac_cv_header_cairo_svg_h+set}" = set; then
29401   echo $ECHO_N "(cached) $ECHO_C" >&6
29402 else
29403   ac_cv_header_cairo_svg_h=$ac_header_preproc
29405 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_svg_h" >&5
29406 echo "${ECHO_T}$ac_cv_header_cairo_svg_h" >&6; }
29409 if test $ac_cv_header_cairo_svg_h = yes; then
29410   EX_CHECK_STATE=YES
29417           else
29418              { echo "$as_me:$LINENO: WARNING:
29419 ----------------------------------------------------------------------------
29420 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
29421   You may want to set the PKG_CONFIG_PATH variable to point to its
29422   location.
29423 ----------------------------------------------------------------------------
29424                         " >&5
29425 echo "$as_me: WARNING:
29426 ----------------------------------------------------------------------------
29427 * I found a copy of pkgconfig, but there is no cairo-svg.pc file around.
29428   You may want to set the PKG_CONFIG_PATH variable to point to its
29429   location.
29430 ----------------------------------------------------------------------------
29431                         " >&2;}
29432            fi
29433      fi
29434   fi
29436   if test ${EX_CHECK_STATE} = NO; then
29437      { echo "$as_me:$LINENO: WARNING:
29438 ----------------------------------------------------------------------------
29439 * I could not find a working copy of cairo-svg. Check config.log for hints on why
29440   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29441   so that compiler and the linker can find libcairo and its header files. If
29442   you have not installed cairo-svg, you can get it either from its original home on
29444      http://cairographics.org/releases/
29446   You can find also find an archive copy on
29448      http://oss.oetiker.ch/rrdtool/pub/libs
29450   The last tested version of cairo-svg is 1.4.6.
29452        LIBS=$LIBS
29453    LDFLAGS=$LDFLAGS
29454   CPPFLAGS=$CPPFLAGS
29456 ----------------------------------------------------------------------------
29457                 " >&5
29458 echo "$as_me: WARNING:
29459 ----------------------------------------------------------------------------
29460 * I could not find a working copy of cairo-svg. Check config.log for hints on why
29461   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29462   so that compiler and the linker can find libcairo and its header files. If
29463   you have not installed cairo-svg, you can get it either from its original home on
29465      http://cairographics.org/releases/
29467   You can find also find an archive copy on
29469      http://oss.oetiker.ch/rrdtool/pub/libs
29471   The last tested version of cairo-svg is 1.4.6.
29473        LIBS=$LIBS
29474    LDFLAGS=$LDFLAGS
29475   CPPFLAGS=$CPPFLAGS
29477 ----------------------------------------------------------------------------
29478                 " >&2;}
29479        EX_CHECK_ALL_ERR=YES
29480        LIBS="${ex_check_save_LIBS}"
29481        CPPFLAGS="${ex_check_save_CPPFLAGS}"
29482        LDFLAGS="${ex_check_save_LDFLAGS}"
29483     fi
29484     ac_ext=c
29485 ac_cpp='$CPP $CPPFLAGS'
29486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29493  ac_ext=c
29494 ac_cpp='$CPP $CPPFLAGS'
29495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29499  EX_CHECK_STATE=NO
29500  ex_check_save_LIBS=${LIBS}
29501  ex_check_save_CPPFLAGS=${CPPFLAGS}
29502  ex_check_save_LDFLAGS=${LDFLAGS}
29503  if test "x""" != "x"; then
29504    CPPFLAGS="$CPPFLAGS -I"""
29505  fi
29506   { echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
29507 echo $ECHO_N "checking for cairo_pdf_surface_create in -lcairo... $ECHO_C" >&6; }
29508 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
29509   echo $ECHO_N "(cached) $ECHO_C" >&6
29510 else
29511   ac_check_lib_save_LIBS=$LIBS
29512 LIBS="-lcairo  $LIBS"
29513 cat >conftest.$ac_ext <<_ACEOF
29514 /* confdefs.h.  */
29515 _ACEOF
29516 cat confdefs.h >>conftest.$ac_ext
29517 cat >>conftest.$ac_ext <<_ACEOF
29518 /* end confdefs.h.  */
29520 /* Override any GCC internal prototype to avoid an error.
29521    Use char because int might match the return type of a GCC
29522    builtin and then its argument prototype would still apply.  */
29523 #ifdef __cplusplus
29524 extern "C"
29525 #endif
29526 char cairo_pdf_surface_create ();
29527 int
29528 main ()
29530 return cairo_pdf_surface_create ();
29531   ;
29532   return 0;
29534 _ACEOF
29535 rm -f conftest.$ac_objext conftest$ac_exeext
29536 if { (ac_try="$ac_link"
29537 case "(($ac_try" in
29538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29539   *) ac_try_echo=$ac_try;;
29540 esac
29541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29542   (eval "$ac_link") 2>conftest.er1
29543   ac_status=$?
29544   grep -v '^ *+' conftest.er1 >conftest.err
29545   rm -f conftest.er1
29546   cat conftest.err >&5
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); } && {
29549          test -z "$ac_c_werror_flag" ||
29550          test ! -s conftest.err
29551        } && test -s conftest$ac_exeext &&
29552        $as_test_x conftest$ac_exeext; then
29553   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
29554 else
29555   echo "$as_me: failed program was:" >&5
29556 sed 's/^/| /' conftest.$ac_ext >&5
29558         ac_cv_lib_cairo_cairo_pdf_surface_create=no
29561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29562       conftest$ac_exeext conftest.$ac_ext
29563 LIBS=$ac_check_lib_save_LIBS
29565 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
29566 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
29567 if test $ac_cv_lib_cairo_cairo_pdf_surface_create = yes; then
29569     if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29570   { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
29571 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
29572 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29573   echo $ECHO_N "(cached) $ECHO_C" >&6
29575 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
29576 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
29577 else
29578   # Is the header compilable?
29579 { echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
29580 echo $ECHO_N "checking cairo-pdf.h usability... $ECHO_C" >&6; }
29581 cat >conftest.$ac_ext <<_ACEOF
29582 /* confdefs.h.  */
29583 _ACEOF
29584 cat confdefs.h >>conftest.$ac_ext
29585 cat >>conftest.$ac_ext <<_ACEOF
29586 /* end confdefs.h.  */
29587 $ac_includes_default
29588 #include <cairo-pdf.h>
29589 _ACEOF
29590 rm -f conftest.$ac_objext
29591 if { (ac_try="$ac_compile"
29592 case "(($ac_try" in
29593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29594   *) ac_try_echo=$ac_try;;
29595 esac
29596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29597   (eval "$ac_compile") 2>conftest.er1
29598   ac_status=$?
29599   grep -v '^ *+' conftest.er1 >conftest.err
29600   rm -f conftest.er1
29601   cat conftest.err >&5
29602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29603   (exit $ac_status); } && {
29604          test -z "$ac_c_werror_flag" ||
29605          test ! -s conftest.err
29606        } && test -s conftest.$ac_objext; then
29607   ac_header_compiler=yes
29608 else
29609   echo "$as_me: failed program was:" >&5
29610 sed 's/^/| /' conftest.$ac_ext >&5
29612         ac_header_compiler=no
29615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29617 echo "${ECHO_T}$ac_header_compiler" >&6; }
29619 # Is the header present?
29620 { echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
29621 echo $ECHO_N "checking cairo-pdf.h presence... $ECHO_C" >&6; }
29622 cat >conftest.$ac_ext <<_ACEOF
29623 /* confdefs.h.  */
29624 _ACEOF
29625 cat confdefs.h >>conftest.$ac_ext
29626 cat >>conftest.$ac_ext <<_ACEOF
29627 /* end confdefs.h.  */
29628 #include <cairo-pdf.h>
29629 _ACEOF
29630 if { (ac_try="$ac_cpp conftest.$ac_ext"
29631 case "(($ac_try" in
29632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633   *) ac_try_echo=$ac_try;;
29634 esac
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29637   ac_status=$?
29638   grep -v '^ *+' conftest.er1 >conftest.err
29639   rm -f conftest.er1
29640   cat conftest.err >&5
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); } >/dev/null && {
29643          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29644          test ! -s conftest.err
29645        }; then
29646   ac_header_preproc=yes
29647 else
29648   echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29651   ac_header_preproc=no
29654 rm -f conftest.err conftest.$ac_ext
29655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29656 echo "${ECHO_T}$ac_header_preproc" >&6; }
29658 # So?  What about this header?
29659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29660   yes:no: )
29661     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
29662 echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29663     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
29664 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
29665     ac_header_preproc=yes
29666     ;;
29667   no:yes:* )
29668     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
29669 echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
29670     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
29671 echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
29672     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
29673 echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
29674     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
29675 echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29676     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
29677 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
29678     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
29679 echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
29681     ;;
29682 esac
29683 { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
29684 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
29685 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29686   echo $ECHO_N "(cached) $ECHO_C" >&6
29687 else
29688   ac_cv_header_cairo_pdf_h=$ac_header_preproc
29690 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
29691 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
29694 if test $ac_cv_header_cairo_pdf_h = yes; then
29695   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
29701  if test $EX_CHECK_STATE = NO; then
29702         for ac_prog in pkg-config
29704   # Extract the first word of "$ac_prog", so it can be a program name with args.
29705 set dummy $ac_prog; ac_word=$2
29706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29708 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
29709   echo $ECHO_N "(cached) $ECHO_C" >&6
29710 else
29711   if test -n "$PKGCONFIG"; then
29712   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
29713 else
29714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29715 for as_dir in $PATH
29717   IFS=$as_save_IFS
29718   test -z "$as_dir" && as_dir=.
29719   for ac_exec_ext in '' $ac_executable_extensions; do
29720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29721     ac_cv_prog_PKGCONFIG="$ac_prog"
29722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29723     break 2
29724   fi
29725 done
29726 done
29727 IFS=$as_save_IFS
29731 PKGCONFIG=$ac_cv_prog_PKGCONFIG
29732 if test -n "$PKGCONFIG"; then
29733   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
29734 echo "${ECHO_T}$PKGCONFIG" >&6; }
29735 else
29736   { echo "$as_me:$LINENO: result: no" >&5
29737 echo "${ECHO_T}no" >&6; }
29741   test -n "$PKGCONFIG" && break
29742 done
29743 test -n "$PKGCONFIG" || PKGCONFIG="no"
29745     if test "$PKGCONFIG" != "no"; then
29746           if $PKGCONFIG --exists cairo-pdf; then
29747              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-pdf`
29748              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-pdf`
29749              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-pdf`
29750              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-pdf`
29751                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_pdf_surface_create
29752              { echo "$as_me:$LINENO: checking for cairo_pdf_surface_create in -lcairo" >&5
29753 echo $ECHO_N "checking for cairo_pdf_surface_create in -lcairo... $ECHO_C" >&6; }
29754 if test "${ac_cv_lib_cairo_cairo_pdf_surface_create+set}" = set; then
29755   echo $ECHO_N "(cached) $ECHO_C" >&6
29756 else
29757   ac_check_lib_save_LIBS=$LIBS
29758 LIBS="-lcairo  $LIBS"
29759 cat >conftest.$ac_ext <<_ACEOF
29760 /* confdefs.h.  */
29761 _ACEOF
29762 cat confdefs.h >>conftest.$ac_ext
29763 cat >>conftest.$ac_ext <<_ACEOF
29764 /* end confdefs.h.  */
29766 /* Override any GCC internal prototype to avoid an error.
29767    Use char because int might match the return type of a GCC
29768    builtin and then its argument prototype would still apply.  */
29769 #ifdef __cplusplus
29770 extern "C"
29771 #endif
29772 char cairo_pdf_surface_create ();
29773 int
29774 main ()
29776 return cairo_pdf_surface_create ();
29777   ;
29778   return 0;
29780 _ACEOF
29781 rm -f conftest.$ac_objext conftest$ac_exeext
29782 if { (ac_try="$ac_link"
29783 case "(($ac_try" in
29784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29785   *) ac_try_echo=$ac_try;;
29786 esac
29787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29788   (eval "$ac_link") 2>conftest.er1
29789   ac_status=$?
29790   grep -v '^ *+' conftest.er1 >conftest.err
29791   rm -f conftest.er1
29792   cat conftest.err >&5
29793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794   (exit $ac_status); } && {
29795          test -z "$ac_c_werror_flag" ||
29796          test ! -s conftest.err
29797        } && test -s conftest$ac_exeext &&
29798        $as_test_x conftest$ac_exeext; then
29799   ac_cv_lib_cairo_cairo_pdf_surface_create=yes
29800 else
29801   echo "$as_me: failed program was:" >&5
29802 sed 's/^/| /' conftest.$ac_ext >&5
29804         ac_cv_lib_cairo_cairo_pdf_surface_create=no
29807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29808       conftest$ac_exeext conftest.$ac_ext
29809 LIBS=$ac_check_lib_save_LIBS
29811 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_pdf_surface_create" >&5
29812 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_pdf_surface_create" >&6; }
29813 if test $ac_cv_lib_cairo_cairo_pdf_surface_create = yes; then
29815                  unset ac_cv_header_`echo cairo-pdf.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
29816                  if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29817   { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
29818 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
29819 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29820   echo $ECHO_N "(cached) $ECHO_C" >&6
29822 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
29823 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
29824 else
29825   # Is the header compilable?
29826 { echo "$as_me:$LINENO: checking cairo-pdf.h usability" >&5
29827 echo $ECHO_N "checking cairo-pdf.h usability... $ECHO_C" >&6; }
29828 cat >conftest.$ac_ext <<_ACEOF
29829 /* confdefs.h.  */
29830 _ACEOF
29831 cat confdefs.h >>conftest.$ac_ext
29832 cat >>conftest.$ac_ext <<_ACEOF
29833 /* end confdefs.h.  */
29834 $ac_includes_default
29835 #include <cairo-pdf.h>
29836 _ACEOF
29837 rm -f conftest.$ac_objext
29838 if { (ac_try="$ac_compile"
29839 case "(($ac_try" in
29840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841   *) ac_try_echo=$ac_try;;
29842 esac
29843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844   (eval "$ac_compile") 2>conftest.er1
29845   ac_status=$?
29846   grep -v '^ *+' conftest.er1 >conftest.err
29847   rm -f conftest.er1
29848   cat conftest.err >&5
29849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850   (exit $ac_status); } && {
29851          test -z "$ac_c_werror_flag" ||
29852          test ! -s conftest.err
29853        } && test -s conftest.$ac_objext; then
29854   ac_header_compiler=yes
29855 else
29856   echo "$as_me: failed program was:" >&5
29857 sed 's/^/| /' conftest.$ac_ext >&5
29859         ac_header_compiler=no
29862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29864 echo "${ECHO_T}$ac_header_compiler" >&6; }
29866 # Is the header present?
29867 { echo "$as_me:$LINENO: checking cairo-pdf.h presence" >&5
29868 echo $ECHO_N "checking cairo-pdf.h presence... $ECHO_C" >&6; }
29869 cat >conftest.$ac_ext <<_ACEOF
29870 /* confdefs.h.  */
29871 _ACEOF
29872 cat confdefs.h >>conftest.$ac_ext
29873 cat >>conftest.$ac_ext <<_ACEOF
29874 /* end confdefs.h.  */
29875 #include <cairo-pdf.h>
29876 _ACEOF
29877 if { (ac_try="$ac_cpp conftest.$ac_ext"
29878 case "(($ac_try" in
29879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29880   *) ac_try_echo=$ac_try;;
29881 esac
29882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29883   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29884   ac_status=$?
29885   grep -v '^ *+' conftest.er1 >conftest.err
29886   rm -f conftest.er1
29887   cat conftest.err >&5
29888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889   (exit $ac_status); } >/dev/null && {
29890          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29891          test ! -s conftest.err
29892        }; then
29893   ac_header_preproc=yes
29894 else
29895   echo "$as_me: failed program was:" >&5
29896 sed 's/^/| /' conftest.$ac_ext >&5
29898   ac_header_preproc=no
29901 rm -f conftest.err conftest.$ac_ext
29902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29903 echo "${ECHO_T}$ac_header_preproc" >&6; }
29905 # So?  What about this header?
29906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29907   yes:no: )
29908     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&5
29909 echo "$as_me: WARNING: cairo-pdf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29910     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&5
29911 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the compiler's result" >&2;}
29912     ac_header_preproc=yes
29913     ;;
29914   no:yes:* )
29915     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: present but cannot be compiled" >&5
29916 echo "$as_me: WARNING: cairo-pdf.h: present but cannot be compiled" >&2;}
29917     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&5
29918 echo "$as_me: WARNING: cairo-pdf.h:     check for missing prerequisite headers?" >&2;}
29919     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: see the Autoconf documentation" >&5
29920 echo "$as_me: WARNING: cairo-pdf.h: see the Autoconf documentation" >&2;}
29921     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&5
29922 echo "$as_me: WARNING: cairo-pdf.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29923     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&5
29924 echo "$as_me: WARNING: cairo-pdf.h: proceeding with the preprocessor's result" >&2;}
29925     { echo "$as_me:$LINENO: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&5
29926 echo "$as_me: WARNING: cairo-pdf.h: in the future, the compiler will take precedence" >&2;}
29928     ;;
29929 esac
29930 { echo "$as_me:$LINENO: checking for cairo-pdf.h" >&5
29931 echo $ECHO_N "checking for cairo-pdf.h... $ECHO_C" >&6; }
29932 if test "${ac_cv_header_cairo_pdf_h+set}" = set; then
29933   echo $ECHO_N "(cached) $ECHO_C" >&6
29934 else
29935   ac_cv_header_cairo_pdf_h=$ac_header_preproc
29937 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_pdf_h" >&5
29938 echo "${ECHO_T}$ac_cv_header_cairo_pdf_h" >&6; }
29941 if test $ac_cv_header_cairo_pdf_h = yes; then
29942   EX_CHECK_STATE=YES
29949           else
29950              { echo "$as_me:$LINENO: WARNING:
29951 ----------------------------------------------------------------------------
29952 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
29953   You may want to set the PKG_CONFIG_PATH variable to point to its
29954   location.
29955 ----------------------------------------------------------------------------
29956                         " >&5
29957 echo "$as_me: WARNING:
29958 ----------------------------------------------------------------------------
29959 * I found a copy of pkgconfig, but there is no cairo-pdf.pc file around.
29960   You may want to set the PKG_CONFIG_PATH variable to point to its
29961   location.
29962 ----------------------------------------------------------------------------
29963                         " >&2;}
29964            fi
29965      fi
29966   fi
29968   if test ${EX_CHECK_STATE} = NO; then
29969      { echo "$as_me:$LINENO: WARNING:
29970 ----------------------------------------------------------------------------
29971 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
29972   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29973   so that compiler and the linker can find libcairo and its header files. If
29974   you have not installed cairo-pdf, you can get it either from its original home on
29976      http://cairographics.org/releases/
29978   You can find also find an archive copy on
29980      http://oss.oetiker.ch/rrdtool/pub/libs
29982   The last tested version of cairo-pdf is 1.4.6.
29984        LIBS=$LIBS
29985    LDFLAGS=$LDFLAGS
29986   CPPFLAGS=$CPPFLAGS
29988 ----------------------------------------------------------------------------
29989                 " >&5
29990 echo "$as_me: WARNING:
29991 ----------------------------------------------------------------------------
29992 * I could not find a working copy of cairo-pdf. Check config.log for hints on why
29993   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
29994   so that compiler and the linker can find libcairo and its header files. If
29995   you have not installed cairo-pdf, you can get it either from its original home on
29997      http://cairographics.org/releases/
29999   You can find also find an archive copy on
30001      http://oss.oetiker.ch/rrdtool/pub/libs
30003   The last tested version of cairo-pdf is 1.4.6.
30005        LIBS=$LIBS
30006    LDFLAGS=$LDFLAGS
30007   CPPFLAGS=$CPPFLAGS
30009 ----------------------------------------------------------------------------
30010                 " >&2;}
30011        EX_CHECK_ALL_ERR=YES
30012        LIBS="${ex_check_save_LIBS}"
30013        CPPFLAGS="${ex_check_save_CPPFLAGS}"
30014        LDFLAGS="${ex_check_save_LDFLAGS}"
30015     fi
30016     ac_ext=c
30017 ac_cpp='$CPP $CPPFLAGS'
30018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30025  ac_ext=c
30026 ac_cpp='$CPP $CPPFLAGS'
30027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30031  EX_CHECK_STATE=NO
30032  ex_check_save_LIBS=${LIBS}
30033  ex_check_save_CPPFLAGS=${CPPFLAGS}
30034  ex_check_save_LDFLAGS=${LDFLAGS}
30035  if test "x""" != "x"; then
30036    CPPFLAGS="$CPPFLAGS -I"""
30037  fi
30038   { echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
30039 echo $ECHO_N "checking for cairo_ps_surface_create in -lcairo... $ECHO_C" >&6; }
30040 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
30041   echo $ECHO_N "(cached) $ECHO_C" >&6
30042 else
30043   ac_check_lib_save_LIBS=$LIBS
30044 LIBS="-lcairo  $LIBS"
30045 cat >conftest.$ac_ext <<_ACEOF
30046 /* confdefs.h.  */
30047 _ACEOF
30048 cat confdefs.h >>conftest.$ac_ext
30049 cat >>conftest.$ac_ext <<_ACEOF
30050 /* end confdefs.h.  */
30052 /* Override any GCC internal prototype to avoid an error.
30053    Use char because int might match the return type of a GCC
30054    builtin and then its argument prototype would still apply.  */
30055 #ifdef __cplusplus
30056 extern "C"
30057 #endif
30058 char cairo_ps_surface_create ();
30059 int
30060 main ()
30062 return cairo_ps_surface_create ();
30063   ;
30064   return 0;
30066 _ACEOF
30067 rm -f conftest.$ac_objext conftest$ac_exeext
30068 if { (ac_try="$ac_link"
30069 case "(($ac_try" in
30070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30071   *) ac_try_echo=$ac_try;;
30072 esac
30073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30074   (eval "$ac_link") 2>conftest.er1
30075   ac_status=$?
30076   grep -v '^ *+' conftest.er1 >conftest.err
30077   rm -f conftest.er1
30078   cat conftest.err >&5
30079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080   (exit $ac_status); } && {
30081          test -z "$ac_c_werror_flag" ||
30082          test ! -s conftest.err
30083        } && test -s conftest$ac_exeext &&
30084        $as_test_x conftest$ac_exeext; then
30085   ac_cv_lib_cairo_cairo_ps_surface_create=yes
30086 else
30087   echo "$as_me: failed program was:" >&5
30088 sed 's/^/| /' conftest.$ac_ext >&5
30090         ac_cv_lib_cairo_cairo_ps_surface_create=no
30093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30094       conftest$ac_exeext conftest.$ac_ext
30095 LIBS=$ac_check_lib_save_LIBS
30097 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
30098 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
30099 if test $ac_cv_lib_cairo_cairo_ps_surface_create = yes; then
30101     if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30102   { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30103 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30104 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30105   echo $ECHO_N "(cached) $ECHO_C" >&6
30107 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30108 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30109 else
30110   # Is the header compilable?
30111 { echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
30112 echo $ECHO_N "checking cairo-ps.h usability... $ECHO_C" >&6; }
30113 cat >conftest.$ac_ext <<_ACEOF
30114 /* confdefs.h.  */
30115 _ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h.  */
30119 $ac_includes_default
30120 #include <cairo-ps.h>
30121 _ACEOF
30122 rm -f conftest.$ac_objext
30123 if { (ac_try="$ac_compile"
30124 case "(($ac_try" in
30125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126   *) ac_try_echo=$ac_try;;
30127 esac
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129   (eval "$ac_compile") 2>conftest.er1
30130   ac_status=$?
30131   grep -v '^ *+' conftest.er1 >conftest.err
30132   rm -f conftest.er1
30133   cat conftest.err >&5
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); } && {
30136          test -z "$ac_c_werror_flag" ||
30137          test ! -s conftest.err
30138        } && test -s conftest.$ac_objext; then
30139   ac_header_compiler=yes
30140 else
30141   echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30144         ac_header_compiler=no
30147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30149 echo "${ECHO_T}$ac_header_compiler" >&6; }
30151 # Is the header present?
30152 { echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
30153 echo $ECHO_N "checking cairo-ps.h presence... $ECHO_C" >&6; }
30154 cat >conftest.$ac_ext <<_ACEOF
30155 /* confdefs.h.  */
30156 _ACEOF
30157 cat confdefs.h >>conftest.$ac_ext
30158 cat >>conftest.$ac_ext <<_ACEOF
30159 /* end confdefs.h.  */
30160 #include <cairo-ps.h>
30161 _ACEOF
30162 if { (ac_try="$ac_cpp conftest.$ac_ext"
30163 case "(($ac_try" in
30164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165   *) ac_try_echo=$ac_try;;
30166 esac
30167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30169   ac_status=$?
30170   grep -v '^ *+' conftest.er1 >conftest.err
30171   rm -f conftest.er1
30172   cat conftest.err >&5
30173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174   (exit $ac_status); } >/dev/null && {
30175          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30176          test ! -s conftest.err
30177        }; then
30178   ac_header_preproc=yes
30179 else
30180   echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30183   ac_header_preproc=no
30186 rm -f conftest.err conftest.$ac_ext
30187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30188 echo "${ECHO_T}$ac_header_preproc" >&6; }
30190 # So?  What about this header?
30191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30192   yes:no: )
30193     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
30194 echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30195     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
30196 echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
30197     ac_header_preproc=yes
30198     ;;
30199   no:yes:* )
30200     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
30201 echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
30202     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
30203 echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
30204     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
30205 echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
30206     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
30207 echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30208     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
30209 echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
30210     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
30211 echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
30213     ;;
30214 esac
30215 { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30216 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30217 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30218   echo $ECHO_N "(cached) $ECHO_C" >&6
30219 else
30220   ac_cv_header_cairo_ps_h=$ac_header_preproc
30222 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30223 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30226 if test $ac_cv_header_cairo_ps_h = yes; then
30227   LIBS="-lcairo ${LIBS}";EX_CHECK_STATE=YES
30233  if test $EX_CHECK_STATE = NO; then
30234         for ac_prog in pkg-config
30236   # Extract the first word of "$ac_prog", so it can be a program name with args.
30237 set dummy $ac_prog; ac_word=$2
30238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30240 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30241   echo $ECHO_N "(cached) $ECHO_C" >&6
30242 else
30243   if test -n "$PKGCONFIG"; then
30244   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30245 else
30246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30247 for as_dir in $PATH
30249   IFS=$as_save_IFS
30250   test -z "$as_dir" && as_dir=.
30251   for ac_exec_ext in '' $ac_executable_extensions; do
30252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30253     ac_cv_prog_PKGCONFIG="$ac_prog"
30254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30255     break 2
30256   fi
30257 done
30258 done
30259 IFS=$as_save_IFS
30263 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30264 if test -n "$PKGCONFIG"; then
30265   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30266 echo "${ECHO_T}$PKGCONFIG" >&6; }
30267 else
30268   { echo "$as_me:$LINENO: result: no" >&5
30269 echo "${ECHO_T}no" >&6; }
30273   test -n "$PKGCONFIG" && break
30274 done
30275 test -n "$PKGCONFIG" || PKGCONFIG="no"
30277     if test "$PKGCONFIG" != "no"; then
30278           if $PKGCONFIG --exists cairo-ps; then
30279              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags cairo-ps`
30280              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L cairo-ps`
30281              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other cairo-ps`
30282              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l cairo-ps`
30283                              unset ac_cv_lib_`echo cairo | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_cairo_ps_surface_create
30284              { echo "$as_me:$LINENO: checking for cairo_ps_surface_create in -lcairo" >&5
30285 echo $ECHO_N "checking for cairo_ps_surface_create in -lcairo... $ECHO_C" >&6; }
30286 if test "${ac_cv_lib_cairo_cairo_ps_surface_create+set}" = set; then
30287   echo $ECHO_N "(cached) $ECHO_C" >&6
30288 else
30289   ac_check_lib_save_LIBS=$LIBS
30290 LIBS="-lcairo  $LIBS"
30291 cat >conftest.$ac_ext <<_ACEOF
30292 /* confdefs.h.  */
30293 _ACEOF
30294 cat confdefs.h >>conftest.$ac_ext
30295 cat >>conftest.$ac_ext <<_ACEOF
30296 /* end confdefs.h.  */
30298 /* Override any GCC internal prototype to avoid an error.
30299    Use char because int might match the return type of a GCC
30300    builtin and then its argument prototype would still apply.  */
30301 #ifdef __cplusplus
30302 extern "C"
30303 #endif
30304 char cairo_ps_surface_create ();
30305 int
30306 main ()
30308 return cairo_ps_surface_create ();
30309   ;
30310   return 0;
30312 _ACEOF
30313 rm -f conftest.$ac_objext conftest$ac_exeext
30314 if { (ac_try="$ac_link"
30315 case "(($ac_try" in
30316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30317   *) ac_try_echo=$ac_try;;
30318 esac
30319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30320   (eval "$ac_link") 2>conftest.er1
30321   ac_status=$?
30322   grep -v '^ *+' conftest.er1 >conftest.err
30323   rm -f conftest.er1
30324   cat conftest.err >&5
30325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326   (exit $ac_status); } && {
30327          test -z "$ac_c_werror_flag" ||
30328          test ! -s conftest.err
30329        } && test -s conftest$ac_exeext &&
30330        $as_test_x conftest$ac_exeext; then
30331   ac_cv_lib_cairo_cairo_ps_surface_create=yes
30332 else
30333   echo "$as_me: failed program was:" >&5
30334 sed 's/^/| /' conftest.$ac_ext >&5
30336         ac_cv_lib_cairo_cairo_ps_surface_create=no
30339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30340       conftest$ac_exeext conftest.$ac_ext
30341 LIBS=$ac_check_lib_save_LIBS
30343 { echo "$as_me:$LINENO: result: $ac_cv_lib_cairo_cairo_ps_surface_create" >&5
30344 echo "${ECHO_T}$ac_cv_lib_cairo_cairo_ps_surface_create" >&6; }
30345 if test $ac_cv_lib_cairo_cairo_ps_surface_create = yes; then
30347                  unset ac_cv_header_`echo cairo-ps.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30348                  if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30349   { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30350 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30351 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30352   echo $ECHO_N "(cached) $ECHO_C" >&6
30354 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30355 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30356 else
30357   # Is the header compilable?
30358 { echo "$as_me:$LINENO: checking cairo-ps.h usability" >&5
30359 echo $ECHO_N "checking cairo-ps.h usability... $ECHO_C" >&6; }
30360 cat >conftest.$ac_ext <<_ACEOF
30361 /* confdefs.h.  */
30362 _ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h.  */
30366 $ac_includes_default
30367 #include <cairo-ps.h>
30368 _ACEOF
30369 rm -f conftest.$ac_objext
30370 if { (ac_try="$ac_compile"
30371 case "(($ac_try" in
30372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30373   *) ac_try_echo=$ac_try;;
30374 esac
30375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30376   (eval "$ac_compile") 2>conftest.er1
30377   ac_status=$?
30378   grep -v '^ *+' conftest.er1 >conftest.err
30379   rm -f conftest.er1
30380   cat conftest.err >&5
30381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382   (exit $ac_status); } && {
30383          test -z "$ac_c_werror_flag" ||
30384          test ! -s conftest.err
30385        } && test -s conftest.$ac_objext; then
30386   ac_header_compiler=yes
30387 else
30388   echo "$as_me: failed program was:" >&5
30389 sed 's/^/| /' conftest.$ac_ext >&5
30391         ac_header_compiler=no
30394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30396 echo "${ECHO_T}$ac_header_compiler" >&6; }
30398 # Is the header present?
30399 { echo "$as_me:$LINENO: checking cairo-ps.h presence" >&5
30400 echo $ECHO_N "checking cairo-ps.h presence... $ECHO_C" >&6; }
30401 cat >conftest.$ac_ext <<_ACEOF
30402 /* confdefs.h.  */
30403 _ACEOF
30404 cat confdefs.h >>conftest.$ac_ext
30405 cat >>conftest.$ac_ext <<_ACEOF
30406 /* end confdefs.h.  */
30407 #include <cairo-ps.h>
30408 _ACEOF
30409 if { (ac_try="$ac_cpp conftest.$ac_ext"
30410 case "(($ac_try" in
30411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30412   *) ac_try_echo=$ac_try;;
30413 esac
30414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30415   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30416   ac_status=$?
30417   grep -v '^ *+' conftest.er1 >conftest.err
30418   rm -f conftest.er1
30419   cat conftest.err >&5
30420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421   (exit $ac_status); } >/dev/null && {
30422          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30423          test ! -s conftest.err
30424        }; then
30425   ac_header_preproc=yes
30426 else
30427   echo "$as_me: failed program was:" >&5
30428 sed 's/^/| /' conftest.$ac_ext >&5
30430   ac_header_preproc=no
30433 rm -f conftest.err conftest.$ac_ext
30434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30435 echo "${ECHO_T}$ac_header_preproc" >&6; }
30437 # So?  What about this header?
30438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30439   yes:no: )
30440     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&5
30441 echo "$as_me: WARNING: cairo-ps.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30442     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the compiler's result" >&5
30443 echo "$as_me: WARNING: cairo-ps.h: proceeding with the compiler's result" >&2;}
30444     ac_header_preproc=yes
30445     ;;
30446   no:yes:* )
30447     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: present but cannot be compiled" >&5
30448 echo "$as_me: WARNING: cairo-ps.h: present but cannot be compiled" >&2;}
30449     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&5
30450 echo "$as_me: WARNING: cairo-ps.h:     check for missing prerequisite headers?" >&2;}
30451     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: see the Autoconf documentation" >&5
30452 echo "$as_me: WARNING: cairo-ps.h: see the Autoconf documentation" >&2;}
30453     { echo "$as_me:$LINENO: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&5
30454 echo "$as_me: WARNING: cairo-ps.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30455     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&5
30456 echo "$as_me: WARNING: cairo-ps.h: proceeding with the preprocessor's result" >&2;}
30457     { echo "$as_me:$LINENO: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&5
30458 echo "$as_me: WARNING: cairo-ps.h: in the future, the compiler will take precedence" >&2;}
30460     ;;
30461 esac
30462 { echo "$as_me:$LINENO: checking for cairo-ps.h" >&5
30463 echo $ECHO_N "checking for cairo-ps.h... $ECHO_C" >&6; }
30464 if test "${ac_cv_header_cairo_ps_h+set}" = set; then
30465   echo $ECHO_N "(cached) $ECHO_C" >&6
30466 else
30467   ac_cv_header_cairo_ps_h=$ac_header_preproc
30469 { echo "$as_me:$LINENO: result: $ac_cv_header_cairo_ps_h" >&5
30470 echo "${ECHO_T}$ac_cv_header_cairo_ps_h" >&6; }
30473 if test $ac_cv_header_cairo_ps_h = yes; then
30474   EX_CHECK_STATE=YES
30481           else
30482              { echo "$as_me:$LINENO: WARNING:
30483 ----------------------------------------------------------------------------
30484 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
30485   You may want to set the PKG_CONFIG_PATH variable to point to its
30486   location.
30487 ----------------------------------------------------------------------------
30488                         " >&5
30489 echo "$as_me: WARNING:
30490 ----------------------------------------------------------------------------
30491 * I found a copy of pkgconfig, but there is no cairo-ps.pc file around.
30492   You may want to set the PKG_CONFIG_PATH variable to point to its
30493   location.
30494 ----------------------------------------------------------------------------
30495                         " >&2;}
30496            fi
30497      fi
30498   fi
30500   if test ${EX_CHECK_STATE} = NO; then
30501      { echo "$as_me:$LINENO: WARNING:
30502 ----------------------------------------------------------------------------
30503 * I could not find a working copy of cairo-ps. Check config.log for hints on why
30504   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30505   so that compiler and the linker can find libcairo and its header files. If
30506   you have not installed cairo-ps, you can get it either from its original home on
30508      http://cairographics.org/releases/
30510   You can find also find an archive copy on
30512      http://oss.oetiker.ch/rrdtool/pub/libs
30514   The last tested version of cairo-ps is 1.4.6.
30516        LIBS=$LIBS
30517    LDFLAGS=$LDFLAGS
30518   CPPFLAGS=$CPPFLAGS
30520 ----------------------------------------------------------------------------
30521                 " >&5
30522 echo "$as_me: WARNING:
30523 ----------------------------------------------------------------------------
30524 * I could not find a working copy of cairo-ps. Check config.log for hints on why
30525   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
30526   so that compiler and the linker can find libcairo and its header files. If
30527   you have not installed cairo-ps, you can get it either from its original home on
30529      http://cairographics.org/releases/
30531   You can find also find an archive copy on
30533      http://oss.oetiker.ch/rrdtool/pub/libs
30535   The last tested version of cairo-ps is 1.4.6.
30537        LIBS=$LIBS
30538    LDFLAGS=$LDFLAGS
30539   CPPFLAGS=$CPPFLAGS
30541 ----------------------------------------------------------------------------
30542                 " >&2;}
30543        EX_CHECK_ALL_ERR=YES
30544        LIBS="${ex_check_save_LIBS}"
30545        CPPFLAGS="${ex_check_save_CPPFLAGS}"
30546        LDFLAGS="${ex_check_save_LDFLAGS}"
30547     fi
30548     ac_ext=c
30549 ac_cpp='$CPP $CPPFLAGS'
30550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30557  ac_ext=c
30558 ac_cpp='$CPP $CPPFLAGS'
30559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30563  EX_CHECK_STATE=NO
30564  ex_check_save_LIBS=${LIBS}
30565  ex_check_save_CPPFLAGS=${CPPFLAGS}
30566  ex_check_save_LDFLAGS=${LDFLAGS}
30567  if test "x""" != "x"; then
30568    CPPFLAGS="$CPPFLAGS -I"""
30569  fi
30570   { echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
30571 echo $ECHO_N "checking for pango_cairo_context_set_font_options in -lpango-1.0... $ECHO_C" >&6; }
30572 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
30573   echo $ECHO_N "(cached) $ECHO_C" >&6
30574 else
30575   ac_check_lib_save_LIBS=$LIBS
30576 LIBS="-lpango-1.0  $LIBS"
30577 cat >conftest.$ac_ext <<_ACEOF
30578 /* confdefs.h.  */
30579 _ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h.  */
30584 /* Override any GCC internal prototype to avoid an error.
30585    Use char because int might match the return type of a GCC
30586    builtin and then its argument prototype would still apply.  */
30587 #ifdef __cplusplus
30588 extern "C"
30589 #endif
30590 char pango_cairo_context_set_font_options ();
30591 int
30592 main ()
30594 return pango_cairo_context_set_font_options ();
30595   ;
30596   return 0;
30598 _ACEOF
30599 rm -f conftest.$ac_objext conftest$ac_exeext
30600 if { (ac_try="$ac_link"
30601 case "(($ac_try" in
30602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603   *) ac_try_echo=$ac_try;;
30604 esac
30605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30606   (eval "$ac_link") 2>conftest.er1
30607   ac_status=$?
30608   grep -v '^ *+' conftest.er1 >conftest.err
30609   rm -f conftest.er1
30610   cat conftest.err >&5
30611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612   (exit $ac_status); } && {
30613          test -z "$ac_c_werror_flag" ||
30614          test ! -s conftest.err
30615        } && test -s conftest$ac_exeext &&
30616        $as_test_x conftest$ac_exeext; then
30617   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
30618 else
30619   echo "$as_me: failed program was:" >&5
30620 sed 's/^/| /' conftest.$ac_ext >&5
30622         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
30625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30626       conftest$ac_exeext conftest.$ac_ext
30627 LIBS=$ac_check_lib_save_LIBS
30629 { echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
30630 echo "${ECHO_T}$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
30631 if test $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options = yes; then
30633     if test "${ac_cv_header_pango_pango_h+set}" = set; then
30634   { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
30635 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
30636 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30637   echo $ECHO_N "(cached) $ECHO_C" >&6
30639 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
30640 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
30641 else
30642   # Is the header compilable?
30643 { echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
30644 echo $ECHO_N "checking pango/pango.h usability... $ECHO_C" >&6; }
30645 cat >conftest.$ac_ext <<_ACEOF
30646 /* confdefs.h.  */
30647 _ACEOF
30648 cat confdefs.h >>conftest.$ac_ext
30649 cat >>conftest.$ac_ext <<_ACEOF
30650 /* end confdefs.h.  */
30651 $ac_includes_default
30652 #include <pango/pango.h>
30653 _ACEOF
30654 rm -f conftest.$ac_objext
30655 if { (ac_try="$ac_compile"
30656 case "(($ac_try" in
30657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658   *) ac_try_echo=$ac_try;;
30659 esac
30660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661   (eval "$ac_compile") 2>conftest.er1
30662   ac_status=$?
30663   grep -v '^ *+' conftest.er1 >conftest.err
30664   rm -f conftest.er1
30665   cat conftest.err >&5
30666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667   (exit $ac_status); } && {
30668          test -z "$ac_c_werror_flag" ||
30669          test ! -s conftest.err
30670        } && test -s conftest.$ac_objext; then
30671   ac_header_compiler=yes
30672 else
30673   echo "$as_me: failed program was:" >&5
30674 sed 's/^/| /' conftest.$ac_ext >&5
30676         ac_header_compiler=no
30679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30681 echo "${ECHO_T}$ac_header_compiler" >&6; }
30683 # Is the header present?
30684 { echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
30685 echo $ECHO_N "checking pango/pango.h presence... $ECHO_C" >&6; }
30686 cat >conftest.$ac_ext <<_ACEOF
30687 /* confdefs.h.  */
30688 _ACEOF
30689 cat confdefs.h >>conftest.$ac_ext
30690 cat >>conftest.$ac_ext <<_ACEOF
30691 /* end confdefs.h.  */
30692 #include <pango/pango.h>
30693 _ACEOF
30694 if { (ac_try="$ac_cpp conftest.$ac_ext"
30695 case "(($ac_try" in
30696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30697   *) ac_try_echo=$ac_try;;
30698 esac
30699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30700   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30701   ac_status=$?
30702   grep -v '^ *+' conftest.er1 >conftest.err
30703   rm -f conftest.er1
30704   cat conftest.err >&5
30705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706   (exit $ac_status); } >/dev/null && {
30707          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30708          test ! -s conftest.err
30709        }; then
30710   ac_header_preproc=yes
30711 else
30712   echo "$as_me: failed program was:" >&5
30713 sed 's/^/| /' conftest.$ac_ext >&5
30715   ac_header_preproc=no
30718 rm -f conftest.err conftest.$ac_ext
30719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30720 echo "${ECHO_T}$ac_header_preproc" >&6; }
30722 # So?  What about this header?
30723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30724   yes:no: )
30725     { echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
30726 echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30727     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
30728 echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
30729     ac_header_preproc=yes
30730     ;;
30731   no:yes:* )
30732     { echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
30733 echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
30734     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
30735 echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
30736     { echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
30737 echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
30738     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
30739 echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30740     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
30741 echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
30742     { echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
30743 echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
30745     ;;
30746 esac
30747 { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
30748 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
30749 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30750   echo $ECHO_N "(cached) $ECHO_C" >&6
30751 else
30752   ac_cv_header_pango_pango_h=$ac_header_preproc
30754 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
30755 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
30758 if test $ac_cv_header_pango_pango_h = yes; then
30759   LIBS="-lpango-1.0 ${LIBS}";EX_CHECK_STATE=YES
30765  if test $EX_CHECK_STATE = NO; then
30766         for ac_prog in pkg-config
30768   # Extract the first word of "$ac_prog", so it can be a program name with args.
30769 set dummy $ac_prog; ac_word=$2
30770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30772 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
30773   echo $ECHO_N "(cached) $ECHO_C" >&6
30774 else
30775   if test -n "$PKGCONFIG"; then
30776   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
30777 else
30778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30779 for as_dir in $PATH
30781   IFS=$as_save_IFS
30782   test -z "$as_dir" && as_dir=.
30783   for ac_exec_ext in '' $ac_executable_extensions; do
30784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30785     ac_cv_prog_PKGCONFIG="$ac_prog"
30786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30787     break 2
30788   fi
30789 done
30790 done
30791 IFS=$as_save_IFS
30795 PKGCONFIG=$ac_cv_prog_PKGCONFIG
30796 if test -n "$PKGCONFIG"; then
30797   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
30798 echo "${ECHO_T}$PKGCONFIG" >&6; }
30799 else
30800   { echo "$as_me:$LINENO: result: no" >&5
30801 echo "${ECHO_T}no" >&6; }
30805   test -n "$PKGCONFIG" && break
30806 done
30807 test -n "$PKGCONFIG" || PKGCONFIG="no"
30809     if test "$PKGCONFIG" != "no"; then
30810           if $PKGCONFIG --exists pangocairo; then
30811              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags pangocairo`
30812              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L pangocairo`
30813              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other pangocairo`
30814              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l pangocairo`
30815                              unset ac_cv_lib_`echo pango-1.0 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_pango_cairo_context_set_font_options
30816              { echo "$as_me:$LINENO: checking for pango_cairo_context_set_font_options in -lpango-1.0" >&5
30817 echo $ECHO_N "checking for pango_cairo_context_set_font_options in -lpango-1.0... $ECHO_C" >&6; }
30818 if test "${ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options+set}" = set; then
30819   echo $ECHO_N "(cached) $ECHO_C" >&6
30820 else
30821   ac_check_lib_save_LIBS=$LIBS
30822 LIBS="-lpango-1.0  $LIBS"
30823 cat >conftest.$ac_ext <<_ACEOF
30824 /* confdefs.h.  */
30825 _ACEOF
30826 cat confdefs.h >>conftest.$ac_ext
30827 cat >>conftest.$ac_ext <<_ACEOF
30828 /* end confdefs.h.  */
30830 /* Override any GCC internal prototype to avoid an error.
30831    Use char because int might match the return type of a GCC
30832    builtin and then its argument prototype would still apply.  */
30833 #ifdef __cplusplus
30834 extern "C"
30835 #endif
30836 char pango_cairo_context_set_font_options ();
30837 int
30838 main ()
30840 return pango_cairo_context_set_font_options ();
30841   ;
30842   return 0;
30844 _ACEOF
30845 rm -f conftest.$ac_objext conftest$ac_exeext
30846 if { (ac_try="$ac_link"
30847 case "(($ac_try" in
30848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30849   *) ac_try_echo=$ac_try;;
30850 esac
30851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30852   (eval "$ac_link") 2>conftest.er1
30853   ac_status=$?
30854   grep -v '^ *+' conftest.er1 >conftest.err
30855   rm -f conftest.er1
30856   cat conftest.err >&5
30857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30858   (exit $ac_status); } && {
30859          test -z "$ac_c_werror_flag" ||
30860          test ! -s conftest.err
30861        } && test -s conftest$ac_exeext &&
30862        $as_test_x conftest$ac_exeext; then
30863   ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=yes
30864 else
30865   echo "$as_me: failed program was:" >&5
30866 sed 's/^/| /' conftest.$ac_ext >&5
30868         ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options=no
30871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30872       conftest$ac_exeext conftest.$ac_ext
30873 LIBS=$ac_check_lib_save_LIBS
30875 { echo "$as_me:$LINENO: result: $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&5
30876 echo "${ECHO_T}$ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options" >&6; }
30877 if test $ac_cv_lib_pango_1_0_pango_cairo_context_set_font_options = yes; then
30879                  unset ac_cv_header_`echo pango/pango.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
30880                  if test "${ac_cv_header_pango_pango_h+set}" = set; then
30881   { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
30882 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
30883 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30884   echo $ECHO_N "(cached) $ECHO_C" >&6
30886 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
30887 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
30888 else
30889   # Is the header compilable?
30890 { echo "$as_me:$LINENO: checking pango/pango.h usability" >&5
30891 echo $ECHO_N "checking pango/pango.h usability... $ECHO_C" >&6; }
30892 cat >conftest.$ac_ext <<_ACEOF
30893 /* confdefs.h.  */
30894 _ACEOF
30895 cat confdefs.h >>conftest.$ac_ext
30896 cat >>conftest.$ac_ext <<_ACEOF
30897 /* end confdefs.h.  */
30898 $ac_includes_default
30899 #include <pango/pango.h>
30900 _ACEOF
30901 rm -f conftest.$ac_objext
30902 if { (ac_try="$ac_compile"
30903 case "(($ac_try" in
30904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905   *) ac_try_echo=$ac_try;;
30906 esac
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908   (eval "$ac_compile") 2>conftest.er1
30909   ac_status=$?
30910   grep -v '^ *+' conftest.er1 >conftest.err
30911   rm -f conftest.er1
30912   cat conftest.err >&5
30913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914   (exit $ac_status); } && {
30915          test -z "$ac_c_werror_flag" ||
30916          test ! -s conftest.err
30917        } && test -s conftest.$ac_objext; then
30918   ac_header_compiler=yes
30919 else
30920   echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30923         ac_header_compiler=no
30926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30928 echo "${ECHO_T}$ac_header_compiler" >&6; }
30930 # Is the header present?
30931 { echo "$as_me:$LINENO: checking pango/pango.h presence" >&5
30932 echo $ECHO_N "checking pango/pango.h presence... $ECHO_C" >&6; }
30933 cat >conftest.$ac_ext <<_ACEOF
30934 /* confdefs.h.  */
30935 _ACEOF
30936 cat confdefs.h >>conftest.$ac_ext
30937 cat >>conftest.$ac_ext <<_ACEOF
30938 /* end confdefs.h.  */
30939 #include <pango/pango.h>
30940 _ACEOF
30941 if { (ac_try="$ac_cpp conftest.$ac_ext"
30942 case "(($ac_try" in
30943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30944   *) ac_try_echo=$ac_try;;
30945 esac
30946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30947   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30948   ac_status=$?
30949   grep -v '^ *+' conftest.er1 >conftest.err
30950   rm -f conftest.er1
30951   cat conftest.err >&5
30952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953   (exit $ac_status); } >/dev/null && {
30954          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30955          test ! -s conftest.err
30956        }; then
30957   ac_header_preproc=yes
30958 else
30959   echo "$as_me: failed program was:" >&5
30960 sed 's/^/| /' conftest.$ac_ext >&5
30962   ac_header_preproc=no
30965 rm -f conftest.err conftest.$ac_ext
30966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30967 echo "${ECHO_T}$ac_header_preproc" >&6; }
30969 # So?  What about this header?
30970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30971   yes:no: )
30972     { echo "$as_me:$LINENO: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&5
30973 echo "$as_me: WARNING: pango/pango.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30974     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the compiler's result" >&5
30975 echo "$as_me: WARNING: pango/pango.h: proceeding with the compiler's result" >&2;}
30976     ac_header_preproc=yes
30977     ;;
30978   no:yes:* )
30979     { echo "$as_me:$LINENO: WARNING: pango/pango.h: present but cannot be compiled" >&5
30980 echo "$as_me: WARNING: pango/pango.h: present but cannot be compiled" >&2;}
30981     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&5
30982 echo "$as_me: WARNING: pango/pango.h:     check for missing prerequisite headers?" >&2;}
30983     { echo "$as_me:$LINENO: WARNING: pango/pango.h: see the Autoconf documentation" >&5
30984 echo "$as_me: WARNING: pango/pango.h: see the Autoconf documentation" >&2;}
30985     { echo "$as_me:$LINENO: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&5
30986 echo "$as_me: WARNING: pango/pango.h:     section \"Present But Cannot Be Compiled\"" >&2;}
30987     { echo "$as_me:$LINENO: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&5
30988 echo "$as_me: WARNING: pango/pango.h: proceeding with the preprocessor's result" >&2;}
30989     { echo "$as_me:$LINENO: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&5
30990 echo "$as_me: WARNING: pango/pango.h: in the future, the compiler will take precedence" >&2;}
30992     ;;
30993 esac
30994 { echo "$as_me:$LINENO: checking for pango/pango.h" >&5
30995 echo $ECHO_N "checking for pango/pango.h... $ECHO_C" >&6; }
30996 if test "${ac_cv_header_pango_pango_h+set}" = set; then
30997   echo $ECHO_N "(cached) $ECHO_C" >&6
30998 else
30999   ac_cv_header_pango_pango_h=$ac_header_preproc
31001 { echo "$as_me:$LINENO: result: $ac_cv_header_pango_pango_h" >&5
31002 echo "${ECHO_T}$ac_cv_header_pango_pango_h" >&6; }
31005 if test $ac_cv_header_pango_pango_h = yes; then
31006   EX_CHECK_STATE=YES
31013           else
31014              { echo "$as_me:$LINENO: WARNING:
31015 ----------------------------------------------------------------------------
31016 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
31017   You may want to set the PKG_CONFIG_PATH variable to point to its
31018   location.
31019 ----------------------------------------------------------------------------
31020                         " >&5
31021 echo "$as_me: WARNING:
31022 ----------------------------------------------------------------------------
31023 * I found a copy of pkgconfig, but there is no pangocairo.pc file around.
31024   You may want to set the PKG_CONFIG_PATH variable to point to its
31025   location.
31026 ----------------------------------------------------------------------------
31027                         " >&2;}
31028            fi
31029      fi
31030   fi
31032   if test ${EX_CHECK_STATE} = NO; then
31033      { echo "$as_me:$LINENO: WARNING:
31034 ----------------------------------------------------------------------------
31035 * I could not find a working copy of pangocairo. Check config.log for hints on why
31036   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31037   so that compiler and the linker can find libpango-1.0 and its header files. If
31038   you have not installed pangocairo, you can get it either from its original home on
31040      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
31042   You can find also find an archive copy on
31044      http://oss.oetiker.ch/rrdtool/pub/libs
31046   The last tested version of pangocairo is 1.17.
31048        LIBS=$LIBS
31049    LDFLAGS=$LDFLAGS
31050   CPPFLAGS=$CPPFLAGS
31052 ----------------------------------------------------------------------------
31053                 " >&5
31054 echo "$as_me: WARNING:
31055 ----------------------------------------------------------------------------
31056 * I could not find a working copy of pangocairo. Check config.log for hints on why
31057   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31058   so that compiler and the linker can find libpango-1.0 and its header files. If
31059   you have not installed pangocairo, you can get it either from its original home on
31061      http://ftp.gnome.org/pub/GNOME/sources/pango/1.17
31063   You can find also find an archive copy on
31065      http://oss.oetiker.ch/rrdtool/pub/libs
31067   The last tested version of pangocairo is 1.17.
31069        LIBS=$LIBS
31070    LDFLAGS=$LDFLAGS
31071   CPPFLAGS=$CPPFLAGS
31073 ----------------------------------------------------------------------------
31074                 " >&2;}
31075        EX_CHECK_ALL_ERR=YES
31076        LIBS="${ex_check_save_LIBS}"
31077        CPPFLAGS="${ex_check_save_CPPFLAGS}"
31078        LDFLAGS="${ex_check_save_LDFLAGS}"
31079     fi
31080     ac_ext=c
31081 ac_cpp='$CPP $CPPFLAGS'
31082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31089  ac_ext=c
31090 ac_cpp='$CPP $CPPFLAGS'
31091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31095  EX_CHECK_STATE=NO
31096  ex_check_save_LIBS=${LIBS}
31097  ex_check_save_CPPFLAGS=${CPPFLAGS}
31098  ex_check_save_LDFLAGS=${LDFLAGS}
31099  if test "x/usr/include/libxml2" != "x"; then
31100    CPPFLAGS="$CPPFLAGS -I/usr/include/libxml2"
31101  fi
31102   { echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
31103 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6; }
31104 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
31105   echo $ECHO_N "(cached) $ECHO_C" >&6
31106 else
31107   ac_check_lib_save_LIBS=$LIBS
31108 LIBS="-lxml2  $LIBS"
31109 cat >conftest.$ac_ext <<_ACEOF
31110 /* confdefs.h.  */
31111 _ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h.  */
31116 /* Override any GCC internal prototype to avoid an error.
31117    Use char because int might match the return type of a GCC
31118    builtin and then its argument prototype would still apply.  */
31119 #ifdef __cplusplus
31120 extern "C"
31121 #endif
31122 char xmlParseFile ();
31123 int
31124 main ()
31126 return xmlParseFile ();
31127   ;
31128   return 0;
31130 _ACEOF
31131 rm -f conftest.$ac_objext conftest$ac_exeext
31132 if { (ac_try="$ac_link"
31133 case "(($ac_try" in
31134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31135   *) ac_try_echo=$ac_try;;
31136 esac
31137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31138   (eval "$ac_link") 2>conftest.er1
31139   ac_status=$?
31140   grep -v '^ *+' conftest.er1 >conftest.err
31141   rm -f conftest.er1
31142   cat conftest.err >&5
31143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144   (exit $ac_status); } && {
31145          test -z "$ac_c_werror_flag" ||
31146          test ! -s conftest.err
31147        } && test -s conftest$ac_exeext &&
31148        $as_test_x conftest$ac_exeext; then
31149   ac_cv_lib_xml2_xmlParseFile=yes
31150 else
31151   echo "$as_me: failed program was:" >&5
31152 sed 's/^/| /' conftest.$ac_ext >&5
31154         ac_cv_lib_xml2_xmlParseFile=no
31157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31158       conftest$ac_exeext conftest.$ac_ext
31159 LIBS=$ac_check_lib_save_LIBS
31161 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
31162 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6; }
31163 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
31165     if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31166   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31167 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31168 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31169   echo $ECHO_N "(cached) $ECHO_C" >&6
31171 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31172 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31173 else
31174   # Is the header compilable?
31175 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
31176 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
31177 cat >conftest.$ac_ext <<_ACEOF
31178 /* confdefs.h.  */
31179 _ACEOF
31180 cat confdefs.h >>conftest.$ac_ext
31181 cat >>conftest.$ac_ext <<_ACEOF
31182 /* end confdefs.h.  */
31183 $ac_includes_default
31184 #include <libxml/parser.h>
31185 _ACEOF
31186 rm -f conftest.$ac_objext
31187 if { (ac_try="$ac_compile"
31188 case "(($ac_try" in
31189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190   *) ac_try_echo=$ac_try;;
31191 esac
31192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193   (eval "$ac_compile") 2>conftest.er1
31194   ac_status=$?
31195   grep -v '^ *+' conftest.er1 >conftest.err
31196   rm -f conftest.er1
31197   cat conftest.err >&5
31198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31199   (exit $ac_status); } && {
31200          test -z "$ac_c_werror_flag" ||
31201          test ! -s conftest.err
31202        } && test -s conftest.$ac_objext; then
31203   ac_header_compiler=yes
31204 else
31205   echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31208         ac_header_compiler=no
31211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31213 echo "${ECHO_T}$ac_header_compiler" >&6; }
31215 # Is the header present?
31216 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
31217 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
31218 cat >conftest.$ac_ext <<_ACEOF
31219 /* confdefs.h.  */
31220 _ACEOF
31221 cat confdefs.h >>conftest.$ac_ext
31222 cat >>conftest.$ac_ext <<_ACEOF
31223 /* end confdefs.h.  */
31224 #include <libxml/parser.h>
31225 _ACEOF
31226 if { (ac_try="$ac_cpp conftest.$ac_ext"
31227 case "(($ac_try" in
31228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229   *) ac_try_echo=$ac_try;;
31230 esac
31231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31233   ac_status=$?
31234   grep -v '^ *+' conftest.er1 >conftest.err
31235   rm -f conftest.er1
31236   cat conftest.err >&5
31237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238   (exit $ac_status); } >/dev/null && {
31239          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31240          test ! -s conftest.err
31241        }; then
31242   ac_header_preproc=yes
31243 else
31244   echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.$ac_ext >&5
31247   ac_header_preproc=no
31250 rm -f conftest.err conftest.$ac_ext
31251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31252 echo "${ECHO_T}$ac_header_preproc" >&6; }
31254 # So?  What about this header?
31255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31256   yes:no: )
31257     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
31258 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31259     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
31260 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
31261     ac_header_preproc=yes
31262     ;;
31263   no:yes:* )
31264     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
31265 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
31266     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
31267 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
31268     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
31269 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
31270     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
31271 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31272     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
31273 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
31274     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
31275 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
31277     ;;
31278 esac
31279 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31280 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31281 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31282   echo $ECHO_N "(cached) $ECHO_C" >&6
31283 else
31284   ac_cv_header_libxml_parser_h=$ac_header_preproc
31286 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31287 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31290 if test $ac_cv_header_libxml_parser_h = yes; then
31291   LIBS="-lxml2 ${LIBS}";EX_CHECK_STATE=YES
31297  if test $EX_CHECK_STATE = NO; then
31298         for ac_prog in pkg-config
31300   # Extract the first word of "$ac_prog", so it can be a program name with args.
31301 set dummy $ac_prog; ac_word=$2
31302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31304 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then
31305   echo $ECHO_N "(cached) $ECHO_C" >&6
31306 else
31307   if test -n "$PKGCONFIG"; then
31308   ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
31309 else
31310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31311 for as_dir in $PATH
31313   IFS=$as_save_IFS
31314   test -z "$as_dir" && as_dir=.
31315   for ac_exec_ext in '' $ac_executable_extensions; do
31316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31317     ac_cv_prog_PKGCONFIG="$ac_prog"
31318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31319     break 2
31320   fi
31321 done
31322 done
31323 IFS=$as_save_IFS
31327 PKGCONFIG=$ac_cv_prog_PKGCONFIG
31328 if test -n "$PKGCONFIG"; then
31329   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
31330 echo "${ECHO_T}$PKGCONFIG" >&6; }
31331 else
31332   { echo "$as_me:$LINENO: result: no" >&5
31333 echo "${ECHO_T}no" >&6; }
31337   test -n "$PKGCONFIG" && break
31338 done
31339 test -n "$PKGCONFIG" || PKGCONFIG="no"
31341     if test "$PKGCONFIG" != "no"; then
31342           if $PKGCONFIG --exists libxml-2.0; then
31343              CPPFLAGS=${CPPFLAGS}" "`$PKGCONFIG --cflags libxml-2.0`
31344              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-L libxml-2.0`
31345              LDFLAGS=${LDFLAGS}" "`$PKGCONFIG --libs-only-other libxml-2.0`
31346              LIBS=${LIBS}" "`$PKGCONFIG --libs-only-l libxml-2.0`
31347                              unset ac_cv_lib_`echo xml2 | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`_xmlParseFile
31348              { echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
31349 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6; }
31350 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
31351   echo $ECHO_N "(cached) $ECHO_C" >&6
31352 else
31353   ac_check_lib_save_LIBS=$LIBS
31354 LIBS="-lxml2  $LIBS"
31355 cat >conftest.$ac_ext <<_ACEOF
31356 /* confdefs.h.  */
31357 _ACEOF
31358 cat confdefs.h >>conftest.$ac_ext
31359 cat >>conftest.$ac_ext <<_ACEOF
31360 /* end confdefs.h.  */
31362 /* Override any GCC internal prototype to avoid an error.
31363    Use char because int might match the return type of a GCC
31364    builtin and then its argument prototype would still apply.  */
31365 #ifdef __cplusplus
31366 extern "C"
31367 #endif
31368 char xmlParseFile ();
31369 int
31370 main ()
31372 return xmlParseFile ();
31373   ;
31374   return 0;
31376 _ACEOF
31377 rm -f conftest.$ac_objext conftest$ac_exeext
31378 if { (ac_try="$ac_link"
31379 case "(($ac_try" in
31380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31381   *) ac_try_echo=$ac_try;;
31382 esac
31383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31384   (eval "$ac_link") 2>conftest.er1
31385   ac_status=$?
31386   grep -v '^ *+' conftest.er1 >conftest.err
31387   rm -f conftest.er1
31388   cat conftest.err >&5
31389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390   (exit $ac_status); } && {
31391          test -z "$ac_c_werror_flag" ||
31392          test ! -s conftest.err
31393        } && test -s conftest$ac_exeext &&
31394        $as_test_x conftest$ac_exeext; then
31395   ac_cv_lib_xml2_xmlParseFile=yes
31396 else
31397   echo "$as_me: failed program was:" >&5
31398 sed 's/^/| /' conftest.$ac_ext >&5
31400         ac_cv_lib_xml2_xmlParseFile=no
31403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31404       conftest$ac_exeext conftest.$ac_ext
31405 LIBS=$ac_check_lib_save_LIBS
31407 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
31408 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6; }
31409 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
31411                  unset ac_cv_header_`echo libxml/parser.h | sed 's/[^_a-zA-Z0-9]/_/g;s/^[0-9]/_/'`
31412                  if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31413   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31414 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31415 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31416   echo $ECHO_N "(cached) $ECHO_C" >&6
31418 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31419 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31420 else
31421   # Is the header compilable?
31422 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
31423 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
31424 cat >conftest.$ac_ext <<_ACEOF
31425 /* confdefs.h.  */
31426 _ACEOF
31427 cat confdefs.h >>conftest.$ac_ext
31428 cat >>conftest.$ac_ext <<_ACEOF
31429 /* end confdefs.h.  */
31430 $ac_includes_default
31431 #include <libxml/parser.h>
31432 _ACEOF
31433 rm -f conftest.$ac_objext
31434 if { (ac_try="$ac_compile"
31435 case "(($ac_try" in
31436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437   *) ac_try_echo=$ac_try;;
31438 esac
31439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440   (eval "$ac_compile") 2>conftest.er1
31441   ac_status=$?
31442   grep -v '^ *+' conftest.er1 >conftest.err
31443   rm -f conftest.er1
31444   cat conftest.err >&5
31445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446   (exit $ac_status); } && {
31447          test -z "$ac_c_werror_flag" ||
31448          test ! -s conftest.err
31449        } && test -s conftest.$ac_objext; then
31450   ac_header_compiler=yes
31451 else
31452   echo "$as_me: failed program was:" >&5
31453 sed 's/^/| /' conftest.$ac_ext >&5
31455         ac_header_compiler=no
31458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31460 echo "${ECHO_T}$ac_header_compiler" >&6; }
31462 # Is the header present?
31463 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
31464 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
31465 cat >conftest.$ac_ext <<_ACEOF
31466 /* confdefs.h.  */
31467 _ACEOF
31468 cat confdefs.h >>conftest.$ac_ext
31469 cat >>conftest.$ac_ext <<_ACEOF
31470 /* end confdefs.h.  */
31471 #include <libxml/parser.h>
31472 _ACEOF
31473 if { (ac_try="$ac_cpp conftest.$ac_ext"
31474 case "(($ac_try" in
31475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31476   *) ac_try_echo=$ac_try;;
31477 esac
31478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31480   ac_status=$?
31481   grep -v '^ *+' conftest.er1 >conftest.err
31482   rm -f conftest.er1
31483   cat conftest.err >&5
31484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485   (exit $ac_status); } >/dev/null && {
31486          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31487          test ! -s conftest.err
31488        }; then
31489   ac_header_preproc=yes
31490 else
31491   echo "$as_me: failed program was:" >&5
31492 sed 's/^/| /' conftest.$ac_ext >&5
31494   ac_header_preproc=no
31497 rm -f conftest.err conftest.$ac_ext
31498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31499 echo "${ECHO_T}$ac_header_preproc" >&6; }
31501 # So?  What about this header?
31502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31503   yes:no: )
31504     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
31505 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31506     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
31507 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
31508     ac_header_preproc=yes
31509     ;;
31510   no:yes:* )
31511     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
31512 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
31513     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
31514 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
31515     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
31516 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
31517     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
31518 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
31519     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
31520 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
31521     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
31522 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
31524     ;;
31525 esac
31526 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
31527 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
31528 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
31529   echo $ECHO_N "(cached) $ECHO_C" >&6
31530 else
31531   ac_cv_header_libxml_parser_h=$ac_header_preproc
31533 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
31534 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
31537 if test $ac_cv_header_libxml_parser_h = yes; then
31538   EX_CHECK_STATE=YES
31545           else
31546              { echo "$as_me:$LINENO: WARNING:
31547 ----------------------------------------------------------------------------
31548 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
31549   You may want to set the PKG_CONFIG_PATH variable to point to its
31550   location.
31551 ----------------------------------------------------------------------------
31552                         " >&5
31553 echo "$as_me: WARNING:
31554 ----------------------------------------------------------------------------
31555 * I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
31556   You may want to set the PKG_CONFIG_PATH variable to point to its
31557   location.
31558 ----------------------------------------------------------------------------
31559                         " >&2;}
31560            fi
31561      fi
31562   fi
31564   if test ${EX_CHECK_STATE} = NO; then
31565      { echo "$as_me:$LINENO: WARNING:
31566 ----------------------------------------------------------------------------
31567 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
31568   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31569   so that compiler and the linker can find libxml2 and its header files. If
31570   you have not installed libxml-2.0, you can get it either from its original home on
31572      http://xmlsoft.org/downloads.html
31574   You can find also find an archive copy on
31576      http://oss.oetiker.ch/rrdtool/pub/libs
31578   The last tested version of libxml-2.0 is 2.6.31.
31580        LIBS=$LIBS
31581    LDFLAGS=$LDFLAGS
31582   CPPFLAGS=$CPPFLAGS
31584 ----------------------------------------------------------------------------
31585                 " >&5
31586 echo "$as_me: WARNING:
31587 ----------------------------------------------------------------------------
31588 * I could not find a working copy of libxml-2.0. Check config.log for hints on why
31589   this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
31590   so that compiler and the linker can find libxml2 and its header files. If
31591   you have not installed libxml-2.0, you can get it either from its original home on
31593      http://xmlsoft.org/downloads.html
31595   You can find also find an archive copy on
31597      http://oss.oetiker.ch/rrdtool/pub/libs
31599   The last tested version of libxml-2.0 is 2.6.31.
31601        LIBS=$LIBS
31602    LDFLAGS=$LDFLAGS
31603   CPPFLAGS=$CPPFLAGS
31605 ----------------------------------------------------------------------------
31606                 " >&2;}
31607        EX_CHECK_ALL_ERR=YES
31608        LIBS="${ex_check_save_LIBS}"
31609        CPPFLAGS="${ex_check_save_CPPFLAGS}"
31610        LDFLAGS="${ex_check_save_LDFLAGS}"
31611     fi
31612     ac_ext=c
31613 ac_cpp='$CPP $CPPFLAGS'
31614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31621 if test "$EX_CHECK_ALL_ERR" = "YES"; then
31622   { { echo "$as_me:$LINENO: error: Please fix the library issues listed above and try again." >&5
31623 echo "$as_me: error: Please fix the library issues listed above and try again." >&2;}
31624    { (exit 1); exit 1; }; }
31627 ALL_LIBS="$LIBS"
31628 LIBS=
31634 case $TERM in
31635        #   for the most important terminal types we directly know the sequences
31636        xterm|xterm*|vt220|vt220*)
31637                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
31638                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
31639        ;;
31640        vt100|vt100*|cygwin)
31641                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
31642                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
31643        ;;
31644        *)
31645                T_MD=''
31646                T_ME=''
31647        ;;
31648 esac
31649   { echo "$as_me:$LINENO: result: " >&5
31650 echo "${ECHO_T}" >&6; }
31651   { echo "$as_me:$LINENO: result: ${T_MD}Prep for Building Language Bindings${T_ME}" >&5
31652 echo "${ECHO_T}${T_MD}Prep for Building Language Bindings${T_ME}" >&6; }
31655 PATH=$PATH:/usr/perl5/bin
31656 export PATH
31657 # Extract the first word of "perl", so it can be a program name with args.
31658 set dummy perl; ac_word=$2
31659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31661 if test "${ac_cv_path_PERL+set}" = set; then
31662   echo $ECHO_N "(cached) $ECHO_C" >&6
31663 else
31664   case $PERL in
31665   [\\/]* | ?:[\\/]*)
31666   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31667   ;;
31668   *)
31669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31670 for as_dir in $PATH
31672   IFS=$as_save_IFS
31673   test -z "$as_dir" && as_dir=.
31674   for ac_exec_ext in '' $ac_executable_extensions; do
31675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31676     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31678     break 2
31679   fi
31680 done
31681 done
31682 IFS=$as_save_IFS
31684   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
31685   ;;
31686 esac
31688 PERL=$ac_cv_path_PERL
31689 if test -n "$PERL"; then
31690   { echo "$as_me:$LINENO: result: $PERL" >&5
31691 echo "${ECHO_T}$PERL" >&6; }
31692 else
31693   { echo "$as_me:$LINENO: result: no" >&5
31694 echo "${ECHO_T}no" >&6; }
31698 # Extract the first word of "pod2man", so it can be a program name with args.
31699 set dummy pod2man; ac_word=$2
31700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31702 if test "${ac_cv_path_POD2MAN+set}" = set; then
31703   echo $ECHO_N "(cached) $ECHO_C" >&6
31704 else
31705   case $POD2MAN in
31706   [\\/]* | ?:[\\/]*)
31707   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
31708   ;;
31709   *)
31710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31711 for as_dir in $PATH
31713   IFS=$as_save_IFS
31714   test -z "$as_dir" && as_dir=.
31715   for ac_exec_ext in '' $ac_executable_extensions; do
31716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31717     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
31718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31719     break 2
31720   fi
31721 done
31722 done
31723 IFS=$as_save_IFS
31725   test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
31726   ;;
31727 esac
31729 POD2MAN=$ac_cv_path_POD2MAN
31730 if test -n "$POD2MAN"; then
31731   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
31732 echo "${ECHO_T}$POD2MAN" >&6; }
31733 else
31734   { echo "$as_me:$LINENO: result: no" >&5
31735 echo "${ECHO_T}no" >&6; }
31739 # Extract the first word of "pod2html", so it can be a program name with args.
31740 set dummy pod2html; ac_word=$2
31741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31743 if test "${ac_cv_path_POD2HTML+set}" = set; then
31744   echo $ECHO_N "(cached) $ECHO_C" >&6
31745 else
31746   case $POD2HTML in
31747   [\\/]* | ?:[\\/]*)
31748   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
31749   ;;
31750   *)
31751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31752 for as_dir in $PATH
31754   IFS=$as_save_IFS
31755   test -z "$as_dir" && as_dir=.
31756   for ac_exec_ext in '' $ac_executable_extensions; do
31757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31758     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
31759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31760     break 2
31761   fi
31762 done
31763 done
31764 IFS=$as_save_IFS
31766   test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="no"
31767   ;;
31768 esac
31770 POD2HTML=$ac_cv_path_POD2HTML
31771 if test -n "$POD2HTML"; then
31772   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
31773 echo "${ECHO_T}$POD2HTML" >&6; }
31774 else
31775   { echo "$as_me:$LINENO: result: no" >&5
31776 echo "${ECHO_T}no" >&6; }
31782 # Check whether --enable-perl was given.
31783 if test "${enable_perl+set}" = set; then
31784   enableval=$enable_perl;
31785 else
31786   enable_perl=yes
31796 if test "x$PERL" = "xno" -o  x$enable_perl = xno; then
31797         COMP_PERL=
31798 else
31799         COMP_PERL="perl_piped perl_shared"
31800         { echo "$as_me:$LINENO: checking for the perl version you are running" >&5
31801 echo $ECHO_N "checking for the perl version you are running... $ECHO_C" >&6; }
31802         PERL_VERSION=`$PERL -MConfig -e 'print $Config{version}'`
31803         { echo "$as_me:$LINENO: result: $PERL_VERSION" >&5
31804 echo "${ECHO_T}$PERL_VERSION" >&6; }
31805         if test -z "$PERLCC"; then
31806             { echo "$as_me:$LINENO: checking for the C compiler perl wants to use to build its modules" >&5
31807 echo $ECHO_N "checking for the C compiler perl wants to use to build its modules... $ECHO_C" >&6; }
31808             perlcc=`$PERL -MConfig -e 'print $Config{cc}'`
31809             { echo "$as_me:$LINENO: result: $perlcc" >&5
31810 echo "${ECHO_T}$perlcc" >&6; }
31811             if test ! -x "$perlcc"; then
31812                 # Extract the first word of "${perlcc}", so it can be a program name with args.
31813 set dummy ${perlcc}; ac_word=$2
31814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31816 if test "${ac_cv_path_PERL_CC+set}" = set; then
31817   echo $ECHO_N "(cached) $ECHO_C" >&6
31818 else
31819   case $PERL_CC in
31820   [\\/]* | ?:[\\/]*)
31821   ac_cv_path_PERL_CC="$PERL_CC" # Let the user override the test with a path.
31822   ;;
31823   *)
31824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31825 for as_dir in $PATH
31827   IFS=$as_save_IFS
31828   test -z "$as_dir" && as_dir=.
31829   for ac_exec_ext in '' $ac_executable_extensions; do
31830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31831     ac_cv_path_PERL_CC="$as_dir/$ac_word$ac_exec_ext"
31832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31833     break 2
31834   fi
31835 done
31836 done
31837 IFS=$as_save_IFS
31839   test -z "$ac_cv_path_PERL_CC" && ac_cv_path_PERL_CC="no"
31840   ;;
31841 esac
31843 PERL_CC=$ac_cv_path_PERL_CC
31844 if test -n "$PERL_CC"; then
31845   { echo "$as_me:$LINENO: result: $PERL_CC" >&5
31846 echo "${ECHO_T}$PERL_CC" >&6; }
31847 else
31848   { echo "$as_me:$LINENO: result: no" >&5
31849 echo "${ECHO_T}no" >&6; }
31853                 if test "$PERL_CC" = "no"; then
31854                     { echo "$as_me:$LINENO: WARNING:
31855 I would not find the Compiler ($perlcc) that was originally used to compile
31856 your perl binary. You should either make sure that this compiler is
31857 available on your system, pick an other compiler and set PERLCC
31858 appropriately, or use a different perl setup that was compiled locally.
31860 I will disable the compilation of the RRDs perl module for now.
31861 " >&5
31862 echo "$as_me: WARNING:
31863 I would not find the Compiler ($perlcc) that was originally used to compile
31864 your perl binary. You should either make sure that this compiler is
31865 available on your system, pick an other compiler and set PERLCC
31866 appropriately, or use a different perl setup that was compiled locally.
31868 I will disable the compilation of the RRDs perl module for now.
31869 " >&2;}
31870                     COMP_PERL="perl_piped"
31871                 fi
31872             fi
31873         fi
31876 { echo "$as_me:$LINENO: checking Perl Modules to build" >&5
31877 echo $ECHO_N "checking Perl Modules to build... $ECHO_C" >&6; }
31878 { echo "$as_me:$LINENO: result: ${COMP_PERL:-No Perl Modules will be built}" >&5
31879 echo "${ECHO_T}${COMP_PERL:-No Perl Modules will be built}" >&6; }
31881 # Options to pass when configuring perl module
31882 ppref=$prefix
31883 test "$ppref" = "NONE" && ppref=$ac_default_prefix
31885 PERL_MAKE_OPTIONS="PREFIX=$ppref LIB=$ppref/lib/perl/$PERL_VERSION"
31887 # Check whether --enable-perl-site-install was given.
31888 if test "${enable_perl_site_install+set}" = set; then
31889   enableval=$enable_perl_site_install; PERL_MAKE_OPTIONS=
31893 if test ! -z "$PERLCC"; then
31894    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CC=$PERLCC"
31896    if test ! -z "$PERLCCFLAGS"; then
31897        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS CCFLAGS=$PERLCCFLAGS"
31898    fi
31900    if test -z "$PERLLD"; then
31901        PERLLD=$PERLCC
31902    fi
31903    PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LD=$PERLLD"
31905    if test ! -z "$PERLLDFLAGS"; then
31906        PERL_MAKE_OPTIONS="$PERL_MAKE_OPTIONS LDFLAGS=$PERLLDFLAGS"
31907    fi
31911 # Check whether --with-perl-options was given.
31912 if test "${with_perl_options+set}" = set; then
31913   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
31922 # Extract the first word of "ruby", so it can be a program name with args.
31923 set dummy ruby; ac_word=$2
31924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31926 if test "${ac_cv_path_RUBY+set}" = set; then
31927   echo $ECHO_N "(cached) $ECHO_C" >&6
31928 else
31929   case $RUBY in
31930   [\\/]* | ?:[\\/]*)
31931   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
31932   ;;
31933   *)
31934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31935 for as_dir in $PATH
31937   IFS=$as_save_IFS
31938   test -z "$as_dir" && as_dir=.
31939   for ac_exec_ext in '' $ac_executable_extensions; do
31940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31941     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
31942     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31943     break 2
31944   fi
31945 done
31946 done
31947 IFS=$as_save_IFS
31949   test -z "$ac_cv_path_RUBY" && ac_cv_path_RUBY="no"
31950   ;;
31951 esac
31953 RUBY=$ac_cv_path_RUBY
31954 if test -n "$RUBY"; then
31955   { echo "$as_me:$LINENO: result: $RUBY" >&5
31956 echo "${ECHO_T}$RUBY" >&6; }
31957 else
31958   { echo "$as_me:$LINENO: result: no" >&5
31959 echo "${ECHO_T}no" >&6; }
31964 # Check whether --enable-ruby was given.
31965 if test "${enable_ruby+set}" = set; then
31966   enableval=$enable_ruby;
31967 else
31968   enable_ruby=yes
31972 { echo "$as_me:$LINENO: checking if ruby modules can be built" >&5
31973 echo $ECHO_N "checking if ruby modules can be built... $ECHO_C" >&6; }
31975 if test "x$RUBY" = "xno" -o  x$enable_ruby = xno; then
31976         COMP_RUBY=
31977         { echo "$as_me:$LINENO: result: No .. Ruby not found or disabled" >&5
31978 echo "${ECHO_T}No .. Ruby not found or disabled" >&6; }
31979 else
31980         if $RUBY -e 'require "mkmf"' >/dev/null 2>&1; then
31981                 COMP_RUBY="ruby"
31982                 { echo "$as_me:$LINENO: result: YES" >&5
31983 echo "${ECHO_T}YES" >&6; }
31984         else
31985                 COMP_RUBY=
31986                 { echo "$as_me:$LINENO: result: Ruby found but mkmf is missing! Install the -dev package" >&5
31987 echo "${ECHO_T}Ruby found but mkmf is missing! Install the -dev package" >&6; }
31988         fi
31992 # Check whether --enable-ruby-site-install was given.
31993 if test "${enable_ruby_site_install+set}" = set; then
31994   enableval=$enable_ruby_site_install; RUBY_MAKE_OPTIONS=
31995 else
31996   RUBY_MAKE_OPTIONS="sitedir="'$(DESTDIR)'"$prefix/lib/ruby"
32002 # Check whether --with-ruby-options was given.
32003 if test "${with_ruby_options+set}" = set; then
32004   withval=$with_ruby_options; RUBY_MAKE_OPTIONS=$withval
32013 enable_tcl_site=no
32015 # Check whether --enable-tcl was given.
32016 if test "${enable_tcl+set}" = set; then
32017   enableval=$enable_tcl;
32018 else
32019   enable_tcl=yes
32023 if test  "$enable_tcl" = "yes"; then
32024     withval=""
32026 # Check whether --with-tcllib was given.
32027 if test "${with_tcllib+set}" = set; then
32028   withval=$with_tcllib;
32031   enable_tcl=no
32032   for dir in $withval /usr/lib /usr/local/lib /usr/lib/tcl8.4 /usr/lib/tcl8.3 ; do
32033     { echo "$as_me:$LINENO: checking for tclConfig.sh in $dir" >&5
32034 echo $ECHO_N "checking for tclConfig.sh in $dir... $ECHO_C" >&6; }
32035     if test -f "$dir/tclConfig.sh" ; then
32036         tcl_config=$dir/tclConfig.sh
32037         enable_tcl=yes
32038         { echo "$as_me:$LINENO: result: yes" >&5
32039 echo "${ECHO_T}yes" >&6; }
32040         break
32041     else
32042         { echo "$as_me:$LINENO: result: no" >&5
32043 echo "${ECHO_T}no" >&6; }
32044     fi
32045   done
32047   if test "$enable_tcl" = "no"; then
32048         { echo "$as_me:$LINENO: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&5
32049 echo "$as_me: WARNING: tclConfig.sh not found - Tcl interface will not be built" >&2;}
32050   else
32051         . $tcl_config
32052         TCL_PACKAGE_DIR="$TCL_PACKAGE_PATH/tclrrd$VERSION"
32053         if test -n "$TCL_INC_DIR"; then
32054           TCL_INCLUDE_SPEC="$TCL_INCLUDE_SPEC -I$TCL_INC_DIR"
32055         fi
32056   fi
32057   # Check whether --enable-tcl was given.
32058 if test "${enable_tcl+set}" = set; then
32059   enableval=$enable_tcl;
32060 else
32061   enable_tcl_site=yes
32069 if test "$enable_tcl" = "yes" ; then
32070   BUILD_TCL_TRUE=
32071   BUILD_TCL_FALSE='#'
32072 else
32073   BUILD_TCL_TRUE='#'
32074   BUILD_TCL_FALSE=
32079 if test "$enable_tcl_site" = "yes" ; then
32080   BUILD_TCL_SITE_TRUE=
32081   BUILD_TCL_SITE_FALSE='#'
32082 else
32083   BUILD_TCL_SITE_TRUE='#'
32084   BUILD_TCL_SITE_FALSE=
32100 # Check whether --enable-python was given.
32101 if test "${enable_python+set}" = set; then
32102   enableval=$enable_python;
32103 else
32104   enable_python=yes
32108 if test  "$enable_python" = "yes"; then
32113         if test -n "$PYTHON"; then
32114       # If the user set $PYTHON, use it and don't search something else.
32115       { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
32116 echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
32117       prog="import sys, string
32118 # split strings by '.' and convert to numeric.  Append some zeros
32119 # because we need at least 4 digits for the hex conversion.
32120 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
32121 minverhex = 0
32122 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
32123 sys.exit(sys.hexversion < minverhex)"
32124   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
32125    ($PYTHON -c "$prog") >&5 2>&5
32126    ac_status=$?
32127    echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128    (exit $ac_status); }; then
32129   { echo "$as_me:$LINENO: result: yes" >&5
32130 echo "${ECHO_T}yes" >&6; }
32131 else
32132   { { echo "$as_me:$LINENO: error: too old" >&5
32133 echo "$as_me: error: too old" >&2;}
32134    { (exit 1); exit 1; }; }
32137       am_display_PYTHON=$PYTHON
32138     else
32139       # Otherwise, try each interpreter until we find one that satisfies
32140       # VERSION.
32141       { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
32142 echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
32143 if test "${am_cv_pathless_PYTHON+set}" = set; then
32144   echo $ECHO_N "(cached) $ECHO_C" >&6
32145 else
32147         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
32148           test "$am_cv_pathless_PYTHON" = none && break
32149           prog="import sys, string
32150 # split strings by '.' and convert to numeric.  Append some zeros
32151 # because we need at least 4 digits for the hex conversion.
32152 minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
32153 minverhex = 0
32154 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
32155 sys.exit(sys.hexversion < minverhex)"
32156   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
32157    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
32158    ac_status=$?
32159    echo "$as_me:$LINENO: \$? = $ac_status" >&5
32160    (exit $ac_status); }; then
32161   break
32164         done
32166 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
32167 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
32168       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
32169       if test "$am_cv_pathless_PYTHON" = none; then
32170         PYTHON=:
32171       else
32172         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
32173 set dummy $am_cv_pathless_PYTHON; ac_word=$2
32174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32176 if test "${ac_cv_path_PYTHON+set}" = set; then
32177   echo $ECHO_N "(cached) $ECHO_C" >&6
32178 else
32179   case $PYTHON in
32180   [\\/]* | ?:[\\/]*)
32181   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
32182   ;;
32183   *)
32184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32185 for as_dir in $PATH
32187   IFS=$as_save_IFS
32188   test -z "$as_dir" && as_dir=.
32189   for ac_exec_ext in '' $ac_executable_extensions; do
32190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32191     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
32192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32193     break 2
32194   fi
32195 done
32196 done
32197 IFS=$as_save_IFS
32199   ;;
32200 esac
32202 PYTHON=$ac_cv_path_PYTHON
32203 if test -n "$PYTHON"; then
32204   { echo "$as_me:$LINENO: result: $PYTHON" >&5
32205 echo "${ECHO_T}$PYTHON" >&6; }
32206 else
32207   { echo "$as_me:$LINENO: result: no" >&5
32208 echo "${ECHO_T}no" >&6; }
32212       fi
32213       am_display_PYTHON=$am_cv_pathless_PYTHON
32214     fi
32217   if test "$PYTHON" = :; then
32218       enable_python=no
32219   else
32222   { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
32223 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
32224 if test "${am_cv_python_version+set}" = set; then
32225   echo $ECHO_N "(cached) $ECHO_C" >&6
32226 else
32227   am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
32229 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
32230 echo "${ECHO_T}$am_cv_python_version" >&6; }
32231   PYTHON_VERSION=$am_cv_python_version
32235   PYTHON_PREFIX='${prefix}'
32237   PYTHON_EXEC_PREFIX='${exec_prefix}'
32241   { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
32242 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
32243 if test "${am_cv_python_platform+set}" = set; then
32244   echo $ECHO_N "(cached) $ECHO_C" >&6
32245 else
32246   am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
32248 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
32249 echo "${ECHO_T}$am_cv_python_platform" >&6; }
32250   PYTHON_PLATFORM=$am_cv_python_platform
32255                 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
32256 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
32257 if test "${am_cv_python_pythondir+set}" = set; then
32258   echo $ECHO_N "(cached) $ECHO_C" >&6
32259 else
32260   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
32261      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
32263 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
32264 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
32265   pythondir=$am_cv_python_pythondir
32269   pkgpythondir=\${pythondir}/$PACKAGE
32272             { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
32273 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
32274 if test "${am_cv_python_pyexecdir+set}" = set; then
32275   echo $ECHO_N "(cached) $ECHO_C" >&6
32276 else
32277   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
32278      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
32280 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
32281 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
32282   pyexecdir=$am_cv_python_pyexecdir
32286   pkgpyexecdir=\${pyexecdir}/$PACKAGE
32290   fi
32294 { echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
32295 echo $ECHO_N "checking for headers required to compile python extensions... $ECHO_C" >&6; }
32296 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
32297 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
32298 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
32299 if test "$py_prefix" != "$py_exec_prefix"; then
32300   PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
32303 save_CPPFLAGS="$CPPFLAGS"
32304 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
32305 cat >conftest.$ac_ext <<_ACEOF
32306 /* confdefs.h.  */
32307 _ACEOF
32308 cat confdefs.h >>conftest.$ac_ext
32309 cat >>conftest.$ac_ext <<_ACEOF
32310 /* end confdefs.h.  */
32311 #include <Python.h>
32312 _ACEOF
32313 if { (ac_try="$ac_cpp conftest.$ac_ext"
32314 case "(($ac_try" in
32315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316   *) ac_try_echo=$ac_try;;
32317 esac
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32320   ac_status=$?
32321   grep -v '^ *+' conftest.er1 >conftest.err
32322   rm -f conftest.er1
32323   cat conftest.err >&5
32324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325   (exit $ac_status); } >/dev/null && {
32326          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32327          test ! -s conftest.err
32328        }; then
32329   { echo "$as_me:$LINENO: result: found" >&5
32330 echo "${ECHO_T}found" >&6; }
32332 else
32333   echo "$as_me: failed program was:" >&5
32334 sed 's/^/| /' conftest.$ac_ext >&5
32336   { echo "$as_me:$LINENO: result: not found" >&5
32337 echo "${ECHO_T}not found" >&6; }
32338 enable_python=no;{ echo "$as_me:$LINENO: WARNING: could not find Python headers" >&5
32339 echo "$as_me: WARNING: could not find Python headers" >&2;}
32342 rm -f conftest.err conftest.$ac_ext
32343 CPPFLAGS="$save_CPPFLAGS"
32347 if test  x$enable_python = xno; then
32348         COMP_PYTHON=
32349 else
32350         COMP_PYTHON="python"
32355 for ac_prog in gnroff nroff
32357   # Extract the first word of "$ac_prog", so it can be a program name with args.
32358 set dummy $ac_prog; ac_word=$2
32359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32361 if test "${ac_cv_path_NROFF+set}" = set; then
32362   echo $ECHO_N "(cached) $ECHO_C" >&6
32363 else
32364   case $NROFF in
32365   [\\/]* | ?:[\\/]*)
32366   ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
32367   ;;
32368   *)
32369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32370 for as_dir in $PATH
32372   IFS=$as_save_IFS
32373   test -z "$as_dir" && as_dir=.
32374   for ac_exec_ext in '' $ac_executable_extensions; do
32375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32376     ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
32377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32378     break 2
32379   fi
32380 done
32381 done
32382 IFS=$as_save_IFS
32384   ;;
32385 esac
32387 NROFF=$ac_cv_path_NROFF
32388 if test -n "$NROFF"; then
32389   { echo "$as_me:$LINENO: result: $NROFF" >&5
32390 echo "${ECHO_T}$NROFF" >&6; }
32391 else
32392   { echo "$as_me:$LINENO: result: no" >&5
32393 echo "${ECHO_T}no" >&6; }
32397   test -n "$NROFF" && break
32398 done
32400 for ac_prog in groff troff
32402   # Extract the first word of "$ac_prog", so it can be a program name with args.
32403 set dummy $ac_prog; ac_word=$2
32404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32406 if test "${ac_cv_path_TROFF+set}" = set; then
32407   echo $ECHO_N "(cached) $ECHO_C" >&6
32408 else
32409   case $TROFF in
32410   [\\/]* | ?:[\\/]*)
32411   ac_cv_path_TROFF="$TROFF" # Let the user override the test with a path.
32412   ;;
32413   *)
32414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32415 for as_dir in $PATH
32417   IFS=$as_save_IFS
32418   test -z "$as_dir" && as_dir=.
32419   for ac_exec_ext in '' $ac_executable_extensions; do
32420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32421     ac_cv_path_TROFF="$as_dir/$ac_word$ac_exec_ext"
32422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32423     break 2
32424   fi
32425 done
32426 done
32427 IFS=$as_save_IFS
32429   ;;
32430 esac
32432 TROFF=$ac_cv_path_TROFF
32433 if test -n "$TROFF"; then
32434   { echo "$as_me:$LINENO: result: $TROFF" >&5
32435 echo "${ECHO_T}$TROFF" >&6; }
32436 else
32437   { echo "$as_me:$LINENO: result: no" >&5
32438 echo "${ECHO_T}no" >&6; }
32442   test -n "$TROFF" && break
32443 done
32447 if test -z "$RRDDOCDIR"; then
32448    RRDDOCDIR='${datadir}/doc/${PACKAGE}-${VERSION}'; fi
32452 case $TERM in
32453        #   for the most important terminal types we directly know the sequences
32454        xterm|xterm*|vt220|vt220*)
32455                T_MD=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
32456                T_ME=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
32457        ;;
32458        vt100|vt100*|cygwin)
32459                T_MD=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
32460                T_ME=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
32461        ;;
32462        *)
32463                T_MD=''
32464                T_ME=''
32465        ;;
32466 esac
32467   { echo "$as_me:$LINENO: result: " >&5
32468 echo "${ECHO_T}" >&6; }
32469   { echo "$as_me:$LINENO: result: ${T_MD}Apply Configuration Information${T_ME}" >&5
32470 echo "${ECHO_T}${T_MD}Apply Configuration Information${T_ME}" >&6; }
32473 ac_config_files="$ac_config_files examples/shared-demo.pl"
32475 ac_config_files="$ac_config_files examples/piped-demo.pl"
32477 ac_config_files="$ac_config_files examples/stripes.pl"
32479 ac_config_files="$ac_config_files examples/bigtops.pl"
32481 ac_config_files="$ac_config_files examples/minmax.pl"
32483 ac_config_files="$ac_config_files examples/4charts.pl"
32485 ac_config_files="$ac_config_files examples/perftest.pl"
32487 ac_config_files="$ac_config_files examples/Makefile"
32489 ac_config_files="$ac_config_files doc/Makefile"
32491 ac_config_files="$ac_config_files po/Makefile.in"
32493 ac_config_files="$ac_config_files src/Makefile"
32495 ac_config_files="$ac_config_files bindings/Makefile"
32497 ac_config_files="$ac_config_files bindings/tcl/Makefile"
32499 ac_config_files="$ac_config_files bindings/tcl/ifOctets.tcl"
32501 ac_config_files="$ac_config_files Makefile"
32504 ac_config_commands="$ac_config_commands default"
32506 cat >confcache <<\_ACEOF
32507 # This file is a shell script that caches the results of configure
32508 # tests run on this system so they can be shared between configure
32509 # scripts and configure runs, see configure's option --config-cache.
32510 # It is not useful on other systems.  If it contains results you don't
32511 # want to keep, you may remove or edit it.
32513 # config.status only pays attention to the cache file if you give it
32514 # the --recheck option to rerun configure.
32516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32518 # following values.
32520 _ACEOF
32522 # The following way of writing the cache mishandles newlines in values,
32523 # but we know of no workaround that is simple, portable, and efficient.
32524 # So, we kill variables containing newlines.
32525 # Ultrix sh set writes to stderr and can't be redirected directly,
32526 # and sets the high bit in the cache file unless we assign to the vars.
32528   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32529     eval ac_val=\$$ac_var
32530     case $ac_val in #(
32531     *${as_nl}*)
32532       case $ac_var in #(
32533       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32534 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32535       esac
32536       case $ac_var in #(
32537       _ | IFS | as_nl) ;; #(
32538       *) $as_unset $ac_var ;;
32539       esac ;;
32540     esac
32541   done
32543   (set) 2>&1 |
32544     case $as_nl`(ac_space=' '; set) 2>&1` in #(
32545     *${as_nl}ac_space=\ *)
32546       # `set' does not quote correctly, so add quotes (double-quote
32547       # substitution turns \\\\ into \\, and sed turns \\ into \).
32548       sed -n \
32549         "s/'/'\\\\''/g;
32550           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32551       ;; #(
32552     *)
32553       # `set' quotes correctly as required by POSIX, so do not add quotes.
32554       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32555       ;;
32556     esac |
32557     sort
32558 ) |
32559   sed '
32560      /^ac_cv_env_/b end
32561      t clear
32562      :clear
32563      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32564      t end
32565      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32566      :end' >>confcache
32567 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32568   if test -w "$cache_file"; then
32569     test "x$cache_file" != "x/dev/null" &&
32570       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32571 echo "$as_me: updating cache $cache_file" >&6;}
32572     cat confcache >$cache_file
32573   else
32574     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32575 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32576   fi
32578 rm -f confcache
32580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32581 # Let make expand exec_prefix.
32582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32584 DEFS=-DHAVE_CONFIG_H
32586 ac_libobjs=
32587 ac_ltlibobjs=
32588 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32589   # 1. Remove the extension, and $U if already installed.
32590   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32591   ac_i=`echo "$ac_i" | sed "$ac_script"`
32592   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
32593   #    will be set to the directory where LIBOBJS objects are built.
32594   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32595   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32596 done
32597 LIBOBJS=$ac_libobjs
32599 LTLIBOBJS=$ac_ltlibobjs
32602 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32603   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
32604 Usually this means the macro was only invoked conditionally." >&5
32605 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
32606 Usually this means the macro was only invoked conditionally." >&2;}
32607    { (exit 1); exit 1; }; }
32609 if test -z "${STATIC_PROGRAMS_TRUE}" && test -z "${STATIC_PROGRAMS_FALSE}"; then
32610   { { echo "$as_me:$LINENO: error: conditional \"STATIC_PROGRAMS\" was never defined.
32611 Usually this means the macro was only invoked conditionally." >&5
32612 echo "$as_me: error: conditional \"STATIC_PROGRAMS\" was never defined.
32613 Usually this means the macro was only invoked conditionally." >&2;}
32614    { (exit 1); exit 1; }; }
32616 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32617   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32618 Usually this means the macro was only invoked conditionally." >&5
32619 echo "$as_me: error: conditional \"AMDEP\" was never defined.
32620 Usually this means the macro was only invoked conditionally." >&2;}
32621    { (exit 1); exit 1; }; }
32623 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32624   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32625 Usually this means the macro was only invoked conditionally." >&5
32626 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32627 Usually this means the macro was only invoked conditionally." >&2;}
32628    { (exit 1); exit 1; }; }
32630 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32631   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32632 Usually this means the macro was only invoked conditionally." >&5
32633 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32634 Usually this means the macro was only invoked conditionally." >&2;}
32635    { (exit 1); exit 1; }; }
32638   ac_config_commands="$ac_config_commands po/stamp-it"
32641 if test -z "${BUILD_LIBINTL_TRUE}" && test -z "${BUILD_LIBINTL_FALSE}"; then
32642   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBINTL\" was never defined.
32643 Usually this means the macro was only invoked conditionally." >&5
32644 echo "$as_me: error: conditional \"BUILD_LIBINTL\" was never defined.
32645 Usually this means the macro was only invoked conditionally." >&2;}
32646    { (exit 1); exit 1; }; }
32648 if test -z "${BUILD_MULTITHREAD_TRUE}" && test -z "${BUILD_MULTITHREAD_FALSE}"; then
32649   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MULTITHREAD\" was never defined.
32650 Usually this means the macro was only invoked conditionally." >&5
32651 echo "$as_me: error: conditional \"BUILD_MULTITHREAD\" was never defined.
32652 Usually this means the macro was only invoked conditionally." >&2;}
32653    { (exit 1); exit 1; }; }
32655 if test -z "${BUILD_RRDCGI_TRUE}" && test -z "${BUILD_RRDCGI_FALSE}"; then
32656   { { echo "$as_me:$LINENO: error: conditional \"BUILD_RRDCGI\" was never defined.
32657 Usually this means the macro was only invoked conditionally." >&5
32658 echo "$as_me: error: conditional \"BUILD_RRDCGI\" was never defined.
32659 Usually this means the macro was only invoked conditionally." >&2;}
32660    { (exit 1); exit 1; }; }
32662 if test -z "${BUILD_TCL_TRUE}" && test -z "${BUILD_TCL_FALSE}"; then
32663   { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL\" was never defined.
32664 Usually this means the macro was only invoked conditionally." >&5
32665 echo "$as_me: error: conditional \"BUILD_TCL\" was never defined.
32666 Usually this means the macro was only invoked conditionally." >&2;}
32667    { (exit 1); exit 1; }; }
32669 if test -z "${BUILD_TCL_SITE_TRUE}" && test -z "${BUILD_TCL_SITE_FALSE}"; then
32670   { { echo "$as_me:$LINENO: error: conditional \"BUILD_TCL_SITE\" was never defined.
32671 Usually this means the macro was only invoked conditionally." >&5
32672 echo "$as_me: error: conditional \"BUILD_TCL_SITE\" was never defined.
32673 Usually this means the macro was only invoked conditionally." >&2;}
32674    { (exit 1); exit 1; }; }
32677 : ${CONFIG_STATUS=./config.status}
32678 ac_clean_files_save=$ac_clean_files
32679 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32680 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32681 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32682 cat >$CONFIG_STATUS <<_ACEOF
32683 #! $SHELL
32684 # Generated by $as_me.
32685 # Run this file to recreate the current configuration.
32686 # Compiler output produced by configure, useful for debugging
32687 # configure, is in config.log if it exists.
32689 debug=false
32690 ac_cs_recheck=false
32691 ac_cs_silent=false
32692 SHELL=\${CONFIG_SHELL-$SHELL}
32693 _ACEOF
32695 cat >>$CONFIG_STATUS <<\_ACEOF
32696 ## --------------------- ##
32697 ## M4sh Initialization.  ##
32698 ## --------------------- ##
32700 # Be more Bourne compatible
32701 DUALCASE=1; export DUALCASE # for MKS sh
32702 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32703   emulate sh
32704   NULLCMD=:
32705   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32706   # is contrary to our usage.  Disable this feature.
32707   alias -g '${1+"$@"}'='"$@"'
32708   setopt NO_GLOB_SUBST
32709 else
32710   case `(set -o) 2>/dev/null` in
32711   *posix*) set -o posix ;;
32712 esac
32719 # PATH needs CR
32720 # Avoid depending upon Character Ranges.
32721 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32722 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32723 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32724 as_cr_digits='0123456789'
32725 as_cr_alnum=$as_cr_Letters$as_cr_digits
32727 # The user is always right.
32728 if test "${PATH_SEPARATOR+set}" != set; then
32729   echo "#! /bin/sh" >conf$$.sh
32730   echo  "exit 0"   >>conf$$.sh
32731   chmod +x conf$$.sh
32732   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32733     PATH_SEPARATOR=';'
32734   else
32735     PATH_SEPARATOR=:
32736   fi
32737   rm -f conf$$.sh
32740 # Support unset when possible.
32741 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32742   as_unset=unset
32743 else
32744   as_unset=false
32748 # IFS
32749 # We need space, tab and new line, in precisely that order.  Quoting is
32750 # there to prevent editors from complaining about space-tab.
32751 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32752 # splitting by setting IFS to empty value.)
32753 as_nl='
32755 IFS=" ""        $as_nl"
32757 # Find who we are.  Look in the path if we contain no directory separator.
32758 case $0 in
32759   *[\\/]* ) as_myself=$0 ;;
32760   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32761 for as_dir in $PATH
32763   IFS=$as_save_IFS
32764   test -z "$as_dir" && as_dir=.
32765   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32766 done
32767 IFS=$as_save_IFS
32769      ;;
32770 esac
32771 # We did not find ourselves, most probably we were run as `sh COMMAND'
32772 # in which case we are not to be found in the path.
32773 if test "x$as_myself" = x; then
32774   as_myself=$0
32776 if test ! -f "$as_myself"; then
32777   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32778   { (exit 1); exit 1; }
32781 # Work around bugs in pre-3.0 UWIN ksh.
32782 for as_var in ENV MAIL MAILPATH
32783 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32784 done
32785 PS1='$ '
32786 PS2='> '
32787 PS4='+ '
32789 # NLS nuisances.
32790 for as_var in \
32791   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32792   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32793   LC_TELEPHONE LC_TIME
32795   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32796     eval $as_var=C; export $as_var
32797   else
32798     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32799   fi
32800 done
32802 # Required to use basename.
32803 if expr a : '\(a\)' >/dev/null 2>&1 &&
32804    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32805   as_expr=expr
32806 else
32807   as_expr=false
32810 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32811   as_basename=basename
32812 else
32813   as_basename=false
32817 # Name of the executable.
32818 as_me=`$as_basename -- "$0" ||
32819 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32820          X"$0" : 'X\(//\)$' \| \
32821          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32822 echo X/"$0" |
32823     sed '/^.*\/\([^/][^/]*\)\/*$/{
32824             s//\1/
32825             q
32826           }
32827           /^X\/\(\/\/\)$/{
32828             s//\1/
32829             q
32830           }
32831           /^X\/\(\/\).*/{
32832             s//\1/
32833             q
32834           }
32835           s/.*/./; q'`
32837 # CDPATH.
32838 $as_unset CDPATH
32842   as_lineno_1=$LINENO
32843   as_lineno_2=$LINENO
32844   test "x$as_lineno_1" != "x$as_lineno_2" &&
32845   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32847   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32848   # uniformly replaced by the line number.  The first 'sed' inserts a
32849   # line-number line after each line using $LINENO; the second 'sed'
32850   # does the real work.  The second script uses 'N' to pair each
32851   # line-number line with the line containing $LINENO, and appends
32852   # trailing '-' during substitution so that $LINENO is not a special
32853   # case at line end.
32854   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32855   # scripts with optimization help from Paolo Bonzini.  Blame Lee
32856   # E. McMahon (1931-1989) for sed's syntax.  :-)
32857   sed -n '
32858     p
32859     /[$]LINENO/=
32860   ' <$as_myself |
32861     sed '
32862       s/[$]LINENO.*/&-/
32863       t lineno
32864       b
32865       :lineno
32866       N
32867       :loop
32868       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32869       t loop
32870       s/-\n.*//
32871     ' >$as_me.lineno &&
32872   chmod +x "$as_me.lineno" ||
32873     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32874    { (exit 1); exit 1; }; }
32876   # Don't try to exec as it changes $[0], causing all sort of problems
32877   # (the dirname of $[0] is not the place where we might find the
32878   # original and so on.  Autoconf is especially sensitive to this).
32879   . "./$as_me.lineno"
32880   # Exit status is that of the last command.
32881   exit
32885 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32886   as_dirname=dirname
32887 else
32888   as_dirname=false
32891 ECHO_C= ECHO_N= ECHO_T=
32892 case `echo -n x` in
32893 -n*)
32894   case `echo 'x\c'` in
32895   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
32896   *)   ECHO_C='\c';;
32897   esac;;
32899   ECHO_N='-n';;
32900 esac
32902 if expr a : '\(a\)' >/dev/null 2>&1 &&
32903    test "X`expr 00001 : '.*\(...\)'`" = X001; then
32904   as_expr=expr
32905 else
32906   as_expr=false
32909 rm -f conf$$ conf$$.exe conf$$.file
32910 if test -d conf$$.dir; then
32911   rm -f conf$$.dir/conf$$.file
32912 else
32913   rm -f conf$$.dir
32914   mkdir conf$$.dir
32916 echo >conf$$.file
32917 if ln -s conf$$.file conf$$ 2>/dev/null; then
32918   as_ln_s='ln -s'
32919   # ... but there are two gotchas:
32920   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32921   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32922   # In both cases, we have to default to `cp -p'.
32923   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32924     as_ln_s='cp -p'
32925 elif ln conf$$.file conf$$ 2>/dev/null; then
32926   as_ln_s=ln
32927 else
32928   as_ln_s='cp -p'
32930 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32931 rmdir conf$$.dir 2>/dev/null
32933 if mkdir -p . 2>/dev/null; then
32934   as_mkdir_p=:
32935 else
32936   test -d ./-p && rmdir ./-p
32937   as_mkdir_p=false
32940 if test -x / >/dev/null 2>&1; then
32941   as_test_x='test -x'
32942 else
32943   if ls -dL / >/dev/null 2>&1; then
32944     as_ls_L_option=L
32945   else
32946     as_ls_L_option=
32947   fi
32948   as_test_x='
32949     eval sh -c '\''
32950       if test -d "$1"; then
32951         test -d "$1/.";
32952       else
32953         case $1 in
32954         -*)set "./$1";;
32955         esac;
32956         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32957         ???[sx]*):;;*)false;;esac;fi
32958     '\'' sh
32959   '
32961 as_executable_p=$as_test_x
32963 # Sed expression to map a string onto a valid CPP name.
32964 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32966 # Sed expression to map a string onto a valid variable name.
32967 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32970 exec 6>&1
32972 # Save the log message, to keep $[0] and so on meaningful, and to
32973 # report actual input values of CONFIG_FILES etc. instead of their
32974 # values after options handling.
32975 ac_log="
32976 This file was extended by rrdtool $as_me 1.3.1, which was
32977 generated by GNU Autoconf 2.61.  Invocation command line was
32979   CONFIG_FILES    = $CONFIG_FILES
32980   CONFIG_HEADERS  = $CONFIG_HEADERS
32981   CONFIG_LINKS    = $CONFIG_LINKS
32982   CONFIG_COMMANDS = $CONFIG_COMMANDS
32983   $ $0 $@
32985 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32988 _ACEOF
32990 cat >>$CONFIG_STATUS <<_ACEOF
32991 # Files that config.status was made for.
32992 config_files="$ac_config_files"
32993 config_headers="$ac_config_headers"
32994 config_commands="$ac_config_commands"
32996 _ACEOF
32998 cat >>$CONFIG_STATUS <<\_ACEOF
32999 ac_cs_usage="\
33000 \`$as_me' instantiates files from templates according to the
33001 current configuration.
33003 Usage: $0 [OPTIONS] [FILE]...
33005   -h, --help       print this help, then exit
33006   -V, --version    print version number and configuration settings, then exit
33007   -q, --quiet      do not print progress messages
33008   -d, --debug      don't remove temporary files
33009       --recheck    update $as_me by reconfiguring in the same conditions
33010   --file=FILE[:TEMPLATE]
33011                    instantiate the configuration file FILE
33012   --header=FILE[:TEMPLATE]
33013                    instantiate the configuration header FILE
33015 Configuration files:
33016 $config_files
33018 Configuration headers:
33019 $config_headers
33021 Configuration commands:
33022 $config_commands
33024 Report bugs to <bug-autoconf@gnu.org>."
33026 _ACEOF
33027 cat >>$CONFIG_STATUS <<_ACEOF
33028 ac_cs_version="\\
33029 rrdtool config.status 1.3.1
33030 configured by $0, generated by GNU Autoconf 2.61,
33031   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33033 Copyright (C) 2006 Free Software Foundation, Inc.
33034 This config.status script is free software; the Free Software Foundation
33035 gives unlimited permission to copy, distribute and modify it."
33037 ac_pwd='$ac_pwd'
33038 srcdir='$srcdir'
33039 INSTALL='$INSTALL'
33040 _ACEOF
33042 cat >>$CONFIG_STATUS <<\_ACEOF
33043 # If no file are specified by the user, then we need to provide default
33044 # value.  By we need to know if files were specified by the user.
33045 ac_need_defaults=:
33046 while test $# != 0
33048   case $1 in
33049   --*=*)
33050     ac_option=`expr "X$1" : 'X\([^=]*\)='`
33051     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33052     ac_shift=:
33053     ;;
33054   *)
33055     ac_option=$1
33056     ac_optarg=$2
33057     ac_shift=shift
33058     ;;
33059   esac
33061   case $ac_option in
33062   # Handling of the options.
33063   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33064     ac_cs_recheck=: ;;
33065   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33066     echo "$ac_cs_version"; exit ;;
33067   --debug | --debu | --deb | --de | --d | -d )
33068     debug=: ;;
33069   --file | --fil | --fi | --f )
33070     $ac_shift
33071     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33072     ac_need_defaults=false;;
33073   --header | --heade | --head | --hea )
33074     $ac_shift
33075     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33076     ac_need_defaults=false;;
33077   --he | --h)
33078     # Conflict between --help and --header
33079     { echo "$as_me: error: ambiguous option: $1
33080 Try \`$0 --help' for more information." >&2
33081    { (exit 1); exit 1; }; };;
33082   --help | --hel | -h )
33083     echo "$ac_cs_usage"; exit ;;
33084   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33085   | -silent | --silent | --silen | --sile | --sil | --si | --s)
33086     ac_cs_silent=: ;;
33088   # This is an error.
33089   -*) { echo "$as_me: error: unrecognized option: $1
33090 Try \`$0 --help' for more information." >&2
33091    { (exit 1); exit 1; }; } ;;
33093   *) ac_config_targets="$ac_config_targets $1"
33094      ac_need_defaults=false ;;
33096   esac
33097   shift
33098 done
33100 ac_configure_extra_args=
33102 if $ac_cs_silent; then
33103   exec 6>/dev/null
33104   ac_configure_extra_args="$ac_configure_extra_args --silent"
33107 _ACEOF
33108 cat >>$CONFIG_STATUS <<_ACEOF
33109 if \$ac_cs_recheck; then
33110   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33111   CONFIG_SHELL=$SHELL
33112   export CONFIG_SHELL
33113   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33116 _ACEOF
33117 cat >>$CONFIG_STATUS <<\_ACEOF
33118 exec 5>>config.log
33120   echo
33121   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33122 ## Running $as_me. ##
33123 _ASBOX
33124   echo "$ac_log"
33125 } >&5
33127 _ACEOF
33128 cat >>$CONFIG_STATUS <<_ACEOF
33130 # INIT-COMMANDS
33132 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33134 INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
33135 prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
33136 INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'
33139 _ACEOF
33141 cat >>$CONFIG_STATUS <<\_ACEOF
33143 # Handling of arguments.
33144 for ac_config_target in $ac_config_targets
33146   case $ac_config_target in
33147     "rrd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS rrd_config.h" ;;
33148     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33149     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
33150     "intltool") CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
33151     "examples/shared-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/shared-demo.pl" ;;
33152     "examples/piped-demo.pl") CONFIG_FILES="$CONFIG_FILES examples/piped-demo.pl" ;;
33153     "examples/stripes.pl") CONFIG_FILES="$CONFIG_FILES examples/stripes.pl" ;;
33154     "examples/bigtops.pl") CONFIG_FILES="$CONFIG_FILES examples/bigtops.pl" ;;
33155     "examples/minmax.pl") CONFIG_FILES="$CONFIG_FILES examples/minmax.pl" ;;
33156     "examples/4charts.pl") CONFIG_FILES="$CONFIG_FILES examples/4charts.pl" ;;
33157     "examples/perftest.pl") CONFIG_FILES="$CONFIG_FILES examples/perftest.pl" ;;
33158     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
33159     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33160     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
33161     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33162     "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
33163     "bindings/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/tcl/Makefile" ;;
33164     "bindings/tcl/ifOctets.tcl") CONFIG_FILES="$CONFIG_FILES bindings/tcl/ifOctets.tcl" ;;
33165     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33166     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33167     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
33169   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33170 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33171    { (exit 1); exit 1; }; };;
33172   esac
33173 done
33176 # If the user did not use the arguments to specify the items to instantiate,
33177 # then the envvar interface is used.  Set only those that are not.
33178 # We use the long form for the default assignment because of an extremely
33179 # bizarre bug on SunOS 4.1.3.
33180 if $ac_need_defaults; then
33181   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33182   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33183   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33186 # Have a temporary directory for convenience.  Make it in the build tree
33187 # simply because there is no reason against having it here, and in addition,
33188 # creating and moving files from /tmp can sometimes cause problems.
33189 # Hook for its removal unless debugging.
33190 # Note that there is a small window in which the directory will not be cleaned:
33191 # after its creation but before its name has been assigned to `$tmp'.
33192 $debug ||
33194   tmp=
33195   trap 'exit_status=$?
33196   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33197 ' 0
33198   trap '{ (exit 1); exit 1; }' 1 2 13 15
33200 # Create a (secure) tmp directory for tmp files.
33203   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33204   test -n "$tmp" && test -d "$tmp"
33205 }  ||
33207   tmp=./conf$$-$RANDOM
33208   (umask 077 && mkdir "$tmp")
33209 } ||
33211    echo "$me: cannot create a temporary directory in ." >&2
33212    { (exit 1); exit 1; }
33216 # Set up the sed scripts for CONFIG_FILES section.
33219 # No need to generate the scripts if there are no CONFIG_FILES.
33220 # This happens for instance when ./config.status config.h
33221 if test -n "$CONFIG_FILES"; then
33223 _ACEOF
33227 ac_delim='%!_!# '
33228 for ac_last_try in false false false false false :; do
33229   cat >conf$$subs.sed <<_ACEOF
33230 PERLFLAGS!$PERLFLAGS$ac_delim
33231 SHELL!$SHELL$ac_delim
33232 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
33233 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
33234 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
33235 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
33236 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
33237 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
33238 exec_prefix!$exec_prefix$ac_delim
33239 prefix!$prefix$ac_delim
33240 program_transform_name!$program_transform_name$ac_delim
33241 bindir!$bindir$ac_delim
33242 sbindir!$sbindir$ac_delim
33243 libexecdir!$libexecdir$ac_delim
33244 datarootdir!$datarootdir$ac_delim
33245 datadir!$datadir$ac_delim
33246 sysconfdir!$sysconfdir$ac_delim
33247 sharedstatedir!$sharedstatedir$ac_delim
33248 localstatedir!$localstatedir$ac_delim
33249 includedir!$includedir$ac_delim
33250 oldincludedir!$oldincludedir$ac_delim
33251 docdir!$docdir$ac_delim
33252 infodir!$infodir$ac_delim
33253 htmldir!$htmldir$ac_delim
33254 dvidir!$dvidir$ac_delim
33255 pdfdir!$pdfdir$ac_delim
33256 psdir!$psdir$ac_delim
33257 libdir!$libdir$ac_delim
33258 localedir!$localedir$ac_delim
33259 mandir!$mandir$ac_delim
33260 DEFS!$DEFS$ac_delim
33261 ECHO_C!$ECHO_C$ac_delim
33262 ECHO_N!$ECHO_N$ac_delim
33263 ECHO_T!$ECHO_T$ac_delim
33264 LIBS!$LIBS$ac_delim
33265 build_alias!$build_alias$ac_delim
33266 host_alias!$host_alias$ac_delim
33267 target_alias!$target_alias$ac_delim
33268 NUMVERS!$NUMVERS$ac_delim
33269 LIBVERS!$LIBVERS$ac_delim
33270 build!$build$ac_delim
33271 build_cpu!$build_cpu$ac_delim
33272 build_vendor!$build_vendor$ac_delim
33273 build_os!$build_os$ac_delim
33274 host!$host$ac_delim
33275 host_cpu!$host_cpu$ac_delim
33276 host_vendor!$host_vendor$ac_delim
33277 host_os!$host_os$ac_delim
33278 target!$target$ac_delim
33279 target_cpu!$target_cpu$ac_delim
33280 target_vendor!$target_vendor$ac_delim
33281 target_os!$target_os$ac_delim
33282 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33283 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33284 INSTALL_DATA!$INSTALL_DATA$ac_delim
33285 CYGPATH_W!$CYGPATH_W$ac_delim
33286 PACKAGE!$PACKAGE$ac_delim
33287 VERSION!$VERSION$ac_delim
33288 ACLOCAL!$ACLOCAL$ac_delim
33289 AUTOCONF!$AUTOCONF$ac_delim
33290 AUTOMAKE!$AUTOMAKE$ac_delim
33291 AUTOHEADER!$AUTOHEADER$ac_delim
33292 MAKEINFO!$MAKEINFO$ac_delim
33293 install_sh!$install_sh$ac_delim
33294 STRIP!$STRIP$ac_delim
33295 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
33296 mkdir_p!$mkdir_p$ac_delim
33297 AWK!$AWK$ac_delim
33298 SET_MAKE!$SET_MAKE$ac_delim
33299 am__leading_dot!$am__leading_dot$ac_delim
33300 AMTAR!$AMTAR$ac_delim
33301 am__tar!$am__tar$ac_delim
33302 am__untar!$am__untar$ac_delim
33303 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
33304 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
33305 MAINT!$MAINT$ac_delim
33306 RRDGRAPH_YLEGEND_ANGLE!$RRDGRAPH_YLEGEND_ANGLE$ac_delim
33307 STATIC_PROGRAMS_TRUE!$STATIC_PROGRAMS_TRUE$ac_delim
33308 STATIC_PROGRAMS_FALSE!$STATIC_PROGRAMS_FALSE$ac_delim
33309 CC!$CC$ac_delim
33310 CFLAGS!$CFLAGS$ac_delim
33311 LDFLAGS!$LDFLAGS$ac_delim
33312 CPPFLAGS!$CPPFLAGS$ac_delim
33313 ac_ct_CC!$ac_ct_CC$ac_delim
33314 EXEEXT!$EXEEXT$ac_delim
33315 OBJEXT!$OBJEXT$ac_delim
33316 DEPDIR!$DEPDIR$ac_delim
33317 am__include!$am__include$ac_delim
33318 am__quote!$am__quote$ac_delim
33319 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
33320 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
33321 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
33322 CCDEPMODE!$CCDEPMODE$ac_delim
33323 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
33324 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
33325 CPP!$CPP$ac_delim
33326 SED!$SED$ac_delim
33327 _ACEOF
33329   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33330     break
33331   elif $ac_last_try; then
33332     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33333 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33334    { (exit 1); exit 1; }; }
33335   else
33336     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33337   fi
33338 done
33340 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33341 if test -n "$ac_eof"; then
33342   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33343   ac_eof=`expr $ac_eof + 1`
33346 cat >>$CONFIG_STATUS <<_ACEOF
33347 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33349 _ACEOF
33350 sed '
33351 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33352 s/^/s,@/; s/!/@,|#_!!_#|/
33354 t n
33355 s/'"$ac_delim"'$/,g/; t
33356 s/$/\\/; p
33357 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33358 ' >>$CONFIG_STATUS <conf$$subs.sed
33359 rm -f conf$$subs.sed
33360 cat >>$CONFIG_STATUS <<_ACEOF
33361 CEOF$ac_eof
33362 _ACEOF
33365 ac_delim='%!_!# '
33366 for ac_last_try in false false false false false :; do
33367   cat >conf$$subs.sed <<_ACEOF
33368 GREP!$GREP$ac_delim
33369 EGREP!$EGREP$ac_delim
33370 LN_S!$LN_S$ac_delim
33371 ECHO!$ECHO$ac_delim
33372 AR!$AR$ac_delim
33373 RANLIB!$RANLIB$ac_delim
33374 DSYMUTIL!$DSYMUTIL$ac_delim
33375 NMEDIT!$NMEDIT$ac_delim
33376 CXX!$CXX$ac_delim
33377 CXXFLAGS!$CXXFLAGS$ac_delim
33378 ac_ct_CXX!$ac_ct_CXX$ac_delim
33379 CXXDEPMODE!$CXXDEPMODE$ac_delim
33380 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
33381 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
33382 CXXCPP!$CXXCPP$ac_delim
33383 F77!$F77$ac_delim
33384 FFLAGS!$FFLAGS$ac_delim
33385 ac_ct_F77!$ac_ct_F77$ac_delim
33386 LIBTOOL!$LIBTOOL$ac_delim
33387 RRD_DEFAULT_FONT!$RRD_DEFAULT_FONT$ac_delim
33388 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
33389 USE_NLS!$USE_NLS$ac_delim
33390 MSGFMT!$MSGFMT$ac_delim
33391 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
33392 GMSGFMT!$GMSGFMT$ac_delim
33393 XGETTEXT!$XGETTEXT$ac_delim
33394 CATALOGS!$CATALOGS$ac_delim
33395 CATOBJEXT!$CATOBJEXT$ac_delim
33396 DATADIRNAME!$DATADIRNAME$ac_delim
33397 GMOFILES!$GMOFILES$ac_delim
33398 INSTOBJEXT!$INSTOBJEXT$ac_delim
33399 INTLLIBS!$INTLLIBS$ac_delim
33400 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
33401 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
33402 POFILES!$POFILES$ac_delim
33403 POSUB!$POSUB$ac_delim
33404 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
33405 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
33406 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
33407 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
33408 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
33409 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
33410 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
33411 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
33412 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
33413 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
33414 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
33415 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
33416 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
33417 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
33418 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
33419 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
33420 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
33421 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
33422 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
33423 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
33424 MSGMERGE!$MSGMERGE$ac_delim
33425 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
33426 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
33427 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
33428 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
33429 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
33430 LIB_LIBINTL!$LIB_LIBINTL$ac_delim
33431 BUILD_LIBINTL_TRUE!$BUILD_LIBINTL_TRUE$ac_delim
33432 BUILD_LIBINTL_FALSE!$BUILD_LIBINTL_FALSE$ac_delim
33433 MULTITHREAD_CFLAGS!$MULTITHREAD_CFLAGS$ac_delim
33434 MULTITHREAD_LDFLAGS!$MULTITHREAD_LDFLAGS$ac_delim
33435 acx_pthread_config!$acx_pthread_config$ac_delim
33436 PTHREAD_CC!$PTHREAD_CC$ac_delim
33437 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
33438 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
33439 BUILD_MULTITHREAD_TRUE!$BUILD_MULTITHREAD_TRUE$ac_delim
33440 BUILD_MULTITHREAD_FALSE!$BUILD_MULTITHREAD_FALSE$ac_delim
33441 BUILD_RRDCGI_TRUE!$BUILD_RRDCGI_TRUE$ac_delim
33442 BUILD_RRDCGI_FALSE!$BUILD_RRDCGI_FALSE$ac_delim
33443 PKGCONFIG!$PKGCONFIG$ac_delim
33444 CORE_LIBS!$CORE_LIBS$ac_delim
33445 ALL_LIBS!$ALL_LIBS$ac_delim
33446 PERL!$PERL$ac_delim
33447 POD2MAN!$POD2MAN$ac_delim
33448 POD2HTML!$POD2HTML$ac_delim
33449 PERLCC!$PERLCC$ac_delim
33450 PERLCCFLAGS!$PERLCCFLAGS$ac_delim
33451 PERLLD!$PERLLD$ac_delim
33452 PERLLDFLAGS!$PERLLDFLAGS$ac_delim
33453 PERL_CC!$PERL_CC$ac_delim
33454 PERL_MAKE_OPTIONS!$PERL_MAKE_OPTIONS$ac_delim
33455 COMP_PERL!$COMP_PERL$ac_delim
33456 PERL_VERSION!$PERL_VERSION$ac_delim
33457 RUBY!$RUBY$ac_delim
33458 RUBY_MAKE_OPTIONS!$RUBY_MAKE_OPTIONS$ac_delim
33459 COMP_RUBY!$COMP_RUBY$ac_delim
33460 BUILD_TCL_TRUE!$BUILD_TCL_TRUE$ac_delim
33461 BUILD_TCL_FALSE!$BUILD_TCL_FALSE$ac_delim
33462 BUILD_TCL_SITE_TRUE!$BUILD_TCL_SITE_TRUE$ac_delim
33463 BUILD_TCL_SITE_FALSE!$BUILD_TCL_SITE_FALSE$ac_delim
33464 TCL_PREFIX!$TCL_PREFIX$ac_delim
33465 _ACEOF
33467   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33468     break
33469   elif $ac_last_try; then
33470     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33471 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33472    { (exit 1); exit 1; }; }
33473   else
33474     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33475   fi
33476 done
33478 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33479 if test -n "$ac_eof"; then
33480   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33481   ac_eof=`expr $ac_eof + 1`
33484 cat >>$CONFIG_STATUS <<_ACEOF
33485 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33487 _ACEOF
33488 sed '
33489 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33490 s/^/s,@/; s/!/@,|#_!!_#|/
33492 t n
33493 s/'"$ac_delim"'$/,g/; t
33494 s/$/\\/; p
33495 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33496 ' >>$CONFIG_STATUS <conf$$subs.sed
33497 rm -f conf$$subs.sed
33498 cat >>$CONFIG_STATUS <<_ACEOF
33499 CEOF$ac_eof
33500 _ACEOF
33503 ac_delim='%!_!# '
33504 for ac_last_try in false false false false false :; do
33505   cat >conf$$subs.sed <<_ACEOF
33506 TCL_SHLIB_CFLAGS!$TCL_SHLIB_CFLAGS$ac_delim
33507 TCL_SHLIB_LD!$TCL_SHLIB_LD$ac_delim
33508 TCL_SHLIB_SUFFIX!$TCL_SHLIB_SUFFIX$ac_delim
33509 TCL_PACKAGE_PATH!$TCL_PACKAGE_PATH$ac_delim
33510 TCL_LD_SEARCH_FLAGS!$TCL_LD_SEARCH_FLAGS$ac_delim
33511 TCL_STUB_LIB_SPEC!$TCL_STUB_LIB_SPEC$ac_delim
33512 TCL_VERSION!$TCL_VERSION$ac_delim
33513 TCL_PACKAGE_DIR!$TCL_PACKAGE_DIR$ac_delim
33514 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
33515 PYTHON!$PYTHON$ac_delim
33516 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
33517 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
33518 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
33519 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
33520 pythondir!$pythondir$ac_delim
33521 pkgpythondir!$pkgpythondir$ac_delim
33522 pyexecdir!$pyexecdir$ac_delim
33523 pkgpyexecdir!$pkgpyexecdir$ac_delim
33524 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
33525 COMP_PYTHON!$COMP_PYTHON$ac_delim
33526 NROFF!$NROFF$ac_delim
33527 TROFF!$TROFF$ac_delim
33528 RRDDOCDIR!$RRDDOCDIR$ac_delim
33529 LIBOBJS!$LIBOBJS$ac_delim
33530 LTLIBOBJS!$LTLIBOBJS$ac_delim
33531 _ACEOF
33533   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
33534     break
33535   elif $ac_last_try; then
33536     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33537 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33538    { (exit 1); exit 1; }; }
33539   else
33540     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33541   fi
33542 done
33544 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33545 if test -n "$ac_eof"; then
33546   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33547   ac_eof=`expr $ac_eof + 1`
33550 cat >>$CONFIG_STATUS <<_ACEOF
33551 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
33552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33553 _ACEOF
33554 sed '
33555 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33556 s/^/s,@/; s/!/@,|#_!!_#|/
33558 t n
33559 s/'"$ac_delim"'$/,g/; t
33560 s/$/\\/; p
33561 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33562 ' >>$CONFIG_STATUS <conf$$subs.sed
33563 rm -f conf$$subs.sed
33564 cat >>$CONFIG_STATUS <<_ACEOF
33565 :end
33566 s/|#_!!_#|//g
33567 CEOF$ac_eof
33568 _ACEOF
33571 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33572 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33573 # trailing colons and then remove the whole line if VPATH becomes empty
33574 # (actually we leave an empty line to preserve line numbers).
33575 if test "x$srcdir" = x.; then
33576   ac_vpsub='/^[  ]*VPATH[        ]*=/{
33577 s/:*\$(srcdir):*/:/
33578 s/:*\${srcdir}:*/:/
33579 s/:*@srcdir@:*/:/
33580 s/^\([^=]*=[     ]*\):*/\1/
33581 s/:*$//
33582 s/^[^=]*=[       ]*$//
33586 cat >>$CONFIG_STATUS <<\_ACEOF
33587 fi # test -n "$CONFIG_FILES"
33590 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
33592   case $ac_tag in
33593   :[FHLC]) ac_mode=$ac_tag; continue;;
33594   esac
33595   case $ac_mode$ac_tag in
33596   :[FHL]*:*);;
33597   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33598 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33599    { (exit 1); exit 1; }; };;
33600   :[FH]-) ac_tag=-:-;;
33601   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33602   esac
33603   ac_save_IFS=$IFS
33604   IFS=:
33605   set x $ac_tag
33606   IFS=$ac_save_IFS
33607   shift
33608   ac_file=$1
33609   shift
33611   case $ac_mode in
33612   :L) ac_source=$1;;
33613   :[FH])
33614     ac_file_inputs=
33615     for ac_f
33616     do
33617       case $ac_f in
33618       -) ac_f="$tmp/stdin";;
33619       *) # Look for the file first in the build tree, then in the source tree
33620          # (if the path is not absolute).  The absolute path cannot be DOS-style,
33621          # because $ac_f cannot contain `:'.
33622          test -f "$ac_f" ||
33623            case $ac_f in
33624            [\\/$]*) false;;
33625            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33626            esac ||
33627            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33628 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33629    { (exit 1); exit 1; }; };;
33630       esac
33631       ac_file_inputs="$ac_file_inputs $ac_f"
33632     done
33634     # Let's still pretend it is `configure' which instantiates (i.e., don't
33635     # use $as_me), people would be surprised to read:
33636     #    /* config.h.  Generated by config.status.  */
33637     configure_input="Generated from "`IFS=:
33638           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33639     if test x"$ac_file" != x-; then
33640       configure_input="$ac_file.  $configure_input"
33641       { echo "$as_me:$LINENO: creating $ac_file" >&5
33642 echo "$as_me: creating $ac_file" >&6;}
33643     fi
33645     case $ac_tag in
33646     *:-:* | *:-) cat >"$tmp/stdin";;
33647     esac
33648     ;;
33649   esac
33651   ac_dir=`$as_dirname -- "$ac_file" ||
33652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33653          X"$ac_file" : 'X\(//\)[^/]' \| \
33654          X"$ac_file" : 'X\(//\)$' \| \
33655          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33656 echo X"$ac_file" |
33657     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33658             s//\1/
33659             q
33660           }
33661           /^X\(\/\/\)[^/].*/{
33662             s//\1/
33663             q
33664           }
33665           /^X\(\/\/\)$/{
33666             s//\1/
33667             q
33668           }
33669           /^X\(\/\).*/{
33670             s//\1/
33671             q
33672           }
33673           s/.*/./; q'`
33674   { as_dir="$ac_dir"
33675   case $as_dir in #(
33676   -*) as_dir=./$as_dir;;
33677   esac
33678   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33679     as_dirs=
33680     while :; do
33681       case $as_dir in #(
33682       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33683       *) as_qdir=$as_dir;;
33684       esac
33685       as_dirs="'$as_qdir' $as_dirs"
33686       as_dir=`$as_dirname -- "$as_dir" ||
33687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33688          X"$as_dir" : 'X\(//\)[^/]' \| \
33689          X"$as_dir" : 'X\(//\)$' \| \
33690          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33691 echo X"$as_dir" |
33692     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33693             s//\1/
33694             q
33695           }
33696           /^X\(\/\/\)[^/].*/{
33697             s//\1/
33698             q
33699           }
33700           /^X\(\/\/\)$/{
33701             s//\1/
33702             q
33703           }
33704           /^X\(\/\).*/{
33705             s//\1/
33706             q
33707           }
33708           s/.*/./; q'`
33709       test -d "$as_dir" && break
33710     done
33711     test -z "$as_dirs" || eval "mkdir $as_dirs"
33712   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33713 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33714    { (exit 1); exit 1; }; }; }
33715   ac_builddir=.
33717 case "$ac_dir" in
33718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33720   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33721   # A ".." for each directory in $ac_dir_suffix.
33722   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33723   case $ac_top_builddir_sub in
33724   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33725   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33726   esac ;;
33727 esac
33728 ac_abs_top_builddir=$ac_pwd
33729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33730 # for backward compatibility:
33731 ac_top_builddir=$ac_top_build_prefix
33733 case $srcdir in
33734   .)  # We are building in place.
33735     ac_srcdir=.
33736     ac_top_srcdir=$ac_top_builddir_sub
33737     ac_abs_top_srcdir=$ac_pwd ;;
33738   [\\/]* | ?:[\\/]* )  # Absolute name.
33739     ac_srcdir=$srcdir$ac_dir_suffix;
33740     ac_top_srcdir=$srcdir
33741     ac_abs_top_srcdir=$srcdir ;;
33742   *) # Relative name.
33743     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33744     ac_top_srcdir=$ac_top_build_prefix$srcdir
33745     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33746 esac
33747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33750   case $ac_mode in
33751   :F)
33752   #
33753   # CONFIG_FILE
33754   #
33756   case $INSTALL in
33757   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33758   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33759   esac
33760 _ACEOF
33762 cat >>$CONFIG_STATUS <<\_ACEOF
33763 # If the template does not know about datarootdir, expand it.
33764 # FIXME: This hack should be removed a few years after 2.60.
33765 ac_datarootdir_hack=; ac_datarootdir_seen=
33767 case `sed -n '/datarootdir/ {
33768   p
33769   q
33771 /@datadir@/p
33772 /@docdir@/p
33773 /@infodir@/p
33774 /@localedir@/p
33775 /@mandir@/p
33776 ' $ac_file_inputs` in
33777 *datarootdir*) ac_datarootdir_seen=yes;;
33778 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33779   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33780 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33781 _ACEOF
33782 cat >>$CONFIG_STATUS <<_ACEOF
33783   ac_datarootdir_hack='
33784   s&@datadir@&$datadir&g
33785   s&@docdir@&$docdir&g
33786   s&@infodir@&$infodir&g
33787   s&@localedir@&$localedir&g
33788   s&@mandir@&$mandir&g
33789     s&\\\${datarootdir}&$datarootdir&g' ;;
33790 esac
33791 _ACEOF
33793 # Neutralize VPATH when `$srcdir' = `.'.
33794 # Shell code in configure.ac might set extrasub.
33795 # FIXME: do we really want to maintain this feature?
33796 cat >>$CONFIG_STATUS <<_ACEOF
33797   sed "$ac_vpsub
33798 $extrasub
33799 _ACEOF
33800 cat >>$CONFIG_STATUS <<\_ACEOF
33802 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33803 s&@configure_input@&$configure_input&;t t
33804 s&@top_builddir@&$ac_top_builddir_sub&;t t
33805 s&@srcdir@&$ac_srcdir&;t t
33806 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33807 s&@top_srcdir@&$ac_top_srcdir&;t t
33808 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33809 s&@builddir@&$ac_builddir&;t t
33810 s&@abs_builddir@&$ac_abs_builddir&;t t
33811 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33812 s&@INSTALL@&$ac_INSTALL&;t t
33813 $ac_datarootdir_hack
33814 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
33816 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33817   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33818   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33819   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33820 which seems to be undefined.  Please make sure it is defined." >&5
33821 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33822 which seems to be undefined.  Please make sure it is defined." >&2;}
33824   rm -f "$tmp/stdin"
33825   case $ac_file in
33826   -) cat "$tmp/out"; rm -f "$tmp/out";;
33827   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33828   esac
33829  ;;
33830   :H)
33831   #
33832   # CONFIG_HEADER
33833   #
33834 _ACEOF
33836 # Transform confdefs.h into a sed script `conftest.defines', that
33837 # substitutes the proper values into config.h.in to produce config.h.
33838 rm -f conftest.defines conftest.tail
33839 # First, append a space to every undef/define line, to ease matching.
33840 echo 's/$/ /' >conftest.defines
33841 # Then, protect against being on the right side of a sed subst, or in
33842 # an unquoted here document, in config.status.  If some macros were
33843 # called several times there might be several #defines for the same
33844 # symbol, which is useless.  But do not sort them, since the last
33845 # AC_DEFINE must be honored.
33846 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33847 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33848 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33849 # PARAMS is the parameter list in the macro definition--in most cases, it's
33850 # just an empty string.
33851 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
33852 ac_dB='\\)[      (].*,\\1define\\2'
33853 ac_dC=' '
33854 ac_dD=' ,'
33856 uniq confdefs.h |
33857   sed -n '
33858         t rset
33859         :rset
33860         s/^[     ]*#[    ]*define[       ][      ]*//
33861         t ok
33862         d
33863         :ok
33864         s/[\\&,]/\\&/g
33865         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33866         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33867   ' >>conftest.defines
33869 # Remove the space that was appended to ease matching.
33870 # Then replace #undef with comments.  This is necessary, for
33871 # example, in the case of _POSIX_SOURCE, which is predefined and required
33872 # on some systems where configure will not decide to define it.
33873 # (The regexp can be short, since the line contains either #define or #undef.)
33874 echo 's/ $//
33875 s,^[     #]*u.*,/* & */,' >>conftest.defines
33877 # Break up conftest.defines:
33878 ac_max_sed_lines=50
33880 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33881 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33882 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33883 # et cetera.
33884 ac_in='$ac_file_inputs'
33885 ac_out='"$tmp/out1"'
33886 ac_nxt='"$tmp/out2"'
33888 while :
33890   # Write a here document:
33891     cat >>$CONFIG_STATUS <<_ACEOF
33892     # First, check the format of the line:
33893     cat >"\$tmp/defines.sed" <<\\CEOF
33894 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
33895 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
33897 :def
33898 _ACEOF
33899   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33900   echo 'CEOF
33901     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33902   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33903   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33904   grep . conftest.tail >/dev/null || break
33905   rm -f conftest.defines
33906   mv conftest.tail conftest.defines
33907 done
33908 rm -f conftest.defines conftest.tail
33910 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33911 cat >>$CONFIG_STATUS <<\_ACEOF
33912   if test x"$ac_file" != x-; then
33913     echo "/* $configure_input  */" >"$tmp/config.h"
33914     cat "$ac_result" >>"$tmp/config.h"
33915     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33916       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33917 echo "$as_me: $ac_file is unchanged" >&6;}
33918     else
33919       rm -f $ac_file
33920       mv "$tmp/config.h" $ac_file
33921     fi
33922   else
33923     echo "/* $configure_input  */"
33924     cat "$ac_result"
33925   fi
33926   rm -f "$tmp/out12"
33927 # Compute $ac_file's index in $config_headers.
33928 _am_stamp_count=1
33929 for _am_header in $config_headers :; do
33930   case $_am_header in
33931     $ac_file | $ac_file:* )
33932       break ;;
33933     * )
33934       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33935   esac
33936 done
33937 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
33938 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33939          X$ac_file : 'X\(//\)[^/]' \| \
33940          X$ac_file : 'X\(//\)$' \| \
33941          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
33942 echo X$ac_file |
33943     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33944             s//\1/
33945             q
33946           }
33947           /^X\(\/\/\)[^/].*/{
33948             s//\1/
33949             q
33950           }
33951           /^X\(\/\/\)$/{
33952             s//\1/
33953             q
33954           }
33955           /^X\(\/\).*/{
33956             s//\1/
33957             q
33958           }
33959           s/.*/./; q'`/stamp-h$_am_stamp_count
33960  ;;
33962   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33963 echo "$as_me: executing $ac_file commands" >&6;}
33964  ;;
33965   esac
33968   case $ac_file$ac_mode in
33969     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33970   # Strip MF so we end up with the name of the file.
33971   mf=`echo "$mf" | sed -e 's/:.*$//'`
33972   # Check whether this is an Automake generated Makefile or not.
33973   # We used to match only the files named `Makefile.in', but
33974   # some people rename them; so instead we look at the file content.
33975   # Grep'ing the first line is not enough: some people post-process
33976   # each Makefile.in and add a new line on top of each file to say so.
33977   # So let's grep whole file.
33978   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33979     dirpart=`$as_dirname -- "$mf" ||
33980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33981          X"$mf" : 'X\(//\)[^/]' \| \
33982          X"$mf" : 'X\(//\)$' \| \
33983          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33984 echo X"$mf" |
33985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33986             s//\1/
33987             q
33988           }
33989           /^X\(\/\/\)[^/].*/{
33990             s//\1/
33991             q
33992           }
33993           /^X\(\/\/\)$/{
33994             s//\1/
33995             q
33996           }
33997           /^X\(\/\).*/{
33998             s//\1/
33999             q
34000           }
34001           s/.*/./; q'`
34002   else
34003     continue
34004   fi
34005   # Extract the definition of DEPDIR, am__include, and am__quote
34006   # from the Makefile without running `make'.
34007   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34008   test -z "$DEPDIR" && continue
34009   am__include=`sed -n 's/^am__include = //p' < "$mf"`
34010   test -z "am__include" && continue
34011   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34012   # When using ansi2knr, U may be empty or an underscore; expand it
34013   U=`sed -n 's/^U = //p' < "$mf"`
34014   # Find all dependency output files, they are included files with
34015   # $(DEPDIR) in their names.  We invoke sed twice because it is the
34016   # simplest approach to changing $(DEPDIR) to its actual value in the
34017   # expansion.
34018   for file in `sed -n "
34019     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34020        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34021     # Make sure the directory exists.
34022     test -f "$dirpart/$file" && continue
34023     fdir=`$as_dirname -- "$file" ||
34024 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34025          X"$file" : 'X\(//\)[^/]' \| \
34026          X"$file" : 'X\(//\)$' \| \
34027          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34028 echo X"$file" |
34029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34030             s//\1/
34031             q
34032           }
34033           /^X\(\/\/\)[^/].*/{
34034             s//\1/
34035             q
34036           }
34037           /^X\(\/\/\)$/{
34038             s//\1/
34039             q
34040           }
34041           /^X\(\/\).*/{
34042             s//\1/
34043             q
34044           }
34045           s/.*/./; q'`
34046     { as_dir=$dirpart/$fdir
34047   case $as_dir in #(
34048   -*) as_dir=./$as_dir;;
34049   esac
34050   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34051     as_dirs=
34052     while :; do
34053       case $as_dir in #(
34054       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34055       *) as_qdir=$as_dir;;
34056       esac
34057       as_dirs="'$as_qdir' $as_dirs"
34058       as_dir=`$as_dirname -- "$as_dir" ||
34059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34060          X"$as_dir" : 'X\(//\)[^/]' \| \
34061          X"$as_dir" : 'X\(//\)$' \| \
34062          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34063 echo X"$as_dir" |
34064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34065             s//\1/
34066             q
34067           }
34068           /^X\(\/\/\)[^/].*/{
34069             s//\1/
34070             q
34071           }
34072           /^X\(\/\/\)$/{
34073             s//\1/
34074             q
34075           }
34076           /^X\(\/\).*/{
34077             s//\1/
34078             q
34079           }
34080           s/.*/./; q'`
34081       test -d "$as_dir" && break
34082     done
34083     test -z "$as_dirs" || eval "mkdir $as_dirs"
34084   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34085 echo "$as_me: error: cannot create directory $as_dir" >&2;}
34086    { (exit 1); exit 1; }; }; }
34087     # echo "creating $dirpart/$file"
34088     echo '# dummy' > "$dirpart/$file"
34089   done
34090 done
34091  ;;
34092     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
34093         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
34094       esac ;;
34095     "intltool":C)
34097 for file in intltool-extract intltool-merge intltool-update; do
34098   sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
34099       -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
34100       -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
34101         < ${ac_aux_dir}/${file}.in > ${file}.out
34102   if cmp -s ${file} ${file}.out 2>/dev/null; then
34103     rm -f ${file}.out
34104   else
34105     mv -f ${file}.out ${file}
34106   fi
34107   chmod ugo+x ${file}
34108   chmod u+w ${file}
34109 done
34111  ;;
34112     "default":C)  chmod +x examples/*.pl ;;
34113     "po/stamp-it":C)
34114     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
34115     >"po/stamp-it.tmp"
34116     sed '/^#/d
34117          s/^[[].*] *//
34118          /^[    ]*$/d
34119         '"s|^|  $ac_top_srcdir/|" \
34120       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
34122     if test ! -f "po/Makefile"; then
34123       { { echo "$as_me:$LINENO: error: po/Makefile is not ready." >&5
34124 echo "$as_me: error: po/Makefile is not ready." >&2;}
34125    { (exit 1); exit 1; }; }
34126     fi
34127     mv "po/Makefile" "po/Makefile.tmp"
34128     sed '/^POTFILES =/,/[^\\]$/ {
34129                 /^POTFILES =/!d
34130                 r po/POTFILES
34131           }
34132          ' "po/Makefile.tmp" >"po/Makefile"
34133     rm -f "po/Makefile.tmp"
34134     mv "po/stamp-it.tmp" "po/stamp-it"
34135    ;;
34137   esac
34138 done # for ac_tag
34141 { (exit 0); exit 0; }
34142 _ACEOF
34143 chmod +x $CONFIG_STATUS
34144 ac_clean_files=$ac_clean_files_save
34147 # configure is writing to config.log, and then calls config.status.
34148 # config.status does its own redirection, appending to config.log.
34149 # Unfortunately, on DOS this fails, as config.log is still kept open
34150 # by configure, so config.status won't be able to write to it; its
34151 # output is simply discarded.  So we exec the FD to /dev/null,
34152 # effectively closing config.log, so it can be properly (re)opened and
34153 # appended to by config.status.  When coming back to configure, we
34154 # need to make the FD available again.
34155 if test "$no_create" != yes; then
34156   ac_cs_success=:
34157   ac_config_status_args=
34158   test "$silent" = yes &&
34159     ac_config_status_args="$ac_config_status_args --quiet"
34160   exec 5>/dev/null
34161   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34162   exec 5>>config.log
34163   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34164   # would make configure fail if this is the last instruction.
34165   $ac_cs_success || { (exit 1); exit 1; }
34169 { echo "$as_me:$LINENO: checking in" >&5
34170 echo $ECHO_N "checking in... $ECHO_C" >&6; }
34171 { echo "$as_me:$LINENO: result: and out again" >&5
34172 echo "${ECHO_T}and out again" >&6; }
34174 echo $ECHO_N "ordering CD from http://tobi.oetiker.ch/wish $ECHO_C" 1>&6
34175 sleep 1
34176 echo $ECHO_N ".$ECHO_C" 1>&6
34177 sleep 1
34178 echo $ECHO_N ".$ECHO_C" 1>&6
34179 sleep 1
34180 echo $ECHO_N ".$ECHO_C" 1>&6
34181 sleep 1
34182 echo $ECHO_N ".$ECHO_C" 1>&6
34183 sleep 1
34184 { echo "$as_me:$LINENO: result:  just kidding ;-)" >&5
34185 echo "${ECHO_T} just kidding ;-)" >&6; }
34186 echo
34187 echo "----------------------------------------------------------------"
34188 echo "Config is DONE!"
34189 echo
34190 echo "          With MMAP IO: $enable_mmap"
34191 echo "       Static programs: $staticprogs"
34192 echo "          Perl Modules: $COMP_PERL"
34193 echo "           Perl Binary: $PERL"
34194 echo "          Perl Version: $PERL_VERSION"
34195 echo "          Perl Options: $PERL_MAKE_OPTIONS"
34196 echo "          Ruby Modules: $COMP_RUBY"
34197 echo "           Ruby Binary: $RUBY"
34198 echo "          Ruby Options: $RUBY_MAKE_OPTIONS"
34199 echo "    Build Tcl Bindings: $enable_tcl"
34200 echo " Build Python Bindings: $enable_python"
34201 echo "          Build rrdcgi: $enable_rrdcgi"
34202 echo "       Build librrd MT: $enable_pthread"
34203 echo "     Link with libintl: $enable_libintl"
34204 echo
34205 echo "             Libraries: $ALL_LIBS"
34206 echo
34207 echo "Type 'make' to compile the software and use 'make install' to "
34208 echo "install everything to: $prefix."
34209 echo
34210 echo "       ... that wishlist is NO JOKE. If you find RRDtool useful"
34211 echo "make me happy. Go to http://tobi.oetiker.ch/wish and"
34212 echo "place an order."
34213 echo
34214 echo "                               -- Tobi Oetiker <tobi@oetiker.ch>"
34215 echo "----------------------------------------------------------------"